2 # From configure.in Revision: 1.83.2.5.2.31 .
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 PROTOENT_DATA PROTO_R_END_RESULT PROTO_R_END_RETURN PROTO_R_ENT_ARGS PROTO_R_ENT_UNUSED 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 SERVENT_DATA SERV_R_END_RESULT SERV_R_END_RETURN SERV_R_ENT_ARGS SERV_R_ENT_UNUSED 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"
4662 # We don't want to set -lpthread as that break
4663 # the ability to choose threads library at final
4664 # link time and is not valid for all architectures.
4667 if test "X$GCC" = "Xyes"; then
4670 echo "$as_me:$LINENO: checking for gcc -pthread support" >&5
4671 echo $ECHO_N "checking for gcc -pthread support... $ECHO_C" >&6;
4672 cat >conftest.$ac_ext <<_ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 #include <pthread.h>
4682 printf("%x\n", pthread_create);
4687 rm -f conftest.$ac_objext conftest$ac_exeext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689 (eval $ac_link) 2>conftest.er1
4691 grep -v '^ *+' conftest.er1 >conftest.err
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -z "$ac_c_werror_flag"
4697 || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try='test -s conftest$ac_exeext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4710 echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4716 echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6
4719 rm -f conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4723 if test "X$PTHREAD" != "Xyes"; then
4725 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4726 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4727 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 ac_check_lib_save_LIBS=$LIBS
4731 LIBS="-lpthread $LIBS"
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4739 /* Override any gcc2 internal prototype to avoid an error. */
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4745 char pthread_create ();
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756 (eval $ac_link) 2>conftest.er1
4758 grep -v '^ *+' conftest.er1 >conftest.err
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try='test -z "$ac_c_werror_flag"
4764 || test ! -s conftest.err'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try='test -s conftest$ac_exeext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 ac_cv_lib_pthread_pthread_create=yes
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 ac_cv_lib_pthread_pthread_create=no
4783 rm -f conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
4785 LIBS=$ac_check_lib_save_LIBS
4787 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4788 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4789 if test $ac_cv_lib_pthread_pthread_create = yes; then
4790 cat >>confdefs.h <<_ACEOF
4791 #define HAVE_LIBPTHREAD 1
4794 LIBS="-lpthread $LIBS"
4798 echo "$as_me:$LINENO: checking for thread_create in -lthr" >&5
4799 echo $ECHO_N "checking for thread_create in -lthr... $ECHO_C" >&6
4800 if test "${ac_cv_lib_thr_thread_create+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 ac_check_lib_save_LIBS=$LIBS
4805 cat >conftest.$ac_ext <<_ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4812 /* Override any gcc2 internal prototype to avoid an error. */
4816 /* We use char because int might match the return type of a gcc2
4817 builtin and then its argument prototype would still apply. */
4818 char thread_create ();
4827 rm -f conftest.$ac_objext conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829 (eval $ac_link) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest$ac_exeext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_lib_thr_thread_create=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 ac_cv_lib_thr_thread_create=no
4856 rm -f conftest.err conftest.$ac_objext \
4857 conftest$ac_exeext conftest.$ac_ext
4858 LIBS=$ac_check_lib_save_LIBS
4860 echo "$as_me:$LINENO: result: $ac_cv_lib_thr_thread_create" >&5
4861 echo "${ECHO_T}$ac_cv_lib_thr_thread_create" >&6
4862 if test $ac_cv_lib_thr_thread_create = yes; then
4863 cat >>confdefs.h <<_ACEOF
4864 #define HAVE_LIBTHR 1
4871 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
4872 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
4873 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 ac_check_lib_save_LIBS=$LIBS
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4885 /* Override any gcc2 internal prototype to avoid an error. */
4889 /* We use char because int might match the return type of a gcc2
4890 builtin and then its argument prototype would still apply. */
4891 char pthread_create ();
4900 rm -f conftest.$ac_objext conftest$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902 (eval $ac_link) 2>conftest.er1
4904 grep -v '^ *+' conftest.er1 >conftest.err
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try='test -s conftest$ac_exeext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_lib_c_r_pthread_create=yes
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 ac_cv_lib_c_r_pthread_create=no
4929 rm -f conftest.err conftest.$ac_objext \
4930 conftest$ac_exeext conftest.$ac_ext
4931 LIBS=$ac_check_lib_save_LIBS
4933 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
4934 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
4935 if test $ac_cv_lib_c_r_pthread_create = yes; then
4936 cat >>confdefs.h <<_ACEOF
4937 #define HAVE_LIBC_R 1
4944 echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
4945 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6
4946 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 ac_check_lib_save_LIBS=$LIBS
4951 cat >conftest.$ac_ext <<_ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4958 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4964 char pthread_create ();
4973 rm -f conftest.$ac_objext conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>conftest.er1
4977 grep -v '^ *+' conftest.er1 >conftest.err
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest$ac_exeext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_cv_lib_c_pthread_create=yes
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 ac_cv_lib_c_pthread_create=no
5002 rm -f conftest.err conftest.$ac_objext \
5003 conftest$ac_exeext conftest.$ac_ext
5004 LIBS=$ac_check_lib_save_LIBS
5006 echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
5007 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6
5008 if test $ac_cv_lib_c_pthread_create = yes; then
5009 cat >>confdefs.h <<_ACEOF
5016 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
5017 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
5018 { (exit 1); exit 1; }; }
5031 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5032 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5033 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 ac_check_lib_save_LIBS=$LIBS
5037 LIBS="-lpthread $LIBS"
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5045 /* Override any gcc2 internal prototype to avoid an error. */
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5051 char pthread_create ();
5060 rm -f conftest.$ac_objext conftest$ac_exeext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062 (eval $ac_link) 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -z "$ac_c_werror_flag"
5070 || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest$ac_exeext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 ac_cv_lib_pthread_pthread_create=yes
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 ac_cv_lib_pthread_pthread_create=no
5089 rm -f conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
5091 LIBS=$ac_check_lib_save_LIBS
5093 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5094 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5095 if test $ac_cv_lib_pthread_pthread_create = yes; then
5096 cat >>confdefs.h <<_ACEOF
5097 #define HAVE_LIBPTHREAD 1
5100 LIBS="-lpthread $LIBS"
5104 echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5
5105 echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6
5106 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 ac_check_lib_save_LIBS=$LIBS
5110 LIBS="-lpthread $LIBS"
5111 cat >conftest.$ac_ext <<_ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5118 /* Override any gcc2 internal prototype to avoid an error. */
5122 /* We use char because int might match the return type of a gcc2
5123 builtin and then its argument prototype would still apply. */
5124 char __pthread_create ();
5128 __pthread_create ();
5133 rm -f conftest.$ac_objext conftest$ac_exeext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135 (eval $ac_link) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -z "$ac_c_werror_flag"
5143 || test ! -s conftest.err'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; } &&
5149 { ac_try='test -s conftest$ac_exeext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_cv_lib_pthread___pthread_create=yes
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 ac_cv_lib_pthread___pthread_create=no
5162 rm -f conftest.err conftest.$ac_objext \
5163 conftest$ac_exeext conftest.$ac_ext
5164 LIBS=$ac_check_lib_save_LIBS
5166 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5
5167 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create" >&6
5168 if test $ac_cv_lib_pthread___pthread_create = yes; then
5169 cat >>confdefs.h <<_ACEOF
5170 #define HAVE_LIBPTHREAD 1
5173 LIBS="-lpthread $LIBS"
5177 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
5178 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
5179 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 ac_check_lib_save_LIBS=$LIBS
5183 LIBS="-lpthread $LIBS"
5184 cat >conftest.$ac_ext <<_ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5191 /* Override any gcc2 internal prototype to avoid an error. */
5195 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
5197 char __pthread_create_system ();
5201 __pthread_create_system ();
5206 rm -f conftest.$ac_objext conftest$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>conftest.er1
5210 grep -v '^ *+' conftest.er1 >conftest.err
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try='test -z "$ac_c_werror_flag"
5216 || test ! -s conftest.err'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; } &&
5222 { ac_try='test -s conftest$ac_exeext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_cv_lib_pthread___pthread_create_system=yes
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ac_cv_lib_pthread___pthread_create_system=no
5235 rm -f conftest.err conftest.$ac_objext \
5236 conftest$ac_exeext conftest.$ac_ext
5237 LIBS=$ac_check_lib_save_LIBS
5239 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
5240 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
5241 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
5242 cat >>confdefs.h <<_ACEOF
5243 #define HAVE_LIBPTHREAD 1
5246 LIBS="-lpthread $LIBS"
5250 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
5251 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
5252 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_check_lib_save_LIBS=$LIBS
5257 cat >conftest.$ac_ext <<_ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5264 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270 char pthread_create ();
5279 rm -f conftest.$ac_objext conftest$ac_exeext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5281 (eval $ac_link) 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -z "$ac_c_werror_flag"
5289 || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try='test -s conftest$ac_exeext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 ac_cv_lib_c_r_pthread_create=yes
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 ac_cv_lib_c_r_pthread_create=no
5308 rm -f conftest.err conftest.$ac_objext \
5309 conftest$ac_exeext conftest.$ac_ext
5310 LIBS=$ac_check_lib_save_LIBS
5312 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
5313 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
5314 if test $ac_cv_lib_c_r_pthread_create = yes; then
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_LIBC_R 1
5323 echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
5324 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6
5325 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 ac_check_lib_save_LIBS=$LIBS
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5337 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */
5343 char pthread_create ();
5352 rm -f conftest.$ac_objext conftest$ac_exeext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5354 (eval $ac_link) 2>conftest.er1
5356 grep -v '^ *+' conftest.er1 >conftest.err
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try='test -z "$ac_c_werror_flag"
5362 || test ! -s conftest.err'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; } &&
5368 { ac_try='test -s conftest$ac_exeext'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5374 ac_cv_lib_c_pthread_create=yes
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 ac_cv_lib_c_pthread_create=no
5381 rm -f conftest.err conftest.$ac_objext \
5382 conftest$ac_exeext conftest.$ac_ext
5383 LIBS=$ac_check_lib_save_LIBS
5385 echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
5386 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6
5387 if test $ac_cv_lib_c_pthread_create = yes; then
5388 cat >>confdefs.h <<_ACEOF
5395 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
5396 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
5397 { (exit 1); exit 1; }; }
5414 if test "X$GCC" = "Xyes"; then
5418 CCOPT="$CCOPT -pthread"
5419 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5423 CCOPT="$CCOPT -pthread"
5426 LIBS="$LIBS -lthread"
5429 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5436 CCOPT="$CCOPT -pthread"
5443 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5447 CCOPT="$CCOPT -Kthread"
5451 cat >>confdefs.h <<\_ACEOF
5452 #define _REENTRANT 1
5455 ALWAYS_DEFINES="-D_REENTRANT"
5456 DO_PTHREADS="#define DO_PTHREADS 1"
5457 WANT_IRS_THREADSGR_OBJS="\${WANT_IRS_THREADSGR_OBJS}"
5458 WANT_IRS_THREADSPW_OBJS="\${WANT_IRS_THREADSPW_OBJS}"
5461 WANT_IRS_THREADS_OBJS="";;
5463 WANT_IRS_THREADS_OBJS="\${WANT_IRS_THREADS_OBJS}";;
5465 WANT_THREADS_OBJS="\${WANT_THREADS_OBJS}"
5469 # We'd like to use sigwait() too
5471 echo "$as_me:$LINENO: checking for sigwait" >&5
5472 echo $ECHO_N "checking for sigwait... $ECHO_C" >&6
5473 if test "${ac_cv_func_sigwait+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 /* Define sigwait to an innocuous variant, in case <limits.h> declares sigwait.
5483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5484 #define sigwait innocuous_sigwait
5486 /* System header to define __stub macros and hopefully few prototypes,
5487 which can conflict with char sigwait (); below.
5488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5489 <limits.h> exists even on freestanding compilers. */
5492 # include <limits.h>
5494 # include <assert.h>
5499 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5507 /* The GNU C library defines this for functions which it implements
5508 to always fail with ENOSYS. Some functions are actually named
5509 something starting with __ and the normal name is an alias. */
5510 #if defined (__stub_sigwait) || defined (__stub___sigwait)
5513 char (*f) () = sigwait;
5522 return f != sigwait;
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try='test -s conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_func_sigwait=yes
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 ac_cv_func_sigwait=no
5556 rm -f conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
5559 echo "$as_me:$LINENO: result: $ac_cv_func_sigwait" >&5
5560 echo "${ECHO_T}$ac_cv_func_sigwait" >&6
5561 if test $ac_cv_func_sigwait = yes; then
5562 cat >>confdefs.h <<\_ACEOF
5563 #define HAVE_SIGWAIT 1
5567 echo "$as_me:$LINENO: checking for sigwait in -lc" >&5
5568 echo $ECHO_N "checking for sigwait in -lc... $ECHO_C" >&6
5569 if test "${ac_cv_lib_c_sigwait+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 ac_check_lib_save_LIBS=$LIBS
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5581 /* Override any gcc2 internal prototype to avoid an error. */
5585 /* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -z "$ac_c_werror_flag"
5606 || test ! -s conftest.err'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest$ac_exeext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_cv_lib_c_sigwait=yes
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 ac_cv_lib_c_sigwait=no
5625 rm -f conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5627 LIBS=$ac_check_lib_save_LIBS
5629 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5
5630 echo "${ECHO_T}$ac_cv_lib_c_sigwait" >&6
5631 if test $ac_cv_lib_c_sigwait = yes; then
5632 cat >>confdefs.h <<\_ACEOF
5633 #define HAVE_SIGWAIT 1
5637 echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5
5638 echo $ECHO_N "checking for sigwait in -lpthread... $ECHO_C" >&6
5639 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 ac_check_lib_save_LIBS=$LIBS
5643 LIBS="-lpthread $LIBS"
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5651 /* Override any gcc2 internal prototype to avoid an error. */
5655 /* We use char because int might match the return type of a gcc2
5656 builtin and then its argument prototype would still apply. */
5666 rm -f conftest.$ac_objext conftest$ac_exeext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5668 (eval $ac_link) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag"
5676 || test ! -s conftest.err'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try='test -s conftest$ac_exeext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_cv_lib_pthread_sigwait=yes
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5693 ac_cv_lib_pthread_sigwait=no
5695 rm -f conftest.err conftest.$ac_objext \
5696 conftest$ac_exeext conftest.$ac_ext
5697 LIBS=$ac_check_lib_save_LIBS
5699 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5
5700 echo "${ECHO_T}$ac_cv_lib_pthread_sigwait" >&6
5701 if test $ac_cv_lib_pthread_sigwait = yes; then
5702 cat >>confdefs.h <<\_ACEOF
5703 #define HAVE_SIGWAIT 1
5707 echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5
5708 echo $ECHO_N "checking for _Psigwait in -lpthread... $ECHO_C" >&6
5709 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 ac_check_lib_save_LIBS=$LIBS
5713 LIBS="-lpthread $LIBS"
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5721 /* Override any gcc2 internal prototype to avoid an error. */
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest$ac_exeext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_lib_pthread__Psigwait=yes
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 ac_cv_lib_pthread__Psigwait=no
5765 rm -f conftest.err conftest.$ac_objext \
5766 conftest$ac_exeext conftest.$ac_ext
5767 LIBS=$ac_check_lib_save_LIBS
5769 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5
5770 echo "${ECHO_T}$ac_cv_lib_pthread__Psigwait" >&6
5771 if test $ac_cv_lib_pthread__Psigwait = yes; then
5772 cat >>confdefs.h <<\_ACEOF
5773 #define HAVE_SIGWAIT 1
5785 echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
5786 echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6
5787 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
5797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5798 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
5800 /* System header to define __stub macros and hopefully few prototypes,
5801 which can conflict with char pthread_attr_getstacksize (); below.
5802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5803 <limits.h> exists even on freestanding compilers. */
5806 # include <limits.h>
5808 # include <assert.h>
5811 #undef pthread_attr_getstacksize
5813 /* Override any gcc2 internal prototype to avoid an error. */
5818 /* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5820 char pthread_attr_getstacksize ();
5821 /* The GNU C library defines this for functions which it implements
5822 to always fail with ENOSYS. Some functions are actually named
5823 something starting with __ and the normal name is an alias. */
5824 #if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
5827 char (*f) () = pthread_attr_getstacksize;
5836 return f != pthread_attr_getstacksize;
5841 rm -f conftest.$ac_objext conftest$ac_exeext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5843 (eval $ac_link) 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest$ac_exeext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_func_pthread_attr_getstacksize=yes
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 ac_cv_func_pthread_attr_getstacksize=no
5870 rm -f conftest.err conftest.$ac_objext \
5871 conftest$ac_exeext conftest.$ac_ext
5873 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
5874 echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6
5875 if test $ac_cv_func_pthread_attr_getstacksize = yes; then
5876 cat >>confdefs.h <<\_ACEOF
5877 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
5884 # Additional OS-specific issues related to pthreads and sigwait.
5888 # One more place to look for sigwait.
5891 echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5
5892 echo $ECHO_N "checking for sigwait in -lc_r... $ECHO_C" >&6
5893 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 ac_check_lib_save_LIBS=$LIBS
5898 cat >conftest.$ac_ext <<_ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5905 /* Override any gcc2 internal prototype to avoid an error. */
5909 /* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5920 rm -f conftest.$ac_objext conftest$ac_exeext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5922 (eval $ac_link) 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest$ac_exeext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_lib_c_r_sigwait=yes
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_cv_lib_c_r_sigwait=no
5949 rm -f conftest.err conftest.$ac_objext \
5950 conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5953 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5
5954 echo "${ECHO_T}$ac_cv_lib_c_r_sigwait" >&6
5955 if test $ac_cv_lib_c_r_sigwait = yes; then
5956 cat >>confdefs.h <<\_ACEOF
5957 #define HAVE_SIGWAIT 1
5964 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
5965 # called before certain pthreads calls. This is deprecated
5968 *-bsdi3.*|*-bsdi4.0*)
5969 cat >>confdefs.h <<\_ACEOF
5970 #define NEED_PTHREAD_INIT 1
5975 # LinuxThreads requires some changes to the way we
5976 # deal with signals.
5979 cat >>confdefs.h <<\_ACEOF
5980 #define HAVE_LINUXTHREADS 1
5985 # Ensure the right sigwait() semantics on Solaris and make
5986 # sure we call pthread_setconcurrency.
5989 cat >>confdefs.h <<\_ACEOF
5990 #define _POSIX_PTHREAD_SEMANTICS 1
5993 echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
5994 echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6
5995 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 cat >conftest.$ac_ext <<_ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency.
6005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6006 #define pthread_setconcurrency innocuous_pthread_setconcurrency
6008 /* System header to define __stub macros and hopefully few prototypes,
6009 which can conflict with char pthread_setconcurrency (); below.
6010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6011 <limits.h> exists even on freestanding compilers. */
6014 # include <limits.h>
6016 # include <assert.h>
6019 #undef pthread_setconcurrency
6021 /* Override any gcc2 internal prototype to avoid an error. */
6026 /* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */
6028 char pthread_setconcurrency ();
6029 /* The GNU C library defines this for functions which it implements
6030 to always fail with ENOSYS. Some functions are actually named
6031 something starting with __ and the normal name is an alias. */
6032 #if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
6035 char (*f) () = pthread_setconcurrency;
6044 return f != pthread_setconcurrency;
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051 (eval $ac_link) 2>conftest.er1
6053 grep -v '^ *+' conftest.er1 >conftest.err
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } &&
6058 { ac_try='test -z "$ac_c_werror_flag"
6059 || test ! -s conftest.err'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; } &&
6065 { ac_try='test -s conftest$ac_exeext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 ac_cv_func_pthread_setconcurrency=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_cv_func_pthread_setconcurrency=no
6078 rm -f conftest.err conftest.$ac_objext \
6079 conftest$ac_exeext conftest.$ac_ext
6081 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
6082 echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6
6083 if test $ac_cv_func_pthread_setconcurrency = yes; then
6084 cat >>confdefs.h <<\_ACEOF
6085 #define CALL_PTHREAD_SETCONCURRENCY 1
6090 cat >>confdefs.h <<\_ACEOF
6091 #define POSIX_GETPWUID_R 1
6094 cat >>confdefs.h <<\_ACEOF
6095 #define POSIX_GETPWNAM_R 1
6098 cat >>confdefs.h <<\_ACEOF
6099 #define POSIX_GETGRGID_R 1
6102 cat >>confdefs.h <<\_ACEOF
6103 #define POSIX_GETGRNAM_R 1
6108 cat >>confdefs.h <<\_ACEOF
6109 #define NEED_ENDNETGRENT_R 1
6112 cat >>confdefs.h <<\_ACEOF
6113 #define _PTHREADS_DRAFT4 1
6118 # UnixWare does things its own way.
6121 cat >>confdefs.h <<\_ACEOF
6122 #define HAVE_UNIXWARE_SIGWAIT 1
6129 # Look for sysconf to allow detection of the number of processors.
6131 echo "$as_me:$LINENO: checking for sysconf" >&5
6132 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
6133 if test "${ac_cv_func_sysconf+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 cat >conftest.$ac_ext <<_ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
6143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6144 #define sysconf innocuous_sysconf
6146 /* System header to define __stub macros and hopefully few prototypes,
6147 which can conflict with char sysconf (); below.
6148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149 <limits.h> exists even on freestanding compilers. */
6152 # include <limits.h>
6154 # include <assert.h>
6159 /* Override any gcc2 internal prototype to avoid an error. */
6164 /* We use char because int might match the return type of a gcc2
6165 builtin and then its argument prototype would still apply. */
6167 /* The GNU C library defines this for functions which it implements
6168 to always fail with ENOSYS. Some functions are actually named
6169 something starting with __ and the normal name is an alias. */
6170 #if defined (__stub_sysconf) || defined (__stub___sysconf)
6173 char (*f) () = sysconf;
6182 return f != sysconf;
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>conftest.er1
6191 grep -v '^ *+' conftest.er1 >conftest.err
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try='test -s conftest$ac_exeext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 ac_cv_func_sysconf=yes
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 ac_cv_func_sysconf=no
6216 rm -f conftest.err conftest.$ac_objext \
6217 conftest$ac_exeext conftest.$ac_ext
6219 echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
6220 echo "${ECHO_T}$ac_cv_func_sysconf" >&6
6221 if test $ac_cv_func_sysconf = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_SYSCONF 1
6231 DO_PTHREADS="#undef DO_PTHREADS"
6232 WANT_IRS_THREADSGR_OBJS=""
6233 WANT_IRS_THREADSPW_OBJS=""
6234 WANT_IRS_THREADS_OBJS=""
6235 WANT_THREADS_OBJS=""
6236 thread_dir=nothreads
6246 echo "$as_me:$LINENO: checking for strlcat" >&5
6247 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
6248 if test "${ac_cv_func_strlcat+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 cat >conftest.$ac_ext <<_ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
6258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6259 #define strlcat innocuous_strlcat
6261 /* System header to define __stub macros and hopefully few prototypes,
6262 which can conflict with char strlcat (); below.
6263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 <limits.h> exists even on freestanding compilers. */
6267 # include <limits.h>
6269 # include <assert.h>
6274 /* Override any gcc2 internal prototype to avoid an error. */
6279 /* We use char because int might match the return type of a gcc2
6280 builtin and then its argument prototype would still apply. */
6282 /* The GNU C library defines this for functions which it implements
6283 to always fail with ENOSYS. Some functions are actually named
6284 something starting with __ and the normal name is an alias. */
6285 #if defined (__stub_strlcat) || defined (__stub___strlcat)
6288 char (*f) () = strlcat;
6297 return f != strlcat;
6302 rm -f conftest.$ac_objext conftest$ac_exeext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6304 (eval $ac_link) 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -z "$ac_c_werror_flag"
6312 || test ! -s conftest.err'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest$ac_exeext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 ac_cv_func_strlcat=yes
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 ac_cv_func_strlcat=no
6331 rm -f conftest.err conftest.$ac_objext \
6332 conftest$ac_exeext conftest.$ac_ext
6334 echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
6335 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
6336 if test $ac_cv_func_strlcat = yes; then
6337 cat >>confdefs.h <<\_ACEOF
6338 #define HAVE_STRLCAT 1
6344 echo "$as_me:$LINENO: checking for if_nametoindex" >&5
6345 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6
6346 if test "${ac_cv_func_if_nametoindex+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
6356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6357 #define if_nametoindex innocuous_if_nametoindex
6359 /* System header to define __stub macros and hopefully few prototypes,
6360 which can conflict with char if_nametoindex (); below.
6361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6362 <limits.h> exists even on freestanding compilers. */
6365 # include <limits.h>
6367 # include <assert.h>
6370 #undef if_nametoindex
6372 /* Override any gcc2 internal prototype to avoid an error. */
6377 /* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6379 char if_nametoindex ();
6380 /* The GNU C library defines this for functions which it implements
6381 to always fail with ENOSYS. Some functions are actually named
6382 something starting with __ and the normal name is an alias. */
6383 #if defined (__stub_if_nametoindex) || defined (__stub___if_nametoindex)
6386 char (*f) () = if_nametoindex;
6395 return f != if_nametoindex;
6400 rm -f conftest.$ac_objext conftest$ac_exeext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6402 (eval $ac_link) 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag"
6410 || test ! -s conftest.err'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try='test -s conftest$ac_exeext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 ac_cv_func_if_nametoindex=yes
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6427 ac_cv_func_if_nametoindex=no
6429 rm -f conftest.err conftest.$ac_objext \
6430 conftest$ac_exeext conftest.$ac_ext
6432 echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
6433 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6
6434 if test $ac_cv_func_if_nametoindex = yes; then
6435 USE_IFNAMELINKID="#define USE_IFNAMELINKID 1"
6437 USE_IFNAMELINKID="#undef USE_IFNAMELINKID"
6442 ISC_THREAD_DIR=$thread_dir
6445 echo "$as_me:$LINENO: checking for daemon" >&5
6446 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
6447 if test "${ac_cv_func_daemon+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 cat >conftest.$ac_ext <<_ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
6457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6458 #define daemon innocuous_daemon
6460 /* System header to define __stub macros and hopefully few prototypes,
6461 which can conflict with char daemon (); below.
6462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6463 <limits.h> exists even on freestanding compilers. */
6466 # include <limits.h>
6468 # include <assert.h>
6473 /* Override any gcc2 internal prototype to avoid an error. */
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6481 /* The GNU C library defines this for functions which it implements
6482 to always fail with ENOSYS. Some functions are actually named
6483 something starting with __ and the normal name is an alias. */
6484 #if defined (__stub_daemon) || defined (__stub___daemon)
6487 char (*f) () = daemon;
6501 rm -f conftest.$ac_objext conftest$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503 (eval $ac_link) 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -z "$ac_c_werror_flag"
6511 || test ! -s conftest.err'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } &&
6517 { ac_try='test -s conftest$ac_exeext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 ac_cv_func_daemon=yes
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 ac_cv_func_daemon=no
6530 rm -f conftest.err conftest.$ac_objext \
6531 conftest$ac_exeext conftest.$ac_ext
6533 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
6534 echo "${ECHO_T}$ac_cv_func_daemon" >&6
6535 if test $ac_cv_func_daemon = yes; then
6536 DAEMON_OBJS="" NEED_DAEMON="#undef NEED_DAEMON"
6539 DAEMON_OBJS="\${DAEMON_OBJS}" NEED_DAEMON="#define NEED_DAEMON 1"
6546 echo "$as_me:$LINENO: checking for strsep" >&5
6547 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
6548 if test "${ac_cv_func_strsep+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
6558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6559 #define strsep innocuous_strsep
6561 /* System header to define __stub macros and hopefully few prototypes,
6562 which can conflict with char strsep (); below.
6563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6564 <limits.h> exists even on freestanding compilers. */
6567 # include <limits.h>
6569 # include <assert.h>
6574 /* Override any gcc2 internal prototype to avoid an error. */
6579 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */
6582 /* The GNU C library defines this for functions which it implements
6583 to always fail with ENOSYS. Some functions are actually named
6584 something starting with __ and the normal name is an alias. */
6585 #if defined (__stub_strsep) || defined (__stub___strsep)
6588 char (*f) () = strsep;
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>conftest.er1
6606 grep -v '^ *+' conftest.er1 >conftest.err
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -z "$ac_c_werror_flag"
6612 || test ! -s conftest.err'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; } &&
6618 { ac_try='test -s conftest$ac_exeext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_cv_func_strsep=yes
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 ac_cv_func_strsep=no
6631 rm -f conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext conftest.$ac_ext
6634 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
6635 echo "${ECHO_T}$ac_cv_func_strsep" >&6
6636 if test $ac_cv_func_strsep = yes; then
6637 STRSEP_OBJS="" NEED_STRSEP="#undef NEED_STRSEP"
6640 STRSEP_OBJS="\${STRSEP_OBJS}" NEED_STRSEP="#define NEED_STRSEP 1"
6647 echo "$as_me:$LINENO: checking for strerror" >&5
6648 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
6649 if test "${ac_cv_func_strerror+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
6659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6660 #define strerror innocuous_strerror
6662 /* System header to define __stub macros and hopefully few prototypes,
6663 which can conflict with char strerror (); below.
6664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6665 <limits.h> exists even on freestanding compilers. */
6668 # include <limits.h>
6670 # include <assert.h>
6675 /* Override any gcc2 internal prototype to avoid an error. */
6680 /* We use char because int might match the return type of a gcc2
6681 builtin and then its argument prototype would still apply. */
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined (__stub_strerror) || defined (__stub___strerror)
6689 char (*f) () = strerror;
6698 return f != strerror;
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705 (eval $ac_link) 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -z "$ac_c_werror_flag"
6713 || test ! -s conftest.err'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try='test -s conftest$ac_exeext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_cv_func_strerror=yes
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 ac_cv_func_strerror=no
6732 rm -f conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
6735 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
6736 echo "${ECHO_T}$ac_cv_func_strerror" >&6
6737 if test $ac_cv_func_strerror = yes; then
6738 NEED_STRERROR="#undef NEED_STRERROR"
6740 NEED_STRERROR="#define NEED_STRERROR 1"
6746 # flockfile is usually provided by pthreads, but we may want to use it
6747 # even if compiled with --disable-threads.
6749 echo "$as_me:$LINENO: checking for flockfile" >&5
6750 echo $ECHO_N "checking for flockfile... $ECHO_C" >&6
6751 if test "${ac_cv_func_flockfile+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile.
6761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6762 #define flockfile innocuous_flockfile
6764 /* System header to define __stub macros and hopefully few prototypes,
6765 which can conflict with char flockfile (); below.
6766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6767 <limits.h> exists even on freestanding compilers. */
6770 # include <limits.h>
6772 # include <assert.h>
6777 /* Override any gcc2 internal prototype to avoid an error. */
6782 /* We use char because int might match the return type of a gcc2
6783 builtin and then its argument prototype would still apply. */
6785 /* The GNU C library defines this for functions which it implements
6786 to always fail with ENOSYS. Some functions are actually named
6787 something starting with __ and the normal name is an alias. */
6788 #if defined (__stub_flockfile) || defined (__stub___flockfile)
6791 char (*f) () = flockfile;
6800 return f != flockfile;
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807 (eval $ac_link) 2>conftest.er1
6809 grep -v '^ *+' conftest.er1 >conftest.err
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_c_werror_flag"
6815 || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_func_flockfile=yes
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_cv_func_flockfile=no
6834 rm -f conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6837 echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5
6838 echo "${ECHO_T}$ac_cv_func_flockfile" >&6
6839 if test $ac_cv_func_flockfile = yes; then
6840 cat >>confdefs.h <<\_ACEOF
6841 #define HAVE_FLOCKFILE 1
6848 # Indicate what the final decision was regarding threads.
6850 echo "$as_me:$LINENO: checking whether to build with threads" >&5
6851 echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6
6852 if $use_threads; then
6853 echo "$as_me:$LINENO: result: yes" >&5
6854 echo "${ECHO_T}yes" >&6
6856 echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6
6861 # End of pthreads stuff.
6865 # Additional compiler settings.
6869 IRIX_DNSSEC_WARNINGS_HACK=""
6871 if test "X$GCC" = "Xyes"; then
6872 echo "$as_me:$LINENO: checking if \"$CC\" supports -fno-strict-aliasing" >&5
6873 echo $ECHO_N "checking if \"$CC\" supports -fno-strict-aliasing... $ECHO_C" >&6
6875 CFLAGS=-fno-strict-aliasing
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6891 rm -f conftest.$ac_objext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893 (eval $ac_compile) 2>conftest.er1
6895 grep -v '^ *+' conftest.er1 >conftest.err
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -z "$ac_c_werror_flag"
6901 || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest.$ac_objext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 FNOSTRICTALIASING=yes
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 FNOSTRICTALIASING=no
6920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922 if test "$FNOSTRICTALIASING" = "yes"; then
6923 echo "$as_me:$LINENO: result: yes" >&5
6924 echo "${ECHO_T}yes" >&6
6925 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
6927 echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6
6929 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
6940 # The version of the C compiler that constantly warns about
6941 # 'const' as well as alignment issues is unfortunately not
6942 # able to be discerned via the version of the operating
6943 # system, nor does cc have a version flag.
6944 case "`$CC +W 123 2>&1`" in
6949 # Turn off the pointlessly noisy warnings.
6950 STD_CWARNINGS="+w1 +W 474,530,2193,2236"
6953 CCOPT="$CCOPT -Ae -z"
6954 LIBS="-Wl,+vnocompatwarnings $LIBS"
6955 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'
6956 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
6959 STD_CWARNINGS="-fullwarn -woff 1209"
6961 # Silence more than 250 instances of
6962 # "prototyped function redeclared without prototype"
6963 # and 11 instances of
6964 # "variable ... was set but never used"
6965 # from lib/dns/sec/openssl.
6967 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
6979 # _GNU_SOURCE is needed to access the fd_bits field of struct fd_set, which
6980 # is supposed to be opaque.
6984 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
6996 echo "$as_me:$LINENO: checking for catgets" >&5
6997 echo $ECHO_N "checking for catgets... $ECHO_C" >&6
6998 if test "${ac_cv_func_catgets+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
7008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7009 #define catgets innocuous_catgets
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char catgets (); below.
7013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 <limits.h> exists even on freestanding compilers. */
7017 # include <limits.h>
7019 # include <assert.h>
7024 /* Override any gcc2 internal prototype to avoid an error. */
7029 /* We use char because int might match the return type of a gcc2
7030 builtin and then its argument prototype would still apply. */
7032 /* The GNU C library defines this for functions which it implements
7033 to always fail with ENOSYS. Some functions are actually named
7034 something starting with __ and the normal name is an alias. */
7035 #if defined (__stub_catgets) || defined (__stub___catgets)
7038 char (*f) () = catgets;
7047 return f != catgets;
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054 (eval $ac_link) 2>conftest.er1
7056 grep -v '^ *+' conftest.er1 >conftest.err
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -z "$ac_c_werror_flag"
7062 || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest$ac_exeext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_func_catgets=yes
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_func_catgets=no
7081 rm -f conftest.err conftest.$ac_objext \
7082 conftest$ac_exeext conftest.$ac_ext
7084 echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
7085 echo "${ECHO_T}$ac_cv_func_catgets" >&6
7086 if test $ac_cv_func_catgets = yes; then
7087 cat >>confdefs.h <<\_ACEOF
7088 #define HAVE_CATGETS 1
7095 # -lxnet buys us one big porting headache... standards, gotta love 'em.
7097 # AC_CHECK_LIB(xnet, socket, ,
7098 # AC_CHECK_LIB(socket, socket)
7099 # AC_CHECK_LIB(nsl, inet_ntoa)
7102 # Use this for now, instead:
7109 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7110 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7111 if test "${ac_cv_lib_socket_socket+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_check_lib_save_LIBS=$LIBS
7115 LIBS="-lsocket $LIBS"
7116 cat >conftest.$ac_ext <<_ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7123 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7138 rm -f conftest.$ac_objext conftest$ac_exeext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7140 (eval $ac_link) 2>conftest.er1
7142 grep -v '^ *+' conftest.er1 >conftest.err
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -z "$ac_c_werror_flag"
7148 || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest$ac_exeext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_cv_lib_socket_socket=yes
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_cv_lib_socket_socket=no
7167 rm -f conftest.err conftest.$ac_objext \
7168 conftest$ac_exeext conftest.$ac_ext
7169 LIBS=$ac_check_lib_save_LIBS
7171 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7172 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7173 if test $ac_cv_lib_socket_socket = yes; then
7174 cat >>confdefs.h <<_ACEOF
7175 #define HAVE_LIBSOCKET 1
7178 LIBS="-lsocket $LIBS"
7183 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
7184 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
7185 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 ac_check_lib_save_LIBS=$LIBS
7190 cat >conftest.$ac_ext <<_ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7197 /* Override any gcc2 internal prototype to avoid an error. */
7201 /* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7212 rm -f conftest.$ac_objext conftest$ac_exeext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214 (eval $ac_link) 2>conftest.er1
7216 grep -v '^ *+' conftest.er1 >conftest.err
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -z "$ac_c_werror_flag"
7222 || test ! -s conftest.err'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; } &&
7228 { ac_try='test -s conftest$ac_exeext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 ac_cv_lib_nsl_inet_ntoa=yes
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_lib_nsl_inet_ntoa=no
7241 rm -f conftest.err conftest.$ac_objext \
7242 conftest$ac_exeext conftest.$ac_ext
7243 LIBS=$ac_check_lib_save_LIBS
7245 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
7246 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
7247 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
7248 cat >>confdefs.h <<_ACEOF
7249 #define HAVE_LIBNSL 1
7259 echo "$as_me:$LINENO: checking for gethostbyname_r in -ld4r" >&5
7260 echo $ECHO_N "checking for gethostbyname_r in -ld4r... $ECHO_C" >&6
7261 if test "${ac_cv_lib_d4r_gethostbyname_r+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_check_lib_save_LIBS=$LIBS
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7273 /* Override any gcc2 internal prototype to avoid an error. */
7277 /* We use char because int might match the return type of a gcc2
7278 builtin and then its argument prototype would still apply. */
7279 char gethostbyname_r ();
7288 rm -f conftest.$ac_objext conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290 (eval $ac_link) 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } &&
7297 { ac_try='test -z "$ac_c_werror_flag"
7298 || test ! -s conftest.err'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; } &&
7304 { ac_try='test -s conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 ac_cv_lib_d4r_gethostbyname_r=yes
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 ac_cv_lib_d4r_gethostbyname_r=no
7317 rm -f conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7319 LIBS=$ac_check_lib_save_LIBS
7321 echo "$as_me:$LINENO: result: $ac_cv_lib_d4r_gethostbyname_r" >&5
7322 echo "${ECHO_T}$ac_cv_lib_d4r_gethostbyname_r" >&6
7323 if test $ac_cv_lib_d4r_gethostbyname_r = yes; then
7324 cat >>confdefs.h <<_ACEOF
7325 #define HAVE_LIBD4R 1
7333 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7334 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7335 if test "${ac_cv_lib_socket_socket+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 ac_check_lib_save_LIBS=$LIBS
7339 LIBS="-lsocket $LIBS"
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7347 /* Override any gcc2 internal prototype to avoid an error. */
7351 /* We use char because int might match the return type of a gcc2
7352 builtin and then its argument prototype would still apply. */
7362 rm -f conftest.$ac_objext conftest$ac_exeext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7364 (eval $ac_link) 2>conftest.er1
7366 grep -v '^ *+' conftest.er1 >conftest.err
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try='test -z "$ac_c_werror_flag"
7372 || test ! -s conftest.err'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; } &&
7378 { ac_try='test -s conftest$ac_exeext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7384 ac_cv_lib_socket_socket=yes
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_cv_lib_socket_socket=no
7391 rm -f conftest.err conftest.$ac_objext \
7392 conftest$ac_exeext conftest.$ac_ext
7393 LIBS=$ac_check_lib_save_LIBS
7395 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7396 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7397 if test $ac_cv_lib_socket_socket = yes; then
7398 cat >>confdefs.h <<_ACEOF
7399 #define HAVE_LIBSOCKET 1
7402 LIBS="-lsocket $LIBS"
7407 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
7408 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
7409 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 ac_check_lib_save_LIBS=$LIBS
7414 cat >conftest.$ac_ext <<_ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7421 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>conftest.er1
7440 grep -v '^ *+' conftest.er1 >conftest.err
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
7445 { ac_try='test -z "$ac_c_werror_flag"
7446 || test ! -s conftest.err'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; } &&
7452 { ac_try='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_cv_lib_nsl_inet_ntoa=yes
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 ac_cv_lib_nsl_inet_ntoa=no
7465 rm -f conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467 LIBS=$ac_check_lib_save_LIBS
7469 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
7470 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
7471 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
7472 cat >>confdefs.h <<_ACEOF
7473 #define HAVE_LIBNSL 1
7486 echo "$as_me:$LINENO: checking whether to use purify" >&5
7487 echo $ECHO_N "checking whether to use purify... $ECHO_C" >&6
7489 # Check whether --with-purify or --without-purify was given.
7490 if test "${with_purify+set}" = set; then
7491 withval="$with_purify"
7492 use_purify="$withval"
7497 case "$use_purify" in
7501 # Extract the first word of "purify", so it can be a program name with args.
7502 set dummy purify; ac_word=$2
7503 echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505 if test "${ac_cv_path_purify_path+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 case $purify_path in
7510 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
7531 purify_path=$ac_cv_path_purify_path
7533 if test -n "$purify_path"; then
7534 echo "$as_me:$LINENO: result: $purify_path" >&5
7535 echo "${ECHO_T}$purify_path" >&6
7537 echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7543 purify_path="$use_purify"
7547 case "$use_purify" in
7549 echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6
7554 if test -f $purify_path || test $purify_path = purify; then
7555 echo "$as_me:$LINENO: result: $purify_path" >&5
7556 echo "${ECHO_T}$purify_path" >&6
7557 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
7558 PURIFY="$purify_path $PURIFYFLAGS"
7560 { { echo "$as_me:$LINENO: error: $purify_path not found.
7562 Please choose the proper path with the following command:
7564 configure --with-purify=PATH
7566 echo "$as_me: error: $purify_path not found.
7568 Please choose the proper path with the following command:
7570 configure --with-purify=PATH
7572 { (exit 1); exit 1; }; }
7580 # GNU libtool support
7583 # Check whether --with-libtool or --without-libtool was given.
7584 if test "${with_libtool+set}" = set; then
7585 withval="$with_libtool"
7586 use_libtool="$withval"
7591 case $use_libtool in
7593 # Check whether --enable-shared or --disable-shared was given.
7594 if test "${enable_shared+set}" = set; then
7595 enableval="$enable_shared"
7596 p=${PACKAGE-default}
7598 yes) enable_shared=yes ;;
7599 no) enable_shared=no ;;
7602 # Look at the argument we got. We use all the common list separators.
7603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7604 for pkg in $enableval; do
7606 if test "X$pkg" = "X$p"; then
7617 # Check whether --enable-static or --disable-static was given.
7618 if test "${enable_static+set}" = set; then
7619 enableval="$enable_static"
7620 p=${PACKAGE-default}
7622 yes) enable_static=yes ;;
7623 no) enable_static=no ;;
7626 # Look at the argument we got. We use all the common list separators.
7627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7628 for pkg in $enableval; do
7630 if test "X$pkg" = "X$p"; then
7641 # Check whether --enable-fast-install or --disable-fast-install was given.
7642 if test "${enable_fast_install+set}" = set; then
7643 enableval="$enable_fast_install"
7644 p=${PACKAGE-default}
7646 yes) enable_fast_install=yes ;;
7647 no) enable_fast_install=no ;;
7649 enable_fast_install=no
7650 # Look at the argument we got. We use all the common list separators.
7651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652 for pkg in $enableval; do
7654 if test "X$pkg" = "X$p"; then
7655 enable_fast_install=yes
7662 enable_fast_install=yes
7665 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7666 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
7667 if test "${lt_cv_path_SED+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 # Loop through the user's path and test for sed and gsed.
7671 # Then use that list of sed's as ones to test for truncation.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for lt_ac_prog in sed gsed; do
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7680 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7687 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7688 # along with /bin/sed that truncates output.
7689 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7690 test ! -f $lt_ac_sed && break
7691 cat /dev/null > conftest.in
7693 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7694 # Check for GNU sed and select it if it is found.
7695 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7696 lt_cv_path_SED=$lt_ac_sed
7700 cat conftest.in conftest.in >conftest.tmp
7701 mv conftest.tmp conftest.in
7702 cp conftest.in conftest.nl
7704 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7705 cmp -s conftest.out conftest.nl || break
7706 # 10000 chars as input seems more than enough
7707 test $lt_ac_count -gt 10 && break
7708 lt_ac_count=`expr $lt_ac_count + 1`
7709 if test $lt_ac_count -gt $lt_ac_max; then
7710 lt_ac_max=$lt_ac_count
7711 lt_cv_path_SED=$lt_ac_sed
7719 echo "$as_me:$LINENO: result: $SED" >&5
7720 echo "${ECHO_T}$SED" >&6
7723 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7724 if test "${with_gnu_ld+set}" = set; then
7725 withval="$with_gnu_ld"
7726 test "$withval" = no || with_gnu_ld=yes
7731 if test "$GCC" = yes; then
7732 # Check if gcc -print-prog-name=ld gives a path.
7733 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7734 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7737 # gcc leaves a trailing carriage return which upsets mingw
7738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7743 # Accept absolute paths.
7745 re_direlt='/[^/][^/]*/\.\./'
7746 # Canonicalize the pathname of ld
7747 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7748 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7749 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7751 test -z "$LD" && LD="$ac_prog"
7754 # If it fails, then pretend we aren't using GCC.
7758 # If it is relative, then search for the first ld in PATH.
7762 elif test "$with_gnu_ld" = yes; then
7763 echo "$as_me:$LINENO: checking for GNU ld" >&5
7764 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7766 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7767 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7769 if test "${lt_cv_path_LD+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 if test -z "$LD"; then
7773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7774 for ac_dir in $PATH; do
7776 test -z "$ac_dir" && ac_dir=.
7777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7778 lt_cv_path_LD="$ac_dir/$ac_prog"
7779 # Check to see if the program is GNU ld. I'd rather use --version,
7780 # but apparently some GNU ld's only accept -v.
7781 # Break only if it was the GNU/non-GNU ld that we prefer.
7782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7783 *GNU* | *'with BFD'*)
7784 test "$with_gnu_ld" != no && break
7787 test "$with_gnu_ld" != yes && break
7794 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7799 if test -n "$LD"; then
7800 echo "$as_me:$LINENO: result: $LD" >&5
7801 echo "${ECHO_T}$LD" >&6
7803 echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6
7806 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7807 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7808 { (exit 1); exit 1; }; }
7809 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7810 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7811 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7815 case `$LD -v 2>&1 </dev/null` in
7816 *GNU* | *'with BFD'*)
7817 lt_cv_prog_gnu_ld=yes
7820 lt_cv_prog_gnu_ld=no
7824 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7825 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7826 with_gnu_ld=$lt_cv_prog_gnu_ld
7829 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7830 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7831 if test "${lt_cv_ld_reload_flag+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 lt_cv_ld_reload_flag='-r'
7836 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7837 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7838 reload_flag=$lt_cv_ld_reload_flag
7839 case $reload_flag in
7841 *) reload_flag=" $reload_flag" ;;
7843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7846 if test "$GCC" = yes; then
7847 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
7849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7854 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7855 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7856 if test "${lt_cv_path_NM+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 if test -n "$NM"; then
7860 # Let the user override the test.
7863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7864 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7866 test -z "$ac_dir" && ac_dir=.
7867 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7868 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7869 # Check to see if the nm accepts a BSD-compat flag.
7870 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7871 # nm: unknown option "B" ignored
7872 # Tru64's nm complains that /dev/null is an invalid object file
7873 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7874 */dev/null* | *'Invalid file or object type'*)
7875 lt_cv_path_NM="$tmp_nm -B"
7879 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7881 lt_cv_path_NM="$tmp_nm -p"
7885 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7886 continue # so that we can try to find one that supports BSD flags
7893 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7896 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7897 echo "${ECHO_T}$lt_cv_path_NM" >&6
7900 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7901 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7903 if test "$LN_S" = "ln -s"; then
7904 echo "$as_me:$LINENO: result: yes" >&5
7905 echo "${ECHO_T}yes" >&6
7907 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7908 echo "${ECHO_T}no, using $LN_S" >&6
7911 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7912 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7913 if test "${lt_cv_deplibs_check_method+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 lt_cv_file_magic_cmd='$MAGIC_CMD'
7917 lt_cv_file_magic_test_file=
7918 lt_cv_deplibs_check_method='unknown'
7919 # Need to set the preceding variable on all platforms that support
7920 # interlibrary dependencies.
7921 # 'none' -- dependencies not supported.
7922 # `unknown' -- same as none, but documents that we really don't know.
7923 # 'pass_all' -- all dependencies passed with no checks.
7924 # 'test_compile' -- check by making test program.
7925 # 'file_magic [[regex]]' -- check by looking for files in library path
7926 # which responds to the $file_magic_cmd with a given extended regex.
7927 # If you have `file' or equivalent on your system and you're not sure
7928 # whether `pass_all' will *always* work, you probably want this one.
7932 lt_cv_deplibs_check_method=pass_all
7936 lt_cv_deplibs_check_method=pass_all
7940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7941 lt_cv_file_magic_cmd='/usr/bin/file -L'
7942 lt_cv_file_magic_test_file=/shlib/libc.so
7946 # func_win32_libid is a shell function defined in ltmain.sh
7947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7948 lt_cv_file_magic_cmd='func_win32_libid'
7952 # Base MSYS/MinGW do not provide the 'file' command needed by
7953 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7954 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7955 lt_cv_file_magic_cmd='$OBJDUMP -f'
7958 darwin* | rhapsody*)
7959 lt_cv_deplibs_check_method=pass_all
7962 freebsd* | kfreebsd*-gnu)
7963 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7966 # Not sure whether the presence of OpenBSD here was a mistake.
7967 # Let's accept both of them until this is cleared up.
7968 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7969 lt_cv_file_magic_cmd=/usr/bin/file
7970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7974 lt_cv_deplibs_check_method=pass_all
7979 lt_cv_deplibs_check_method=pass_all
7982 hpux10.20* | hpux11*)
7983 lt_cv_file_magic_cmd=/usr/bin/file
7986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7987 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7990 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]'
7991 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8000 irix5* | irix6* | nonstopux*)
8002 *-32|*"-32 ") libmagic=32-bit;;
8003 *-n32|*"-n32 ") libmagic=N32;;
8004 *-64|*"-64 ") libmagic=64-bit;;
8005 *) libmagic=never-match;;
8007 lt_cv_deplibs_check_method=pass_all
8010 # This must be Linux ELF.
8012 lt_cv_deplibs_check_method=pass_all
8016 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8025 lt_cv_file_magic_cmd=/usr/bin/file
8026 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8030 lt_cv_deplibs_check_method=unknown
8034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8041 osf3* | osf4* | osf5*)
8042 lt_cv_deplibs_check_method=pass_all
8046 lt_cv_deplibs_check_method=pass_all
8050 lt_cv_deplibs_check_method=pass_all
8053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8054 case $host_vendor in
8056 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]'
8057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8060 lt_cv_deplibs_check_method=pass_all
8063 lt_cv_file_magic_cmd='/bin/file'
8064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8067 lt_cv_file_magic_cmd='/bin/file'
8068 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8069 lt_cv_file_magic_test_file=/lib/libc.so
8072 lt_cv_deplibs_check_method=pass_all
8077 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8078 lt_cv_deplibs_check_method=pass_all
8083 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8084 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
8085 file_magic_cmd=$lt_cv_file_magic_cmd
8086 deplibs_check_method=$lt_cv_deplibs_check_method
8087 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8092 # If no C compiler was specified, use CC.
8095 # Allow CC to be a program name with arguments.
8098 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8099 if test "${enable_libtool_lock+set}" = set; then
8100 enableval="$enable_libtool_lock"
8103 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8105 # Some flags need to be propagated to the compiler or linker for good
8109 # Find out which ABI we are using.
8110 echo 'int i;' > conftest.$ac_ext
8111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112 (eval $ac_compile) 2>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; then
8116 case `/usr/bin/file conftest.$ac_objext` in
8128 # Find out which ABI we are using.
8129 echo '#line 8129 "configure"' > conftest.$ac_ext
8130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8131 (eval $ac_compile) 2>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; then
8135 if test "$lt_cv_prog_gnu_ld" = yes; then
8136 case `/usr/bin/file conftest.$ac_objext` in
8138 LD="${LD-ld} -melf32bsmip"
8141 LD="${LD-ld} -melf32bmipn32"
8144 LD="${LD-ld} -melf64bmip"
8148 case `/usr/bin/file conftest.$ac_objext` in
8164 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8165 # Find out which ABI we are using.
8166 echo 'int i;' > conftest.$ac_ext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 (eval $ac_compile) 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; then
8172 case "`/usr/bin/file conftest.o`" in
8176 LD="${LD-ld} -m elf_i386"
8178 ppc64-*linux*|powerpc64-*linux*)
8179 LD="${LD-ld} -m elf32ppclinux"
8182 LD="${LD-ld} -m elf_s390"
8185 LD="${LD-ld} -m elf32_sparc"
8192 LD="${LD-ld} -m elf_x86_64"
8194 ppc*-*linux*|powerpc*-*linux*)
8195 LD="${LD-ld} -m elf64ppc"
8198 LD="${LD-ld} -m elf64_s390"
8201 LD="${LD-ld} -m elf64_sparc"
8211 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8212 SAVE_CFLAGS="$CFLAGS"
8213 CFLAGS="$CFLAGS -belf"
8214 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8215 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
8216 if test "${lt_cv_cc_needs_belf+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 ac_cpp='$CPP $CPPFLAGS'
8221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8225 cat >conftest.$ac_ext <<_ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242 (eval $ac_link) 2>conftest.er1
8244 grep -v '^ *+' conftest.er1 >conftest.err
8246 cat conftest.err >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -z "$ac_c_werror_flag"
8250 || test ! -s conftest.err'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest$ac_exeext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 lt_cv_cc_needs_belf=yes
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8267 lt_cv_cc_needs_belf=no
8269 rm -f conftest.err conftest.$ac_objext \
8270 conftest$ac_exeext conftest.$ac_ext
8272 ac_cpp='$CPP $CPPFLAGS'
8273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8278 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8279 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
8280 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8281 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8282 CFLAGS="$SAVE_CFLAGS"
8288 need_locks="$enable_libtool_lock"
8292 for ac_header in dlfcn.h
8294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8296 echo "$as_me:$LINENO: checking for $ac_header" >&5
8297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8304 # Is the header compilable?
8305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8307 cat >conftest.$ac_ext <<_ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313 $ac_includes_default
8314 #include <$ac_header>
8316 rm -f conftest.$ac_objext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8318 (eval $ac_compile) 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag"
8326 || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest.$ac_objext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_header_compiler=yes
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ac_header_compiler=no
8345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8347 echo "${ECHO_T}$ac_header_compiler" >&6
8349 # Is the header present?
8350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 #include <$ac_header>
8360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8363 grep -v '^ *+' conftest.er1 >conftest.err
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } >/dev/null; then
8368 if test -s conftest.err; then
8369 ac_cpp_err=$ac_c_preproc_warn_flag
8370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8377 if test -z "$ac_cpp_err"; then
8378 ac_header_preproc=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_header_preproc=no
8385 rm -f conftest.err conftest.$ac_ext
8386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8387 echo "${ECHO_T}$ac_header_preproc" >&6
8389 # So? What about this header?
8390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8396 ac_header_preproc=yes
8399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8413 ## ------------------------------------------ ##
8414 ## Report this to the AC_PACKAGE_NAME lists. ##
8415 ## ------------------------------------------ ##
8418 sed "s/^/$as_me: WARNING: /" >&2
8421 echo "$as_me:$LINENO: checking for $ac_header" >&5
8422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 eval "$as_ac_Header=\$ac_header_preproc"
8428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8442 ac_cpp='$CXXCPP $CPPFLAGS'
8443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8446 if test -n "$ac_tool_prefix"; then
8447 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8451 echo "$as_me:$LINENO: checking for $ac_word" >&5
8452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8453 if test "${ac_cv_prog_CXX+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 if test -n "$CXX"; then
8457 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8476 if test -n "$CXX"; then
8477 echo "$as_me:$LINENO: result: $CXX" >&5
8478 echo "${ECHO_T}$CXX" >&6
8480 echo "$as_me:$LINENO: result: no" >&5
8481 echo "${ECHO_T}no" >&6
8484 test -n "$CXX" && break
8487 if test -z "$CXX"; then
8489 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8491 # Extract the first word of "$ac_prog", so it can be a program name with args.
8492 set dummy $ac_prog; ac_word=$2
8493 echo "$as_me:$LINENO: checking for $ac_word" >&5
8494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8495 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 if test -n "$ac_ct_CXX"; then
8499 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508 ac_cv_prog_ac_ct_CXX="$ac_prog"
8509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8518 if test -n "$ac_ct_CXX"; then
8519 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8520 echo "${ECHO_T}$ac_ct_CXX" >&6
8522 echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8526 test -n "$ac_ct_CXX" && break
8528 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8534 # Provide some information about the compiler.
8535 echo "$as_me:$LINENO:" \
8536 "checking for C++ compiler version" >&5
8537 ac_compiler=`set X $ac_compile; echo $2`
8538 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8539 (eval $ac_compiler --version </dev/null >&5) 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }
8543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8544 (eval $ac_compiler -v </dev/null >&5) 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }
8548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8549 (eval $ac_compiler -V </dev/null >&5) 2>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }
8554 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8555 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8556 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8577 rm -f conftest.$ac_objext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8579 (eval $ac_compile) 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_cxx_werror_flag"
8587 || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest.$ac_objext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8612 GXX=`test $ac_compiler_gnu = yes && echo yes`
8613 ac_test_CXXFLAGS=${CXXFLAGS+set}
8614 ac_save_CXXFLAGS=$CXXFLAGS
8616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8618 if test "${ac_cv_prog_cxx_g+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8636 rm -f conftest.$ac_objext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>conftest.er1
8640 grep -v '^ *+' conftest.er1 >conftest.err
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -z "$ac_cxx_werror_flag"
8646 || test ! -s conftest.err'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try='test -s conftest.$ac_objext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_prog_cxx_g=yes
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8667 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8668 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8669 if test "$ac_test_CXXFLAGS" = set; then
8670 CXXFLAGS=$ac_save_CXXFLAGS
8671 elif test $ac_cv_prog_cxx_g = yes; then
8672 if test "$GXX" = yes; then
8678 if test "$GXX" = yes; then
8684 for ac_declaration in \
8686 'extern "C" void std::exit (int) throw (); using std::exit;' \
8687 'extern "C" void std::exit (int); using std::exit;' \
8688 'extern "C" void exit (int) throw ();' \
8689 'extern "C" void exit (int);' \
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8708 rm -f conftest.$ac_objext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8710 (eval $ac_compile) 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_cxx_werror_flag"
8718 || test ! -s conftest.err'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; } &&
8724 { ac_try='test -s conftest.$ac_objext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8757 grep -v '^ *+' conftest.er1 >conftest.err
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -z "$ac_cxx_werror_flag"
8763 || test ! -s conftest.err'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest.$ac_objext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8784 if test -n "$ac_declaration"; then
8785 echo '#ifdef __cplusplus' >>confdefs.h
8786 echo $ac_declaration >>confdefs.h
8787 echo '#endif' >>confdefs.h
8791 ac_cpp='$CXXCPP $CPPFLAGS'
8792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8798 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8799 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8800 (test "X$CXX" != "Xg++"))) ; then
8802 ac_cpp='$CXXCPP $CPPFLAGS'
8803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8806 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8807 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8808 if test -z "$CXXCPP"; then
8809 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 # Double quotes because CXXCPP needs to be expanded
8813 for CXXCPP in "$CXX -E" "/lib/cpp"
8816 for ac_cxx_preproc_warn_flag in '' yes
8818 # Use a header file that comes with gcc, so configuring glibc
8819 # with a fresh cross-compiler works.
8820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8821 # <limits.h> exists even on freestanding compilers.
8822 # On the NeXT, cc -E runs the code through the compiler's parser,
8823 # not just through cpp. "Syntax error" is here to catch this case.
8824 cat >conftest.$ac_ext <<_ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8831 # include <limits.h>
8833 # include <assert.h>
8837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8840 grep -v '^ *+' conftest.er1 >conftest.err
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } >/dev/null; then
8845 if test -s conftest.err; then
8846 ac_cpp_err=$ac_cxx_preproc_warn_flag
8847 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8854 if test -z "$ac_cpp_err"; then
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8860 # Broken: fails on valid input.
8863 rm -f conftest.err conftest.$ac_ext
8865 # OK, works on sane cases. Now check whether non-existent headers
8866 # can be detected and how.
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 #include <ac_nonexistent.h>
8875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8878 grep -v '^ *+' conftest.er1 >conftest.err
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } >/dev/null; then
8883 if test -s conftest.err; then
8884 ac_cpp_err=$ac_cxx_preproc_warn_flag
8885 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8892 if test -z "$ac_cpp_err"; then
8893 # Broken: success on invalid input.
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 # Passes both tests.
8903 rm -f conftest.err conftest.$ac_ext
8906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8907 rm -f conftest.err conftest.$ac_ext
8908 if $ac_preproc_ok; then
8913 ac_cv_prog_CXXCPP=$CXXCPP
8916 CXXCPP=$ac_cv_prog_CXXCPP
8918 ac_cv_prog_CXXCPP=$CXXCPP
8920 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8921 echo "${ECHO_T}$CXXCPP" >&6
8923 for ac_cxx_preproc_warn_flag in '' yes
8925 # Use a header file that comes with gcc, so configuring glibc
8926 # with a fresh cross-compiler works.
8927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8928 # <limits.h> exists even on freestanding compilers.
8929 # On the NeXT, cc -E runs the code through the compiler's parser,
8930 # not just through cpp. "Syntax error" is here to catch this case.
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8938 # include <limits.h>
8940 # include <assert.h>
8944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8947 grep -v '^ *+' conftest.er1 >conftest.err
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } >/dev/null; then
8952 if test -s conftest.err; then
8953 ac_cpp_err=$ac_cxx_preproc_warn_flag
8954 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8961 if test -z "$ac_cpp_err"; then
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 # Broken: fails on valid input.
8970 rm -f conftest.err conftest.$ac_ext
8972 # OK, works on sane cases. Now check whether non-existent headers
8973 # can be detected and how.
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980 #include <ac_nonexistent.h>
8982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } >/dev/null; then
8990 if test -s conftest.err; then
8991 ac_cpp_err=$ac_cxx_preproc_warn_flag
8992 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8999 if test -z "$ac_cpp_err"; then
9000 # Broken: success on invalid input.
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 # Passes both tests.
9010 rm -f conftest.err conftest.$ac_ext
9013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9014 rm -f conftest.err conftest.$ac_ext
9015 if $ac_preproc_ok; then
9018 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9019 See \`config.log' for more details." >&5
9020 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9021 See \`config.log' for more details." >&2;}
9022 { (exit 1); exit 1; }; }
9026 ac_cpp='$CXXCPP $CPPFLAGS'
9027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9035 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9036 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9037 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9038 if test -n "$ac_tool_prefix"; then
9039 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
9041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9043 echo "$as_me:$LINENO: checking for $ac_word" >&5
9044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9045 if test "${ac_cv_prog_F77+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 if test -n "$F77"; then
9049 ac_cv_prog_F77="$F77" # Let the user override the test.
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9068 if test -n "$F77"; then
9069 echo "$as_me:$LINENO: result: $F77" >&5
9070 echo "${ECHO_T}$F77" >&6
9072 echo "$as_me:$LINENO: result: no" >&5
9073 echo "${ECHO_T}no" >&6
9076 test -n "$F77" && break
9079 if test -z "$F77"; then
9081 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
9083 # Extract the first word of "$ac_prog", so it can be a program name with args.
9084 set dummy $ac_prog; ac_word=$2
9085 echo "$as_me:$LINENO: checking for $ac_word" >&5
9086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9087 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 if test -n "$ac_ct_F77"; then
9091 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 test -z "$as_dir" && as_dir=.
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100 ac_cv_prog_ac_ct_F77="$ac_prog"
9101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 ac_ct_F77=$ac_cv_prog_ac_ct_F77
9110 if test -n "$ac_ct_F77"; then
9111 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9112 echo "${ECHO_T}$ac_ct_F77" >&6
9114 echo "$as_me:$LINENO: result: no" >&5
9115 echo "${ECHO_T}no" >&6
9118 test -n "$ac_ct_F77" && break
9125 # Provide some information about the compiler.
9126 echo "$as_me:9126:" \
9127 "checking for Fortran 77 compiler version" >&5
9128 ac_compiler=`set X $ac_compile; echo $2`
9129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9130 (eval $ac_compiler --version </dev/null >&5) 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }
9134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9135 (eval $ac_compiler -v </dev/null >&5) 2>&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }
9139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9140 (eval $ac_compiler -V </dev/null >&5) 2>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }
9146 # If we don't use `.F' as extension, the preprocessor is not run on the
9147 # input file. (Note that this only needs to work for GNU compilers.)
9150 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9151 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
9152 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 cat >conftest.$ac_ext <<_ACEOF
9163 rm -f conftest.$ac_objext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9165 (eval $ac_compile) 2>conftest.er1
9167 grep -v '^ *+' conftest.er1 >conftest.err
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_f77_werror_flag"
9173 || test ! -s conftest.err'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest.$ac_objext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9193 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9196 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9197 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
9199 ac_test_FFLAGS=${FFLAGS+set}
9200 ac_save_FFLAGS=$FFLAGS
9202 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9203 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
9204 if test "${ac_cv_prog_f77_g+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 cat >conftest.$ac_ext <<_ACEOF
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>conftest.er1
9217 grep -v '^ *+' conftest.er1 >conftest.err
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } &&
9222 { ac_try='test -z "$ac_f77_werror_flag"
9223 || test ! -s conftest.err'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; } &&
9229 { ac_try='test -s conftest.$ac_objext'
9230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; }; then
9235 ac_cv_prog_f77_g=yes
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9245 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9246 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
9247 if test "$ac_test_FFLAGS" = set; then
9248 FFLAGS=$ac_save_FFLAGS
9249 elif test $ac_cv_prog_f77_g = yes; then
9250 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9256 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9263 G77=`test $ac_compiler_gnu = yes && echo yes`
9265 ac_cpp='$CPP $CPPFLAGS'
9266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9272 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9274 # find the maximum length of command line arguments
9275 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9276 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
9277 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 # On DJGPP, this test can blow up pretty badly due to problems in libc
9286 # (any single argument exceeding 2000 bytes causes a buffer overrun
9287 # during glob expansion). Even if it were fixed, the result of this
9288 # check would be larger than it should be.
9289 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9293 # Under GNU Hurd, this test is not required because there is
9294 # no limit to the length of command line arguments.
9295 # Libtool will interpret -1 as no limit whatsoever
9296 lt_cv_sys_max_cmd_len=-1;
9300 # On Win9x/ME, this test blows up -- it succeeds, but takes
9301 # about 5 minutes as the teststring grows exponentially.
9302 # Worse, since 9x/ME are not pre-emptively multitasking,
9303 # you end up with a "frozen" computer, even though with patience
9304 # the test eventually succeeds (with a max line length of 256k).
9305 # Instead, let's just punt: use the minimum linelength reported by
9306 # all of the supported platforms: 8192 (on NT/2K/XP).
9307 lt_cv_sys_max_cmd_len=8192;
9311 # On AmigaOS with pdksh, this test takes hours, literally.
9312 # So we just punt and use a minimum line length of 8192.
9313 lt_cv_sys_max_cmd_len=8192;
9316 netbsd* | freebsd* | openbsd* | darwin* )
9317 # This has been around since 386BSD, at least. Likely further.
9318 if test -x /sbin/sysctl; then
9319 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9320 elif test -x /usr/sbin/sysctl; then
9321 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9323 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
9325 # And add a safety zone
9326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9330 # If test is not a shell built-in, we'll probably end up computing a
9331 # maximum length that is only half of the actual maximum length, but
9333 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9334 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9335 = "XX$teststring") >/dev/null 2>&1 &&
9336 new_result=`expr "X$teststring" : ".*" 2>&1` &&
9337 lt_cv_sys_max_cmd_len=$new_result &&
9338 test $i != 17 # 1/2 MB should be enough
9341 teststring=$teststring$teststring
9344 # Add a significant safety factor because C++ compilers can tack on massive
9345 # amounts of additional arguments before passing them to the linker.
9346 # It appears as though 1/2 is a usable value.
9347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9353 if test -n $lt_cv_sys_max_cmd_len ; then
9354 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9355 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9357 echo "$as_me:$LINENO: result: none" >&5
9358 echo "${ECHO_T}none" >&6
9364 # Check for command to grab the raw symbol name followed by C symbol from nm.
9365 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9366 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9367 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 # These are sane defaults that work on at least a few old systems.
9372 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9374 # Character class describing NM global symbol codes.
9375 symcode='[BCDEGRST]'
9377 # Regexp to match symbols that can be accessed directly from C.
9378 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9380 # Transform the above into a raw symbol and a C symbol.
9381 symxfrm='\1 \2\3 \3'
9383 # Transform an extracted symbol line into a proper C declaration
9384 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9386 # Transform an extracted symbol line into symbol name and symbol address
9387 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'"
9389 # Define system-specific variables.
9394 cygwin* | mingw* | pw32*)
9395 symcode='[ABCDGISTW]'
9397 hpux*) # Its linker distinguishes data from code symbols
9398 if test "$host_cpu" = ia64; then
9399 symcode='[ABCDEGRST]'
9401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9402 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'"
9405 if test "$host_cpu" = ia64; then
9406 symcode='[ABCDGIRSTW]'
9407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9408 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'"
9412 symcode='[BCDEGRST]'
9415 symcode='[BCDEGQRST]'
9425 # Handle CRLF in mingw tool chain
9429 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9433 # If we're using GNU nm, then use its standard symbol codes.
9434 case `$NM -V 2>&1` in
9435 *GNU* | *'with BFD'*)
9436 symcode='[ABCDGIRSTW]' ;;
9439 # Try without a prefix undercore, then with it.
9440 for ac_symprfx in "" "_"; do
9442 # Write the raw and C identifiers.
9443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9445 # Check to see that the pipe works correctly.
9449 cat > conftest.$ac_ext <<EOF
9454 void nm_test_func(){}
9458 int main(){nm_test_var='a';nm_test_func();return(0);}
9461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; then
9466 # Now try to grab the symbols.
9468 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9469 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } && test -s "$nlist"; then
9473 # Try sorting and uniquifying the output.
9474 if sort "$nlist" | uniq > "$nlist"T; then
9475 mv -f "$nlist"T "$nlist"
9480 # Make sure that we snagged all the symbols we need.
9481 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9482 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9483 cat <<EOF > conftest.$ac_ext
9489 # Now generate the symbol file.
9490 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9492 cat <<EOF >> conftest.$ac_ext
9493 #if defined (__STDC__) && __STDC__
9494 # define lt_ptr_t void *
9496 # define lt_ptr_t char *
9500 /* The mapping between symbol names and symbols. */
9505 lt_preloaded_symbols[] =
9508 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9509 cat <<\EOF >> conftest.$ac_ext
9517 # Now try linking the two files.
9518 mv conftest.$ac_objext conftstm.$ac_objext
9519 lt_save_LIBS="$LIBS"
9520 lt_save_CFLAGS="$CFLAGS"
9521 LIBS="conftstm.$ac_objext"
9522 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9530 LIBS="$lt_save_LIBS"
9531 CFLAGS="$lt_save_CFLAGS"
9533 echo "cannot find nm_test_func in $nlist" >&5
9536 echo "cannot find nm_test_var in $nlist" >&5
9539 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9542 echo "$progname: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9545 rm -f conftest* conftst*
9547 # Do not use the global_symbol_pipe unless it works.
9548 if test "$pipe_works" = yes; then
9551 lt_cv_sys_global_symbol_pipe=
9557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9558 lt_cv_sys_global_symbol_to_cdecl=
9560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9561 echo "$as_me:$LINENO: result: failed" >&5
9562 echo "${ECHO_T}failed" >&6
9564 echo "$as_me:$LINENO: result: ok" >&5
9565 echo "${ECHO_T}ok" >&6
9568 echo "$as_me:$LINENO: checking for objdir" >&5
9569 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9570 if test "${lt_cv_objdir+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 rm -f .libs 2>/dev/null
9574 mkdir .libs 2>/dev/null
9575 if test -d .libs; then
9578 # MS-DOS does not allow filenames that begin with a dot.
9581 rmdir .libs 2>/dev/null
9583 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9584 echo "${ECHO_T}$lt_cv_objdir" >&6
9585 objdir=$lt_cv_objdir
9593 # AIX sometimes has problems with the GCC collect2 program. For some
9594 # reason, if we set the COLLECT_NAMES environment variable, the problems
9595 # vanish in a puff of smoke.
9596 if test "X${COLLECT_NAMES+set}" != Xset; then
9598 export COLLECT_NAMES
9603 # Sed substitution that helps us do robust quoting. It backslashifies
9604 # metacharacters that are still active within double-quoted strings.
9605 Xsed='sed -e s/^X//'
9606 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9608 # Same as above, but do not quote variable references.
9609 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9611 # Sed substitution to delay expansion of an escaped shell variable in a
9612 # double_quote_subst'ed string.
9613 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9615 # Sed substitution to avoid accidental globbing in evaled expressions
9616 no_glob_subst='s/\*/\\\*/g'
9622 default_ofile=libtool
9623 can_build_shared=yes
9625 # All known linkers require a `.a' archive for static linking (except M$VC,
9626 # which needs '.lib').
9628 ltmain="$ac_aux_dir/ltmain.sh"
9629 ofile="$default_ofile"
9630 with_gnu_ld="$lt_cv_prog_gnu_ld"
9632 if test -n "$ac_tool_prefix"; then
9633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9634 set dummy ${ac_tool_prefix}ar; ac_word=$2
9635 echo "$as_me:$LINENO: checking for $ac_word" >&5
9636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9637 if test "${ac_cv_prog_AR+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 if test -n "$AR"; then
9641 ac_cv_prog_AR="$AR" # Let the user override the test.
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650 ac_cv_prog_AR="${ac_tool_prefix}ar"
9651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 if test -n "$AR"; then
9661 echo "$as_me:$LINENO: result: $AR" >&5
9662 echo "${ECHO_T}$AR" >&6
9664 echo "$as_me:$LINENO: result: no" >&5
9665 echo "${ECHO_T}no" >&6
9669 if test -z "$ac_cv_prog_AR"; then
9671 # Extract the first word of "ar", so it can be a program name with args.
9672 set dummy ar; ac_word=$2
9673 echo "$as_me:$LINENO: checking for $ac_word" >&5
9674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9675 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 if test -n "$ac_ct_AR"; then
9679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688 ac_cv_prog_ac_ct_AR="ar"
9689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9699 if test -n "$ac_ct_AR"; then
9700 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9701 echo "${ECHO_T}$ac_ct_AR" >&6
9703 echo "$as_me:$LINENO: result: no" >&5
9704 echo "${ECHO_T}no" >&6
9712 if test -n "$ac_tool_prefix"; then
9713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9715 echo "$as_me:$LINENO: checking for $ac_word" >&5
9716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9717 if test "${ac_cv_prog_RANLIB+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 if test -n "$RANLIB"; then
9721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 RANLIB=$ac_cv_prog_RANLIB
9740 if test -n "$RANLIB"; then
9741 echo "$as_me:$LINENO: result: $RANLIB" >&5
9742 echo "${ECHO_T}$RANLIB" >&6
9744 echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6
9749 if test -z "$ac_cv_prog_RANLIB"; then
9750 ac_ct_RANLIB=$RANLIB
9751 # Extract the first word of "ranlib", so it can be a program name with args.
9752 set dummy ranlib; ac_word=$2
9753 echo "$as_me:$LINENO: checking for $ac_word" >&5
9754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9755 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 if test -n "$ac_ct_RANLIB"; then
9759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_ac_ct_RANLIB="ranlib"
9769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9779 if test -n "$ac_ct_RANLIB"; then
9780 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9781 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9783 echo "$as_me:$LINENO: result: no" >&5
9784 echo "${ECHO_T}no" >&6
9787 RANLIB=$ac_ct_RANLIB
9789 RANLIB="$ac_cv_prog_RANLIB"
9792 if test -n "$ac_tool_prefix"; then
9793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9794 set dummy ${ac_tool_prefix}strip; ac_word=$2
9795 echo "$as_me:$LINENO: checking for $ac_word" >&5
9796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797 if test "${ac_cv_prog_STRIP+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 if test -n "$STRIP"; then
9801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 STRIP=$ac_cv_prog_STRIP
9820 if test -n "$STRIP"; then
9821 echo "$as_me:$LINENO: result: $STRIP" >&5
9822 echo "${ECHO_T}$STRIP" >&6
9824 echo "$as_me:$LINENO: result: no" >&5
9825 echo "${ECHO_T}no" >&6
9829 if test -z "$ac_cv_prog_STRIP"; then
9831 # Extract the first word of "strip", so it can be a program name with args.
9832 set dummy strip; ac_word=$2
9833 echo "$as_me:$LINENO: checking for $ac_word" >&5
9834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9835 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 if test -n "$ac_ct_STRIP"; then
9839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848 ac_cv_prog_ac_ct_STRIP="strip"
9849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9859 if test -n "$ac_ct_STRIP"; then
9860 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9861 echo "${ECHO_T}$ac_ct_STRIP" >&6
9863 echo "$as_me:$LINENO: result: no" >&5
9864 echo "${ECHO_T}no" >&6
9869 STRIP="$ac_cv_prog_STRIP"
9874 old_CFLAGS="$CFLAGS"
9876 # Set sane defaults for various variables
9877 test -z "$AR" && AR=ar
9878 test -z "$AR_FLAGS" && AR_FLAGS=cru
9879 test -z "$AS" && AS=as
9880 test -z "$CC" && CC=cc
9881 test -z "$LTCC" && LTCC=$CC
9882 test -z "$DLLTOOL" && DLLTOOL=dlltool
9883 test -z "$LD" && LD=ld
9884 test -z "$LN_S" && LN_S="ln -s"
9885 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9886 test -z "$NM" && NM=nm
9887 test -z "$SED" && SED=sed
9888 test -z "$OBJDUMP" && OBJDUMP=objdump
9889 test -z "$RANLIB" && RANLIB=:
9890 test -z "$STRIP" && STRIP=:
9891 test -z "$ac_objext" && ac_objext=o
9893 # Determine commands to create old-style static archives.
9894 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9895 old_postinstall_cmds='chmod 644 $oldlib'
9896 old_postuninstall_cmds=
9898 if test -n "$RANLIB"; then
9901 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9904 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9907 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9910 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9912 # Only perform the check for file, if the check method requires it
9913 case $deplibs_check_method in
9915 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9916 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9917 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9918 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9926 lt_save_MAGIC_CMD="$MAGIC_CMD"
9927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9928 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9929 for ac_dir in $ac_dummy; do
9931 test -z "$ac_dir" && ac_dir=.
9932 if test -f $ac_dir/${ac_tool_prefix}file; then
9933 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9934 if test -n "$file_magic_test_file"; then
9935 case $deplibs_check_method in
9937 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9939 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9940 $EGREP "$file_magic_regex" > /dev/null; then
9945 *** Warning: the command libtool uses to detect shared libraries,
9946 *** $file_magic_cmd, produces output that libtool cannot recognize.
9947 *** The result is that libtool may fail to recognize shared libraries
9948 *** as such. This will affect the creation of libtool libraries that
9949 *** depend on shared libraries, but programs linked with such libtool
9950 *** libraries will work regardless of this problem. Nevertheless, you
9951 *** may want to report the problem to your system manager and/or to
9952 *** bug-libtool@gnu.org
9962 MAGIC_CMD="$lt_save_MAGIC_CMD"
9967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9968 if test -n "$MAGIC_CMD"; then
9969 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9970 echo "${ECHO_T}$MAGIC_CMD" >&6
9972 echo "$as_me:$LINENO: result: no" >&5
9973 echo "${ECHO_T}no" >&6
9976 if test -z "$lt_cv_path_MAGIC_CMD"; then
9977 if test -n "$ac_tool_prefix"; then
9978 echo "$as_me:$LINENO: checking for file" >&5
9979 echo $ECHO_N "checking for file... $ECHO_C" >&6
9980 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9988 lt_save_MAGIC_CMD="$MAGIC_CMD"
9989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9990 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9991 for ac_dir in $ac_dummy; do
9993 test -z "$ac_dir" && ac_dir=.
9994 if test -f $ac_dir/file; then
9995 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9996 if test -n "$file_magic_test_file"; then
9997 case $deplibs_check_method in
9999 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10001 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10002 $EGREP "$file_magic_regex" > /dev/null; then
10007 *** Warning: the command libtool uses to detect shared libraries,
10008 *** $file_magic_cmd, produces output that libtool cannot recognize.
10009 *** The result is that libtool may fail to recognize shared libraries
10010 *** as such. This will affect the creation of libtool libraries that
10011 *** depend on shared libraries, but programs linked with such libtool
10012 *** libraries will work regardless of this problem. Nevertheless, you
10013 *** may want to report the problem to your system manager and/or to
10014 *** bug-libtool@gnu.org
10024 MAGIC_CMD="$lt_save_MAGIC_CMD"
10029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10030 if test -n "$MAGIC_CMD"; then
10031 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10032 echo "${ECHO_T}$MAGIC_CMD" >&6
10034 echo "$as_me:$LINENO: result: no" >&5
10035 echo "${ECHO_T}no" >&6
10048 enable_win32_dll=no
10050 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10051 if test "${enable_libtool_lock+set}" = set; then
10052 enableval="$enable_libtool_lock"
10055 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10058 # Check whether --with-pic or --without-pic was given.
10059 if test "${with_pic+set}" = set; then
10060 withval="$with_pic"
10061 pic_mode="$withval"
10065 test -z "$pic_mode" && pic_mode=default
10067 # Use C for the default configuration in the libtool script
10071 ac_cpp='$CPP $CPPFLAGS'
10072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10077 # Source file extension for C test sources.
10080 # Object file extension for compiled C test sources.
10084 # Code to be used in simple compile tests
10085 lt_simple_compile_test_code="int some_variable = 0;\n"
10087 # Code to be used in simple link tests
10088 lt_simple_link_test_code='int main(){return(0);}\n'
10091 # If no C compiler was specified, use CC.
10094 # Allow CC to be a program name with arguments.
10099 # Check for any special shared library compilation flags.
10102 if test "$GCC" = no; then
10105 lt_prog_cc_shlib='-belf'
10109 if test -n "$lt_prog_cc_shlib"; then
10110 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10111 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
10112 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
10114 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
10115 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
10116 lt_cv_prog_cc_can_build_shared=no
10122 # Check to make sure the static flag actually works.
10124 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
10125 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
10126 if test "${lt_prog_compiler_static_works+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 lt_prog_compiler_static_works=no
10130 save_LDFLAGS="$LDFLAGS"
10131 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
10132 printf "$lt_simple_link_test_code" > conftest.$ac_ext
10133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10134 # The compiler can only warn and ignore the option if not recognized
10135 # So say no if there are warnings
10136 if test -s conftest.err; then
10137 # Append any errors to the config.log.
10138 cat conftest.err 1>&5
10140 lt_prog_compiler_static_works=yes
10144 LDFLAGS="$save_LDFLAGS"
10147 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10148 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10150 if test x"$lt_prog_compiler_static_works" = xyes; then
10153 lt_prog_compiler_static=
10159 ## There is no encapsulation within the following macros, do not change
10160 ## the running order or otherwise move them around unless you know exactly
10161 ## what you are doing...
10163 lt_prog_compiler_no_builtin_flag=
10165 if test "$GCC" = yes; then
10166 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10169 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10170 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
10171 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 lt_cv_prog_compiler_rtti_exceptions=no
10175 ac_outfile=conftest.$ac_objext
10176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10177 lt_compiler_flag="-fno-rtti -fno-exceptions"
10178 # Insert the option either (1) after the last *FLAGS variable, or
10179 # (2) before a word containing "conftest.", or (3) at the end.
10180 # Note that $ac_compile itself does not contain backslashes and begins
10181 # with a dollar sign (not a hyphen), so the echo should work correctly.
10182 # The option is referenced via a variable to avoid confusing sed.
10183 lt_compile=`echo "$ac_compile" | $SED \
10184 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10186 -e 's:$: $lt_compiler_flag:'`
10187 (eval echo "\"\$as_me:10187: $lt_compile\"" >&5)
10188 (eval "$lt_compile" 2>conftest.err)
10190 cat conftest.err >&5
10191 echo "$as_me:10191: \$? = $ac_status" >&5
10192 if (exit $ac_status) && test -s "$ac_outfile"; then
10193 # The compiler can only warn and ignore the option if not recognized
10194 # So say no if there are warnings
10195 if test ! -s conftest.err; then
10196 lt_cv_prog_compiler_rtti_exceptions=yes
10202 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10203 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
10205 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10206 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10213 lt_prog_compiler_wl=
10214 lt_prog_compiler_pic=
10215 lt_prog_compiler_static=
10217 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10218 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10220 if test "$GCC" = yes; then
10221 lt_prog_compiler_wl='-Wl,'
10222 lt_prog_compiler_static='-static'
10226 # All AIX code is PIC.
10227 if test "$host_cpu" = ia64; then
10228 # AIX 5 now supports IA64 processor
10229 lt_prog_compiler_static='-Bstatic'
10234 # FIXME: we need at least 68020 code to build shared libraries, but
10235 # adding the `-m68020' flag to GCC prevents building anything better,
10237 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10240 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10241 # PIC is the default for these OSes.
10244 mingw* | pw32* | os2*)
10245 # This hack is so that the source file can tell whether it is being
10246 # built for inclusion in a dll (and should export symbols for example).
10247 lt_prog_compiler_pic='-DDLL_EXPORT'
10250 darwin* | rhapsody*)
10251 # PIC is the default on this platform
10252 # Common symbols not allowed in MH_DYLIB files
10253 lt_prog_compiler_pic='-fno-common'
10257 # Just because we use GCC doesn't mean we suddenly get shared libraries
10258 # on systems that don't support them.
10259 lt_prog_compiler_can_build_shared=no
10264 if test -d /usr/nec; then
10265 lt_prog_compiler_pic=-Kconform_pic
10270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10271 # not for PA HP-UX.
10272 case "$host_cpu" in
10277 lt_prog_compiler_pic='-fPIC'
10283 lt_prog_compiler_pic='-fPIC'
10287 # PORTME Check for flag to pass linker flags through the system compiler.
10290 lt_prog_compiler_wl='-Wl,'
10291 if test "$host_cpu" = ia64; then
10292 # AIX 5 now supports IA64 processor
10293 lt_prog_compiler_static='-Bstatic'
10295 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10299 # PIC is the default on this platform
10300 # Common symbols not allowed in MH_DYLIB files
10301 case "$cc_basename" in
10303 lt_prog_compiler_pic='-qnocommon'
10304 lt_prog_compiler_wl='-Wl,'
10309 mingw* | pw32* | os2*)
10310 # This hack is so that the source file can tell whether it is being
10311 # built for inclusion in a dll (and should export symbols for example).
10312 lt_prog_compiler_pic='-DDLL_EXPORT'
10315 hpux9* | hpux10* | hpux11*)
10316 lt_prog_compiler_wl='-Wl,'
10317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10318 # not for PA HP-UX.
10319 case "$host_cpu" in
10324 lt_prog_compiler_pic='+Z'
10327 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10328 lt_prog_compiler_static='${wl}-a ${wl}archive'
10331 irix5* | irix6* | nonstopux*)
10332 lt_prog_compiler_wl='-Wl,'
10333 # PIC (with -KPIC) is the default.
10334 lt_prog_compiler_static='-non_shared'
10338 lt_prog_compiler_pic='-KPIC'
10339 lt_prog_compiler_static='-Bstatic'
10345 lt_prog_compiler_wl='-Wl,'
10346 lt_prog_compiler_pic='-KPIC'
10347 lt_prog_compiler_static='-static'
10350 lt_prog_compiler_wl='-Wl,'
10351 # All Alpha code is PIC.
10352 lt_prog_compiler_static='-non_shared'
10357 osf3* | osf4* | osf5*)
10358 lt_prog_compiler_wl='-Wl,'
10359 # All OSF/1 code is PIC.
10360 lt_prog_compiler_static='-non_shared'
10364 lt_prog_compiler_pic='-Kpic'
10365 lt_prog_compiler_static='-dn'
10369 lt_prog_compiler_wl='-Wl,'
10370 lt_prog_compiler_pic='-KPIC'
10371 lt_prog_compiler_static='-Bstatic'
10375 lt_prog_compiler_wl='-Qoption ld '
10376 lt_prog_compiler_pic='-PIC'
10377 lt_prog_compiler_static='-Bstatic'
10380 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10381 lt_prog_compiler_wl='-Wl,'
10382 lt_prog_compiler_pic='-KPIC'
10383 lt_prog_compiler_static='-Bstatic'
10387 if test -d /usr/nec ;then
10388 lt_prog_compiler_pic='-Kconform_pic'
10389 lt_prog_compiler_static='-Bstatic'
10394 lt_prog_compiler_pic='-pic'
10395 lt_prog_compiler_static='-Bstatic'
10399 lt_prog_compiler_can_build_shared=no
10404 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10405 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10408 # Check to make sure the PIC flag actually works.
10410 if test -n "$lt_prog_compiler_pic"; then
10412 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10413 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10414 if test "${lt_prog_compiler_pic_works+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 lt_prog_compiler_pic_works=no
10418 ac_outfile=conftest.$ac_objext
10419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10420 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10421 # Insert the option either (1) after the last *FLAGS variable, or
10422 # (2) before a word containing "conftest.", or (3) at the end.
10423 # Note that $ac_compile itself does not contain backslashes and begins
10424 # with a dollar sign (not a hyphen), so the echo should work correctly.
10425 # The option is referenced via a variable to avoid confusing sed.
10426 lt_compile=`echo "$ac_compile" | $SED \
10427 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429 -e 's:$: $lt_compiler_flag:'`
10430 (eval echo "\"\$as_me:10430: $lt_compile\"" >&5)
10431 (eval "$lt_compile" 2>conftest.err)
10433 cat conftest.err >&5
10434 echo "$as_me:10434: \$? = $ac_status" >&5
10435 if (exit $ac_status) && test -s "$ac_outfile"; then
10436 # The compiler can only warn and ignore the option if not recognized
10437 # So say no if there are warnings
10438 if test ! -s conftest.err; then
10439 lt_prog_compiler_pic_works=yes
10445 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10446 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10448 if test x"$lt_prog_compiler_pic_works" = xyes; then
10449 case $lt_prog_compiler_pic in
10451 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10454 lt_prog_compiler_pic=
10455 lt_prog_compiler_can_build_shared=no
10460 # For platforms which do not support PIC, -DPIC is meaningless:
10462 lt_prog_compiler_pic=
10465 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10469 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10470 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10471 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 lt_cv_prog_compiler_c_o=no
10475 $rm -r conftest 2>/dev/null
10479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10481 lt_compiler_flag="-o out/conftest2.$ac_objext"
10482 # Insert the option either (1) after the last *FLAGS variable, or
10483 # (2) before a word containing "conftest.", or (3) at the end.
10484 # Note that $ac_compile itself does not contain backslashes and begins
10485 # with a dollar sign (not a hyphen), so the echo should work correctly.
10486 lt_compile=`echo "$ac_compile" | $SED \
10487 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10489 -e 's:$: $lt_compiler_flag:'`
10490 (eval echo "\"\$as_me:10490: $lt_compile\"" >&5)
10491 (eval "$lt_compile" 2>out/conftest.err)
10493 cat out/conftest.err >&5
10494 echo "$as_me:10494: \$? = $ac_status" >&5
10495 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10497 # The compiler can only warn and ignore the option if not recognized
10498 # So say no if there are warnings
10499 if test ! -s out/conftest.err; then
10500 lt_cv_prog_compiler_c_o=yes
10505 # SGI C++ compiler will create directory out/ii_files/ for
10506 # template instantiation
10507 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10508 $rm out/* && rmdir out
10514 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10515 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10518 hard_links="nottested"
10519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10520 # do not overwrite the value of need_locks provided by the user
10521 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10522 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10527 ln conftest.a conftest.b 2>&5 || hard_links=no
10528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10529 echo "$as_me:$LINENO: result: $hard_links" >&5
10530 echo "${ECHO_T}$hard_links" >&6
10531 if test "$hard_links" = no; then
10532 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10533 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10540 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10541 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10544 allow_undefined_flag=
10545 enable_shared_with_static_runtimes=no
10547 archive_expsym_cmds=
10548 old_archive_From_new_cmds=
10549 old_archive_from_expsyms_cmds=
10550 export_dynamic_flag_spec=
10551 whole_archive_flag_spec=
10552 thread_safe_flag_spec=
10553 hardcode_libdir_flag_spec=
10554 hardcode_libdir_flag_spec_ld=
10555 hardcode_libdir_separator=
10557 hardcode_minus_L=no
10558 hardcode_shlibpath_var=unsupported
10559 link_all_deplibs=unknown
10560 hardcode_automatic=no
10562 module_expsym_cmds=
10563 always_export_symbols=no
10564 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10565 # include_expsyms should be a list of space-separated symbols to be *always*
10566 # included in the symbol list
10568 # exclude_expsyms can be an extended regexp of symbols to exclude
10569 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10570 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10571 # as well as any symbol that contains `d'.
10572 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10573 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10574 # platforms (ab)use it in PIC code, but their linkers get confused if
10575 # the symbol is explicitly referenced. Since portable code cannot
10576 # rely on this symbol name, it's probably fine to never include it in
10577 # preloaded symbol tables.
10578 extract_expsyms_cmds=
10581 cygwin* | mingw* | pw32*)
10582 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10583 # When not using gcc, we currently assume that we are using
10584 # Microsoft Visual C++.
10585 if test "$GCC" != yes; then
10595 if test "$with_gnu_ld" = yes; then
10596 # If archive_cmds runs LD, not CC, wlarc should be empty
10599 # See if GNU ld supports shared libraries.
10601 aix3* | aix4* | aix5*)
10602 # On AIX/PPC, the GNU linker is very broken
10603 if test "$host_cpu" != ia64; then
10607 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10608 *** to be unable to reliably create shared libraries on AIX.
10609 *** Therefore, libtool is disabling shared libraries support. If you
10610 *** really care for shared libraries, you may want to modify your PATH
10611 *** so that a non-GNU linker is found, and then restart.
10618 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)'
10619 hardcode_libdir_flag_spec='-L$libdir'
10620 hardcode_minus_L=yes
10622 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10623 # that the semantics of dynamic libraries on AmigaOS, at least up
10624 # to version 4, is to share data among multiple programs linked
10625 # with the same dynamic library. Since this doesn't match the
10626 # behavior of shared libraries on other platforms, we can't use
10632 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10633 allow_undefined_flag=unsupported
10634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10635 # support --undefined. This deserves some investigation. FIXME
10636 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10642 cygwin* | mingw* | pw32*)
10643 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10644 # as there is no search path for DLLs.
10645 hardcode_libdir_flag_spec='-L$libdir'
10646 allow_undefined_flag=unsupported
10647 always_export_symbols=no
10648 enable_shared_with_static_runtimes=yes
10649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10651 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10653 # If the export-symbols file already is a .def file (1st line
10654 # is EXPORTS), use it as is; otherwise, prepend...
10655 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10656 cp $export_symbols $output_objdir/$soname.def;
10658 echo EXPORTS > $output_objdir/$soname.def;
10659 cat $export_symbols >> $output_objdir/$soname.def;
10661 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10669 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10673 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10678 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10683 *** create shared libraries on Solaris systems. Therefore, libtool
10684 *** is disabling shared libraries support. We urge you to upgrade GNU
10685 *** binutils to release 2.9.1 or newer. Another option is to modify
10686 *** your PATH or compiler configuration so that the native linker is
10687 *** used, and then restart.
10690 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10699 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_direct=yes
10702 hardcode_shlibpath_var=no
10706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10707 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10708 archive_cmds="$tmp_archive_cmds"
10709 supports_anon_versioning=no
10710 case `$LD -v 2>/dev/null` in
10711 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10712 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10713 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10714 *\ 2.11.*) ;; # other 2.11 versions
10715 *) supports_anon_versioning=yes ;;
10717 if test $supports_anon_versioning = yes; then
10718 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10720 $echo "local: *; };" >> $output_objdir/$libname.ver~
10721 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10723 archive_expsym_cmds="$tmp_archive_cmds"
10731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10740 if test "$ld_shlibs" = yes; then
10741 runpath_var=LD_RUN_PATH
10742 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10743 export_dynamic_flag_spec='${wl}--export-dynamic'
10744 # ancient GNU ld didn't support --whole-archive et. al.
10745 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10748 whole_archive_flag_spec=
10752 # PORTME fill in a description of your system's linker (not GNU ld)
10755 allow_undefined_flag=unsupported
10756 always_export_symbols=yes
10757 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'
10758 # Note: this linker hardcodes the directories in LIBPATH if there
10759 # are no directories specified by -L.
10760 hardcode_minus_L=yes
10761 if test "$GCC" = yes && test -z "$link_static_flag"; then
10762 # Neither direct hardcoding nor static linking is supported with a
10764 hardcode_direct=unsupported
10769 if test "$host_cpu" = ia64; then
10770 # On IA64, the linker does run time linking by default, so we don't
10771 # have to do anything special.
10772 aix_use_runtimelinking=no
10773 exp_sym_flag='-Bexport'
10776 # If we're using GNU nm, then we don't want the "-C" option.
10777 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10778 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10779 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'
10781 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'
10783 aix_use_runtimelinking=no
10785 # Test if we are trying to use run time linking or normal
10786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10787 # need to do runtime linking.
10788 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10789 for ld_flag in $LDFLAGS; do
10790 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10791 aix_use_runtimelinking=yes
10797 exp_sym_flag='-bexport'
10798 no_entry_flag='-bnoentry'
10801 # When large executables or shared objects are built, AIX ld can
10802 # have problems creating the table of contents. If linking a library
10803 # or program results in "error TOC overflow" add -mminimal-toc to
10804 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10805 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10808 hardcode_direct=yes
10809 hardcode_libdir_separator=':'
10810 link_all_deplibs=yes
10812 if test "$GCC" = yes; then
10813 case $host_os in aix4.012|aix4.012.*)
10814 # We only want to do this on AIX 4.2 and lower, the check
10815 # below for broken collect2 doesn't work under 4.3+
10816 collect2name=`${CC} -print-prog-name=collect2`
10817 if test -f "$collect2name" && \
10818 strings "$collect2name" | grep resolve_lib_name >/dev/null
10820 # We have reworked collect2
10821 hardcode_direct=yes
10823 # We have old collect2
10824 hardcode_direct=unsupported
10825 # It fails to find uninstalled libraries when the uninstalled
10826 # path is not listed in the libpath. Setting hardcode_minus_L
10827 # to unsupported forces relinking
10828 hardcode_minus_L=yes
10829 hardcode_libdir_flag_spec='-L$libdir'
10830 hardcode_libdir_separator=
10833 shared_flag='-shared'
10836 if test "$host_cpu" = ia64; then
10837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10838 # chokes on -Wl,-G. The following line is correct:
10841 if test "$aix_use_runtimelinking" = yes; then
10842 shared_flag='${wl}-G'
10844 shared_flag='${wl}-bM:SRE'
10849 # It seems that -bexpall does not export symbols beginning with
10850 # underscore (_), so it is better to generate a list of symbols to export.
10851 always_export_symbols=yes
10852 if test "$aix_use_runtimelinking" = yes; then
10853 # Warning - without using the other runtime loading flags (-brtl),
10854 # -berok will link without error, but may produce a broken library.
10855 allow_undefined_flag='-berok'
10856 # Determine the default libpath from the value encoded in an empty executable.
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10874 (eval $ac_link) 2>conftest.er1
10876 grep -v '^ *+' conftest.er1 >conftest.err
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -z "$ac_c_werror_flag"
10882 || test ! -s conftest.err'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest$ac_exeext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10897 # Check for a 64-bit object if we didn't find anything.
10898 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; }
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10905 rm -f conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10910 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"
10912 if test "$host_cpu" = ia64; then
10913 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10914 allow_undefined_flag="-z nodefs"
10915 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"
10917 # Determine the default libpath from the value encoded in an empty executable.
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag"
10943 || test ! -s conftest.err'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
10956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10958 # Check for a 64-bit object if we didn't find anything.
10959 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; }
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10966 rm -f conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10971 # Warning - without using the other run time loading flags,
10972 # -berok will link without error, but may produce a broken library.
10973 no_undefined_flag=' ${wl}-bernotok'
10974 allow_undefined_flag=' ${wl}-berok'
10975 # -bexpall does not export symbols beginning with underscore (_)
10976 always_export_symbols=yes
10977 # Exported symbols can be pulled into shared objects from archives
10978 whole_archive_flag_spec=' '
10979 archive_cmds_need_lc=yes
10980 # This is similar to how AIX traditionally builds it's shared libraries.
10981 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'
10987 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)'
10988 hardcode_libdir_flag_spec='-L$libdir'
10989 hardcode_minus_L=yes
10990 # see comment about different semantics on the GNU ld section
10995 export_dynamic_flag_spec=-rdynamic
10998 cygwin* | mingw* | pw32*)
10999 # When not using gcc, we currently assume that we are using
11000 # Microsoft Visual C++.
11001 # hardcode_libdir_flag_spec is actually meaningless, as there is
11002 # no search path for DLLs.
11003 hardcode_libdir_flag_spec=' '
11004 allow_undefined_flag=unsupported
11005 # Tell ltmain to make .lib files, not .a files.
11007 # Tell ltmain to make .dll files, not .so files.
11009 # FIXME: Setting linknames here is a bad hack.
11010 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11011 # The linker will automatically build a .lib file if we build a DLL.
11012 old_archive_From_new_cmds='true'
11013 # FIXME: Should let the user specify the lib program.
11014 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11015 fix_srcfile_path='`cygpath -w "$srcfile"`'
11016 enable_shared_with_static_runtimes=yes
11019 darwin* | rhapsody*)
11021 rhapsody* | darwin1.[012])
11022 allow_undefined_flag='${wl}-undefined ${wl}suppress'
11025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11026 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11028 case ${MACOSX_DEPLOYMENT_TARGET} in
11030 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11033 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11039 archive_cmds_need_lc=no
11041 hardcode_automatic=yes
11042 hardcode_shlibpath_var=unsupported
11043 whole_archive_flag_spec=''
11044 link_all_deplibs=yes
11045 if test "$GCC" = yes ; then
11046 output_verbose_link_cmd='echo'
11047 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11048 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11049 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11050 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}'
11051 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}'
11053 case "$cc_basename" in
11055 output_verbose_link_cmd='echo'
11056 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11057 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11059 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}'
11060 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}'
11070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11071 hardcode_libdir_flag_spec='-L$libdir'
11072 hardcode_shlibpath_var=no
11079 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11080 # support. Future versions do this automatically, but an explicit c++rt0.o
11081 # does not break anything, and helps significantly (at the cost of a little
11084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11085 hardcode_libdir_flag_spec='-R$libdir'
11086 hardcode_direct=yes
11087 hardcode_shlibpath_var=no
11090 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11093 hardcode_direct=yes
11094 hardcode_minus_L=yes
11095 hardcode_shlibpath_var=no
11098 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11099 freebsd* | kfreebsd*-gnu)
11100 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11101 hardcode_libdir_flag_spec='-R$libdir'
11102 hardcode_direct=yes
11103 hardcode_shlibpath_var=no
11107 if test "$GCC" = yes; then
11108 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'
11110 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'
11112 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11113 hardcode_libdir_separator=:
11114 hardcode_direct=yes
11116 # hardcode_minus_L: Not really in the search PATH,
11117 # but as the default location of the library.
11118 hardcode_minus_L=yes
11119 export_dynamic_flag_spec='${wl}-E'
11123 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11124 case "$host_cpu" in
11126 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11133 case "$host_cpu" in
11135 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11138 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11142 if test "$with_gnu_ld" = no; then
11143 case "$host_cpu" in
11145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11146 hardcode_libdir_flag_spec_ld='+b $libdir'
11147 hardcode_libdir_separator=:
11149 hardcode_shlibpath_var=no
11152 hardcode_libdir_flag_spec='-L$libdir'
11154 hardcode_shlibpath_var=no
11156 # hardcode_minus_L: Not really in the search PATH,
11157 # but as the default location of the library.
11158 hardcode_minus_L=yes
11161 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11162 hardcode_libdir_separator=:
11163 hardcode_direct=yes
11164 export_dynamic_flag_spec='${wl}-E'
11166 # hardcode_minus_L: Not really in the search PATH,
11167 # but as the default location of the library.
11168 hardcode_minus_L=yes
11174 irix5* | irix6* | nonstopux*)
11175 if test "$GCC" = yes; then
11176 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'
11178 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'
11179 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11182 hardcode_libdir_separator=:
11183 link_all_deplibs=yes
11187 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11190 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11192 hardcode_libdir_flag_spec='-R$libdir'
11193 hardcode_direct=yes
11194 hardcode_shlibpath_var=no
11198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11199 hardcode_direct=yes
11200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11201 hardcode_libdir_separator=:
11202 hardcode_shlibpath_var=no
11206 hardcode_direct=yes
11207 hardcode_shlibpath_var=no
11208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11209 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11210 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11212 export_dynamic_flag_spec='${wl}-E'
11215 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11217 hardcode_libdir_flag_spec='-R$libdir'
11220 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11228 hardcode_libdir_flag_spec='-L$libdir'
11229 hardcode_minus_L=yes
11230 allow_undefined_flag=unsupported
11231 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'
11232 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11236 if test "$GCC" = yes; then
11237 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11238 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'
11240 allow_undefined_flag=' -expect_unresolved \*'
11241 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'
11243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11244 hardcode_libdir_separator=:
11247 osf4* | osf5*) # as osf3* with the addition of -msym flag
11248 if test "$GCC" = yes; then
11249 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11250 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'
11251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11253 allow_undefined_flag=' -expect_unresolved \*'
11254 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'
11255 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11256 $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'
11258 # Both c and cxx compiler support -rpath directly
11259 hardcode_libdir_flag_spec='-rpath $libdir'
11261 hardcode_libdir_separator=:
11265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11266 hardcode_shlibpath_var=no
11267 export_dynamic_flag_spec='${wl}-Bexport'
11268 runpath_var=LD_RUN_PATH
11269 hardcode_runpath_var=yes
11273 no_undefined_flag=' -z text'
11274 if test "$GCC" = yes; then
11275 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11276 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11277 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11279 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11281 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11283 hardcode_libdir_flag_spec='-R$libdir'
11284 hardcode_shlibpath_var=no
11286 solaris2.[0-5] | solaris2.[0-5].*) ;;
11287 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
11288 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
11290 link_all_deplibs=yes
11294 if test "x$host_vendor" = xsequent; then
11295 # Use $CC to link under sequent, because it throws in some extra .o
11296 # files that make .init and .fini sections work.
11297 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11299 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11301 hardcode_libdir_flag_spec='-L$libdir'
11302 hardcode_direct=yes
11303 hardcode_minus_L=yes
11304 hardcode_shlibpath_var=no
11308 case $host_vendor in
11310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11311 hardcode_direct=yes # is this really true???
11314 ## LD is ld it makes a PLAMLIB
11315 ## CC just makes a GrossModule.
11316 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11317 reload_cmds='$CC -r -o $output$reload_objs'
11321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11322 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11325 runpath_var='LD_RUN_PATH'
11326 hardcode_shlibpath_var=no
11330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11331 hardcode_shlibpath_var=no
11332 export_dynamic_flag_spec='-Bexport'
11336 if test -d /usr/nec; then
11337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11338 hardcode_shlibpath_var=no
11339 runpath_var=LD_RUN_PATH
11340 hardcode_runpath_var=yes
11346 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11347 hardcode_direct=yes
11348 hardcode_minus_L=no
11349 hardcode_shlibpath_var=no
11350 hardcode_runpath_var=yes
11351 runpath_var=LD_RUN_PATH
11354 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11355 no_undefined_flag='${wl}-z ${wl}text'
11356 if test "$GCC" = yes; then
11357 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11359 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11361 runpath_var='LD_RUN_PATH'
11362 hardcode_shlibpath_var=no
11366 no_undefined_flag=' -z text'
11367 # $CC -shared without GNU ld will not create a library from C++
11368 # object files and a static libstdc++, better avoid it by now
11369 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11370 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11371 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11372 hardcode_libdir_flag_spec=
11373 hardcode_shlibpath_var=no
11374 runpath_var='LD_RUN_PATH'
11378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11379 hardcode_libdir_flag_spec='-L$libdir'
11380 hardcode_shlibpath_var=no
11389 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11390 echo "${ECHO_T}$ld_shlibs" >&6
11391 test "$ld_shlibs" = no && can_build_shared=no
11393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11394 if test "$GCC" = yes; then
11395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11399 # Do we need to explicitly link libc?
11401 case "x$archive_cmds_need_lc" in
11403 # Assume -lc should be added
11404 archive_cmds_need_lc=yes
11406 if test "$enable_shared" = yes && test "$GCC" = yes; then
11407 case $archive_cmds in
11409 # FIXME: we may have to deal with multi-command sequences.
11412 # Test whether the compiler implicitly links with -lc since on some
11413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11414 # to ld, don't add -lc before -lgcc.
11415 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11416 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421 (eval $ac_compile) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } 2>conftest.err; then
11427 libobjs=conftest.$ac_objext
11429 wl=$lt_prog_compiler_wl
11435 lt_save_allow_undefined_flag=$allow_undefined_flag
11436 allow_undefined_flag=
11437 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11438 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }
11443 archive_cmds_need_lc=no
11445 archive_cmds_need_lc=yes
11447 allow_undefined_flag=$lt_save_allow_undefined_flag
11449 cat conftest.err 1>&5
11452 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11453 echo "${ECHO_T}$archive_cmds_need_lc" >&6
11460 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11461 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11462 library_names_spec=
11463 libname_spec='lib$name'
11467 postuninstall_cmds=
11471 shlibpath_overrides_runpath=unknown
11473 dynamic_linker="$host_os ld.so"
11474 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11475 if test "$GCC" = yes; then
11476 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11477 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11478 # if the path contains ";" then we assume it to be the separator
11479 # otherwise default to the standard path separator (i.e. ":") - it is
11480 # assumed that no part of a normal pathname contains ";" but that should
11481 # okay in the real world where ";" in dirpaths is itself problematic.
11482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11487 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11489 need_lib_prefix=unknown
11490 hardcode_into_libs=no
11492 # when you set need_version to no, make sure it does not cause -set_version
11493 # flags to be left without arguments
11494 need_version=unknown
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11500 shlibpath_var=LIBPATH
11502 # AIX 3 has no versioning support, so we append a major version to the name.
11503 soname_spec='${libname}${release}${shared_ext}$major'
11510 hardcode_into_libs=yes
11511 if test "$host_cpu" = ia64; then
11512 # AIX 5 supports IA64
11513 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11514 shlibpath_var=LD_LIBRARY_PATH
11516 # With GCC up to 2.95.x, collect2 would create an import file
11517 # for dependence libraries. The import file would start with
11518 # the line `#! .'. This would cause the generated library to
11519 # depend on `.', always an invalid library. This was fixed in
11520 # development snapshots of GCC prior to 3.0.
11522 aix4 | aix4.[01] | aix4.[01].*)
11523 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11525 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11528 can_build_shared=no
11532 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11533 # soname into executable. Probably we can add versioning support to
11534 # collect2, so additional links can be useful in future.
11535 if test "$aix_use_runtimelinking" = yes; then
11536 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11537 # instead of lib<name>.a to let people know that these are not
11538 # typical AIX shared libraries.
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 # We preserve .a as extension for shared libraries through AIX4.2
11542 # and later when we are not doing run time linking.
11543 library_names_spec='${libname}${release}.a $libname.a'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11546 shlibpath_var=LIBPATH
11551 library_names_spec='$libname.ixlibrary $libname.a'
11552 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11553 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'
11557 library_names_spec='${libname}${shared_ext}'
11558 dynamic_linker="$host_os ld.so"
11559 shlibpath_var=LIBRARY_PATH
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11570 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11571 # the default ld.so.conf also contains /usr/contrib/lib and
11572 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11573 # libtool to hard-code these into programs
11576 cygwin* | mingw* | pw32*)
11577 version_type=windows
11582 case $GCC,$host_os in
11583 yes,cygwin* | yes,mingw* | yes,pw32*)
11584 library_names_spec='$libname.dll.a'
11585 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11586 postinstall_cmds='base_file=`basename \${file}`~
11587 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11588 dldir=$destdir/`dirname \$dlpath`~
11589 test -d \$dldir || mkdir -p \$dldir~
11590 $install_prog $dir/$dlname \$dldir/$dlname'
11591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11592 dlpath=$dir/\$dldll~
11594 shlibpath_overrides_runpath=yes
11598 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11599 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11600 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11603 # MinGW DLLs use traditional 'lib' prefix
11604 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11606 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11607 # It is most probably a Windows format PATH printed by
11608 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11609 # path with ; separators, and with drive letters. We can handle the
11610 # drive letters (cygwin fileutils understands them), so leave them,
11611 # especially as we might pass files found there to a mingw objdump,
11612 # which wouldn't understand a cygwinified path. Ahh.
11613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11619 # pw32 DLLs use 'pw' prefix rather than 'lib'
11620 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11629 dynamic_linker='Win32 ld.exe'
11630 # FIXME: first we should search . and the directory the executable is in
11634 darwin* | rhapsody*)
11635 dynamic_linker="$host_os dyld"
11636 version_type=darwin
11639 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11640 soname_spec='${libname}${release}${major}$shared_ext'
11641 shlibpath_overrides_runpath=yes
11642 shlibpath_var=DYLD_LIBRARY_PATH
11643 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11644 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11645 if test "$GCC" = yes; then
11646 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"`
11648 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11650 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 shlibpath_var=LD_LIBRARY_PATH
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11671 soname_spec='${libname}${release}${shared_ext}$major'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 shlibpath_overrides_runpath=no
11674 hardcode_into_libs=yes
11675 dynamic_linker='GNU ld.so'
11679 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11680 version_type=freebsd-$objformat
11681 case $version_type in
11683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11692 shlibpath_var=LD_LIBRARY_PATH
11695 shlibpath_overrides_runpath=yes
11697 freebsd3.01* | freebsdelf3.01*)
11698 shlibpath_overrides_runpath=yes
11699 hardcode_into_libs=yes
11702 shlibpath_overrides_runpath=no
11703 hardcode_into_libs=yes
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11713 soname_spec='${libname}${release}${shared_ext}$major'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 hardcode_into_libs=yes
11718 hpux9* | hpux10* | hpux11*)
11719 # Give a soname corresponding to the major version so that dld.sl refuses to
11720 # link against other versions.
11724 case "$host_cpu" in
11727 hardcode_into_libs=yes
11728 dynamic_linker="$host_os dld.so"
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 soname_spec='${libname}${release}${shared_ext}$major'
11733 if test "X$HPUX_IA64_MODE" = X32; then
11734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11736 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11742 hardcode_into_libs=yes
11743 dynamic_linker="$host_os dld.sl"
11744 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 soname_spec='${libname}${release}${shared_ext}$major'
11748 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11753 dynamic_linker="$host_os dld.sl"
11754 shlibpath_var=SHLIB_PATH
11755 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11760 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11761 postinstall_cmds='chmod 555 $lib'
11764 irix5* | irix6* | nonstopux*)
11766 nonstopux*) version_type=nonstopux ;;
11768 if test "$lt_cv_prog_gnu_ld" = yes; then
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11779 irix5* | nonstopux*)
11780 libsuff= shlibsuff=
11783 case $LD in # libtool.m4 will add one of these switches to LD
11784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11785 libsuff= shlibsuff= libmagic=32-bit;;
11786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11787 libsuff=32 shlibsuff=N32 libmagic=N32;;
11788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11790 *) libsuff= shlibsuff= libmagic=never-match;;
11794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11795 shlibpath_overrides_runpath=no
11796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11798 hardcode_into_libs=yes
11801 # No shared lib support for Linux oldld, aout, or coff.
11802 linux*oldld* | linux*aout* | linux*coff*)
11806 # This must be Linux ELF.
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=no
11816 # This implies no fast_install, which is unacceptable.
11817 # Some rework will be needed to allow for fast_install
11818 # before this can be enabled.
11819 hardcode_into_libs=yes
11821 # Append ld.so.conf contents to the search path
11822 if test -f /etc/ld.so.conf; then
11823 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11824 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11827 # We used to test for /lib/ld.so.1 and disable shared libraries on
11828 # powerpc, because MkLinux only supported shared libraries with the
11829 # GNU dynamic linker. Since this was broken with cross compilers,
11830 # most powerpc-linux boxes support dynamic linking these days and
11831 # people can always --disable-shared, the test was removed, and we
11832 # assume the GNU/Linux dynamic linker is in use.
11833 dynamic_linker='GNU/Linux ld.so'
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 shlibpath_overrides_runpath=no
11844 hardcode_into_libs=yes
11845 dynamic_linker='GNU ld.so'
11852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11855 dynamic_linker='NetBSD (a.out) ld.so'
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11858 soname_spec='${libname}${release}${shared_ext}$major'
11859 dynamic_linker='NetBSD ld.elf_so'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11863 hardcode_into_libs=yes
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869 shlibpath_var=LD_LIBRARY_PATH
11870 shlibpath_overrides_runpath=yes
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878 soname_spec='${libname}${release}${shared_ext}$major'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=yes
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11889 shlibpath_var=LD_LIBRARY_PATH
11890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11892 openbsd2.[89] | openbsd2.[89].*)
11893 shlibpath_overrides_runpath=no
11896 shlibpath_overrides_runpath=yes
11900 shlibpath_overrides_runpath=yes
11905 libname_spec='$name'
11908 library_names_spec='$libname${shared_ext} $libname.a'
11909 dynamic_linker='OS/2 ld.exe'
11910 shlibpath_var=LIBPATH
11913 osf3* | osf4* | osf5*)
11917 soname_spec='${libname}${release}${shared_ext}$major'
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11919 shlibpath_var=LD_LIBRARY_PATH
11920 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11921 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11926 soname_spec='${libname}${release}${shared_ext}$major'
11927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928 shlibpath_var=LD_LIBRARY_PATH
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 hardcode_into_libs=yes
11940 # ldd complains unless libraries are executable
11941 postinstall_cmds='chmod +x $lib'
11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11947 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11948 shlibpath_var=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath=yes
11950 if test "$with_gnu_ld" = yes; then
11956 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959 soname_spec='${libname}${release}${shared_ext}$major'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 case $host_vendor in
11963 shlibpath_overrides_runpath=no
11965 export_dynamic_flag_spec='${wl}-Blargedynsym'
11966 runpath_var=LD_RUN_PATH
11974 shlibpath_overrides_runpath=no
11975 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11981 if test -d /usr/nec ;then
11983 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11984 soname_spec='$libname${shared_ext}.$major'
11985 shlibpath_var=LD_LIBRARY_PATH
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 shlibpath_var=LD_LIBRARY_PATH
12000 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12001 echo "${ECHO_T}$dynamic_linker" >&6
12002 test "$dynamic_linker" = no && can_build_shared=no
12004 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12005 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12007 if test -n "$hardcode_libdir_flag_spec" || \
12008 test -n "$runpath_var" || \
12009 test "X$hardcode_automatic" = "Xyes" ; then
12011 # We can hardcode non-existant directories.
12012 if test "$hardcode_direct" != no &&
12013 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12014 # have to relink, otherwise we might link with an installed library
12015 # when we should be linking with a yet-to-be-installed one
12016 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12017 test "$hardcode_minus_L" != no; then
12018 # Linking always hardcodes the temporary library directory.
12019 hardcode_action=relink
12021 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12022 hardcode_action=immediate
12025 # We cannot hardcode anything, or else we can only hardcode existing
12027 hardcode_action=unsupported
12029 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12030 echo "${ECHO_T}$hardcode_action" >&6
12032 if test "$hardcode_action" = relink; then
12033 # Fast installation is not supported
12034 enable_fast_install=no
12035 elif test "$shlibpath_overrides_runpath" = yes ||
12036 test "$enable_shared" = no; then
12037 # Fast installation is not necessary
12038 enable_fast_install=needless
12043 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12044 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12045 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12046 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12047 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12048 echo "$as_me:$LINENO: result: yes" >&5
12049 echo "${ECHO_T}yes" >&6
12051 # FIXME - insert some real tests, host_os isn't really good enough
12054 if test -n "$STRIP" ; then
12055 striplib="$STRIP -x"
12056 echo "$as_me:$LINENO: result: yes" >&5
12057 echo "${ECHO_T}yes" >&6
12059 echo "$as_me:$LINENO: result: no" >&5
12060 echo "${ECHO_T}no" >&6
12064 echo "$as_me:$LINENO: result: no" >&5
12065 echo "${ECHO_T}no" >&6
12070 if test "x$enable_dlopen" != xyes; then
12071 enable_dlopen=unknown
12072 enable_dlopen_self=unknown
12073 enable_dlopen_self_static=unknown
12080 lt_cv_dlopen="load_add_on"
12082 lt_cv_dlopen_self=yes
12086 lt_cv_dlopen="LoadLibrary"
12091 lt_cv_dlopen="dlopen"
12096 # if libdl is installed we need to link against it
12097 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12098 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 ac_check_lib_save_LIBS=$LIBS
12104 cat >conftest.$ac_ext <<_ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12111 /* Override any gcc2 internal prototype to avoid an error. */
12115 /* We use char because int might match the return type of a gcc2
12116 builtin and then its argument prototype would still apply. */
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_c_werror_flag"
12136 || test ! -s conftest.err'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } &&
12142 { ac_try='test -s conftest$ac_exeext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_lib_dl_dlopen=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ac_cv_lib_dl_dlopen=no
12155 rm -f conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157 LIBS=$ac_check_lib_save_LIBS
12159 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12161 if test $ac_cv_lib_dl_dlopen = yes; then
12162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12165 lt_cv_dlopen="dyld"
12167 lt_cv_dlopen_self=yes
12174 echo "$as_me:$LINENO: checking for shl_load" >&5
12175 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12176 if test "${ac_cv_func_shl_load+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 cat >conftest.$ac_ext <<_ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12185 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12187 #define shl_load innocuous_shl_load
12189 /* System header to define __stub macros and hopefully few prototypes,
12190 which can conflict with char shl_load (); below.
12191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12192 <limits.h> exists even on freestanding compilers. */
12195 # include <limits.h>
12197 # include <assert.h>
12202 /* Override any gcc2 internal prototype to avoid an error. */
12207 /* We use char because int might match the return type of a gcc2
12208 builtin and then its argument prototype would still apply. */
12210 /* The GNU C library defines this for functions which it implements
12211 to always fail with ENOSYS. Some functions are actually named
12212 something starting with __ and the normal name is an alias. */
12213 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12216 char (*f) () = shl_load;
12225 return f != shl_load;
12230 rm -f conftest.$ac_objext conftest$ac_exeext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12232 (eval $ac_link) 2>conftest.er1
12234 grep -v '^ *+' conftest.er1 >conftest.err
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
12239 { ac_try='test -z "$ac_c_werror_flag"
12240 || test ! -s conftest.err'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; } &&
12246 { ac_try='test -s conftest$ac_exeext'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 ac_cv_func_shl_load=yes
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12257 ac_cv_func_shl_load=no
12259 rm -f conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12262 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12263 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12264 if test $ac_cv_func_shl_load = yes; then
12265 lt_cv_dlopen="shl_load"
12267 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12268 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12269 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 ac_check_lib_save_LIBS=$LIBS
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* Override any gcc2 internal prototype to avoid an error. */
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298 (eval $ac_link) 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_lib_dld_shl_load=yes
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_cv_lib_dld_shl_load=no
12325 rm -f conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12329 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12330 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12331 if test $ac_cv_lib_dld_shl_load = yes; then
12332 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12334 echo "$as_me:$LINENO: checking for dlopen" >&5
12335 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12336 if test "${ac_cv_func_dlopen+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 cat >conftest.$ac_ext <<_ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12347 #define dlopen innocuous_dlopen
12349 /* System header to define __stub macros and hopefully few prototypes,
12350 which can conflict with char dlopen (); below.
12351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12352 <limits.h> exists even on freestanding compilers. */
12355 # include <limits.h>
12357 # include <assert.h>
12362 /* Override any gcc2 internal prototype to avoid an error. */
12367 /* We use char because int might match the return type of a gcc2
12368 builtin and then its argument prototype would still apply. */
12370 /* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12376 char (*f) () = dlopen;
12385 return f != dlopen;
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392 (eval $ac_link) 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_c_werror_flag"
12400 || test ! -s conftest.err'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest$ac_exeext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_cv_func_dlopen=yes
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ac_cv_func_dlopen=no
12419 rm -f conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12422 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12423 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12424 if test $ac_cv_func_dlopen = yes; then
12425 lt_cv_dlopen="dlopen"
12427 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12428 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12429 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 ac_check_lib_save_LIBS=$LIBS
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12441 /* Override any gcc2 internal prototype to avoid an error. */
12445 /* We use char because int might match the return type of a gcc2
12446 builtin and then its argument prototype would still apply. */
12456 rm -f conftest.$ac_objext conftest$ac_exeext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>conftest.er1
12460 grep -v '^ *+' conftest.er1 >conftest.err
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } &&
12465 { ac_try='test -z "$ac_c_werror_flag"
12466 || test ! -s conftest.err'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; }; then
12478 ac_cv_lib_dl_dlopen=yes
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 ac_cv_lib_dl_dlopen=no
12485 rm -f conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS
12489 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12490 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12491 if test $ac_cv_lib_dl_dlopen = yes; then
12492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12494 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12495 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12496 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 ac_check_lib_save_LIBS=$LIBS
12500 LIBS="-lsvld $LIBS"
12501 cat >conftest.$ac_ext <<_ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12508 /* Override any gcc2 internal prototype to avoid an error. */
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_cv_lib_svld_dlopen=yes
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_cv_lib_svld_dlopen=no
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12554 LIBS=$ac_check_lib_save_LIBS
12556 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12557 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12558 if test $ac_cv_lib_svld_dlopen = yes; then
12559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12561 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12562 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12563 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 ac_check_lib_save_LIBS=$LIBS
12568 cat >conftest.$ac_ext <<_ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12575 /* Override any gcc2 internal prototype to avoid an error. */
12579 /* We use char because int might match the return type of a gcc2
12580 builtin and then its argument prototype would still apply. */
12590 rm -f conftest.$ac_objext conftest$ac_exeext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592 (eval $ac_link) 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag"
12600 || test ! -s conftest.err'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest$ac_exeext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 ac_cv_lib_dld_dld_link=yes
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_cv_lib_dld_dld_link=no
12619 rm -f conftest.err conftest.$ac_objext \
12620 conftest$ac_exeext conftest.$ac_ext
12621 LIBS=$ac_check_lib_save_LIBS
12623 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12624 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12625 if test $ac_cv_lib_dld_dld_link = yes; then
12626 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12647 if test "x$lt_cv_dlopen" != xno; then
12653 case $lt_cv_dlopen in
12655 save_CPPFLAGS="$CPPFLAGS"
12656 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12658 save_LDFLAGS="$LDFLAGS"
12659 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12662 LIBS="$lt_cv_dlopen_libs $LIBS"
12664 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12665 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12666 if test "${lt_cv_dlopen_self+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 if test "$cross_compiling" = yes; then :
12670 lt_cv_dlopen_self=cross
12672 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12673 lt_status=$lt_dlunknown
12674 cat > conftest.$ac_ext <<EOF
12675 #line 12675 "configure"
12676 #include "confdefs.h"
12685 # define LT_DLGLOBAL RTLD_GLOBAL
12688 # define LT_DLGLOBAL DL_GLOBAL
12690 # define LT_DLGLOBAL 0
12694 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12695 find out it does not work in some platform. */
12696 #ifndef LT_DLLAZY_OR_NOW
12698 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12701 # define LT_DLLAZY_OR_NOW DL_LAZY
12704 # define LT_DLLAZY_OR_NOW RTLD_NOW
12707 # define LT_DLLAZY_OR_NOW DL_NOW
12709 # define LT_DLLAZY_OR_NOW 0
12717 extern "C" void exit (int);
12720 void fnord() { int i=42;}
12723 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12724 int status = $lt_dlunknown;
12728 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12729 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12730 /* dlclose (self); */
12736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12737 (eval $ac_link) 2>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12741 (./conftest; exit; ) 2>/dev/null
12743 case x$lt_status in
12744 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12745 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12746 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12749 # compilation failed
12750 lt_cv_dlopen_self=no
12757 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12758 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12760 if test "x$lt_cv_dlopen_self" = xyes; then
12761 LDFLAGS="$LDFLAGS $link_static_flag"
12762 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12763 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12764 if test "${lt_cv_dlopen_self_static+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 if test "$cross_compiling" = yes; then :
12768 lt_cv_dlopen_self_static=cross
12770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12771 lt_status=$lt_dlunknown
12772 cat > conftest.$ac_ext <<EOF
12773 #line 12773 "configure"
12774 #include "confdefs.h"
12783 # define LT_DLGLOBAL RTLD_GLOBAL
12786 # define LT_DLGLOBAL DL_GLOBAL
12788 # define LT_DLGLOBAL 0
12792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12793 find out it does not work in some platform. */
12794 #ifndef LT_DLLAZY_OR_NOW
12796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12799 # define LT_DLLAZY_OR_NOW DL_LAZY
12802 # define LT_DLLAZY_OR_NOW RTLD_NOW
12805 # define LT_DLLAZY_OR_NOW DL_NOW
12807 # define LT_DLLAZY_OR_NOW 0
12815 extern "C" void exit (int);
12818 void fnord() { int i=42;}
12821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12822 int status = $lt_dlunknown;
12826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12827 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12828 /* dlclose (self); */
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835 (eval $ac_link) 2>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12839 (./conftest; exit; ) 2>/dev/null
12841 case x$lt_status in
12842 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12843 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12844 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12847 # compilation failed
12848 lt_cv_dlopen_self_static=no
12855 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12856 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12859 CPPFLAGS="$save_CPPFLAGS"
12860 LDFLAGS="$save_LDFLAGS"
12865 case $lt_cv_dlopen_self in
12866 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12867 *) enable_dlopen_self=unknown ;;
12870 case $lt_cv_dlopen_self_static in
12871 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12872 *) enable_dlopen_self_static=unknown ;;
12877 # Report which libraries types will actually be built
12878 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12879 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12880 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12881 echo "${ECHO_T}$can_build_shared" >&6
12883 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12884 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12885 test "$can_build_shared" = "no" && enable_shared=no
12887 # On AIX, shared libraries and static libraries use the same namespace, and
12888 # are all built from PIC.
12891 test "$enable_shared" = yes && enable_static=no
12892 if test -n "$RANLIB"; then
12893 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12894 postinstall_cmds='$RANLIB $lib'
12899 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12900 test "$enable_shared" = yes && enable_static=no
12904 echo "$as_me:$LINENO: result: $enable_shared" >&5
12905 echo "${ECHO_T}$enable_shared" >&6
12907 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12908 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12909 # Make sure either enable_shared or enable_static is yes.
12910 test "$enable_shared" = yes || enable_static=yes
12911 echo "$as_me:$LINENO: result: $enable_static" >&5
12912 echo "${ECHO_T}$enable_static" >&6
12914 # The else clause should only fire when bootstrapping the
12915 # libtool distribution, otherwise you forgot to ship ltmain.sh
12916 # with your package, and you will get complaints that there are
12917 # no rules to generate ltmain.sh.
12918 if test -f "$ltmain"; then
12919 # See if we are running on zsh, and set the options which allow our commands through
12920 # without removal of \ escapes.
12921 if test -n "${ZSH_VERSION+set}" ; then
12922 setopt NO_GLOB_SUBST
12924 # Now quote all the things that may contain metacharacters while being
12925 # careful not to overquote the AC_SUBSTed values. We take copies of the
12926 # variables and quote the copies for generation of the libtool script.
12927 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12929 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12930 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12931 deplibs_check_method reload_flag reload_cmds need_locks \
12932 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12933 lt_cv_sys_global_symbol_to_c_name_address \
12934 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12935 old_postinstall_cmds old_postuninstall_cmds \
12939 lt_prog_compiler_wl \
12940 lt_prog_compiler_pic \
12941 lt_prog_compiler_static \
12942 lt_prog_compiler_no_builtin_flag \
12943 export_dynamic_flag_spec \
12944 thread_safe_flag_spec \
12945 whole_archive_flag_spec \
12946 enable_shared_with_static_runtimes \
12948 old_archive_from_new_cmds \
12953 compiler_lib_search_path \
12955 archive_expsym_cmds \
12957 postuninstall_cmds \
12958 old_archive_from_expsyms_cmds \
12959 allow_undefined_flag \
12960 no_undefined_flag \
12961 export_symbols_cmds \
12962 hardcode_libdir_flag_spec \
12963 hardcode_libdir_flag_spec_ld \
12964 hardcode_libdir_separator \
12965 hardcode_automatic \
12967 module_expsym_cmds \
12968 lt_cv_prog_compiler_c_o \
12970 include_expsyms; do
12973 old_archive_cmds | \
12974 old_archive_from_new_cmds | \
12976 archive_expsym_cmds | \
12978 module_expsym_cmds | \
12979 old_archive_from_expsyms_cmds | \
12980 export_symbols_cmds | \
12981 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12982 postinstall_cmds | postuninstall_cmds | \
12983 old_postinstall_cmds | old_postuninstall_cmds | \
12984 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12985 # Double-quote double-evaled strings.
12986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12989 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12995 *'\$0 --fallback-echo"')
12996 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13000 cfgfile="${ofile}T"
13001 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13003 { echo "$as_me:$LINENO: creating $ofile" >&5
13004 echo "$as_me: creating $ofile" >&6;}
13006 cat <<__EOF__ >> "$cfgfile"
13009 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13010 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13011 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13013 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13014 # Free Software Foundation, Inc.
13016 # This file is part of GNU Libtool:
13017 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13019 # This program is free software; you can redistribute it and/or modify
13020 # it under the terms of the GNU General Public License as published by
13021 # the Free Software Foundation; either version 2 of the License, or
13022 # (at your option) any later version.
13024 # This program is distributed in the hope that it will be useful, but
13025 # WITHOUT ANY WARRANTY; without even the implied warranty of
13026 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13027 # General Public License for more details.
13029 # You should have received a copy of the GNU General Public License
13030 # along with this program; if not, write to the Free Software
13031 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
13033 # As a special exception to the GNU General Public License, if you
13034 # distribute this file as part of a program that contains a
13035 # configuration script generated by Autoconf, you may include it under
13036 # the same distribution terms that you use for the rest of that program.
13038 # A sed program that does not truncate output.
13041 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13042 Xsed="$SED -e s/^X//"
13044 # The HP-UX ksh and POSIX shell print the target directory to stdout
13045 # if CDPATH is set.
13046 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13048 # The names of the tagged configurations supported by this script.
13051 # ### BEGIN LIBTOOL CONFIG
13053 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13055 # Shell to use when invoking shell scripts.
13058 # Whether or not to build shared libraries.
13059 build_libtool_libs=$enable_shared
13061 # Whether or not to build static libraries.
13062 build_old_libs=$enable_static
13064 # Whether or not to add -lc for building shared libraries.
13065 build_libtool_need_lc=$archive_cmds_need_lc
13067 # Whether or not to disallow shared libs when runtime libs are static
13068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13070 # Whether or not to optimize for fast installation.
13071 fast_install=$enable_fast_install
13074 host_alias=$host_alias
13077 # An echo program that does not interpret backslashes.
13082 AR_FLAGS=$lt_AR_FLAGS
13087 # A language-specific compiler.
13090 # Is the compiler the GNU C compiler?
13096 # The linker used to build libraries.
13099 # Whether we need hard or soft links.
13102 # A BSD-compatible nm program.
13105 # A symbol stripping program
13108 # Used to examine libraries when file_magic_cmd begins "file"
13109 MAGIC_CMD=$MAGIC_CMD
13111 # Used on cygwin: DLL creation program.
13114 # Used on cygwin: object dumper.
13117 # Used on cygwin: assembler.
13120 # The name of the directory that contains temporary libtool files.
13123 # How to create reloadable object files.
13124 reload_flag=$lt_reload_flag
13125 reload_cmds=$lt_reload_cmds
13127 # How to pass a linker flag through the compiler.
13128 wl=$lt_lt_prog_compiler_wl
13130 # Object file suffix (normally "o").
13131 objext="$ac_objext"
13133 # Old archive suffix (normally "a").
13136 # Shared library suffix (normally ".so").
13137 shrext_cmds='$shrext_cmds'
13139 # Executable file suffix (normally "").
13142 # Additional compiler flags for building library objects.
13143 pic_flag=$lt_lt_prog_compiler_pic
13146 # What is the maximum length of a command?
13147 max_cmd_len=$lt_cv_sys_max_cmd_len
13149 # Does compiler simultaneously support -c and -o options?
13150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13152 # Must we lock files when doing compilation ?
13153 need_locks=$lt_need_locks
13155 # Do we need the lib prefix for modules?
13156 need_lib_prefix=$need_lib_prefix
13158 # Do we need a version for libraries?
13159 need_version=$need_version
13161 # Whether dlopen is supported.
13162 dlopen_support=$enable_dlopen
13164 # Whether dlopen of programs is supported.
13165 dlopen_self=$enable_dlopen_self
13167 # Whether dlopen of statically linked programs is supported.
13168 dlopen_self_static=$enable_dlopen_self_static
13170 # Compiler flag to prevent dynamic linking.
13171 link_static_flag=$lt_lt_prog_compiler_static
13173 # Compiler flag to turn off builtin functions.
13174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13176 # Compiler flag to allow reflexive dlopens.
13177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13179 # Compiler flag to generate shared objects directly from archives.
13180 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13182 # Compiler flag to generate thread-safe objects.
13183 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13185 # Library versioning type.
13186 version_type=$version_type
13188 # Format of library name prefix.
13189 libname_spec=$lt_libname_spec
13191 # List of archive names. First name is the real one, the rest are links.
13192 # The last name is the one that the linker finds with -lNAME.
13193 library_names_spec=$lt_library_names_spec
13195 # The coded name of the library, if different from the real name.
13196 soname_spec=$lt_soname_spec
13198 # Commands used to build and install an old-style archive.
13200 old_archive_cmds=$lt_old_archive_cmds
13201 old_postinstall_cmds=$lt_old_postinstall_cmds
13202 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13204 # Create an old-style archive from a shared archive.
13205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13207 # Create a temporary old-style archive to link instead of a shared archive.
13208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13210 # Commands used to build and install a shared archive.
13211 archive_cmds=$lt_archive_cmds
13212 archive_expsym_cmds=$lt_archive_expsym_cmds
13213 postinstall_cmds=$lt_postinstall_cmds
13214 postuninstall_cmds=$lt_postuninstall_cmds
13216 # Commands used to build a loadable module (assumed same as above if empty)
13217 module_cmds=$lt_module_cmds
13218 module_expsym_cmds=$lt_module_expsym_cmds
13220 # Commands to strip libraries.
13221 old_striplib=$lt_old_striplib
13222 striplib=$lt_striplib
13224 # Dependencies to place before the objects being linked to create a
13226 predep_objects=$lt_predep_objects
13228 # Dependencies to place after the objects being linked to create a
13230 postdep_objects=$lt_postdep_objects
13232 # Dependencies to place before the objects being linked to create a
13234 predeps=$lt_predeps
13236 # Dependencies to place after the objects being linked to create a
13238 postdeps=$lt_postdeps
13240 # The library search path used internally by the compiler when linking
13241 # a shared library.
13242 compiler_lib_search_path=$lt_compiler_lib_search_path
13244 # Method to check whether dependent libraries are shared objects.
13245 deplibs_check_method=$lt_deplibs_check_method
13247 # Command to use when deplibs_check_method == file_magic.
13248 file_magic_cmd=$lt_file_magic_cmd
13250 # Flag that allows shared libraries with undefined symbols to be built.
13251 allow_undefined_flag=$lt_allow_undefined_flag
13253 # Flag that forces no undefined symbols.
13254 no_undefined_flag=$lt_no_undefined_flag
13256 # Commands used to finish a libtool library installation in a directory.
13257 finish_cmds=$lt_finish_cmds
13259 # Same as above, but a single script fragment to be evaled but not shown.
13260 finish_eval=$lt_finish_eval
13262 # Take the output of nm and produce a listing of raw symbols and C names.
13263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13265 # Transform the output of nm in a proper C declaration
13266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13268 # Transform the output of nm in a C name address pair
13269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13271 # This is the shared library runtime path variable.
13272 runpath_var=$runpath_var
13274 # This is the shared library path variable.
13275 shlibpath_var=$shlibpath_var
13277 # Is shlibpath searched before the hard-coded library search path?
13278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13280 # How to hardcode a shared library path into an executable.
13281 hardcode_action=$hardcode_action
13283 # Whether we should hardcode library paths into libraries.
13284 hardcode_into_libs=$hardcode_into_libs
13286 # Flag to hardcode \$libdir into a binary during linking.
13287 # This must work even if \$libdir does not exist.
13288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13290 # If ld is used when linking, flag to hardcode \$libdir into
13291 # a binary during linking. This must work even if \$libdir does
13293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13295 # Whether we need a single -rpath flag with a separated argument.
13296 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13298 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13299 # resulting binary.
13300 hardcode_direct=$hardcode_direct
13302 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13303 # resulting binary.
13304 hardcode_minus_L=$hardcode_minus_L
13306 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13307 # the resulting binary.
13308 hardcode_shlibpath_var=$hardcode_shlibpath_var
13310 # Set to yes if building a shared library automatically hardcodes DIR into the library
13311 # and all subsequent libraries and executables linked against it.
13312 hardcode_automatic=$hardcode_automatic
13314 # Variables whose values should be saved in libtool wrapper scripts and
13315 # restored at relink time.
13316 variables_saved_for_relink="$variables_saved_for_relink"
13318 # Whether libtool must link a program against all its dependency libraries.
13319 link_all_deplibs=$link_all_deplibs
13321 # Compile-time system search path for libraries
13322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13324 # Run-time system search path for libraries
13325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13327 # Fix the shell variable \$srcfile for the compiler.
13328 fix_srcfile_path="$fix_srcfile_path"
13330 # Set to yes if exported symbols are required.
13331 always_export_symbols=$always_export_symbols
13333 # The commands to list exported symbols.
13334 export_symbols_cmds=$lt_export_symbols_cmds
13336 # The commands to extract the exported symbol list from a shared archive.
13337 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13339 # Symbols that should not be listed in the preloaded symbols.
13340 exclude_expsyms=$lt_exclude_expsyms
13342 # Symbols that must always be exported.
13343 include_expsyms=$lt_include_expsyms
13345 # ### END LIBTOOL CONFIG
13352 cat <<\EOF >> "$cfgfile"
13354 # AIX sometimes has problems with the GCC collect2 program. For some
13355 # reason, if we set the COLLECT_NAMES environment variable, the problems
13356 # vanish in a puff of smoke.
13357 if test "X${COLLECT_NAMES+set}" != Xset; then
13359 export COLLECT_NAMES
13365 # We use sed instead of cat because bash on DJGPP gets confused if
13366 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13367 # text mode, it properly converts lines to CR/LF. This bash problem
13368 # is reportedly fixed, but why not run on old versions too?
13369 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13371 mv -f "$cfgfile" "$ofile" || \
13372 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13376 # If there is no Makefile yet, we rely on a make rule to execute
13377 # `config.status --recheck' to rerun these tests and create the
13378 # libtool script then.
13379 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13380 if test -f "$ltmain_in"; then
13381 test -f Makefile && make "$ltmain"
13387 ac_cpp='$CPP $CPPFLAGS'
13388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13395 # Check whether --with-tags or --without-tags was given.
13396 if test "${with_tags+set}" = set; then
13397 withval="$with_tags"
13398 tagnames="$withval"
13401 if test -f "$ltmain" && test -n "$tagnames"; then
13402 if test ! -f "${ofile}"; then
13403 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13404 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13407 if test -z "$LTCC"; then
13408 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13409 if test -z "$LTCC"; then
13410 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13411 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13414 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13418 # Extract list of available tagged configurations in $ofile.
13419 # Note that this assumes the entire list is on one line.
13420 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13422 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13423 for tagname in $tagnames; do
13425 # Check whether tagname contains only valid characters
13426 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13428 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13429 echo "$as_me: error: invalid tag name: $tagname" >&2;}
13430 { (exit 1); exit 1; }; }
13434 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13436 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13437 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13438 { (exit 1); exit 1; }; }
13441 # Update the list of available tags.
13442 if test -n "$tagname"; then
13443 echo appending configuration tag \"$tagname\" to $ofile
13447 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13448 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13449 (test "X$CXX" != "Xg++"))) ; then
13451 ac_cpp='$CXXCPP $CPPFLAGS'
13452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13459 archive_cmds_need_lc_CXX=no
13460 allow_undefined_flag_CXX=
13461 always_export_symbols_CXX=no
13462 archive_expsym_cmds_CXX=
13463 export_dynamic_flag_spec_CXX=
13464 hardcode_direct_CXX=no
13465 hardcode_libdir_flag_spec_CXX=
13466 hardcode_libdir_flag_spec_ld_CXX=
13467 hardcode_libdir_separator_CXX=
13468 hardcode_minus_L_CXX=no
13469 hardcode_automatic_CXX=no
13471 module_expsym_cmds_CXX=
13472 link_all_deplibs_CXX=unknown
13473 old_archive_cmds_CXX=$old_archive_cmds
13474 no_undefined_flag_CXX=
13475 whole_archive_flag_spec_CXX=
13476 enable_shared_with_static_runtimes_CXX=no
13478 # Dependencies to place before and after the object being linked:
13479 predep_objects_CXX=
13480 postdep_objects_CXX=
13483 compiler_lib_search_path_CXX=
13485 # Source file extension for C++ test sources.
13488 # Object file extension for compiled C++ test sources.
13492 # Code to be used in simple compile tests
13493 lt_simple_compile_test_code="int some_variable = 0;\n"
13495 # Code to be used in simple link tests
13496 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13498 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13500 # If no C compiler was specified, use CC.
13503 # Allow CC to be a program name with arguments.
13507 # Allow CC to be a program name with arguments.
13512 lt_save_with_gnu_ld=$with_gnu_ld
13513 lt_save_path_LD=$lt_cv_path_LD
13514 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13515 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13517 unset lt_cv_prog_gnu_ld
13519 if test -n "${lt_cv_path_LDCXX+set}"; then
13520 lt_cv_path_LD=$lt_cv_path_LDCXX
13522 unset lt_cv_path_LD
13524 test -z "${LDCXX+set}" || LD=$LDCXX
13528 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13530 # We don't want -fno-exception wen compiling C++ code, so set the
13531 # no_builtin_flag separately
13532 if test "$GXX" = yes; then
13533 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13535 lt_prog_compiler_no_builtin_flag_CXX=
13538 if test "$GXX" = yes; then
13539 # Set up default GNU C++ configuration
13542 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13543 if test "${with_gnu_ld+set}" = set; then
13544 withval="$with_gnu_ld"
13545 test "$withval" = no || with_gnu_ld=yes
13550 if test "$GCC" = yes; then
13551 # Check if gcc -print-prog-name=ld gives a path.
13552 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13553 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13556 # gcc leaves a trailing carriage return which upsets mingw
13557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13562 # Accept absolute paths.
13564 re_direlt='/[^/][^/]*/\.\./'
13565 # Canonicalize the pathname of ld
13566 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13567 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13568 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13570 test -z "$LD" && LD="$ac_prog"
13573 # If it fails, then pretend we aren't using GCC.
13577 # If it is relative, then search for the first ld in PATH.
13578 with_gnu_ld=unknown
13581 elif test "$with_gnu_ld" = yes; then
13582 echo "$as_me:$LINENO: checking for GNU ld" >&5
13583 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13585 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13586 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13588 if test "${lt_cv_path_LD+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 if test -z "$LD"; then
13592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13593 for ac_dir in $PATH; do
13595 test -z "$ac_dir" && ac_dir=.
13596 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13597 lt_cv_path_LD="$ac_dir/$ac_prog"
13598 # Check to see if the program is GNU ld. I'd rather use --version,
13599 # but apparently some GNU ld's only accept -v.
13600 # Break only if it was the GNU/non-GNU ld that we prefer.
13601 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13602 *GNU* | *'with BFD'*)
13603 test "$with_gnu_ld" != no && break
13606 test "$with_gnu_ld" != yes && break
13613 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13617 LD="$lt_cv_path_LD"
13618 if test -n "$LD"; then
13619 echo "$as_me:$LINENO: result: $LD" >&5
13620 echo "${ECHO_T}$LD" >&6
13622 echo "$as_me:$LINENO: result: no" >&5
13623 echo "${ECHO_T}no" >&6
13625 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13626 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13627 { (exit 1); exit 1; }; }
13628 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13629 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13630 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13634 case `$LD -v 2>&1 </dev/null` in
13635 *GNU* | *'with BFD'*)
13636 lt_cv_prog_gnu_ld=yes
13639 lt_cv_prog_gnu_ld=no
13643 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13644 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13645 with_gnu_ld=$lt_cv_prog_gnu_ld
13649 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13650 # archiving commands below assume that GNU ld is being used.
13651 if test "$with_gnu_ld" = yes; then
13652 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13653 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'
13655 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13658 # If archive_cmds runs LD, not CC, wlarc should be empty
13659 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13660 # investigate it a little bit more. (MM)
13663 # ancient GNU ld didn't support --whole-archive et. al.
13664 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13665 grep 'no-whole-archive' > /dev/null; then
13666 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13668 whole_archive_flag_spec_CXX=
13674 # A generic and very simple default shared library creation
13675 # command for GNU C++ for the case where it uses the native
13676 # linker, instead of GNU ld. If possible, this setting should
13677 # overridden to take advantage of the native linker features on
13678 # the platform it is being used on.
13679 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13682 # Commands to make compiler produce verbose output that lists
13683 # what "hidden" libraries, object files and flags are used when
13684 # linking a shared library.
13685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13693 # PORTME: fill in a description of your system's C++ link characteristics
13694 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13695 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13699 # FIXME: insert proper C++ library support
13703 if test "$host_cpu" = ia64; then
13704 # On IA64, the linker does run time linking by default, so we don't
13705 # have to do anything special.
13706 aix_use_runtimelinking=no
13707 exp_sym_flag='-Bexport'
13710 aix_use_runtimelinking=no
13712 # Test if we are trying to use run time linking or normal
13713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13714 # need to do runtime linking.
13715 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13716 for ld_flag in $LDFLAGS; do
13719 aix_use_runtimelinking=yes
13726 exp_sym_flag='-bexport'
13727 no_entry_flag='-bnoentry'
13730 # When large executables or shared objects are built, AIX ld can
13731 # have problems creating the table of contents. If linking a library
13732 # or program results in "error TOC overflow" add -mminimal-toc to
13733 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13734 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13736 archive_cmds_CXX=''
13737 hardcode_direct_CXX=yes
13738 hardcode_libdir_separator_CXX=':'
13739 link_all_deplibs_CXX=yes
13741 if test "$GXX" = yes; then
13742 case $host_os in aix4.012|aix4.012.*)
13743 # We only want to do this on AIX 4.2 and lower, the check
13744 # below for broken collect2 doesn't work under 4.3+
13745 collect2name=`${CC} -print-prog-name=collect2`
13746 if test -f "$collect2name" && \
13747 strings "$collect2name" | grep resolve_lib_name >/dev/null
13749 # We have reworked collect2
13750 hardcode_direct_CXX=yes
13752 # We have old collect2
13753 hardcode_direct_CXX=unsupported
13754 # It fails to find uninstalled libraries when the uninstalled
13755 # path is not listed in the libpath. Setting hardcode_minus_L
13756 # to unsupported forces relinking
13757 hardcode_minus_L_CXX=yes
13758 hardcode_libdir_flag_spec_CXX='-L$libdir'
13759 hardcode_libdir_separator_CXX=
13762 shared_flag='-shared'
13765 if test "$host_cpu" = ia64; then
13766 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13767 # chokes on -Wl,-G. The following line is correct:
13770 if test "$aix_use_runtimelinking" = yes; then
13771 shared_flag='${wl}-G'
13773 shared_flag='${wl}-bM:SRE'
13778 # It seems that -bexpall does not export symbols beginning with
13779 # underscore (_), so it is better to generate a list of symbols to export.
13780 always_export_symbols_CXX=yes
13781 if test "$aix_use_runtimelinking" = yes; then
13782 # Warning - without using the other runtime loading flags (-brtl),
13783 # -berok will link without error, but may produce a broken library.
13784 allow_undefined_flag_CXX='-berok'
13785 # Determine the default libpath from the value encoded in an empty executable.
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13801 rm -f conftest.$ac_objext conftest$ac_exeext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13803 (eval $ac_link) 2>conftest.er1
13805 grep -v '^ *+' conftest.er1 >conftest.err
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
13810 { ac_try='test -z "$ac_cxx_werror_flag"
13811 || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest$ac_exeext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13826 # Check for a 64-bit object if we didn't find anything.
13827 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; }
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13834 rm -f conftest.err conftest.$ac_objext \
13835 conftest$ac_exeext conftest.$ac_ext
13836 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13838 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13840 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"
13842 if test "$host_cpu" = ia64; then
13843 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13844 allow_undefined_flag_CXX="-z nodefs"
13845 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"
13847 # Determine the default libpath from the value encoded in an empty executable.
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13863 rm -f conftest.$ac_objext conftest$ac_exeext
13864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13865 (eval $ac_link) 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
13872 { ac_try='test -z "$ac_cxx_werror_flag"
13873 || test ! -s conftest.err'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; } &&
13879 { ac_try='test -s conftest$ac_exeext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13888 # Check for a 64-bit object if we didn't find anything.
13889 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; }
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13896 rm -f conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13900 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13901 # Warning - without using the other run time loading flags,
13902 # -berok will link without error, but may produce a broken library.
13903 no_undefined_flag_CXX=' ${wl}-bernotok'
13904 allow_undefined_flag_CXX=' ${wl}-berok'
13905 # -bexpall does not export symbols beginning with underscore (_)
13906 always_export_symbols_CXX=yes
13907 # Exported symbols can be pulled into shared objects from archives
13908 whole_archive_flag_spec_CXX=' '
13909 archive_cmds_need_lc_CXX=yes
13910 # This is similar to how AIX traditionally builds it's shared libraries.
13911 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'
13916 case $cc_basename in
13918 # FIXME: insert proper C++ library support
13925 cygwin* | mingw* | pw32*)
13926 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13927 # as there is no search path for DLLs.
13928 hardcode_libdir_flag_spec_CXX='-L$libdir'
13929 allow_undefined_flag_CXX=unsupported
13930 always_export_symbols_CXX=no
13931 enable_shared_with_static_runtimes_CXX=yes
13933 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13934 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'
13935 # If the export-symbols file already is a .def file (1st line
13936 # is EXPORTS), use it as is; otherwise, prepend...
13937 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13938 cp $export_symbols $output_objdir/$soname.def;
13940 echo EXPORTS > $output_objdir/$soname.def;
13941 cat $export_symbols >> $output_objdir/$soname.def;
13943 $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'
13948 darwin* | rhapsody*)
13950 rhapsody* | darwin1.[012])
13951 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13954 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13955 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13957 case ${MACOSX_DEPLOYMENT_TARGET} in
13959 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13962 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13968 archive_cmds_need_lc_CXX=no
13969 hardcode_direct_CXX=no
13970 hardcode_automatic_CXX=yes
13971 hardcode_shlibpath_var_CXX=unsupported
13972 whole_archive_flag_spec_CXX=''
13973 link_all_deplibs_CXX=yes
13975 if test "$GXX" = yes ; then
13976 lt_int_apple_cc_single_mod=no
13977 output_verbose_link_cmd='echo'
13978 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13979 lt_int_apple_cc_single_mod=yes
13981 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13982 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13984 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'
13986 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13987 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13988 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13989 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}'
13991 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}'
13993 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}'
13995 case "$cc_basename" in
13997 output_verbose_link_cmd='echo'
13998 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'
13999 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14000 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14001 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}'
14002 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}'
14012 case $cc_basename in
14014 # FIXME: insert proper C++ library support
14018 # Green Hills C++ Compiler
14019 # FIXME: insert proper C++ library support
14023 # FIXME: insert proper C++ library support
14029 # C++ shared libraries reported to be fairly broken before switch to ELF
14033 archive_cmds_need_lc_CXX=no
14035 freebsd* | kfreebsd*-gnu)
14036 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14043 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14044 hardcode_libdir_separator_CXX=:
14045 export_dynamic_flag_spec_CXX='${wl}-E'
14046 hardcode_direct_CXX=yes
14047 hardcode_minus_L_CXX=yes # Not in the search PATH,
14048 # but as the default
14049 # location of the library.
14051 case $cc_basename in
14053 # FIXME: insert proper C++ library support
14057 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'
14058 # Commands to make compiler produce verbose output that lists
14059 # what "hidden" libraries, object files and flags are used when
14060 # linking a shared library.
14062 # There doesn't appear to be a way to prevent this compiler from
14063 # explicitly linking system object files so we need to strip them
14064 # from the output so that they don't get included in the library
14066 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'
14069 if test "$GXX" = yes; then
14070 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'
14072 # FIXME: insert proper C++ library support
14079 if test $with_gnu_ld = no; then
14080 case "$host_cpu" in
14082 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14083 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
14084 hardcode_libdir_separator_CXX=:
14087 hardcode_libdir_flag_spec_CXX='-L$libdir'
14090 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14091 hardcode_libdir_separator_CXX=:
14092 export_dynamic_flag_spec_CXX='${wl}-E'
14096 case "$host_cpu" in
14098 hardcode_direct_CXX=no
14099 hardcode_shlibpath_var_CXX=no
14102 hardcode_direct_CXX=no
14103 hardcode_shlibpath_var_CXX=no
14104 hardcode_minus_L_CXX=yes # Not in the search PATH,
14105 # but as the default
14106 # location of the library.
14109 hardcode_direct_CXX=yes
14110 hardcode_minus_L_CXX=yes # Not in the search PATH,
14111 # but as the default
14112 # location of the library.
14116 case $cc_basename in
14118 # FIXME: insert proper C++ library support
14122 case "$host_cpu" in
14124 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14127 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14130 # Commands to make compiler produce verbose output that lists
14131 # what "hidden" libraries, object files and flags are used when
14132 # linking a shared library.
14134 # There doesn't appear to be a way to prevent this compiler from
14135 # explicitly linking system object files so we need to strip them
14136 # from the output so that they don't get included in the library
14138 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'
14141 if test "$GXX" = yes; then
14142 if test $with_gnu_ld = no; then
14143 case "$host_cpu" in
14145 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14148 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'
14153 # FIXME: insert proper C++ library support
14160 case $cc_basename in
14163 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'
14165 # Archives containing C++ object files must be created using
14166 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14167 # necessary to make sure instantiated templates are included
14169 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14172 if test "$GXX" = yes; then
14173 if test "$with_gnu_ld" = no; then
14174 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'
14176 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'
14179 link_all_deplibs_CXX=yes
14182 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14183 hardcode_libdir_separator_CXX=:
14186 case $cc_basename in
14188 # Kuck and Associates, Inc. (KAI) C++ Compiler
14190 # KCC will only create a shared library if the output file
14191 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14192 # to its proper name (with version) after linking.
14193 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'
14194 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'
14195 # Commands to make compiler produce verbose output that lists
14196 # what "hidden" libraries, object files and flags are used when
14197 # linking a shared library.
14199 # There doesn't appear to be a way to prevent this compiler from
14200 # explicitly linking system object files so we need to strip them
14201 # from the output so that they don't get included in the library
14203 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'
14205 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14208 # Archives containing C++ object files must be created using
14209 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14210 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14215 # version 8.0 and above of icpc choke on multiply defined symbols
14216 # if we add $predep_objects and $postdep_objects, however 7.1 and
14217 # earlier do not add the objects themselves.
14218 case `$CC -V 2>&1` in
14220 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14221 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'
14223 *) # Version 8.0 or newer
14224 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14225 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14228 archive_cmds_need_lc_CXX=no
14229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14230 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14231 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14236 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'
14238 runpath_var=LD_RUN_PATH
14239 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14240 hardcode_libdir_separator_CXX=:
14242 # Commands to make compiler produce verbose output that lists
14243 # what "hidden" libraries, object files and flags are used when
14244 # linking a shared library.
14246 # There doesn't appear to be a way to prevent this compiler from
14247 # explicitly linking system object files so we need to strip them
14248 # from the output so that they don't get included in the library
14250 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'
14255 # FIXME: insert proper C++ library support
14259 # FIXME: insert proper C++ library support
14263 case $cc_basename in
14265 # FIXME: insert proper C++ library support
14269 # FIXME: insert proper C++ library support
14275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14276 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14278 hardcode_libdir_flag_spec_CXX='-R$libdir'
14279 hardcode_direct_CXX=yes
14280 hardcode_shlibpath_var_CXX=no
14282 # Workaround some broken pre-1.5 toolchains
14283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14286 # C++ shared libraries are fairly broken
14290 hardcode_direct_CXX=yes
14291 hardcode_shlibpath_var_CXX=no
14292 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14295 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14296 export_dynamic_flag_spec_CXX='${wl}-E'
14297 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14299 output_verbose_link_cmd='echo'
14302 case $cc_basename in
14304 # Kuck and Associates, Inc. (KAI) C++ Compiler
14306 # KCC will only create a shared library if the output file
14307 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14308 # to its proper name (with version) after linking.
14309 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'
14311 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14312 hardcode_libdir_separator_CXX=:
14314 # Archives containing C++ object files must be created using
14315 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14316 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14320 # Rational C++ 2.4.1
14321 # FIXME: insert proper C++ library support
14325 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14326 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'
14328 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14329 hardcode_libdir_separator_CXX=:
14331 # Commands to make compiler produce verbose output that lists
14332 # what "hidden" libraries, object files and flags are used when
14333 # linking a shared library.
14335 # There doesn't appear to be a way to prevent this compiler from
14336 # explicitly linking system object files so we need to strip them
14337 # from the output so that they don't get included in the library
14339 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'
14342 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14343 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14344 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'
14346 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14347 hardcode_libdir_separator_CXX=:
14349 # Commands to make compiler produce verbose output that lists
14350 # what "hidden" libraries, object files and flags are used when
14351 # linking a shared library.
14352 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14355 # FIXME: insert proper C++ library support
14362 case $cc_basename in
14364 # Kuck and Associates, Inc. (KAI) C++ Compiler
14366 # KCC will only create a shared library if the output file
14367 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14368 # to its proper name (with version) after linking.
14369 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'
14371 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14372 hardcode_libdir_separator_CXX=:
14374 # Archives containing C++ object files must be created using
14375 # the KAI C++ compiler.
14376 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14379 # Rational C++ 2.4.1
14380 # FIXME: insert proper C++ library support
14384 allow_undefined_flag_CXX=' -expect_unresolved \*'
14385 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'
14386 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14387 echo "-hidden">> $lib.exp~
14388 $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~
14391 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14392 hardcode_libdir_separator_CXX=:
14394 # Commands to make compiler produce verbose output that lists
14395 # what "hidden" libraries, object files and flags are used when
14396 # linking a shared library.
14398 # There doesn't appear to be a way to prevent this compiler from
14399 # explicitly linking system object files so we need to strip them
14400 # from the output so that they don't get included in the library
14402 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'
14405 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14406 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14407 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'
14409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14410 hardcode_libdir_separator_CXX=:
14412 # Commands to make compiler produce verbose output that lists
14413 # what "hidden" libraries, object files and flags are used when
14414 # linking a shared library.
14415 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14418 # FIXME: insert proper C++ library support
14425 # FIXME: insert proper C++ library support
14429 archive_cmds_need_lc_CXX=no
14430 case $cc_basename in
14432 # FIXME: insert proper C++ library support
14436 # FIXME: insert proper C++ library support
14442 case $cc_basename in
14445 # FIXME: insert proper C++ library support
14450 # FIXME: insert proper C++ library support
14454 # FIXME: insert proper C++ library support
14460 case $cc_basename in
14462 # Sun C++ 4.2, 5.x and Centerline C++
14463 no_undefined_flag_CXX=' -zdefs'
14464 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14465 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14466 $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'
14468 hardcode_libdir_flag_spec_CXX='-R$libdir'
14469 hardcode_shlibpath_var_CXX=no
14471 solaris2.0-5 | solaris2.0-5.*) ;;
14473 # The C++ compiler is used as linker so we must use $wl
14474 # flag to pass the commands to the underlying system
14476 # Supported since Solaris 2.6 (maybe 2.5.1?)
14477 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14480 link_all_deplibs_CXX=yes
14482 # Commands to make compiler produce verbose output that lists
14483 # what "hidden" libraries, object files and flags are used when
14484 # linking a shared library.
14486 # There doesn't appear to be a way to prevent this compiler from
14487 # explicitly linking system object files so we need to strip them
14488 # from the output so that they don't get included in the library
14490 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'
14492 # Archives containing C++ object files must be created using
14493 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14494 # necessary to make sure instantiated templates are included
14496 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14499 # Green Hills C++ Compiler
14500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14502 # The C++ compiler must be used to create the archive.
14503 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14506 # GNU C++ compiler with Solaris linker
14507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14508 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14509 if $CC --version | grep -v '^2\.7' > /dev/null; then
14510 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14511 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14512 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14514 # Commands to make compiler produce verbose output that lists
14515 # what "hidden" libraries, object files and flags are used when
14516 # linking a shared library.
14517 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14519 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14521 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14522 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14523 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14525 # Commands to make compiler produce verbose output that lists
14526 # what "hidden" libraries, object files and flags are used when
14527 # linking a shared library.
14528 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14531 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14536 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14537 archive_cmds_need_lc_CXX=no
14540 case $cc_basename in
14542 # NonStop-UX NCC 3.20
14543 # FIXME: insert proper C++ library support
14547 # FIXME: insert proper C++ library support
14553 # FIXME: insert proper C++ library support
14557 # FIXME: insert proper C++ library support
14561 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14562 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14563 test "$ld_shlibs_CXX" = no && can_build_shared=no
14569 ## There is no encapsulation within the following macros, do not change
14570 ## the running order or otherwise move them around unless you know exactly
14571 ## what you are doing...
14573 cat > conftest.$ac_ext <<EOF
14577 Foo (void) { a = 0; }
14583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584 (eval $ac_compile) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; then
14588 # Parse the compiler output and extract the necessary
14589 # objects, libraries and library flags.
14591 # Sentinel used to keep track of whether or not we are before
14592 # the conftest object file.
14593 pre_test_object_deps_done=no
14595 # The `*' in the case matches for architectures that use `case' in
14596 # $output_verbose_cmd can trigger glob expansion during the loop
14597 # eval without this substitution.
14598 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14600 for p in `eval $output_verbose_link_cmd`; do
14604 # Some compilers place space between "-{L,R}" and the path.
14605 # Remove the space.
14606 if test $p = "-L" \
14607 || test $p = "-R"; then
14614 if test "$pre_test_object_deps_done" = no; then
14617 # Internal compiler library paths should come after those
14618 # provided the user. The postdeps already come after the
14619 # user supplied libs so there is no need to process them.
14620 if test -z "$compiler_lib_search_path_CXX"; then
14621 compiler_lib_search_path_CXX="${prev}${p}"
14623 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14626 # The "-l" case would never come before the object being
14627 # linked, so don't bother handling this case.
14630 if test -z "$postdeps_CXX"; then
14631 postdeps_CXX="${prev}${p}"
14633 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14639 # This assumes that the test object file only shows up
14640 # once in the compiler output.
14641 if test "$p" = "conftest.$objext"; then
14642 pre_test_object_deps_done=yes
14646 if test "$pre_test_object_deps_done" = no; then
14647 if test -z "$predep_objects_CXX"; then
14648 predep_objects_CXX="$p"
14650 predep_objects_CXX="$predep_objects_CXX $p"
14653 if test -z "$postdep_objects_CXX"; then
14654 postdep_objects_CXX="$p"
14656 postdep_objects_CXX="$postdep_objects_CXX $p"
14661 *) ;; # Ignore the rest.
14669 echo "libtool.m4: error: problem compiling CXX test program"
14672 $rm -f confest.$objext
14674 case " $postdeps_CXX " in
14675 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14678 lt_prog_compiler_wl_CXX=
14679 lt_prog_compiler_pic_CXX=
14680 lt_prog_compiler_static_CXX=
14682 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14683 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14685 # C++ specific cases for pic, static, wl, etc.
14686 if test "$GXX" = yes; then
14687 lt_prog_compiler_wl_CXX='-Wl,'
14688 lt_prog_compiler_static_CXX='-static'
14692 # All AIX code is PIC.
14693 if test "$host_cpu" = ia64; then
14694 # AIX 5 now supports IA64 processor
14695 lt_prog_compiler_static_CXX='-Bstatic'
14699 # FIXME: we need at least 68020 code to build shared libraries, but
14700 # adding the `-m68020' flag to GCC prevents building anything better,
14702 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14704 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14705 # PIC is the default for these OSes.
14707 mingw* | os2* | pw32*)
14708 # This hack is so that the source file can tell whether it is being
14709 # built for inclusion in a dll (and should export symbols for example).
14710 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14712 darwin* | rhapsody*)
14713 # PIC is the default on this platform
14714 # Common symbols not allowed in MH_DYLIB files
14715 lt_prog_compiler_pic_CXX='-fno-common'
14718 # DJGPP does not support shared libraries at all
14719 lt_prog_compiler_pic_CXX=
14722 if test -d /usr/nec; then
14723 lt_prog_compiler_pic_CXX=-Kconform_pic
14727 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14728 # not for PA HP-UX.
14729 case "$host_cpu" in
14733 lt_prog_compiler_pic_CXX='-fPIC'
14738 lt_prog_compiler_pic_CXX='-fPIC'
14744 # All AIX code is PIC.
14745 if test "$host_cpu" = ia64; then
14746 # AIX 5 now supports IA64 processor
14747 lt_prog_compiler_static_CXX='-Bstatic'
14749 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14753 case $cc_basename in
14755 # Green Hills C++ Compiler
14756 # _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"
14761 # PIC is the default on this platform
14762 # Common symbols not allowed in MH_DYLIB files
14763 case "$cc_basename" in
14765 lt_prog_compiler_pic_CXX='-qnocommon'
14766 lt_prog_compiler_wl_CXX='-Wl,'
14771 case $cc_basename in
14773 lt_prog_compiler_pic_CXX='-KPIC'
14776 # Green Hills C++ Compiler
14777 lt_prog_compiler_pic_CXX='-pic'
14783 freebsd* | kfreebsd*-gnu)
14784 # FreeBSD uses GNU C++
14786 hpux9* | hpux10* | hpux11*)
14787 case $cc_basename in
14789 lt_prog_compiler_wl_CXX='-Wl,'
14790 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14791 if test "$host_cpu" != ia64; then
14792 lt_prog_compiler_pic_CXX='+Z'
14796 lt_prog_compiler_wl_CXX='-Wl,'
14797 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14798 case "$host_cpu" in
14803 lt_prog_compiler_pic_CXX='+Z'
14811 irix5* | irix6* | nonstopux*)
14812 case $cc_basename in
14814 lt_prog_compiler_wl_CXX='-Wl,'
14815 lt_prog_compiler_static_CXX='-non_shared'
14816 # CC pic flag -KPIC is the default.
14823 case $cc_basename in
14826 lt_prog_compiler_wl_CXX='--backend -Wl,'
14827 lt_prog_compiler_pic_CXX='-fPIC'
14831 lt_prog_compiler_wl_CXX='-Wl,'
14832 lt_prog_compiler_pic_CXX='-KPIC'
14833 lt_prog_compiler_static_CXX='-static'
14837 # Make sure the PIC flag is empty. It appears that all Alpha
14838 # Linux and Compaq Tru64 Unix objects are PIC.
14839 lt_prog_compiler_pic_CXX=
14840 lt_prog_compiler_static_CXX='-non_shared'
14851 case $cc_basename in
14853 lt_prog_compiler_pic_CXX='-W c,exportall'
14861 osf3* | osf4* | osf5*)
14862 case $cc_basename in
14864 lt_prog_compiler_wl_CXX='--backend -Wl,'
14867 # Rational C++ 2.4.1
14868 lt_prog_compiler_pic_CXX='-pic'
14871 # Digital/Compaq C++
14872 lt_prog_compiler_wl_CXX='-Wl,'
14873 # Make sure the PIC flag is empty. It appears that all Alpha
14874 # Linux and Compaq Tru64 Unix objects are PIC.
14875 lt_prog_compiler_pic_CXX=
14876 lt_prog_compiler_static_CXX='-non_shared'
14885 case $cc_basename in
14887 lt_prog_compiler_pic_CXX='-fPIC'
14894 case $cc_basename in
14896 # Sun C++ 4.2, 5.x and Centerline C++
14897 lt_prog_compiler_pic_CXX='-KPIC'
14898 lt_prog_compiler_static_CXX='-Bstatic'
14899 lt_prog_compiler_wl_CXX='-Qoption ld '
14902 # Green Hills C++ Compiler
14903 lt_prog_compiler_pic_CXX='-PIC'
14910 case $cc_basename in
14913 lt_prog_compiler_pic_CXX='-pic'
14914 lt_prog_compiler_static_CXX='-Bstatic'
14918 lt_prog_compiler_pic_CXX='-pic'
14925 case $cc_basename in
14927 # NonStop-UX NCC 3.20
14928 lt_prog_compiler_pic_CXX='-KPIC'
14939 lt_prog_compiler_can_build_shared_CXX=no
14944 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14945 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14948 # Check to make sure the PIC flag actually works.
14950 if test -n "$lt_prog_compiler_pic_CXX"; then
14952 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14953 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14954 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 lt_prog_compiler_pic_works_CXX=no
14958 ac_outfile=conftest.$ac_objext
14959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14960 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14961 # Insert the option either (1) after the last *FLAGS variable, or
14962 # (2) before a word containing "conftest.", or (3) at the end.
14963 # Note that $ac_compile itself does not contain backslashes and begins
14964 # with a dollar sign (not a hyphen), so the echo should work correctly.
14965 # The option is referenced via a variable to avoid confusing sed.
14966 lt_compile=`echo "$ac_compile" | $SED \
14967 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14969 -e 's:$: $lt_compiler_flag:'`
14970 (eval echo "\"\$as_me:14970: $lt_compile\"" >&5)
14971 (eval "$lt_compile" 2>conftest.err)
14973 cat conftest.err >&5
14974 echo "$as_me:14974: \$? = $ac_status" >&5
14975 if (exit $ac_status) && test -s "$ac_outfile"; then
14976 # The compiler can only warn and ignore the option if not recognized
14977 # So say no if there are warnings
14978 if test ! -s conftest.err; then
14979 lt_prog_compiler_pic_works_CXX=yes
14985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14986 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14988 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14989 case $lt_prog_compiler_pic_CXX in
14991 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14994 lt_prog_compiler_pic_CXX=
14995 lt_prog_compiler_can_build_shared_CXX=no
15000 # For platforms which do not support PIC, -DPIC is meaningless:
15002 lt_prog_compiler_pic_CXX=
15005 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15009 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15010 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15011 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 lt_cv_prog_compiler_c_o_CXX=no
15015 $rm -r conftest 2>/dev/null
15019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15021 lt_compiler_flag="-o out/conftest2.$ac_objext"
15022 # Insert the option either (1) after the last *FLAGS variable, or
15023 # (2) before a word containing "conftest.", or (3) at the end.
15024 # Note that $ac_compile itself does not contain backslashes and begins
15025 # with a dollar sign (not a hyphen), so the echo should work correctly.
15026 lt_compile=`echo "$ac_compile" | $SED \
15027 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15029 -e 's:$: $lt_compiler_flag:'`
15030 (eval echo "\"\$as_me:15030: $lt_compile\"" >&5)
15031 (eval "$lt_compile" 2>out/conftest.err)
15033 cat out/conftest.err >&5
15034 echo "$as_me:15034: \$? = $ac_status" >&5
15035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15037 # The compiler can only warn and ignore the option if not recognized
15038 # So say no if there are warnings
15039 if test ! -s out/conftest.err; then
15040 lt_cv_prog_compiler_c_o_CXX=yes
15045 # SGI C++ compiler will create directory out/ii_files/ for
15046 # template instantiation
15047 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15048 $rm out/* && rmdir out
15054 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15055 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15058 hard_links="nottested"
15059 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15060 # do not overwrite the value of need_locks provided by the user
15061 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15062 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15067 ln conftest.a conftest.b 2>&5 || hard_links=no
15068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15069 echo "$as_me:$LINENO: result: $hard_links" >&5
15070 echo "${ECHO_T}$hard_links" >&6
15071 if test "$hard_links" = no; then
15072 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15073 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15080 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15081 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15083 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15086 # If we're using GNU nm, then we don't want the "-C" option.
15087 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15088 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15089 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'
15091 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'
15095 export_symbols_cmds_CXX="$ltdll_cmds"
15098 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15101 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15105 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15106 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15107 test "$ld_shlibs_CXX" = no && can_build_shared=no
15109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15110 if test "$GCC" = yes; then
15111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15115 # Do we need to explicitly link libc?
15117 case "x$archive_cmds_need_lc_CXX" in
15119 # Assume -lc should be added
15120 archive_cmds_need_lc_CXX=yes
15122 if test "$enable_shared" = yes && test "$GCC" = yes; then
15123 case $archive_cmds_CXX in
15125 # FIXME: we may have to deal with multi-command sequences.
15128 # Test whether the compiler implicitly links with -lc since on some
15129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15130 # to ld, don't add -lc before -lgcc.
15131 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15132 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137 (eval $ac_compile) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } 2>conftest.err; then
15143 libobjs=conftest.$ac_objext
15145 wl=$lt_prog_compiler_wl_CXX
15151 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15152 allow_undefined_flag_CXX=
15153 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15154 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }
15159 archive_cmds_need_lc_CXX=no
15161 archive_cmds_need_lc_CXX=yes
15163 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15165 cat conftest.err 1>&5
15168 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15169 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15176 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15177 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15178 library_names_spec=
15179 libname_spec='lib$name'
15183 postuninstall_cmds=
15187 shlibpath_overrides_runpath=unknown
15189 dynamic_linker="$host_os ld.so"
15190 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15191 if test "$GCC" = yes; then
15192 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15193 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15194 # if the path contains ";" then we assume it to be the separator
15195 # otherwise default to the standard path separator (i.e. ":") - it is
15196 # assumed that no part of a normal pathname contains ";" but that should
15197 # okay in the real world where ";" in dirpaths is itself problematic.
15198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15203 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15205 need_lib_prefix=unknown
15206 hardcode_into_libs=no
15208 # when you set need_version to no, make sure it does not cause -set_version
15209 # flags to be left without arguments
15210 need_version=unknown
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15216 shlibpath_var=LIBPATH
15218 # AIX 3 has no versioning support, so we append a major version to the name.
15219 soname_spec='${libname}${release}${shared_ext}$major'
15226 hardcode_into_libs=yes
15227 if test "$host_cpu" = ia64; then
15228 # AIX 5 supports IA64
15229 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15230 shlibpath_var=LD_LIBRARY_PATH
15232 # With GCC up to 2.95.x, collect2 would create an import file
15233 # for dependence libraries. The import file would start with
15234 # the line `#! .'. This would cause the generated library to
15235 # depend on `.', always an invalid library. This was fixed in
15236 # development snapshots of GCC prior to 3.0.
15238 aix4 | aix4.[01] | aix4.[01].*)
15239 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15241 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15244 can_build_shared=no
15248 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15249 # soname into executable. Probably we can add versioning support to
15250 # collect2, so additional links can be useful in future.
15251 if test "$aix_use_runtimelinking" = yes; then
15252 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15253 # instead of lib<name>.a to let people know that these are not
15254 # typical AIX shared libraries.
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 # We preserve .a as extension for shared libraries through AIX4.2
15258 # and later when we are not doing run time linking.
15259 library_names_spec='${libname}${release}.a $libname.a'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LIBPATH
15267 library_names_spec='$libname.ixlibrary $libname.a'
15268 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15269 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'
15273 library_names_spec='${libname}${shared_ext}'
15274 dynamic_linker="$host_os ld.so"
15275 shlibpath_var=LIBRARY_PATH
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15287 # the default ld.so.conf also contains /usr/contrib/lib and
15288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15289 # libtool to hard-code these into programs
15292 cygwin* | mingw* | pw32*)
15293 version_type=windows
15298 case $GCC,$host_os in
15299 yes,cygwin* | yes,mingw* | yes,pw32*)
15300 library_names_spec='$libname.dll.a'
15301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15302 postinstall_cmds='base_file=`basename \${file}`~
15303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15304 dldir=$destdir/`dirname \$dlpath`~
15305 test -d \$dldir || mkdir -p \$dldir~
15306 $install_prog $dir/$dlname \$dldir/$dlname'
15307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15308 dlpath=$dir/\$dldll~
15310 shlibpath_overrides_runpath=yes
15314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15316 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15319 # MinGW DLLs use traditional 'lib' prefix
15320 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15321 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15322 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15323 # It is most probably a Windows format PATH printed by
15324 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15325 # path with ; separators, and with drive letters. We can handle the
15326 # drive letters (cygwin fileutils understands them), so leave them,
15327 # especially as we might pass files found there to a mingw objdump,
15328 # which wouldn't understand a cygwinified path. Ahh.
15329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15335 # pw32 DLLs use 'pw' prefix rather than 'lib'
15336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15345 dynamic_linker='Win32 ld.exe'
15346 # FIXME: first we should search . and the directory the executable is in
15350 darwin* | rhapsody*)
15351 dynamic_linker="$host_os dyld"
15352 version_type=darwin
15355 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15356 soname_spec='${libname}${release}${major}$shared_ext'
15357 shlibpath_overrides_runpath=yes
15358 shlibpath_var=DYLD_LIBRARY_PATH
15359 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15360 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15361 if test "$GCC" = yes; then
15362 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"`
15364 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15374 soname_spec='${libname}${release}${shared_ext}$major'
15375 shlibpath_var=LD_LIBRARY_PATH
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=no
15390 hardcode_into_libs=yes
15391 dynamic_linker='GNU ld.so'
15395 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15396 version_type=freebsd-$objformat
15397 case $version_type in
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15408 shlibpath_var=LD_LIBRARY_PATH
15411 shlibpath_overrides_runpath=yes
15413 freebsd3.01* | freebsdelf3.01*)
15414 shlibpath_overrides_runpath=yes
15415 hardcode_into_libs=yes
15418 shlibpath_overrides_runpath=no
15419 hardcode_into_libs=yes
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 hardcode_into_libs=yes
15434 hpux9* | hpux10* | hpux11*)
15435 # Give a soname corresponding to the major version so that dld.sl refuses to
15436 # link against other versions.
15440 case "$host_cpu" in
15443 hardcode_into_libs=yes
15444 dynamic_linker="$host_os dld.so"
15445 shlibpath_var=LD_LIBRARY_PATH
15446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 if test "X$HPUX_IA64_MODE" = X32; then
15450 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15452 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15458 hardcode_into_libs=yes
15459 dynamic_linker="$host_os dld.sl"
15460 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463 soname_spec='${libname}${release}${shared_ext}$major'
15464 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15469 dynamic_linker="$host_os dld.sl"
15470 shlibpath_var=SHLIB_PATH
15471 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15476 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15477 postinstall_cmds='chmod 555 $lib'
15480 irix5* | irix6* | nonstopux*)
15482 nonstopux*) version_type=nonstopux ;;
15484 if test "$lt_cv_prog_gnu_ld" = yes; then
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15495 irix5* | nonstopux*)
15496 libsuff= shlibsuff=
15499 case $LD in # libtool.m4 will add one of these switches to LD
15500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15501 libsuff= shlibsuff= libmagic=32-bit;;
15502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15503 libsuff=32 shlibsuff=N32 libmagic=N32;;
15504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15506 *) libsuff= shlibsuff= libmagic=never-match;;
15510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15511 shlibpath_overrides_runpath=no
15512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15514 hardcode_into_libs=yes
15517 # No shared lib support for Linux oldld, aout, or coff.
15518 linux*oldld* | linux*aout* | linux*coff*)
15522 # This must be Linux ELF.
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=no
15532 # This implies no fast_install, which is unacceptable.
15533 # Some rework will be needed to allow for fast_install
15534 # before this can be enabled.
15535 hardcode_into_libs=yes
15537 # Append ld.so.conf contents to the search path
15538 if test -f /etc/ld.so.conf; then
15539 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15543 # We used to test for /lib/ld.so.1 and disable shared libraries on
15544 # powerpc, because MkLinux only supported shared libraries with the
15545 # GNU dynamic linker. Since this was broken with cross compilers,
15546 # most powerpc-linux boxes support dynamic linking these days and
15547 # people can always --disable-shared, the test was removed, and we
15548 # assume the GNU/Linux dynamic linker is in use.
15549 dynamic_linker='GNU/Linux ld.so'
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=no
15560 hardcode_into_libs=yes
15561 dynamic_linker='GNU ld.so'
15568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15571 dynamic_linker='NetBSD (a.out) ld.so'
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 dynamic_linker='NetBSD ld.elf_so'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes
15579 hardcode_into_libs=yes
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15608 openbsd2.[89] | openbsd2.[89].*)
15609 shlibpath_overrides_runpath=no
15612 shlibpath_overrides_runpath=yes
15616 shlibpath_overrides_runpath=yes
15621 libname_spec='$name'
15624 library_names_spec='$libname${shared_ext} $libname.a'
15625 dynamic_linker='OS/2 ld.exe'
15626 shlibpath_var=LIBPATH
15629 osf3* | osf4* | osf5*)
15633 soname_spec='${libname}${release}${shared_ext}$major'
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644 shlibpath_var=LD_LIBRARY_PATH
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652 soname_spec='${libname}${release}${shared_ext}$major'
15653 shlibpath_var=LD_LIBRARY_PATH
15654 shlibpath_overrides_runpath=yes
15655 hardcode_into_libs=yes
15656 # ldd complains unless libraries are executable
15657 postinstall_cmds='chmod +x $lib'
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15663 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 shlibpath_overrides_runpath=yes
15666 if test "$with_gnu_ld" = yes; then
15672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675 soname_spec='${libname}${release}${shared_ext}$major'
15676 shlibpath_var=LD_LIBRARY_PATH
15677 case $host_vendor in
15679 shlibpath_overrides_runpath=no
15681 export_dynamic_flag_spec='${wl}-Blargedynsym'
15682 runpath_var=LD_RUN_PATH
15690 shlibpath_overrides_runpath=no
15691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15697 if test -d /usr/nec ;then
15699 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15700 soname_spec='$libname${shared_ext}.$major'
15701 shlibpath_var=LD_LIBRARY_PATH
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15708 soname_spec='${libname}${release}${shared_ext}$major'
15709 shlibpath_var=LD_LIBRARY_PATH
15716 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15717 echo "${ECHO_T}$dynamic_linker" >&6
15718 test "$dynamic_linker" = no && can_build_shared=no
15720 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15722 hardcode_action_CXX=
15723 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15724 test -n "$runpath_var_CXX" || \
15725 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15727 # We can hardcode non-existant directories.
15728 if test "$hardcode_direct_CXX" != no &&
15729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15730 # have to relink, otherwise we might link with an installed library
15731 # when we should be linking with a yet-to-be-installed one
15732 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15733 test "$hardcode_minus_L_CXX" != no; then
15734 # Linking always hardcodes the temporary library directory.
15735 hardcode_action_CXX=relink
15737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15738 hardcode_action_CXX=immediate
15741 # We cannot hardcode anything, or else we can only hardcode existing
15743 hardcode_action_CXX=unsupported
15745 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15746 echo "${ECHO_T}$hardcode_action_CXX" >&6
15748 if test "$hardcode_action_CXX" = relink; then
15749 # Fast installation is not supported
15750 enable_fast_install=no
15751 elif test "$shlibpath_overrides_runpath" = yes ||
15752 test "$enable_shared" = no; then
15753 # Fast installation is not necessary
15754 enable_fast_install=needless
15759 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15764 echo "$as_me:$LINENO: result: yes" >&5
15765 echo "${ECHO_T}yes" >&6
15767 # FIXME - insert some real tests, host_os isn't really good enough
15770 if test -n "$STRIP" ; then
15771 striplib="$STRIP -x"
15772 echo "$as_me:$LINENO: result: yes" >&5
15773 echo "${ECHO_T}yes" >&6
15775 echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6
15780 echo "$as_me:$LINENO: result: no" >&5
15781 echo "${ECHO_T}no" >&6
15786 if test "x$enable_dlopen" != xyes; then
15787 enable_dlopen=unknown
15788 enable_dlopen_self=unknown
15789 enable_dlopen_self_static=unknown
15796 lt_cv_dlopen="load_add_on"
15798 lt_cv_dlopen_self=yes
15802 lt_cv_dlopen="LoadLibrary"
15807 lt_cv_dlopen="dlopen"
15812 # if libdl is installed we need to link against it
15813 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 ac_check_lib_save_LIBS=$LIBS
15820 cat >conftest.$ac_ext <<_ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15827 /* Override any gcc2 internal prototype to avoid an error. */
15831 /* We use char because int might match the return type of a gcc2
15832 builtin and then its argument prototype would still apply. */
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15844 (eval $ac_link) 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -z "$ac_cxx_werror_flag"
15852 || test ! -s conftest.err'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try='test -s conftest$ac_exeext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 ac_cv_lib_dl_dlopen=yes
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 ac_cv_lib_dl_dlopen=no
15871 rm -f conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15873 LIBS=$ac_check_lib_save_LIBS
15875 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15876 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15877 if test $ac_cv_lib_dl_dlopen = yes; then
15878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15881 lt_cv_dlopen="dyld"
15883 lt_cv_dlopen_self=yes
15890 echo "$as_me:$LINENO: checking for shl_load" >&5
15891 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15892 if test "${ac_cv_func_shl_load+set}" = set; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 cat >conftest.$ac_ext <<_ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15903 #define shl_load innocuous_shl_load
15905 /* System header to define __stub macros and hopefully few prototypes,
15906 which can conflict with char shl_load (); below.
15907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15908 <limits.h> exists even on freestanding compilers. */
15911 # include <limits.h>
15913 # include <assert.h>
15918 /* Override any gcc2 internal prototype to avoid an error. */
15923 /* We use char because int might match the return type of a gcc2
15924 builtin and then its argument prototype would still apply. */
15926 /* The GNU C library defines this for functions which it implements
15927 to always fail with ENOSYS. Some functions are actually named
15928 something starting with __ and the normal name is an alias. */
15929 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15932 char (*f) () = shl_load;
15941 return f != shl_load;
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15948 (eval $ac_link) 2>conftest.er1
15950 grep -v '^ *+' conftest.er1 >conftest.err
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_cxx_werror_flag"
15956 || test ! -s conftest.err'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; } &&
15962 { ac_try='test -s conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_func_shl_load=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_cv_func_shl_load=no
15975 rm -f conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15978 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15979 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15980 if test $ac_cv_func_shl_load = yes; then
15981 lt_cv_dlopen="shl_load"
15983 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15984 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15985 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 ac_check_lib_save_LIBS=$LIBS
15990 cat >conftest.$ac_ext <<_ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15997 /* Override any gcc2 internal prototype to avoid an error. */
16001 /* We use char because int might match the return type of a gcc2
16002 builtin and then its argument prototype would still apply. */
16012 rm -f conftest.$ac_objext conftest$ac_exeext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16014 (eval $ac_link) 2>conftest.er1
16016 grep -v '^ *+' conftest.er1 >conftest.err
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -z "$ac_cxx_werror_flag"
16022 || test ! -s conftest.err'
16023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024 (eval $ac_try) 2>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try='test -s conftest$ac_exeext'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16034 ac_cv_lib_dld_shl_load=yes
16036 echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16039 ac_cv_lib_dld_shl_load=no
16041 rm -f conftest.err conftest.$ac_objext \
16042 conftest$ac_exeext conftest.$ac_ext
16043 LIBS=$ac_check_lib_save_LIBS
16045 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16046 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16047 if test $ac_cv_lib_dld_shl_load = yes; then
16048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16050 echo "$as_me:$LINENO: checking for dlopen" >&5
16051 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16052 if test "${ac_cv_func_dlopen+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16063 #define dlopen innocuous_dlopen
16065 /* System header to define __stub macros and hopefully few prototypes,
16066 which can conflict with char dlopen (); below.
16067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16068 <limits.h> exists even on freestanding compilers. */
16071 # include <limits.h>
16073 # include <assert.h>
16078 /* Override any gcc2 internal prototype to avoid an error. */
16083 /* We use char because int might match the return type of a gcc2
16084 builtin and then its argument prototype would still apply. */
16086 /* The GNU C library defines this for functions which it implements
16087 to always fail with ENOSYS. Some functions are actually named
16088 something starting with __ and the normal name is an alias. */
16089 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16092 char (*f) () = dlopen;
16101 return f != dlopen;
16106 rm -f conftest.$ac_objext conftest$ac_exeext
16107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16108 (eval $ac_link) 2>conftest.er1
16110 grep -v '^ *+' conftest.er1 >conftest.err
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -z "$ac_cxx_werror_flag"
16116 || test ! -s conftest.err'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest$ac_exeext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_cv_func_dlopen=yes
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16133 ac_cv_func_dlopen=no
16135 rm -f conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16138 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16139 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16140 if test $ac_cv_func_dlopen = yes; then
16141 lt_cv_dlopen="dlopen"
16143 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 ac_check_lib_save_LIBS=$LIBS
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16157 /* Override any gcc2 internal prototype to avoid an error. */
16161 /* We use char because int might match the return type of a gcc2
16162 builtin and then its argument prototype would still apply. */
16172 rm -f conftest.$ac_objext conftest$ac_exeext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16174 (eval $ac_link) 2>conftest.er1
16176 grep -v '^ *+' conftest.er1 >conftest.err
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_cxx_werror_flag"
16182 || test ! -s conftest.err'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest$ac_exeext'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_cv_lib_dl_dlopen=yes
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16199 ac_cv_lib_dl_dlopen=no
16201 rm -f conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203 LIBS=$ac_check_lib_save_LIBS
16205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16207 if test $ac_cv_lib_dl_dlopen = yes; then
16208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16210 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16211 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16212 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 ac_check_lib_save_LIBS=$LIBS
16216 LIBS="-lsvld $LIBS"
16217 cat >conftest.$ac_ext <<_ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16224 /* Override any gcc2 internal prototype to avoid an error. */
16228 /* We use char because int might match the return type of a gcc2
16229 builtin and then its argument prototype would still apply. */
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241 (eval $ac_link) 2>conftest.er1
16243 grep -v '^ *+' conftest.er1 >conftest.err
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -z "$ac_cxx_werror_flag"
16249 || test ! -s conftest.err'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; } &&
16255 { ac_try='test -s conftest$ac_exeext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_cv_lib_svld_dlopen=yes
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_cv_lib_svld_dlopen=no
16268 rm -f conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16270 LIBS=$ac_check_lib_save_LIBS
16272 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16273 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16274 if test $ac_cv_lib_svld_dlopen = yes; then
16275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16277 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16278 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16279 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 ac_check_lib_save_LIBS=$LIBS
16284 cat >conftest.$ac_ext <<_ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16291 /* Override any gcc2 internal prototype to avoid an error. */
16295 /* We use char because int might match the return type of a gcc2
16296 builtin and then its argument prototype would still apply. */
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16308 (eval $ac_link) 2>conftest.er1
16310 grep -v '^ *+' conftest.er1 >conftest.err
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try='test -z "$ac_cxx_werror_flag"
16316 || test ! -s conftest.err'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; } &&
16322 { ac_try='test -s conftest$ac_exeext'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; }; then
16328 ac_cv_lib_dld_dld_link=yes
16330 echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16333 ac_cv_lib_dld_dld_link=no
16335 rm -f conftest.err conftest.$ac_objext \
16336 conftest$ac_exeext conftest.$ac_ext
16337 LIBS=$ac_check_lib_save_LIBS
16339 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16340 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16341 if test $ac_cv_lib_dld_dld_link = yes; then
16342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16363 if test "x$lt_cv_dlopen" != xno; then
16369 case $lt_cv_dlopen in
16371 save_CPPFLAGS="$CPPFLAGS"
16372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16374 save_LDFLAGS="$LDFLAGS"
16375 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16378 LIBS="$lt_cv_dlopen_libs $LIBS"
16380 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16381 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16382 if test "${lt_cv_dlopen_self+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 if test "$cross_compiling" = yes; then :
16386 lt_cv_dlopen_self=cross
16388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16389 lt_status=$lt_dlunknown
16390 cat > conftest.$ac_ext <<EOF
16391 #line 16391 "configure"
16392 #include "confdefs.h"
16401 # define LT_DLGLOBAL RTLD_GLOBAL
16404 # define LT_DLGLOBAL DL_GLOBAL
16406 # define LT_DLGLOBAL 0
16410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16411 find out it does not work in some platform. */
16412 #ifndef LT_DLLAZY_OR_NOW
16414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16417 # define LT_DLLAZY_OR_NOW DL_LAZY
16420 # define LT_DLLAZY_OR_NOW RTLD_NOW
16423 # define LT_DLLAZY_OR_NOW DL_NOW
16425 # define LT_DLLAZY_OR_NOW 0
16433 extern "C" void exit (int);
16436 void fnord() { int i=42;}
16439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16440 int status = $lt_dlunknown;
16444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16445 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16446 /* dlclose (self); */
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453 (eval $ac_link) 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16457 (./conftest; exit; ) 2>/dev/null
16459 case x$lt_status in
16460 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16461 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16462 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16465 # compilation failed
16466 lt_cv_dlopen_self=no
16473 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16474 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16476 if test "x$lt_cv_dlopen_self" = xyes; then
16477 LDFLAGS="$LDFLAGS $link_static_flag"
16478 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16479 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16480 if test "${lt_cv_dlopen_self_static+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 if test "$cross_compiling" = yes; then :
16484 lt_cv_dlopen_self_static=cross
16486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16487 lt_status=$lt_dlunknown
16488 cat > conftest.$ac_ext <<EOF
16489 #line 16489 "configure"
16490 #include "confdefs.h"
16499 # define LT_DLGLOBAL RTLD_GLOBAL
16502 # define LT_DLGLOBAL DL_GLOBAL
16504 # define LT_DLGLOBAL 0
16508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16509 find out it does not work in some platform. */
16510 #ifndef LT_DLLAZY_OR_NOW
16512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16515 # define LT_DLLAZY_OR_NOW DL_LAZY
16518 # define LT_DLLAZY_OR_NOW RTLD_NOW
16521 # define LT_DLLAZY_OR_NOW DL_NOW
16523 # define LT_DLLAZY_OR_NOW 0
16531 extern "C" void exit (int);
16534 void fnord() { int i=42;}
16537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16538 int status = $lt_dlunknown;
16542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16544 /* dlclose (self); */
16550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16551 (eval $ac_link) 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16555 (./conftest; exit; ) 2>/dev/null
16557 case x$lt_status in
16558 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16559 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16560 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16563 # compilation failed
16564 lt_cv_dlopen_self_static=no
16571 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16572 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16575 CPPFLAGS="$save_CPPFLAGS"
16576 LDFLAGS="$save_LDFLAGS"
16581 case $lt_cv_dlopen_self in
16582 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16583 *) enable_dlopen_self=unknown ;;
16586 case $lt_cv_dlopen_self_static in
16587 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16588 *) enable_dlopen_self_static=unknown ;;
16593 # The else clause should only fire when bootstrapping the
16594 # libtool distribution, otherwise you forgot to ship ltmain.sh
16595 # with your package, and you will get complaints that there are
16596 # no rules to generate ltmain.sh.
16597 if test -f "$ltmain"; then
16598 # See if we are running on zsh, and set the options which allow our commands through
16599 # without removal of \ escapes.
16600 if test -n "${ZSH_VERSION+set}" ; then
16601 setopt NO_GLOB_SUBST
16603 # Now quote all the things that may contain metacharacters while being
16604 # careful not to overquote the AC_SUBSTed values. We take copies of the
16605 # variables and quote the copies for generation of the libtool script.
16606 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16608 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16609 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16610 deplibs_check_method reload_flag reload_cmds need_locks \
16611 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16612 lt_cv_sys_global_symbol_to_c_name_address \
16613 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16614 old_postinstall_cmds old_postuninstall_cmds \
16618 lt_prog_compiler_wl_CXX \
16619 lt_prog_compiler_pic_CXX \
16620 lt_prog_compiler_static_CXX \
16621 lt_prog_compiler_no_builtin_flag_CXX \
16622 export_dynamic_flag_spec_CXX \
16623 thread_safe_flag_spec_CXX \
16624 whole_archive_flag_spec_CXX \
16625 enable_shared_with_static_runtimes_CXX \
16626 old_archive_cmds_CXX \
16627 old_archive_from_new_cmds_CXX \
16628 predep_objects_CXX \
16629 postdep_objects_CXX \
16632 compiler_lib_search_path_CXX \
16634 archive_expsym_cmds_CXX \
16635 postinstall_cmds_CXX \
16636 postuninstall_cmds_CXX \
16637 old_archive_from_expsyms_cmds_CXX \
16638 allow_undefined_flag_CXX \
16639 no_undefined_flag_CXX \
16640 export_symbols_cmds_CXX \
16641 hardcode_libdir_flag_spec_CXX \
16642 hardcode_libdir_flag_spec_ld_CXX \
16643 hardcode_libdir_separator_CXX \
16644 hardcode_automatic_CXX \
16646 module_expsym_cmds_CXX \
16647 lt_cv_prog_compiler_c_o_CXX \
16648 exclude_expsyms_CXX \
16649 include_expsyms_CXX; do
16652 old_archive_cmds_CXX | \
16653 old_archive_from_new_cmds_CXX | \
16654 archive_cmds_CXX | \
16655 archive_expsym_cmds_CXX | \
16656 module_cmds_CXX | \
16657 module_expsym_cmds_CXX | \
16658 old_archive_from_expsyms_cmds_CXX | \
16659 export_symbols_cmds_CXX | \
16660 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16661 postinstall_cmds | postuninstall_cmds | \
16662 old_postinstall_cmds | old_postuninstall_cmds | \
16663 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16664 # Double-quote double-evaled strings.
16665 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16668 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16674 *'\$0 --fallback-echo"')
16675 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16681 cat <<__EOF__ >> "$cfgfile"
16682 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16686 # Shell to use when invoking shell scripts.
16689 # Whether or not to build shared libraries.
16690 build_libtool_libs=$enable_shared
16692 # Whether or not to build static libraries.
16693 build_old_libs=$enable_static
16695 # Whether or not to add -lc for building shared libraries.
16696 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16698 # Whether or not to disallow shared libs when runtime libs are static
16699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16701 # Whether or not to optimize for fast installation.
16702 fast_install=$enable_fast_install
16705 host_alias=$host_alias
16708 # An echo program that does not interpret backslashes.
16713 AR_FLAGS=$lt_AR_FLAGS
16718 # A language-specific compiler.
16719 CC=$lt_compiler_CXX
16721 # Is the compiler the GNU C compiler?
16727 # The linker used to build libraries.
16730 # Whether we need hard or soft links.
16733 # A BSD-compatible nm program.
16736 # A symbol stripping program
16739 # Used to examine libraries when file_magic_cmd begins "file"
16740 MAGIC_CMD=$MAGIC_CMD
16742 # Used on cygwin: DLL creation program.
16745 # Used on cygwin: object dumper.
16748 # Used on cygwin: assembler.
16751 # The name of the directory that contains temporary libtool files.
16754 # How to create reloadable object files.
16755 reload_flag=$lt_reload_flag
16756 reload_cmds=$lt_reload_cmds
16758 # How to pass a linker flag through the compiler.
16759 wl=$lt_lt_prog_compiler_wl_CXX
16761 # Object file suffix (normally "o").
16762 objext="$ac_objext"
16764 # Old archive suffix (normally "a").
16767 # Shared library suffix (normally ".so").
16768 shrext_cmds='$shrext_cmds'
16770 # Executable file suffix (normally "").
16773 # Additional compiler flags for building library objects.
16774 pic_flag=$lt_lt_prog_compiler_pic_CXX
16777 # What is the maximum length of a command?
16778 max_cmd_len=$lt_cv_sys_max_cmd_len
16780 # Does compiler simultaneously support -c and -o options?
16781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16783 # Must we lock files when doing compilation ?
16784 need_locks=$lt_need_locks
16786 # Do we need the lib prefix for modules?
16787 need_lib_prefix=$need_lib_prefix
16789 # Do we need a version for libraries?
16790 need_version=$need_version
16792 # Whether dlopen is supported.
16793 dlopen_support=$enable_dlopen
16795 # Whether dlopen of programs is supported.
16796 dlopen_self=$enable_dlopen_self
16798 # Whether dlopen of statically linked programs is supported.
16799 dlopen_self_static=$enable_dlopen_self_static
16801 # Compiler flag to prevent dynamic linking.
16802 link_static_flag=$lt_lt_prog_compiler_static_CXX
16804 # Compiler flag to turn off builtin functions.
16805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16807 # Compiler flag to allow reflexive dlopens.
16808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16810 # Compiler flag to generate shared objects directly from archives.
16811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16813 # Compiler flag to generate thread-safe objects.
16814 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16816 # Library versioning type.
16817 version_type=$version_type
16819 # Format of library name prefix.
16820 libname_spec=$lt_libname_spec
16822 # List of archive names. First name is the real one, the rest are links.
16823 # The last name is the one that the linker finds with -lNAME.
16824 library_names_spec=$lt_library_names_spec
16826 # The coded name of the library, if different from the real name.
16827 soname_spec=$lt_soname_spec
16829 # Commands used to build and install an old-style archive.
16831 old_archive_cmds=$lt_old_archive_cmds_CXX
16832 old_postinstall_cmds=$lt_old_postinstall_cmds
16833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16835 # Create an old-style archive from a shared archive.
16836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16838 # Create a temporary old-style archive to link instead of a shared archive.
16839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16841 # Commands used to build and install a shared archive.
16842 archive_cmds=$lt_archive_cmds_CXX
16843 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16844 postinstall_cmds=$lt_postinstall_cmds
16845 postuninstall_cmds=$lt_postuninstall_cmds
16847 # Commands used to build a loadable module (assumed same as above if empty)
16848 module_cmds=$lt_module_cmds_CXX
16849 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16851 # Commands to strip libraries.
16852 old_striplib=$lt_old_striplib
16853 striplib=$lt_striplib
16855 # Dependencies to place before the objects being linked to create a
16857 predep_objects=$lt_predep_objects_CXX
16859 # Dependencies to place after the objects being linked to create a
16861 postdep_objects=$lt_postdep_objects_CXX
16863 # Dependencies to place before the objects being linked to create a
16865 predeps=$lt_predeps_CXX
16867 # Dependencies to place after the objects being linked to create a
16869 postdeps=$lt_postdeps_CXX
16871 # The library search path used internally by the compiler when linking
16872 # a shared library.
16873 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16875 # Method to check whether dependent libraries are shared objects.
16876 deplibs_check_method=$lt_deplibs_check_method
16878 # Command to use when deplibs_check_method == file_magic.
16879 file_magic_cmd=$lt_file_magic_cmd
16881 # Flag that allows shared libraries with undefined symbols to be built.
16882 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16884 # Flag that forces no undefined symbols.
16885 no_undefined_flag=$lt_no_undefined_flag_CXX
16887 # Commands used to finish a libtool library installation in a directory.
16888 finish_cmds=$lt_finish_cmds
16890 # Same as above, but a single script fragment to be evaled but not shown.
16891 finish_eval=$lt_finish_eval
16893 # Take the output of nm and produce a listing of raw symbols and C names.
16894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16896 # Transform the output of nm in a proper C declaration
16897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16899 # Transform the output of nm in a C name address pair
16900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16902 # This is the shared library runtime path variable.
16903 runpath_var=$runpath_var
16905 # This is the shared library path variable.
16906 shlibpath_var=$shlibpath_var
16908 # Is shlibpath searched before the hard-coded library search path?
16909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16911 # How to hardcode a shared library path into an executable.
16912 hardcode_action=$hardcode_action_CXX
16914 # Whether we should hardcode library paths into libraries.
16915 hardcode_into_libs=$hardcode_into_libs
16917 # Flag to hardcode \$libdir into a binary during linking.
16918 # This must work even if \$libdir does not exist.
16919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16921 # If ld is used when linking, flag to hardcode \$libdir into
16922 # a binary during linking. This must work even if \$libdir does
16924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16926 # Whether we need a single -rpath flag with a separated argument.
16927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16930 # resulting binary.
16931 hardcode_direct=$hardcode_direct_CXX
16933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16934 # resulting binary.
16935 hardcode_minus_L=$hardcode_minus_L_CXX
16937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16938 # the resulting binary.
16939 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16941 # Set to yes if building a shared library automatically hardcodes DIR into the library
16942 # and all subsequent libraries and executables linked against it.
16943 hardcode_automatic=$hardcode_automatic_CXX
16945 # Variables whose values should be saved in libtool wrapper scripts and
16946 # restored at relink time.
16947 variables_saved_for_relink="$variables_saved_for_relink"
16949 # Whether libtool must link a program against all its dependency libraries.
16950 link_all_deplibs=$link_all_deplibs_CXX
16952 # Compile-time system search path for libraries
16953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16955 # Run-time system search path for libraries
16956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16958 # Fix the shell variable \$srcfile for the compiler.
16959 fix_srcfile_path="$fix_srcfile_path_CXX"
16961 # Set to yes if exported symbols are required.
16962 always_export_symbols=$always_export_symbols_CXX
16964 # The commands to list exported symbols.
16965 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16967 # The commands to extract the exported symbol list from a shared archive.
16968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16970 # Symbols that should not be listed in the preloaded symbols.
16971 exclude_expsyms=$lt_exclude_expsyms_CXX
16973 # Symbols that must always be exported.
16974 include_expsyms=$lt_include_expsyms_CXX
16976 # ### END LIBTOOL TAG CONFIG: $tagname
16982 # If there is no Makefile yet, we rely on a make rule to execute
16983 # `config.status --recheck' to rerun these tests and create the
16984 # libtool script then.
16985 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16986 if test -f "$ltmain_in"; then
16987 test -f Makefile && make "$ltmain"
16993 ac_cpp='$CPP $CPPFLAGS'
16994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17002 with_gnu_ldcxx=$with_gnu_ld
17003 with_gnu_ld=$lt_save_with_gnu_ld
17004 lt_cv_path_LDCXX=$lt_cv_path_LD
17005 lt_cv_path_LD=$lt_save_path_LD
17006 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17007 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17015 if test -n "$F77" && test "X$F77" != "Xno"; then
17018 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17019 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17020 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17023 archive_cmds_need_lc_F77=no
17024 allow_undefined_flag_F77=
17025 always_export_symbols_F77=no
17026 archive_expsym_cmds_F77=
17027 export_dynamic_flag_spec_F77=
17028 hardcode_direct_F77=no
17029 hardcode_libdir_flag_spec_F77=
17030 hardcode_libdir_flag_spec_ld_F77=
17031 hardcode_libdir_separator_F77=
17032 hardcode_minus_L_F77=no
17033 hardcode_automatic_F77=no
17035 module_expsym_cmds_F77=
17036 link_all_deplibs_F77=unknown
17037 old_archive_cmds_F77=$old_archive_cmds
17038 no_undefined_flag_F77=
17039 whole_archive_flag_spec_F77=
17040 enable_shared_with_static_runtimes_F77=no
17042 # Source file extension for f77 test sources.
17045 # Object file extension for compiled f77 test sources.
17049 # Code to be used in simple compile tests
17050 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
17052 # Code to be used in simple link tests
17053 lt_simple_link_test_code=" program t\n end\n"
17055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17057 # If no C compiler was specified, use CC.
17060 # Allow CC to be a program name with arguments.
17064 # Allow CC to be a program name with arguments.
17069 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
17071 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17072 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17073 echo "$as_me:$LINENO: result: $can_build_shared" >&5
17074 echo "${ECHO_T}$can_build_shared" >&6
17076 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17077 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17078 test "$can_build_shared" = "no" && enable_shared=no
17080 # On AIX, shared libraries and static libraries use the same namespace, and
17081 # are all built from PIC.
17084 test "$enable_shared" = yes && enable_static=no
17085 if test -n "$RANLIB"; then
17086 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17087 postinstall_cmds='$RANLIB $lib'
17091 test "$enable_shared" = yes && enable_static=no
17094 echo "$as_me:$LINENO: result: $enable_shared" >&5
17095 echo "${ECHO_T}$enable_shared" >&6
17097 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17098 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
17099 # Make sure either enable_shared or enable_static is yes.
17100 test "$enable_shared" = yes || enable_static=yes
17101 echo "$as_me:$LINENO: result: $enable_static" >&5
17102 echo "${ECHO_T}$enable_static" >&6
17104 test "$ld_shlibs_F77" = no && can_build_shared=no
17109 lt_prog_compiler_wl_F77=
17110 lt_prog_compiler_pic_F77=
17111 lt_prog_compiler_static_F77=
17113 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17114 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17116 if test "$GCC" = yes; then
17117 lt_prog_compiler_wl_F77='-Wl,'
17118 lt_prog_compiler_static_F77='-static'
17122 # All AIX code is PIC.
17123 if test "$host_cpu" = ia64; then
17124 # AIX 5 now supports IA64 processor
17125 lt_prog_compiler_static_F77='-Bstatic'
17130 # FIXME: we need at least 68020 code to build shared libraries, but
17131 # adding the `-m68020' flag to GCC prevents building anything better,
17133 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17136 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17137 # PIC is the default for these OSes.
17140 mingw* | pw32* | os2*)
17141 # This hack is so that the source file can tell whether it is being
17142 # built for inclusion in a dll (and should export symbols for example).
17143 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17146 darwin* | rhapsody*)
17147 # PIC is the default on this platform
17148 # Common symbols not allowed in MH_DYLIB files
17149 lt_prog_compiler_pic_F77='-fno-common'
17153 # Just because we use GCC doesn't mean we suddenly get shared libraries
17154 # on systems that don't support them.
17155 lt_prog_compiler_can_build_shared_F77=no
17160 if test -d /usr/nec; then
17161 lt_prog_compiler_pic_F77=-Kconform_pic
17166 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17167 # not for PA HP-UX.
17168 case "$host_cpu" in
17173 lt_prog_compiler_pic_F77='-fPIC'
17179 lt_prog_compiler_pic_F77='-fPIC'
17183 # PORTME Check for flag to pass linker flags through the system compiler.
17186 lt_prog_compiler_wl_F77='-Wl,'
17187 if test "$host_cpu" = ia64; then
17188 # AIX 5 now supports IA64 processor
17189 lt_prog_compiler_static_F77='-Bstatic'
17191 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17195 # PIC is the default on this platform
17196 # Common symbols not allowed in MH_DYLIB files
17197 case "$cc_basename" in
17199 lt_prog_compiler_pic_F77='-qnocommon'
17200 lt_prog_compiler_wl_F77='-Wl,'
17205 mingw* | pw32* | os2*)
17206 # This hack is so that the source file can tell whether it is being
17207 # built for inclusion in a dll (and should export symbols for example).
17208 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17211 hpux9* | hpux10* | hpux11*)
17212 lt_prog_compiler_wl_F77='-Wl,'
17213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17214 # not for PA HP-UX.
17215 case "$host_cpu" in
17220 lt_prog_compiler_pic_F77='+Z'
17223 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17224 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17227 irix5* | irix6* | nonstopux*)
17228 lt_prog_compiler_wl_F77='-Wl,'
17229 # PIC (with -KPIC) is the default.
17230 lt_prog_compiler_static_F77='-non_shared'
17234 lt_prog_compiler_pic_F77='-KPIC'
17235 lt_prog_compiler_static_F77='-Bstatic'
17241 lt_prog_compiler_wl_F77='-Wl,'
17242 lt_prog_compiler_pic_F77='-KPIC'
17243 lt_prog_compiler_static_F77='-static'
17246 lt_prog_compiler_wl_F77='-Wl,'
17247 # All Alpha code is PIC.
17248 lt_prog_compiler_static_F77='-non_shared'
17253 osf3* | osf4* | osf5*)
17254 lt_prog_compiler_wl_F77='-Wl,'
17255 # All OSF/1 code is PIC.
17256 lt_prog_compiler_static_F77='-non_shared'
17260 lt_prog_compiler_pic_F77='-Kpic'
17261 lt_prog_compiler_static_F77='-dn'
17265 lt_prog_compiler_wl_F77='-Wl,'
17266 lt_prog_compiler_pic_F77='-KPIC'
17267 lt_prog_compiler_static_F77='-Bstatic'
17271 lt_prog_compiler_wl_F77='-Qoption ld '
17272 lt_prog_compiler_pic_F77='-PIC'
17273 lt_prog_compiler_static_F77='-Bstatic'
17276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17277 lt_prog_compiler_wl_F77='-Wl,'
17278 lt_prog_compiler_pic_F77='-KPIC'
17279 lt_prog_compiler_static_F77='-Bstatic'
17283 if test -d /usr/nec ;then
17284 lt_prog_compiler_pic_F77='-Kconform_pic'
17285 lt_prog_compiler_static_F77='-Bstatic'
17290 lt_prog_compiler_pic_F77='-pic'
17291 lt_prog_compiler_static_F77='-Bstatic'
17295 lt_prog_compiler_can_build_shared_F77=no
17300 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17301 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
17304 # Check to make sure the PIC flag actually works.
17306 if test -n "$lt_prog_compiler_pic_F77"; then
17308 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17309 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
17310 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 lt_prog_compiler_pic_works_F77=no
17314 ac_outfile=conftest.$ac_objext
17315 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17316 lt_compiler_flag="$lt_prog_compiler_pic_F77"
17317 # Insert the option either (1) after the last *FLAGS variable, or
17318 # (2) before a word containing "conftest.", or (3) at the end.
17319 # Note that $ac_compile itself does not contain backslashes and begins
17320 # with a dollar sign (not a hyphen), so the echo should work correctly.
17321 # The option is referenced via a variable to avoid confusing sed.
17322 lt_compile=`echo "$ac_compile" | $SED \
17323 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17325 -e 's:$: $lt_compiler_flag:'`
17326 (eval echo "\"\$as_me:17326: $lt_compile\"" >&5)
17327 (eval "$lt_compile" 2>conftest.err)
17329 cat conftest.err >&5
17330 echo "$as_me:17330: \$? = $ac_status" >&5
17331 if (exit $ac_status) && test -s "$ac_outfile"; then
17332 # The compiler can only warn and ignore the option if not recognized
17333 # So say no if there are warnings
17334 if test ! -s conftest.err; then
17335 lt_prog_compiler_pic_works_F77=yes
17341 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17342 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
17344 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17345 case $lt_prog_compiler_pic_F77 in
17347 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17350 lt_prog_compiler_pic_F77=
17351 lt_prog_compiler_can_build_shared_F77=no
17356 # For platforms which do not support PIC, -DPIC is meaningless:
17358 lt_prog_compiler_pic_F77=
17361 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17365 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17366 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17367 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 lt_cv_prog_compiler_c_o_F77=no
17371 $rm -r conftest 2>/dev/null
17375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17377 lt_compiler_flag="-o out/conftest2.$ac_objext"
17378 # Insert the option either (1) after the last *FLAGS variable, or
17379 # (2) before a word containing "conftest.", or (3) at the end.
17380 # Note that $ac_compile itself does not contain backslashes and begins
17381 # with a dollar sign (not a hyphen), so the echo should work correctly.
17382 lt_compile=`echo "$ac_compile" | $SED \
17383 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17385 -e 's:$: $lt_compiler_flag:'`
17386 (eval echo "\"\$as_me:17386: $lt_compile\"" >&5)
17387 (eval "$lt_compile" 2>out/conftest.err)
17389 cat out/conftest.err >&5
17390 echo "$as_me:17390: \$? = $ac_status" >&5
17391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17393 # The compiler can only warn and ignore the option if not recognized
17394 # So say no if there are warnings
17395 if test ! -s out/conftest.err; then
17396 lt_cv_prog_compiler_c_o_F77=yes
17401 # SGI C++ compiler will create directory out/ii_files/ for
17402 # template instantiation
17403 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17404 $rm out/* && rmdir out
17410 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17411 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
17414 hard_links="nottested"
17415 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17416 # do not overwrite the value of need_locks provided by the user
17417 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17418 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17423 ln conftest.a conftest.b 2>&5 || hard_links=no
17424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17425 echo "$as_me:$LINENO: result: $hard_links" >&5
17426 echo "${ECHO_T}$hard_links" >&6
17427 if test "$hard_links" = no; then
17428 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17429 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17436 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17437 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17440 allow_undefined_flag_F77=
17441 enable_shared_with_static_runtimes_F77=no
17443 archive_expsym_cmds_F77=
17444 old_archive_From_new_cmds_F77=
17445 old_archive_from_expsyms_cmds_F77=
17446 export_dynamic_flag_spec_F77=
17447 whole_archive_flag_spec_F77=
17448 thread_safe_flag_spec_F77=
17449 hardcode_libdir_flag_spec_F77=
17450 hardcode_libdir_flag_spec_ld_F77=
17451 hardcode_libdir_separator_F77=
17452 hardcode_direct_F77=no
17453 hardcode_minus_L_F77=no
17454 hardcode_shlibpath_var_F77=unsupported
17455 link_all_deplibs_F77=unknown
17456 hardcode_automatic_F77=no
17458 module_expsym_cmds_F77=
17459 always_export_symbols_F77=no
17460 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17461 # include_expsyms should be a list of space-separated symbols to be *always*
17462 # included in the symbol list
17463 include_expsyms_F77=
17464 # exclude_expsyms can be an extended regexp of symbols to exclude
17465 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17467 # as well as any symbol that contains `d'.
17468 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17470 # platforms (ab)use it in PIC code, but their linkers get confused if
17471 # the symbol is explicitly referenced. Since portable code cannot
17472 # rely on this symbol name, it's probably fine to never include it in
17473 # preloaded symbol tables.
17474 extract_expsyms_cmds=
17477 cygwin* | mingw* | pw32*)
17478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17479 # When not using gcc, we currently assume that we are using
17480 # Microsoft Visual C++.
17481 if test "$GCC" != yes; then
17491 if test "$with_gnu_ld" = yes; then
17492 # If archive_cmds runs LD, not CC, wlarc should be empty
17495 # See if GNU ld supports shared libraries.
17497 aix3* | aix4* | aix5*)
17498 # On AIX/PPC, the GNU linker is very broken
17499 if test "$host_cpu" != ia64; then
17503 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17504 *** to be unable to reliably create shared libraries on AIX.
17505 *** Therefore, libtool is disabling shared libraries support. If you
17506 *** really care for shared libraries, you may want to modify your PATH
17507 *** so that a non-GNU linker is found, and then restart.
17514 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)'
17515 hardcode_libdir_flag_spec_F77='-L$libdir'
17516 hardcode_minus_L_F77=yes
17518 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17519 # that the semantics of dynamic libraries on AmigaOS, at least up
17520 # to version 4, is to share data among multiple programs linked
17521 # with the same dynamic library. Since this doesn't match the
17522 # behavior of shared libraries on other platforms, we can't use
17528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17529 allow_undefined_flag_F77=unsupported
17530 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17531 # support --undefined. This deserves some investigation. FIXME
17532 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17538 cygwin* | mingw* | pw32*)
17539 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17540 # as there is no search path for DLLs.
17541 hardcode_libdir_flag_spec_F77='-L$libdir'
17542 allow_undefined_flag_F77=unsupported
17543 always_export_symbols_F77=no
17544 enable_shared_with_static_runtimes_F77=yes
17545 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17547 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17548 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17549 # If the export-symbols file already is a .def file (1st line
17550 # is EXPORTS), use it as is; otherwise, prepend...
17551 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17552 cp $export_symbols $output_objdir/$soname.def;
17554 echo EXPORTS > $output_objdir/$soname.def;
17555 cat $export_symbols >> $output_objdir/$soname.def;
17557 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17565 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17568 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17569 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17574 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17578 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17579 *** create shared libraries on Solaris systems. Therefore, libtool
17580 *** is disabling shared libraries support. We urge you to upgrade GNU
17581 *** binutils to release 2.9.1 or newer. Another option is to modify
17582 *** your PATH or compiler configuration so that the native linker is
17583 *** used, and then restart.
17586 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17587 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17588 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17595 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17597 hardcode_direct_F77=yes
17598 hardcode_shlibpath_var_F77=no
17602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17603 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17604 archive_cmds_F77="$tmp_archive_cmds"
17605 supports_anon_versioning=no
17606 case `$LD -v 2>/dev/null` in
17607 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17610 *\ 2.11.*) ;; # other 2.11 versions
17611 *) supports_anon_versioning=yes ;;
17613 if test $supports_anon_versioning = yes; then
17614 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17615 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17616 $echo "local: *; };" >> $output_objdir/$libname.ver~
17617 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17619 archive_expsym_cmds_F77="$tmp_archive_cmds"
17627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17628 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17629 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17636 if test "$ld_shlibs_F77" = yes; then
17637 runpath_var=LD_RUN_PATH
17638 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17639 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17640 # ancient GNU ld didn't support --whole-archive et. al.
17641 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17642 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17644 whole_archive_flag_spec_F77=
17648 # PORTME fill in a description of your system's linker (not GNU ld)
17651 allow_undefined_flag_F77=unsupported
17652 always_export_symbols_F77=yes
17653 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'
17654 # Note: this linker hardcodes the directories in LIBPATH if there
17655 # are no directories specified by -L.
17656 hardcode_minus_L_F77=yes
17657 if test "$GCC" = yes && test -z "$link_static_flag"; then
17658 # Neither direct hardcoding nor static linking is supported with a
17660 hardcode_direct_F77=unsupported
17665 if test "$host_cpu" = ia64; then
17666 # On IA64, the linker does run time linking by default, so we don't
17667 # have to do anything special.
17668 aix_use_runtimelinking=no
17669 exp_sym_flag='-Bexport'
17672 # If we're using GNU nm, then we don't want the "-C" option.
17673 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17674 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17675 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'
17677 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'
17679 aix_use_runtimelinking=no
17681 # Test if we are trying to use run time linking or normal
17682 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17683 # need to do runtime linking.
17684 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17685 for ld_flag in $LDFLAGS; do
17686 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17687 aix_use_runtimelinking=yes
17693 exp_sym_flag='-bexport'
17694 no_entry_flag='-bnoentry'
17697 # When large executables or shared objects are built, AIX ld can
17698 # have problems creating the table of contents. If linking a library
17699 # or program results in "error TOC overflow" add -mminimal-toc to
17700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17703 archive_cmds_F77=''
17704 hardcode_direct_F77=yes
17705 hardcode_libdir_separator_F77=':'
17706 link_all_deplibs_F77=yes
17708 if test "$GCC" = yes; then
17709 case $host_os in aix4.012|aix4.012.*)
17710 # We only want to do this on AIX 4.2 and lower, the check
17711 # below for broken collect2 doesn't work under 4.3+
17712 collect2name=`${CC} -print-prog-name=collect2`
17713 if test -f "$collect2name" && \
17714 strings "$collect2name" | grep resolve_lib_name >/dev/null
17716 # We have reworked collect2
17717 hardcode_direct_F77=yes
17719 # We have old collect2
17720 hardcode_direct_F77=unsupported
17721 # It fails to find uninstalled libraries when the uninstalled
17722 # path is not listed in the libpath. Setting hardcode_minus_L
17723 # to unsupported forces relinking
17724 hardcode_minus_L_F77=yes
17725 hardcode_libdir_flag_spec_F77='-L$libdir'
17726 hardcode_libdir_separator_F77=
17729 shared_flag='-shared'
17732 if test "$host_cpu" = ia64; then
17733 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17734 # chokes on -Wl,-G. The following line is correct:
17737 if test "$aix_use_runtimelinking" = yes; then
17738 shared_flag='${wl}-G'
17740 shared_flag='${wl}-bM:SRE'
17745 # It seems that -bexpall does not export symbols beginning with
17746 # underscore (_), so it is better to generate a list of symbols to export.
17747 always_export_symbols_F77=yes
17748 if test "$aix_use_runtimelinking" = yes; then
17749 # Warning - without using the other runtime loading flags (-brtl),
17750 # -berok will link without error, but may produce a broken library.
17751 allow_undefined_flag_F77='-berok'
17752 # Determine the default libpath from the value encoded in an empty executable.
17753 cat >conftest.$ac_ext <<_ACEOF
17758 rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760 (eval $ac_link) 2>conftest.er1
17762 grep -v '^ *+' conftest.er1 >conftest.err
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_f77_werror_flag"
17768 || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17783 # Check for a 64-bit object if we didn't find anything.
17784 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; }
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17791 rm -f conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17795 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17796 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"
17798 if test "$host_cpu" = ia64; then
17799 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17800 allow_undefined_flag_F77="-z nodefs"
17801 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"
17803 # Determine the default libpath from the value encoded in an empty executable.
17804 cat >conftest.$ac_ext <<_ACEOF
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17811 (eval $ac_link) 2>conftest.er1
17813 grep -v '^ *+' conftest.er1 >conftest.err
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_f77_werror_flag"
17819 || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest$ac_exeext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17834 # Check for a 64-bit object if we didn't find anything.
17835 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; }
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17842 rm -f conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17846 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17847 # Warning - without using the other run time loading flags,
17848 # -berok will link without error, but may produce a broken library.
17849 no_undefined_flag_F77=' ${wl}-bernotok'
17850 allow_undefined_flag_F77=' ${wl}-berok'
17851 # -bexpall does not export symbols beginning with underscore (_)
17852 always_export_symbols_F77=yes
17853 # Exported symbols can be pulled into shared objects from archives
17854 whole_archive_flag_spec_F77=' '
17855 archive_cmds_need_lc_F77=yes
17856 # This is similar to how AIX traditionally builds it's shared libraries.
17857 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'
17863 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)'
17864 hardcode_libdir_flag_spec_F77='-L$libdir'
17865 hardcode_minus_L_F77=yes
17866 # see comment about different semantics on the GNU ld section
17871 export_dynamic_flag_spec_F77=-rdynamic
17874 cygwin* | mingw* | pw32*)
17875 # When not using gcc, we currently assume that we are using
17876 # Microsoft Visual C++.
17877 # hardcode_libdir_flag_spec is actually meaningless, as there is
17878 # no search path for DLLs.
17879 hardcode_libdir_flag_spec_F77=' '
17880 allow_undefined_flag_F77=unsupported
17881 # Tell ltmain to make .lib files, not .a files.
17883 # Tell ltmain to make .dll files, not .so files.
17885 # FIXME: Setting linknames here is a bad hack.
17886 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17887 # The linker will automatically build a .lib file if we build a DLL.
17888 old_archive_From_new_cmds_F77='true'
17889 # FIXME: Should let the user specify the lib program.
17890 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17891 fix_srcfile_path='`cygpath -w "$srcfile"`'
17892 enable_shared_with_static_runtimes_F77=yes
17895 darwin* | rhapsody*)
17897 rhapsody* | darwin1.[012])
17898 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17901 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17902 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17904 case ${MACOSX_DEPLOYMENT_TARGET} in
17906 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17909 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17915 archive_cmds_need_lc_F77=no
17916 hardcode_direct_F77=no
17917 hardcode_automatic_F77=yes
17918 hardcode_shlibpath_var_F77=unsupported
17919 whole_archive_flag_spec_F77=''
17920 link_all_deplibs_F77=yes
17921 if test "$GCC" = yes ; then
17922 output_verbose_link_cmd='echo'
17923 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17924 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17925 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17926 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}'
17927 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}'
17929 case "$cc_basename" in
17931 output_verbose_link_cmd='echo'
17932 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17933 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17934 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17935 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}'
17936 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}'
17946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17947 hardcode_libdir_flag_spec_F77='-L$libdir'
17948 hardcode_shlibpath_var_F77=no
17955 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17956 # support. Future versions do this automatically, but an explicit c++rt0.o
17957 # does not break anything, and helps significantly (at the cost of a little
17960 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17961 hardcode_libdir_flag_spec_F77='-R$libdir'
17962 hardcode_direct_F77=yes
17963 hardcode_shlibpath_var_F77=no
17966 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17968 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17969 hardcode_direct_F77=yes
17970 hardcode_minus_L_F77=yes
17971 hardcode_shlibpath_var_F77=no
17974 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17975 freebsd* | kfreebsd*-gnu)
17976 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17977 hardcode_libdir_flag_spec_F77='-R$libdir'
17978 hardcode_direct_F77=yes
17979 hardcode_shlibpath_var_F77=no
17983 if test "$GCC" = yes; then
17984 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'
17986 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'
17988 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17989 hardcode_libdir_separator_F77=:
17990 hardcode_direct_F77=yes
17992 # hardcode_minus_L: Not really in the search PATH,
17993 # but as the default location of the library.
17994 hardcode_minus_L_F77=yes
17995 export_dynamic_flag_spec_F77='${wl}-E'
17999 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18000 case "$host_cpu" in
18002 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18005 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18009 case "$host_cpu" in
18011 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18014 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18018 if test "$with_gnu_ld" = no; then
18019 case "$host_cpu" in
18021 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18022 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18023 hardcode_libdir_separator_F77=:
18024 hardcode_direct_F77=no
18025 hardcode_shlibpath_var_F77=no
18028 hardcode_libdir_flag_spec_F77='-L$libdir'
18029 hardcode_direct_F77=no
18030 hardcode_shlibpath_var_F77=no
18032 # hardcode_minus_L: Not really in the search PATH,
18033 # but as the default location of the library.
18034 hardcode_minus_L_F77=yes
18037 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18038 hardcode_libdir_separator_F77=:
18039 hardcode_direct_F77=yes
18040 export_dynamic_flag_spec_F77='${wl}-E'
18042 # hardcode_minus_L: Not really in the search PATH,
18043 # but as the default location of the library.
18044 hardcode_minus_L_F77=yes
18050 irix5* | irix6* | nonstopux*)
18051 if test "$GCC" = yes; then
18052 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'
18054 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'
18055 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18057 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18058 hardcode_libdir_separator_F77=:
18059 link_all_deplibs_F77=yes
18063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18064 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18066 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18068 hardcode_libdir_flag_spec_F77='-R$libdir'
18069 hardcode_direct_F77=yes
18070 hardcode_shlibpath_var_F77=no
18074 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18075 hardcode_direct_F77=yes
18076 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18077 hardcode_libdir_separator_F77=:
18078 hardcode_shlibpath_var_F77=no
18082 hardcode_direct_F77=yes
18083 hardcode_shlibpath_var_F77=no
18084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18085 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18086 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18087 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18088 export_dynamic_flag_spec_F77='${wl}-E'
18091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18092 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18093 hardcode_libdir_flag_spec_F77='-R$libdir'
18096 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18097 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18104 hardcode_libdir_flag_spec_F77='-L$libdir'
18105 hardcode_minus_L_F77=yes
18106 allow_undefined_flag_F77=unsupported
18107 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'
18108 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18112 if test "$GCC" = yes; then
18113 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18114 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'
18116 allow_undefined_flag_F77=' -expect_unresolved \*'
18117 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'
18119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18120 hardcode_libdir_separator_F77=:
18123 osf4* | osf5*) # as osf3* with the addition of -msym flag
18124 if test "$GCC" = yes; then
18125 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18126 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'
18127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18129 allow_undefined_flag_F77=' -expect_unresolved \*'
18130 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'
18131 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~
18132 $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'
18134 # Both c and cxx compiler support -rpath directly
18135 hardcode_libdir_flag_spec_F77='-rpath $libdir'
18137 hardcode_libdir_separator_F77=:
18141 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18142 hardcode_shlibpath_var_F77=no
18143 export_dynamic_flag_spec_F77='${wl}-Bexport'
18144 runpath_var=LD_RUN_PATH
18145 hardcode_runpath_var=yes
18149 no_undefined_flag_F77=' -z text'
18150 if test "$GCC" = yes; then
18151 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18152 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18153 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18155 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18156 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18157 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18159 hardcode_libdir_flag_spec_F77='-R$libdir'
18160 hardcode_shlibpath_var_F77=no
18162 solaris2.[0-5] | solaris2.[0-5].*) ;;
18163 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18164 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
18166 link_all_deplibs_F77=yes
18170 if test "x$host_vendor" = xsequent; then
18171 # Use $CC to link under sequent, because it throws in some extra .o
18172 # files that make .init and .fini sections work.
18173 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18175 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18177 hardcode_libdir_flag_spec_F77='-L$libdir'
18178 hardcode_direct_F77=yes
18179 hardcode_minus_L_F77=yes
18180 hardcode_shlibpath_var_F77=no
18184 case $host_vendor in
18186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18187 hardcode_direct_F77=yes # is this really true???
18190 ## LD is ld it makes a PLAMLIB
18191 ## CC just makes a GrossModule.
18192 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18193 reload_cmds_F77='$CC -r -o $output$reload_objs'
18194 hardcode_direct_F77=no
18197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18201 runpath_var='LD_RUN_PATH'
18202 hardcode_shlibpath_var_F77=no
18206 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18207 hardcode_shlibpath_var_F77=no
18208 export_dynamic_flag_spec_F77='-Bexport'
18212 if test -d /usr/nec; then
18213 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18214 hardcode_shlibpath_var_F77=no
18215 runpath_var=LD_RUN_PATH
18216 hardcode_runpath_var=yes
18222 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18223 hardcode_direct_F77=yes
18224 hardcode_minus_L_F77=no
18225 hardcode_shlibpath_var_F77=no
18226 hardcode_runpath_var=yes
18227 runpath_var=LD_RUN_PATH
18230 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18231 no_undefined_flag_F77='${wl}-z ${wl}text'
18232 if test "$GCC" = yes; then
18233 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18235 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18237 runpath_var='LD_RUN_PATH'
18238 hardcode_shlibpath_var_F77=no
18242 no_undefined_flag_F77=' -z text'
18243 # $CC -shared without GNU ld will not create a library from C++
18244 # object files and a static libstdc++, better avoid it by now
18245 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18246 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18247 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18248 hardcode_libdir_flag_spec_F77=
18249 hardcode_shlibpath_var_F77=no
18250 runpath_var='LD_RUN_PATH'
18254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18255 hardcode_libdir_flag_spec_F77='-L$libdir'
18256 hardcode_shlibpath_var_F77=no
18265 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18266 echo "${ECHO_T}$ld_shlibs_F77" >&6
18267 test "$ld_shlibs_F77" = no && can_build_shared=no
18269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18270 if test "$GCC" = yes; then
18271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18275 # Do we need to explicitly link libc?
18277 case "x$archive_cmds_need_lc_F77" in
18279 # Assume -lc should be added
18280 archive_cmds_need_lc_F77=yes
18282 if test "$enable_shared" = yes && test "$GCC" = yes; then
18283 case $archive_cmds_F77 in
18285 # FIXME: we may have to deal with multi-command sequences.
18288 # Test whether the compiler implicitly links with -lc since on some
18289 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18290 # to ld, don't add -lc before -lgcc.
18291 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18297 (eval $ac_compile) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } 2>conftest.err; then
18303 libobjs=conftest.$ac_objext
18305 wl=$lt_prog_compiler_wl_F77
18311 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18312 allow_undefined_flag_F77=
18313 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18314 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }
18319 archive_cmds_need_lc_F77=no
18321 archive_cmds_need_lc_F77=yes
18323 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18325 cat conftest.err 1>&5
18328 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18329 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
18336 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18338 library_names_spec=
18339 libname_spec='lib$name'
18343 postuninstall_cmds=
18347 shlibpath_overrides_runpath=unknown
18349 dynamic_linker="$host_os ld.so"
18350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18351 if test "$GCC" = yes; then
18352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18354 # if the path contains ";" then we assume it to be the separator
18355 # otherwise default to the standard path separator (i.e. ":") - it is
18356 # assumed that no part of a normal pathname contains ";" but that should
18357 # okay in the real world where ";" in dirpaths is itself problematic.
18358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18365 need_lib_prefix=unknown
18366 hardcode_into_libs=no
18368 # when you set need_version to no, make sure it does not cause -set_version
18369 # flags to be left without arguments
18370 need_version=unknown
18375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18376 shlibpath_var=LIBPATH
18378 # AIX 3 has no versioning support, so we append a major version to the name.
18379 soname_spec='${libname}${release}${shared_ext}$major'
18386 hardcode_into_libs=yes
18387 if test "$host_cpu" = ia64; then
18388 # AIX 5 supports IA64
18389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18390 shlibpath_var=LD_LIBRARY_PATH
18392 # With GCC up to 2.95.x, collect2 would create an import file
18393 # for dependence libraries. The import file would start with
18394 # the line `#! .'. This would cause the generated library to
18395 # depend on `.', always an invalid library. This was fixed in
18396 # development snapshots of GCC prior to 3.0.
18398 aix4 | aix4.[01] | aix4.[01].*)
18399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18404 can_build_shared=no
18408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18409 # soname into executable. Probably we can add versioning support to
18410 # collect2, so additional links can be useful in future.
18411 if test "$aix_use_runtimelinking" = yes; then
18412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18413 # instead of lib<name>.a to let people know that these are not
18414 # typical AIX shared libraries.
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417 # We preserve .a as extension for shared libraries through AIX4.2
18418 # and later when we are not doing run time linking.
18419 library_names_spec='${libname}${release}.a $libname.a'
18420 soname_spec='${libname}${release}${shared_ext}$major'
18422 shlibpath_var=LIBPATH
18427 library_names_spec='$libname.ixlibrary $libname.a'
18428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18429 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'
18433 library_names_spec='${libname}${shared_ext}'
18434 dynamic_linker="$host_os ld.so"
18435 shlibpath_var=LIBRARY_PATH
18441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18442 soname_spec='${libname}${release}${shared_ext}$major'
18443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18444 shlibpath_var=LD_LIBRARY_PATH
18445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18447 # the default ld.so.conf also contains /usr/contrib/lib and
18448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18449 # libtool to hard-code these into programs
18452 cygwin* | mingw* | pw32*)
18453 version_type=windows
18458 case $GCC,$host_os in
18459 yes,cygwin* | yes,mingw* | yes,pw32*)
18460 library_names_spec='$libname.dll.a'
18461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18462 postinstall_cmds='base_file=`basename \${file}`~
18463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18464 dldir=$destdir/`dirname \$dlpath`~
18465 test -d \$dldir || mkdir -p \$dldir~
18466 $install_prog $dir/$dlname \$dldir/$dlname'
18467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18468 dlpath=$dir/\$dldll~
18470 shlibpath_overrides_runpath=yes
18474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18476 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18479 # MinGW DLLs use traditional 'lib' prefix
18480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18483 # It is most probably a Windows format PATH printed by
18484 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18485 # path with ; separators, and with drive letters. We can handle the
18486 # drive letters (cygwin fileutils understands them), so leave them,
18487 # especially as we might pass files found there to a mingw objdump,
18488 # which wouldn't understand a cygwinified path. Ahh.
18489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18495 # pw32 DLLs use 'pw' prefix rather than 'lib'
18496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18505 dynamic_linker='Win32 ld.exe'
18506 # FIXME: first we should search . and the directory the executable is in
18510 darwin* | rhapsody*)
18511 dynamic_linker="$host_os dyld"
18512 version_type=darwin
18515 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18516 soname_spec='${libname}${release}${major}$shared_ext'
18517 shlibpath_overrides_runpath=yes
18518 shlibpath_var=DYLD_LIBRARY_PATH
18519 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18520 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18521 if test "$GCC" = yes; then
18522 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"`
18524 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18534 soname_spec='${libname}${release}${shared_ext}$major'
18535 shlibpath_var=LD_LIBRARY_PATH
18546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18547 soname_spec='${libname}${release}${shared_ext}$major'
18548 shlibpath_var=LD_LIBRARY_PATH
18549 shlibpath_overrides_runpath=no
18550 hardcode_into_libs=yes
18551 dynamic_linker='GNU ld.so'
18555 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18556 version_type=freebsd-$objformat
18557 case $version_type in
18559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18568 shlibpath_var=LD_LIBRARY_PATH
18571 shlibpath_overrides_runpath=yes
18573 freebsd3.01* | freebsdelf3.01*)
18574 shlibpath_overrides_runpath=yes
18575 hardcode_into_libs=yes
18578 shlibpath_overrides_runpath=no
18579 hardcode_into_libs=yes
18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18589 soname_spec='${libname}${release}${shared_ext}$major'
18590 shlibpath_var=LD_LIBRARY_PATH
18591 hardcode_into_libs=yes
18594 hpux9* | hpux10* | hpux11*)
18595 # Give a soname corresponding to the major version so that dld.sl refuses to
18596 # link against other versions.
18600 case "$host_cpu" in
18603 hardcode_into_libs=yes
18604 dynamic_linker="$host_os dld.so"
18605 shlibpath_var=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18608 soname_spec='${libname}${release}${shared_ext}$major'
18609 if test "X$HPUX_IA64_MODE" = X32; then
18610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18618 hardcode_into_libs=yes
18619 dynamic_linker="$host_os dld.sl"
18620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18623 soname_spec='${libname}${release}${shared_ext}$major'
18624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18629 dynamic_linker="$host_os dld.sl"
18630 shlibpath_var=SHLIB_PATH
18631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633 soname_spec='${libname}${release}${shared_ext}$major'
18636 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18637 postinstall_cmds='chmod 555 $lib'
18640 irix5* | irix6* | nonstopux*)
18642 nonstopux*) version_type=nonstopux ;;
18644 if test "$lt_cv_prog_gnu_ld" = yes; then
18652 soname_spec='${libname}${release}${shared_ext}$major'
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18655 irix5* | nonstopux*)
18656 libsuff= shlibsuff=
18659 case $LD in # libtool.m4 will add one of these switches to LD
18660 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18661 libsuff= shlibsuff= libmagic=32-bit;;
18662 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18663 libsuff=32 shlibsuff=N32 libmagic=N32;;
18664 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18665 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18666 *) libsuff= shlibsuff= libmagic=never-match;;
18670 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18671 shlibpath_overrides_runpath=no
18672 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18673 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18674 hardcode_into_libs=yes
18677 # No shared lib support for Linux oldld, aout, or coff.
18678 linux*oldld* | linux*aout* | linux*coff*)
18682 # This must be Linux ELF.
18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688 soname_spec='${libname}${release}${shared_ext}$major'
18689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18690 shlibpath_var=LD_LIBRARY_PATH
18691 shlibpath_overrides_runpath=no
18692 # This implies no fast_install, which is unacceptable.
18693 # Some rework will be needed to allow for fast_install
18694 # before this can be enabled.
18695 hardcode_into_libs=yes
18697 # Append ld.so.conf contents to the search path
18698 if test -f /etc/ld.so.conf; then
18699 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18700 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18703 # We used to test for /lib/ld.so.1 and disable shared libraries on
18704 # powerpc, because MkLinux only supported shared libraries with the
18705 # GNU dynamic linker. Since this was broken with cross compilers,
18706 # most powerpc-linux boxes support dynamic linking these days and
18707 # people can always --disable-shared, the test was removed, and we
18708 # assume the GNU/Linux dynamic linker is in use.
18709 dynamic_linker='GNU/Linux ld.so'
18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18717 soname_spec='${libname}${release}${shared_ext}$major'
18718 shlibpath_var=LD_LIBRARY_PATH
18719 shlibpath_overrides_runpath=no
18720 hardcode_into_libs=yes
18721 dynamic_linker='GNU ld.so'
18728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18731 dynamic_linker='NetBSD (a.out) ld.so'
18733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18734 soname_spec='${libname}${release}${shared_ext}$major'
18735 dynamic_linker='NetBSD ld.elf_so'
18737 shlibpath_var=LD_LIBRARY_PATH
18738 shlibpath_overrides_runpath=yes
18739 hardcode_into_libs=yes
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745 shlibpath_var=LD_LIBRARY_PATH
18746 shlibpath_overrides_runpath=yes
18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754 soname_spec='${libname}${release}${shared_ext}$major'
18755 shlibpath_var=LD_LIBRARY_PATH
18756 shlibpath_overrides_runpath=yes
18763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18765 shlibpath_var=LD_LIBRARY_PATH
18766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18768 openbsd2.[89] | openbsd2.[89].*)
18769 shlibpath_overrides_runpath=no
18772 shlibpath_overrides_runpath=yes
18776 shlibpath_overrides_runpath=yes
18781 libname_spec='$name'
18784 library_names_spec='$libname${shared_ext} $libname.a'
18785 dynamic_linker='OS/2 ld.exe'
18786 shlibpath_var=LIBPATH
18789 osf3* | osf4* | osf5*)
18793 soname_spec='${libname}${release}${shared_ext}$major'
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18795 shlibpath_var=LD_LIBRARY_PATH
18796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18802 soname_spec='${libname}${release}${shared_ext}$major'
18803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18804 shlibpath_var=LD_LIBRARY_PATH
18811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812 soname_spec='${libname}${release}${shared_ext}$major'
18813 shlibpath_var=LD_LIBRARY_PATH
18814 shlibpath_overrides_runpath=yes
18815 hardcode_into_libs=yes
18816 # ldd complains unless libraries are executable
18817 postinstall_cmds='chmod +x $lib'
18822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 shlibpath_overrides_runpath=yes
18826 if test "$with_gnu_ld" = yes; then
18832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835 soname_spec='${libname}${release}${shared_ext}$major'
18836 shlibpath_var=LD_LIBRARY_PATH
18837 case $host_vendor in
18839 shlibpath_overrides_runpath=no
18841 export_dynamic_flag_spec='${wl}-Blargedynsym'
18842 runpath_var=LD_RUN_PATH
18850 shlibpath_overrides_runpath=no
18851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18857 if test -d /usr/nec ;then
18859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18860 soname_spec='$libname${shared_ext}.$major'
18861 shlibpath_var=LD_LIBRARY_PATH
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868 soname_spec='${libname}${release}${shared_ext}$major'
18869 shlibpath_var=LD_LIBRARY_PATH
18876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18877 echo "${ECHO_T}$dynamic_linker" >&6
18878 test "$dynamic_linker" = no && can_build_shared=no
18880 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18882 hardcode_action_F77=
18883 if test -n "$hardcode_libdir_flag_spec_F77" || \
18884 test -n "$runpath_var_F77" || \
18885 test "X$hardcode_automatic_F77" = "Xyes" ; then
18887 # We can hardcode non-existant directories.
18888 if test "$hardcode_direct_F77" != no &&
18889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18890 # have to relink, otherwise we might link with an installed library
18891 # when we should be linking with a yet-to-be-installed one
18892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18893 test "$hardcode_minus_L_F77" != no; then
18894 # Linking always hardcodes the temporary library directory.
18895 hardcode_action_F77=relink
18897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18898 hardcode_action_F77=immediate
18901 # We cannot hardcode anything, or else we can only hardcode existing
18903 hardcode_action_F77=unsupported
18905 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18906 echo "${ECHO_T}$hardcode_action_F77" >&6
18908 if test "$hardcode_action_F77" = relink; then
18909 # Fast installation is not supported
18910 enable_fast_install=no
18911 elif test "$shlibpath_overrides_runpath" = yes ||
18912 test "$enable_shared" = no; then
18913 # Fast installation is not necessary
18914 enable_fast_install=needless
18919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18921 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18924 echo "$as_me:$LINENO: result: yes" >&5
18925 echo "${ECHO_T}yes" >&6
18927 # FIXME - insert some real tests, host_os isn't really good enough
18930 if test -n "$STRIP" ; then
18931 striplib="$STRIP -x"
18932 echo "$as_me:$LINENO: result: yes" >&5
18933 echo "${ECHO_T}yes" >&6
18935 echo "$as_me:$LINENO: result: no" >&5
18936 echo "${ECHO_T}no" >&6
18940 echo "$as_me:$LINENO: result: no" >&5
18941 echo "${ECHO_T}no" >&6
18948 # The else clause should only fire when bootstrapping the
18949 # libtool distribution, otherwise you forgot to ship ltmain.sh
18950 # with your package, and you will get complaints that there are
18951 # no rules to generate ltmain.sh.
18952 if test -f "$ltmain"; then
18953 # See if we are running on zsh, and set the options which allow our commands through
18954 # without removal of \ escapes.
18955 if test -n "${ZSH_VERSION+set}" ; then
18956 setopt NO_GLOB_SUBST
18958 # Now quote all the things that may contain metacharacters while being
18959 # careful not to overquote the AC_SUBSTed values. We take copies of the
18960 # variables and quote the copies for generation of the libtool script.
18961 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18965 deplibs_check_method reload_flag reload_cmds need_locks \
18966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18967 lt_cv_sys_global_symbol_to_c_name_address \
18968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18969 old_postinstall_cmds old_postuninstall_cmds \
18973 lt_prog_compiler_wl_F77 \
18974 lt_prog_compiler_pic_F77 \
18975 lt_prog_compiler_static_F77 \
18976 lt_prog_compiler_no_builtin_flag_F77 \
18977 export_dynamic_flag_spec_F77 \
18978 thread_safe_flag_spec_F77 \
18979 whole_archive_flag_spec_F77 \
18980 enable_shared_with_static_runtimes_F77 \
18981 old_archive_cmds_F77 \
18982 old_archive_from_new_cmds_F77 \
18983 predep_objects_F77 \
18984 postdep_objects_F77 \
18987 compiler_lib_search_path_F77 \
18989 archive_expsym_cmds_F77 \
18990 postinstall_cmds_F77 \
18991 postuninstall_cmds_F77 \
18992 old_archive_from_expsyms_cmds_F77 \
18993 allow_undefined_flag_F77 \
18994 no_undefined_flag_F77 \
18995 export_symbols_cmds_F77 \
18996 hardcode_libdir_flag_spec_F77 \
18997 hardcode_libdir_flag_spec_ld_F77 \
18998 hardcode_libdir_separator_F77 \
18999 hardcode_automatic_F77 \
19001 module_expsym_cmds_F77 \
19002 lt_cv_prog_compiler_c_o_F77 \
19003 exclude_expsyms_F77 \
19004 include_expsyms_F77; do
19007 old_archive_cmds_F77 | \
19008 old_archive_from_new_cmds_F77 | \
19009 archive_cmds_F77 | \
19010 archive_expsym_cmds_F77 | \
19011 module_cmds_F77 | \
19012 module_expsym_cmds_F77 | \
19013 old_archive_from_expsyms_cmds_F77 | \
19014 export_symbols_cmds_F77 | \
19015 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19016 postinstall_cmds | postuninstall_cmds | \
19017 old_postinstall_cmds | old_postuninstall_cmds | \
19018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19019 # Double-quote double-evaled strings.
19020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19029 *'\$0 --fallback-echo"')
19030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19036 cat <<__EOF__ >> "$cfgfile"
19037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19041 # Shell to use when invoking shell scripts.
19044 # Whether or not to build shared libraries.
19045 build_libtool_libs=$enable_shared
19047 # Whether or not to build static libraries.
19048 build_old_libs=$enable_static
19050 # Whether or not to add -lc for building shared libraries.
19051 build_libtool_need_lc=$archive_cmds_need_lc_F77
19053 # Whether or not to disallow shared libs when runtime libs are static
19054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19056 # Whether or not to optimize for fast installation.
19057 fast_install=$enable_fast_install
19060 host_alias=$host_alias
19063 # An echo program that does not interpret backslashes.
19068 AR_FLAGS=$lt_AR_FLAGS
19073 # A language-specific compiler.
19074 CC=$lt_compiler_F77
19076 # Is the compiler the GNU C compiler?
19082 # The linker used to build libraries.
19085 # Whether we need hard or soft links.
19088 # A BSD-compatible nm program.
19091 # A symbol stripping program
19094 # Used to examine libraries when file_magic_cmd begins "file"
19095 MAGIC_CMD=$MAGIC_CMD
19097 # Used on cygwin: DLL creation program.
19100 # Used on cygwin: object dumper.
19103 # Used on cygwin: assembler.
19106 # The name of the directory that contains temporary libtool files.
19109 # How to create reloadable object files.
19110 reload_flag=$lt_reload_flag
19111 reload_cmds=$lt_reload_cmds
19113 # How to pass a linker flag through the compiler.
19114 wl=$lt_lt_prog_compiler_wl_F77
19116 # Object file suffix (normally "o").
19117 objext="$ac_objext"
19119 # Old archive suffix (normally "a").
19122 # Shared library suffix (normally ".so").
19123 shrext_cmds='$shrext_cmds'
19125 # Executable file suffix (normally "").
19128 # Additional compiler flags for building library objects.
19129 pic_flag=$lt_lt_prog_compiler_pic_F77
19132 # What is the maximum length of a command?
19133 max_cmd_len=$lt_cv_sys_max_cmd_len
19135 # Does compiler simultaneously support -c and -o options?
19136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19138 # Must we lock files when doing compilation ?
19139 need_locks=$lt_need_locks
19141 # Do we need the lib prefix for modules?
19142 need_lib_prefix=$need_lib_prefix
19144 # Do we need a version for libraries?
19145 need_version=$need_version
19147 # Whether dlopen is supported.
19148 dlopen_support=$enable_dlopen
19150 # Whether dlopen of programs is supported.
19151 dlopen_self=$enable_dlopen_self
19153 # Whether dlopen of statically linked programs is supported.
19154 dlopen_self_static=$enable_dlopen_self_static
19156 # Compiler flag to prevent dynamic linking.
19157 link_static_flag=$lt_lt_prog_compiler_static_F77
19159 # Compiler flag to turn off builtin functions.
19160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19162 # Compiler flag to allow reflexive dlopens.
19163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19165 # Compiler flag to generate shared objects directly from archives.
19166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19168 # Compiler flag to generate thread-safe objects.
19169 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19171 # Library versioning type.
19172 version_type=$version_type
19174 # Format of library name prefix.
19175 libname_spec=$lt_libname_spec
19177 # List of archive names. First name is the real one, the rest are links.
19178 # The last name is the one that the linker finds with -lNAME.
19179 library_names_spec=$lt_library_names_spec
19181 # The coded name of the library, if different from the real name.
19182 soname_spec=$lt_soname_spec
19184 # Commands used to build and install an old-style archive.
19186 old_archive_cmds=$lt_old_archive_cmds_F77
19187 old_postinstall_cmds=$lt_old_postinstall_cmds
19188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19190 # Create an old-style archive from a shared archive.
19191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19193 # Create a temporary old-style archive to link instead of a shared archive.
19194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19196 # Commands used to build and install a shared archive.
19197 archive_cmds=$lt_archive_cmds_F77
19198 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19199 postinstall_cmds=$lt_postinstall_cmds
19200 postuninstall_cmds=$lt_postuninstall_cmds
19202 # Commands used to build a loadable module (assumed same as above if empty)
19203 module_cmds=$lt_module_cmds_F77
19204 module_expsym_cmds=$lt_module_expsym_cmds_F77
19206 # Commands to strip libraries.
19207 old_striplib=$lt_old_striplib
19208 striplib=$lt_striplib
19210 # Dependencies to place before the objects being linked to create a
19212 predep_objects=$lt_predep_objects_F77
19214 # Dependencies to place after the objects being linked to create a
19216 postdep_objects=$lt_postdep_objects_F77
19218 # Dependencies to place before the objects being linked to create a
19220 predeps=$lt_predeps_F77
19222 # Dependencies to place after the objects being linked to create a
19224 postdeps=$lt_postdeps_F77
19226 # The library search path used internally by the compiler when linking
19227 # a shared library.
19228 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19230 # Method to check whether dependent libraries are shared objects.
19231 deplibs_check_method=$lt_deplibs_check_method
19233 # Command to use when deplibs_check_method == file_magic.
19234 file_magic_cmd=$lt_file_magic_cmd
19236 # Flag that allows shared libraries with undefined symbols to be built.
19237 allow_undefined_flag=$lt_allow_undefined_flag_F77
19239 # Flag that forces no undefined symbols.
19240 no_undefined_flag=$lt_no_undefined_flag_F77
19242 # Commands used to finish a libtool library installation in a directory.
19243 finish_cmds=$lt_finish_cmds
19245 # Same as above, but a single script fragment to be evaled but not shown.
19246 finish_eval=$lt_finish_eval
19248 # Take the output of nm and produce a listing of raw symbols and C names.
19249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19251 # Transform the output of nm in a proper C declaration
19252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19254 # Transform the output of nm in a C name address pair
19255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19257 # This is the shared library runtime path variable.
19258 runpath_var=$runpath_var
19260 # This is the shared library path variable.
19261 shlibpath_var=$shlibpath_var
19263 # Is shlibpath searched before the hard-coded library search path?
19264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19266 # How to hardcode a shared library path into an executable.
19267 hardcode_action=$hardcode_action_F77
19269 # Whether we should hardcode library paths into libraries.
19270 hardcode_into_libs=$hardcode_into_libs
19272 # Flag to hardcode \$libdir into a binary during linking.
19273 # This must work even if \$libdir does not exist.
19274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19276 # If ld is used when linking, flag to hardcode \$libdir into
19277 # a binary during linking. This must work even if \$libdir does
19279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19281 # Whether we need a single -rpath flag with a separated argument.
19282 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19285 # resulting binary.
19286 hardcode_direct=$hardcode_direct_F77
19288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19289 # resulting binary.
19290 hardcode_minus_L=$hardcode_minus_L_F77
19292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19293 # the resulting binary.
19294 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19296 # Set to yes if building a shared library automatically hardcodes DIR into the library
19297 # and all subsequent libraries and executables linked against it.
19298 hardcode_automatic=$hardcode_automatic_F77
19300 # Variables whose values should be saved in libtool wrapper scripts and
19301 # restored at relink time.
19302 variables_saved_for_relink="$variables_saved_for_relink"
19304 # Whether libtool must link a program against all its dependency libraries.
19305 link_all_deplibs=$link_all_deplibs_F77
19307 # Compile-time system search path for libraries
19308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19310 # Run-time system search path for libraries
19311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19313 # Fix the shell variable \$srcfile for the compiler.
19314 fix_srcfile_path="$fix_srcfile_path_F77"
19316 # Set to yes if exported symbols are required.
19317 always_export_symbols=$always_export_symbols_F77
19319 # The commands to list exported symbols.
19320 export_symbols_cmds=$lt_export_symbols_cmds_F77
19322 # The commands to extract the exported symbol list from a shared archive.
19323 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19325 # Symbols that should not be listed in the preloaded symbols.
19326 exclude_expsyms=$lt_exclude_expsyms_F77
19328 # Symbols that must always be exported.
19329 include_expsyms=$lt_include_expsyms_F77
19331 # ### END LIBTOOL TAG CONFIG: $tagname
19337 # If there is no Makefile yet, we rely on a make rule to execute
19338 # `config.status --recheck' to rerun these tests and create the
19339 # libtool script then.
19340 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19341 if test -f "$ltmain_in"; then
19342 test -f Makefile && make "$ltmain"
19348 ac_cpp='$CPP $CPPFLAGS'
19349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19361 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19365 # Source file extension for Java test sources.
19368 # Object file extension for compiled Java test sources.
19372 # Code to be used in simple compile tests
19373 lt_simple_compile_test_code="class foo {}\n"
19375 # Code to be used in simple link tests
19376 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
19378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19380 # If no C compiler was specified, use CC.
19383 # Allow CC to be a program name with arguments.
19387 # Allow CC to be a program name with arguments.
19393 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19394 archive_cmds_need_lc_GCJ=no
19397 ## There is no encapsulation within the following macros, do not change
19398 ## the running order or otherwise move them around unless you know exactly
19399 ## what you are doing...
19401 lt_prog_compiler_no_builtin_flag_GCJ=
19403 if test "$GCC" = yes; then
19404 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19407 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
19409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 lt_cv_prog_compiler_rtti_exceptions=no
19413 ac_outfile=conftest.$ac_objext
19414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19415 lt_compiler_flag="-fno-rtti -fno-exceptions"
19416 # Insert the option either (1) after the last *FLAGS variable, or
19417 # (2) before a word containing "conftest.", or (3) at the end.
19418 # Note that $ac_compile itself does not contain backslashes and begins
19419 # with a dollar sign (not a hyphen), so the echo should work correctly.
19420 # The option is referenced via a variable to avoid confusing sed.
19421 lt_compile=`echo "$ac_compile" | $SED \
19422 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19424 -e 's:$: $lt_compiler_flag:'`
19425 (eval echo "\"\$as_me:19425: $lt_compile\"" >&5)
19426 (eval "$lt_compile" 2>conftest.err)
19428 cat conftest.err >&5
19429 echo "$as_me:19429: \$? = $ac_status" >&5
19430 if (exit $ac_status) && test -s "$ac_outfile"; then
19431 # The compiler can only warn and ignore the option if not recognized
19432 # So say no if there are warnings
19433 if test ! -s conftest.err; then
19434 lt_cv_prog_compiler_rtti_exceptions=yes
19440 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19441 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
19443 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19444 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19451 lt_prog_compiler_wl_GCJ=
19452 lt_prog_compiler_pic_GCJ=
19453 lt_prog_compiler_static_GCJ=
19455 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19456 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19458 if test "$GCC" = yes; then
19459 lt_prog_compiler_wl_GCJ='-Wl,'
19460 lt_prog_compiler_static_GCJ='-static'
19464 # All AIX code is PIC.
19465 if test "$host_cpu" = ia64; then
19466 # AIX 5 now supports IA64 processor
19467 lt_prog_compiler_static_GCJ='-Bstatic'
19472 # FIXME: we need at least 68020 code to build shared libraries, but
19473 # adding the `-m68020' flag to GCC prevents building anything better,
19475 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19478 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19479 # PIC is the default for these OSes.
19482 mingw* | pw32* | os2*)
19483 # This hack is so that the source file can tell whether it is being
19484 # built for inclusion in a dll (and should export symbols for example).
19485 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19488 darwin* | rhapsody*)
19489 # PIC is the default on this platform
19490 # Common symbols not allowed in MH_DYLIB files
19491 lt_prog_compiler_pic_GCJ='-fno-common'
19495 # Just because we use GCC doesn't mean we suddenly get shared libraries
19496 # on systems that don't support them.
19497 lt_prog_compiler_can_build_shared_GCJ=no
19502 if test -d /usr/nec; then
19503 lt_prog_compiler_pic_GCJ=-Kconform_pic
19508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19509 # not for PA HP-UX.
19510 case "$host_cpu" in
19515 lt_prog_compiler_pic_GCJ='-fPIC'
19521 lt_prog_compiler_pic_GCJ='-fPIC'
19525 # PORTME Check for flag to pass linker flags through the system compiler.
19528 lt_prog_compiler_wl_GCJ='-Wl,'
19529 if test "$host_cpu" = ia64; then
19530 # AIX 5 now supports IA64 processor
19531 lt_prog_compiler_static_GCJ='-Bstatic'
19533 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19537 # PIC is the default on this platform
19538 # Common symbols not allowed in MH_DYLIB files
19539 case "$cc_basename" in
19541 lt_prog_compiler_pic_GCJ='-qnocommon'
19542 lt_prog_compiler_wl_GCJ='-Wl,'
19547 mingw* | pw32* | os2*)
19548 # This hack is so that the source file can tell whether it is being
19549 # built for inclusion in a dll (and should export symbols for example).
19550 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19553 hpux9* | hpux10* | hpux11*)
19554 lt_prog_compiler_wl_GCJ='-Wl,'
19555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19556 # not for PA HP-UX.
19557 case "$host_cpu" in
19562 lt_prog_compiler_pic_GCJ='+Z'
19565 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19566 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19569 irix5* | irix6* | nonstopux*)
19570 lt_prog_compiler_wl_GCJ='-Wl,'
19571 # PIC (with -KPIC) is the default.
19572 lt_prog_compiler_static_GCJ='-non_shared'
19576 lt_prog_compiler_pic_GCJ='-KPIC'
19577 lt_prog_compiler_static_GCJ='-Bstatic'
19583 lt_prog_compiler_wl_GCJ='-Wl,'
19584 lt_prog_compiler_pic_GCJ='-KPIC'
19585 lt_prog_compiler_static_GCJ='-static'
19588 lt_prog_compiler_wl_GCJ='-Wl,'
19589 # All Alpha code is PIC.
19590 lt_prog_compiler_static_GCJ='-non_shared'
19595 osf3* | osf4* | osf5*)
19596 lt_prog_compiler_wl_GCJ='-Wl,'
19597 # All OSF/1 code is PIC.
19598 lt_prog_compiler_static_GCJ='-non_shared'
19602 lt_prog_compiler_pic_GCJ='-Kpic'
19603 lt_prog_compiler_static_GCJ='-dn'
19607 lt_prog_compiler_wl_GCJ='-Wl,'
19608 lt_prog_compiler_pic_GCJ='-KPIC'
19609 lt_prog_compiler_static_GCJ='-Bstatic'
19613 lt_prog_compiler_wl_GCJ='-Qoption ld '
19614 lt_prog_compiler_pic_GCJ='-PIC'
19615 lt_prog_compiler_static_GCJ='-Bstatic'
19618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19619 lt_prog_compiler_wl_GCJ='-Wl,'
19620 lt_prog_compiler_pic_GCJ='-KPIC'
19621 lt_prog_compiler_static_GCJ='-Bstatic'
19625 if test -d /usr/nec ;then
19626 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19627 lt_prog_compiler_static_GCJ='-Bstatic'
19632 lt_prog_compiler_pic_GCJ='-pic'
19633 lt_prog_compiler_static_GCJ='-Bstatic'
19637 lt_prog_compiler_can_build_shared_GCJ=no
19642 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19643 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
19646 # Check to make sure the PIC flag actually works.
19648 if test -n "$lt_prog_compiler_pic_GCJ"; then
19650 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19651 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
19652 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 lt_prog_compiler_pic_works_GCJ=no
19656 ac_outfile=conftest.$ac_objext
19657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19658 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19659 # Insert the option either (1) after the last *FLAGS variable, or
19660 # (2) before a word containing "conftest.", or (3) at the end.
19661 # Note that $ac_compile itself does not contain backslashes and begins
19662 # with a dollar sign (not a hyphen), so the echo should work correctly.
19663 # The option is referenced via a variable to avoid confusing sed.
19664 lt_compile=`echo "$ac_compile" | $SED \
19665 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19667 -e 's:$: $lt_compiler_flag:'`
19668 (eval echo "\"\$as_me:19668: $lt_compile\"" >&5)
19669 (eval "$lt_compile" 2>conftest.err)
19671 cat conftest.err >&5
19672 echo "$as_me:19672: \$? = $ac_status" >&5
19673 if (exit $ac_status) && test -s "$ac_outfile"; then
19674 # The compiler can only warn and ignore the option if not recognized
19675 # So say no if there are warnings
19676 if test ! -s conftest.err; then
19677 lt_prog_compiler_pic_works_GCJ=yes
19683 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19684 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
19686 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19687 case $lt_prog_compiler_pic_GCJ in
19689 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19692 lt_prog_compiler_pic_GCJ=
19693 lt_prog_compiler_can_build_shared_GCJ=no
19698 # For platforms which do not support PIC, -DPIC is meaningless:
19700 lt_prog_compiler_pic_GCJ=
19703 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19707 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19708 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19709 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 lt_cv_prog_compiler_c_o_GCJ=no
19713 $rm -r conftest 2>/dev/null
19717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19719 lt_compiler_flag="-o out/conftest2.$ac_objext"
19720 # Insert the option either (1) after the last *FLAGS variable, or
19721 # (2) before a word containing "conftest.", or (3) at the end.
19722 # Note that $ac_compile itself does not contain backslashes and begins
19723 # with a dollar sign (not a hyphen), so the echo should work correctly.
19724 lt_compile=`echo "$ac_compile" | $SED \
19725 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19727 -e 's:$: $lt_compiler_flag:'`
19728 (eval echo "\"\$as_me:19728: $lt_compile\"" >&5)
19729 (eval "$lt_compile" 2>out/conftest.err)
19731 cat out/conftest.err >&5
19732 echo "$as_me:19732: \$? = $ac_status" >&5
19733 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19735 # The compiler can only warn and ignore the option if not recognized
19736 # So say no if there are warnings
19737 if test ! -s out/conftest.err; then
19738 lt_cv_prog_compiler_c_o_GCJ=yes
19743 # SGI C++ compiler will create directory out/ii_files/ for
19744 # template instantiation
19745 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19746 $rm out/* && rmdir out
19752 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19756 hard_links="nottested"
19757 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19758 # do not overwrite the value of need_locks provided by the user
19759 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19760 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19765 ln conftest.a conftest.b 2>&5 || hard_links=no
19766 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19767 echo "$as_me:$LINENO: result: $hard_links" >&5
19768 echo "${ECHO_T}$hard_links" >&6
19769 if test "$hard_links" = no; then
19770 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19771 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19778 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19779 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19782 allow_undefined_flag_GCJ=
19783 enable_shared_with_static_runtimes_GCJ=no
19785 archive_expsym_cmds_GCJ=
19786 old_archive_From_new_cmds_GCJ=
19787 old_archive_from_expsyms_cmds_GCJ=
19788 export_dynamic_flag_spec_GCJ=
19789 whole_archive_flag_spec_GCJ=
19790 thread_safe_flag_spec_GCJ=
19791 hardcode_libdir_flag_spec_GCJ=
19792 hardcode_libdir_flag_spec_ld_GCJ=
19793 hardcode_libdir_separator_GCJ=
19794 hardcode_direct_GCJ=no
19795 hardcode_minus_L_GCJ=no
19796 hardcode_shlibpath_var_GCJ=unsupported
19797 link_all_deplibs_GCJ=unknown
19798 hardcode_automatic_GCJ=no
19800 module_expsym_cmds_GCJ=
19801 always_export_symbols_GCJ=no
19802 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19803 # include_expsyms should be a list of space-separated symbols to be *always*
19804 # included in the symbol list
19805 include_expsyms_GCJ=
19806 # exclude_expsyms can be an extended regexp of symbols to exclude
19807 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19808 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19809 # as well as any symbol that contains `d'.
19810 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19811 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19812 # platforms (ab)use it in PIC code, but their linkers get confused if
19813 # the symbol is explicitly referenced. Since portable code cannot
19814 # rely on this symbol name, it's probably fine to never include it in
19815 # preloaded symbol tables.
19816 extract_expsyms_cmds=
19819 cygwin* | mingw* | pw32*)
19820 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19821 # When not using gcc, we currently assume that we are using
19822 # Microsoft Visual C++.
19823 if test "$GCC" != yes; then
19833 if test "$with_gnu_ld" = yes; then
19834 # If archive_cmds runs LD, not CC, wlarc should be empty
19837 # See if GNU ld supports shared libraries.
19839 aix3* | aix4* | aix5*)
19840 # On AIX/PPC, the GNU linker is very broken
19841 if test "$host_cpu" != ia64; then
19845 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19846 *** to be unable to reliably create shared libraries on AIX.
19847 *** Therefore, libtool is disabling shared libraries support. If you
19848 *** really care for shared libraries, you may want to modify your PATH
19849 *** so that a non-GNU linker is found, and then restart.
19856 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)'
19857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19858 hardcode_minus_L_GCJ=yes
19860 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19861 # that the semantics of dynamic libraries on AmigaOS, at least up
19862 # to version 4, is to share data among multiple programs linked
19863 # with the same dynamic library. Since this doesn't match the
19864 # behavior of shared libraries on other platforms, we can't use
19870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19871 allow_undefined_flag_GCJ=unsupported
19872 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19873 # support --undefined. This deserves some investigation. FIXME
19874 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19880 cygwin* | mingw* | pw32*)
19881 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19882 # as there is no search path for DLLs.
19883 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19884 allow_undefined_flag_GCJ=unsupported
19885 always_export_symbols_GCJ=no
19886 enable_shared_with_static_runtimes_GCJ=yes
19887 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19889 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19890 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19891 # If the export-symbols file already is a .def file (1st line
19892 # is EXPORTS), use it as is; otherwise, prepend...
19893 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19894 cp $export_symbols $output_objdir/$soname.def;
19896 echo EXPORTS > $output_objdir/$soname.def;
19897 cat $export_symbols >> $output_objdir/$soname.def;
19899 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19907 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19910 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19911 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19916 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19921 *** create shared libraries on Solaris systems. Therefore, libtool
19922 *** is disabling shared libraries support. We urge you to upgrade GNU
19923 *** binutils to release 2.9.1 or newer. Another option is to modify
19924 *** your PATH or compiler configuration so that the native linker is
19925 *** used, and then restart.
19928 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19929 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19930 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19937 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19939 hardcode_direct_GCJ=yes
19940 hardcode_shlibpath_var_GCJ=no
19944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19945 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19946 archive_cmds_GCJ="$tmp_archive_cmds"
19947 supports_anon_versioning=no
19948 case `$LD -v 2>/dev/null` in
19949 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19952 *\ 2.11.*) ;; # other 2.11 versions
19953 *) supports_anon_versioning=yes ;;
19955 if test $supports_anon_versioning = yes; then
19956 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19958 $echo "local: *; };" >> $output_objdir/$libname.ver~
19959 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19961 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
19969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19970 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19971 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19978 if test "$ld_shlibs_GCJ" = yes; then
19979 runpath_var=LD_RUN_PATH
19980 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19981 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19982 # ancient GNU ld didn't support --whole-archive et. al.
19983 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19984 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19986 whole_archive_flag_spec_GCJ=
19990 # PORTME fill in a description of your system's linker (not GNU ld)
19993 allow_undefined_flag_GCJ=unsupported
19994 always_export_symbols_GCJ=yes
19995 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'
19996 # Note: this linker hardcodes the directories in LIBPATH if there
19997 # are no directories specified by -L.
19998 hardcode_minus_L_GCJ=yes
19999 if test "$GCC" = yes && test -z "$link_static_flag"; then
20000 # Neither direct hardcoding nor static linking is supported with a
20002 hardcode_direct_GCJ=unsupported
20007 if test "$host_cpu" = ia64; then
20008 # On IA64, the linker does run time linking by default, so we don't
20009 # have to do anything special.
20010 aix_use_runtimelinking=no
20011 exp_sym_flag='-Bexport'
20014 # If we're using GNU nm, then we don't want the "-C" option.
20015 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20016 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20017 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'
20019 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'
20021 aix_use_runtimelinking=no
20023 # Test if we are trying to use run time linking or normal
20024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20025 # need to do runtime linking.
20026 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20027 for ld_flag in $LDFLAGS; do
20028 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20029 aix_use_runtimelinking=yes
20035 exp_sym_flag='-bexport'
20036 no_entry_flag='-bnoentry'
20039 # When large executables or shared objects are built, AIX ld can
20040 # have problems creating the table of contents. If linking a library
20041 # or program results in "error TOC overflow" add -mminimal-toc to
20042 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20043 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20045 archive_cmds_GCJ=''
20046 hardcode_direct_GCJ=yes
20047 hardcode_libdir_separator_GCJ=':'
20048 link_all_deplibs_GCJ=yes
20050 if test "$GCC" = yes; then
20051 case $host_os in aix4.012|aix4.012.*)
20052 # We only want to do this on AIX 4.2 and lower, the check
20053 # below for broken collect2 doesn't work under 4.3+
20054 collect2name=`${CC} -print-prog-name=collect2`
20055 if test -f "$collect2name" && \
20056 strings "$collect2name" | grep resolve_lib_name >/dev/null
20058 # We have reworked collect2
20059 hardcode_direct_GCJ=yes
20061 # We have old collect2
20062 hardcode_direct_GCJ=unsupported
20063 # It fails to find uninstalled libraries when the uninstalled
20064 # path is not listed in the libpath. Setting hardcode_minus_L
20065 # to unsupported forces relinking
20066 hardcode_minus_L_GCJ=yes
20067 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20068 hardcode_libdir_separator_GCJ=
20071 shared_flag='-shared'
20074 if test "$host_cpu" = ia64; then
20075 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20076 # chokes on -Wl,-G. The following line is correct:
20079 if test "$aix_use_runtimelinking" = yes; then
20080 shared_flag='${wl}-G'
20082 shared_flag='${wl}-bM:SRE'
20087 # It seems that -bexpall does not export symbols beginning with
20088 # underscore (_), so it is better to generate a list of symbols to export.
20089 always_export_symbols_GCJ=yes
20090 if test "$aix_use_runtimelinking" = yes; then
20091 # Warning - without using the other runtime loading flags (-brtl),
20092 # -berok will link without error, but may produce a broken library.
20093 allow_undefined_flag_GCJ='-berok'
20094 # Determine the default libpath from the value encoded in an empty executable.
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20110 rm -f conftest.$ac_objext conftest$ac_exeext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20112 (eval $ac_link) 2>conftest.er1
20114 grep -v '^ *+' conftest.er1 >conftest.err
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -z "$ac_c_werror_flag"
20120 || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest$ac_exeext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20135 # Check for a 64-bit object if we didn't find anything.
20136 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; }
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20143 rm -f conftest.err conftest.$ac_objext \
20144 conftest$ac_exeext conftest.$ac_ext
20145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20147 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20148 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"
20150 if test "$host_cpu" = ia64; then
20151 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20152 allow_undefined_flag_GCJ="-z nodefs"
20153 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"
20155 # Determine the default libpath from the value encoded in an empty executable.
20156 cat >conftest.$ac_ext <<_ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20171 rm -f conftest.$ac_objext conftest$ac_exeext
20172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20173 (eval $ac_link) 2>conftest.er1
20175 grep -v '^ *+' conftest.er1 >conftest.err
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } &&
20180 { ac_try='test -z "$ac_c_werror_flag"
20181 || test ! -s conftest.err'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; } &&
20187 { ac_try='test -s conftest$ac_exeext'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; }; then
20194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20196 # Check for a 64-bit object if we didn't find anything.
20197 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; }
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20204 rm -f conftest.err conftest.$ac_objext \
20205 conftest$ac_exeext conftest.$ac_ext
20206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20208 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20209 # Warning - without using the other run time loading flags,
20210 # -berok will link without error, but may produce a broken library.
20211 no_undefined_flag_GCJ=' ${wl}-bernotok'
20212 allow_undefined_flag_GCJ=' ${wl}-berok'
20213 # -bexpall does not export symbols beginning with underscore (_)
20214 always_export_symbols_GCJ=yes
20215 # Exported symbols can be pulled into shared objects from archives
20216 whole_archive_flag_spec_GCJ=' '
20217 archive_cmds_need_lc_GCJ=yes
20218 # This is similar to how AIX traditionally builds it's shared libraries.
20219 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'
20225 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)'
20226 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20227 hardcode_minus_L_GCJ=yes
20228 # see comment about different semantics on the GNU ld section
20233 export_dynamic_flag_spec_GCJ=-rdynamic
20236 cygwin* | mingw* | pw32*)
20237 # When not using gcc, we currently assume that we are using
20238 # Microsoft Visual C++.
20239 # hardcode_libdir_flag_spec is actually meaningless, as there is
20240 # no search path for DLLs.
20241 hardcode_libdir_flag_spec_GCJ=' '
20242 allow_undefined_flag_GCJ=unsupported
20243 # Tell ltmain to make .lib files, not .a files.
20245 # Tell ltmain to make .dll files, not .so files.
20247 # FIXME: Setting linknames here is a bad hack.
20248 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20249 # The linker will automatically build a .lib file if we build a DLL.
20250 old_archive_From_new_cmds_GCJ='true'
20251 # FIXME: Should let the user specify the lib program.
20252 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
20253 fix_srcfile_path='`cygpath -w "$srcfile"`'
20254 enable_shared_with_static_runtimes_GCJ=yes
20257 darwin* | rhapsody*)
20259 rhapsody* | darwin1.[012])
20260 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20263 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20264 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20266 case ${MACOSX_DEPLOYMENT_TARGET} in
20268 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20271 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20277 archive_cmds_need_lc_GCJ=no
20278 hardcode_direct_GCJ=no
20279 hardcode_automatic_GCJ=yes
20280 hardcode_shlibpath_var_GCJ=unsupported
20281 whole_archive_flag_spec_GCJ=''
20282 link_all_deplibs_GCJ=yes
20283 if test "$GCC" = yes ; then
20284 output_verbose_link_cmd='echo'
20285 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20286 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20287 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20288 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}'
20289 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}'
20291 case "$cc_basename" in
20293 output_verbose_link_cmd='echo'
20294 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20295 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20296 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20297 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}'
20298 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}'
20308 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20309 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20310 hardcode_shlibpath_var_GCJ=no
20317 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20318 # support. Future versions do this automatically, but an explicit c++rt0.o
20319 # does not break anything, and helps significantly (at the cost of a little
20322 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20323 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20324 hardcode_direct_GCJ=yes
20325 hardcode_shlibpath_var_GCJ=no
20328 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20330 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20331 hardcode_direct_GCJ=yes
20332 hardcode_minus_L_GCJ=yes
20333 hardcode_shlibpath_var_GCJ=no
20336 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20337 freebsd* | kfreebsd*-gnu)
20338 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20339 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20340 hardcode_direct_GCJ=yes
20341 hardcode_shlibpath_var_GCJ=no
20345 if test "$GCC" = yes; then
20346 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'
20348 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'
20350 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20351 hardcode_libdir_separator_GCJ=:
20352 hardcode_direct_GCJ=yes
20354 # hardcode_minus_L: Not really in the search PATH,
20355 # but as the default location of the library.
20356 hardcode_minus_L_GCJ=yes
20357 export_dynamic_flag_spec_GCJ='${wl}-E'
20361 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20362 case "$host_cpu" in
20364 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20367 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20371 case "$host_cpu" in
20373 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20376 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20380 if test "$with_gnu_ld" = no; then
20381 case "$host_cpu" in
20383 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20384 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20385 hardcode_libdir_separator_GCJ=:
20386 hardcode_direct_GCJ=no
20387 hardcode_shlibpath_var_GCJ=no
20390 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20391 hardcode_direct_GCJ=no
20392 hardcode_shlibpath_var_GCJ=no
20394 # hardcode_minus_L: Not really in the search PATH,
20395 # but as the default location of the library.
20396 hardcode_minus_L_GCJ=yes
20399 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20400 hardcode_libdir_separator_GCJ=:
20401 hardcode_direct_GCJ=yes
20402 export_dynamic_flag_spec_GCJ='${wl}-E'
20404 # hardcode_minus_L: Not really in the search PATH,
20405 # but as the default location of the library.
20406 hardcode_minus_L_GCJ=yes
20412 irix5* | irix6* | nonstopux*)
20413 if test "$GCC" = yes; then
20414 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'
20416 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'
20417 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20419 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20420 hardcode_libdir_separator_GCJ=:
20421 link_all_deplibs_GCJ=yes
20425 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20426 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20428 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20430 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20431 hardcode_direct_GCJ=yes
20432 hardcode_shlibpath_var_GCJ=no
20436 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20437 hardcode_direct_GCJ=yes
20438 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20439 hardcode_libdir_separator_GCJ=:
20440 hardcode_shlibpath_var_GCJ=no
20444 hardcode_direct_GCJ=yes
20445 hardcode_shlibpath_var_GCJ=no
20446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20447 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20448 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20449 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20450 export_dynamic_flag_spec_GCJ='${wl}-E'
20453 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20454 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20455 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20458 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20459 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20466 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20467 hardcode_minus_L_GCJ=yes
20468 allow_undefined_flag_GCJ=unsupported
20469 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'
20470 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20474 if test "$GCC" = yes; then
20475 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20476 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'
20478 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20479 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'
20481 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20482 hardcode_libdir_separator_GCJ=:
20485 osf4* | osf5*) # as osf3* with the addition of -msym flag
20486 if test "$GCC" = yes; then
20487 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20488 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'
20489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20491 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20492 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'
20493 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~
20494 $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'
20496 # Both c and cxx compiler support -rpath directly
20497 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20499 hardcode_libdir_separator_GCJ=:
20503 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20504 hardcode_shlibpath_var_GCJ=no
20505 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20506 runpath_var=LD_RUN_PATH
20507 hardcode_runpath_var=yes
20511 no_undefined_flag_GCJ=' -z text'
20512 if test "$GCC" = yes; then
20513 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20514 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20515 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20517 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20518 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20521 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20522 hardcode_shlibpath_var_GCJ=no
20524 solaris2.[0-5] | solaris2.[0-5].*) ;;
20525 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20526 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20528 link_all_deplibs_GCJ=yes
20532 if test "x$host_vendor" = xsequent; then
20533 # Use $CC to link under sequent, because it throws in some extra .o
20534 # files that make .init and .fini sections work.
20535 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20537 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20539 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20540 hardcode_direct_GCJ=yes
20541 hardcode_minus_L_GCJ=yes
20542 hardcode_shlibpath_var_GCJ=no
20546 case $host_vendor in
20548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20549 hardcode_direct_GCJ=yes # is this really true???
20552 ## LD is ld it makes a PLAMLIB
20553 ## CC just makes a GrossModule.
20554 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20555 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20556 hardcode_direct_GCJ=no
20559 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20560 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20563 runpath_var='LD_RUN_PATH'
20564 hardcode_shlibpath_var_GCJ=no
20568 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20569 hardcode_shlibpath_var_GCJ=no
20570 export_dynamic_flag_spec_GCJ='-Bexport'
20574 if test -d /usr/nec; then
20575 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20576 hardcode_shlibpath_var_GCJ=no
20577 runpath_var=LD_RUN_PATH
20578 hardcode_runpath_var=yes
20584 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20585 hardcode_direct_GCJ=yes
20586 hardcode_minus_L_GCJ=no
20587 hardcode_shlibpath_var_GCJ=no
20588 hardcode_runpath_var=yes
20589 runpath_var=LD_RUN_PATH
20592 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20593 no_undefined_flag_GCJ='${wl}-z ${wl}text'
20594 if test "$GCC" = yes; then
20595 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20597 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20599 runpath_var='LD_RUN_PATH'
20600 hardcode_shlibpath_var_GCJ=no
20604 no_undefined_flag_GCJ=' -z text'
20605 # $CC -shared without GNU ld will not create a library from C++
20606 # object files and a static libstdc++, better avoid it by now
20607 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20608 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20610 hardcode_libdir_flag_spec_GCJ=
20611 hardcode_shlibpath_var_GCJ=no
20612 runpath_var='LD_RUN_PATH'
20616 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20617 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20618 hardcode_shlibpath_var_GCJ=no
20627 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20628 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20629 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20632 if test "$GCC" = yes; then
20633 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20637 # Do we need to explicitly link libc?
20639 case "x$archive_cmds_need_lc_GCJ" in
20641 # Assume -lc should be added
20642 archive_cmds_need_lc_GCJ=yes
20644 if test "$enable_shared" = yes && test "$GCC" = yes; then
20645 case $archive_cmds_GCJ in
20647 # FIXME: we may have to deal with multi-command sequences.
20650 # Test whether the compiler implicitly links with -lc since on some
20651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20652 # to ld, don't add -lc before -lgcc.
20653 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20659 (eval $ac_compile) 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } 2>conftest.err; then
20665 libobjs=conftest.$ac_objext
20667 wl=$lt_prog_compiler_wl_GCJ
20673 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20674 allow_undefined_flag_GCJ=
20675 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20676 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }
20681 archive_cmds_need_lc_GCJ=no
20683 archive_cmds_need_lc_GCJ=yes
20685 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20687 cat conftest.err 1>&5
20690 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20691 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20698 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20699 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20700 library_names_spec=
20701 libname_spec='lib$name'
20705 postuninstall_cmds=
20709 shlibpath_overrides_runpath=unknown
20711 dynamic_linker="$host_os ld.so"
20712 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20713 if test "$GCC" = yes; then
20714 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20715 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20716 # if the path contains ";" then we assume it to be the separator
20717 # otherwise default to the standard path separator (i.e. ":") - it is
20718 # assumed that no part of a normal pathname contains ";" but that should
20719 # okay in the real world where ";" in dirpaths is itself problematic.
20720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20725 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20727 need_lib_prefix=unknown
20728 hardcode_into_libs=no
20730 # when you set need_version to no, make sure it does not cause -set_version
20731 # flags to be left without arguments
20732 need_version=unknown
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20738 shlibpath_var=LIBPATH
20740 # AIX 3 has no versioning support, so we append a major version to the name.
20741 soname_spec='${libname}${release}${shared_ext}$major'
20748 hardcode_into_libs=yes
20749 if test "$host_cpu" = ia64; then
20750 # AIX 5 supports IA64
20751 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20752 shlibpath_var=LD_LIBRARY_PATH
20754 # With GCC up to 2.95.x, collect2 would create an import file
20755 # for dependence libraries. The import file would start with
20756 # the line `#! .'. This would cause the generated library to
20757 # depend on `.', always an invalid library. This was fixed in
20758 # development snapshots of GCC prior to 3.0.
20760 aix4 | aix4.[01] | aix4.[01].*)
20761 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20763 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20766 can_build_shared=no
20770 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20771 # soname into executable. Probably we can add versioning support to
20772 # collect2, so additional links can be useful in future.
20773 if test "$aix_use_runtimelinking" = yes; then
20774 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20775 # instead of lib<name>.a to let people know that these are not
20776 # typical AIX shared libraries.
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 # We preserve .a as extension for shared libraries through AIX4.2
20780 # and later when we are not doing run time linking.
20781 library_names_spec='${libname}${release}.a $libname.a'
20782 soname_spec='${libname}${release}${shared_ext}$major'
20784 shlibpath_var=LIBPATH
20789 library_names_spec='$libname.ixlibrary $libname.a'
20790 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20791 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'
20795 library_names_spec='${libname}${shared_ext}'
20796 dynamic_linker="$host_os ld.so"
20797 shlibpath_var=LIBRARY_PATH
20803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 soname_spec='${libname}${release}${shared_ext}$major'
20805 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20806 shlibpath_var=LD_LIBRARY_PATH
20807 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20808 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20809 # the default ld.so.conf also contains /usr/contrib/lib and
20810 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20811 # libtool to hard-code these into programs
20814 cygwin* | mingw* | pw32*)
20815 version_type=windows
20820 case $GCC,$host_os in
20821 yes,cygwin* | yes,mingw* | yes,pw32*)
20822 library_names_spec='$libname.dll.a'
20823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20824 postinstall_cmds='base_file=`basename \${file}`~
20825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20826 dldir=$destdir/`dirname \$dlpath`~
20827 test -d \$dldir || mkdir -p \$dldir~
20828 $install_prog $dir/$dlname \$dldir/$dlname'
20829 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20830 dlpath=$dir/\$dldll~
20832 shlibpath_overrides_runpath=yes
20836 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20837 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20838 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20841 # MinGW DLLs use traditional 'lib' prefix
20842 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20843 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20844 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20845 # It is most probably a Windows format PATH printed by
20846 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20847 # path with ; separators, and with drive letters. We can handle the
20848 # drive letters (cygwin fileutils understands them), so leave them,
20849 # especially as we might pass files found there to a mingw objdump,
20850 # which wouldn't understand a cygwinified path. Ahh.
20851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20857 # pw32 DLLs use 'pw' prefix rather than 'lib'
20858 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20864 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20867 dynamic_linker='Win32 ld.exe'
20868 # FIXME: first we should search . and the directory the executable is in
20872 darwin* | rhapsody*)
20873 dynamic_linker="$host_os dyld"
20874 version_type=darwin
20877 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20878 soname_spec='${libname}${release}${major}$shared_ext'
20879 shlibpath_overrides_runpath=yes
20880 shlibpath_var=DYLD_LIBRARY_PATH
20881 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20882 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20883 if test "$GCC" = yes; then
20884 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"`
20886 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20888 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20896 soname_spec='${libname}${release}${shared_ext}$major'
20897 shlibpath_var=LD_LIBRARY_PATH
20908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20909 soname_spec='${libname}${release}${shared_ext}$major'
20910 shlibpath_var=LD_LIBRARY_PATH
20911 shlibpath_overrides_runpath=no
20912 hardcode_into_libs=yes
20913 dynamic_linker='GNU ld.so'
20917 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20918 version_type=freebsd-$objformat
20919 case $version_type in
20921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20930 shlibpath_var=LD_LIBRARY_PATH
20933 shlibpath_overrides_runpath=yes
20935 freebsd3.01* | freebsdelf3.01*)
20936 shlibpath_overrides_runpath=yes
20937 hardcode_into_libs=yes
20940 shlibpath_overrides_runpath=no
20941 hardcode_into_libs=yes
20950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20951 soname_spec='${libname}${release}${shared_ext}$major'
20952 shlibpath_var=LD_LIBRARY_PATH
20953 hardcode_into_libs=yes
20956 hpux9* | hpux10* | hpux11*)
20957 # Give a soname corresponding to the major version so that dld.sl refuses to
20958 # link against other versions.
20962 case "$host_cpu" in
20965 hardcode_into_libs=yes
20966 dynamic_linker="$host_os dld.so"
20967 shlibpath_var=LD_LIBRARY_PATH
20968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20970 soname_spec='${libname}${release}${shared_ext}$major'
20971 if test "X$HPUX_IA64_MODE" = X32; then
20972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20980 hardcode_into_libs=yes
20981 dynamic_linker="$host_os dld.sl"
20982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20985 soname_spec='${libname}${release}${shared_ext}$major'
20986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20991 dynamic_linker="$host_os dld.sl"
20992 shlibpath_var=SHLIB_PATH
20993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20995 soname_spec='${libname}${release}${shared_ext}$major'
20998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20999 postinstall_cmds='chmod 555 $lib'
21002 irix5* | irix6* | nonstopux*)
21004 nonstopux*) version_type=nonstopux ;;
21006 if test "$lt_cv_prog_gnu_ld" = yes; then
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21017 irix5* | nonstopux*)
21018 libsuff= shlibsuff=
21021 case $LD in # libtool.m4 will add one of these switches to LD
21022 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21023 libsuff= shlibsuff= libmagic=32-bit;;
21024 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21025 libsuff=32 shlibsuff=N32 libmagic=N32;;
21026 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21027 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21028 *) libsuff= shlibsuff= libmagic=never-match;;
21032 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21033 shlibpath_overrides_runpath=no
21034 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21035 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21036 hardcode_into_libs=yes
21039 # No shared lib support for Linux oldld, aout, or coff.
21040 linux*oldld* | linux*aout* | linux*coff*)
21044 # This must be Linux ELF.
21049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050 soname_spec='${libname}${release}${shared_ext}$major'
21051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21052 shlibpath_var=LD_LIBRARY_PATH
21053 shlibpath_overrides_runpath=no
21054 # This implies no fast_install, which is unacceptable.
21055 # Some rework will be needed to allow for fast_install
21056 # before this can be enabled.
21057 hardcode_into_libs=yes
21059 # Append ld.so.conf contents to the search path
21060 if test -f /etc/ld.so.conf; then
21061 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
21062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21065 # We used to test for /lib/ld.so.1 and disable shared libraries on
21066 # powerpc, because MkLinux only supported shared libraries with the
21067 # GNU dynamic linker. Since this was broken with cross compilers,
21068 # most powerpc-linux boxes support dynamic linking these days and
21069 # people can always --disable-shared, the test was removed, and we
21070 # assume the GNU/Linux dynamic linker is in use.
21071 dynamic_linker='GNU/Linux ld.so'
21078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21079 soname_spec='${libname}${release}${shared_ext}$major'
21080 shlibpath_var=LD_LIBRARY_PATH
21081 shlibpath_overrides_runpath=no
21082 hardcode_into_libs=yes
21083 dynamic_linker='GNU ld.so'
21090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21093 dynamic_linker='NetBSD (a.out) ld.so'
21095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21096 soname_spec='${libname}${release}${shared_ext}$major'
21097 dynamic_linker='NetBSD ld.elf_so'
21099 shlibpath_var=LD_LIBRARY_PATH
21100 shlibpath_overrides_runpath=yes
21101 hardcode_into_libs=yes
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21107 shlibpath_var=LD_LIBRARY_PATH
21108 shlibpath_overrides_runpath=yes
21115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21116 soname_spec='${libname}${release}${shared_ext}$major'
21117 shlibpath_var=LD_LIBRARY_PATH
21118 shlibpath_overrides_runpath=yes
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21127 shlibpath_var=LD_LIBRARY_PATH
21128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21130 openbsd2.[89] | openbsd2.[89].*)
21131 shlibpath_overrides_runpath=no
21134 shlibpath_overrides_runpath=yes
21138 shlibpath_overrides_runpath=yes
21143 libname_spec='$name'
21146 library_names_spec='$libname${shared_ext} $libname.a'
21147 dynamic_linker='OS/2 ld.exe'
21148 shlibpath_var=LIBPATH
21151 osf3* | osf4* | osf5*)
21155 soname_spec='${libname}${release}${shared_ext}$major'
21156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21157 shlibpath_var=LD_LIBRARY_PATH
21158 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21159 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21164 soname_spec='${libname}${release}${shared_ext}$major'
21165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21166 shlibpath_var=LD_LIBRARY_PATH
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 soname_spec='${libname}${release}${shared_ext}$major'
21175 shlibpath_var=LD_LIBRARY_PATH
21176 shlibpath_overrides_runpath=yes
21177 hardcode_into_libs=yes
21178 # ldd complains unless libraries are executable
21179 postinstall_cmds='chmod +x $lib'
21184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21186 shlibpath_var=LD_LIBRARY_PATH
21187 shlibpath_overrides_runpath=yes
21188 if test "$with_gnu_ld" = yes; then
21194 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197 soname_spec='${libname}${release}${shared_ext}$major'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 case $host_vendor in
21201 shlibpath_overrides_runpath=no
21203 export_dynamic_flag_spec='${wl}-Blargedynsym'
21204 runpath_var=LD_RUN_PATH
21212 shlibpath_overrides_runpath=no
21213 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21219 if test -d /usr/nec ;then
21221 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21222 soname_spec='$libname${shared_ext}.$major'
21223 shlibpath_var=LD_LIBRARY_PATH
21229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21230 soname_spec='${libname}${release}${shared_ext}$major'
21231 shlibpath_var=LD_LIBRARY_PATH
21238 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21239 echo "${ECHO_T}$dynamic_linker" >&6
21240 test "$dynamic_linker" = no && can_build_shared=no
21242 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21243 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21244 hardcode_action_GCJ=
21245 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21246 test -n "$runpath_var_GCJ" || \
21247 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21249 # We can hardcode non-existant directories.
21250 if test "$hardcode_direct_GCJ" != no &&
21251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21252 # have to relink, otherwise we might link with an installed library
21253 # when we should be linking with a yet-to-be-installed one
21254 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21255 test "$hardcode_minus_L_GCJ" != no; then
21256 # Linking always hardcodes the temporary library directory.
21257 hardcode_action_GCJ=relink
21259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21260 hardcode_action_GCJ=immediate
21263 # We cannot hardcode anything, or else we can only hardcode existing
21265 hardcode_action_GCJ=unsupported
21267 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21268 echo "${ECHO_T}$hardcode_action_GCJ" >&6
21270 if test "$hardcode_action_GCJ" = relink; then
21271 # Fast installation is not supported
21272 enable_fast_install=no
21273 elif test "$shlibpath_overrides_runpath" = yes ||
21274 test "$enable_shared" = no; then
21275 # Fast installation is not necessary
21276 enable_fast_install=needless
21281 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21282 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21283 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21284 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21285 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21286 echo "$as_me:$LINENO: result: yes" >&5
21287 echo "${ECHO_T}yes" >&6
21289 # FIXME - insert some real tests, host_os isn't really good enough
21292 if test -n "$STRIP" ; then
21293 striplib="$STRIP -x"
21294 echo "$as_me:$LINENO: result: yes" >&5
21295 echo "${ECHO_T}yes" >&6
21297 echo "$as_me:$LINENO: result: no" >&5
21298 echo "${ECHO_T}no" >&6
21302 echo "$as_me:$LINENO: result: no" >&5
21303 echo "${ECHO_T}no" >&6
21308 if test "x$enable_dlopen" != xyes; then
21309 enable_dlopen=unknown
21310 enable_dlopen_self=unknown
21311 enable_dlopen_self_static=unknown
21318 lt_cv_dlopen="load_add_on"
21320 lt_cv_dlopen_self=yes
21324 lt_cv_dlopen="LoadLibrary"
21329 lt_cv_dlopen="dlopen"
21334 # if libdl is installed we need to link against it
21335 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21336 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21337 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21340 ac_check_lib_save_LIBS=$LIBS
21342 cat >conftest.$ac_ext <<_ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21349 /* Override any gcc2 internal prototype to avoid an error. */
21353 /* We use char because int might match the return type of a gcc2
21354 builtin and then its argument prototype would still apply. */
21364 rm -f conftest.$ac_objext conftest$ac_exeext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21366 (eval $ac_link) 2>conftest.er1
21368 grep -v '^ *+' conftest.er1 >conftest.err
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } &&
21373 { ac_try='test -z "$ac_c_werror_flag"
21374 || test ! -s conftest.err'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; } &&
21380 { ac_try='test -s conftest$ac_exeext'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_cv_lib_dl_dlopen=yes
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21391 ac_cv_lib_dl_dlopen=no
21393 rm -f conftest.err conftest.$ac_objext \
21394 conftest$ac_exeext conftest.$ac_ext
21395 LIBS=$ac_check_lib_save_LIBS
21397 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21398 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21399 if test $ac_cv_lib_dl_dlopen = yes; then
21400 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21403 lt_cv_dlopen="dyld"
21405 lt_cv_dlopen_self=yes
21412 echo "$as_me:$LINENO: checking for shl_load" >&5
21413 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
21414 if test "${ac_cv_func_shl_load+set}" = set; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21425 #define shl_load innocuous_shl_load
21427 /* System header to define __stub macros and hopefully few prototypes,
21428 which can conflict with char shl_load (); below.
21429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21430 <limits.h> exists even on freestanding compilers. */
21433 # include <limits.h>
21435 # include <assert.h>
21440 /* Override any gcc2 internal prototype to avoid an error. */
21445 /* We use char because int might match the return type of a gcc2
21446 builtin and then its argument prototype would still apply. */
21448 /* The GNU C library defines this for functions which it implements
21449 to always fail with ENOSYS. Some functions are actually named
21450 something starting with __ and the normal name is an alias. */
21451 #if defined (__stub_shl_load) || defined (__stub___shl_load)
21454 char (*f) () = shl_load;
21463 return f != shl_load;
21468 rm -f conftest.$ac_objext conftest$ac_exeext
21469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21470 (eval $ac_link) 2>conftest.er1
21472 grep -v '^ *+' conftest.er1 >conftest.err
21474 cat conftest.err >&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } &&
21477 { ac_try='test -z "$ac_c_werror_flag"
21478 || test ! -s conftest.err'
21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; } &&
21484 { ac_try='test -s conftest$ac_exeext'
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; }; then
21490 ac_cv_func_shl_load=yes
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ac_cv_func_shl_load=no
21497 rm -f conftest.err conftest.$ac_objext \
21498 conftest$ac_exeext conftest.$ac_ext
21500 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21501 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
21502 if test $ac_cv_func_shl_load = yes; then
21503 lt_cv_dlopen="shl_load"
21505 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21506 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
21507 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 ac_check_lib_save_LIBS=$LIBS
21512 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21519 /* Override any gcc2 internal prototype to avoid an error. */
21523 /* We use char because int might match the return type of a gcc2
21524 builtin and then its argument prototype would still apply. */
21534 rm -f conftest.$ac_objext conftest$ac_exeext
21535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21536 (eval $ac_link) 2>conftest.er1
21538 grep -v '^ *+' conftest.er1 >conftest.err
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } &&
21543 { ac_try='test -z "$ac_c_werror_flag"
21544 || test ! -s conftest.err'
21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; } &&
21550 { ac_try='test -s conftest$ac_exeext'
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; }; then
21556 ac_cv_lib_dld_shl_load=yes
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ac_cv_lib_dld_shl_load=no
21563 rm -f conftest.err conftest.$ac_objext \
21564 conftest$ac_exeext conftest.$ac_ext
21565 LIBS=$ac_check_lib_save_LIBS
21567 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21568 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21569 if test $ac_cv_lib_dld_shl_load = yes; then
21570 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21572 echo "$as_me:$LINENO: checking for dlopen" >&5
21573 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21574 if test "${ac_cv_func_dlopen+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 cat >conftest.$ac_ext <<_ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21585 #define dlopen innocuous_dlopen
21587 /* System header to define __stub macros and hopefully few prototypes,
21588 which can conflict with char dlopen (); below.
21589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21590 <limits.h> exists even on freestanding compilers. */
21593 # include <limits.h>
21595 # include <assert.h>
21600 /* Override any gcc2 internal prototype to avoid an error. */
21605 /* We use char because int might match the return type of a gcc2
21606 builtin and then its argument prototype would still apply. */
21608 /* The GNU C library defines this for functions which it implements
21609 to always fail with ENOSYS. Some functions are actually named
21610 something starting with __ and the normal name is an alias. */
21611 #if defined (__stub_dlopen) || defined (__stub___dlopen)
21614 char (*f) () = dlopen;
21623 return f != dlopen;
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21630 (eval $ac_link) 2>conftest.er1
21632 grep -v '^ *+' conftest.er1 >conftest.err
21634 cat conftest.err >&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } &&
21637 { ac_try='test -z "$ac_c_werror_flag"
21638 || test ! -s conftest.err'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; } &&
21644 { ac_try='test -s conftest$ac_exeext'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ac_cv_func_dlopen=yes
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_cv_func_dlopen=no
21657 rm -f conftest.err conftest.$ac_objext \
21658 conftest$ac_exeext conftest.$ac_ext
21660 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21661 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21662 if test $ac_cv_func_dlopen = yes; then
21663 lt_cv_dlopen="dlopen"
21665 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21666 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 ac_check_lib_save_LIBS=$LIBS
21672 cat >conftest.$ac_ext <<_ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21679 /* Override any gcc2 internal prototype to avoid an error. */
21683 /* We use char because int might match the return type of a gcc2
21684 builtin and then its argument prototype would still apply. */
21694 rm -f conftest.$ac_objext conftest$ac_exeext
21695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21696 (eval $ac_link) 2>conftest.er1
21698 grep -v '^ *+' conftest.er1 >conftest.err
21700 cat conftest.err >&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } &&
21703 { ac_try='test -z "$ac_c_werror_flag"
21704 || test ! -s conftest.err'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; } &&
21710 { ac_try='test -s conftest$ac_exeext'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 ac_cv_lib_dl_dlopen=yes
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_cv_lib_dl_dlopen=no
21723 rm -f conftest.err conftest.$ac_objext \
21724 conftest$ac_exeext conftest.$ac_ext
21725 LIBS=$ac_check_lib_save_LIBS
21727 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21729 if test $ac_cv_lib_dl_dlopen = yes; then
21730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21732 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21733 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21734 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21737 ac_check_lib_save_LIBS=$LIBS
21738 LIBS="-lsvld $LIBS"
21739 cat >conftest.$ac_ext <<_ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21746 /* Override any gcc2 internal prototype to avoid an error. */
21750 /* We use char because int might match the return type of a gcc2
21751 builtin and then its argument prototype would still apply. */
21761 rm -f conftest.$ac_objext conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763 (eval $ac_link) 2>conftest.er1
21765 grep -v '^ *+' conftest.er1 >conftest.err
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
21770 { ac_try='test -z "$ac_c_werror_flag"
21771 || test ! -s conftest.err'
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try='test -s conftest$ac_exeext'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 ac_cv_lib_svld_dlopen=yes
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21788 ac_cv_lib_svld_dlopen=no
21790 rm -f conftest.err conftest.$ac_objext \
21791 conftest$ac_exeext conftest.$ac_ext
21792 LIBS=$ac_check_lib_save_LIBS
21794 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21795 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21796 if test $ac_cv_lib_svld_dlopen = yes; then
21797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21799 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21800 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21801 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 ac_check_lib_save_LIBS=$LIBS
21806 cat >conftest.$ac_ext <<_ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h. */
21813 /* Override any gcc2 internal prototype to avoid an error. */
21817 /* We use char because int might match the return type of a gcc2
21818 builtin and then its argument prototype would still apply. */
21828 rm -f conftest.$ac_objext conftest$ac_exeext
21829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21830 (eval $ac_link) 2>conftest.er1
21832 grep -v '^ *+' conftest.er1 >conftest.err
21834 cat conftest.err >&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } &&
21837 { ac_try='test -z "$ac_c_werror_flag"
21838 || test ! -s conftest.err'
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try='test -s conftest$ac_exeext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 ac_cv_lib_dld_dld_link=yes
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ac_cv_lib_dld_dld_link=no
21857 rm -f conftest.err conftest.$ac_objext \
21858 conftest$ac_exeext conftest.$ac_ext
21859 LIBS=$ac_check_lib_save_LIBS
21861 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21862 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21863 if test $ac_cv_lib_dld_dld_link = yes; then
21864 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21885 if test "x$lt_cv_dlopen" != xno; then
21891 case $lt_cv_dlopen in
21893 save_CPPFLAGS="$CPPFLAGS"
21894 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21896 save_LDFLAGS="$LDFLAGS"
21897 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21900 LIBS="$lt_cv_dlopen_libs $LIBS"
21902 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21903 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21904 if test "${lt_cv_dlopen_self+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21907 if test "$cross_compiling" = yes; then :
21908 lt_cv_dlopen_self=cross
21910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21911 lt_status=$lt_dlunknown
21912 cat > conftest.$ac_ext <<EOF
21913 #line 21913 "configure"
21914 #include "confdefs.h"
21923 # define LT_DLGLOBAL RTLD_GLOBAL
21926 # define LT_DLGLOBAL DL_GLOBAL
21928 # define LT_DLGLOBAL 0
21932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21933 find out it does not work in some platform. */
21934 #ifndef LT_DLLAZY_OR_NOW
21936 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21939 # define LT_DLLAZY_OR_NOW DL_LAZY
21942 # define LT_DLLAZY_OR_NOW RTLD_NOW
21945 # define LT_DLLAZY_OR_NOW DL_NOW
21947 # define LT_DLLAZY_OR_NOW 0
21955 extern "C" void exit (int);
21958 void fnord() { int i=42;}
21961 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21962 int status = $lt_dlunknown;
21966 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21967 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21968 /* dlclose (self); */
21974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21975 (eval $ac_link) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21979 (./conftest; exit; ) 2>/dev/null
21981 case x$lt_status in
21982 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21983 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21984 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21987 # compilation failed
21988 lt_cv_dlopen_self=no
21995 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21996 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21998 if test "x$lt_cv_dlopen_self" = xyes; then
21999 LDFLAGS="$LDFLAGS $link_static_flag"
22000 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
22001 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
22002 if test "${lt_cv_dlopen_self_static+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22005 if test "$cross_compiling" = yes; then :
22006 lt_cv_dlopen_self_static=cross
22008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22009 lt_status=$lt_dlunknown
22010 cat > conftest.$ac_ext <<EOF
22011 #line 22011 "configure"
22012 #include "confdefs.h"
22021 # define LT_DLGLOBAL RTLD_GLOBAL
22024 # define LT_DLGLOBAL DL_GLOBAL
22026 # define LT_DLGLOBAL 0
22030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22031 find out it does not work in some platform. */
22032 #ifndef LT_DLLAZY_OR_NOW
22034 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22037 # define LT_DLLAZY_OR_NOW DL_LAZY
22040 # define LT_DLLAZY_OR_NOW RTLD_NOW
22043 # define LT_DLLAZY_OR_NOW DL_NOW
22045 # define LT_DLLAZY_OR_NOW 0
22053 extern "C" void exit (int);
22056 void fnord() { int i=42;}
22059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22060 int status = $lt_dlunknown;
22064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22065 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22066 /* dlclose (self); */
22072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22073 (eval $ac_link) 2>&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22077 (./conftest; exit; ) 2>/dev/null
22079 case x$lt_status in
22080 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22081 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22082 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
22085 # compilation failed
22086 lt_cv_dlopen_self_static=no
22093 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
22094 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
22097 CPPFLAGS="$save_CPPFLAGS"
22098 LDFLAGS="$save_LDFLAGS"
22103 case $lt_cv_dlopen_self in
22104 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22105 *) enable_dlopen_self=unknown ;;
22108 case $lt_cv_dlopen_self_static in
22109 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22110 *) enable_dlopen_self_static=unknown ;;
22115 # The else clause should only fire when bootstrapping the
22116 # libtool distribution, otherwise you forgot to ship ltmain.sh
22117 # with your package, and you will get complaints that there are
22118 # no rules to generate ltmain.sh.
22119 if test -f "$ltmain"; then
22120 # See if we are running on zsh, and set the options which allow our commands through
22121 # without removal of \ escapes.
22122 if test -n "${ZSH_VERSION+set}" ; then
22123 setopt NO_GLOB_SUBST
22125 # Now quote all the things that may contain metacharacters while being
22126 # careful not to overquote the AC_SUBSTed values. We take copies of the
22127 # variables and quote the copies for generation of the libtool script.
22128 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22130 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22131 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22132 deplibs_check_method reload_flag reload_cmds need_locks \
22133 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22134 lt_cv_sys_global_symbol_to_c_name_address \
22135 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22136 old_postinstall_cmds old_postuninstall_cmds \
22140 lt_prog_compiler_wl_GCJ \
22141 lt_prog_compiler_pic_GCJ \
22142 lt_prog_compiler_static_GCJ \
22143 lt_prog_compiler_no_builtin_flag_GCJ \
22144 export_dynamic_flag_spec_GCJ \
22145 thread_safe_flag_spec_GCJ \
22146 whole_archive_flag_spec_GCJ \
22147 enable_shared_with_static_runtimes_GCJ \
22148 old_archive_cmds_GCJ \
22149 old_archive_from_new_cmds_GCJ \
22150 predep_objects_GCJ \
22151 postdep_objects_GCJ \
22154 compiler_lib_search_path_GCJ \
22156 archive_expsym_cmds_GCJ \
22157 postinstall_cmds_GCJ \
22158 postuninstall_cmds_GCJ \
22159 old_archive_from_expsyms_cmds_GCJ \
22160 allow_undefined_flag_GCJ \
22161 no_undefined_flag_GCJ \
22162 export_symbols_cmds_GCJ \
22163 hardcode_libdir_flag_spec_GCJ \
22164 hardcode_libdir_flag_spec_ld_GCJ \
22165 hardcode_libdir_separator_GCJ \
22166 hardcode_automatic_GCJ \
22168 module_expsym_cmds_GCJ \
22169 lt_cv_prog_compiler_c_o_GCJ \
22170 exclude_expsyms_GCJ \
22171 include_expsyms_GCJ; do
22174 old_archive_cmds_GCJ | \
22175 old_archive_from_new_cmds_GCJ | \
22176 archive_cmds_GCJ | \
22177 archive_expsym_cmds_GCJ | \
22178 module_cmds_GCJ | \
22179 module_expsym_cmds_GCJ | \
22180 old_archive_from_expsyms_cmds_GCJ | \
22181 export_symbols_cmds_GCJ | \
22182 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22183 postinstall_cmds | postuninstall_cmds | \
22184 old_postinstall_cmds | old_postuninstall_cmds | \
22185 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22186 # Double-quote double-evaled strings.
22187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22196 *'\$0 --fallback-echo"')
22197 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22203 cat <<__EOF__ >> "$cfgfile"
22204 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22208 # Shell to use when invoking shell scripts.
22211 # Whether or not to build shared libraries.
22212 build_libtool_libs=$enable_shared
22214 # Whether or not to build static libraries.
22215 build_old_libs=$enable_static
22217 # Whether or not to add -lc for building shared libraries.
22218 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22220 # Whether or not to disallow shared libs when runtime libs are static
22221 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22223 # Whether or not to optimize for fast installation.
22224 fast_install=$enable_fast_install
22227 host_alias=$host_alias
22230 # An echo program that does not interpret backslashes.
22235 AR_FLAGS=$lt_AR_FLAGS
22240 # A language-specific compiler.
22241 CC=$lt_compiler_GCJ
22243 # Is the compiler the GNU C compiler?
22249 # The linker used to build libraries.
22252 # Whether we need hard or soft links.
22255 # A BSD-compatible nm program.
22258 # A symbol stripping program
22261 # Used to examine libraries when file_magic_cmd begins "file"
22262 MAGIC_CMD=$MAGIC_CMD
22264 # Used on cygwin: DLL creation program.
22267 # Used on cygwin: object dumper.
22270 # Used on cygwin: assembler.
22273 # The name of the directory that contains temporary libtool files.
22276 # How to create reloadable object files.
22277 reload_flag=$lt_reload_flag
22278 reload_cmds=$lt_reload_cmds
22280 # How to pass a linker flag through the compiler.
22281 wl=$lt_lt_prog_compiler_wl_GCJ
22283 # Object file suffix (normally "o").
22284 objext="$ac_objext"
22286 # Old archive suffix (normally "a").
22289 # Shared library suffix (normally ".so").
22290 shrext_cmds='$shrext_cmds'
22292 # Executable file suffix (normally "").
22295 # Additional compiler flags for building library objects.
22296 pic_flag=$lt_lt_prog_compiler_pic_GCJ
22299 # What is the maximum length of a command?
22300 max_cmd_len=$lt_cv_sys_max_cmd_len
22302 # Does compiler simultaneously support -c and -o options?
22303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22305 # Must we lock files when doing compilation ?
22306 need_locks=$lt_need_locks
22308 # Do we need the lib prefix for modules?
22309 need_lib_prefix=$need_lib_prefix
22311 # Do we need a version for libraries?
22312 need_version=$need_version
22314 # Whether dlopen is supported.
22315 dlopen_support=$enable_dlopen
22317 # Whether dlopen of programs is supported.
22318 dlopen_self=$enable_dlopen_self
22320 # Whether dlopen of statically linked programs is supported.
22321 dlopen_self_static=$enable_dlopen_self_static
22323 # Compiler flag to prevent dynamic linking.
22324 link_static_flag=$lt_lt_prog_compiler_static_GCJ
22326 # Compiler flag to turn off builtin functions.
22327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22329 # Compiler flag to allow reflexive dlopens.
22330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22332 # Compiler flag to generate shared objects directly from archives.
22333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22335 # Compiler flag to generate thread-safe objects.
22336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22338 # Library versioning type.
22339 version_type=$version_type
22341 # Format of library name prefix.
22342 libname_spec=$lt_libname_spec
22344 # List of archive names. First name is the real one, the rest are links.
22345 # The last name is the one that the linker finds with -lNAME.
22346 library_names_spec=$lt_library_names_spec
22348 # The coded name of the library, if different from the real name.
22349 soname_spec=$lt_soname_spec
22351 # Commands used to build and install an old-style archive.
22353 old_archive_cmds=$lt_old_archive_cmds_GCJ
22354 old_postinstall_cmds=$lt_old_postinstall_cmds
22355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22357 # Create an old-style archive from a shared archive.
22358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22360 # Create a temporary old-style archive to link instead of a shared archive.
22361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22363 # Commands used to build and install a shared archive.
22364 archive_cmds=$lt_archive_cmds_GCJ
22365 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22366 postinstall_cmds=$lt_postinstall_cmds
22367 postuninstall_cmds=$lt_postuninstall_cmds
22369 # Commands used to build a loadable module (assumed same as above if empty)
22370 module_cmds=$lt_module_cmds_GCJ
22371 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22373 # Commands to strip libraries.
22374 old_striplib=$lt_old_striplib
22375 striplib=$lt_striplib
22377 # Dependencies to place before the objects being linked to create a
22379 predep_objects=$lt_predep_objects_GCJ
22381 # Dependencies to place after the objects being linked to create a
22383 postdep_objects=$lt_postdep_objects_GCJ
22385 # Dependencies to place before the objects being linked to create a
22387 predeps=$lt_predeps_GCJ
22389 # Dependencies to place after the objects being linked to create a
22391 postdeps=$lt_postdeps_GCJ
22393 # The library search path used internally by the compiler when linking
22394 # a shared library.
22395 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22397 # Method to check whether dependent libraries are shared objects.
22398 deplibs_check_method=$lt_deplibs_check_method
22400 # Command to use when deplibs_check_method == file_magic.
22401 file_magic_cmd=$lt_file_magic_cmd
22403 # Flag that allows shared libraries with undefined symbols to be built.
22404 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22406 # Flag that forces no undefined symbols.
22407 no_undefined_flag=$lt_no_undefined_flag_GCJ
22409 # Commands used to finish a libtool library installation in a directory.
22410 finish_cmds=$lt_finish_cmds
22412 # Same as above, but a single script fragment to be evaled but not shown.
22413 finish_eval=$lt_finish_eval
22415 # Take the output of nm and produce a listing of raw symbols and C names.
22416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22418 # Transform the output of nm in a proper C declaration
22419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22421 # Transform the output of nm in a C name address pair
22422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22424 # This is the shared library runtime path variable.
22425 runpath_var=$runpath_var
22427 # This is the shared library path variable.
22428 shlibpath_var=$shlibpath_var
22430 # Is shlibpath searched before the hard-coded library search path?
22431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22433 # How to hardcode a shared library path into an executable.
22434 hardcode_action=$hardcode_action_GCJ
22436 # Whether we should hardcode library paths into libraries.
22437 hardcode_into_libs=$hardcode_into_libs
22439 # Flag to hardcode \$libdir into a binary during linking.
22440 # This must work even if \$libdir does not exist.
22441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22443 # If ld is used when linking, flag to hardcode \$libdir into
22444 # a binary during linking. This must work even if \$libdir does
22446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22448 # Whether we need a single -rpath flag with a separated argument.
22449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22452 # resulting binary.
22453 hardcode_direct=$hardcode_direct_GCJ
22455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22456 # resulting binary.
22457 hardcode_minus_L=$hardcode_minus_L_GCJ
22459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22460 # the resulting binary.
22461 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22463 # Set to yes if building a shared library automatically hardcodes DIR into the library
22464 # and all subsequent libraries and executables linked against it.
22465 hardcode_automatic=$hardcode_automatic_GCJ
22467 # Variables whose values should be saved in libtool wrapper scripts and
22468 # restored at relink time.
22469 variables_saved_for_relink="$variables_saved_for_relink"
22471 # Whether libtool must link a program against all its dependency libraries.
22472 link_all_deplibs=$link_all_deplibs_GCJ
22474 # Compile-time system search path for libraries
22475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22477 # Run-time system search path for libraries
22478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22480 # Fix the shell variable \$srcfile for the compiler.
22481 fix_srcfile_path="$fix_srcfile_path_GCJ"
22483 # Set to yes if exported symbols are required.
22484 always_export_symbols=$always_export_symbols_GCJ
22486 # The commands to list exported symbols.
22487 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22489 # The commands to extract the exported symbol list from a shared archive.
22490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22492 # Symbols that should not be listed in the preloaded symbols.
22493 exclude_expsyms=$lt_exclude_expsyms_GCJ
22495 # Symbols that must always be exported.
22496 include_expsyms=$lt_include_expsyms_GCJ
22498 # ### END LIBTOOL TAG CONFIG: $tagname
22504 # If there is no Makefile yet, we rely on a make rule to execute
22505 # `config.status --recheck' to rerun these tests and create the
22506 # libtool script then.
22507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22508 if test -f "$ltmain_in"; then
22509 test -f Makefile && make "$ltmain"
22515 ac_cpp='$CPP $CPPFLAGS'
22516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22531 # Source file extension for RC test sources.
22534 # Object file extension for compiled RC test sources.
22538 # Code to be used in simple compile tests
22539 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22541 # Code to be used in simple link tests
22542 lt_simple_link_test_code="$lt_simple_compile_test_code"
22544 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22546 # If no C compiler was specified, use CC.
22549 # Allow CC to be a program name with arguments.
22553 # Allow CC to be a program name with arguments.
22558 lt_cv_prog_compiler_c_o_RC=yes
22560 # The else clause should only fire when bootstrapping the
22561 # libtool distribution, otherwise you forgot to ship ltmain.sh
22562 # with your package, and you will get complaints that there are
22563 # no rules to generate ltmain.sh.
22564 if test -f "$ltmain"; then
22565 # See if we are running on zsh, and set the options which allow our commands through
22566 # without removal of \ escapes.
22567 if test -n "${ZSH_VERSION+set}" ; then
22568 setopt NO_GLOB_SUBST
22570 # Now quote all the things that may contain metacharacters while being
22571 # careful not to overquote the AC_SUBSTed values. We take copies of the
22572 # variables and quote the copies for generation of the libtool script.
22573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22577 deplibs_check_method reload_flag reload_cmds need_locks \
22578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22579 lt_cv_sys_global_symbol_to_c_name_address \
22580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22581 old_postinstall_cmds old_postuninstall_cmds \
22585 lt_prog_compiler_wl_RC \
22586 lt_prog_compiler_pic_RC \
22587 lt_prog_compiler_static_RC \
22588 lt_prog_compiler_no_builtin_flag_RC \
22589 export_dynamic_flag_spec_RC \
22590 thread_safe_flag_spec_RC \
22591 whole_archive_flag_spec_RC \
22592 enable_shared_with_static_runtimes_RC \
22593 old_archive_cmds_RC \
22594 old_archive_from_new_cmds_RC \
22595 predep_objects_RC \
22596 postdep_objects_RC \
22599 compiler_lib_search_path_RC \
22601 archive_expsym_cmds_RC \
22602 postinstall_cmds_RC \
22603 postuninstall_cmds_RC \
22604 old_archive_from_expsyms_cmds_RC \
22605 allow_undefined_flag_RC \
22606 no_undefined_flag_RC \
22607 export_symbols_cmds_RC \
22608 hardcode_libdir_flag_spec_RC \
22609 hardcode_libdir_flag_spec_ld_RC \
22610 hardcode_libdir_separator_RC \
22611 hardcode_automatic_RC \
22613 module_expsym_cmds_RC \
22614 lt_cv_prog_compiler_c_o_RC \
22615 exclude_expsyms_RC \
22616 include_expsyms_RC; do
22619 old_archive_cmds_RC | \
22620 old_archive_from_new_cmds_RC | \
22621 archive_cmds_RC | \
22622 archive_expsym_cmds_RC | \
22624 module_expsym_cmds_RC | \
22625 old_archive_from_expsyms_cmds_RC | \
22626 export_symbols_cmds_RC | \
22627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22628 postinstall_cmds | postuninstall_cmds | \
22629 old_postinstall_cmds | old_postuninstall_cmds | \
22630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22631 # Double-quote double-evaled strings.
22632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22641 *'\$0 --fallback-echo"')
22642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22648 cat <<__EOF__ >> "$cfgfile"
22649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22653 # Shell to use when invoking shell scripts.
22656 # Whether or not to build shared libraries.
22657 build_libtool_libs=$enable_shared
22659 # Whether or not to build static libraries.
22660 build_old_libs=$enable_static
22662 # Whether or not to add -lc for building shared libraries.
22663 build_libtool_need_lc=$archive_cmds_need_lc_RC
22665 # Whether or not to disallow shared libs when runtime libs are static
22666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22668 # Whether or not to optimize for fast installation.
22669 fast_install=$enable_fast_install
22672 host_alias=$host_alias
22675 # An echo program that does not interpret backslashes.
22680 AR_FLAGS=$lt_AR_FLAGS
22685 # A language-specific compiler.
22688 # Is the compiler the GNU C compiler?
22694 # The linker used to build libraries.
22697 # Whether we need hard or soft links.
22700 # A BSD-compatible nm program.
22703 # A symbol stripping program
22706 # Used to examine libraries when file_magic_cmd begins "file"
22707 MAGIC_CMD=$MAGIC_CMD
22709 # Used on cygwin: DLL creation program.
22712 # Used on cygwin: object dumper.
22715 # Used on cygwin: assembler.
22718 # The name of the directory that contains temporary libtool files.
22721 # How to create reloadable object files.
22722 reload_flag=$lt_reload_flag
22723 reload_cmds=$lt_reload_cmds
22725 # How to pass a linker flag through the compiler.
22726 wl=$lt_lt_prog_compiler_wl_RC
22728 # Object file suffix (normally "o").
22729 objext="$ac_objext"
22731 # Old archive suffix (normally "a").
22734 # Shared library suffix (normally ".so").
22735 shrext_cmds='$shrext_cmds'
22737 # Executable file suffix (normally "").
22740 # Additional compiler flags for building library objects.
22741 pic_flag=$lt_lt_prog_compiler_pic_RC
22744 # What is the maximum length of a command?
22745 max_cmd_len=$lt_cv_sys_max_cmd_len
22747 # Does compiler simultaneously support -c and -o options?
22748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22750 # Must we lock files when doing compilation ?
22751 need_locks=$lt_need_locks
22753 # Do we need the lib prefix for modules?
22754 need_lib_prefix=$need_lib_prefix
22756 # Do we need a version for libraries?
22757 need_version=$need_version
22759 # Whether dlopen is supported.
22760 dlopen_support=$enable_dlopen
22762 # Whether dlopen of programs is supported.
22763 dlopen_self=$enable_dlopen_self
22765 # Whether dlopen of statically linked programs is supported.
22766 dlopen_self_static=$enable_dlopen_self_static
22768 # Compiler flag to prevent dynamic linking.
22769 link_static_flag=$lt_lt_prog_compiler_static_RC
22771 # Compiler flag to turn off builtin functions.
22772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22774 # Compiler flag to allow reflexive dlopens.
22775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22777 # Compiler flag to generate shared objects directly from archives.
22778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22780 # Compiler flag to generate thread-safe objects.
22781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22783 # Library versioning type.
22784 version_type=$version_type
22786 # Format of library name prefix.
22787 libname_spec=$lt_libname_spec
22789 # List of archive names. First name is the real one, the rest are links.
22790 # The last name is the one that the linker finds with -lNAME.
22791 library_names_spec=$lt_library_names_spec
22793 # The coded name of the library, if different from the real name.
22794 soname_spec=$lt_soname_spec
22796 # Commands used to build and install an old-style archive.
22798 old_archive_cmds=$lt_old_archive_cmds_RC
22799 old_postinstall_cmds=$lt_old_postinstall_cmds
22800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22802 # Create an old-style archive from a shared archive.
22803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22805 # Create a temporary old-style archive to link instead of a shared archive.
22806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22808 # Commands used to build and install a shared archive.
22809 archive_cmds=$lt_archive_cmds_RC
22810 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22811 postinstall_cmds=$lt_postinstall_cmds
22812 postuninstall_cmds=$lt_postuninstall_cmds
22814 # Commands used to build a loadable module (assumed same as above if empty)
22815 module_cmds=$lt_module_cmds_RC
22816 module_expsym_cmds=$lt_module_expsym_cmds_RC
22818 # Commands to strip libraries.
22819 old_striplib=$lt_old_striplib
22820 striplib=$lt_striplib
22822 # Dependencies to place before the objects being linked to create a
22824 predep_objects=$lt_predep_objects_RC
22826 # Dependencies to place after the objects being linked to create a
22828 postdep_objects=$lt_postdep_objects_RC
22830 # Dependencies to place before the objects being linked to create a
22832 predeps=$lt_predeps_RC
22834 # Dependencies to place after the objects being linked to create a
22836 postdeps=$lt_postdeps_RC
22838 # The library search path used internally by the compiler when linking
22839 # a shared library.
22840 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22842 # Method to check whether dependent libraries are shared objects.
22843 deplibs_check_method=$lt_deplibs_check_method
22845 # Command to use when deplibs_check_method == file_magic.
22846 file_magic_cmd=$lt_file_magic_cmd
22848 # Flag that allows shared libraries with undefined symbols to be built.
22849 allow_undefined_flag=$lt_allow_undefined_flag_RC
22851 # Flag that forces no undefined symbols.
22852 no_undefined_flag=$lt_no_undefined_flag_RC
22854 # Commands used to finish a libtool library installation in a directory.
22855 finish_cmds=$lt_finish_cmds
22857 # Same as above, but a single script fragment to be evaled but not shown.
22858 finish_eval=$lt_finish_eval
22860 # Take the output of nm and produce a listing of raw symbols and C names.
22861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22863 # Transform the output of nm in a proper C declaration
22864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22866 # Transform the output of nm in a C name address pair
22867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22869 # This is the shared library runtime path variable.
22870 runpath_var=$runpath_var
22872 # This is the shared library path variable.
22873 shlibpath_var=$shlibpath_var
22875 # Is shlibpath searched before the hard-coded library search path?
22876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22878 # How to hardcode a shared library path into an executable.
22879 hardcode_action=$hardcode_action_RC
22881 # Whether we should hardcode library paths into libraries.
22882 hardcode_into_libs=$hardcode_into_libs
22884 # Flag to hardcode \$libdir into a binary during linking.
22885 # This must work even if \$libdir does not exist.
22886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22888 # If ld is used when linking, flag to hardcode \$libdir into
22889 # a binary during linking. This must work even if \$libdir does
22891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22893 # Whether we need a single -rpath flag with a separated argument.
22894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22897 # resulting binary.
22898 hardcode_direct=$hardcode_direct_RC
22900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22901 # resulting binary.
22902 hardcode_minus_L=$hardcode_minus_L_RC
22904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22905 # the resulting binary.
22906 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22908 # Set to yes if building a shared library automatically hardcodes DIR into the library
22909 # and all subsequent libraries and executables linked against it.
22910 hardcode_automatic=$hardcode_automatic_RC
22912 # Variables whose values should be saved in libtool wrapper scripts and
22913 # restored at relink time.
22914 variables_saved_for_relink="$variables_saved_for_relink"
22916 # Whether libtool must link a program against all its dependency libraries.
22917 link_all_deplibs=$link_all_deplibs_RC
22919 # Compile-time system search path for libraries
22920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22922 # Run-time system search path for libraries
22923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22925 # Fix the shell variable \$srcfile for the compiler.
22926 fix_srcfile_path="$fix_srcfile_path_RC"
22928 # Set to yes if exported symbols are required.
22929 always_export_symbols=$always_export_symbols_RC
22931 # The commands to list exported symbols.
22932 export_symbols_cmds=$lt_export_symbols_cmds_RC
22934 # The commands to extract the exported symbol list from a shared archive.
22935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22937 # Symbols that should not be listed in the preloaded symbols.
22938 exclude_expsyms=$lt_exclude_expsyms_RC
22940 # Symbols that must always be exported.
22941 include_expsyms=$lt_include_expsyms_RC
22943 # ### END LIBTOOL TAG CONFIG: $tagname
22949 # If there is no Makefile yet, we rely on a make rule to execute
22950 # `config.status --recheck' to rerun these tests and create the
22951 # libtool script then.
22952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22953 if test -f "$ltmain_in"; then
22954 test -f Makefile && make "$ltmain"
22960 ac_cpp='$CPP $CPPFLAGS'
22961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22970 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22971 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22972 { (exit 1); exit 1; }; }
22976 # Append the new tag name to the list of available tags.
22977 if test -n "$tagname" ; then
22978 available_tags="$available_tags $tagname"
22984 # Now substitute the updated list of available tags.
22985 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22986 mv "${ofile}T" "$ofile"
22990 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22991 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22992 { (exit 1); exit 1; }; }
22998 # This can be used to rebuild libtool when needed
22999 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
23001 # Always use our own libtool.
23002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23004 # Prevent multiple expansion
23027 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
23028 LIBTOOL_MODE_COMPILE='--mode=compile'
23029 LIBTOOL_MODE_INSTALL='--mode=install'
23030 LIBTOOL_MODE_LINK='--mode=link'
23038 LIBTOOL_MODE_COMPILE=
23039 LIBTOOL_MODE_INSTALL=
23045 # File name extension for static archive files, for those few places
23046 # where they are treated differently from dynamic ones.
23059 # Here begins a very long section to determine the system's networking
23060 # capabilities. The order of the tests is signficant.
23066 # Check whether --enable-ipv6 or --disable-ipv6 was given.
23067 if test "${enable_ipv6+set}" = set; then
23068 enableval="$enable_ipv6"
23072 case "$enable_ipv6" in
23074 cat >>confdefs.h <<\_ACEOF
23075 #define WANT_IPV6 1
23084 # We do the IPv6 compilation checking after libtool so that we can put
23085 # the right suffix on the files.
23087 echo "$as_me:$LINENO: checking for IPv6 structures" >&5
23088 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6
23089 cat >conftest.$ac_ext <<_ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23096 #include <sys/types.h>
23097 #include <sys/socket.h>
23098 #include <netinet/in.h>
23102 struct sockaddr_in6 sin6; return (0);
23107 rm -f conftest.$ac_objext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23109 (eval $ac_compile) 2>conftest.er1
23111 grep -v '^ *+' conftest.er1 >conftest.err
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } &&
23116 { ac_try='test -z "$ac_c_werror_flag"
23117 || test ! -s conftest.err'
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; } &&
23123 { ac_try='test -s conftest.$ac_objext'
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; }; then
23129 echo "$as_me:$LINENO: result: yes" >&5
23130 echo "${ECHO_T}yes" >&6
23133 echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.$ac_ext >&5
23136 echo "$as_me:$LINENO: result: no" >&5
23137 echo "${ECHO_T}no" >&6
23140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23143 # See whether IPv6 support is provided via a Kame add-on.
23144 # This is done before other IPv6 linking tests to LIBS is properly set.
23146 echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
23147 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6
23149 # Check whether --with-kame or --without-kame was given.
23150 if test "${with_kame+set}" = set; then
23151 withval="$with_kame"
23152 use_kame="$withval"
23157 case "$use_kame" in
23161 kame_path=/usr/local/v6
23164 kame_path="$use_kame"
23168 case "$use_kame" in
23170 echo "$as_me:$LINENO: result: no" >&5
23171 echo "${ECHO_T}no" >&6
23174 if test -f $kame_path/lib/libinet6.a; then
23175 echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
23176 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6
23177 LIBS="-L$kame_path/lib -linet6 $LIBS"
23179 { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
23181 Please choose the proper path with the following command:
23183 configure --with-kame=PATH
23185 echo "$as_me: error: $kame_path/lib/libinet6.a not found.
23187 Please choose the proper path with the following command:
23189 configure --with-kame=PATH
23191 { (exit 1); exit 1; }; }
23197 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
23198 # Including it on Kame-using platforms is very bad, though, because
23199 # Kame uses #error against direct inclusion. So include it on only
23200 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
23201 # This is done before the in6_pktinfo check because that's what
23202 # netinet6/in6.h is needed for.
23207 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
23208 isc_netinet6in6_hack="#include <netinet6/in6.h>"
23211 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
23212 isc_netinet6in6_hack=""
23218 # This is similar to the netinet6/in6.h issue.
23222 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
23223 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
23224 isc_netinetin6_hack="#include <netinet/in6.h>"
23227 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
23228 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
23229 isc_netinetin6_hack=""
23234 # Now delve deeper into the suitability of the IPv6 support.
23236 case "$found_ipv6" in
23238 HAS_INET6_STRUCTS="#define HAS_INET6_STRUCTS 1"
23240 echo "$as_me:$LINENO: checking for in6_addr" >&5
23241 echo $ECHO_N "checking for in6_addr... $ECHO_C" >&6
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23249 #include <sys/types.h>
23250 #include <sys/socket.h>
23251 #include <netinet/in.h>
23252 $isc_netinetin6_hack
23253 $isc_netinet6in6_hack
23258 struct in6_addr in6; return (0);
23263 rm -f conftest.$ac_objext
23264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23265 (eval $ac_compile) 2>conftest.er1
23267 grep -v '^ *+' conftest.er1 >conftest.err
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } &&
23272 { ac_try='test -z "$ac_c_werror_flag"
23273 || test ! -s conftest.err'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest.$ac_objext'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
23285 echo "$as_me:$LINENO: result: yes" >&5
23286 echo "${ECHO_T}yes" >&6
23287 HAS_IN_ADDR6="#undef HAS_IN_ADDR6"
23288 isc_in_addr6_hack=""
23290 echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 echo "$as_me:$LINENO: result: no" >&5
23294 echo "${ECHO_T}no" >&6
23295 HAS_IN_ADDR6="#define HAS_IN_ADDR6 1"
23296 isc_in_addr6_hack="#define in6_addr in_addr6"
23298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23300 echo "$as_me:$LINENO: checking for in6addr_any" >&5
23301 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23309 #include <sys/types.h>
23310 #include <sys/socket.h>
23311 #include <netinet/in.h>
23312 $isc_netinetin6_hack
23313 $isc_netinet6in6_hack
23319 struct in6_addr in6; in6 = in6addr_any; return (0);
23324 rm -f conftest.$ac_objext conftest$ac_exeext
23325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23326 (eval $ac_link) 2>conftest.er1
23328 grep -v '^ *+' conftest.er1 >conftest.err
23330 cat conftest.err >&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } &&
23333 { ac_try='test -z "$ac_c_werror_flag"
23334 || test ! -s conftest.err'
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; } &&
23340 { ac_try='test -s conftest$ac_exeext'
23341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342 (eval $ac_try) 2>&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); }; }; then
23346 echo "$as_me:$LINENO: result: yes" >&5
23347 echo "${ECHO_T}yes" >&6
23348 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY"
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23353 echo "$as_me:$LINENO: result: no" >&5
23354 echo "${ECHO_T}no" >&6
23355 NEED_IN6ADDR_ANY="#define NEED_IN6ADDR_ANY 1"
23357 rm -f conftest.err conftest.$ac_objext \
23358 conftest$ac_exeext conftest.$ac_ext
23360 echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
23361 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6
23362 cat >conftest.$ac_ext <<_ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23369 #include <sys/types.h>
23370 #include <sys/socket.h>
23371 #include <netinet/in.h>
23372 $isc_netinetin6_hack
23373 $isc_netinet6in6_hack
23378 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
23383 rm -f conftest.$ac_objext
23384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23385 (eval $ac_compile) 2>conftest.er1
23387 grep -v '^ *+' conftest.er1 >conftest.err
23389 cat conftest.err >&5
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); } &&
23392 { ac_try='test -z "$ac_c_werror_flag"
23393 || test ! -s conftest.err'
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; } &&
23399 { ac_try='test -s conftest.$ac_objext'
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; }; then
23405 echo "$as_me:$LINENO: result: yes" >&5
23406 echo "${ECHO_T}yes" >&6
23407 result="#define HAVE_SIN6_SCOPE_ID 1"
23409 echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23412 echo "$as_me:$LINENO: result: no" >&5
23413 echo "${ECHO_T}no" >&6
23414 result="#undef HAVE_SIN6_SCOPE_ID"
23416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23417 HAVE_SIN6_SCOPE_ID="$result"
23419 echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
23420 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
23421 cat >conftest.$ac_ext <<_ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23428 #include <sys/types.h>
23429 #include <sys/socket.h>
23430 #include <netinet/in.h>
23431 $isc_netinetin6_hack
23432 $isc_netinet6in6_hack
23437 struct in6_pktinfo xyzzy; return (0);
23442 rm -f conftest.$ac_objext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23444 (eval $ac_compile) 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -z "$ac_c_werror_flag"
23452 || test ! -s conftest.err'
23453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454 (eval $ac_try) 2>&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); }; } &&
23458 { ac_try='test -s conftest.$ac_objext'
23459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460 (eval $ac_try) 2>&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 echo "$as_me:$LINENO: result: yes" >&5
23465 echo "${ECHO_T}yes" >&6
23466 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23471 echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
23472 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6
23473 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23477 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
23478 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
23479 cat >conftest.$ac_ext <<_ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23486 #include <sys/types.h>
23487 #include <sys/socket.h>
23488 #include <netinet/in.h>
23489 $isc_netinetin6_hack
23490 $isc_netinet6in6_hack
23495 struct sockaddr_storage xyzzy; return (0);
23500 rm -f conftest.$ac_objext
23501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23502 (eval $ac_compile) 2>conftest.er1
23504 grep -v '^ *+' conftest.er1 >conftest.err
23506 cat conftest.err >&5
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); } &&
23509 { ac_try='test -z "$ac_c_werror_flag"
23510 || test ! -s conftest.err'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; } &&
23516 { ac_try='test -s conftest.$ac_objext'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 echo "$as_me:$LINENO: result: yes" >&5
23523 echo "${ECHO_T}yes" >&6
23524 HAVE_SOCKADDR_STORAGE="#define HAVE_SOCKADDR_STORAGE 1"
23526 echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23529 echo "$as_me:$LINENO: result: no" >&5
23530 echo "${ECHO_T}no" >&6
23531 HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
23533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23536 HAS_INET6_STRUCTS="#undef HAS_INET6_STRUCTS"
23537 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY"
23538 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23539 HAVE_SIN6_SCOPE_ID="#define HAVE_SIN6_SCOPE_ID 1"
23540 HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
23541 ISC_IPV6_H="ipv6.h"
23542 ISC_IPV6_O="ipv6.$O"
23543 ISC_ISCIPV6_O="unix/ipv6.$O"
23544 ISC_IPV6_C="ipv6.c"
23563 # Check for network functions that are often missing. We do this
23564 # after the libtool checking, so we can put the right suffix on
23565 # the files. It also needs to come after checking for a Kame add-on,
23566 # which provides some (all?) of the desired functions.
23568 echo "$as_me:$LINENO: checking for inet_ntop" >&5
23569 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
23570 cat >conftest.$ac_ext <<_ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23577 #include <sys/types.h>
23578 #include <netinet/in.h>
23579 #include <arpa/inet.h>
23583 inet_ntop(0, 0, 0, 0); return (0);
23588 rm -f conftest.$ac_objext conftest$ac_exeext
23589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23590 (eval $ac_link) 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } &&
23597 { ac_try='test -z "$ac_c_werror_flag"
23598 || test ! -s conftest.err'
23599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600 (eval $ac_try) 2>&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); }; } &&
23604 { ac_try='test -s conftest$ac_exeext'
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; }; then
23610 echo "$as_me:$LINENO: result: yes" >&5
23611 echo "${ECHO_T}yes" >&6
23612 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
23614 echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23617 echo "$as_me:$LINENO: result: no" >&5
23618 echo "${ECHO_T}no" >&6
23619 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
23620 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
23621 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
23623 rm -f conftest.err conftest.$ac_objext \
23624 conftest$ac_exeext conftest.$ac_ext
23625 echo "$as_me:$LINENO: checking for inet_pton" >&5
23626 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
23627 cat >conftest.$ac_ext <<_ACEOF
23630 cat confdefs.h >>conftest.$ac_ext
23631 cat >>conftest.$ac_ext <<_ACEOF
23632 /* end confdefs.h. */
23634 #include <sys/types.h>
23635 #include <netinet/in.h>
23636 #include <arpa/inet.h>
23640 inet_pton(0, 0, 0); return (0);
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } &&
23654 { ac_try='test -z "$ac_c_werror_flag"
23655 || test ! -s conftest.err'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; } &&
23661 { ac_try='test -s conftest$ac_exeext'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
23667 echo "$as_me:$LINENO: result: yes" >&5
23668 echo "${ECHO_T}yes" >&6
23669 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
23671 echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23674 echo "$as_me:$LINENO: result: no" >&5
23675 echo "${ECHO_T}no" >&6
23676 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
23677 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
23678 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
23680 rm -f conftest.err conftest.$ac_objext \
23681 conftest$ac_exeext conftest.$ac_ext
23682 echo "$as_me:$LINENO: checking for inet_aton" >&5
23683 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
23684 cat >conftest.$ac_ext <<_ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23691 #include <sys/types.h>
23692 #include <netinet/in.h>
23693 #include <arpa/inet.h>
23697 struct in_addr in; inet_aton(0, &in); return (0);
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23704 (eval $ac_link) 2>conftest.er1
23706 grep -v '^ *+' conftest.er1 >conftest.err
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } &&
23711 { ac_try='test -z "$ac_c_werror_flag"
23712 || test ! -s conftest.err'
23713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714 (eval $ac_try) 2>&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); }; } &&
23718 { ac_try='test -s conftest$ac_exeext'
23719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720 (eval $ac_try) 2>&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); }; }; then
23724 echo "$as_me:$LINENO: result: yes" >&5
23725 echo "${ECHO_T}yes" >&6
23726 ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23731 echo "$as_me:$LINENO: result: no" >&5
23732 echo "${ECHO_T}no" >&6
23733 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
23734 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
23735 ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
23737 rm -f conftest.err conftest.$ac_objext \
23738 conftest$ac_exeext conftest.$ac_ext
23745 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
23749 # Turn on 4.4BSD style sa_len support.
23750 cat >>confdefs.h <<\_ACEOF
23751 #define _SOCKADDR_LEN 1
23757 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
23758 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
23759 cat >conftest.$ac_ext <<_ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23766 #include <sys/types.h>
23767 #include <sys/socket.h>
23771 struct sockaddr sa; sa.sa_len = 0; return (0);
23776 rm -f conftest.$ac_objext
23777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23778 (eval $ac_compile) 2>conftest.er1
23780 grep -v '^ *+' conftest.er1 >conftest.err
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } &&
23785 { ac_try='test -z "$ac_c_werror_flag"
23786 || test ! -s conftest.err'
23787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788 (eval $ac_try) 2>&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); }; } &&
23792 { ac_try='test -s conftest.$ac_objext'
23793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794 (eval $ac_try) 2>&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); }; }; then
23798 echo "$as_me:$LINENO: result: yes" >&5
23799 echo "${ECHO_T}yes" >&6
23800 HAVE_SA_LEN="#define HAVE_SA_LEN 1"
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23805 echo "$as_me:$LINENO: result: no" >&5
23806 echo "${ECHO_T}no" >&6
23807 HAVE_SA_LEN="#undef HAVE_SA_LEN"
23809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23812 # HAVE_MINIMUM_IFREQ
23815 *-bsdi2345*) have_minimum_ifreq=yes;;
23816 *-darwin*) have_minimum_ifreq=yes;;
23817 *-freebsd*) have_minimum_ifreq=yes;;
23818 *-lynxos*) have_minimum_ifreq=yes;;
23819 *-netbsd*) have_minimum_ifreq=yes;;
23820 *-next*) have_minimum_ifreq=yes;;
23821 *-openbsd*) have_minimum_ifreq=yes;;
23822 *-rhapsody*) have_minimum_ifreq=yes;;
23825 case "$have_minimum_ifreq" in
23827 HAVE_MINIMUM_IFREQ="#define HAVE_MINIMUM_IFREQ 1";;
23829 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
23831 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
23836 PORT_DIR=port/unknown
23837 SOLARIS_BITTYPES="#undef NEED_SOLARIS_BITTYPES"
23838 BSD_COMP="#undef BSD_COMP"
23839 USE_FIONBIO_IOCTL="#undef USE_FIONBIO_IOCTL"
23840 PORT_NONBLOCK="#define PORT_NONBLOCK O_NONBLOCK"
23841 HAVE_MD5="#undef HAVE_MD5"
23842 USE_POLL="#undef HAVE_POLL"
23843 SOLARIS2="#undef SOLARIS2"
23845 *aix3.2*) PORT_DIR="port/aix32";;
23846 *aix4*) PORT_DIR="port/aix4";;
23847 *aix5*) PORT_DIR="port/aix5";;
23848 *aux3*) PORT_DIR="port/aux3";;
23849 *-bsdi2*) PORT_DIR="port/bsdos2";;
23850 *-bsdi*) PORT_DIR="port/bsdos";;
23852 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
23853 PORT_DIR="port/cygwin";;
23854 *-darwin*) PORT_DIR="port/darwin";;
23855 *-osf*) PORT_DIR="port/decunix";;
23856 *-freebsd*) PORT_DIR="port/freebsd";;
23857 *-hpux9*) PORT_DIR="port/hpux9";;
23858 *-hpux10*) PORT_DIR="port/hpux10";;
23859 *-hpux11*) PORT_DIR="port/hpux";;
23860 *-irix*) PORT_DIR="port/irix";;
23861 *-linux*) PORT_DIR="port/linux";;
23862 *-lynxos*) PORT_DIR="port/lynxos";;
23863 *-mpe*) PORT_DIR="port/mpe";;
23864 *-netbsd*) PORT_DIR="port/netbsd";;
23865 *-next*) PORT_DIR="port/next";;
23866 *-openbsd*) PORT_DIR="port/openbsd";;
23867 *-qnx*) PORT_DIR="port/qnx";;
23868 *-rhapsody*) PORT_DIR="port/rhapsody";;
23870 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
23871 PORT_DIR="port/sunos";;
23872 *-solaris2.[01234])
23873 BSD_COMP="#define BSD_COMP 1"
23874 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
23875 USE_FIONBIO_IOCTL="#define USE_FIONBIO_IOCTL 1"
23876 SOLARIS2="#define SOLARIS2 1"
23877 PORT_DIR="port/solaris";;
23879 BSD_COMP="#define BSD_COMP 1"
23880 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
23881 SOLARIS2="#define SOLARIS2 1"
23882 PORT_DIR="port/solaris";;
23884 BSD_COMP="#define BSD_COMP 1"
23885 SOLARIS2="#define SOLARIS2 1"
23886 PORT_DIR="port/solaris";;
23887 *-solaris2*) BSD_COMP="#define BSD_COMP 1"
23888 USE_POLL="#define USE_POLL 1"
23889 HAVE_MD5="#define HAVE_MD5 1"
23890 SOLARIS2="#define SOLARIS2 1"
23891 PORT_DIR="port/solaris";;
23892 *-ultrix*) PORT_DIR="port/ultrix";;
23893 *-sco-sysv*uw2.0*) PORT_DIR="port/unixware20";;
23894 *-sco-sysv*uw2.1.2*) PORT_DIR="port/unixware212";;
23895 *-sco-sysv*uw7*) PORT_DIR="port/unixware7";;
23906 PORT_INCLUDE=${PORT_DIR}/include
23910 # Look for a 4.4BSD or 4.3BSD struct msghdr
23912 echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5
23913 echo $ECHO_N "checking for struct msghdr flavor... $ECHO_C" >&6
23914 cat >conftest.$ac_ext <<_ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h. */
23921 #include <sys/types.h>
23922 #include <sys/socket.h>
23926 struct msghdr msg; msg.msg_flags = 0; return (0);
23931 rm -f conftest.$ac_objext
23932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23933 (eval $ac_compile) 2>conftest.er1
23935 grep -v '^ *+' conftest.er1 >conftest.err
23937 cat conftest.err >&5
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); } &&
23940 { ac_try='test -z "$ac_c_werror_flag"
23941 || test ! -s conftest.err'
23942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23943 (eval $ac_try) 2>&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); }; } &&
23947 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23953 echo "$as_me:$LINENO: result: 4.4BSD" >&5
23954 echo "${ECHO_T}4.4BSD" >&6
23955 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
23957 echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23960 echo "$as_me:$LINENO: result: 4.3BSD" >&5
23961 echo "${ECHO_T}4.3BSD" >&6
23962 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
23964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23968 # Look for in_port_t.
23970 echo "$as_me:$LINENO: checking for type in_port_t" >&5
23971 echo $ECHO_N "checking for type in_port_t... $ECHO_C" >&6
23972 cat >conftest.$ac_ext <<_ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h. */
23979 #include <sys/types.h>
23980 #include <netinet/in.h>
23984 in_port_t port = 25; return (0);
23989 rm -f conftest.$ac_objext
23990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23991 (eval $ac_compile) 2>conftest.er1
23993 grep -v '^ *+' conftest.er1 >conftest.err
23995 cat conftest.err >&5
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); } &&
23998 { ac_try='test -z "$ac_c_werror_flag"
23999 || test ! -s conftest.err'
24000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001 (eval $ac_try) 2>&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); }; } &&
24005 { ac_try='test -s conftest.$ac_objext'
24006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007 (eval $ac_try) 2>&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); }; }; then
24011 echo "$as_me:$LINENO: result: yes" >&5
24012 echo "${ECHO_T}yes" >&6
24013 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24018 echo "$as_me:$LINENO: result: no" >&5
24019 echo "${ECHO_T}no" >&6
24020 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
24022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24026 # Check for addrinfo
24028 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24029 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
24030 cat >conftest.$ac_ext <<_ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24041 struct addrinfo a; return (0);
24046 rm -f conftest.$ac_objext
24047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24048 (eval $ac_compile) 2>conftest.er1
24050 grep -v '^ *+' conftest.er1 >conftest.err
24052 cat conftest.err >&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); } &&
24055 { ac_try='test -z "$ac_c_werror_flag"
24056 || test ! -s conftest.err'
24057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058 (eval $ac_try) 2>&5
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; } &&
24062 { ac_try='test -s conftest.$ac_objext'
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; }; then
24068 echo "$as_me:$LINENO: result: yes" >&5
24069 echo "${ECHO_T}yes" >&6
24070 cat >>confdefs.h <<\_ACEOF
24071 #define HAVE_ADDRINFO 1
24075 echo "$as_me: failed program was:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24078 echo "$as_me:$LINENO: result: no" >&5
24079 echo "${ECHO_T}no" >&6
24081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24083 echo "$as_me:$LINENO: checking for int sethostent" >&5
24084 echo $ECHO_N "checking for int sethostent... $ECHO_C" >&6
24085 cat >conftest.$ac_ext <<_ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24096 int i = sethostent(0); return(0);
24101 rm -f conftest.$ac_objext
24102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24103 (eval $ac_compile) 2>conftest.er1
24105 grep -v '^ *+' conftest.er1 >conftest.err
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } &&
24110 { ac_try='test -z "$ac_c_werror_flag"
24111 || test ! -s conftest.err'
24112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113 (eval $ac_try) 2>&5
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); }; } &&
24117 { ac_try='test -s conftest.$ac_objext'
24118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119 (eval $ac_try) 2>&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); }; }; then
24123 echo "$as_me:$LINENO: result: yes" >&5
24124 echo "${ECHO_T}yes" >&6
24126 echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24129 echo "$as_me:$LINENO: result: no" >&5
24130 echo "${ECHO_T}no" >&6
24132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24134 echo "$as_me:$LINENO: checking for int endhostent" >&5
24135 echo $ECHO_N "checking for int endhostent... $ECHO_C" >&6
24136 cat >conftest.$ac_ext <<_ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24147 int i = endhostent(); return(0);
24152 rm -f conftest.$ac_objext
24153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24154 (eval $ac_compile) 2>conftest.er1
24156 grep -v '^ *+' conftest.er1 >conftest.err
24158 cat conftest.err >&5
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); } &&
24161 { ac_try='test -z "$ac_c_werror_flag"
24162 || test ! -s conftest.err'
24163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164 (eval $ac_try) 2>&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); }; } &&
24168 { ac_try='test -s conftest.$ac_objext'
24169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170 (eval $ac_try) 2>&5
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); }; }; then
24174 echo "$as_me:$LINENO: result: yes" >&5
24175 echo "${ECHO_T}yes" >&6
24176 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24181 echo "$as_me:$LINENO: result: no" >&5
24182 echo "${ECHO_T}no" >&6
24183 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
24185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24188 echo "$as_me:$LINENO: checking for int setnetent" >&5
24189 echo $ECHO_N "checking for int setnetent... $ECHO_C" >&6
24190 cat >conftest.$ac_ext <<_ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h. */
24201 int i = setnetent(0); return(0);
24206 rm -f conftest.$ac_objext
24207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24208 (eval $ac_compile) 2>conftest.er1
24210 grep -v '^ *+' conftest.er1 >conftest.err
24212 cat conftest.err >&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); } &&
24215 { ac_try='test -z "$ac_c_werror_flag"
24216 || test ! -s conftest.err'
24217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24218 (eval $ac_try) 2>&5
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); }; } &&
24222 { ac_try='test -s conftest.$ac_objext'
24223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224 (eval $ac_try) 2>&5
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); }; }; then
24228 echo "$as_me:$LINENO: result: yes" >&5
24229 echo "${ECHO_T}yes" >&6
24230 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
24232 echo "$as_me: failed program was:" >&5
24233 sed 's/^/| /' conftest.$ac_ext >&5
24235 echo "$as_me:$LINENO: result: no" >&5
24236 echo "${ECHO_T}no" >&6
24237 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
24239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24242 echo "$as_me:$LINENO: checking for int endnetent" >&5
24243 echo $ECHO_N "checking for int endnetent... $ECHO_C" >&6
24244 cat >conftest.$ac_ext <<_ACEOF
24247 cat confdefs.h >>conftest.$ac_ext
24248 cat >>conftest.$ac_ext <<_ACEOF
24249 /* end confdefs.h. */
24255 int i = endnetent(); return(0);
24260 rm -f conftest.$ac_objext
24261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24262 (eval $ac_compile) 2>conftest.er1
24264 grep -v '^ *+' conftest.er1 >conftest.err
24266 cat conftest.err >&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } &&
24269 { ac_try='test -z "$ac_c_werror_flag"
24270 || test ! -s conftest.err'
24271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272 (eval $ac_try) 2>&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); }; } &&
24276 { ac_try='test -s conftest.$ac_objext'
24277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24278 (eval $ac_try) 2>&5
24280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281 (exit $ac_status); }; }; then
24282 echo "$as_me:$LINENO: result: yes" >&5
24283 echo "${ECHO_T}yes" >&6
24284 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
24286 echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24289 echo "$as_me:$LINENO: result: no" >&5
24290 echo "${ECHO_T}no" >&6
24291 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
24293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24296 echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5
24297 echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6
24298 cat >conftest.$ac_ext <<_ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h. */
24306 struct hostent *gethostbyaddr(const void *, size_t, int);
24315 rm -f conftest.$ac_objext
24316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24317 (eval $ac_compile) 2>conftest.er1
24319 grep -v '^ *+' conftest.er1 >conftest.err
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } &&
24324 { ac_try='test -z "$ac_c_werror_flag"
24325 || test ! -s conftest.err'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest.$ac_objext'
24332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333 (eval $ac_try) 2>&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; }; then
24337 echo "$as_me:$LINENO: result: yes" >&5
24338 echo "${ECHO_T}yes" >&6
24339 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
24341 echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24344 echo "$as_me:$LINENO: result: no" >&5
24345 echo "${ECHO_T}no" >&6
24346 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
24348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24351 echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
24352 echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6
24353 cat >conftest.$ac_ext <<_ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h. */
24364 h_errno = 1; return(0);
24369 rm -f conftest.$ac_objext
24370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24371 (eval $ac_compile) 2>conftest.er1
24373 grep -v '^ *+' conftest.er1 >conftest.err
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } &&
24378 { ac_try='test -z "$ac_c_werror_flag"
24379 || test ! -s conftest.err'
24380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381 (eval $ac_try) 2>&5
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; } &&
24385 { ac_try='test -s conftest.$ac_objext'
24386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387 (eval $ac_try) 2>&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); }; }; then
24391 echo "$as_me:$LINENO: result: yes" >&5
24392 echo "${ECHO_T}yes" >&6
24393 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
24395 echo "$as_me: failed program was:" >&5
24396 sed 's/^/| /' conftest.$ac_ext >&5
24398 echo "$as_me:$LINENO: result: no" >&5
24399 echo "${ECHO_T}no" >&6
24400 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
24402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24405 echo "$as_me:$LINENO: checking for getipnodebyname" >&5
24406 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
24407 if test "${ac_cv_func_getipnodebyname+set}" = set; then
24408 echo $ECHO_N "(cached) $ECHO_C" >&6
24410 cat >conftest.$ac_ext <<_ACEOF
24413 cat confdefs.h >>conftest.$ac_ext
24414 cat >>conftest.$ac_ext <<_ACEOF
24415 /* end confdefs.h. */
24416 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
24417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24418 #define getipnodebyname innocuous_getipnodebyname
24420 /* System header to define __stub macros and hopefully few prototypes,
24421 which can conflict with char getipnodebyname (); below.
24422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24423 <limits.h> exists even on freestanding compilers. */
24426 # include <limits.h>
24428 # include <assert.h>
24431 #undef getipnodebyname
24433 /* Override any gcc2 internal prototype to avoid an error. */
24438 /* We use char because int might match the return type of a gcc2
24439 builtin and then its argument prototype would still apply. */
24440 char getipnodebyname ();
24441 /* The GNU C library defines this for functions which it implements
24442 to always fail with ENOSYS. Some functions are actually named
24443 something starting with __ and the normal name is an alias. */
24444 #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
24447 char (*f) () = getipnodebyname;
24456 return f != getipnodebyname;
24461 rm -f conftest.$ac_objext conftest$ac_exeext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24463 (eval $ac_link) 2>conftest.er1
24465 grep -v '^ *+' conftest.er1 >conftest.err
24467 cat conftest.err >&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } &&
24470 { ac_try='test -z "$ac_c_werror_flag"
24471 || test ! -s conftest.err'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
24477 { ac_try='test -s conftest$ac_exeext'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 ac_cv_func_getipnodebyname=yes
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24488 ac_cv_func_getipnodebyname=no
24490 rm -f conftest.err conftest.$ac_objext \
24491 conftest$ac_exeext conftest.$ac_ext
24493 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
24494 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
24495 if test $ac_cv_func_getipnodebyname = yes; then
24496 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
24498 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
24501 echo "$as_me:$LINENO: checking for getnameinfo" >&5
24502 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
24503 if test "${ac_cv_func_getnameinfo+set}" = set; then
24504 echo $ECHO_N "(cached) $ECHO_C" >&6
24506 cat >conftest.$ac_ext <<_ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24512 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
24513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24514 #define getnameinfo innocuous_getnameinfo
24516 /* System header to define __stub macros and hopefully few prototypes,
24517 which can conflict with char getnameinfo (); below.
24518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24519 <limits.h> exists even on freestanding compilers. */
24522 # include <limits.h>
24524 # include <assert.h>
24529 /* Override any gcc2 internal prototype to avoid an error. */
24534 /* We use char because int might match the return type of a gcc2
24535 builtin and then its argument prototype would still apply. */
24536 char getnameinfo ();
24537 /* The GNU C library defines this for functions which it implements
24538 to always fail with ENOSYS. Some functions are actually named
24539 something starting with __ and the normal name is an alias. */
24540 #if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
24543 char (*f) () = getnameinfo;
24552 return f != getnameinfo;
24557 rm -f conftest.$ac_objext conftest$ac_exeext
24558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24559 (eval $ac_link) 2>conftest.er1
24561 grep -v '^ *+' conftest.er1 >conftest.err
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } &&
24566 { ac_try='test -z "$ac_c_werror_flag"
24567 || test ! -s conftest.err'
24568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24569 (eval $ac_try) 2>&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); }; } &&
24573 { ac_try='test -s conftest$ac_exeext'
24574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24575 (eval $ac_try) 2>&5
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); }; }; then
24579 ac_cv_func_getnameinfo=yes
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24584 ac_cv_func_getnameinfo=no
24586 rm -f conftest.err conftest.$ac_objext \
24587 conftest$ac_exeext conftest.$ac_ext
24589 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24590 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6
24591 if test $ac_cv_func_getnameinfo = yes; then
24592 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
24594 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
24597 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
24598 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
24599 if test "${ac_cv_func_getaddrinfo+set}" = set; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
24602 cat >conftest.$ac_ext <<_ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h. */
24608 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
24609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24610 #define getaddrinfo innocuous_getaddrinfo
24612 /* System header to define __stub macros and hopefully few prototypes,
24613 which can conflict with char getaddrinfo (); below.
24614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24615 <limits.h> exists even on freestanding compilers. */
24618 # include <limits.h>
24620 # include <assert.h>
24625 /* Override any gcc2 internal prototype to avoid an error. */
24630 /* We use char because int might match the return type of a gcc2
24631 builtin and then its argument prototype would still apply. */
24632 char getaddrinfo ();
24633 /* The GNU C library defines this for functions which it implements
24634 to always fail with ENOSYS. Some functions are actually named
24635 something starting with __ and the normal name is an alias. */
24636 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
24639 char (*f) () = getaddrinfo;
24648 return f != getaddrinfo;
24653 rm -f conftest.$ac_objext conftest$ac_exeext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655 (eval $ac_link) 2>conftest.er1
24657 grep -v '^ *+' conftest.er1 >conftest.err
24659 cat conftest.err >&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
24662 { ac_try='test -z "$ac_c_werror_flag"
24663 || test ! -s conftest.err'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24675 ac_cv_func_getaddrinfo=yes
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24680 ac_cv_func_getaddrinfo=no
24682 rm -f conftest.err conftest.$ac_objext \
24683 conftest$ac_exeext conftest.$ac_ext
24685 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
24686 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
24687 if test $ac_cv_func_getaddrinfo = yes; then
24688 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
24689 cat >>confdefs.h <<\_ACEOF
24690 #define HAVE_GETADDRINFO 1
24694 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
24697 echo "$as_me:$LINENO: checking for gai_strerror" >&5
24698 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
24699 if test "${ac_cv_func_gai_strerror+set}" = set; then
24700 echo $ECHO_N "(cached) $ECHO_C" >&6
24702 cat >conftest.$ac_ext <<_ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24708 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
24709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24710 #define gai_strerror innocuous_gai_strerror
24712 /* System header to define __stub macros and hopefully few prototypes,
24713 which can conflict with char gai_strerror (); below.
24714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24715 <limits.h> exists even on freestanding compilers. */
24718 # include <limits.h>
24720 # include <assert.h>
24723 #undef gai_strerror
24725 /* Override any gcc2 internal prototype to avoid an error. */
24730 /* We use char because int might match the return type of a gcc2
24731 builtin and then its argument prototype would still apply. */
24732 char gai_strerror ();
24733 /* The GNU C library defines this for functions which it implements
24734 to always fail with ENOSYS. Some functions are actually named
24735 something starting with __ and the normal name is an alias. */
24736 #if defined (__stub_gai_strerror) || defined (__stub___gai_strerror)
24739 char (*f) () = gai_strerror;
24748 return f != gai_strerror;
24753 rm -f conftest.$ac_objext conftest$ac_exeext
24754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24755 (eval $ac_link) 2>conftest.er1
24757 grep -v '^ *+' conftest.er1 >conftest.err
24759 cat conftest.err >&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } &&
24762 { ac_try='test -z "$ac_c_werror_flag"
24763 || test ! -s conftest.err'
24764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765 (eval $ac_try) 2>&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); }; } &&
24769 { ac_try='test -s conftest$ac_exeext'
24770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24771 (eval $ac_try) 2>&5
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); }; }; then
24775 ac_cv_func_gai_strerror=yes
24777 echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24780 ac_cv_func_gai_strerror=no
24782 rm -f conftest.err conftest.$ac_objext \
24783 conftest$ac_exeext conftest.$ac_ext
24785 echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
24786 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6
24787 if test $ac_cv_func_gai_strerror = yes; then
24788 cat >>confdefs.h <<\_ACEOF
24789 #define HAVE_GAISTRERROR 1
24797 echo "$as_me:$LINENO: checking for pselect" >&5
24798 echo $ECHO_N "checking for pselect... $ECHO_C" >&6
24799 if test "${ac_cv_func_pselect+set}" = set; then
24800 echo $ECHO_N "(cached) $ECHO_C" >&6
24802 cat >conftest.$ac_ext <<_ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h. */
24808 /* Define pselect to an innocuous variant, in case <limits.h> declares pselect.
24809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24810 #define pselect innocuous_pselect
24812 /* System header to define __stub macros and hopefully few prototypes,
24813 which can conflict with char pselect (); below.
24814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24815 <limits.h> exists even on freestanding compilers. */
24818 # include <limits.h>
24820 # include <assert.h>
24825 /* Override any gcc2 internal prototype to avoid an error. */
24830 /* We use char because int might match the return type of a gcc2
24831 builtin and then its argument prototype would still apply. */
24833 /* The GNU C library defines this for functions which it implements
24834 to always fail with ENOSYS. Some functions are actually named
24835 something starting with __ and the normal name is an alias. */
24836 #if defined (__stub_pselect) || defined (__stub___pselect)
24839 char (*f) () = pselect;
24848 return f != pselect;
24853 rm -f conftest.$ac_objext conftest$ac_exeext
24854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24855 (eval $ac_link) 2>conftest.er1
24857 grep -v '^ *+' conftest.er1 >conftest.err
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } &&
24862 { ac_try='test -z "$ac_c_werror_flag"
24863 || test ! -s conftest.err'
24864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; } &&
24869 { ac_try='test -s conftest$ac_exeext'
24870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 ac_cv_func_pselect=yes
24877 echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24880 ac_cv_func_pselect=no
24882 rm -f conftest.err conftest.$ac_objext \
24883 conftest$ac_exeext conftest.$ac_ext
24885 echo "$as_me:$LINENO: result: $ac_cv_func_pselect" >&5
24886 echo "${ECHO_T}$ac_cv_func_pselect" >&6
24887 if test $ac_cv_func_pselect = yes; then
24888 NEED_PSELECT="#undef NEED_PSELECT"
24890 NEED_PSELECT="#define NEED_PSELECT"
24894 echo "$as_me:$LINENO: checking for gettimeofday" >&5
24895 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
24896 if test "${ac_cv_func_gettimeofday+set}" = set; then
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24899 cat >conftest.$ac_ext <<_ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24905 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
24906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24907 #define gettimeofday innocuous_gettimeofday
24909 /* System header to define __stub macros and hopefully few prototypes,
24910 which can conflict with char gettimeofday (); below.
24911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24912 <limits.h> exists even on freestanding compilers. */
24915 # include <limits.h>
24917 # include <assert.h>
24920 #undef gettimeofday
24922 /* Override any gcc2 internal prototype to avoid an error. */
24927 /* We use char because int might match the return type of a gcc2
24928 builtin and then its argument prototype would still apply. */
24929 char gettimeofday ();
24930 /* The GNU C library defines this for functions which it implements
24931 to always fail with ENOSYS. Some functions are actually named
24932 something starting with __ and the normal name is an alias. */
24933 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
24936 char (*f) () = gettimeofday;
24945 return f != gettimeofday;
24950 rm -f conftest.$ac_objext conftest$ac_exeext
24951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24952 (eval $ac_link) 2>conftest.er1
24954 grep -v '^ *+' conftest.er1 >conftest.err
24956 cat conftest.err >&5
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); } &&
24959 { ac_try='test -z "$ac_c_werror_flag"
24960 || test ! -s conftest.err'
24961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24962 (eval $ac_try) 2>&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); }; } &&
24966 { ac_try='test -s conftest$ac_exeext'
24967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968 (eval $ac_try) 2>&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; }; then
24972 ac_cv_func_gettimeofday=yes
24974 echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24977 ac_cv_func_gettimeofday=no
24979 rm -f conftest.err conftest.$ac_objext \
24980 conftest$ac_exeext conftest.$ac_ext
24982 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
24983 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
24984 if test $ac_cv_func_gettimeofday = yes; then
24985 NEED_GETTIMEOFDAY="#undef NEED_GETTIMEOFDAY"
24987 NEED_GETTIMEOFDAY="#define NEED_GETTIMEOFDAY 1"
24991 echo "$as_me:$LINENO: checking for strndup" >&5
24992 echo $ECHO_N "checking for strndup... $ECHO_C" >&6
24993 if test "${ac_cv_func_strndup+set}" = set; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24996 cat >conftest.$ac_ext <<_ACEOF
24999 cat confdefs.h >>conftest.$ac_ext
25000 cat >>conftest.$ac_ext <<_ACEOF
25001 /* end confdefs.h. */
25002 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
25003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25004 #define strndup innocuous_strndup
25006 /* System header to define __stub macros and hopefully few prototypes,
25007 which can conflict with char strndup (); below.
25008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25009 <limits.h> exists even on freestanding compilers. */
25012 # include <limits.h>
25014 # include <assert.h>
25019 /* Override any gcc2 internal prototype to avoid an error. */
25024 /* We use char because int might match the return type of a gcc2
25025 builtin and then its argument prototype would still apply. */
25027 /* The GNU C library defines this for functions which it implements
25028 to always fail with ENOSYS. Some functions are actually named
25029 something starting with __ and the normal name is an alias. */
25030 #if defined (__stub_strndup) || defined (__stub___strndup)
25033 char (*f) () = strndup;
25042 return f != strndup;
25047 rm -f conftest.$ac_objext conftest$ac_exeext
25048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25049 (eval $ac_link) 2>conftest.er1
25051 grep -v '^ *+' conftest.er1 >conftest.err
25053 cat conftest.err >&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } &&
25056 { ac_try='test -z "$ac_c_werror_flag"
25057 || test ! -s conftest.err'
25058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059 (eval $ac_try) 2>&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); }; } &&
25063 { ac_try='test -s conftest$ac_exeext'
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; }; then
25069 ac_cv_func_strndup=yes
25071 echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25074 ac_cv_func_strndup=no
25076 rm -f conftest.err conftest.$ac_objext \
25077 conftest$ac_exeext conftest.$ac_ext
25079 echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
25080 echo "${ECHO_T}$ac_cv_func_strndup" >&6
25081 if test $ac_cv_func_strndup = yes; then
25082 HAVE_STRNDUP="#define HAVE_STRNDUP 1"
25084 HAVE_STRNDUP="#undef HAVE_STRNDUP"
25090 # Look for a sysctl call to get the list of network interfaces.
25092 echo "$as_me:$LINENO: checking for interface list sysctl" >&5
25093 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6
25094 cat >conftest.$ac_ext <<_ACEOF
25097 cat confdefs.h >>conftest.$ac_ext
25098 cat >>conftest.$ac_ext <<_ACEOF
25099 /* end confdefs.h. */
25101 #include <sys/param.h>
25102 #include <sys/sysctl.h>
25103 #include <sys/socket.h>
25104 #ifdef NET_RT_IFLIST
25109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25110 $EGREP "found_rt_iflist" >/dev/null 2>&1; then
25111 echo "$as_me:$LINENO: result: yes" >&5
25112 echo "${ECHO_T}yes" >&6
25113 cat >>confdefs.h <<\_ACEOF
25114 #define HAVE_IFLIST_SYSCTL 1
25118 echo "$as_me:$LINENO: result: no" >&5
25119 echo "${ECHO_T}no" >&6
25125 # Check for some other useful functions that are not ever-present.
25127 echo "$as_me:$LINENO: checking for strsep" >&5
25128 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
25129 if test "${ac_cv_func_strsep+set}" = set; then
25130 echo $ECHO_N "(cached) $ECHO_C" >&6
25132 cat >conftest.$ac_ext <<_ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h. */
25138 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
25139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25140 #define strsep innocuous_strsep
25142 /* System header to define __stub macros and hopefully few prototypes,
25143 which can conflict with char strsep (); below.
25144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25145 <limits.h> exists even on freestanding compilers. */
25148 # include <limits.h>
25150 # include <assert.h>
25155 /* Override any gcc2 internal prototype to avoid an error. */
25160 /* We use char because int might match the return type of a gcc2
25161 builtin and then its argument prototype would still apply. */
25163 /* The GNU C library defines this for functions which it implements
25164 to always fail with ENOSYS. Some functions are actually named
25165 something starting with __ and the normal name is an alias. */
25166 #if defined (__stub_strsep) || defined (__stub___strsep)
25169 char (*f) () = strsep;
25178 return f != strsep;
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25185 (eval $ac_link) 2>conftest.er1
25187 grep -v '^ *+' conftest.er1 >conftest.err
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest$ac_exeext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 ac_cv_func_strsep=yes
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25210 ac_cv_func_strsep=no
25212 rm -f conftest.err conftest.$ac_objext \
25213 conftest$ac_exeext conftest.$ac_ext
25215 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
25216 echo "${ECHO_T}$ac_cv_func_strsep" >&6
25217 if test $ac_cv_func_strsep = yes; then
25218 ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
25220 ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
25223 echo "$as_me:$LINENO: checking for vsnprintf" >&5
25224 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
25225 if test "${ac_cv_func_vsnprintf+set}" = set; then
25226 echo $ECHO_N "(cached) $ECHO_C" >&6
25228 cat >conftest.$ac_ext <<_ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h. */
25234 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
25235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25236 #define vsnprintf innocuous_vsnprintf
25238 /* System header to define __stub macros and hopefully few prototypes,
25239 which can conflict with char vsnprintf (); below.
25240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25241 <limits.h> exists even on freestanding compilers. */
25244 # include <limits.h>
25246 # include <assert.h>
25251 /* Override any gcc2 internal prototype to avoid an error. */
25256 /* We use char because int might match the return type of a gcc2
25257 builtin and then its argument prototype would still apply. */
25259 /* The GNU C library defines this for functions which it implements
25260 to always fail with ENOSYS. Some functions are actually named
25261 something starting with __ and the normal name is an alias. */
25262 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
25265 char (*f) () = vsnprintf;
25274 return f != vsnprintf;
25279 rm -f conftest.$ac_objext conftest$ac_exeext
25280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25281 (eval $ac_link) 2>conftest.er1
25283 grep -v '^ *+' conftest.er1 >conftest.err
25285 cat conftest.err >&5
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); } &&
25288 { ac_try='test -z "$ac_c_werror_flag"
25289 || test ! -s conftest.err'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; } &&
25295 { ac_try='test -s conftest$ac_exeext'
25296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; }; then
25301 ac_cv_func_vsnprintf=yes
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25306 ac_cv_func_vsnprintf=no
25308 rm -f conftest.err conftest.$ac_objext \
25309 conftest$ac_exeext conftest.$ac_ext
25311 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
25312 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
25313 if test $ac_cv_func_vsnprintf = yes; then
25314 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
25316 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
25317 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
25318 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
25326 echo "$as_me:$LINENO: checking for strerror" >&5
25327 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
25328 if test "${ac_cv_func_strerror+set}" = set; then
25329 echo $ECHO_N "(cached) $ECHO_C" >&6
25331 cat >conftest.$ac_ext <<_ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
25338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25339 #define strerror innocuous_strerror
25341 /* System header to define __stub macros and hopefully few prototypes,
25342 which can conflict with char strerror (); below.
25343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25344 <limits.h> exists even on freestanding compilers. */
25347 # include <limits.h>
25349 # include <assert.h>
25354 /* Override any gcc2 internal prototype to avoid an error. */
25359 /* We use char because int might match the return type of a gcc2
25360 builtin and then its argument prototype would still apply. */
25362 /* The GNU C library defines this for functions which it implements
25363 to always fail with ENOSYS. Some functions are actually named
25364 something starting with __ and the normal name is an alias. */
25365 #if defined (__stub_strerror) || defined (__stub___strerror)
25368 char (*f) () = strerror;
25377 return f != strerror;
25382 rm -f conftest.$ac_objext conftest$ac_exeext
25383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25384 (eval $ac_link) 2>conftest.er1
25386 grep -v '^ *+' conftest.er1 >conftest.err
25388 cat conftest.err >&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } &&
25391 { ac_try='test -z "$ac_c_werror_flag"
25392 || test ! -s conftest.err'
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); }; } &&
25398 { ac_try='test -s conftest$ac_exeext'
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; }; then
25404 ac_cv_func_strerror=yes
25406 echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25409 ac_cv_func_strerror=no
25411 rm -f conftest.err conftest.$ac_objext \
25412 conftest$ac_exeext conftest.$ac_ext
25414 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
25415 echo "${ECHO_T}$ac_cv_func_strerror" >&6
25416 if test $ac_cv_func_strerror = yes; then
25417 USE_SYSERROR_LIST="#undef USE_SYSERROR_LIST"
25419 USE_SYSERROR_LIST="#define USE_SYSERROR_LIST 1"
25425 # Determine the printf format characters to use when printing
25426 # values of type isc_int64_t. We make the assumption that platforms
25427 # where a "long long" is the same size as a "long" (e.g., Alpha/OSF1)
25428 # want "%ld" and everyone else can use "%lld". Win32 uses "%I64d",
25429 # but that's defined elsewhere since we don't use configure on Win32.
25431 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
25432 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
25433 if test "$cross_compiling" = yes; then
25434 echo "$as_me:$LINENO: result: default ll" >&5
25435 echo "${ECHO_T}default ll" >&6
25436 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
25438 cat >conftest.$ac_ext <<_ACEOF
25441 cat confdefs.h >>conftest.$ac_ext
25442 cat >>conftest.$ac_ext <<_ACEOF
25443 /* end confdefs.h. */
25444 main() { exit(!(sizeof(long long int) == sizeof(long int))); }
25446 rm -f conftest$ac_exeext
25447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25448 (eval $ac_link) 2>&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; }; then
25457 echo "$as_me:$LINENO: result: l" >&5
25458 echo "${ECHO_T}l" >&6
25459 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
25461 echo "$as_me: program exited with status $ac_status" >&5
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 ( exit $ac_status )
25466 echo "$as_me:$LINENO: result: ll" >&5
25467 echo "${ECHO_T}ll" >&6
25468 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
25470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25477 echo "$as_me:$LINENO: checking for chroot" >&5
25478 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
25479 if test "${ac_cv_func_chroot+set}" = set; then
25480 echo $ECHO_N "(cached) $ECHO_C" >&6
25482 cat >conftest.$ac_ext <<_ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h. */
25488 /* Define chroot to an innocuous variant, in case <limits.h> declares chroot.
25489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25490 #define chroot innocuous_chroot
25492 /* System header to define __stub macros and hopefully few prototypes,
25493 which can conflict with char chroot (); below.
25494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25495 <limits.h> exists even on freestanding compilers. */
25498 # include <limits.h>
25500 # include <assert.h>
25505 /* Override any gcc2 internal prototype to avoid an error. */
25510 /* We use char because int might match the return type of a gcc2
25511 builtin and then its argument prototype would still apply. */
25513 /* The GNU C library defines this for functions which it implements
25514 to always fail with ENOSYS. Some functions are actually named
25515 something starting with __ and the normal name is an alias. */
25516 #if defined (__stub_chroot) || defined (__stub___chroot)
25519 char (*f) () = chroot;
25528 return f != chroot;
25533 rm -f conftest.$ac_objext conftest$ac_exeext
25534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25535 (eval $ac_link) 2>conftest.er1
25537 grep -v '^ *+' conftest.er1 >conftest.err
25539 cat conftest.err >&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); } &&
25542 { ac_try='test -z "$ac_c_werror_flag"
25543 || test ! -s conftest.err'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; } &&
25549 { ac_try='test -s conftest$ac_exeext'
25550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551 (eval $ac_try) 2>&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); }; }; then
25555 ac_cv_func_chroot=yes
25557 echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25560 ac_cv_func_chroot=no
25562 rm -f conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
25565 echo "$as_me:$LINENO: result: $ac_cv_func_chroot" >&5
25566 echo "${ECHO_T}$ac_cv_func_chroot" >&6
25567 if test $ac_cv_func_chroot = yes; then
25568 cat >>confdefs.h <<\_ACEOF
25569 #define HAVE_CHROOT 1
25576 # for accept, recvfrom, getpeername etc.
25578 echo "$as_me:$LINENO: checking for socket length type" >&5
25579 echo $ECHO_N "checking for socket length type... $ECHO_C" >&6
25580 cat >conftest.$ac_ext <<_ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h. */
25587 #include <sys/types.h>
25588 #include <sys/socket.h>
25589 int accept(int, struct sockaddr *, socklen_t *);
25599 rm -f conftest.$ac_objext
25600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25601 (eval $ac_compile) 2>conftest.er1
25603 grep -v '^ *+' conftest.er1 >conftest.err
25605 cat conftest.err >&5
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } &&
25608 { ac_try='test -z "$ac_c_werror_flag"
25609 || test ! -s conftest.err'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; } &&
25615 { ac_try='test -s conftest.$ac_objext'
25616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617 (eval $ac_try) 2>&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T socklen_t"
25622 echo "$as_me:$LINENO: result: socklen_t" >&5
25623 echo "${ECHO_T}socklen_t" >&6
25626 echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25629 cat >conftest.$ac_ext <<_ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25636 #include <sys/types.h>
25637 #include <sys/socket.h>
25638 int accept(int, struct sockaddr *, unsigned int *);
25648 rm -f conftest.$ac_objext
25649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25650 (eval $ac_compile) 2>conftest.er1
25652 grep -v '^ *+' conftest.er1 >conftest.err
25654 cat conftest.err >&5
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } &&
25657 { ac_try='test -z "$ac_c_werror_flag"
25658 || test ! -s conftest.err'
25659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660 (eval $ac_try) 2>&5
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); }; } &&
25664 { ac_try='test -s conftest.$ac_objext'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; }; then
25670 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned int"
25671 echo "$as_me:$LINENO: result: unsigned int" >&5
25672 echo "${ECHO_T}unsigned int" >&6
25675 echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25678 cat >conftest.$ac_ext <<_ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25685 #include <sys/types.h>
25686 #include <sys/socket.h>
25687 int accept(int, struct sockaddr *, unsigned long *);
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699 (eval $ac_compile) 2>conftest.er1
25701 grep -v '^ *+' conftest.er1 >conftest.err
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } &&
25706 { ac_try='test -z "$ac_c_werror_flag"
25707 || test ! -s conftest.err'
25708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709 (eval $ac_try) 2>&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); }; } &&
25713 { ac_try='test -s conftest.$ac_objext'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; }; then
25719 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned long"
25720 echo "$as_me:$LINENO: result: unsigned long" >&5
25721 echo "${ECHO_T}unsigned long" >&6
25724 echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25727 cat >conftest.$ac_ext <<_ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25734 #include <sys/types.h>
25735 #include <sys/socket.h>
25736 int accept(int, struct sockaddr *, long *);
25746 rm -f conftest.$ac_objext
25747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25748 (eval $ac_compile) 2>conftest.er1
25750 grep -v '^ *+' conftest.er1 >conftest.err
25752 cat conftest.err >&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } &&
25755 { ac_try='test -z "$ac_c_werror_flag"
25756 || test ! -s conftest.err'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; } &&
25762 { ac_try='test -s conftest.$ac_objext'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; }; then
25768 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T long"
25769 echo "$as_me:$LINENO: result: long" >&5
25770 echo "${ECHO_T}long" >&6
25773 echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25776 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T int"
25777 echo "$as_me:$LINENO: result: int" >&5
25778 echo "${ECHO_T}int" >&6
25781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25790 echo "$as_me:$LINENO: checking for getgrouplist" >&5
25791 echo $ECHO_N "checking for getgrouplist... $ECHO_C" >&6
25792 if test "${ac_cv_func_getgrouplist+set}" = set; then
25793 echo $ECHO_N "(cached) $ECHO_C" >&6
25795 cat >conftest.$ac_ext <<_ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h. */
25801 /* Define getgrouplist to an innocuous variant, in case <limits.h> declares getgrouplist.
25802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25803 #define getgrouplist innocuous_getgrouplist
25805 /* System header to define __stub macros and hopefully few prototypes,
25806 which can conflict with char getgrouplist (); below.
25807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25808 <limits.h> exists even on freestanding compilers. */
25811 # include <limits.h>
25813 # include <assert.h>
25816 #undef getgrouplist
25818 /* Override any gcc2 internal prototype to avoid an error. */
25823 /* We use char because int might match the return type of a gcc2
25824 builtin and then its argument prototype would still apply. */
25825 char getgrouplist ();
25826 /* The GNU C library defines this for functions which it implements
25827 to always fail with ENOSYS. Some functions are actually named
25828 something starting with __ and the normal name is an alias. */
25829 #if defined (__stub_getgrouplist) || defined (__stub___getgrouplist)
25832 char (*f) () = getgrouplist;
25841 return f != getgrouplist;
25846 rm -f conftest.$ac_objext conftest$ac_exeext
25847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25848 (eval $ac_link) 2>conftest.er1
25850 grep -v '^ *+' conftest.er1 >conftest.err
25852 cat conftest.err >&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } &&
25855 { ac_try='test -z "$ac_c_werror_flag"
25856 || test ! -s conftest.err'
25857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858 (eval $ac_try) 2>&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; } &&
25862 { ac_try='test -s conftest$ac_exeext'
25863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25864 (eval $ac_try) 2>&5
25866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); }; }; then
25868 ac_cv_func_getgrouplist=yes
25870 echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25873 ac_cv_func_getgrouplist=no
25875 rm -f conftest.err conftest.$ac_objext \
25876 conftest$ac_exeext conftest.$ac_ext
25878 echo "$as_me:$LINENO: result: $ac_cv_func_getgrouplist" >&5
25879 echo "${ECHO_T}$ac_cv_func_getgrouplist" >&6
25880 if test $ac_cv_func_getgrouplist = yes; then
25881 cat >conftest.$ac_ext <<_ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h. */
25887 #include <unistd.h>
25889 getgrouplist(const char *name, int basegid, int *groups, int *ngroups) {
25900 rm -f conftest.$ac_objext
25901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25902 (eval $ac_compile) 2>conftest.er1
25904 grep -v '^ *+' conftest.er1 >conftest.err
25906 cat conftest.err >&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } &&
25909 { ac_try='test -z "$ac_c_werror_flag"
25910 || test ! -s conftest.err'
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; } &&
25916 { ac_try='test -s conftest.$ac_objext'
25917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918 (eval $ac_try) 2>&5
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); }; }; then
25922 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, int basegid, int *groups, int *ngroups"
25925 echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25928 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25933 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
25934 cat >>confdefs.h <<\_ACEOF
25935 #define NEED_GETGROUPLIST 1
25943 echo "$as_me:$LINENO: checking for setgroupent" >&5
25944 echo $ECHO_N "checking for setgroupent... $ECHO_C" >&6
25945 if test "${ac_cv_func_setgroupent+set}" = set; then
25946 echo $ECHO_N "(cached) $ECHO_C" >&6
25948 cat >conftest.$ac_ext <<_ACEOF
25951 cat confdefs.h >>conftest.$ac_ext
25952 cat >>conftest.$ac_ext <<_ACEOF
25953 /* end confdefs.h. */
25954 /* Define setgroupent to an innocuous variant, in case <limits.h> declares setgroupent.
25955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25956 #define setgroupent innocuous_setgroupent
25958 /* System header to define __stub macros and hopefully few prototypes,
25959 which can conflict with char setgroupent (); below.
25960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25961 <limits.h> exists even on freestanding compilers. */
25964 # include <limits.h>
25966 # include <assert.h>
25971 /* Override any gcc2 internal prototype to avoid an error. */
25976 /* We use char because int might match the return type of a gcc2
25977 builtin and then its argument prototype would still apply. */
25978 char setgroupent ();
25979 /* The GNU C library defines this for functions which it implements
25980 to always fail with ENOSYS. Some functions are actually named
25981 something starting with __ and the normal name is an alias. */
25982 #if defined (__stub_setgroupent) || defined (__stub___setgroupent)
25985 char (*f) () = setgroupent;
25994 return f != setgroupent;
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26001 (eval $ac_link) 2>conftest.er1
26003 grep -v '^ *+' conftest.er1 >conftest.err
26005 cat conftest.err >&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } &&
26008 { ac_try='test -z "$ac_c_werror_flag"
26009 || test ! -s conftest.err'
26010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011 (eval $ac_try) 2>&5
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; } &&
26015 { ac_try='test -s conftest$ac_exeext'
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021 ac_cv_func_setgroupent=yes
26023 echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26026 ac_cv_func_setgroupent=no
26028 rm -f conftest.err conftest.$ac_objext \
26029 conftest$ac_exeext conftest.$ac_ext
26031 echo "$as_me:$LINENO: result: $ac_cv_func_setgroupent" >&5
26032 echo "${ECHO_T}$ac_cv_func_setgroupent" >&6
26033 if test $ac_cv_func_setgroupent = yes; then
26036 cat >>confdefs.h <<\_ACEOF
26037 #define NEED_SETGROUPENT 1
26047 echo "$as_me:$LINENO: checking for getnetbyaddr_r" >&5
26048 echo $ECHO_N "checking for getnetbyaddr_r... $ECHO_C" >&6
26049 if test "${ac_cv_func_getnetbyaddr_r+set}" = set; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26052 cat >conftest.$ac_ext <<_ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h. */
26058 /* Define getnetbyaddr_r to an innocuous variant, in case <limits.h> declares getnetbyaddr_r.
26059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26060 #define getnetbyaddr_r innocuous_getnetbyaddr_r
26062 /* System header to define __stub macros and hopefully few prototypes,
26063 which can conflict with char getnetbyaddr_r (); below.
26064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26065 <limits.h> exists even on freestanding compilers. */
26068 # include <limits.h>
26070 # include <assert.h>
26073 #undef getnetbyaddr_r
26075 /* Override any gcc2 internal prototype to avoid an error. */
26080 /* We use char because int might match the return type of a gcc2
26081 builtin and then its argument prototype would still apply. */
26082 char getnetbyaddr_r ();
26083 /* The GNU C library defines this for functions which it implements
26084 to always fail with ENOSYS. Some functions are actually named
26085 something starting with __ and the normal name is an alias. */
26086 #if defined (__stub_getnetbyaddr_r) || defined (__stub___getnetbyaddr_r)
26089 char (*f) () = getnetbyaddr_r;
26098 return f != getnetbyaddr_r;
26103 rm -f conftest.$ac_objext conftest$ac_exeext
26104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26105 (eval $ac_link) 2>conftest.er1
26107 grep -v '^ *+' conftest.er1 >conftest.err
26109 cat conftest.err >&5
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } &&
26112 { ac_try='test -z "$ac_c_werror_flag"
26113 || test ! -s conftest.err'
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; } &&
26119 { ac_try='test -s conftest$ac_exeext'
26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121 (eval $ac_try) 2>&5
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; }; then
26125 ac_cv_func_getnetbyaddr_r=yes
26127 echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26130 ac_cv_func_getnetbyaddr_r=no
26132 rm -f conftest.err conftest.$ac_objext \
26133 conftest$ac_exeext conftest.$ac_ext
26135 echo "$as_me:$LINENO: result: $ac_cv_func_getnetbyaddr_r" >&5
26136 echo "${ECHO_T}$ac_cv_func_getnetbyaddr_r" >&6
26137 if test $ac_cv_func_getnetbyaddr_r = yes; then
26138 cat >conftest.$ac_ext <<_ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h. */
26147 #define _OSF_SOURCE
26152 getnetbyaddr_r(long net, int type, struct netent *result, char *buffer,
26163 rm -f conftest.$ac_objext
26164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26165 (eval $ac_compile) 2>conftest.er1
26167 grep -v '^ *+' conftest.er1 >conftest.err
26169 cat conftest.err >&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } &&
26172 { ac_try='test -z "$ac_c_werror_flag"
26173 || test ! -s conftest.err'
26174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175 (eval $ac_try) 2>&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; } &&
26179 { ac_try='test -s conftest.$ac_objext'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26186 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen"
26187 NET_R_BAD="#define NET_R_BAD NULL"
26188 NET_R_COPY="#define NET_R_COPY buf, buflen"
26189 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS"
26190 NET_R_OK="#define NET_R_OK nptr"
26191 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26192 NET_R_RETURN="#define NET_R_RETURN struct netent *"
26193 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
26194 NETENT_DATA="#undef NETENT_DATA"
26197 echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26200 cat >conftest.$ac_ext <<_ACEOF
26203 cat confdefs.h >>conftest.$ac_ext
26204 cat >>conftest.$ac_ext <<_ACEOF
26205 /* end confdefs.h. */
26209 #define _OSF_SOURCE
26213 int getnetbyaddr_r (unsigned long int, int, struct netent *,
26214 char *, size_t, struct netent **, int *);
26224 rm -f conftest.$ac_objext
26225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26226 (eval $ac_compile) 2>conftest.er1
26228 grep -v '^ *+' conftest.er1 >conftest.err
26230 cat conftest.err >&5
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); } &&
26233 { ac_try='test -z "$ac_c_werror_flag"
26234 || test ! -s conftest.err'
26235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26236 (eval $ac_try) 2>&5
26238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239 (exit $ac_status); }; } &&
26240 { ac_try='test -s conftest.$ac_objext'
26241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242 (eval $ac_try) 2>&5
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; }; then
26247 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
26248 NET_R_BAD="#define NET_R_BAD ERANGE"
26249 NET_R_COPY="#define NET_R_COPY buf, buflen"
26250 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
26251 NET_R_OK="#define NET_R_OK 0"
26252 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
26253 NET_R_RETURN="#define NET_R_RETURN int"
26254 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
26255 NETENT_DATA="#undef NETENT_DATA"
26258 echo "$as_me: failed program was:" >&5
26259 sed 's/^/| /' conftest.$ac_ext >&5
26261 cat >conftest.$ac_ext <<_ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h. */
26270 #define _OSF_SOURCE
26274 extern int getnetbyaddr_r(int, int, struct netent *, struct netent_data *);
26284 rm -f conftest.$ac_objext
26285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26286 (eval $ac_compile) 2>conftest.er1
26288 grep -v '^ *+' conftest.er1 >conftest.err
26290 cat conftest.err >&5
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); } &&
26293 { ac_try='test -z "$ac_c_werror_flag"
26294 || test ! -s conftest.err'
26295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296 (eval $ac_try) 2>&5
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); }; } &&
26300 { ac_try='test -s conftest.$ac_objext'
26301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302 (eval $ac_try) 2>&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); }; }; then
26307 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
26308 NET_R_BAD="#define NET_R_BAD (-1)"
26309 NET_R_COPY="#define NET_R_COPY ndptr"
26310 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
26311 NET_R_OK="#define NET_R_OK 0"
26312 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26313 NET_R_RETURN="#define NET_R_RETURN int"
26314 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int"
26315 NETENT_DATA="#define NETENT_DATA 1"
26318 echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26321 cat >conftest.$ac_ext <<_ACEOF
26324 cat confdefs.h >>conftest.$ac_ext
26325 cat >>conftest.$ac_ext <<_ACEOF
26326 /* end confdefs.h. */
26330 int getnetbyaddr_r (in_addr_t, int, struct netent *, struct netent_data *);
26340 rm -f conftest.$ac_objext
26341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26342 (eval $ac_compile) 2>conftest.er1
26344 grep -v '^ *+' conftest.er1 >conftest.err
26346 cat conftest.err >&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); } &&
26349 { ac_try='test -z "$ac_c_werror_flag"
26350 || test ! -s conftest.err'
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); }; } &&
26356 { ac_try='test -s conftest.$ac_objext'
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26363 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
26364 NET_R_BAD="#define NET_R_BAD (-1)"
26365 NET_R_COPY="#define NET_R_COPY ndptr"
26366 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
26367 NET_R_OK="#define NET_R_OK 0"
26368 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26369 NET_R_RETURN="#define NET_R_RETURN int"
26370 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
26371 NETENT_DATA="#define NETENT_DATA 1"
26374 echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26377 cat >conftest.$ac_ext <<_ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h. */
26386 int getnetbyaddr_r (long, int, struct netent *, struct netent_data *);
26396 rm -f conftest.$ac_objext
26397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26398 (eval $ac_compile) 2>conftest.er1
26400 grep -v '^ *+' conftest.er1 >conftest.err
26402 cat conftest.err >&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); } &&
26405 { ac_try='test -z "$ac_c_werror_flag"
26406 || test ! -s conftest.err'
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; } &&
26412 { ac_try='test -s conftest.$ac_objext'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }; then
26419 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
26420 NET_R_BAD="#define NET_R_BAD (-1)"
26421 NET_R_COPY="#define NET_R_COPY ndptr"
26422 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
26423 NET_R_OK="#define NET_R_OK 0"
26424 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26425 NET_R_RETURN="#define NET_R_RETURN int"
26426 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
26427 NETENT_DATA="#define NETENT_DATA 1"
26430 echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26433 cat >conftest.$ac_ext <<_ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h. */
26442 int getnetbyaddr_r (uint32_t, int, struct netent *,
26443 char *, size_t, struct netent **, int *);
26453 rm -f conftest.$ac_objext
26454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26455 (eval $ac_compile) 2>conftest.er1
26457 grep -v '^ *+' conftest.er1 >conftest.err
26459 cat conftest.err >&5
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); } &&
26462 { ac_try='test -z "$ac_c_werror_flag"
26463 || test ! -s conftest.err'
26464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465 (eval $ac_try) 2>&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); }; } &&
26469 { ac_try='test -s conftest.$ac_objext'
26470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26471 (eval $ac_try) 2>&5
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); }; }; then
26476 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
26477 NET_R_BAD="#define NET_R_BAD ERANGE"
26478 NET_R_COPY="#define NET_R_COPY buf, buflen"
26479 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
26480 NET_R_OK="#define NET_R_OK 0"
26481 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
26482 NET_R_RETURN="#define NET_R_RETURN int"
26483 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
26484 NETENT_DATA="#undef NETENT_DATA"
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26509 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen"
26510 NET_R_BAD="#define NET_R_BAD NULL"
26511 NET_R_COPY="#define NET_R_COPY buf, buflen"
26512 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS"
26513 NET_R_OK="#define NET_R_OK nptr"
26514 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26515 NET_R_RETURN="#define NET_R_RETURN struct netent *"
26516 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
26517 NETENT_DATA="#undef NETENT_DATA"
26524 *dec-osf*) GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int" ;;
26536 echo "$as_me:$LINENO: checking for setnetent_r" >&5
26537 echo $ECHO_N "checking for setnetent_r... $ECHO_C" >&6
26538 if test "${ac_cv_func_setnetent_r+set}" = set; then
26539 echo $ECHO_N "(cached) $ECHO_C" >&6
26541 cat >conftest.$ac_ext <<_ACEOF
26544 cat confdefs.h >>conftest.$ac_ext
26545 cat >>conftest.$ac_ext <<_ACEOF
26546 /* end confdefs.h. */
26547 /* Define setnetent_r to an innocuous variant, in case <limits.h> declares setnetent_r.
26548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26549 #define setnetent_r innocuous_setnetent_r
26551 /* System header to define __stub macros and hopefully few prototypes,
26552 which can conflict with char setnetent_r (); below.
26553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26554 <limits.h> exists even on freestanding compilers. */
26557 # include <limits.h>
26559 # include <assert.h>
26564 /* Override any gcc2 internal prototype to avoid an error. */
26569 /* We use char because int might match the return type of a gcc2
26570 builtin and then its argument prototype would still apply. */
26571 char setnetent_r ();
26572 /* The GNU C library defines this for functions which it implements
26573 to always fail with ENOSYS. Some functions are actually named
26574 something starting with __ and the normal name is an alias. */
26575 #if defined (__stub_setnetent_r) || defined (__stub___setnetent_r)
26578 char (*f) () = setnetent_r;
26587 return f != setnetent_r;
26592 rm -f conftest.$ac_objext conftest$ac_exeext
26593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26594 (eval $ac_link) 2>conftest.er1
26596 grep -v '^ *+' conftest.er1 >conftest.err
26598 cat conftest.err >&5
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } &&
26601 { ac_try='test -z "$ac_c_werror_flag"
26602 || test ! -s conftest.err'
26603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604 (eval $ac_try) 2>&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); }; } &&
26608 { ac_try='test -s conftest$ac_exeext'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614 ac_cv_func_setnetent_r=yes
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26619 ac_cv_func_setnetent_r=no
26621 rm -f conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
26624 echo "$as_me:$LINENO: result: $ac_cv_func_setnetent_r" >&5
26625 echo "${ECHO_T}$ac_cv_func_setnetent_r" >&6
26626 if test $ac_cv_func_setnetent_r = yes; then
26627 cat >conftest.$ac_ext <<_ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26637 void setnetent_r (int);
26647 rm -f conftest.$ac_objext
26648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26649 (eval $ac_compile) 2>conftest.er1
26651 grep -v '^ *+' conftest.er1 >conftest.err
26653 cat conftest.err >&5
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); } &&
26656 { ac_try='test -z "$ac_c_werror_flag"
26657 || test ! -s conftest.err'
26658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659 (eval $ac_try) 2>&5
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); }; } &&
26663 { ac_try='test -s conftest.$ac_objext'
26664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665 (eval $ac_try) 2>&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; }; then
26670 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/"
26671 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/"
26672 NET_R_SET_RETURN="#define NET_R_SET_RETURN void"
26675 echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26678 cat >conftest.$ac_ext <<_ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h. */
26689 extern int setnetent_r(int, struct netent_data *);
26699 rm -f conftest.$ac_objext
26700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26701 (eval $ac_compile) 2>conftest.er1
26703 grep -v '^ *+' conftest.er1 >conftest.err
26705 cat conftest.err >&5
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); } &&
26708 { ac_try='test -z "$ac_c_werror_flag"
26709 || test ! -s conftest.err'
26710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26711 (eval $ac_try) 2>&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); }; } &&
26715 { ac_try='test -s conftest.$ac_objext'
26716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26717 (eval $ac_try) 2>&5
26719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); }; }; then
26722 NET_R_ENT_ARGS="#define NET_R_ENT_ARGS struct netent_data *ndptr"
26723 NET_R_SET_RESULT="#define NET_R_SET_RESULT NET_R_OK"
26724 NET_R_SET_RETURN="#define NET_R_SET_RETURN int"
26727 echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26737 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/"
26738 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/"
26739 NET_R_SET_RETURN="#define NET_R_SET_RETURN void"
26752 echo "$as_me:$LINENO: checking for endnetent_r" >&5
26753 echo $ECHO_N "checking for endnetent_r... $ECHO_C" >&6
26754 if test "${ac_cv_func_endnetent_r+set}" = set; then
26755 echo $ECHO_N "(cached) $ECHO_C" >&6
26757 cat >conftest.$ac_ext <<_ACEOF
26760 cat confdefs.h >>conftest.$ac_ext
26761 cat >>conftest.$ac_ext <<_ACEOF
26762 /* end confdefs.h. */
26763 /* Define endnetent_r to an innocuous variant, in case <limits.h> declares endnetent_r.
26764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26765 #define endnetent_r innocuous_endnetent_r
26767 /* System header to define __stub macros and hopefully few prototypes,
26768 which can conflict with char endnetent_r (); below.
26769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26770 <limits.h> exists even on freestanding compilers. */
26773 # include <limits.h>
26775 # include <assert.h>
26780 /* Override any gcc2 internal prototype to avoid an error. */
26785 /* We use char because int might match the return type of a gcc2
26786 builtin and then its argument prototype would still apply. */
26787 char endnetent_r ();
26788 /* The GNU C library defines this for functions which it implements
26789 to always fail with ENOSYS. Some functions are actually named
26790 something starting with __ and the normal name is an alias. */
26791 #if defined (__stub_endnetent_r) || defined (__stub___endnetent_r)
26794 char (*f) () = endnetent_r;
26803 return f != endnetent_r;
26808 rm -f conftest.$ac_objext conftest$ac_exeext
26809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26810 (eval $ac_link) 2>conftest.er1
26812 grep -v '^ *+' conftest.er1 >conftest.err
26814 cat conftest.err >&5
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); } &&
26817 { ac_try='test -z "$ac_c_werror_flag"
26818 || test ! -s conftest.err'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; } &&
26824 { ac_try='test -s conftest$ac_exeext'
26825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826 (eval $ac_try) 2>&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; }; then
26830 ac_cv_func_endnetent_r=yes
26832 echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26835 ac_cv_func_endnetent_r=no
26837 rm -f conftest.err conftest.$ac_objext \
26838 conftest$ac_exeext conftest.$ac_ext
26840 echo "$as_me:$LINENO: result: $ac_cv_func_endnetent_r" >&5
26841 echo "${ECHO_T}$ac_cv_func_endnetent_r" >&6
26842 if test $ac_cv_func_endnetent_r = yes; then
26843 cat >conftest.$ac_ext <<_ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h. */
26855 void endnetent_r (void);
26865 rm -f conftest.$ac_objext
26866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26867 (eval $ac_compile) 2>conftest.er1
26869 grep -v '^ *+' conftest.er1 >conftest.err
26871 cat conftest.err >&5
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); } &&
26874 { ac_try='test -z "$ac_c_werror_flag"
26875 || test ! -s conftest.err'
26876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877 (eval $ac_try) 2>&5
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; } &&
26881 { ac_try='test -s conftest.$ac_objext'
26882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26883 (eval $ac_try) 2>&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); }; }; then
26888 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26889 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26892 echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26895 cat >conftest.$ac_ext <<_ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h. */
26907 extern int endnetent_r(struct netent_data *);
26917 rm -f conftest.$ac_objext
26918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26919 (eval $ac_compile) 2>conftest.er1
26921 grep -v '^ *+' conftest.er1 >conftest.err
26923 cat conftest.err >&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); } &&
26926 { ac_try='test -z "$ac_c_werror_flag"
26927 || test ! -s conftest.err'
26928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929 (eval $ac_try) 2>&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; } &&
26933 { ac_try='test -s conftest.$ac_objext'
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; }; then
26940 NET_R_END_RESULT="#define NET_R_END_RESULT(x) return (x)"
26941 NET_R_END_RETURN="#define NET_R_END_RETURN int"
26944 echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26947 cat >conftest.$ac_ext <<_ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26959 extern void endnetent_r(struct netent_data *);
26969 rm -f conftest.$ac_objext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26971 (eval $ac_compile) 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } &&
26978 { ac_try='test -z "$ac_c_werror_flag"
26979 || test ! -s conftest.err'
26980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981 (eval $ac_try) 2>&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); }; } &&
26985 { ac_try='test -s conftest.$ac_objext'
26986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26987 (eval $ac_try) 2>&5
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; }; then
26992 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26993 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26996 echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
27000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27009 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
27010 NET_R_END_RETURN="#define NET_R_END_RETURN void"
27018 echo "$as_me:$LINENO: checking for getgrnam_r" >&5
27019 echo $ECHO_N "checking for getgrnam_r... $ECHO_C" >&6
27020 if test "${ac_cv_func_getgrnam_r+set}" = set; then
27021 echo $ECHO_N "(cached) $ECHO_C" >&6
27023 cat >conftest.$ac_ext <<_ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h. */
27029 /* Define getgrnam_r to an innocuous variant, in case <limits.h> declares getgrnam_r.
27030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27031 #define getgrnam_r innocuous_getgrnam_r
27033 /* System header to define __stub macros and hopefully few prototypes,
27034 which can conflict with char getgrnam_r (); below.
27035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27036 <limits.h> exists even on freestanding compilers. */
27039 # include <limits.h>
27041 # include <assert.h>
27046 /* Override any gcc2 internal prototype to avoid an error. */
27051 /* We use char because int might match the return type of a gcc2
27052 builtin and then its argument prototype would still apply. */
27053 char getgrnam_r ();
27054 /* The GNU C library defines this for functions which it implements
27055 to always fail with ENOSYS. Some functions are actually named
27056 something starting with __ and the normal name is an alias. */
27057 #if defined (__stub_getgrnam_r) || defined (__stub___getgrnam_r)
27060 char (*f) () = getgrnam_r;
27069 return f != getgrnam_r;
27074 rm -f conftest.$ac_objext conftest$ac_exeext
27075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27076 (eval $ac_link) 2>conftest.er1
27078 grep -v '^ *+' conftest.er1 >conftest.err
27080 cat conftest.err >&5
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); } &&
27083 { ac_try='test -z "$ac_c_werror_flag"
27084 || test ! -s conftest.err'
27085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; } &&
27090 { ac_try='test -s conftest$ac_exeext'
27091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092 (eval $ac_try) 2>&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; }; then
27096 ac_cv_func_getgrnam_r=yes
27098 echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27101 ac_cv_func_getgrnam_r=no
27103 rm -f conftest.err conftest.$ac_objext \
27104 conftest$ac_exeext conftest.$ac_ext
27106 echo "$as_me:$LINENO: result: $ac_cv_func_getgrnam_r" >&5
27107 echo "${ECHO_T}$ac_cv_func_getgrnam_r" >&6
27108 if test $ac_cv_func_getgrnam_r = yes; then
27111 cat >>confdefs.h <<\_ACEOF
27112 #define NEED_GETGRNAM_R 1
27117 echo "$as_me:$LINENO: checking for getgrgid_r" >&5
27118 echo $ECHO_N "checking for getgrgid_r... $ECHO_C" >&6
27119 if test "${ac_cv_func_getgrgid_r+set}" = set; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27122 cat >conftest.$ac_ext <<_ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h. */
27128 /* Define getgrgid_r to an innocuous variant, in case <limits.h> declares getgrgid_r.
27129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27130 #define getgrgid_r innocuous_getgrgid_r
27132 /* System header to define __stub macros and hopefully few prototypes,
27133 which can conflict with char getgrgid_r (); below.
27134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27135 <limits.h> exists even on freestanding compilers. */
27138 # include <limits.h>
27140 # include <assert.h>
27145 /* Override any gcc2 internal prototype to avoid an error. */
27150 /* We use char because int might match the return type of a gcc2
27151 builtin and then its argument prototype would still apply. */
27152 char getgrgid_r ();
27153 /* The GNU C library defines this for functions which it implements
27154 to always fail with ENOSYS. Some functions are actually named
27155 something starting with __ and the normal name is an alias. */
27156 #if defined (__stub_getgrgid_r) || defined (__stub___getgrgid_r)
27159 char (*f) () = getgrgid_r;
27168 return f != getgrgid_r;
27173 rm -f conftest.$ac_objext conftest$ac_exeext
27174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27175 (eval $ac_link) 2>conftest.er1
27177 grep -v '^ *+' conftest.er1 >conftest.err
27179 cat conftest.err >&5
27180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 (exit $ac_status); } &&
27182 { ac_try='test -z "$ac_c_werror_flag"
27183 || test ! -s conftest.err'
27184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27185 (eval $ac_try) 2>&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); }; } &&
27189 { ac_try='test -s conftest$ac_exeext'
27190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27191 (eval $ac_try) 2>&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); }; }; then
27195 ac_cv_func_getgrgid_r=yes
27197 echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27200 ac_cv_func_getgrgid_r=no
27202 rm -f conftest.err conftest.$ac_objext \
27203 conftest$ac_exeext conftest.$ac_ext
27205 echo "$as_me:$LINENO: result: $ac_cv_func_getgrgid_r" >&5
27206 echo "${ECHO_T}$ac_cv_func_getgrgid_r" >&6
27207 if test $ac_cv_func_getgrgid_r = yes; then
27210 cat >>confdefs.h <<\_ACEOF
27211 #define NEED_GETGRGID_R 1
27217 echo "$as_me:$LINENO: checking for getgrent_r" >&5
27218 echo $ECHO_N "checking for getgrent_r... $ECHO_C" >&6
27219 if test "${ac_cv_func_getgrent_r+set}" = set; then
27220 echo $ECHO_N "(cached) $ECHO_C" >&6
27222 cat >conftest.$ac_ext <<_ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h. */
27228 /* Define getgrent_r to an innocuous variant, in case <limits.h> declares getgrent_r.
27229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27230 #define getgrent_r innocuous_getgrent_r
27232 /* System header to define __stub macros and hopefully few prototypes,
27233 which can conflict with char getgrent_r (); below.
27234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27235 <limits.h> exists even on freestanding compilers. */
27238 # include <limits.h>
27240 # include <assert.h>
27245 /* Override any gcc2 internal prototype to avoid an error. */
27250 /* We use char because int might match the return type of a gcc2
27251 builtin and then its argument prototype would still apply. */
27252 char getgrent_r ();
27253 /* The GNU C library defines this for functions which it implements
27254 to always fail with ENOSYS. Some functions are actually named
27255 something starting with __ and the normal name is an alias. */
27256 #if defined (__stub_getgrent_r) || defined (__stub___getgrent_r)
27259 char (*f) () = getgrent_r;
27268 return f != getgrent_r;
27273 rm -f conftest.$ac_objext conftest$ac_exeext
27274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27275 (eval $ac_link) 2>conftest.er1
27277 grep -v '^ *+' conftest.er1 >conftest.err
27279 cat conftest.err >&5
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); } &&
27282 { ac_try='test -z "$ac_c_werror_flag"
27283 || test ! -s conftest.err'
27284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27285 (eval $ac_try) 2>&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); }; } &&
27289 { ac_try='test -s conftest$ac_exeext'
27290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27291 (eval $ac_try) 2>&5
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); }; }; then
27295 ac_cv_func_getgrent_r=yes
27297 echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27300 ac_cv_func_getgrent_r=no
27302 rm -f conftest.err conftest.$ac_objext \
27303 conftest$ac_exeext conftest.$ac_ext
27305 echo "$as_me:$LINENO: result: $ac_cv_func_getgrent_r" >&5
27306 echo "${ECHO_T}$ac_cv_func_getgrent_r" >&6
27307 if test $ac_cv_func_getgrent_r = yes; then
27308 cat >conftest.$ac_ext <<_ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h. */
27316 struct group *getgrent_r(struct group *grp, char *buffer,
27327 rm -f conftest.$ac_objext
27328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27329 (eval $ac_compile) 2>conftest.er1
27331 grep -v '^ *+' conftest.er1 >conftest.err
27333 cat conftest.err >&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); } &&
27336 { ac_try='test -z "$ac_c_werror_flag"
27337 || test ! -s conftest.err'
27338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27339 (eval $ac_try) 2>&5
27341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); }; } &&
27343 { ac_try='test -s conftest.$ac_objext'
27344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27345 (eval $ac_try) 2>&5
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; }; then
27350 GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"
27351 GROUP_R_BAD="#define GROUP_R_BAD NULL"
27352 GROUP_R_OK="#define GROUP_R_OK gptr"
27353 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"
27356 echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27363 GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"
27364 GROUP_R_BAD="#define GROUP_R_BAD NULL"
27365 GROUP_R_OK="#define GROUP_R_OK gptr"
27366 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"
27367 cat >>confdefs.h <<\_ACEOF
27368 #define NEED_GETGRENT_R 1
27379 echo "$as_me:$LINENO: checking for endgrent_r" >&5
27380 echo $ECHO_N "checking for endgrent_r... $ECHO_C" >&6
27381 if test "${ac_cv_func_endgrent_r+set}" = set; then
27382 echo $ECHO_N "(cached) $ECHO_C" >&6
27384 cat >conftest.$ac_ext <<_ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h. */
27390 /* Define endgrent_r to an innocuous variant, in case <limits.h> declares endgrent_r.
27391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27392 #define endgrent_r innocuous_endgrent_r
27394 /* System header to define __stub macros and hopefully few prototypes,
27395 which can conflict with char endgrent_r (); below.
27396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27397 <limits.h> exists even on freestanding compilers. */
27400 # include <limits.h>
27402 # include <assert.h>
27407 /* Override any gcc2 internal prototype to avoid an error. */
27412 /* We use char because int might match the return type of a gcc2
27413 builtin and then its argument prototype would still apply. */
27414 char endgrent_r ();
27415 /* The GNU C library defines this for functions which it implements
27416 to always fail with ENOSYS. Some functions are actually named
27417 something starting with __ and the normal name is an alias. */
27418 #if defined (__stub_endgrent_r) || defined (__stub___endgrent_r)
27421 char (*f) () = endgrent_r;
27430 return f != endgrent_r;
27435 rm -f conftest.$ac_objext conftest$ac_exeext
27436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27437 (eval $ac_link) 2>conftest.er1
27439 grep -v '^ *+' conftest.er1 >conftest.err
27441 cat conftest.err >&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } &&
27444 { ac_try='test -z "$ac_c_werror_flag"
27445 || test ! -s conftest.err'
27446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447 (eval $ac_try) 2>&5
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; } &&
27451 { ac_try='test -s conftest$ac_exeext'
27452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453 (eval $ac_try) 2>&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; }; then
27457 ac_cv_func_endgrent_r=yes
27459 echo "$as_me: failed program was:" >&5
27460 sed 's/^/| /' conftest.$ac_ext >&5
27462 ac_cv_func_endgrent_r=no
27464 rm -f conftest.err conftest.$ac_objext \
27465 conftest$ac_exeext conftest.$ac_ext
27467 echo "$as_me:$LINENO: result: $ac_cv_func_endgrent_r" >&5
27468 echo "${ECHO_T}$ac_cv_func_endgrent_r" >&6
27469 if test $ac_cv_func_endgrent_r = yes; then
27472 GROUP_R_END_RESULT="#define GROUP_R_END_RESULT(x) /*empty*/"
27473 GROUP_R_END_RETURN="#define GROUP_R_END_RETURN void"
27474 GROUP_R_ENT_ARGS="#define GROUP_R_ENT_ARGS void"
27475 cat >>confdefs.h <<\_ACEOF
27476 #define NEED_ENDGRENT_R 1
27486 echo "$as_me:$LINENO: checking for setgrent_r" >&5
27487 echo $ECHO_N "checking for setgrent_r... $ECHO_C" >&6
27488 if test "${ac_cv_func_setgrent_r+set}" = set; then
27489 echo $ECHO_N "(cached) $ECHO_C" >&6
27491 cat >conftest.$ac_ext <<_ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h. */
27497 /* Define setgrent_r to an innocuous variant, in case <limits.h> declares setgrent_r.
27498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27499 #define setgrent_r innocuous_setgrent_r
27501 /* System header to define __stub macros and hopefully few prototypes,
27502 which can conflict with char setgrent_r (); below.
27503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27504 <limits.h> exists even on freestanding compilers. */
27507 # include <limits.h>
27509 # include <assert.h>
27514 /* Override any gcc2 internal prototype to avoid an error. */
27519 /* We use char because int might match the return type of a gcc2
27520 builtin and then its argument prototype would still apply. */
27521 char setgrent_r ();
27522 /* The GNU C library defines this for functions which it implements
27523 to always fail with ENOSYS. Some functions are actually named
27524 something starting with __ and the normal name is an alias. */
27525 #if defined (__stub_setgrent_r) || defined (__stub___setgrent_r)
27528 char (*f) () = setgrent_r;
27537 return f != setgrent_r;
27542 rm -f conftest.$ac_objext conftest$ac_exeext
27543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27544 (eval $ac_link) 2>conftest.er1
27546 grep -v '^ *+' conftest.er1 >conftest.err
27548 cat conftest.err >&5
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); } &&
27551 { ac_try='test -z "$ac_c_werror_flag"
27552 || test ! -s conftest.err'
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); }; } &&
27558 { ac_try='test -s conftest$ac_exeext'
27559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27560 (eval $ac_try) 2>&5
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); }; }; then
27564 ac_cv_func_setgrent_r=yes
27566 echo "$as_me: failed program was:" >&5
27567 sed 's/^/| /' conftest.$ac_ext >&5
27569 ac_cv_func_setgrent_r=no
27571 rm -f conftest.err conftest.$ac_objext \
27572 conftest$ac_exeext conftest.$ac_ext
27574 echo "$as_me:$LINENO: result: $ac_cv_func_setgrent_r" >&5
27575 echo "${ECHO_T}$ac_cv_func_setgrent_r" >&6
27576 if test $ac_cv_func_setgrent_r = yes; then
27579 GROUP_R_SET_RESULT="#undef GROUP_R_SET_RESULT /*empty*/"
27580 GROUP_R_SET_RETURN="#define GROUP_R_SET_RETURN void"
27581 cat >>confdefs.h <<\_ACEOF
27582 #define NEED_SETGRENT_R 1
27596 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27597 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27598 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27599 echo $ECHO_N "(cached) $ECHO_C" >&6
27601 cat >conftest.$ac_ext <<_ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h. */
27607 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27609 #define gethostbyname_r innocuous_gethostbyname_r
27611 /* System header to define __stub macros and hopefully few prototypes,
27612 which can conflict with char gethostbyname_r (); below.
27613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27614 <limits.h> exists even on freestanding compilers. */
27617 # include <limits.h>
27619 # include <assert.h>
27622 #undef gethostbyname_r
27624 /* Override any gcc2 internal prototype to avoid an error. */
27629 /* We use char because int might match the return type of a gcc2
27630 builtin and then its argument prototype would still apply. */
27631 char gethostbyname_r ();
27632 /* The GNU C library defines this for functions which it implements
27633 to always fail with ENOSYS. Some functions are actually named
27634 something starting with __ and the normal name is an alias. */
27635 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27638 char (*f) () = gethostbyname_r;
27647 return f != gethostbyname_r;
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27654 (eval $ac_link) 2>conftest.er1
27656 grep -v '^ *+' conftest.er1 >conftest.err
27658 cat conftest.err >&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } &&
27661 { ac_try='test -z "$ac_c_werror_flag"
27662 || test ! -s conftest.err'
27663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664 (eval $ac_try) 2>&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; } &&
27668 { ac_try='test -s conftest$ac_exeext'
27669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670 (eval $ac_try) 2>&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; }; then
27674 ac_cv_func_gethostbyname_r=yes
27676 echo "$as_me: failed program was:" >&5
27677 sed 's/^/| /' conftest.$ac_ext >&5
27679 ac_cv_func_gethostbyname_r=no
27681 rm -f conftest.err conftest.$ac_objext \
27682 conftest$ac_exeext conftest.$ac_ext
27684 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27685 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27686 if test $ac_cv_func_gethostbyname_r = yes; then
27687 cat >conftest.$ac_ext <<_ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27697 struct hostent *gethostbyname_r
27698 (const char *name, struct hostent *hp, char *buf, int len, int *h_errnop) {}
27708 rm -f conftest.$ac_objext
27709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27710 (eval $ac_compile) 2>conftest.er1
27712 grep -v '^ *+' conftest.er1 >conftest.err
27714 cat conftest.err >&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); } &&
27717 { ac_try='test -z "$ac_c_werror_flag"
27718 || test ! -s conftest.err'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; } &&
27724 { ac_try='test -s conftest.$ac_objext'
27725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
27731 HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
27732 HOST_R_BAD="#define HOST_R_BAD NULL"
27733 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27734 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27735 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27736 HOST_R_OK="#define HOST_R_OK hptr"
27737 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"
27738 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27739 HOSTENT_DATA="#undef HOSTENT_DATA"
27743 echo "$as_me: failed program was:" >&5
27744 sed 's/^/| /' conftest.$ac_ext >&5
27746 cat >conftest.$ac_ext <<_ACEOF
27749 cat confdefs.h >>conftest.$ac_ext
27750 cat >>conftest.$ac_ext <<_ACEOF
27751 /* end confdefs.h. */
27756 int gethostbyname_r(const char *name,
27757 struct hostent *result,
27758 struct hostent_data *hdptr);
27768 rm -f conftest.$ac_objext
27769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27770 (eval $ac_compile) 2>conftest.er1
27772 grep -v '^ *+' conftest.er1 >conftest.err
27774 cat conftest.err >&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); } &&
27777 { ac_try='test -z "$ac_c_werror_flag"
27778 || test ! -s conftest.err'
27779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780 (eval $ac_try) 2>&5
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; } &&
27784 { ac_try='test -s conftest.$ac_objext'
27785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786 (eval $ac_try) 2>&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); }; }; then
27791 HOST_R_ARGS="#define HOST_R_ARGS struct hostent_data *hdptr"
27792 HOST_R_BAD="#define HOST_R_BAD (-1)"
27793 HOST_R_COPY="#define HOST_R_COPY hdptr"
27794 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS HOST_R_ARGS"
27795 HOST_R_ERRNO="#undef HOST_R_ERRNO"
27796 HOST_R_OK="#define HOST_R_OK 0"
27797 HOST_R_RETURN="#define HOST_R_RETURN int"
27798 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27799 HOSTENT_DATA="#define HOSTENT_DATA 1"
27802 echo "$as_me: failed program was:" >&5
27803 sed 's/^/| /' conftest.$ac_ext >&5
27805 cat >conftest.$ac_ext <<_ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27815 extern int gethostbyname_r (const char *,
27829 rm -f conftest.$ac_objext
27830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27831 (eval $ac_compile) 2>conftest.er1
27833 grep -v '^ *+' conftest.er1 >conftest.err
27835 cat conftest.err >&5
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); } &&
27838 { ac_try='test -z "$ac_c_werror_flag"
27839 || test ! -s conftest.err'
27840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841 (eval $ac_try) 2>&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); }; } &&
27845 { ac_try='test -s conftest.$ac_objext'
27846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847 (eval $ac_try) 2>&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); }; }; then
27852 HOST_R_ARGS="#define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop"
27853 HOST_R_BAD="#define HOST_R_BAD ERANGE"
27854 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27855 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27856 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27857 HOST_R_OK="#define HOST_R_OK 0"
27858 HOST_R_RETURN="#define HOST_R_RETURN int"
27859 HOST_R_SETANSWER="#define HOST_R_SETANSWER 1"
27860 HOSTENT_DATA="#undef HOSTENT_DATA"
27863 echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27874 HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
27875 HOST_R_BAD="#define HOST_R_BAD NULL"
27876 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27877 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27878 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27879 HOST_R_OK="#define HOST_R_OK hptr"
27880 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"
27881 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27882 HOSTENT_DATA="#undef HOSTENT_DATA"
27901 echo "$as_me:$LINENO: checking for endhostent_r" >&5
27902 echo $ECHO_N "checking for endhostent_r... $ECHO_C" >&6
27903 if test "${ac_cv_func_endhostent_r+set}" = set; then
27904 echo $ECHO_N "(cached) $ECHO_C" >&6
27906 cat >conftest.$ac_ext <<_ACEOF
27909 cat confdefs.h >>conftest.$ac_ext
27910 cat >>conftest.$ac_ext <<_ACEOF
27911 /* end confdefs.h. */
27912 /* Define endhostent_r to an innocuous variant, in case <limits.h> declares endhostent_r.
27913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27914 #define endhostent_r innocuous_endhostent_r
27916 /* System header to define __stub macros and hopefully few prototypes,
27917 which can conflict with char endhostent_r (); below.
27918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27919 <limits.h> exists even on freestanding compilers. */
27922 # include <limits.h>
27924 # include <assert.h>
27927 #undef endhostent_r
27929 /* Override any gcc2 internal prototype to avoid an error. */
27934 /* We use char because int might match the return type of a gcc2
27935 builtin and then its argument prototype would still apply. */
27936 char endhostent_r ();
27937 /* The GNU C library defines this for functions which it implements
27938 to always fail with ENOSYS. Some functions are actually named
27939 something starting with __ and the normal name is an alias. */
27940 #if defined (__stub_endhostent_r) || defined (__stub___endhostent_r)
27943 char (*f) () = endhostent_r;
27952 return f != endhostent_r;
27957 rm -f conftest.$ac_objext conftest$ac_exeext
27958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27959 (eval $ac_link) 2>conftest.er1
27961 grep -v '^ *+' conftest.er1 >conftest.err
27963 cat conftest.err >&5
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); } &&
27966 { ac_try='test -z "$ac_c_werror_flag"
27967 || test ! -s conftest.err'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; } &&
27973 { ac_try='test -s conftest$ac_exeext'
27974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975 (eval $ac_try) 2>&5
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; }; then
27979 ac_cv_func_endhostent_r=yes
27981 echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27984 ac_cv_func_endhostent_r=no
27986 rm -f conftest.err conftest.$ac_objext \
27987 conftest$ac_exeext conftest.$ac_ext
27989 echo "$as_me:$LINENO: result: $ac_cv_func_endhostent_r" >&5
27990 echo "${ECHO_T}$ac_cv_func_endhostent_r" >&6
27991 if test $ac_cv_func_endhostent_r = yes; then
27992 cat >conftest.$ac_ext <<_ACEOF
27995 cat confdefs.h >>conftest.$ac_ext
27996 cat >>conftest.$ac_ext <<_ACEOF
27997 /* end confdefs.h. */
28004 int endhostent_r(struct hostent_data *buffer);
28014 rm -f conftest.$ac_objext
28015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28016 (eval $ac_compile) 2>conftest.er1
28018 grep -v '^ *+' conftest.er1 >conftest.err
28020 cat conftest.err >&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); } &&
28023 { ac_try='test -z "$ac_c_werror_flag"
28024 || test ! -s conftest.err'
28025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28026 (eval $ac_try) 2>&5
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); }; } &&
28030 { ac_try='test -s conftest.$ac_objext'
28031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032 (eval $ac_try) 2>&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); }; }; then
28036 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) return (x)"
28037 HOST_R_END_RETURN="#define HOST_R_END_RETURN int"
28038 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
28041 echo "$as_me: failed program was:" >&5
28042 sed 's/^/| /' conftest.$ac_ext >&5
28044 cat >conftest.$ac_ext <<_ACEOF
28047 cat confdefs.h >>conftest.$ac_ext
28048 cat >>conftest.$ac_ext <<_ACEOF
28049 /* end confdefs.h. */
28056 extern void endhostent_r(struct hostent_data *ht_data);
28066 rm -f conftest.$ac_objext
28067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28068 (eval $ac_compile) 2>conftest.er1
28070 grep -v '^ *+' conftest.er1 >conftest.err
28072 cat conftest.err >&5
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); } &&
28075 { ac_try='test -z "$ac_c_werror_flag"
28076 || test ! -s conftest.err'
28077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28078 (eval $ac_try) 2>&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try='test -s conftest.$ac_objext'
28083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084 (eval $ac_try) 2>&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; }; then
28089 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x)"
28090 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
28091 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
28094 echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28097 cat >conftest.$ac_ext <<_ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h. */
28109 extern void endhostent_r(void);
28119 rm -f conftest.$ac_objext
28120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28121 (eval $ac_compile) 2>conftest.er1
28123 grep -v '^ *+' conftest.er1 >conftest.err
28125 cat conftest.err >&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); } &&
28128 { ac_try='test -z "$ac_c_werror_flag"
28129 || test ! -s conftest.err'
28130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131 (eval $ac_try) 2>&5
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); }; } &&
28135 { ac_try='test -s conftest.$ac_objext'
28136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28137 (eval $ac_try) 2>&5
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); }; }; then
28142 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"
28143 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
28144 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/"
28147 echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28160 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"
28161 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
28162 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/"
28175 echo "$as_me:$LINENO: checking for sethostent_r" >&5
28176 echo $ECHO_N "checking for sethostent_r... $ECHO_C" >&6
28177 if test "${ac_cv_func_sethostent_r+set}" = set; then
28178 echo $ECHO_N "(cached) $ECHO_C" >&6
28180 cat >conftest.$ac_ext <<_ACEOF
28183 cat confdefs.h >>conftest.$ac_ext
28184 cat >>conftest.$ac_ext <<_ACEOF
28185 /* end confdefs.h. */
28186 /* Define sethostent_r to an innocuous variant, in case <limits.h> declares sethostent_r.
28187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28188 #define sethostent_r innocuous_sethostent_r
28190 /* System header to define __stub macros and hopefully few prototypes,
28191 which can conflict with char sethostent_r (); below.
28192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28193 <limits.h> exists even on freestanding compilers. */
28196 # include <limits.h>
28198 # include <assert.h>
28201 #undef sethostent_r
28203 /* Override any gcc2 internal prototype to avoid an error. */
28208 /* We use char because int might match the return type of a gcc2
28209 builtin and then its argument prototype would still apply. */
28210 char sethostent_r ();
28211 /* The GNU C library defines this for functions which it implements
28212 to always fail with ENOSYS. Some functions are actually named
28213 something starting with __ and the normal name is an alias. */
28214 #if defined (__stub_sethostent_r) || defined (__stub___sethostent_r)
28217 char (*f) () = sethostent_r;
28226 return f != sethostent_r;
28231 rm -f conftest.$ac_objext conftest$ac_exeext
28232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28233 (eval $ac_link) 2>conftest.er1
28235 grep -v '^ *+' conftest.er1 >conftest.err
28237 cat conftest.err >&5
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); } &&
28240 { ac_try='test -z "$ac_c_werror_flag"
28241 || test ! -s conftest.err'
28242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243 (eval $ac_try) 2>&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); }; } &&
28247 { ac_try='test -s conftest$ac_exeext'
28248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249 (eval $ac_try) 2>&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; }; then
28253 ac_cv_func_sethostent_r=yes
28255 echo "$as_me: failed program was:" >&5
28256 sed 's/^/| /' conftest.$ac_ext >&5
28258 ac_cv_func_sethostent_r=no
28260 rm -f conftest.err conftest.$ac_objext \
28261 conftest$ac_exeext conftest.$ac_ext
28263 echo "$as_me:$LINENO: result: $ac_cv_func_sethostent_r" >&5
28264 echo "${ECHO_T}$ac_cv_func_sethostent_r" >&6
28265 if test $ac_cv_func_sethostent_r = yes; then
28266 cat >conftest.$ac_ext <<_ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h. */
28278 extern void sethostent_r(int flag, struct hostent_data *ht_data);
28287 rm -f conftest.$ac_objext
28288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28289 (eval $ac_compile) 2>conftest.er1
28291 grep -v '^ *+' conftest.er1 >conftest.err
28293 cat conftest.err >&5
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); } &&
28296 { ac_try='test -z "$ac_c_werror_flag"
28297 || test ! -s conftest.err'
28298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299 (eval $ac_try) 2>&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; } &&
28303 { ac_try='test -s conftest.$ac_objext'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; }; then
28309 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT /*empty*/"
28310 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28315 cat >conftest.$ac_ext <<_ACEOF
28318 cat confdefs.h >>conftest.$ac_ext
28319 cat >>conftest.$ac_ext <<_ACEOF
28320 /* end confdefs.h. */
28327 extern int sethostent_r(int flag, struct hostent_data *ht_data);
28336 rm -f conftest.$ac_objext
28337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28338 (eval $ac_compile) 2>conftest.er1
28340 grep -v '^ *+' conftest.er1 >conftest.err
28342 cat conftest.err >&5
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); } &&
28345 { ac_try='test -z "$ac_c_werror_flag"
28346 || test ! -s conftest.err'
28347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348 (eval $ac_try) 2>&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; } &&
28352 { ac_try='test -s conftest.$ac_objext'
28353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28354 (eval $ac_try) 2>&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); }; }; then
28358 HOST_R_SET_RESULT="#define HOST_R_SET_RESULT 0"
28359 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN int"
28361 echo "$as_me: failed program was:" >&5
28362 sed 's/^/| /' conftest.$ac_ext >&5
28364 cat >conftest.$ac_ext <<_ACEOF
28367 cat confdefs.h >>conftest.$ac_ext
28368 cat >>conftest.$ac_ext <<_ACEOF
28369 /* end confdefs.h. */
28376 void sethostent_r (int);
28385 rm -f conftest.$ac_objext
28386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28387 (eval $ac_compile) 2>conftest.er1
28389 grep -v '^ *+' conftest.er1 >conftest.err
28391 cat conftest.err >&5
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); } &&
28394 { ac_try='test -z "$ac_c_werror_flag"
28395 || test ! -s conftest.err'
28396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397 (eval $ac_try) 2>&5
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); }; } &&
28401 { ac_try='test -s conftest.$ac_objext'
28402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403 (eval $ac_try) 2>&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; }; then
28407 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"
28408 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
28410 echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28423 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"
28424 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
28433 echo "$as_me:$LINENO: checking struct passwd element pw_class" >&5
28434 echo $ECHO_N "checking struct passwd element pw_class... $ECHO_C" >&6
28435 cat >conftest.$ac_ext <<_ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h. */
28442 #include <sys/types.h>
28448 struct passwd *pw; pw->pw_class = "";
28453 rm -f conftest.$ac_objext
28454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28455 (eval $ac_compile) 2>conftest.er1
28457 grep -v '^ *+' conftest.er1 >conftest.err
28459 cat conftest.err >&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } &&
28462 { ac_try='test -z "$ac_c_werror_flag"
28463 || test ! -s conftest.err'
28464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28465 (eval $ac_try) 2>&5
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); }; } &&
28469 { ac_try='test -s conftest.$ac_objext'
28470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28471 (eval $ac_try) 2>&5
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; }; then
28475 echo "$as_me:$LINENO: result: yes" >&5
28476 echo "${ECHO_T}yes" >&6
28477 cat >>confdefs.h <<\_ACEOF
28478 #define HAS_PW_CLASS 1
28483 echo "$as_me: failed program was:" >&5
28484 sed 's/^/| /' conftest.$ac_ext >&5
28486 echo "$as_me:$LINENO: result: no" >&5
28487 echo "${ECHO_T}no" >&6
28490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28492 cat >conftest.$ac_ext <<_ACEOF
28495 cat confdefs.h >>conftest.$ac_ext
28496 cat >>conftest.$ac_ext <<_ACEOF
28497 /* end confdefs.h. */
28499 #include <sys/types.h>
28512 rm -f conftest.$ac_objext
28513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28514 (eval $ac_compile) 2>conftest.er1
28516 grep -v '^ *+' conftest.er1 >conftest.err
28518 cat conftest.err >&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); } &&
28521 { ac_try='test -z "$ac_c_werror_flag"
28522 || test ! -s conftest.err'
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; } &&
28528 { ac_try='test -s conftest.$ac_objext'
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28534 SETPWENT_VOID="#define SETPWENT_VOID 1"
28537 echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28540 SETPWENT_VOID="#undef SETPWENT_VOID"
28543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28546 cat >conftest.$ac_ext <<_ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h. */
28553 #include <sys/types.h>
28566 rm -f conftest.$ac_objext
28567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28568 (eval $ac_compile) 2>conftest.er1
28570 grep -v '^ *+' conftest.er1 >conftest.err
28572 cat conftest.err >&5
28573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574 (exit $ac_status); } &&
28575 { ac_try='test -z "$ac_c_werror_flag"
28576 || test ! -s conftest.err'
28577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578 (eval $ac_try) 2>&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; } &&
28582 { ac_try='test -s conftest.$ac_objext'
28583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584 (eval $ac_try) 2>&5
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); }; }; then
28588 SETGRENT_VOID="#define SETGRENT_VOID 1"
28591 echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28594 SETGRENT_VOID="#undef SETGRENT_VOID"
28597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28604 echo "$as_me:$LINENO: checking for getnetgrent_r" >&5
28605 echo $ECHO_N "checking for getnetgrent_r... $ECHO_C" >&6
28606 if test "${ac_cv_func_getnetgrent_r+set}" = set; then
28607 echo $ECHO_N "(cached) $ECHO_C" >&6
28609 cat >conftest.$ac_ext <<_ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h. */
28615 /* Define getnetgrent_r to an innocuous variant, in case <limits.h> declares getnetgrent_r.
28616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28617 #define getnetgrent_r innocuous_getnetgrent_r
28619 /* System header to define __stub macros and hopefully few prototypes,
28620 which can conflict with char getnetgrent_r (); below.
28621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28622 <limits.h> exists even on freestanding compilers. */
28625 # include <limits.h>
28627 # include <assert.h>
28630 #undef getnetgrent_r
28632 /* Override any gcc2 internal prototype to avoid an error. */
28637 /* We use char because int might match the return type of a gcc2
28638 builtin and then its argument prototype would still apply. */
28639 char getnetgrent_r ();
28640 /* The GNU C library defines this for functions which it implements
28641 to always fail with ENOSYS. Some functions are actually named
28642 something starting with __ and the normal name is an alias. */
28643 #if defined (__stub_getnetgrent_r) || defined (__stub___getnetgrent_r)
28646 char (*f) () = getnetgrent_r;
28655 return f != getnetgrent_r;
28660 rm -f conftest.$ac_objext conftest$ac_exeext
28661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28662 (eval $ac_link) 2>conftest.er1
28664 grep -v '^ *+' conftest.er1 >conftest.err
28666 cat conftest.err >&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); } &&
28669 { ac_try='test -z "$ac_c_werror_flag"
28670 || test ! -s conftest.err'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest$ac_exeext'
28677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678 (eval $ac_try) 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 ac_cv_func_getnetgrent_r=yes
28684 echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28687 ac_cv_func_getnetgrent_r=no
28689 rm -f conftest.err conftest.$ac_objext \
28690 conftest$ac_exeext conftest.$ac_ext
28692 echo "$as_me:$LINENO: result: $ac_cv_func_getnetgrent_r" >&5
28693 echo "${ECHO_T}$ac_cv_func_getnetgrent_r" >&6
28694 if test $ac_cv_func_getnetgrent_r = yes; then
28695 cat >conftest.$ac_ext <<_ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h. */
28705 int getnetgrent_r(char **m, char **u, char **d, char *b, int l) {}
28716 rm -f conftest.$ac_objext
28717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28718 (eval $ac_compile) 2>conftest.er1
28720 grep -v '^ *+' conftest.er1 >conftest.err
28722 cat conftest.err >&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); } &&
28725 { ac_try='test -z "$ac_c_werror_flag"
28726 || test ! -s conftest.err'
28727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28728 (eval $ac_try) 2>&5
28730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); }; } &&
28732 { ac_try='test -s conftest.$ac_objext'
28733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734 (eval $ac_try) 2>&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
28739 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
28740 NGR_R_BAD="#define NGR_R_BAD (0)"
28741 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28742 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28743 NGR_R_OK="#define NGR_R_OK 1"
28744 NGR_R_RETURN="#define NGR_R_RETURN int"
28748 echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28751 cat >conftest.$ac_ext <<_ACEOF
28754 cat confdefs.h >>conftest.$ac_ext
28755 cat >>conftest.$ac_ext <<_ACEOF
28756 /* end confdefs.h. */
28761 int getnetgrent_r(char **m, char **u, char **d, char *b, size_t l) {}
28772 rm -f conftest.$ac_objext
28773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28774 (eval $ac_compile) 2>conftest.er1
28776 grep -v '^ *+' conftest.er1 >conftest.err
28778 cat conftest.err >&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } &&
28781 { ac_try='test -z "$ac_c_werror_flag"
28782 || test ! -s conftest.err'
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; } &&
28788 { ac_try='test -s conftest.$ac_objext'
28789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790 (eval $ac_try) 2>&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28795 NGR_R_ARGS="#define NGR_R_ARGS char *buf, size_t buflen"
28796 NGR_R_BAD="#define NGR_R_BAD (0)"
28797 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28798 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28799 NGR_R_OK="#define NGR_R_OK 1"
28800 NGR_R_RETURN="#define NGR_R_RETURN int"
28804 echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28807 cat >conftest.$ac_ext <<_ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28817 extern int getnetgrent_r( char **, char **, char **, void **);
28828 rm -f conftest.$ac_objext
28829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28830 (eval $ac_compile) 2>conftest.er1
28832 grep -v '^ *+' conftest.er1 >conftest.err
28834 cat conftest.err >&5
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); } &&
28837 { ac_try='test -z "$ac_c_werror_flag"
28838 || test ! -s conftest.err'
28839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840 (eval $ac_try) 2>&5
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); }; } &&
28844 { ac_try='test -s conftest.$ac_objext'
28845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846 (eval $ac_try) 2>&5
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; }; then
28851 NGR_R_ARGS="#define NGR_R_ARGS void **buf"
28852 NGR_R_BAD="#define NGR_R_BAD (0)"
28853 NGR_R_COPY="#define NGR_R_COPY buf"
28854 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28855 NGR_R_OK="#define NGR_R_OK 1"
28856 NGR_R_RETURN="#define NGR_R_RETURN int"
28857 NGR_R_PRIVATE="#define NGR_R_PRIVATE 1"
28861 echo "$as_me: failed program was:" >&5
28862 sed 's/^/| /' conftest.$ac_ext >&5
28865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28874 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
28875 NGR_R_BAD="#define NGR_R_BAD (0)"
28876 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28877 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28878 NGR_R_OK="#define NGR_R_OK 1"
28879 NGR_R_RETURN="#define NGR_R_RETURN int"
28892 echo "$as_me:$LINENO: checking for endnetgrent_r" >&5
28893 echo $ECHO_N "checking for endnetgrent_r... $ECHO_C" >&6
28894 if test "${ac_cv_func_endnetgrent_r+set}" = set; then
28895 echo $ECHO_N "(cached) $ECHO_C" >&6
28897 cat >conftest.$ac_ext <<_ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h. */
28903 /* Define endnetgrent_r to an innocuous variant, in case <limits.h> declares endnetgrent_r.
28904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28905 #define endnetgrent_r innocuous_endnetgrent_r
28907 /* System header to define __stub macros and hopefully few prototypes,
28908 which can conflict with char endnetgrent_r (); below.
28909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28910 <limits.h> exists even on freestanding compilers. */
28913 # include <limits.h>
28915 # include <assert.h>
28918 #undef endnetgrent_r
28920 /* Override any gcc2 internal prototype to avoid an error. */
28925 /* We use char because int might match the return type of a gcc2
28926 builtin and then its argument prototype would still apply. */
28927 char endnetgrent_r ();
28928 /* The GNU C library defines this for functions which it implements
28929 to always fail with ENOSYS. Some functions are actually named
28930 something starting with __ and the normal name is an alias. */
28931 #if defined (__stub_endnetgrent_r) || defined (__stub___endnetgrent_r)
28934 char (*f) () = endnetgrent_r;
28943 return f != endnetgrent_r;
28948 rm -f conftest.$ac_objext conftest$ac_exeext
28949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28950 (eval $ac_link) 2>conftest.er1
28952 grep -v '^ *+' conftest.er1 >conftest.err
28954 cat conftest.err >&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } &&
28957 { ac_try='test -z "$ac_c_werror_flag"
28958 || test ! -s conftest.err'
28959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28960 (eval $ac_try) 2>&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); }; } &&
28964 { ac_try='test -s conftest$ac_exeext'
28965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28966 (eval $ac_try) 2>&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); }; }; then
28970 ac_cv_func_endnetgrent_r=yes
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28975 ac_cv_func_endnetgrent_r=no
28977 rm -f conftest.err conftest.$ac_objext \
28978 conftest$ac_exeext conftest.$ac_ext
28980 echo "$as_me:$LINENO: result: $ac_cv_func_endnetgrent_r" >&5
28981 echo "${ECHO_T}$ac_cv_func_endnetgrent_r" >&6
28982 if test $ac_cv_func_endnetgrent_r = yes; then
28983 cat >conftest.$ac_ext <<_ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h. */
28993 void endnetgrent_r(void **ptr);
29005 rm -f conftest.$ac_objext
29006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29007 (eval $ac_compile) 2>conftest.er1
29009 grep -v '^ *+' conftest.er1 >conftest.err
29011 cat conftest.err >&5
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); } &&
29014 { ac_try='test -z "$ac_c_werror_flag"
29015 || test ! -s conftest.err'
29016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29017 (eval $ac_try) 2>&5
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); }; } &&
29021 { ac_try='test -s conftest.$ac_objext'
29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023 (eval $ac_try) 2>&5
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; }; then
29028 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /* empty */"
29029 NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
29030 NGR_R_ENT_ARGS="#define NGR_R_ENT_ARGS NGR_R_ARGS"
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29038 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) return (x)"
29039 NGR_R_END_RETURN="#define NGR_R_END_RETURN int"
29040 NGR_R_ENT_ARGS="#define NGR_R_ENT_ARGS NGR_R_ARGS"
29044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29047 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /*empty*/"
29048 NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
29049 NGR_R_ENT_ARGS="#undef NGR_R_ENT_ARGS /*empty*/"
29050 cat >>confdefs.h <<\_ACEOF
29051 #define NEED_ENDNETGRENT_R 1
29061 echo "$as_me:$LINENO: checking for setnetgrent_r" >&5
29062 echo $ECHO_N "checking for setnetgrent_r... $ECHO_C" >&6
29063 if test "${ac_cv_func_setnetgrent_r+set}" = set; then
29064 echo $ECHO_N "(cached) $ECHO_C" >&6
29066 cat >conftest.$ac_ext <<_ACEOF
29069 cat confdefs.h >>conftest.$ac_ext
29070 cat >>conftest.$ac_ext <<_ACEOF
29071 /* end confdefs.h. */
29072 /* Define setnetgrent_r to an innocuous variant, in case <limits.h> declares setnetgrent_r.
29073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29074 #define setnetgrent_r innocuous_setnetgrent_r
29076 /* System header to define __stub macros and hopefully few prototypes,
29077 which can conflict with char setnetgrent_r (); below.
29078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29079 <limits.h> exists even on freestanding compilers. */
29082 # include <limits.h>
29084 # include <assert.h>
29087 #undef setnetgrent_r
29089 /* Override any gcc2 internal prototype to avoid an error. */
29094 /* We use char because int might match the return type of a gcc2
29095 builtin and then its argument prototype would still apply. */
29096 char setnetgrent_r ();
29097 /* The GNU C library defines this for functions which it implements
29098 to always fail with ENOSYS. Some functions are actually named
29099 something starting with __ and the normal name is an alias. */
29100 #if defined (__stub_setnetgrent_r) || defined (__stub___setnetgrent_r)
29103 char (*f) () = setnetgrent_r;
29112 return f != setnetgrent_r;
29117 rm -f conftest.$ac_objext conftest$ac_exeext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29119 (eval $ac_link) 2>conftest.er1
29121 grep -v '^ *+' conftest.er1 >conftest.err
29123 cat conftest.err >&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
29126 { ac_try='test -z "$ac_c_werror_flag"
29127 || test ! -s conftest.err'
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; } &&
29133 { ac_try='test -s conftest$ac_exeext'
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; }; then
29139 ac_cv_func_setnetgrent_r=yes
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_cv_func_setnetgrent_r=no
29146 rm -f conftest.err conftest.$ac_objext \
29147 conftest$ac_exeext conftest.$ac_ext
29149 echo "$as_me:$LINENO: result: $ac_cv_func_setnetgrent_r" >&5
29150 echo "${ECHO_T}$ac_cv_func_setnetgrent_r" >&6
29151 if test $ac_cv_func_setnetgrent_r = yes; then
29155 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
29156 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
29159 NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK"
29160 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int"
29166 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
29167 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
29174 echo "$as_me:$LINENO: checking for innetgr_r" >&5
29175 echo $ECHO_N "checking for innetgr_r... $ECHO_C" >&6
29176 if test "${ac_cv_func_innetgr_r+set}" = set; then
29177 echo $ECHO_N "(cached) $ECHO_C" >&6
29179 cat >conftest.$ac_ext <<_ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h. */
29185 /* Define innetgr_r to an innocuous variant, in case <limits.h> declares innetgr_r.
29186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29187 #define innetgr_r innocuous_innetgr_r
29189 /* System header to define __stub macros and hopefully few prototypes,
29190 which can conflict with char innetgr_r (); below.
29191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29192 <limits.h> exists even on freestanding compilers. */
29195 # include <limits.h>
29197 # include <assert.h>
29202 /* Override any gcc2 internal prototype to avoid an error. */
29207 /* We use char because int might match the return type of a gcc2
29208 builtin and then its argument prototype would still apply. */
29210 /* The GNU C library defines this for functions which it implements
29211 to always fail with ENOSYS. Some functions are actually named
29212 something starting with __ and the normal name is an alias. */
29213 #if defined (__stub_innetgr_r) || defined (__stub___innetgr_r)
29216 char (*f) () = innetgr_r;
29225 return f != innetgr_r;
29230 rm -f conftest.$ac_objext conftest$ac_exeext
29231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29232 (eval $ac_link) 2>conftest.er1
29234 grep -v '^ *+' conftest.er1 >conftest.err
29236 cat conftest.err >&5
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } &&
29239 { ac_try='test -z "$ac_c_werror_flag"
29240 || test ! -s conftest.err'
29241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242 (eval $ac_try) 2>&5
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest$ac_exeext'
29247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248 (eval $ac_try) 2>&5
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; }; then
29252 ac_cv_func_innetgr_r=yes
29254 echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29257 ac_cv_func_innetgr_r=no
29259 rm -f conftest.err conftest.$ac_objext \
29260 conftest$ac_exeext conftest.$ac_ext
29262 echo "$as_me:$LINENO: result: $ac_cv_func_innetgr_r" >&5
29263 echo "${ECHO_T}$ac_cv_func_innetgr_r" >&6
29264 if test $ac_cv_func_innetgr_r = yes; then
29267 cat >>confdefs.h <<\_ACEOF
29268 #define NEED_INNETGR_R 1
29278 echo "$as_me:$LINENO: checking for getprotoent_r" >&5
29279 echo $ECHO_N "checking for getprotoent_r... $ECHO_C" >&6
29280 if test "${ac_cv_func_getprotoent_r+set}" = set; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29283 cat >conftest.$ac_ext <<_ACEOF
29286 cat confdefs.h >>conftest.$ac_ext
29287 cat >>conftest.$ac_ext <<_ACEOF
29288 /* end confdefs.h. */
29289 /* Define getprotoent_r to an innocuous variant, in case <limits.h> declares getprotoent_r.
29290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29291 #define getprotoent_r innocuous_getprotoent_r
29293 /* System header to define __stub macros and hopefully few prototypes,
29294 which can conflict with char getprotoent_r (); below.
29295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29296 <limits.h> exists even on freestanding compilers. */
29299 # include <limits.h>
29301 # include <assert.h>
29304 #undef getprotoent_r
29306 /* Override any gcc2 internal prototype to avoid an error. */
29311 /* We use char because int might match the return type of a gcc2
29312 builtin and then its argument prototype would still apply. */
29313 char getprotoent_r ();
29314 /* The GNU C library defines this for functions which it implements
29315 to always fail with ENOSYS. Some functions are actually named
29316 something starting with __ and the normal name is an alias. */
29317 #if defined (__stub_getprotoent_r) || defined (__stub___getprotoent_r)
29320 char (*f) () = getprotoent_r;
29329 return f != getprotoent_r;
29334 rm -f conftest.$ac_objext conftest$ac_exeext
29335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29336 (eval $ac_link) 2>conftest.er1
29338 grep -v '^ *+' conftest.er1 >conftest.err
29340 cat conftest.err >&5
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); } &&
29343 { ac_try='test -z "$ac_c_werror_flag"
29344 || test ! -s conftest.err'
29345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29346 (eval $ac_try) 2>&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; } &&
29350 { ac_try='test -s conftest$ac_exeext'
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
29356 ac_cv_func_getprotoent_r=yes
29358 echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29361 ac_cv_func_getprotoent_r=no
29363 rm -f conftest.err conftest.$ac_objext \
29364 conftest$ac_exeext conftest.$ac_ext
29366 echo "$as_me:$LINENO: result: $ac_cv_func_getprotoent_r" >&5
29367 echo "${ECHO_T}$ac_cv_func_getprotoent_r" >&6
29368 if test $ac_cv_func_getprotoent_r = yes; then
29369 cat >conftest.$ac_ext <<_ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h. */
29379 struct protoent *getprotoent_r(struct protoent *result,
29380 char *buffer, int buflen) {}
29392 rm -f conftest.$ac_objext
29393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29394 (eval $ac_compile) 2>conftest.er1
29396 grep -v '^ *+' conftest.er1 >conftest.err
29398 cat conftest.err >&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); } &&
29401 { ac_try='test -z "$ac_c_werror_flag"
29402 || test ! -s conftest.err'
29403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404 (eval $ac_try) 2>&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); }; } &&
29408 { ac_try='test -s conftest.$ac_objext'
29409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410 (eval $ac_try) 2>&5
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; }; then
29415 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
29416 PROTO_R_BAD="#define PROTO_R_BAD NULL"
29417 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
29418 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
29419 PROTO_R_OK="#define PROTO_R_OK pptr"
29420 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
29421 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
29422 PROTOENT_DATA="#undef PROTOENT_DATA"
29426 echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29429 cat >conftest.$ac_ext <<_ACEOF
29432 cat confdefs.h >>conftest.$ac_ext
29433 cat >>conftest.$ac_ext <<_ACEOF
29434 /* end confdefs.h. */
29439 int getprotoent_r (struct protoent *, char *, size_t, struct protoent **);
29452 rm -f conftest.$ac_objext
29453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29454 (eval $ac_compile) 2>conftest.er1
29456 grep -v '^ *+' conftest.er1 >conftest.err
29458 cat conftest.err >&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); } &&
29461 { ac_try='test -z "$ac_c_werror_flag"
29462 || test ! -s conftest.err'
29463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464 (eval $ac_try) 2>&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); }; } &&
29468 { ac_try='test -s conftest.$ac_objext'
29469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; }; then
29475 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp"
29476 PROTO_R_BAD="#define PROTO_R_BAD ERANGE"
29477 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
29478 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS char *buf, size_t buflen"
29479 PROTO_R_OK="#define PROTO_R_OK 0"
29480 PROTO_R_SETANSWER="#define PROTO_R_SETANSWER 1"
29481 PROTO_R_RETURN="#define PROTO_R_RETURN int"
29482 PROTOENT_DATA="#undef PROTOENT_DATA"
29486 echo "$as_me: failed program was:" >&5
29487 sed 's/^/| /' conftest.$ac_ext >&5
29489 cat >conftest.$ac_ext <<_ACEOF
29492 cat confdefs.h >>conftest.$ac_ext
29493 cat >>conftest.$ac_ext <<_ACEOF
29494 /* end confdefs.h. */
29499 int getprotoent_r (struct protoent *, struct protoent_data *prot_data);
29512 rm -f conftest.$ac_objext
29513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29514 (eval $ac_compile) 2>conftest.er1
29516 grep -v '^ *+' conftest.er1 >conftest.err
29518 cat conftest.err >&5
29519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); } &&
29521 { ac_try='test -z "$ac_c_werror_flag"
29522 || test ! -s conftest.err'
29523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524 (eval $ac_try) 2>&5
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; } &&
29528 { ac_try='test -s conftest.$ac_objext'
29529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530 (eval $ac_try) 2>&5
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); }; }; then
29535 PROTO_R_ARGS="#define PROTO_R_ARGS struct protoent_data *prot_data"
29536 PROTO_R_BAD="#define PROTO_R_BAD (-1)"
29537 PROTO_R_COPY="#define PROTO_R_COPY prot_data"
29538 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS struct protoent_data *pdptr"
29539 PROTO_R_OK="#define PROTO_R_OK 0"
29540 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
29541 PROTO_R_RETURN="#define PROTO_R_RETURN int"
29542 PROTOENT_DATA="#define PROTOENT_DATA 1"
29546 echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29559 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
29560 PROTO_R_BAD="#define PROTO_R_BAD NULL"
29561 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
29562 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
29563 PROTO_R_OK="#define PROTO_R_OK pptr"
29564 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
29565 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
29566 PROTOENT_DATA="#undef PROTOENT_DATA"
29585 echo "$as_me:$LINENO: checking for endprotoent_r" >&5
29586 echo $ECHO_N "checking for endprotoent_r... $ECHO_C" >&6
29587 if test "${ac_cv_func_endprotoent_r+set}" = set; then
29588 echo $ECHO_N "(cached) $ECHO_C" >&6
29590 cat >conftest.$ac_ext <<_ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h. */
29596 /* Define endprotoent_r to an innocuous variant, in case <limits.h> declares endprotoent_r.
29597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29598 #define endprotoent_r innocuous_endprotoent_r
29600 /* System header to define __stub macros and hopefully few prototypes,
29601 which can conflict with char endprotoent_r (); below.
29602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29603 <limits.h> exists even on freestanding compilers. */
29606 # include <limits.h>
29608 # include <assert.h>
29611 #undef endprotoent_r
29613 /* Override any gcc2 internal prototype to avoid an error. */
29618 /* We use char because int might match the return type of a gcc2
29619 builtin and then its argument prototype would still apply. */
29620 char endprotoent_r ();
29621 /* The GNU C library defines this for functions which it implements
29622 to always fail with ENOSYS. Some functions are actually named
29623 something starting with __ and the normal name is an alias. */
29624 #if defined (__stub_endprotoent_r) || defined (__stub___endprotoent_r)
29627 char (*f) () = endprotoent_r;
29636 return f != endprotoent_r;
29641 rm -f conftest.$ac_objext conftest$ac_exeext
29642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29643 (eval $ac_link) 2>conftest.er1
29645 grep -v '^ *+' conftest.er1 >conftest.err
29647 cat conftest.err >&5
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); } &&
29650 { ac_try='test -z "$ac_c_werror_flag"
29651 || test ! -s conftest.err'
29652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 (eval $ac_try) 2>&5
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; } &&
29657 { ac_try='test -s conftest$ac_exeext'
29658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29659 (eval $ac_try) 2>&5
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); }; }; then
29663 ac_cv_func_endprotoent_r=yes
29665 echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.$ac_ext >&5
29668 ac_cv_func_endprotoent_r=no
29670 rm -f conftest.err conftest.$ac_objext \
29671 conftest$ac_exeext conftest.$ac_ext
29673 echo "$as_me:$LINENO: result: $ac_cv_func_endprotoent_r" >&5
29674 echo "${ECHO_T}$ac_cv_func_endprotoent_r" >&6
29675 if test $ac_cv_func_endprotoent_r = yes; then
29676 cat >conftest.$ac_ext <<_ACEOF
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h. */
29688 void endprotoent_r(void);
29699 rm -f conftest.$ac_objext
29700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29701 (eval $ac_compile) 2>conftest.er1
29703 grep -v '^ *+' conftest.er1 >conftest.err
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); } &&
29708 { ac_try='test -z "$ac_c_werror_flag"
29709 || test ! -s conftest.err'
29710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29711 (eval $ac_try) 2>&5
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; } &&
29715 { ac_try='test -s conftest.$ac_objext'
29716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29717 (eval $ac_try) 2>&5
29719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720 (exit $ac_status); }; }; then
29722 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29723 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29724 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS"
29725 PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED"
29729 echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29732 cat >conftest.$ac_ext <<_ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h. */
29744 void endprotoent_r(struct protoent_data *);
29755 rm -f conftest.$ac_objext
29756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29757 (eval $ac_compile) 2>conftest.er1
29759 grep -v '^ *+' conftest.er1 >conftest.err
29761 cat conftest.err >&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); } &&
29764 { ac_try='test -z "$ac_c_werror_flag"
29765 || test ! -s conftest.err'
29766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29767 (eval $ac_try) 2>&5
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); }; } &&
29771 { ac_try='test -s conftest.$ac_objext'
29772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29773 (eval $ac_try) 2>&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; }; then
29778 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29779 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29780 PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"
29781 PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"
29785 echo "$as_me: failed program was:" >&5
29786 sed 's/^/| /' conftest.$ac_ext >&5
29788 cat >conftest.$ac_ext <<_ACEOF
29791 cat confdefs.h >>conftest.$ac_ext
29792 cat >>conftest.$ac_ext <<_ACEOF
29793 /* end confdefs.h. */
29800 int endprotoent_r(struct protoent_data *);
29811 rm -f conftest.$ac_objext
29812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29813 (eval $ac_compile) 2>conftest.er1
29815 grep -v '^ *+' conftest.er1 >conftest.err
29817 cat conftest.err >&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } &&
29820 { ac_try='test -z "$ac_c_werror_flag"
29821 || test ! -s conftest.err'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; } &&
29827 { ac_try='test -s conftest.$ac_objext'
29828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829 (eval $ac_try) 2>&5
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29834 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) return(0)"
29835 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN int"
29836 PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"
29837 PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29854 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29855 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29856 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS /*empty*/"
29857 PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED"
29871 echo "$as_me:$LINENO: checking for setprotoent_r" >&5
29872 echo $ECHO_N "checking for setprotoent_r... $ECHO_C" >&6
29873 if test "${ac_cv_func_setprotoent_r+set}" = set; then
29874 echo $ECHO_N "(cached) $ECHO_C" >&6
29876 cat >conftest.$ac_ext <<_ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h. */
29882 /* Define setprotoent_r to an innocuous variant, in case <limits.h> declares setprotoent_r.
29883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29884 #define setprotoent_r innocuous_setprotoent_r
29886 /* System header to define __stub macros and hopefully few prototypes,
29887 which can conflict with char setprotoent_r (); below.
29888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29889 <limits.h> exists even on freestanding compilers. */
29892 # include <limits.h>
29894 # include <assert.h>
29897 #undef setprotoent_r
29899 /* Override any gcc2 internal prototype to avoid an error. */
29904 /* We use char because int might match the return type of a gcc2
29905 builtin and then its argument prototype would still apply. */
29906 char setprotoent_r ();
29907 /* The GNU C library defines this for functions which it implements
29908 to always fail with ENOSYS. Some functions are actually named
29909 something starting with __ and the normal name is an alias. */
29910 #if defined (__stub_setprotoent_r) || defined (__stub___setprotoent_r)
29913 char (*f) () = setprotoent_r;
29922 return f != setprotoent_r;
29927 rm -f conftest.$ac_objext conftest$ac_exeext
29928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29929 (eval $ac_link) 2>conftest.er1
29931 grep -v '^ *+' conftest.er1 >conftest.err
29933 cat conftest.err >&5
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); } &&
29936 { ac_try='test -z "$ac_c_werror_flag"
29937 || test ! -s conftest.err'
29938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939 (eval $ac_try) 2>&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); }; } &&
29943 { ac_try='test -s conftest$ac_exeext'
29944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945 (eval $ac_try) 2>&5
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; }; then
29949 ac_cv_func_setprotoent_r=yes
29951 echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29954 ac_cv_func_setprotoent_r=no
29956 rm -f conftest.err conftest.$ac_objext \
29957 conftest$ac_exeext conftest.$ac_ext
29959 echo "$as_me:$LINENO: result: $ac_cv_func_setprotoent_r" >&5
29960 echo "${ECHO_T}$ac_cv_func_setprotoent_r" >&6
29961 if test $ac_cv_func_setprotoent_r = yes; then
29962 cat >conftest.$ac_ext <<_ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h. */
29974 void setprotoent_r __P((int));
29984 rm -f conftest.$ac_objext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29986 (eval $ac_compile) 2>conftest.er1
29988 grep -v '^ *+' conftest.er1 >conftest.err
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } &&
29993 { ac_try='test -z "$ac_c_werror_flag"
29994 || test ! -s conftest.err'
29995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996 (eval $ac_try) 2>&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; } &&
30000 { ac_try='test -s conftest.$ac_objext'
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; }; then
30006 PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"
30007 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void"
30010 echo "$as_me: failed program was:" >&5
30011 sed 's/^/| /' conftest.$ac_ext >&5
30013 cat >conftest.$ac_ext <<_ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h. */
30025 int setprotoent_r (int, struct protoent_data *);
30035 rm -f conftest.$ac_objext
30036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30037 (eval $ac_compile) 2>conftest.er1
30039 grep -v '^ *+' conftest.er1 >conftest.err
30041 cat conftest.err >&5
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); } &&
30044 { ac_try='test -z "$ac_c_werror_flag"
30045 || test ! -s conftest.err'
30046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30047 (eval $ac_try) 2>&5
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); }; } &&
30051 { ac_try='test -s conftest.$ac_objext'
30052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30053 (eval $ac_try) 2>&5
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); }; }; then
30057 PROTO_R_SET_RESULT="#define PROTO_R_SET_RESULT (0)"
30058 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN int"
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30071 PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"
30072 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void"
30080 echo "$as_me:$LINENO: checking for getpwent_r" >&5
30081 echo $ECHO_N "checking for getpwent_r... $ECHO_C" >&6
30082 if test "${ac_cv_func_getpwent_r+set}" = set; then
30083 echo $ECHO_N "(cached) $ECHO_C" >&6
30085 cat >conftest.$ac_ext <<_ACEOF
30088 cat confdefs.h >>conftest.$ac_ext
30089 cat >>conftest.$ac_ext <<_ACEOF
30090 /* end confdefs.h. */
30091 /* Define getpwent_r to an innocuous variant, in case <limits.h> declares getpwent_r.
30092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30093 #define getpwent_r innocuous_getpwent_r
30095 /* System header to define __stub macros and hopefully few prototypes,
30096 which can conflict with char getpwent_r (); below.
30097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30098 <limits.h> exists even on freestanding compilers. */
30101 # include <limits.h>
30103 # include <assert.h>
30108 /* Override any gcc2 internal prototype to avoid an error. */
30113 /* We use char because int might match the return type of a gcc2
30114 builtin and then its argument prototype would still apply. */
30115 char getpwent_r ();
30116 /* The GNU C library defines this for functions which it implements
30117 to always fail with ENOSYS. Some functions are actually named
30118 something starting with __ and the normal name is an alias. */
30119 #if defined (__stub_getpwent_r) || defined (__stub___getpwent_r)
30122 char (*f) () = getpwent_r;
30131 return f != getpwent_r;
30136 rm -f conftest.$ac_objext conftest$ac_exeext
30137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30138 (eval $ac_link) 2>conftest.er1
30140 grep -v '^ *+' conftest.er1 >conftest.err
30142 cat conftest.err >&5
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); } &&
30145 { ac_try='test -z "$ac_c_werror_flag"
30146 || test ! -s conftest.err'
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; } &&
30152 { ac_try='test -s conftest$ac_exeext'
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
30158 ac_cv_func_getpwent_r=yes
30160 echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30163 ac_cv_func_getpwent_r=no
30165 rm -f conftest.err conftest.$ac_objext \
30166 conftest$ac_exeext conftest.$ac_ext
30168 echo "$as_me:$LINENO: result: $ac_cv_func_getpwent_r" >&5
30169 echo "${ECHO_T}$ac_cv_func_getpwent_r" >&6
30170 if test $ac_cv_func_getpwent_r = yes; then
30171 cat >conftest.$ac_ext <<_ACEOF
30174 cat confdefs.h >>conftest.$ac_ext
30175 cat >>conftest.$ac_ext <<_ACEOF
30176 /* end confdefs.h. */
30178 #include <sys/types.h>
30181 getpwent_r(struct passwd *pwptr, char *buf, int buflen) {}
30193 rm -f conftest.$ac_objext
30194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30195 (eval $ac_compile) 2>conftest.er1
30197 grep -v '^ *+' conftest.er1 >conftest.err
30199 cat conftest.err >&5
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); } &&
30202 { ac_try='test -z "$ac_c_werror_flag"
30203 || test ! -s conftest.err'
30204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30205 (eval $ac_try) 2>&5
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); }; } &&
30209 { ac_try='test -s conftest.$ac_objext'
30210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30211 (eval $ac_try) 2>&5
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); }; }; then
30215 PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"
30216 PASS_R_BAD="#define PASS_R_BAD NULL"
30217 PASS_R_COPY="#define PASS_R_COPY buf, buflen"
30218 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"
30219 PASS_R_OK="#define PASS_R_OK pwptr"
30220 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *"
30223 echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30230 PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"
30231 PASS_R_BAD="#define PASS_R_BAD NULL"
30232 PASS_R_COPY="#define PASS_R_COPY buf, buflen"
30233 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"
30234 PASS_R_OK="#define PASS_R_OK pwptr"
30235 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *"
30236 cat >>confdefs.h <<\_ACEOF
30237 #define NEED_GETPWENT_R 1
30250 echo "$as_me:$LINENO: checking for endpwent_r" >&5
30251 echo $ECHO_N "checking for endpwent_r... $ECHO_C" >&6
30252 if test "${ac_cv_func_endpwent_r+set}" = set; then
30253 echo $ECHO_N "(cached) $ECHO_C" >&6
30255 cat >conftest.$ac_ext <<_ACEOF
30258 cat confdefs.h >>conftest.$ac_ext
30259 cat >>conftest.$ac_ext <<_ACEOF
30260 /* end confdefs.h. */
30261 /* Define endpwent_r to an innocuous variant, in case <limits.h> declares endpwent_r.
30262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30263 #define endpwent_r innocuous_endpwent_r
30265 /* System header to define __stub macros and hopefully few prototypes,
30266 which can conflict with char endpwent_r (); below.
30267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30268 <limits.h> exists even on freestanding compilers. */
30271 # include <limits.h>
30273 # include <assert.h>
30278 /* Override any gcc2 internal prototype to avoid an error. */
30283 /* We use char because int might match the return type of a gcc2
30284 builtin and then its argument prototype would still apply. */
30285 char endpwent_r ();
30286 /* The GNU C library defines this for functions which it implements
30287 to always fail with ENOSYS. Some functions are actually named
30288 something starting with __ and the normal name is an alias. */
30289 #if defined (__stub_endpwent_r) || defined (__stub___endpwent_r)
30292 char (*f) () = endpwent_r;
30301 return f != endpwent_r;
30306 rm -f conftest.$ac_objext conftest$ac_exeext
30307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30308 (eval $ac_link) 2>conftest.er1
30310 grep -v '^ *+' conftest.er1 >conftest.err
30312 cat conftest.err >&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); } &&
30315 { ac_try='test -z "$ac_c_werror_flag"
30316 || test ! -s conftest.err'
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; } &&
30322 { ac_try='test -s conftest$ac_exeext'
30323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30324 (eval $ac_try) 2>&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); }; }; then
30328 ac_cv_func_endpwent_r=yes
30330 echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.$ac_ext >&5
30333 ac_cv_func_endpwent_r=no
30335 rm -f conftest.err conftest.$ac_objext \
30336 conftest$ac_exeext conftest.$ac_ext
30338 echo "$as_me:$LINENO: result: $ac_cv_func_endpwent_r" >&5
30339 echo "${ECHO_T}$ac_cv_func_endpwent_r" >&6
30340 if test $ac_cv_func_endpwent_r = yes; then
30341 cat >conftest.$ac_ext <<_ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h. */
30349 void endpwent_r(FILE **pwfp);
30359 rm -f conftest.$ac_objext
30360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30361 (eval $ac_compile) 2>conftest.er1
30363 grep -v '^ *+' conftest.er1 >conftest.err
30365 cat conftest.err >&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); } &&
30368 { ac_try='test -z "$ac_c_werror_flag"
30369 || test ! -s conftest.err'
30370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371 (eval $ac_try) 2>&5
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; } &&
30375 { ac_try='test -s conftest.$ac_objext'
30376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30377 (eval $ac_try) 2>&5
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); }; }; then
30381 PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"
30382 PASS_R_END_RETURN="#define PASS_R_END_RETURN void"
30383 PASS_R_ENT_ARGS="#define PASS_R_ENT_ARGS FILE **pwptr"
30386 echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30393 PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"
30394 PASS_R_END_RETURN="#define PASS_R_END_RETURN void"
30395 PASS_R_ENT_ARGS="#undef PASS_R_ENT_ARGS"
30396 cat >>confdefs.h <<\_ACEOF
30397 #define NEED_ENDPWENT_R 1
30406 echo "$as_me:$LINENO: checking for setpassent_r" >&5
30407 echo $ECHO_N "checking for setpassent_r... $ECHO_C" >&6
30408 if test "${ac_cv_func_setpassent_r+set}" = set; then
30409 echo $ECHO_N "(cached) $ECHO_C" >&6
30411 cat >conftest.$ac_ext <<_ACEOF
30414 cat confdefs.h >>conftest.$ac_ext
30415 cat >>conftest.$ac_ext <<_ACEOF
30416 /* end confdefs.h. */
30417 /* Define setpassent_r to an innocuous variant, in case <limits.h> declares setpassent_r.
30418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30419 #define setpassent_r innocuous_setpassent_r
30421 /* System header to define __stub macros and hopefully few prototypes,
30422 which can conflict with char setpassent_r (); below.
30423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30424 <limits.h> exists even on freestanding compilers. */
30427 # include <limits.h>
30429 # include <assert.h>
30432 #undef setpassent_r
30434 /* Override any gcc2 internal prototype to avoid an error. */
30439 /* We use char because int might match the return type of a gcc2
30440 builtin and then its argument prototype would still apply. */
30441 char setpassent_r ();
30442 /* The GNU C library defines this for functions which it implements
30443 to always fail with ENOSYS. Some functions are actually named
30444 something starting with __ and the normal name is an alias. */
30445 #if defined (__stub_setpassent_r) || defined (__stub___setpassent_r)
30448 char (*f) () = setpassent_r;
30457 return f != setpassent_r;
30462 rm -f conftest.$ac_objext conftest$ac_exeext
30463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30464 (eval $ac_link) 2>conftest.er1
30466 grep -v '^ *+' conftest.er1 >conftest.err
30468 cat conftest.err >&5
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); } &&
30471 { ac_try='test -z "$ac_c_werror_flag"
30472 || test ! -s conftest.err'
30473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474 (eval $ac_try) 2>&5
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); }; } &&
30478 { ac_try='test -s conftest$ac_exeext'
30479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480 (eval $ac_try) 2>&5
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); }; }; then
30484 ac_cv_func_setpassent_r=yes
30486 echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30489 ac_cv_func_setpassent_r=no
30491 rm -f conftest.err conftest.$ac_objext \
30492 conftest$ac_exeext conftest.$ac_ext
30494 echo "$as_me:$LINENO: result: $ac_cv_func_setpassent_r" >&5
30495 echo "${ECHO_T}$ac_cv_func_setpassent_r" >&6
30496 if test $ac_cv_func_setpassent_r = yes; then
30499 cat >>confdefs.h <<\_ACEOF
30500 #define NEED_SETPASSENT_R 1
30505 echo "$as_me:$LINENO: checking for setpassent" >&5
30506 echo $ECHO_N "checking for setpassent... $ECHO_C" >&6
30507 if test "${ac_cv_func_setpassent+set}" = set; then
30508 echo $ECHO_N "(cached) $ECHO_C" >&6
30510 cat >conftest.$ac_ext <<_ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h. */
30516 /* Define setpassent to an innocuous variant, in case <limits.h> declares setpassent.
30517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30518 #define setpassent innocuous_setpassent
30520 /* System header to define __stub macros and hopefully few prototypes,
30521 which can conflict with char setpassent (); below.
30522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30523 <limits.h> exists even on freestanding compilers. */
30526 # include <limits.h>
30528 # include <assert.h>
30533 /* Override any gcc2 internal prototype to avoid an error. */
30538 /* We use char because int might match the return type of a gcc2
30539 builtin and then its argument prototype would still apply. */
30540 char setpassent ();
30541 /* The GNU C library defines this for functions which it implements
30542 to always fail with ENOSYS. Some functions are actually named
30543 something starting with __ and the normal name is an alias. */
30544 #if defined (__stub_setpassent) || defined (__stub___setpassent)
30547 char (*f) () = setpassent;
30556 return f != setpassent;
30561 rm -f conftest.$ac_objext conftest$ac_exeext
30562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30563 (eval $ac_link) 2>conftest.er1
30565 grep -v '^ *+' conftest.er1 >conftest.err
30567 cat conftest.err >&5
30568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569 (exit $ac_status); } &&
30570 { ac_try='test -z "$ac_c_werror_flag"
30571 || test ! -s conftest.err'
30572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573 (eval $ac_try) 2>&5
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; } &&
30577 { ac_try='test -s conftest$ac_exeext'
30578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579 (eval $ac_try) 2>&5
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); }; }; then
30583 ac_cv_func_setpassent=yes
30585 echo "$as_me: failed program was:" >&5
30586 sed 's/^/| /' conftest.$ac_ext >&5
30588 ac_cv_func_setpassent=no
30590 rm -f conftest.err conftest.$ac_objext \
30591 conftest$ac_exeext conftest.$ac_ext
30593 echo "$as_me:$LINENO: result: $ac_cv_func_setpassent" >&5
30594 echo "${ECHO_T}$ac_cv_func_setpassent" >&6
30595 if test $ac_cv_func_setpassent = yes; then
30598 cat >>confdefs.h <<\_ACEOF
30599 #define NEED_SETPASSENT 1
30605 echo "$as_me:$LINENO: checking for setpwent_r" >&5
30606 echo $ECHO_N "checking for setpwent_r... $ECHO_C" >&6
30607 if test "${ac_cv_func_setpwent_r+set}" = set; then
30608 echo $ECHO_N "(cached) $ECHO_C" >&6
30610 cat >conftest.$ac_ext <<_ACEOF
30613 cat confdefs.h >>conftest.$ac_ext
30614 cat >>conftest.$ac_ext <<_ACEOF
30615 /* end confdefs.h. */
30616 /* Define setpwent_r to an innocuous variant, in case <limits.h> declares setpwent_r.
30617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30618 #define setpwent_r innocuous_setpwent_r
30620 /* System header to define __stub macros and hopefully few prototypes,
30621 which can conflict with char setpwent_r (); below.
30622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30623 <limits.h> exists even on freestanding compilers. */
30626 # include <limits.h>
30628 # include <assert.h>
30633 /* Override any gcc2 internal prototype to avoid an error. */
30638 /* We use char because int might match the return type of a gcc2
30639 builtin and then its argument prototype would still apply. */
30640 char setpwent_r ();
30641 /* The GNU C library defines this for functions which it implements
30642 to always fail with ENOSYS. Some functions are actually named
30643 something starting with __ and the normal name is an alias. */
30644 #if defined (__stub_setpwent_r) || defined (__stub___setpwent_r)
30647 char (*f) () = setpwent_r;
30656 return f != setpwent_r;
30661 rm -f conftest.$ac_objext conftest$ac_exeext
30662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30663 (eval $ac_link) 2>conftest.er1
30665 grep -v '^ *+' conftest.er1 >conftest.err
30667 cat conftest.err >&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); } &&
30670 { ac_try='test -z "$ac_c_werror_flag"
30671 || test ! -s conftest.err'
30672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673 (eval $ac_try) 2>&5
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; } &&
30677 { ac_try='test -s conftest$ac_exeext'
30678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30679 (eval $ac_try) 2>&5
30681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682 (exit $ac_status); }; }; then
30683 ac_cv_func_setpwent_r=yes
30685 echo "$as_me: failed program was:" >&5
30686 sed 's/^/| /' conftest.$ac_ext >&5
30688 ac_cv_func_setpwent_r=no
30690 rm -f conftest.err conftest.$ac_objext \
30691 conftest$ac_exeext conftest.$ac_ext
30693 echo "$as_me:$LINENO: result: $ac_cv_func_setpwent_r" >&5
30694 echo "${ECHO_T}$ac_cv_func_setpwent_r" >&6
30695 if test $ac_cv_func_setpwent_r = yes; then
30696 cat >conftest.$ac_ext <<_ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h. */
30704 void setpwent_r(FILE **pwfp);
30714 rm -f conftest.$ac_objext
30715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30716 (eval $ac_compile) 2>conftest.er1
30718 grep -v '^ *+' conftest.er1 >conftest.err
30720 cat conftest.err >&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } &&
30723 { ac_try='test -z "$ac_c_werror_flag"
30724 || test ! -s conftest.err'
30725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30726 (eval $ac_try) 2>&5
30728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729 (exit $ac_status); }; } &&
30730 { ac_try='test -s conftest.$ac_objext'
30731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30732 (eval $ac_try) 2>&5
30734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735 (exit $ac_status); }; }; then
30736 PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /* empty */"
30737 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int"
30740 echo "$as_me: failed program was:" >&5
30741 sed 's/^/| /' conftest.$ac_ext >&5
30743 cat >conftest.$ac_ext <<_ACEOF
30746 cat confdefs.h >>conftest.$ac_ext
30747 cat >>conftest.$ac_ext <<_ACEOF
30748 /* end confdefs.h. */
30751 int setpwent_r(FILE **pwfp);
30761 rm -f conftest.$ac_objext
30762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30763 (eval $ac_compile) 2>conftest.er1
30765 grep -v '^ *+' conftest.er1 >conftest.err
30767 cat conftest.err >&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); } &&
30770 { ac_try='test -z "$ac_c_werror_flag"
30771 || test ! -s conftest.err'
30772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30773 (eval $ac_try) 2>&5
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); }; } &&
30777 { ac_try='test -s conftest.$ac_objext'
30778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30779 (eval $ac_try) 2>&5
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; }; then
30783 PASS_R_SET_RESULT="#define PASS_R_SET_RESULT 0"
30784 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int"
30787 echo "$as_me: failed program was:" >&5
30788 sed 's/^/| /' conftest.$ac_ext >&5
30791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30797 PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /*empty*/"
30798 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN void"
30799 cat >>confdefs.h <<\_ACEOF
30800 #define NEED_SETPWENT_R 1
30809 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
30810 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
30811 if test "${ac_cv_func_getpwnam_r+set}" = set; then
30812 echo $ECHO_N "(cached) $ECHO_C" >&6
30814 cat >conftest.$ac_ext <<_ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h. */
30820 /* Define getpwnam_r to an innocuous variant, in case <limits.h> declares getpwnam_r.
30821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30822 #define getpwnam_r innocuous_getpwnam_r
30824 /* System header to define __stub macros and hopefully few prototypes,
30825 which can conflict with char getpwnam_r (); below.
30826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30827 <limits.h> exists even on freestanding compilers. */
30830 # include <limits.h>
30832 # include <assert.h>
30837 /* Override any gcc2 internal prototype to avoid an error. */
30842 /* We use char because int might match the return type of a gcc2
30843 builtin and then its argument prototype would still apply. */
30844 char getpwnam_r ();
30845 /* The GNU C library defines this for functions which it implements
30846 to always fail with ENOSYS. Some functions are actually named
30847 something starting with __ and the normal name is an alias. */
30848 #if defined (__stub_getpwnam_r) || defined (__stub___getpwnam_r)
30851 char (*f) () = getpwnam_r;
30860 return f != getpwnam_r;
30865 rm -f conftest.$ac_objext conftest$ac_exeext
30866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30867 (eval $ac_link) 2>conftest.er1
30869 grep -v '^ *+' conftest.er1 >conftest.err
30871 cat conftest.err >&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); } &&
30874 { ac_try='test -z "$ac_c_werror_flag"
30875 || test ! -s conftest.err'
30876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30877 (eval $ac_try) 2>&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); }; } &&
30881 { ac_try='test -s conftest$ac_exeext'
30882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883 (eval $ac_try) 2>&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; }; then
30887 ac_cv_func_getpwnam_r=yes
30889 echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30892 ac_cv_func_getpwnam_r=no
30894 rm -f conftest.err conftest.$ac_objext \
30895 conftest$ac_exeext conftest.$ac_ext
30897 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r" >&5
30898 echo "${ECHO_T}$ac_cv_func_getpwnam_r" >&6
30899 if test $ac_cv_func_getpwnam_r = yes; then
30902 cat >>confdefs.h <<\_ACEOF
30903 #define NEED_GETPWNAM_R 1
30908 echo "$as_me:$LINENO: checking for getpwuid_r" >&5
30909 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6
30910 if test "${ac_cv_func_getpwuid_r+set}" = set; then
30911 echo $ECHO_N "(cached) $ECHO_C" >&6
30913 cat >conftest.$ac_ext <<_ACEOF
30916 cat confdefs.h >>conftest.$ac_ext
30917 cat >>conftest.$ac_ext <<_ACEOF
30918 /* end confdefs.h. */
30919 /* Define getpwuid_r to an innocuous variant, in case <limits.h> declares getpwuid_r.
30920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30921 #define getpwuid_r innocuous_getpwuid_r
30923 /* System header to define __stub macros and hopefully few prototypes,
30924 which can conflict with char getpwuid_r (); below.
30925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30926 <limits.h> exists even on freestanding compilers. */
30929 # include <limits.h>
30931 # include <assert.h>
30936 /* Override any gcc2 internal prototype to avoid an error. */
30941 /* We use char because int might match the return type of a gcc2
30942 builtin and then its argument prototype would still apply. */
30943 char getpwuid_r ();
30944 /* The GNU C library defines this for functions which it implements
30945 to always fail with ENOSYS. Some functions are actually named
30946 something starting with __ and the normal name is an alias. */
30947 #if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
30950 char (*f) () = getpwuid_r;
30959 return f != getpwuid_r;
30964 rm -f conftest.$ac_objext conftest$ac_exeext
30965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30966 (eval $ac_link) 2>conftest.er1
30968 grep -v '^ *+' conftest.er1 >conftest.err
30970 cat conftest.err >&5
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); } &&
30973 { ac_try='test -z "$ac_c_werror_flag"
30974 || test ! -s conftest.err'
30975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30976 (eval $ac_try) 2>&5
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); }; } &&
30980 { ac_try='test -s conftest$ac_exeext'
30981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30982 (eval $ac_try) 2>&5
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); }; }; then
30986 ac_cv_func_getpwuid_r=yes
30988 echo "$as_me: failed program was:" >&5
30989 sed 's/^/| /' conftest.$ac_ext >&5
30991 ac_cv_func_getpwuid_r=no
30993 rm -f conftest.err conftest.$ac_objext \
30994 conftest$ac_exeext conftest.$ac_ext
30996 echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
30997 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6
30998 if test $ac_cv_func_getpwuid_r = yes; then
31001 cat >>confdefs.h <<\_ACEOF
31002 #define NEED_GETPWUID_R 1
31012 echo "$as_me:$LINENO: checking for getservent_r" >&5
31013 echo $ECHO_N "checking for getservent_r... $ECHO_C" >&6
31014 if test "${ac_cv_func_getservent_r+set}" = set; then
31015 echo $ECHO_N "(cached) $ECHO_C" >&6
31017 cat >conftest.$ac_ext <<_ACEOF
31020 cat confdefs.h >>conftest.$ac_ext
31021 cat >>conftest.$ac_ext <<_ACEOF
31022 /* end confdefs.h. */
31023 /* Define getservent_r to an innocuous variant, in case <limits.h> declares getservent_r.
31024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31025 #define getservent_r innocuous_getservent_r
31027 /* System header to define __stub macros and hopefully few prototypes,
31028 which can conflict with char getservent_r (); below.
31029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31030 <limits.h> exists even on freestanding compilers. */
31033 # include <limits.h>
31035 # include <assert.h>
31038 #undef getservent_r
31040 /* Override any gcc2 internal prototype to avoid an error. */
31045 /* We use char because int might match the return type of a gcc2
31046 builtin and then its argument prototype would still apply. */
31047 char getservent_r ();
31048 /* The GNU C library defines this for functions which it implements
31049 to always fail with ENOSYS. Some functions are actually named
31050 something starting with __ and the normal name is an alias. */
31051 #if defined (__stub_getservent_r) || defined (__stub___getservent_r)
31054 char (*f) () = getservent_r;
31063 return f != getservent_r;
31068 rm -f conftest.$ac_objext conftest$ac_exeext
31069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31070 (eval $ac_link) 2>conftest.er1
31072 grep -v '^ *+' conftest.er1 >conftest.err
31074 cat conftest.err >&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); } &&
31077 { ac_try='test -z "$ac_c_werror_flag"
31078 || test ! -s conftest.err'
31079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080 (eval $ac_try) 2>&5
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); }; } &&
31084 { ac_try='test -s conftest$ac_exeext'
31085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31086 (eval $ac_try) 2>&5
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; }; then
31090 ac_cv_func_getservent_r=yes
31092 echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31095 ac_cv_func_getservent_r=no
31097 rm -f conftest.err conftest.$ac_objext \
31098 conftest$ac_exeext conftest.$ac_ext
31100 echo "$as_me:$LINENO: result: $ac_cv_func_getservent_r" >&5
31101 echo "${ECHO_T}$ac_cv_func_getservent_r" >&6
31102 if test $ac_cv_func_getservent_r = yes; then
31103 cat >conftest.$ac_ext <<_ACEOF
31106 cat confdefs.h >>conftest.$ac_ext
31107 cat >>conftest.$ac_ext <<_ACEOF
31108 /* end confdefs.h. */
31114 getservent_r(struct servent *result, char *buffer, int buflen) {}
31124 rm -f conftest.$ac_objext
31125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31126 (eval $ac_compile) 2>conftest.er1
31128 grep -v '^ *+' conftest.er1 >conftest.err
31130 cat conftest.err >&5
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); } &&
31133 { ac_try='test -z "$ac_c_werror_flag"
31134 || test ! -s conftest.err'
31135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31136 (eval $ac_try) 2>&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); }; } &&
31140 { ac_try='test -s conftest.$ac_objext'
31141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142 (eval $ac_try) 2>&5
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
31147 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
31148 SERV_R_BAD="#define SERV_R_BAD NULL"
31149 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
31150 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
31151 SERV_R_OK="#define SERV_R_OK sptr"
31152 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
31153 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
31157 echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.$ac_ext >&5
31160 cat >conftest.$ac_ext <<_ACEOF
31163 cat confdefs.h >>conftest.$ac_ext
31164 cat >>conftest.$ac_ext <<_ACEOF
31165 /* end confdefs.h. */
31171 getservent_r (struct servent *, char *, size_t, struct servent **);
31181 rm -f conftest.$ac_objext
31182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31183 (eval $ac_compile) 2>conftest.er1
31185 grep -v '^ *+' conftest.er1 >conftest.err
31187 cat conftest.err >&5
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); } &&
31190 { ac_try='test -z "$ac_c_werror_flag"
31191 || test ! -s conftest.err'
31192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31193 (eval $ac_try) 2>&5
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); }; } &&
31197 { ac_try='test -s conftest.$ac_objext'
31198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199 (eval $ac_try) 2>&5
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; }; then
31204 SERV_R_ARGS="#define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp"
31205 SERV_R_BAD="#define SERV_R_BAD ERANGE"
31206 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
31207 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS char *buf, size_t buflen"
31208 SERV_R_OK="#define SERV_R_OK (0)"
31209 SERV_R_SETANSWER="#define SERV_R_SETANSWER 1"
31210 SERV_R_RETURN="#define SERV_R_RETURN int"
31214 echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31217 cat >conftest.$ac_ext <<_ACEOF
31220 cat confdefs.h >>conftest.$ac_ext
31221 cat >>conftest.$ac_ext <<_ACEOF
31222 /* end confdefs.h. */
31228 getservent_r (struct servent *, struct servent_data *serv_data);
31238 rm -f conftest.$ac_objext
31239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31240 (eval $ac_compile) 2>conftest.er1
31242 grep -v '^ *+' conftest.er1 >conftest.err
31244 cat conftest.err >&5
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); } &&
31247 { ac_try='test -z "$ac_c_werror_flag"
31248 || test ! -s conftest.err'
31249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31250 (eval $ac_try) 2>&5
31252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253 (exit $ac_status); }; } &&
31254 { ac_try='test -s conftest.$ac_objext'
31255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31256 (eval $ac_try) 2>&5
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); }; }; then
31261 SERV_R_ARGS="#define SERV_R_ARGS struct servent_data *serv_data"
31262 SERV_R_BAD="#define SERV_R_BAD (-1)"
31263 SERV_R_COPY="#define SERV_R_COPY serv_data"
31264 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS struct servent_data *sdptr"
31265 SERV_R_OK="#define SERV_R_OK (0)"
31266 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
31267 SERV_R_RETURN="#define SERV_R_RETURN int"
31268 SERVENT_DATA="#define SERVENT_DATA 1"
31272 echo "$as_me: failed program was:" >&5
31273 sed 's/^/| /' conftest.$ac_ext >&5
31276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31285 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
31286 SERV_R_BAD="#define SERV_R_BAD NULL"
31287 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
31288 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
31289 SERV_R_OK="#define SERV_R_OK sptr"
31290 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
31291 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
31309 echo "$as_me:$LINENO: checking for endservent_r" >&5
31310 echo $ECHO_N "checking for endservent_r... $ECHO_C" >&6
31311 if test "${ac_cv_func_endservent_r+set}" = set; then
31312 echo $ECHO_N "(cached) $ECHO_C" >&6
31314 cat >conftest.$ac_ext <<_ACEOF
31317 cat confdefs.h >>conftest.$ac_ext
31318 cat >>conftest.$ac_ext <<_ACEOF
31319 /* end confdefs.h. */
31320 /* Define endservent_r to an innocuous variant, in case <limits.h> declares endservent_r.
31321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31322 #define endservent_r innocuous_endservent_r
31324 /* System header to define __stub macros and hopefully few prototypes,
31325 which can conflict with char endservent_r (); below.
31326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31327 <limits.h> exists even on freestanding compilers. */
31330 # include <limits.h>
31332 # include <assert.h>
31335 #undef endservent_r
31337 /* Override any gcc2 internal prototype to avoid an error. */
31342 /* We use char because int might match the return type of a gcc2
31343 builtin and then its argument prototype would still apply. */
31344 char endservent_r ();
31345 /* The GNU C library defines this for functions which it implements
31346 to always fail with ENOSYS. Some functions are actually named
31347 something starting with __ and the normal name is an alias. */
31348 #if defined (__stub_endservent_r) || defined (__stub___endservent_r)
31351 char (*f) () = endservent_r;
31360 return f != endservent_r;
31365 rm -f conftest.$ac_objext conftest$ac_exeext
31366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31367 (eval $ac_link) 2>conftest.er1
31369 grep -v '^ *+' conftest.er1 >conftest.err
31371 cat conftest.err >&5
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); } &&
31374 { ac_try='test -z "$ac_c_werror_flag"
31375 || test ! -s conftest.err'
31376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31377 (eval $ac_try) 2>&5
31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380 (exit $ac_status); }; } &&
31381 { ac_try='test -s conftest$ac_exeext'
31382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31383 (eval $ac_try) 2>&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); }; }; then
31387 ac_cv_func_endservent_r=yes
31389 echo "$as_me: failed program was:" >&5
31390 sed 's/^/| /' conftest.$ac_ext >&5
31392 ac_cv_func_endservent_r=no
31394 rm -f conftest.err conftest.$ac_objext \
31395 conftest$ac_exeext conftest.$ac_ext
31397 echo "$as_me:$LINENO: result: $ac_cv_func_endservent_r" >&5
31398 echo "${ECHO_T}$ac_cv_func_endservent_r" >&6
31399 if test $ac_cv_func_endservent_r = yes; then
31400 cat >conftest.$ac_ext <<_ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h. */
31412 void endservent_r(void);
31423 rm -f conftest.$ac_objext
31424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31425 (eval $ac_compile) 2>conftest.er1
31427 grep -v '^ *+' conftest.er1 >conftest.err
31429 cat conftest.err >&5
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); } &&
31432 { ac_try='test -z "$ac_c_werror_flag"
31433 || test ! -s conftest.err'
31434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31435 (eval $ac_try) 2>&5
31437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438 (exit $ac_status); }; } &&
31439 { ac_try='test -s conftest.$ac_objext'
31440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31441 (eval $ac_try) 2>&5
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); }; }; then
31446 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
31447 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
31448 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
31449 SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/"
31453 echo "$as_me: failed program was:" >&5
31454 sed 's/^/| /' conftest.$ac_ext >&5
31456 cat >conftest.$ac_ext <<_ACEOF
31459 cat confdefs.h >>conftest.$ac_ext
31460 cat >>conftest.$ac_ext <<_ACEOF
31461 /* end confdefs.h. */
31468 void endservent_r(struct servent_data *serv_data);
31479 rm -f conftest.$ac_objext
31480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31481 (eval $ac_compile) 2>conftest.er1
31483 grep -v '^ *+' conftest.er1 >conftest.err
31485 cat conftest.err >&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); } &&
31488 { ac_try='test -z "$ac_c_werror_flag"
31489 || test ! -s conftest.err'
31490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491 (eval $ac_try) 2>&5
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; } &&
31495 { ac_try='test -s conftest.$ac_objext'
31496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31497 (eval $ac_try) 2>&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); }; }; then
31502 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
31503 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
31504 SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data"
31505 SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"
31509 echo "$as_me: failed program was:" >&5
31510 sed 's/^/| /' conftest.$ac_ext >&5
31512 cat >conftest.$ac_ext <<_ACEOF
31515 cat confdefs.h >>conftest.$ac_ext
31516 cat >>conftest.$ac_ext <<_ACEOF
31517 /* end confdefs.h. */
31524 int endservent_r(struct servent_data *serv_data);
31535 rm -f conftest.$ac_objext
31536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31537 (eval $ac_compile) 2>conftest.er1
31539 grep -v '^ *+' conftest.er1 >conftest.err
31541 cat conftest.err >&5
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); } &&
31544 { ac_try='test -z "$ac_c_werror_flag"
31545 || test ! -s conftest.err'
31546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547 (eval $ac_try) 2>&5
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; } &&
31551 { ac_try='test -s conftest.$ac_objext'
31552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553 (eval $ac_try) 2>&5
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; }; then
31558 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) return(x)"
31559 SERV_R_END_RETURN="#define SERV_R_END_RETURN int "
31560 SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data"
31561 SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"
31565 echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31578 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
31579 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
31580 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
31581 SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/"
31595 echo "$as_me:$LINENO: checking for setservent_r" >&5
31596 echo $ECHO_N "checking for setservent_r... $ECHO_C" >&6
31597 if test "${ac_cv_func_setservent_r+set}" = set; then
31598 echo $ECHO_N "(cached) $ECHO_C" >&6
31600 cat >conftest.$ac_ext <<_ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h. */
31606 /* Define setservent_r to an innocuous variant, in case <limits.h> declares setservent_r.
31607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31608 #define setservent_r innocuous_setservent_r
31610 /* System header to define __stub macros and hopefully few prototypes,
31611 which can conflict with char setservent_r (); below.
31612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31613 <limits.h> exists even on freestanding compilers. */
31616 # include <limits.h>
31618 # include <assert.h>
31621 #undef setservent_r
31623 /* Override any gcc2 internal prototype to avoid an error. */
31628 /* We use char because int might match the return type of a gcc2
31629 builtin and then its argument prototype would still apply. */
31630 char setservent_r ();
31631 /* The GNU C library defines this for functions which it implements
31632 to always fail with ENOSYS. Some functions are actually named
31633 something starting with __ and the normal name is an alias. */
31634 #if defined (__stub_setservent_r) || defined (__stub___setservent_r)
31637 char (*f) () = setservent_r;
31646 return f != setservent_r;
31651 rm -f conftest.$ac_objext conftest$ac_exeext
31652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31653 (eval $ac_link) 2>conftest.er1
31655 grep -v '^ *+' conftest.er1 >conftest.err
31657 cat conftest.err >&5
31658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); } &&
31660 { ac_try='test -z "$ac_c_werror_flag"
31661 || test ! -s conftest.err'
31662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 (eval $ac_try) 2>&5
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; } &&
31667 { ac_try='test -s conftest$ac_exeext'
31668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669 (eval $ac_try) 2>&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; }; then
31673 ac_cv_func_setservent_r=yes
31675 echo "$as_me: failed program was:" >&5
31676 sed 's/^/| /' conftest.$ac_ext >&5
31678 ac_cv_func_setservent_r=no
31680 rm -f conftest.err conftest.$ac_objext \
31681 conftest$ac_exeext conftest.$ac_ext
31683 echo "$as_me:$LINENO: result: $ac_cv_func_setservent_r" >&5
31684 echo "${ECHO_T}$ac_cv_func_setservent_r" >&6
31685 if test $ac_cv_func_setservent_r = yes; then
31686 cat >conftest.$ac_ext <<_ACEOF
31689 cat confdefs.h >>conftest.$ac_ext
31690 cat >>conftest.$ac_ext <<_ACEOF
31691 /* end confdefs.h. */
31698 void setservent_r(int);
31709 rm -f conftest.$ac_objext
31710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31711 (eval $ac_compile) 2>conftest.er1
31713 grep -v '^ *+' conftest.er1 >conftest.err
31715 cat conftest.err >&5
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); } &&
31718 { ac_try='test -z "$ac_c_werror_flag"
31719 || test ! -s conftest.err'
31720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31721 (eval $ac_try) 2>&5
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; } &&
31725 { ac_try='test -s conftest.$ac_objext'
31726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727 (eval $ac_try) 2>&5
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); }; }; then
31732 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"
31733 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"
31737 echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31740 cat >conftest.$ac_ext <<_ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h. */
31752 int setservent_r(int, struct servent_data *);
31763 rm -f conftest.$ac_objext
31764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31765 (eval $ac_compile) 2>conftest.er1
31767 grep -v '^ *+' conftest.er1 >conftest.err
31769 cat conftest.err >&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); } &&
31772 { ac_try='test -z "$ac_c_werror_flag"
31773 || test ! -s conftest.err'
31774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31775 (eval $ac_try) 2>&5
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); }; } &&
31779 { ac_try='test -s conftest.$ac_objext'
31780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31781 (eval $ac_try) 2>&5
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); }; }; then
31786 SERV_R_SET_RESULT="#define SERV_R_SET_RESULT (0)"
31787 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN int"
31791 echo "$as_me: failed program was:" >&5
31792 sed 's/^/| /' conftest.$ac_ext >&5
31795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31801 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"
31802 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"
31810 cat >conftest.$ac_ext <<_ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h. */
31821 #include <unistd.h>
31823 int innetgr(const char *netgroup, const char *host, const char *user, const char *domain);
31834 rm -f conftest.$ac_objext
31835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31836 (eval $ac_compile) 2>conftest.er1
31838 grep -v '^ *+' conftest.er1 >conftest.err
31840 cat conftest.err >&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); } &&
31843 { ac_try='test -z "$ac_c_werror_flag"
31844 || test ! -s conftest.err'
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; } &&
31850 { ac_try='test -s conftest.$ac_objext'
31851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852 (eval $ac_try) 2>&5
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; }; then
31857 INNETGR_ARGS="#undef INNETGR_ARGS"
31861 echo "$as_me: failed program was:" >&5
31862 sed 's/^/| /' conftest.$ac_ext >&5
31864 cat >conftest.$ac_ext <<_ACEOF
31867 cat confdefs.h >>conftest.$ac_ext
31868 cat >>conftest.$ac_ext <<_ACEOF
31869 /* end confdefs.h. */
31875 #include <unistd.h>
31877 int innetgr(char *netgroup, char *host, char *user, char *domain);
31888 rm -f conftest.$ac_objext
31889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31890 (eval $ac_compile) 2>conftest.er1
31892 grep -v '^ *+' conftest.er1 >conftest.err
31894 cat conftest.err >&5
31895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 (exit $ac_status); } &&
31897 { ac_try='test -z "$ac_c_werror_flag"
31898 || test ! -s conftest.err'
31899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900 (eval $ac_try) 2>&5
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; } &&
31904 { ac_try='test -s conftest.$ac_objext'
31905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31906 (eval $ac_try) 2>&5
31908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909 (exit $ac_status); }; }; then
31911 INNETGR_ARGS="#define INNETGR_ARGS char *netgroup, char *host, char *user, char *domain"
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31923 cat >conftest.$ac_ext <<_ACEOF
31926 cat confdefs.h >>conftest.$ac_ext
31927 cat >>conftest.$ac_ext <<_ACEOF
31928 /* end confdefs.h. */
31934 #include <unistd.h>
31936 void setnetgrent(const char *);
31947 rm -f conftest.$ac_objext
31948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31949 (eval $ac_compile) 2>conftest.er1
31951 grep -v '^ *+' conftest.er1 >conftest.err
31953 cat conftest.err >&5
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); } &&
31956 { ac_try='test -z "$ac_c_werror_flag"
31957 || test ! -s conftest.err'
31958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959 (eval $ac_try) 2>&5
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); }; } &&
31963 { ac_try='test -s conftest.$ac_objext'
31964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31965 (eval $ac_try) 2>&5
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); }; }; then
31970 SETNETGRENT_ARGS="#undef SETNETGRENT_ARGS"
31974 echo "$as_me: failed program was:" >&5
31975 sed 's/^/| /' conftest.$ac_ext >&5
31977 cat >conftest.$ac_ext <<_ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h. */
31988 #include <unistd.h>
31990 void setnetgrent(char *);
32001 rm -f conftest.$ac_objext
32002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32003 (eval $ac_compile) 2>conftest.er1
32005 grep -v '^ *+' conftest.er1 >conftest.err
32007 cat conftest.err >&5
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); } &&
32010 { ac_try='test -z "$ac_c_werror_flag"
32011 || test ! -s conftest.err'
32012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013 (eval $ac_try) 2>&5
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; } &&
32017 { ac_try='test -s conftest.$ac_objext'
32018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32019 (eval $ac_try) 2>&5
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; }; then
32024 SETNETGRENT_ARGS="#define SETNETGRENT_ARGS char *netgroup"
32028 echo "$as_me: failed program was:" >&5
32029 sed 's/^/| /' conftest.$ac_ext >&5
32032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32039 # Random remaining OS-specific issues involving compiler warnings.
32040 # XXXDCL print messages to indicate some compensation is being done?
32042 BROKEN_IN6ADDR_INIT_MACROS="#undef BROKEN_IN6ADDR_INIT_MACROS"
32046 hack_shutup_pthreadmutexinit=yes
32047 hack_shutup_in6addr_init_macros=yes
32050 hack_shutup_in6addr_init_macros=yes
32053 hack_shutup_sputaux=yes
32056 hack_shutup_sigwait=yes
32057 hack_shutup_sputaux=yes
32058 hack_shutup_in6addr_init_macros=yes
32061 hack_shutup_stdargcast=yes
32064 hack_shutup_in6addr_init_macros=yes
32066 *-osf5.1|*-osf5.1b)
32067 hack_shutup_in6addr_init_macros=yes
32070 hack_shutup_in6addr_init_macros=yes
32073 hack_shutup_in6addr_init_macros=yes
32076 hack_shutup_in6addr_init_macros=yes
32080 case "$hack_shutup_pthreadmutexinit" in
32083 # Shut up PTHREAD_MUTEX_INITIALIZER unbraced
32084 # initializer warnings.
32086 cat >>confdefs.h <<\_ACEOF
32087 #define SHUTUP_MUTEX_INITIALIZER 1
32093 case "$hack_shutup_sigwait" in
32096 # Shut up a -Wmissing-prototypes warning for sigwait().
32098 cat >>confdefs.h <<\_ACEOF
32099 #define SHUTUP_SIGWAIT 1
32105 case "$hack_shutup_sputaux" in
32108 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
32110 cat >>confdefs.h <<\_ACEOF
32111 #define SHUTUP_SPUTAUX 1
32117 case "$hack_shutup_stdargcast" in
32120 # Shut up a -Wcast-qual warning from va_start().
32122 cat >>confdefs.h <<\_ACEOF
32123 #define SHUTUP_STDARG_CAST 1
32129 case "$hack_shutup_in6addr_init_macros" in
32132 cat >>confdefs.h <<\_ACEOF
32133 #define BROKEN_IN6ADDR_INIT_MACROS 1
32143 BIND9_TOP_BUILDDIR=`pwd`
32146 BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
32149 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
32151 . $srcdir/../../version
32152 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
32156 LIBBIND_API=$srcdir/api
32158 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"
32159 cat >confcache <<\_ACEOF
32160 # This file is a shell script that caches the results of configure
32161 # tests run on this system so they can be shared between configure
32162 # scripts and configure runs, see configure's option --config-cache.
32163 # It is not useful on other systems. If it contains results you don't
32164 # want to keep, you may remove or edit it.
32166 # config.status only pays attention to the cache file if you give it
32167 # the --recheck option to rerun configure.
32169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32171 # following values.
32175 # The following way of writing the cache mishandles newlines in values,
32176 # but we know of no workaround that is simple, portable, and efficient.
32177 # So, don't put newlines in cache variables' values.
32178 # Ultrix sh set writes to stderr and can't be redirected directly,
32179 # and sets the high bit in the cache file unless we assign to the vars.
32182 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32184 # `set' does not quote correctly, so add quotes (double-quote
32185 # substitution turns \\\\ into \\, and sed turns \\ into \).
32188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32191 # `set' quotes correctly as required by POSIX, so do not add quotes.
32193 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32202 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32204 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32205 if test -w $cache_file; then
32206 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32207 cat confcache >$cache_file
32209 echo "not updating unwritable cache $cache_file"
32214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32215 # Let make expand exec_prefix.
32216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32220 # trailing colons and then remove the whole line if VPATH becomes empty
32221 # (actually we leave an empty line to preserve line numbers).
32222 if test "x$srcdir" = x.; then
32223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32224 s/:*\$(srcdir):*/:/;
32225 s/:*\${srcdir}:*/:/;
32227 s/^\([^=]*=[ ]*\):*/\1/;
32233 DEFS=-DHAVE_CONFIG_H
32237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32238 # 1. Remove the extension, and $U if already installed.
32239 ac_i=`echo "$ac_i" |
32240 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
32242 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
32243 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
32245 LIBOBJS=$ac_libobjs
32247 LTLIBOBJS=$ac_ltlibobjs
32251 : ${CONFIG_STATUS=./config.status}
32252 ac_clean_files_save=$ac_clean_files
32253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32254 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32255 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32256 cat >$CONFIG_STATUS <<_ACEOF
32258 # Generated by $as_me.
32259 # Run this file to recreate the current configuration.
32260 # Compiler output produced by configure, useful for debugging
32261 # configure, is in config.log if it exists.
32264 ac_cs_recheck=false
32266 SHELL=\${CONFIG_SHELL-$SHELL}
32269 cat >>$CONFIG_STATUS <<\_ACEOF
32270 ## --------------------- ##
32271 ## M4sh Initialization. ##
32272 ## --------------------- ##
32274 # Be Bourne compatible
32275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32278 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32279 # is contrary to our usage. Disable this feature.
32280 alias -g '${1+"$@"}'='"$@"'
32281 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32284 DUALCASE=1; export DUALCASE # for MKS sh
32286 # Support unset when possible.
32287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32294 # Work around bugs in pre-3.0 UWIN ksh.
32295 $as_unset ENV MAIL MAILPATH
32302 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32303 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32304 LC_TELEPHONE LC_TIME
32306 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32307 eval $as_var=C; export $as_var
32313 # Required to use basename.
32314 if expr a : '\(a\)' >/dev/null 2>&1; then
32320 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
32321 as_basename=basename
32327 # Name of the executable.
32328 as_me=`$as_basename "$0" ||
32329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32330 X"$0" : 'X\(//\)$' \| \
32331 X"$0" : 'X\(/\)$' \| \
32332 . : '\(.\)' 2>/dev/null ||
32334 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
32335 /^X\/\(\/\/\)$/{ s//\1/; q; }
32336 /^X\/\(\/\).*/{ s//\1/; q; }
32340 # PATH needs CR, and LINENO needs CR and PATH.
32341 # Avoid depending upon Character Ranges.
32342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32345 as_cr_digits='0123456789'
32346 as_cr_alnum=$as_cr_Letters$as_cr_digits
32348 # The user is always right.
32349 if test "${PATH_SEPARATOR+set}" != set; then
32350 echo "#! /bin/sh" >conf$$.sh
32351 echo "exit 0" >>conf$$.sh
32353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32362 as_lineno_1=$LINENO
32363 as_lineno_2=$LINENO
32364 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32365 test "x$as_lineno_1" != "x$as_lineno_2" &&
32366 test "x$as_lineno_3" = "x$as_lineno_2" || {
32367 # Find who we are. Look in the path if we contain no path at all
32370 *[\\/]* ) as_myself=$0 ;;
32371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32372 for as_dir in $PATH
32375 test -z "$as_dir" && as_dir=.
32376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32381 # We did not find ourselves, most probably we were run as `sh COMMAND'
32382 # in which case we are not to be found in the path.
32383 if test "x$as_myself" = x; then
32386 if test ! -f "$as_myself"; then
32387 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
32388 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
32389 { (exit 1); exit 1; }; }
32391 case $CONFIG_SHELL in
32393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32394 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
32397 test -z "$as_dir" && as_dir=.
32398 for as_base in sh bash ksh sh5; do
32401 if ("$as_dir/$as_base" -c '
32402 as_lineno_1=$LINENO
32403 as_lineno_2=$LINENO
32404 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32405 test "x$as_lineno_1" != "x$as_lineno_2" &&
32406 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
32407 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
32408 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
32409 CONFIG_SHELL=$as_dir/$as_base
32410 export CONFIG_SHELL
32411 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
32419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32420 # uniformly replaced by the line number. The first 'sed' inserts a
32421 # line-number line before each line; the second 'sed' does the real
32422 # work. The second script uses 'N' to pair each line-number line
32423 # with the numbered line, and appends trailing '-' during
32424 # substitution so that $LINENO is not a special case at line end.
32425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32426 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
32427 sed '=' <$as_myself |
32432 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
32435 s,^['$as_cr_digits']*\n,,
32436 ' >$as_me.lineno &&
32437 chmod +x $as_me.lineno ||
32438 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
32439 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
32440 { (exit 1); exit 1; }; }
32442 # Don't try to exec as it changes $[0], causing all sort of problems
32443 # (the dirname of $[0] is not the place where we might find the
32444 # original and so on. Autoconf is especially sensible to this).
32446 # Exit status is that of the last command.
32451 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
32452 *c*,-n*) ECHO_N= ECHO_C='
32454 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
32455 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
32458 if expr a : '\(a\)' >/dev/null 2>&1; then
32464 rm -f conf$$ conf$$.exe conf$$.file
32466 if ln -s conf$$.file conf$$ 2>/dev/null; then
32467 # We could just check for DJGPP; but this test a) works b) is more generic
32468 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32469 if test -f conf$$.exe; then
32470 # Don't use ln at all; we don't have any links
32475 elif ln conf$$.file conf$$ 2>/dev/null; then
32480 rm -f conf$$ conf$$.exe conf$$.file
32482 if mkdir -p . 2>/dev/null; then
32485 test -d ./-p && rmdir ./-p
32489 as_executable_p="test -f"
32491 # Sed expression to map a string onto a valid CPP name.
32492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32494 # Sed expression to map a string onto a valid variable name.
32495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32499 # We need space, tab and new line, in precisely that order.
32509 # Open the log real soon, to keep \$[0] and so on meaningful, and to
32510 # report actual input values of CONFIG_FILES etc. instead of their
32511 # values after options handling. Logging --version etc. is OK.
32515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32516 ## Running $as_me. ##
32521 This file was extended by $as_me, which was
32522 generated by GNU Autoconf 2.59. Invocation command line was
32524 CONFIG_FILES = $CONFIG_FILES
32525 CONFIG_HEADERS = $CONFIG_HEADERS
32526 CONFIG_LINKS = $CONFIG_LINKS
32527 CONFIG_COMMANDS = $CONFIG_COMMANDS
32531 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32535 # Files that config.status was made for.
32536 if test -n "$ac_config_files"; then
32537 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32540 if test -n "$ac_config_headers"; then
32541 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32544 if test -n "$ac_config_links"; then
32545 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32548 if test -n "$ac_config_commands"; then
32549 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32552 cat >>$CONFIG_STATUS <<\_ACEOF
32555 \`$as_me' instantiates files from templates according to the
32556 current configuration.
32558 Usage: $0 [OPTIONS] [FILE]...
32560 -h, --help print this help, then exit
32561 -V, --version print version number, then exit
32562 -q, --quiet do not print progress messages
32563 -d, --debug don't remove temporary files
32564 --recheck update $as_me by reconfiguring in the same conditions
32565 --file=FILE[:TEMPLATE]
32566 instantiate the configuration file FILE
32567 --header=FILE[:TEMPLATE]
32568 instantiate the configuration header FILE
32570 Configuration files:
32573 Configuration headers:
32576 Report bugs to <bug-autoconf@gnu.org>."
32579 cat >>$CONFIG_STATUS <<_ACEOF
32582 configured by $0, generated by GNU Autoconf 2.59,
32583 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
32585 Copyright (C) 2003 Free Software Foundation, Inc.
32586 This config.status script is free software; the Free Software Foundation
32587 gives unlimited permission to copy, distribute and modify it."
32592 cat >>$CONFIG_STATUS <<\_ACEOF
32593 # If no file are specified by the user, then we need to provide default
32594 # value. By we need to know if files were specified by the user.
32600 ac_option=`expr "x$1" : 'x\([^=]*\)='`
32601 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
32609 *) # This is not an option, so the user has probably given explicit
32612 ac_need_defaults=false;;
32616 # Handling of the options.
32618 cat >>$CONFIG_STATUS <<\_ACEOF
32619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32621 --version | --vers* | -V )
32622 echo "$ac_cs_version"; exit 0 ;;
32624 # Conflict between --help and --header
32625 { { echo "$as_me:$LINENO: error: ambiguous option: $1
32626 Try \`$0 --help' for more information." >&5
32627 echo "$as_me: error: ambiguous option: $1
32628 Try \`$0 --help' for more information." >&2;}
32629 { (exit 1); exit 1; }; };;
32630 --help | --hel | -h )
32631 echo "$ac_cs_usage"; exit 0 ;;
32632 --debug | --d* | -d )
32634 --file | --fil | --fi | --f )
32636 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32637 ac_need_defaults=false;;
32638 --header | --heade | --head | --hea )
32640 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32641 ac_need_defaults=false;;
32642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32643 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32646 # This is an error.
32647 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
32648 Try \`$0 --help' for more information." >&5
32649 echo "$as_me: error: unrecognized option: $1
32650 Try \`$0 --help' for more information." >&2;}
32651 { (exit 1); exit 1; }; } ;;
32653 *) ac_config_targets="$ac_config_targets $1" ;;
32659 ac_configure_extra_args=
32661 if $ac_cs_silent; then
32663 ac_configure_extra_args="$ac_configure_extra_args --silent"
32667 cat >>$CONFIG_STATUS <<_ACEOF
32668 if \$ac_cs_recheck; then
32669 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32670 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32679 cat >>$CONFIG_STATUS <<\_ACEOF
32680 for ac_config_target in $ac_config_targets
32682 case "$ac_config_target" in
32683 # Handling of arguments.
32684 "make/rules" ) CONFIG_FILES="$CONFIG_FILES make/rules" ;;
32685 "make/mkdep" ) CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
32686 "make/includes" ) CONFIG_FILES="$CONFIG_FILES make/includes" ;;
32687 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32688 "bsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bsd/Makefile" ;;
32689 "dst/Makefile" ) CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;;
32690 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
32691 "inet/Makefile" ) CONFIG_FILES="$CONFIG_FILES inet/Makefile" ;;
32692 "irs/Makefile" ) CONFIG_FILES="$CONFIG_FILES irs/Makefile" ;;
32693 "isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES isc/Makefile" ;;
32694 "nameser/Makefile" ) CONFIG_FILES="$CONFIG_FILES nameser/Makefile" ;;
32695 "port_after.h" ) CONFIG_FILES="$CONFIG_FILES port_after.h" ;;
32696 "port_before.h" ) CONFIG_FILES="$CONFIG_FILES port_before.h" ;;
32697 "resolv/Makefile" ) CONFIG_FILES="$CONFIG_FILES resolv/Makefile" ;;
32698 "port/Makefile" ) CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
32699 "${PORT_DIR}/Makefile" ) CONFIG_FILES="$CONFIG_FILES ${PORT_DIR}/Makefile" ;;
32700 "${PORT_INCLUDE}/Makefile" ) CONFIG_FILES="$CONFIG_FILES ${PORT_INCLUDE}/Makefile" ;;
32701 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32702 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32703 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32704 { (exit 1); exit 1; }; };;
32708 # If the user did not use the arguments to specify the items to instantiate,
32709 # then the envvar interface is used. Set only those that are not.
32710 # We use the long form for the default assignment because of an extremely
32711 # bizarre bug on SunOS 4.1.3.
32712 if $ac_need_defaults; then
32713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32717 # Have a temporary directory for convenience. Make it in the build tree
32718 # simply because there is no reason to put it here, and in addition,
32719 # creating and moving files from /tmp can sometimes cause problems.
32720 # Create a temporary directory, and hook for its removal unless debugging.
32723 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32724 trap '{ (exit 1); exit 1; }' 1 2 13 15
32727 # Create a (secure) tmp directory for tmp files.
32730 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32731 test -n "$tmp" && test -d "$tmp"
32734 tmp=./confstat$$-$RANDOM
32735 (umask 077 && mkdir $tmp)
32738 echo "$me: cannot create a temporary directory in ." >&2
32739 { (exit 1); exit 1; }
32744 cat >>$CONFIG_STATUS <<_ACEOF
32747 # CONFIG_FILES section.
32750 # No need to generate the scripts if there are no CONFIG_FILES.
32751 # This happens for instance when ./config.status config.h
32752 if test -n "\$CONFIG_FILES"; then
32753 # Protect against being on the right side of a sed subst in config.status.
32754 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32755 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32756 s,@SHELL@,$SHELL,;t t
32757 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32758 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32759 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32760 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32761 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32762 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32763 s,@exec_prefix@,$exec_prefix,;t t
32764 s,@prefix@,$prefix,;t t
32765 s,@program_transform_name@,$program_transform_name,;t t
32766 s,@bindir@,$bindir,;t t
32767 s,@sbindir@,$sbindir,;t t
32768 s,@libexecdir@,$libexecdir,;t t
32769 s,@datadir@,$datadir,;t t
32770 s,@sysconfdir@,$sysconfdir,;t t
32771 s,@sharedstatedir@,$sharedstatedir,;t t
32772 s,@localstatedir@,$localstatedir,;t t
32773 s,@libdir@,$libdir,;t t
32774 s,@includedir@,$includedir,;t t
32775 s,@oldincludedir@,$oldincludedir,;t t
32776 s,@infodir@,$infodir,;t t
32777 s,@mandir@,$mandir,;t t
32778 s,@build_alias@,$build_alias,;t t
32779 s,@host_alias@,$host_alias,;t t
32780 s,@target_alias@,$target_alias,;t t
32781 s,@DEFS@,$DEFS,;t t
32782 s,@ECHO_C@,$ECHO_C,;t t
32783 s,@ECHO_N@,$ECHO_N,;t t
32784 s,@ECHO_T@,$ECHO_T,;t t
32785 s,@LIBS@,$LIBS,;t t
32786 s,@build@,$build,;t t
32787 s,@build_cpu@,$build_cpu,;t t
32788 s,@build_vendor@,$build_vendor,;t t
32789 s,@build_os@,$build_os,;t t
32790 s,@host@,$host,;t t
32791 s,@host_cpu@,$host_cpu,;t t
32792 s,@host_vendor@,$host_vendor,;t t
32793 s,@host_os@,$host_os,;t t
32794 s,@SET_MAKE@,$SET_MAKE,;t t
32795 s,@RANLIB@,$RANLIB,;t t
32796 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32797 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32798 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32799 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32800 s,@STD_CINCLUDES@,$STD_CINCLUDES,;t t
32801 s,@STD_CDEFINES@,$STD_CDEFINES,;t t
32802 s,@STD_CWARNINGS@,$STD_CWARNINGS,;t t
32803 s,@CCOPT@,$CCOPT,;t t
32805 s,@ARFLAGS@,$ARFLAGS,;t t
32807 s,@ETAGS@,$ETAGS,;t t
32808 s,@PERL@,$PERL,;t t
32810 s,@CFLAGS@,$CFLAGS,;t t
32811 s,@LDFLAGS@,$LDFLAGS,;t t
32812 s,@CPPFLAGS@,$CPPFLAGS,;t t
32813 s,@ac_ct_CC@,$ac_ct_CC,;t t
32814 s,@EXEEXT@,$EXEEXT,;t t
32815 s,@OBJEXT@,$OBJEXT,;t t
32817 s,@EGREP@,$EGREP,;t t
32818 s,@ISC_PLATFORM_NEEDSYSSELECTH@,$ISC_PLATFORM_NEEDSYSSELECTH,;t t
32819 s,@WANT_IRS_GR@,$WANT_IRS_GR,;t t
32820 s,@WANT_IRS_GR_OBJS@,$WANT_IRS_GR_OBJS,;t t
32821 s,@WANT_IRS_PW@,$WANT_IRS_PW,;t t
32822 s,@WANT_IRS_PW_OBJS@,$WANT_IRS_PW_OBJS,;t t
32823 s,@WANT_IRS_NIS@,$WANT_IRS_NIS,;t t
32824 s,@WANT_IRS_NIS_OBJS@,$WANT_IRS_NIS_OBJS,;t t
32825 s,@WANT_IRS_NISGR_OBJS@,$WANT_IRS_NISGR_OBJS,;t t
32826 s,@WANT_IRS_NISPW_OBJS@,$WANT_IRS_NISPW_OBJS,;t t
32827 s,@WANT_IRS_DBPW_OBJS@,$WANT_IRS_DBPW_OBJS,;t t
32828 s,@ALWAYS_DEFINES@,$ALWAYS_DEFINES,;t t
32829 s,@DO_PTHREADS@,$DO_PTHREADS,;t t
32830 s,@WANT_IRS_THREADSGR_OBJS@,$WANT_IRS_THREADSGR_OBJS,;t t
32831 s,@WANT_IRS_THREADSPW_OBJS@,$WANT_IRS_THREADSPW_OBJS,;t t
32832 s,@WANT_IRS_THREADS_OBJS@,$WANT_IRS_THREADS_OBJS,;t t
32833 s,@WANT_THREADS_OBJS@,$WANT_THREADS_OBJS,;t t
32834 s,@USE_IFNAMELINKID@,$USE_IFNAMELINKID,;t t
32835 s,@ISC_THREAD_DIR@,$ISC_THREAD_DIR,;t t
32836 s,@DAEMON_OBJS@,$DAEMON_OBJS,;t t
32837 s,@NEED_DAEMON@,$NEED_DAEMON,;t t
32838 s,@STRSEP_OBJS@,$STRSEP_OBJS,;t t
32839 s,@NEED_STRSEP@,$NEED_STRSEP,;t t
32840 s,@NEED_STRERROR@,$NEED_STRERROR,;t t
32841 s,@MKDEPCC@,$MKDEPCC,;t t
32842 s,@MKDEPCFLAGS@,$MKDEPCFLAGS,;t t
32843 s,@MKDEPPROG@,$MKDEPPROG,;t t
32844 s,@IRIX_DNSSEC_WARNINGS_HACK@,$IRIX_DNSSEC_WARNINGS_HACK,;t t
32845 s,@purify_path@,$purify_path,;t t
32846 s,@PURIFY@,$PURIFY,;t t
32847 s,@LN_S@,$LN_S,;t t
32848 s,@ECHO@,$ECHO,;t t
32849 s,@ac_ct_AR@,$ac_ct_AR,;t t
32850 s,@STRIP@,$STRIP,;t t
32851 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32853 s,@CXXFLAGS@,$CXXFLAGS,;t t
32854 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32855 s,@CXXCPP@,$CXXCPP,;t t
32857 s,@FFLAGS@,$FFLAGS,;t t
32858 s,@ac_ct_F77@,$ac_ct_F77,;t t
32859 s,@LIBTOOL@,$LIBTOOL,;t t
32863 s,@LIBTOOL_MKDEP_SED@,$LIBTOOL_MKDEP_SED,;t t
32864 s,@LIBTOOL_MODE_COMPILE@,$LIBTOOL_MODE_COMPILE,;t t
32865 s,@LIBTOOL_MODE_INSTALL@,$LIBTOOL_MODE_INSTALL,;t t
32866 s,@LIBTOOL_MODE_LINK@,$LIBTOOL_MODE_LINK,;t t
32867 s,@HAS_INET6_STRUCTS@,$HAS_INET6_STRUCTS,;t t
32868 s,@ISC_PLATFORM_NEEDNETINETIN6H@,$ISC_PLATFORM_NEEDNETINETIN6H,;t t
32869 s,@ISC_PLATFORM_NEEDNETINET6IN6H@,$ISC_PLATFORM_NEEDNETINET6IN6H,;t t
32870 s,@HAS_IN_ADDR6@,$HAS_IN_ADDR6,;t t
32871 s,@NEED_IN6ADDR_ANY@,$NEED_IN6ADDR_ANY,;t t
32872 s,@ISC_PLATFORM_HAVEIN6PKTINFO@,$ISC_PLATFORM_HAVEIN6PKTINFO,;t t
32873 s,@ISC_PLATFORM_FIXIN6ISADDR@,$ISC_PLATFORM_FIXIN6ISADDR,;t t
32874 s,@ISC_IPV6_H@,$ISC_IPV6_H,;t t
32875 s,@ISC_IPV6_O@,$ISC_IPV6_O,;t t
32876 s,@ISC_ISCIPV6_O@,$ISC_ISCIPV6_O,;t t
32877 s,@ISC_IPV6_C@,$ISC_IPV6_C,;t t
32878 s,@HAVE_SIN6_SCOPE_ID@,$HAVE_SIN6_SCOPE_ID,;t t
32879 s,@HAVE_SOCKADDR_STORAGE@,$HAVE_SOCKADDR_STORAGE,;t t
32880 s,@ISC_PLATFORM_NEEDNTOP@,$ISC_PLATFORM_NEEDNTOP,;t t
32881 s,@ISC_PLATFORM_NEEDPTON@,$ISC_PLATFORM_NEEDPTON,;t t
32882 s,@ISC_PLATFORM_NEEDATON@,$ISC_PLATFORM_NEEDATON,;t t
32883 s,@HAVE_SA_LEN@,$HAVE_SA_LEN,;t t
32884 s,@HAVE_MINIMUM_IFREQ@,$HAVE_MINIMUM_IFREQ,;t t
32885 s,@BSD_COMP@,$BSD_COMP,;t t
32886 s,@SOLARIS_BITTYPES@,$SOLARIS_BITTYPES,;t t
32887 s,@USE_FIONBIO_IOCTL@,$USE_FIONBIO_IOCTL,;t t
32888 s,@PORT_NONBLOCK@,$PORT_NONBLOCK,;t t
32889 s,@PORT_DIR@,$PORT_DIR,;t t
32890 s,@USE_POLL@,$USE_POLL,;t t
32891 s,@HAVE_MD5@,$HAVE_MD5,;t t
32892 s,@SOLARIS2@,$SOLARIS2,;t t
32893 s,@PORT_INCLUDE@,$PORT_INCLUDE,;t t
32894 s,@ISC_PLATFORM_MSGHDRFLAVOR@,$ISC_PLATFORM_MSGHDRFLAVOR,;t t
32895 s,@ISC_PLATFORM_NEEDPORTT@,$ISC_PLATFORM_NEEDPORTT,;t t
32896 s,@ISC_LWRES_ENDHOSTENTINT@,$ISC_LWRES_ENDHOSTENTINT,;t t
32897 s,@ISC_LWRES_SETNETENTINT@,$ISC_LWRES_SETNETENTINT,;t t
32898 s,@ISC_LWRES_ENDNETENTINT@,$ISC_LWRES_ENDNETENTINT,;t t
32899 s,@ISC_LWRES_GETHOSTBYADDRVOID@,$ISC_LWRES_GETHOSTBYADDRVOID,;t t
32900 s,@ISC_LWRES_NEEDHERRNO@,$ISC_LWRES_NEEDHERRNO,;t t
32901 s,@ISC_LWRES_GETIPNODEPROTO@,$ISC_LWRES_GETIPNODEPROTO,;t t
32902 s,@ISC_LWRES_GETADDRINFOPROTO@,$ISC_LWRES_GETADDRINFOPROTO,;t t
32903 s,@ISC_LWRES_GETNAMEINFOPROTO@,$ISC_LWRES_GETNAMEINFOPROTO,;t t
32904 s,@NEED_PSELECT@,$NEED_PSELECT,;t t
32905 s,@NEED_GETTIMEOFDAY@,$NEED_GETTIMEOFDAY,;t t
32906 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
32907 s,@ISC_PLATFORM_NEEDSTRSEP@,$ISC_PLATFORM_NEEDSTRSEP,;t t
32908 s,@ISC_PLATFORM_NEEDVSNPRINTF@,$ISC_PLATFORM_NEEDVSNPRINTF,;t t
32909 s,@ISC_EXTRA_OBJS@,$ISC_EXTRA_OBJS,;t t
32910 s,@ISC_EXTRA_SRCS@,$ISC_EXTRA_SRCS,;t t
32911 s,@USE_SYSERROR_LIST@,$USE_SYSERROR_LIST,;t t
32912 s,@ISC_PLATFORM_QUADFORMAT@,$ISC_PLATFORM_QUADFORMAT,;t t
32913 s,@ISC_SOCKLEN_T@,$ISC_SOCKLEN_T,;t t
32914 s,@GETGROUPLIST_ARGS@,$GETGROUPLIST_ARGS,;t t
32915 s,@NET_R_ARGS@,$NET_R_ARGS,;t t
32916 s,@NET_R_BAD@,$NET_R_BAD,;t t
32917 s,@NET_R_COPY@,$NET_R_COPY,;t t
32918 s,@NET_R_COPY_ARGS@,$NET_R_COPY_ARGS,;t t
32919 s,@NET_R_OK@,$NET_R_OK,;t t
32920 s,@NET_R_SETANSWER@,$NET_R_SETANSWER,;t t
32921 s,@NET_R_RETURN@,$NET_R_RETURN,;t t
32922 s,@GETNETBYADDR_ADDR_T@,$GETNETBYADDR_ADDR_T,;t t
32923 s,@NETENT_DATA@,$NETENT_DATA,;t t
32924 s,@NET_R_ENT_ARGS@,$NET_R_ENT_ARGS,;t t
32925 s,@NET_R_SET_RESULT@,$NET_R_SET_RESULT,;t t
32926 s,@NET_R_SET_RETURN@,$NET_R_SET_RETURN,;t t
32927 s,@NET_R_END_RESULT@,$NET_R_END_RESULT,;t t
32928 s,@NET_R_END_RETURN@,$NET_R_END_RETURN,;t t
32929 s,@GROUP_R_ARGS@,$GROUP_R_ARGS,;t t
32930 s,@GROUP_R_BAD@,$GROUP_R_BAD,;t t
32931 s,@GROUP_R_OK@,$GROUP_R_OK,;t t
32932 s,@GROUP_R_RETURN@,$GROUP_R_RETURN,;t t
32933 s,@GROUP_R_END_RESULT@,$GROUP_R_END_RESULT,;t t
32934 s,@GROUP_R_END_RETURN@,$GROUP_R_END_RETURN,;t t
32935 s,@GROUP_R_ENT_ARGS@,$GROUP_R_ENT_ARGS,;t t
32936 s,@GROUP_R_SET_RESULT@,$GROUP_R_SET_RESULT,;t t
32937 s,@GROUP_R_SET_RETURN@,$GROUP_R_SET_RETURN,;t t
32938 s,@HOST_R_ARGS@,$HOST_R_ARGS,;t t
32939 s,@HOST_R_BAD@,$HOST_R_BAD,;t t
32940 s,@HOST_R_COPY@,$HOST_R_COPY,;t t
32941 s,@HOST_R_COPY_ARGS@,$HOST_R_COPY_ARGS,;t t
32942 s,@HOST_R_ERRNO@,$HOST_R_ERRNO,;t t
32943 s,@HOST_R_OK@,$HOST_R_OK,;t t
32944 s,@HOST_R_RETURN@,$HOST_R_RETURN,;t t
32945 s,@HOST_R_SETANSWER@,$HOST_R_SETANSWER,;t t
32946 s,@HOSTENT_DATA@,$HOSTENT_DATA,;t t
32947 s,@HOST_R_END_RESULT@,$HOST_R_END_RESULT,;t t
32948 s,@HOST_R_END_RETURN@,$HOST_R_END_RETURN,;t t
32949 s,@HOST_R_ENT_ARGS@,$HOST_R_ENT_ARGS,;t t
32950 s,@HOST_R_SET_RESULT@,$HOST_R_SET_RESULT,;t t
32951 s,@HOST_R_SET_RETURN@,$HOST_R_SET_RETURN,;t t
32952 s,@SETPWENT_VOID@,$SETPWENT_VOID,;t t
32953 s,@SETGRENT_VOID@,$SETGRENT_VOID,;t t
32954 s,@NGR_R_ARGS@,$NGR_R_ARGS,;t t
32955 s,@NGR_R_BAD@,$NGR_R_BAD,;t t
32956 s,@NGR_R_COPY@,$NGR_R_COPY,;t t
32957 s,@NGR_R_COPY_ARGS@,$NGR_R_COPY_ARGS,;t t
32958 s,@NGR_R_OK@,$NGR_R_OK,;t t
32959 s,@NGR_R_RETURN@,$NGR_R_RETURN,;t t
32960 s,@NGR_R_PRIVATE@,$NGR_R_PRIVATE,;t t
32961 s,@NGR_R_END_RESULT@,$NGR_R_END_RESULT,;t t
32962 s,@NGR_R_END_RETURN@,$NGR_R_END_RETURN,;t t
32963 s,@NGR_R_ENT_ARGS@,$NGR_R_ENT_ARGS,;t t
32964 s,@NGR_R_SET_RESULT@,$NGR_R_SET_RESULT,;t t
32965 s,@NGR_R_SET_RETURN@,$NGR_R_SET_RETURN,;t t
32966 s,@PROTO_R_ARGS@,$PROTO_R_ARGS,;t t
32967 s,@PROTO_R_BAD@,$PROTO_R_BAD,;t t
32968 s,@PROTO_R_COPY@,$PROTO_R_COPY,;t t
32969 s,@PROTO_R_COPY_ARGS@,$PROTO_R_COPY_ARGS,;t t
32970 s,@PROTO_R_OK@,$PROTO_R_OK,;t t
32971 s,@PROTO_R_SETANSWER@,$PROTO_R_SETANSWER,;t t
32972 s,@PROTO_R_RETURN@,$PROTO_R_RETURN,;t t
32973 s,@PROTOENT_DATA@,$PROTOENT_DATA,;t t
32974 s,@PROTO_R_END_RESULT@,$PROTO_R_END_RESULT,;t t
32975 s,@PROTO_R_END_RETURN@,$PROTO_R_END_RETURN,;t t
32976 s,@PROTO_R_ENT_ARGS@,$PROTO_R_ENT_ARGS,;t t
32977 s,@PROTO_R_ENT_UNUSED@,$PROTO_R_ENT_UNUSED,;t t
32978 s,@PROTO_R_SET_RESULT@,$PROTO_R_SET_RESULT,;t t
32979 s,@PROTO_R_SET_RETURN@,$PROTO_R_SET_RETURN,;t t
32980 s,@PASS_R_ARGS@,$PASS_R_ARGS,;t t
32981 s,@PASS_R_BAD@,$PASS_R_BAD,;t t
32982 s,@PASS_R_COPY@,$PASS_R_COPY,;t t
32983 s,@PASS_R_COPY_ARGS@,$PASS_R_COPY_ARGS,;t t
32984 s,@PASS_R_OK@,$PASS_R_OK,;t t
32985 s,@PASS_R_RETURN@,$PASS_R_RETURN,;t t
32986 s,@PASS_R_END_RESULT@,$PASS_R_END_RESULT,;t t
32987 s,@PASS_R_END_RETURN@,$PASS_R_END_RETURN,;t t
32988 s,@PASS_R_ENT_ARGS@,$PASS_R_ENT_ARGS,;t t
32989 s,@PASS_R_SET_RESULT@,$PASS_R_SET_RESULT,;t t
32990 s,@PASS_R_SET_RETURN@,$PASS_R_SET_RETURN,;t t
32991 s,@SERV_R_ARGS@,$SERV_R_ARGS,;t t
32992 s,@SERV_R_BAD@,$SERV_R_BAD,;t t
32993 s,@SERV_R_COPY@,$SERV_R_COPY,;t t
32994 s,@SERV_R_COPY_ARGS@,$SERV_R_COPY_ARGS,;t t
32995 s,@SERV_R_OK@,$SERV_R_OK,;t t
32996 s,@SERV_R_SETANSWER@,$SERV_R_SETANSWER,;t t
32997 s,@SERV_R_RETURN@,$SERV_R_RETURN,;t t
32998 s,@SERVENT_DATA@,$SERVENT_DATA,;t t
32999 s,@SERV_R_END_RESULT@,$SERV_R_END_RESULT,;t t
33000 s,@SERV_R_END_RETURN@,$SERV_R_END_RETURN,;t t
33001 s,@SERV_R_ENT_ARGS@,$SERV_R_ENT_ARGS,;t t
33002 s,@SERV_R_ENT_UNUSED@,$SERV_R_ENT_UNUSED,;t t
33003 s,@SERV_R_SET_RESULT@,$SERV_R_SET_RESULT,;t t
33004 s,@SERV_R_SET_RETURN@,$SERV_R_SET_RETURN,;t t
33005 s,@SETNETGRENT_ARGS@,$SETNETGRENT_ARGS,;t t
33006 s,@INNETGR_ARGS@,$INNETGR_ARGS,;t t
33007 s,@BIND9_TOP_BUILDDIR@,$BIND9_TOP_BUILDDIR,;t t
33008 s,@BIND9_VERSION@,$BIND9_VERSION,;t t
33009 s,@LIBOBJS@,$LIBOBJS,;t t
33010 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
33011 /@BIND9_INCLUDES@/r $BIND9_INCLUDES
33012 s,@BIND9_INCLUDES@,,;t t
33013 /@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
33014 s,@BIND9_MAKE_RULES@,,;t t
33015 /@LIBBIND_API@/r $LIBBIND_API
33016 s,@LIBBIND_API@,,;t t
33021 cat >>$CONFIG_STATUS <<\_ACEOF
33022 # Split the substitutions into bite-sized pieces for seds with
33023 # small command number limits, like on Digital OSF/1 and HP-UX.
33024 ac_max_sed_lines=48
33025 ac_sed_frag=1 # Number of current file.
33026 ac_beg=1 # First line for current file.
33027 ac_end=$ac_max_sed_lines # Line after last line for current file.
33030 while $ac_more_lines; do
33031 if test $ac_beg -gt 1; then
33032 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33034 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33036 if test ! -s $tmp/subs.frag; then
33037 ac_more_lines=false
33039 # The purpose of the label and of the branching condition is to
33040 # speed up the sed processing (if there are no `@' at all, there
33041 # is no need to browse any of the substitutions).
33042 # These are the two extra sed commands mentioned above.
33044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
33045 if test -z "$ac_sed_cmds"; then
33046 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
33048 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
33050 ac_sed_frag=`expr $ac_sed_frag + 1`
33052 ac_end=`expr $ac_end + $ac_max_sed_lines`
33055 if test -z "$ac_sed_cmds"; then
33058 fi # test -n "$CONFIG_FILES"
33061 cat >>$CONFIG_STATUS <<\_ACEOF
33062 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
33063 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33065 - | *:- | *:-:* ) # input from stdin
33067 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33068 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33069 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33070 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33071 * ) ac_file_in=$ac_file.in ;;
33074 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
33075 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33077 X"$ac_file" : 'X\(//\)[^/]' \| \
33078 X"$ac_file" : 'X\(//\)$' \| \
33079 X"$ac_file" : 'X\(/\)' \| \
33080 . : '\(.\)' 2>/dev/null ||
33082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33084 /^X\(\/\/\)$/{ s//\1/; q; }
33085 /^X\(\/\).*/{ s//\1/; q; }
33087 { if $as_mkdir_p; then
33092 while test ! -d "$as_dir"; do
33093 as_dirs="$as_dir $as_dirs"
33094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33096 X"$as_dir" : 'X\(//\)[^/]' \| \
33097 X"$as_dir" : 'X\(//\)$' \| \
33098 X"$as_dir" : 'X\(/\)' \| \
33099 . : '\(.\)' 2>/dev/null ||
33101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33103 /^X\(\/\/\)$/{ s//\1/; q; }
33104 /^X\(\/\).*/{ s//\1/; q; }
33107 test ! -n "$as_dirs" || mkdir $as_dirs
33108 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33110 { (exit 1); exit 1; }; }; }
33114 if test "$ac_dir" != .; then
33115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33116 # A "../" for each directory in $ac_dir_suffix.
33117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33119 ac_dir_suffix= ac_top_builddir=
33123 .) # No --srcdir option. We are building in place.
33125 if test -z "$ac_top_builddir"; then
33128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33130 [\\/]* | ?:[\\/]* ) # Absolute path.
33131 ac_srcdir=$srcdir$ac_dir_suffix;
33132 ac_top_srcdir=$srcdir ;;
33133 *) # Relative path.
33134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
33138 # Do not use `cd foo && pwd` to compute absolute paths, because
33139 # the directories may not exist.
33141 .) ac_abs_builddir="$ac_dir";;
33144 .) ac_abs_builddir=`pwd`;;
33145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
33149 case $ac_abs_builddir in
33150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33152 case ${ac_top_builddir}. in
33153 .) ac_abs_top_builddir=$ac_abs_builddir;;
33154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33158 case $ac_abs_builddir in
33159 .) ac_abs_srcdir=$ac_srcdir;;
33162 .) ac_abs_srcdir=$ac_abs_builddir;;
33163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33167 case $ac_abs_builddir in
33168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33170 case $ac_top_srcdir in
33171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
33172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33180 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
33183 if test x"$ac_file" != x-; then
33184 { echo "$as_me:$LINENO: creating $ac_file" >&5
33185 echo "$as_me: creating $ac_file" >&6;}
33188 # Let's still pretend it is `configure' which instantiates (i.e., don't
33189 # use $as_me), people would be surprised to read:
33190 # /* config.h. Generated by config.status. */
33191 if test x"$ac_file" = x-; then
33194 configure_input="$ac_file. "
33196 configure_input=$configure_input"Generated from `echo $ac_file_in |
33197 sed 's,.*/,,'` by configure."
33199 # First look for the input files in the build tree, otherwise in the
33201 ac_file_inputs=`IFS=:
33202 for f in $ac_file_in; do
33204 -) echo $tmp/stdin ;;
33206 # Absolute (can't be DOS-style, as IFS=:)
33207 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33208 echo "$as_me: error: cannot find input file: $f" >&2;}
33209 { (exit 1); exit 1; }; }
33212 if test -f "$f"; then
33215 elif test -f "$srcdir/$f"; then
33220 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33221 echo "$as_me: error: cannot find input file: $f" >&2;}
33222 { (exit 1); exit 1; }; }
33225 done` || { (exit 1); exit 1; }
33227 cat >>$CONFIG_STATUS <<_ACEOF
33231 cat >>$CONFIG_STATUS <<\_ACEOF
33233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33234 s,@configure_input@,$configure_input,;t t
33235 s,@srcdir@,$ac_srcdir,;t t
33236 s,@abs_srcdir@,$ac_abs_srcdir,;t t
33237 s,@top_srcdir@,$ac_top_srcdir,;t t
33238 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
33239 s,@builddir@,$ac_builddir,;t t
33240 s,@abs_builddir@,$ac_abs_builddir,;t t
33241 s,@top_builddir@,$ac_top_builddir,;t t
33242 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
33243 s,@INSTALL@,$ac_INSTALL,;t t
33244 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
33246 if test x"$ac_file" != x-; then
33247 mv $tmp/out $ac_file
33255 cat >>$CONFIG_STATUS <<\_ACEOF
33258 # CONFIG_HEADER section.
33261 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
33262 # NAME is the cpp macro being defined and VALUE is the value it is being given.
33264 # ac_d sets the value in "#define NAME VALUE" lines.
33265 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
33266 ac_dB='[ ].*$,\1#\2'
33269 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
33270 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
33271 ac_uB='$,\1#\2define\3'
33275 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
33276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33278 - | *:- | *:-:* ) # input from stdin
33280 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33281 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33282 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33284 * ) ac_file_in=$ac_file.in ;;
33287 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
33288 echo "$as_me: creating $ac_file" >&6;}
33290 # First look for the input files in the build tree, otherwise in the
33292 ac_file_inputs=`IFS=:
33293 for f in $ac_file_in; do
33295 -) echo $tmp/stdin ;;
33297 # Absolute (can't be DOS-style, as IFS=:)
33298 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33299 echo "$as_me: error: cannot find input file: $f" >&2;}
33300 { (exit 1); exit 1; }; }
33301 # Do quote $f, to prevent DOS paths from being IFS'd.
33304 if test -f "$f"; then
33307 elif test -f "$srcdir/$f"; then
33312 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33313 echo "$as_me: error: cannot find input file: $f" >&2;}
33314 { (exit 1); exit 1; }; }
33317 done` || { (exit 1); exit 1; }
33318 # Remove the trailing spaces.
33319 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
33323 # Transform confdefs.h into two sed scripts, `conftest.defines' and
33324 # `conftest.undefs', that substitutes the proper values into
33325 # config.h.in to produce config.h. The first handles `#define'
33326 # templates, and the second `#undef' templates.
33327 # And first: Protect against being on the right side of a sed subst in
33328 # config.status. Protect against being in an unquoted here document
33329 # in config.status.
33330 rm -f conftest.defines conftest.undefs
33331 # Using a here document instead of a string reduces the quoting nightmare.
33332 # Putting comments in sed scripts is not portable.
33334 # `end' is used to avoid that the second main sed command (meant for
33335 # 0-ary CPP macros) applies to n-ary macro definitions.
33336 # See the Autoconf documentation for `clear'.
33337 cat >confdef2sed.sed <<\_ACEOF
33342 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
33344 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
33347 # If some macros were called several times there might be several times
33348 # the same #defines, which is useless. Nevertheless, we may not want to
33349 # sort them, since we want the *last* AC-DEFINE to be honored.
33350 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
33351 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
33352 rm -f confdef2sed.sed
33354 # This sed command replaces #undef with comments. This is necessary, for
33355 # example, in the case of _POSIX_SOURCE, which is predefined and required
33356 # on some systems where configure will not decide to define it.
33357 cat >>conftest.undefs <<\_ACEOF
33358 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
33361 # Break up conftest.defines because some shells have a limit on the size
33362 # of here documents, and old seds have small limits too (100 cmds).
33363 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
33364 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
33365 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
33366 echo ' :' >>$CONFIG_STATUS
33367 rm -f conftest.tail
33368 while grep . conftest.defines >/dev/null
33370 # Write a limited-size here document to $tmp/defines.sed.
33371 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
33372 # Speed up: don't consider the non `#define' lines.
33373 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
33374 # Work around the forget-to-reset-the-flag bug.
33375 echo 't clr' >>$CONFIG_STATUS
33376 echo ': clr' >>$CONFIG_STATUS
33377 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
33379 sed -f $tmp/defines.sed $tmp/in >$tmp/out
33381 mv $tmp/out $tmp/in
33383 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
33384 rm -f conftest.defines
33385 mv conftest.tail conftest.defines
33387 rm -f conftest.defines
33388 echo ' fi # grep' >>$CONFIG_STATUS
33389 echo >>$CONFIG_STATUS
33391 # Break up conftest.undefs because some shells have a limit on the size
33392 # of here documents, and old seds have small limits too (100 cmds).
33393 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
33394 rm -f conftest.tail
33395 while grep . conftest.undefs >/dev/null
33397 # Write a limited-size here document to $tmp/undefs.sed.
33398 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
33399 # Speed up: don't consider the non `#undef'
33400 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
33401 # Work around the forget-to-reset-the-flag bug.
33402 echo 't clr' >>$CONFIG_STATUS
33403 echo ': clr' >>$CONFIG_STATUS
33404 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
33406 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
33408 mv $tmp/out $tmp/in
33410 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
33411 rm -f conftest.undefs
33412 mv conftest.tail conftest.undefs
33414 rm -f conftest.undefs
33416 cat >>$CONFIG_STATUS <<\_ACEOF
33417 # Let's still pretend it is `configure' which instantiates (i.e., don't
33418 # use $as_me), people would be surprised to read:
33419 # /* config.h. Generated by config.status. */
33420 if test x"$ac_file" = x-; then
33421 echo "/* Generated by configure. */" >$tmp/config.h
33423 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
33425 cat $tmp/in >>$tmp/config.h
33427 if test x"$ac_file" != x-; then
33428 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
33429 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33430 echo "$as_me: $ac_file is unchanged" >&6;}
33432 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33434 X"$ac_file" : 'X\(//\)[^/]' \| \
33435 X"$ac_file" : 'X\(//\)$' \| \
33436 X"$ac_file" : 'X\(/\)' \| \
33437 . : '\(.\)' 2>/dev/null ||
33439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33441 /^X\(\/\/\)$/{ s//\1/; q; }
33442 /^X\(\/\).*/{ s//\1/; q; }
33444 { if $as_mkdir_p; then
33449 while test ! -d "$as_dir"; do
33450 as_dirs="$as_dir $as_dirs"
33451 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33453 X"$as_dir" : 'X\(//\)[^/]' \| \
33454 X"$as_dir" : 'X\(//\)$' \| \
33455 X"$as_dir" : 'X\(/\)' \| \
33456 . : '\(.\)' 2>/dev/null ||
33458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33460 /^X\(\/\/\)$/{ s//\1/; q; }
33461 /^X\(\/\).*/{ s//\1/; q; }
33464 test ! -n "$as_dirs" || mkdir $as_dirs
33465 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33466 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33467 { (exit 1); exit 1; }; }; }
33470 mv $tmp/config.h $ac_file
33474 rm -f $tmp/config.h
33479 cat >>$CONFIG_STATUS <<\_ACEOF
33481 { (exit 0); exit 0; }
33483 chmod +x $CONFIG_STATUS
33484 ac_clean_files=$ac_clean_files_save
33487 # configure is writing to config.log, and then calls config.status.
33488 # config.status does its own redirection, appending to config.log.
33489 # Unfortunately, on DOS this fails, as config.log is still kept open
33490 # by configure, so config.status won't be able to write to it; its
33491 # output is simply discarded. So we exec the FD to /dev/null,
33492 # effectively closing config.log, so it can be properly (re)opened and
33493 # appended to by config.status. When coming back to configure, we
33494 # need to make the FD available again.
33495 if test "$no_create" != yes; then
33497 ac_config_status_args=
33498 test "$silent" = yes &&
33499 ac_config_status_args="$ac_config_status_args --quiet"
33501 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33503 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33504 # would make configure fail if this is the last instruction.
33505 $ac_cs_success || { (exit 1); exit 1; }
33509 # Tell Emacs to edit this file in shell mode.