2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.586.2.19 2005/08/13 03:48:06 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
432 ac_unique_file="OpenLDAP"
433 ac_unique_file="build/version.sh"
434 ac_default_prefix=/usr/local
435 # Factoring default headers for most tests.
436 ac_includes_default="\
439 # include <sys/types.h>
442 # include <sys/stat.h>
453 # if !STDC_HEADERS && HAVE_MEMORY_H
459 # include <strings.h>
462 # include <inttypes.h>
472 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
475 # Initialize some variables set by options.
477 ac_init_version=false
478 # The variables have the same names as the options, with
479 # dashes changed to underlines.
487 program_transform_name=s,x,x,
495 # Installation directory options.
496 # These are left unexpanded so users can "make install exec_prefix=/foo"
497 # and all the variables that are supposed to be based on exec_prefix
498 # by default will actually change.
499 # Use braces instead of parens because sh, perl, etc. also accept them.
500 bindir='${exec_prefix}/bin'
501 sbindir='${exec_prefix}/sbin'
502 libexecdir='${exec_prefix}/libexec'
503 datadir='${prefix}/share'
504 sysconfdir='${prefix}/etc'
505 sharedstatedir='${prefix}/com'
506 localstatedir='${prefix}/var'
507 libdir='${exec_prefix}/lib'
508 includedir='${prefix}/include'
509 oldincludedir='/usr/include'
510 infodir='${prefix}/info'
511 mandir='${prefix}/man'
516 # If the previous option needs an argument, assign it.
517 if test -n "$ac_prev"; then
518 eval "$ac_prev=\$ac_option"
523 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525 # Accept the important Cygnus configure options, so we can diagnose typos.
529 -bindir | --bindir | --bindi | --bind | --bin | --bi)
531 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
534 -build | --build | --buil | --bui | --bu)
535 ac_prev=build_alias ;;
536 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537 build_alias=$ac_optarg ;;
539 -cache-file | --cache-file | --cache-fil | --cache-fi \
540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541 ac_prev=cache_file ;;
542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544 cache_file=$ac_optarg ;;
547 cache_file=config.cache ;;
549 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553 datadir=$ac_optarg ;;
555 -disable-* | --disable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 eval "enable_$ac_feature=no" ;;
564 -enable-* | --enable-*)
565 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566 # Reject names that are not valid shell variable names.
567 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569 { (exit 1); exit 1; }; }
570 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575 eval "enable_$ac_feature='$ac_optarg'" ;;
577 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579 | --exec | --exe | --ex)
580 ac_prev=exec_prefix ;;
581 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583 | --exec=* | --exe=* | --ex=*)
584 exec_prefix=$ac_optarg ;;
586 -gas | --gas | --ga | --g)
587 # Obsolete; use --with-gas.
590 -help | --help | --hel | --he | -h)
592 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593 ac_init_help=recursive ;;
594 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595 ac_init_help=short ;;
597 -host | --host | --hos | --ho)
598 ac_prev=host_alias ;;
599 -host=* | --host=* | --hos=* | --ho=*)
600 host_alias=$ac_optarg ;;
602 -includedir | --includedir | --includedi | --included | --include \
603 | --includ | --inclu | --incl | --inc)
604 ac_prev=includedir ;;
605 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606 | --includ=* | --inclu=* | --incl=* | --inc=*)
607 includedir=$ac_optarg ;;
609 -infodir | --infodir | --infodi | --infod | --info | --inf)
611 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612 infodir=$ac_optarg ;;
614 -libdir | --libdir | --libdi | --libd)
616 -libdir=* | --libdir=* | --libdi=* | --libd=*)
619 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620 | --libexe | --libex | --libe)
621 ac_prev=libexecdir ;;
622 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623 | --libexe=* | --libex=* | --libe=*)
624 libexecdir=$ac_optarg ;;
626 -localstatedir | --localstatedir | --localstatedi | --localstated \
627 | --localstate | --localstat | --localsta | --localst \
628 | --locals | --local | --loca | --loc | --lo)
629 ac_prev=localstatedir ;;
630 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633 localstatedir=$ac_optarg ;;
635 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641 # Obsolete; use --without-fp.
644 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645 | --no-cr | --no-c | -n)
648 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
652 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654 | --oldin | --oldi | --old | --ol | --o)
655 ac_prev=oldincludedir ;;
656 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659 oldincludedir=$ac_optarg ;;
661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
666 -program-prefix | --program-prefix | --program-prefi | --program-pref \
667 | --program-pre | --program-pr | --program-p)
668 ac_prev=program_prefix ;;
669 -program-prefix=* | --program-prefix=* | --program-prefi=* \
670 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671 program_prefix=$ac_optarg ;;
673 -program-suffix | --program-suffix | --program-suffi | --program-suff \
674 | --program-suf | --program-su | --program-s)
675 ac_prev=program_suffix ;;
676 -program-suffix=* | --program-suffix=* | --program-suffi=* \
677 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678 program_suffix=$ac_optarg ;;
680 -program-transform-name | --program-transform-name \
681 | --program-transform-nam | --program-transform-na \
682 | --program-transform-n | --program-transform- \
683 | --program-transform | --program-transfor \
684 | --program-transfo | --program-transf \
685 | --program-trans | --program-tran \
686 | --progr-tra | --program-tr | --program-t)
687 ac_prev=program_transform_name ;;
688 -program-transform-name=* | --program-transform-name=* \
689 | --program-transform-nam=* | --program-transform-na=* \
690 | --program-transform-n=* | --program-transform-=* \
691 | --program-transform=* | --program-transfor=* \
692 | --program-transfo=* | --program-transf=* \
693 | --program-trans=* | --program-tran=* \
694 | --progr-tra=* | --program-tr=* | --program-t=*)
695 program_transform_name=$ac_optarg ;;
697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698 | -silent | --silent | --silen | --sile | --sil)
701 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705 sbindir=$ac_optarg ;;
707 -sharedstatedir | --sharedstatedir | --sharedstatedi \
708 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709 | --sharedst | --shareds | --shared | --share | --shar \
711 ac_prev=sharedstatedir ;;
712 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716 sharedstatedir=$ac_optarg ;;
718 -site | --site | --sit)
720 -site=* | --site=* | --sit=*)
723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
728 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729 | --syscon | --sysco | --sysc | --sys | --sy)
730 ac_prev=sysconfdir ;;
731 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733 sysconfdir=$ac_optarg ;;
735 -target | --target | --targe | --targ | --tar | --ta | --t)
736 ac_prev=target_alias ;;
737 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738 target_alias=$ac_optarg ;;
740 -v | -verbose | --verbose | --verbos | --verbo | --verb)
743 -version | --version | --versio | --versi | --vers | -V)
747 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748 # Reject names that are not valid shell variable names.
749 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750 { echo "$as_me: error: invalid package name: $ac_package" >&2
751 { (exit 1); exit 1; }; }
752 ac_package=`echo $ac_package| sed 's/-/_/g'`
754 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
757 eval "with_$ac_package='$ac_optarg'" ;;
759 -without-* | --without-*)
760 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761 # Reject names that are not valid shell variable names.
762 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763 { echo "$as_me: error: invalid package name: $ac_package" >&2
764 { (exit 1); exit 1; }; }
765 ac_package=`echo $ac_package | sed 's/-/_/g'`
766 eval "with_$ac_package=no" ;;
769 # Obsolete; use --with-x.
772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773 | --x-incl | --x-inc | --x-in | --x-i)
774 ac_prev=x_includes ;;
775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777 x_includes=$ac_optarg ;;
779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781 ac_prev=x_libraries ;;
782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784 x_libraries=$ac_optarg ;;
786 -*) { echo "$as_me: error: unrecognized option: $ac_option
787 Try \`$0 --help' for more information." >&2
788 { (exit 1); exit 1; }; }
792 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796 { (exit 1); exit 1; }; }
797 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798 eval "$ac_envvar='$ac_optarg'"
802 # FIXME: should be removed in autoconf 3.0.
803 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812 if test -n "$ac_prev"; then
813 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814 { echo "$as_me: error: missing argument to $ac_option" >&2
815 { (exit 1); exit 1; }; }
818 # Be sure to have absolute paths.
819 for ac_var in exec_prefix prefix
821 eval ac_val=$`echo $ac_var`
823 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
829 # Be sure to have absolute paths.
830 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831 localstatedir libdir includedir oldincludedir infodir mandir
833 eval ac_val=$`echo $ac_var`
835 [\\/$]* | ?:[\\/]* ) ;;
836 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837 { (exit 1); exit 1; }; };;
841 # There might be people who depend on the old broken behavior: `$host'
842 # used to hold the argument of --host etc.
843 # FIXME: To remove some day.
848 # FIXME: To remove some day.
849 if test "x$host_alias" != x; then
850 if test "x$build_alias" = x; then
851 cross_compiling=maybe
852 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853 If a cross compiler is detected then cross compile mode will be used." >&2
854 elif test "x$build_alias" != "x$host_alias"; then
860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
862 test "$silent" = yes && exec 6>/dev/null
865 # Find the source files, if location was not specified.
866 if test -z "$srcdir"; then
867 ac_srcdir_defaulted=yes
868 # Try the directory containing this script, then its parent.
869 ac_confdir=`(dirname "$0") 2>/dev/null ||
870 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871 X"$0" : 'X\(//\)[^/]' \| \
872 X"$0" : 'X\(//\)$' \| \
873 X"$0" : 'X\(/\)' \| \
874 . : '\(.\)' 2>/dev/null ||
876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878 /^X\(\/\/\)$/{ s//\1/; q; }
879 /^X\(\/\).*/{ s//\1/; q; }
882 if test ! -r $srcdir/$ac_unique_file; then
886 ac_srcdir_defaulted=no
888 if test ! -r $srcdir/$ac_unique_file; then
889 if test "$ac_srcdir_defaulted" = yes; then
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891 { (exit 1); exit 1; }; }
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894 { (exit 1); exit 1; }; }
897 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899 { (exit 1); exit 1; }; }
900 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901 ac_env_build_alias_set=${build_alias+set}
902 ac_env_build_alias_value=$build_alias
903 ac_cv_env_build_alias_set=${build_alias+set}
904 ac_cv_env_build_alias_value=$build_alias
905 ac_env_host_alias_set=${host_alias+set}
906 ac_env_host_alias_value=$host_alias
907 ac_cv_env_host_alias_set=${host_alias+set}
908 ac_cv_env_host_alias_value=$host_alias
909 ac_env_target_alias_set=${target_alias+set}
910 ac_env_target_alias_value=$target_alias
911 ac_cv_env_target_alias_set=${target_alias+set}
912 ac_cv_env_target_alias_value=$target_alias
913 ac_env_CC_set=${CC+set}
915 ac_cv_env_CC_set=${CC+set}
916 ac_cv_env_CC_value=$CC
917 ac_env_CFLAGS_set=${CFLAGS+set}
918 ac_env_CFLAGS_value=$CFLAGS
919 ac_cv_env_CFLAGS_set=${CFLAGS+set}
920 ac_cv_env_CFLAGS_value=$CFLAGS
921 ac_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_env_LDFLAGS_value=$LDFLAGS
923 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924 ac_cv_env_LDFLAGS_value=$LDFLAGS
925 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_env_CPPFLAGS_value=$CPPFLAGS
927 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929 ac_env_CPP_set=${CPP+set}
930 ac_env_CPP_value=$CPP
931 ac_cv_env_CPP_set=${CPP+set}
932 ac_cv_env_CPP_value=$CPP
933 ac_env_CXX_set=${CXX+set}
934 ac_env_CXX_value=$CXX
935 ac_cv_env_CXX_set=${CXX+set}
936 ac_cv_env_CXX_value=$CXX
937 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_env_CXXFLAGS_value=$CXXFLAGS
939 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
941 ac_env_CXXCPP_set=${CXXCPP+set}
942 ac_env_CXXCPP_value=$CXXCPP
943 ac_cv_env_CXXCPP_set=${CXXCPP+set}
944 ac_cv_env_CXXCPP_value=$CXXCPP
945 ac_env_F77_set=${F77+set}
946 ac_env_F77_value=$F77
947 ac_cv_env_F77_set=${F77+set}
948 ac_cv_env_F77_value=$F77
949 ac_env_FFLAGS_set=${FFLAGS+set}
950 ac_env_FFLAGS_value=$FFLAGS
951 ac_cv_env_FFLAGS_set=${FFLAGS+set}
952 ac_cv_env_FFLAGS_value=$FFLAGS
955 # Report the --help message.
957 if test "$ac_init_help" = "long"; then
958 # Omit some internal or obsolete options to make the list less imposing.
959 # This message is too long to be a string in the A/UX 3.1 sh.
961 \`configure' configures this package to adapt to many kinds of systems.
963 Usage: $0 [OPTION]... [VAR=VALUE]...
965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
966 VAR=VALUE. See below for descriptions of some of the useful variables.
968 Defaults for the options are specified in brackets.
971 -h, --help display this help and exit
972 --help=short display options specific to this package
973 --help=recursive display the short help of all the included packages
974 -V, --version display version information and exit
975 -q, --quiet, --silent do not print \`checking...' messages
976 --cache-file=FILE cache test results in FILE [disabled]
977 -C, --config-cache alias for \`--cache-file=config.cache'
978 -n, --no-create do not create output files
979 --srcdir=DIR find the sources in DIR [configure dir or \`..']
984 Installation directories:
985 --prefix=PREFIX install architecture-independent files in PREFIX
987 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
990 By default, \`make install' will install all the files in
991 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
992 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993 for instance \`--prefix=\$HOME'.
995 For better control, use the options below.
997 Fine tuning of the installation directories:
998 --bindir=DIR user executables [EPREFIX/bin]
999 --sbindir=DIR system admin executables [EPREFIX/sbin]
1000 --libexecdir=DIR program executables [EPREFIX/libexec]
1001 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1005 --libdir=DIR object code libraries [EPREFIX/lib]
1006 --includedir=DIR C header files [PREFIX/include]
1007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1008 --infodir=DIR info documentation [PREFIX/info]
1009 --mandir=DIR man documentation [PREFIX/man]
1015 --program-prefix=PREFIX prepend PREFIX to installed program names
1016 --program-suffix=SUFFIX append SUFFIX to installed program names
1017 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1026 if test -n "$ac_init_help"; then
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --enable-debug enable debugging yes
1034 --enable-dynamic enable linking built binaries with dynamic libs no
1035 --enable-syslog enable syslog support auto
1036 --enable-proctitle enable proctitle support yes
1037 --enable-ipv6 enable IPv6 support auto
1038 --enable-local enable AF_LOCAL (AF_UNIX) socket support auto
1039 --enable-slapd enable building slapd yes
1040 --enable-aci enable per-object ACIs (experimental) no
1041 --enable-cleartext enable cleartext passwords yes
1042 --enable-crypt enable crypt(3) passwords no
1043 --enable-lmpasswd enable LAN Manager passwords no
1044 --enable-spasswd enable (Cyrus) SASL password verification no
1045 --enable-modules enable dynamic module support no
1046 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay auto
1047 --enable-rlookups enable reverse lookups of client hostnames no
1048 --enable-slapi enable SLAPI support (experimental) no
1049 --enable-slp enable SLPv2 support no
1050 --enable-wrappers enable tcp wrapper support no
1051 --enable-backends enable all available backends no|yes|mod
1052 --enable-bdb enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1053 --enable-dnssrv enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1054 --enable-hdb enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1055 --enable-ldap enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1056 --enable-ldbm enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1057 --enable-meta enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1058 --enable-monitor enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1059 --enable-null enable null backend no|yes|mod ${ol_dflt_backends-no}
1060 --enable-passwd enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1061 --enable-perl enable perl backend no|yes|mod ${ol_dflt_backends-no}
1062 --enable-relay enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1063 --enable-shell enable shell backend no|yes|mod ${ol_dflt_backends-no}
1064 --enable-sql enable sql backend no|yes|mod ${ol_dflt_backends-no}
1065 --enable-overlays enable all available overlays no|yes|mod
1066 --enable-accesslog In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1067 --enable-denyop Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1068 --enable-dyngroup Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1069 --enable-dynlist Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1070 --enable-glue Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1071 --enable-lastmod Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1072 --enable-ppolicy Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1073 --enable-proxycache Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1074 --enable-refint Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1075 --enable-retcode Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1076 --enable-rwm Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1077 --enable-syncprov Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1078 --enable-translucent Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1079 --enable-unique Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1080 --enable-slurpd enable building slurpd auto
1081 --enable-static[=PKGS]
1082 build static libraries [default=yes]
1083 --enable-shared[=PKGS]
1084 build shared libraries [default=yes]
1085 --enable-fast-install[=PKGS]
1086 optimize for fast installation [default=yes]
1087 --disable-dependency-tracking speeds up one-time build
1088 --enable-dependency-tracking do not reject slow dependency extractors
1089 --disable-libtool-lock avoid locking (might break parallel builds)
1092 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1093 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1094 --with-subdir=DIR change default subdirectory used for installs
1095 --with-cyrus-sasl with Cyrus SASL support auto
1096 --with-fetch with fetch(3) URL support auto
1097 --with-threads with threads auto
1098 --with-tls with TLS/SSL support auto
1099 --with-yielding-select with implicitly yielding select auto
1100 --with-multiple-precision
1101 multiple precision support for statistics
1102 auto|bignum|gmp auto
1104 SLAPD (Standalone LDAP Daemon) Options:
1106 SLAPD Backend Options:
1107 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1108 --with-ldbm-type use LDBM type auto|btree|hash auto
1110 SLAPD Overlay Options:
1112 SLURPD (Replication Daemon) Options:
1114 Library Generation & Linking Options
1115 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1116 --with-pic try to use only PIC/non-PIC objects [default=use
1119 include additional configurations [automatic]
1121 See INSTALL file for further details.
1123 Some influential environment variables:
1124 CC C compiler command
1125 CFLAGS C compiler flags
1126 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1127 nonstandard directory <lib dir>
1128 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1129 headers in a nonstandard directory <include dir>
1131 CXX C++ compiler command
1132 CXXFLAGS C++ compiler flags
1133 CXXCPP C++ preprocessor
1134 F77 Fortran 77 compiler command
1135 FFLAGS Fortran 77 compiler flags
1137 Use these variables to override the choices made by `configure' or to help
1138 it to find libraries and programs with nonstandard names/locations.
1143 if test "$ac_init_help" = "recursive"; then
1144 # If there are subdirs, report their specific --help.
1146 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147 test -d $ac_dir || continue
1150 if test "$ac_dir" != .; then
1151 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152 # A "../" for each directory in $ac_dir_suffix.
1153 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1155 ac_dir_suffix= ac_top_builddir=
1159 .) # No --srcdir option. We are building in place.
1161 if test -z "$ac_top_builddir"; then
1164 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1166 [\\/]* | ?:[\\/]* ) # Absolute path.
1167 ac_srcdir=$srcdir$ac_dir_suffix;
1168 ac_top_srcdir=$srcdir ;;
1170 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1174 # Do not use `cd foo && pwd` to compute absolute paths, because
1175 # the directories may not exist.
1177 .) ac_abs_builddir="$ac_dir";;
1180 .) ac_abs_builddir=`pwd`;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1188 case ${ac_top_builddir}. in
1189 .) ac_abs_top_builddir=$ac_abs_builddir;;
1190 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1194 case $ac_abs_builddir in
1195 .) ac_abs_srcdir=$ac_srcdir;;
1198 .) ac_abs_srcdir=$ac_abs_builddir;;
1199 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1203 case $ac_abs_builddir in
1204 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1206 case $ac_top_srcdir in
1207 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1214 # Check for guested configure; otherwise get Cygnus style configure.
1215 if test -f $ac_srcdir/configure.gnu; then
1217 $SHELL $ac_srcdir/configure.gnu --help=recursive
1218 elif test -f $ac_srcdir/configure; then
1220 $SHELL $ac_srcdir/configure --help=recursive
1221 elif test -f $ac_srcdir/configure.ac ||
1222 test -f $ac_srcdir/configure.in; then
1224 $ac_configure --help
1226 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1232 test -n "$ac_init_help" && exit 0
1233 if $ac_init_version; then
1236 Copyright (C) 2003 Free Software Foundation, Inc.
1237 This configure script is free software; the Free Software Foundation
1238 gives unlimited permission to copy, distribute and modify it.
1240 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1241 Restrictions apply, see COPYRIGHT and LICENSE files.
1247 This file contains any messages produced by compilers while
1248 running configure, to aid debugging if configure makes a mistake.
1250 It was created by $as_me, which was
1251 generated by GNU Autoconf 2.59. Invocation command line was
1262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1269 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1271 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1272 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1274 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1275 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1276 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1277 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1285 test -z "$as_dir" && as_dir=.
1286 echo "PATH: $as_dir"
1301 # Keep a trace of the command line.
1302 # Strip out --no-create and --no-recursion so they do not pile up.
1303 # Strip out --silent because we don't want to record it for future runs.
1304 # Also quote any args containing shell meta-characters.
1305 # Make two passes to allow for proper duplicate-argument suppression.
1310 ac_must_keep_next=false
1316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318 | -silent | --silent | --silen | --sile | --sil)
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1324 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1326 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1327 if test $ac_must_keep_next = true; then
1328 ac_must_keep_next=false # Got value, back to normal.
1331 *=* | --config-cache | -C | -disable-* | --disable-* \
1332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1334 | -with-* | --with-* | -without-* | --without-* | --x)
1335 case "$ac_configure_args0 " in
1336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1339 -* ) ac_must_keep_next=true ;;
1342 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1343 # Get rid of the leading space.
1349 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1350 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1352 # When interrupted or exit'd, cleanup temporary files, and complete
1353 # config.log. We remove comments because anyway the quotes in there
1354 # would cause problems or look ugly.
1355 # WARNING: Be sure not to use single quotes in there, as some shells,
1356 # such as our DU 5.0 friend, will then `close' the trap.
1357 trap 'exit_status=$?
1358 # Save into config.log some information that might help in debugging.
1363 ## ---------------- ##
1364 ## Cache variables. ##
1365 ## ---------------- ##
1368 # The following way of writing the cache mishandles newlines in values,
1371 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1374 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1379 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1386 ## ----------------- ##
1387 ## Output variables. ##
1388 ## ----------------- ##
1391 for ac_var in $ac_subst_vars
1393 eval ac_val=$`echo $ac_var`
1394 echo "$ac_var='"'"'$ac_val'"'"'"
1398 if test -n "$ac_subst_files"; then
1405 for ac_var in $ac_subst_files
1407 eval ac_val=$`echo $ac_var`
1408 echo "$ac_var='"'"'$ac_val'"'"'"
1413 if test -s confdefs.h; then
1420 sed "/^$/d" confdefs.h | sort
1423 test "$ac_signal" != 0 &&
1424 echo "$as_me: caught signal $ac_signal"
1425 echo "$as_me: exit $exit_status"
1427 rm -f core *.core &&
1428 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1431 for ac_signal in 1 2 13 15; do
1432 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1437 rm -rf conftest* confdefs.h
1438 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1441 # Predefined preprocessor variables.
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_NAME "$PACKAGE_NAME"
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_STRING "$PACKAGE_STRING"
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1468 # Let the site file select an alternate cache file if it wants to.
1469 # Prefer explicitly selected file to automatically selected ones.
1470 if test -z "$CONFIG_SITE"; then
1471 if test "x$prefix" != xNONE; then
1472 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1474 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1477 for ac_site_file in $CONFIG_SITE; do
1478 if test -r "$ac_site_file"; then
1479 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1480 echo "$as_me: loading site script $ac_site_file" >&6;}
1481 sed 's/^/| /' "$ac_site_file" >&5
1487 # Check that the precious variables saved in the cache have kept the same
1489 ac_cache_corrupted=false
1490 for ac_var in `(set) 2>&1 |
1491 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493 eval ac_new_set=\$ac_env_${ac_var}_set
1494 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495 eval ac_new_val="\$ac_env_${ac_var}_value"
1496 case $ac_old_set,$ac_new_set in
1498 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500 ac_cache_corrupted=: ;;
1502 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504 ac_cache_corrupted=: ;;
1507 if test "x$ac_old_val" != "x$ac_new_val"; then
1508 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1511 echo "$as_me: former value: $ac_old_val" >&2;}
1512 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1513 echo "$as_me: current value: $ac_new_val" >&2;}
1514 ac_cache_corrupted=:
1517 # Pass precious variables to config.status.
1518 if test "$ac_new_set" = set; then
1520 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 *) ac_arg=$ac_var=$ac_new_val ;;
1524 case " $ac_configure_args " in
1525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1526 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1530 if $ac_cache_corrupted; then
1531 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535 { (exit 1); exit 1; }; }
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1585 for ac_dir in build $srcdir/build; do
1586 if test -f $ac_dir/install-sh; then
1588 ac_install_sh="$ac_aux_dir/install-sh -c"
1590 elif test -f $ac_dir/install.sh; then
1592 ac_install_sh="$ac_aux_dir/install.sh -c"
1594 elif test -f $ac_dir/shtool; then
1596 ac_install_sh="$ac_aux_dir/shtool install -c"
1600 if test -z "$ac_aux_dir"; then
1601 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1602 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1603 { (exit 1); exit 1; }; }
1605 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1606 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1607 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1609 eval `$ac_aux_dir/version.sh`
1610 if test -z "$OL_STRING"; then
1611 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1612 echo "$as_me: error: could not determine version" >&2;}
1613 { (exit 1); exit 1; }; }
1616 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1617 ac_cv_shtool="$ac_aux_dir/shtool"
1619 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1620 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1621 { (exit 1); exit 1; }; }
1624 SHTOOL="$ac_cv_shtool"
1626 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1627 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1630 if test -d $ac_aux_dir/CVS; then
1631 OPENLDAP_CVS="(from CVS sources) "
1634 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1636 # Make sure we can run config.sub.
1637 $ac_config_sub sun4 >/dev/null 2>&1 ||
1638 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1639 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1640 { (exit 1); exit 1; }; }
1642 echo "$as_me:$LINENO: checking build system type" >&5
1643 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1644 if test "${ac_cv_build+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 ac_cv_build_alias=$build_alias
1648 test -z "$ac_cv_build_alias" &&
1649 ac_cv_build_alias=`$ac_config_guess`
1650 test -z "$ac_cv_build_alias" &&
1651 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1652 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1653 { (exit 1); exit 1; }; }
1654 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1655 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1656 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1657 { (exit 1); exit 1; }; }
1660 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1661 echo "${ECHO_T}$ac_cv_build" >&6
1663 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1664 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1665 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668 echo "$as_me:$LINENO: checking host system type" >&5
1669 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1670 if test "${ac_cv_host+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 ac_cv_host_alias=$host_alias
1674 test -z "$ac_cv_host_alias" &&
1675 ac_cv_host_alias=$ac_cv_build_alias
1676 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1677 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1678 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1679 { (exit 1); exit 1; }; }
1682 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1683 echo "${ECHO_T}$ac_cv_host" >&6
1685 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1686 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1687 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690 echo "$as_me:$LINENO: checking target system type" >&5
1691 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1692 if test "${ac_cv_target+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 ac_cv_target_alias=$target_alias
1696 test "x$ac_cv_target_alias" = "x" &&
1697 ac_cv_target_alias=$ac_cv_host_alias
1698 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1699 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1700 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1701 { (exit 1); exit 1; }; }
1704 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1705 echo "${ECHO_T}$ac_cv_target" >&6
1706 target=$ac_cv_target
1707 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1708 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1709 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1712 # The aliases save the names the user supplied, while $host etc.
1713 # will get canonicalized.
1714 test -n "$target_alias" &&
1715 test "$program_prefix$program_suffix$program_transform_name" = \
1717 program_prefix=${target_alias}-
1719 am__api_version="1.9"
1720 # Find a good install program. We prefer a C program (faster),
1721 # so one script is as good as another. But avoid the broken or
1722 # incompatible versions:
1723 # SysV /etc/install, /usr/sbin/install
1724 # SunOS /usr/etc/install
1725 # IRIX /sbin/install
1727 # AmigaOS /C/install, which installs bootblocks on floppy discs
1728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1731 # OS/2's system install, which has a completely different semantic
1732 # ./install, which can be erroneously created by make from ./install.sh.
1733 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1734 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1735 if test -z "$INSTALL"; then
1736 if test "${ac_cv_path_install+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 # Account for people who put trailing slashes in PATH elements.
1746 ./ | .// | /cC/* | \
1747 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1748 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1751 # OSF1 and SCO ODT 3.0 have their own names for install.
1752 # Don't use installbsd from OSF since it installs stuff as root
1754 for ac_prog in ginstall scoinst install; do
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1757 if test $ac_prog = install &&
1758 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1759 # AIX install. It has an incompatible calling convention.
1761 elif test $ac_prog = install &&
1762 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1763 # program-specific install script used by HP pwplus--don't use.
1766 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1778 if test "${ac_cv_path_install+set}" = set; then
1779 INSTALL=$ac_cv_path_install
1781 # As a last resort, use the slow shell script. We don't cache a
1782 # path for INSTALL within a source directory, because that will
1783 # break other packages using the cache if that directory is
1784 # removed, or if the path is relative.
1785 INSTALL=$ac_install_sh
1788 echo "$as_me:$LINENO: result: $INSTALL" >&5
1789 echo "${ECHO_T}$INSTALL" >&6
1791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1792 # It thinks the first close brace ends the variable substitution.
1793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1795 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1799 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1800 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1803 echo timestamp > conftest.file
1804 # Do `set' in a subshell so we don't clobber the current shell's
1805 # arguments. Must try -L first in case configure is actually a
1806 # symlink; some systems play weird games with the mod time of symlinks
1807 # (eg FreeBSD returns the mod time of the symlink's containing
1810 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1811 if test "$*" = "X"; then
1813 set X `ls -t $srcdir/configure conftest.file`
1816 if test "$*" != "X $srcdir/configure conftest.file" \
1817 && test "$*" != "X conftest.file $srcdir/configure"; then
1819 # If neither matched, then we have a broken ls. This can happen
1820 # if, for instance, CONFIG_SHELL is bash and it inherits a
1821 # broken ls alias from the environment. This has actually
1822 # happened. Such a system could not be considered "sane".
1823 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1824 alias in your environment" >&5
1825 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1826 alias in your environment" >&2;}
1827 { (exit 1); exit 1; }; }
1830 test "$2" = conftest.file
1836 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1837 Check your system clock" >&5
1838 echo "$as_me: error: newly created file is older than distributed files!
1839 Check your system clock" >&2;}
1840 { (exit 1); exit 1; }; }
1842 echo "$as_me:$LINENO: result: yes" >&5
1843 echo "${ECHO_T}yes" >&6
1844 test "$program_prefix" != NONE &&
1845 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1846 # Use a double $ so make ignores it.
1847 test "$program_suffix" != NONE &&
1848 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1849 # Double any \ or $. echo might interpret backslashes.
1850 # By default was `s,x,x', remove it if useless.
1851 cat <<\_ACEOF >conftest.sed
1852 s/[\\$]/&&/g;s/;s,x,x,$//
1854 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1857 # expand $ac_aux_dir to an absolute path
1858 am_aux_dir=`cd $ac_aux_dir && pwd`
1860 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1861 # Use eval to expand $SHELL
1862 if eval "$MISSING --run true"; then
1863 am_missing_run="$MISSING --run "
1866 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1867 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1870 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1871 # We used to keeping the `.' as first argument, in order to
1872 # allow $(mkdir_p) to be used without argument. As in
1873 # $(mkdir_p) $(somedir)
1874 # where $(somedir) is conditionally defined. However this is wrong
1876 # 1. if the package is installed by a user who cannot write `.'
1877 # make install will fail,
1878 # 2. the above comment should most certainly read
1879 # $(mkdir_p) $(DESTDIR)$(somedir)
1880 # so it does not work when $(somedir) is undefined and
1881 # $(DESTDIR) is not.
1882 # To support the latter case, we have to write
1883 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1884 # so the `.' trick is pointless.
1885 mkdir_p='mkdir -p --'
1887 # On NextStep and OpenStep, the `mkdir' command does not
1888 # recognize any option. It will interpret all options as
1889 # directories to create, and then abort because `.' already
1891 for d in ./-p ./--version;
1893 test -d $d && rmdir $d
1895 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1896 if test -f "$ac_aux_dir/mkinstalldirs"; then
1897 mkdir_p='$(mkinstalldirs)'
1899 mkdir_p='$(install_sh) -d'
1903 for ac_prog in gawk mawk nawk awk
1905 # Extract the first word of "$ac_prog", so it can be a program name with args.
1906 set dummy $ac_prog; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_AWK+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 if test -n "$AWK"; then
1913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_AWK="$ac_prog"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 if test -n "$AWK"; then
1933 echo "$as_me:$LINENO: result: $AWK" >&5
1934 echo "${ECHO_T}$AWK" >&6
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1940 test -n "$AWK" && break
1943 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1944 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1945 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1946 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.make <<\_ACEOF
1951 @echo 'ac_maketemp="$(MAKE)"'
1953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1954 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1955 if test -n "$ac_maketemp"; then
1956 eval ac_cv_prog_make_${ac_make}_set=yes
1958 eval ac_cv_prog_make_${ac_make}_set=no
1962 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1963 echo "$as_me:$LINENO: result: yes" >&5
1964 echo "${ECHO_T}yes" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 SET_MAKE="MAKE=${MAKE-make}"
1972 rm -rf .tst 2>/dev/null
1973 mkdir .tst 2>/dev/null
1974 if test -d .tst; then
1979 rmdir .tst 2>/dev/null
1981 # test to see if srcdir already configured
1982 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1983 test -f $srcdir/config.status; then
1984 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1985 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1986 { (exit 1); exit 1; }; }
1989 # test whether we have cygpath
1990 if test -z "$CYGPATH_W"; then
1991 if (cygpath --version) >/dev/null 2>/dev/null; then
1992 CYGPATH_W='cygpath -w'
1999 # Define the identity of the package.
2004 # Some tools Automake needs.
2006 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2009 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2012 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2015 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2018 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2020 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2022 # Installed binaries are usually stripped using `strip' when the user
2023 # run `make install-strip'. However `strip' might not be the right
2024 # tool to use in cross-compilation environments, therefore Automake
2025 # will honor the `STRIP' environment variable to overrule this program.
2026 if test "$cross_compiling" != no; then
2027 if test -n "$ac_tool_prefix"; then
2028 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}strip; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_STRIP+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$STRIP"; then
2036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 STRIP=$ac_cv_prog_STRIP
2055 if test -n "$STRIP"; then
2056 echo "$as_me:$LINENO: result: $STRIP" >&5
2057 echo "${ECHO_T}$STRIP" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2064 if test -z "$ac_cv_prog_STRIP"; then
2066 # Extract the first word of "strip", so it can be a program name with args.
2067 set dummy strip; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test -n "$ac_ct_STRIP"; then
2074 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_ac_ct_STRIP="strip"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2093 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2094 if test -n "$ac_ct_STRIP"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2096 echo "${ECHO_T}$ac_ct_STRIP" >&6
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2104 STRIP="$ac_cv_prog_STRIP"
2108 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2110 # We need awk for the "check" target. The system "awk" is bad on
2112 # Always define AMTAR for backward compatibility.
2114 AMTAR=${AMTAR-"${am_missing_run}tar"}
2116 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2122 cat >>confdefs.h <<_ACEOF
2123 #define OPENLDAP_PACKAGE "$PACKAGE"
2127 cat >>confdefs.h <<_ACEOF
2128 #define OPENLDAP_VERSION "$VERSION"
2133 cat >>confdefs.h <<_ACEOF
2134 #define LDAP_VENDOR_VERSION $OL_API_INC
2138 cat >>confdefs.h <<_ACEOF
2139 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2143 cat >>confdefs.h <<_ACEOF
2144 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2148 cat >>confdefs.h <<_ACEOF
2149 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2153 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2155 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2157 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2165 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2167 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2169 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2172 echo "$as_me:$LINENO: checking configure arguments" >&5
2173 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2178 ldap_subdir="/openldap"
2181 # Check whether --with-subdir or --without-subdir was given.
2182 if test "${with_subdir+set}" = set; then
2183 withval="$with_subdir"
2190 ldap_subdir="$withval"
2193 ldap_subdir="/$withval"
2199 # OpenLDAP --enable-debug
2200 # Check whether --enable-debug or --disable-debug was given.
2201 if test "${enable_debug+set}" = set; then
2202 enableval="$enable_debug"
2205 for ol_val in auto yes no ; do
2206 if test "$enableval" = "$ol_val" ; then
2210 if test "$ol_arg" = "invalid" ; then
2211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2212 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2213 { (exit 1); exit 1; }; }
2215 ol_enable_debug="$ol_arg"
2218 ol_enable_debug="yes"
2219 fi; # end --enable-debug
2220 # OpenLDAP --enable-dynamic
2221 # Check whether --enable-dynamic or --disable-dynamic was given.
2222 if test "${enable_dynamic+set}" = set; then
2223 enableval="$enable_dynamic"
2226 for ol_val in auto yes no ; do
2227 if test "$enableval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2234 { (exit 1); exit 1; }; }
2236 ol_enable_dynamic="$ol_arg"
2239 ol_enable_dynamic="no"
2240 fi; # end --enable-dynamic
2241 # OpenLDAP --enable-syslog
2242 # Check whether --enable-syslog or --disable-syslog was given.
2243 if test "${enable_syslog+set}" = set; then
2244 enableval="$enable_syslog"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2255 { (exit 1); exit 1; }; }
2257 ol_enable_syslog="$ol_arg"
2260 ol_enable_syslog="auto"
2261 fi; # end --enable-syslog
2262 # OpenLDAP --enable-proctitle
2263 # Check whether --enable-proctitle or --disable-proctitle was given.
2264 if test "${enable_proctitle+set}" = set; then
2265 enableval="$enable_proctitle"
2268 for ol_val in auto yes no ; do
2269 if test "$enableval" = "$ol_val" ; then
2273 if test "$ol_arg" = "invalid" ; then
2274 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2275 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2276 { (exit 1); exit 1; }; }
2278 ol_enable_proctitle="$ol_arg"
2281 ol_enable_proctitle="yes"
2282 fi; # end --enable-proctitle
2283 ol_enable_referrals=${ol_enable_referrals-no}
2284 ol_enable_kbind=${ol_enable_kbind-no}
2285 # OpenLDAP --enable-ipv6
2286 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2287 if test "${enable_ipv6+set}" = set; then
2288 enableval="$enable_ipv6"
2291 for ol_val in auto yes no ; do
2292 if test "$enableval" = "$ol_val" ; then
2296 if test "$ol_arg" = "invalid" ; then
2297 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2298 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2299 { (exit 1); exit 1; }; }
2301 ol_enable_ipv6="$ol_arg"
2304 ol_enable_ipv6="auto"
2305 fi; # end --enable-ipv6
2306 # OpenLDAP --enable-local
2307 # Check whether --enable-local or --disable-local was given.
2308 if test "${enable_local+set}" = set; then
2309 enableval="$enable_local"
2312 for ol_val in auto yes no ; do
2313 if test "$enableval" = "$ol_val" ; then
2317 if test "$ol_arg" = "invalid" ; then
2318 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2319 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2320 { (exit 1); exit 1; }; }
2322 ol_enable_local="$ol_arg"
2325 ol_enable_local="auto"
2326 fi; # end --enable-local
2328 # OpenLDAP --with-cyrus_sasl
2330 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2331 if test "${with_cyrus_sasl+set}" = set; then
2332 withval="$with_cyrus_sasl"
2335 for ol_val in auto yes no ; do
2336 if test "$withval" = "$ol_val" ; then
2340 if test "$ol_arg" = "invalid" ; then
2341 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2342 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2343 { (exit 1); exit 1; }; }
2345 ol_with_cyrus_sasl="$ol_arg"
2348 ol_with_cyrus_sasl="auto"
2349 fi; # end --with-cyrus_sasl
2351 # OpenLDAP --with-fetch
2353 # Check whether --with-fetch or --without-fetch was given.
2354 if test "${with_fetch+set}" = set; then
2355 withval="$with_fetch"
2358 for ol_val in auto yes no ; do
2359 if test "$withval" = "$ol_val" ; then
2363 if test "$ol_arg" = "invalid" ; then
2364 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2365 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2366 { (exit 1); exit 1; }; }
2368 ol_with_fetch="$ol_arg"
2371 ol_with_fetch="auto"
2372 fi; # end --with-fetch
2374 ol_with_kerberos=${ol_with_kerberos-auto}
2375 # OpenLDAP --with-threads
2377 # Check whether --with-threads or --without-threads was given.
2378 if test "${with_threads+set}" = set; then
2379 withval="$with_threads"
2382 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2383 if test "$withval" = "$ol_val" ; then
2387 if test "$ol_arg" = "invalid" ; then
2388 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2389 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2390 { (exit 1); exit 1; }; }
2392 ol_with_threads="$ol_arg"
2395 ol_with_threads="auto"
2396 fi; # end --with-threads
2398 # OpenLDAP --with-tls
2400 # Check whether --with-tls or --without-tls was given.
2401 if test "${with_tls+set}" = set; then
2405 for ol_val in auto ssleay openssl yes no ; do
2406 if test "$withval" = "$ol_val" ; then
2410 if test "$ol_arg" = "invalid" ; then
2411 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2412 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2413 { (exit 1); exit 1; }; }
2415 ol_with_tls="$ol_arg"
2419 fi; # end --with-tls
2421 # OpenLDAP --with-yielding_select
2423 # Check whether --with-yielding_select or --without-yielding_select was given.
2424 if test "${with_yielding_select+set}" = set; then
2425 withval="$with_yielding_select"
2428 for ol_val in auto yes no manual ; do
2429 if test "$withval" = "$ol_val" ; then
2433 if test "$ol_arg" = "invalid" ; then
2434 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2435 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2436 { (exit 1); exit 1; }; }
2438 ol_with_yielding_select="$ol_arg"
2441 ol_with_yielding_select="auto"
2442 fi; # end --with-yielding_select
2444 # OpenLDAP --with-multiple_precision
2446 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2447 if test "${with_multiple_precision+set}" = set; then
2448 withval="$with_multiple_precision"
2451 for ol_val in auto bignum gmp yes no ; do
2452 if test "$withval" = "$ol_val" ; then
2456 if test "$ol_arg" = "invalid" ; then
2457 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2458 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2459 { (exit 1); exit 1; }; }
2461 ol_with_multiple_precision="$ol_arg"
2464 ol_with_multiple_precision="auto"
2465 fi; # end --with-multiple_precision
2470 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2471 if test "${with_xxslapdoptions+set}" = set; then
2472 withval="$with_xxslapdoptions"
2475 # OpenLDAP --enable-slapd
2476 # Check whether --enable-slapd or --disable-slapd was given.
2477 if test "${enable_slapd+set}" = set; then
2478 enableval="$enable_slapd"
2481 for ol_val in auto yes no ; do
2482 if test "$enableval" = "$ol_val" ; then
2486 if test "$ol_arg" = "invalid" ; then
2487 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2488 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2489 { (exit 1); exit 1; }; }
2491 ol_enable_slapd="$ol_arg"
2494 ol_enable_slapd="yes"
2495 fi; # end --enable-slapd
2496 # OpenLDAP --enable-aci
2497 # Check whether --enable-aci or --disable-aci was given.
2498 if test "${enable_aci+set}" = set; then
2499 enableval="$enable_aci"
2502 for ol_val in auto yes no ; do
2503 if test "$enableval" = "$ol_val" ; then
2507 if test "$ol_arg" = "invalid" ; then
2508 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2509 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2510 { (exit 1); exit 1; }; }
2512 ol_enable_aci="$ol_arg"
2516 fi; # end --enable-aci
2517 # OpenLDAP --enable-cleartext
2518 # Check whether --enable-cleartext or --disable-cleartext was given.
2519 if test "${enable_cleartext+set}" = set; then
2520 enableval="$enable_cleartext"
2523 for ol_val in auto yes no ; do
2524 if test "$enableval" = "$ol_val" ; then
2528 if test "$ol_arg" = "invalid" ; then
2529 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2530 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2531 { (exit 1); exit 1; }; }
2533 ol_enable_cleartext="$ol_arg"
2536 ol_enable_cleartext="yes"
2537 fi; # end --enable-cleartext
2538 # OpenLDAP --enable-crypt
2539 # Check whether --enable-crypt or --disable-crypt was given.
2540 if test "${enable_crypt+set}" = set; then
2541 enableval="$enable_crypt"
2544 for ol_val in auto yes no ; do
2545 if test "$enableval" = "$ol_val" ; then
2549 if test "$ol_arg" = "invalid" ; then
2550 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2551 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2552 { (exit 1); exit 1; }; }
2554 ol_enable_crypt="$ol_arg"
2557 ol_enable_crypt="no"
2558 fi; # end --enable-crypt
2559 # OpenLDAP --enable-lmpasswd
2560 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2561 if test "${enable_lmpasswd+set}" = set; then
2562 enableval="$enable_lmpasswd"
2565 for ol_val in auto yes no ; do
2566 if test "$enableval" = "$ol_val" ; then
2570 if test "$ol_arg" = "invalid" ; then
2571 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2572 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2573 { (exit 1); exit 1; }; }
2575 ol_enable_lmpasswd="$ol_arg"
2578 ol_enable_lmpasswd="no"
2579 fi; # end --enable-lmpasswd
2580 # OpenLDAP --enable-spasswd
2581 # Check whether --enable-spasswd or --disable-spasswd was given.
2582 if test "${enable_spasswd+set}" = set; then
2583 enableval="$enable_spasswd"
2586 for ol_val in auto yes no ; do
2587 if test "$enableval" = "$ol_val" ; then
2591 if test "$ol_arg" = "invalid" ; then
2592 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2593 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2594 { (exit 1); exit 1; }; }
2596 ol_enable_spasswd="$ol_arg"
2599 ol_enable_spasswd="no"
2600 fi; # end --enable-spasswd
2601 # OpenLDAP --enable-modules
2602 # Check whether --enable-modules or --disable-modules was given.
2603 if test "${enable_modules+set}" = set; then
2604 enableval="$enable_modules"
2607 for ol_val in auto yes no ; do
2608 if test "$enableval" = "$ol_val" ; then
2612 if test "$ol_arg" = "invalid" ; then
2613 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2614 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2615 { (exit 1); exit 1; }; }
2617 ol_enable_modules="$ol_arg"
2620 ol_enable_modules="no"
2621 fi; # end --enable-modules
2622 ol_enable_multimaster=${ol_enable_multimaster-no}
2623 # OpenLDAP --enable-rewrite
2624 # Check whether --enable-rewrite or --disable-rewrite was given.
2625 if test "${enable_rewrite+set}" = set; then
2626 enableval="$enable_rewrite"
2629 for ol_val in auto yes no ; do
2630 if test "$enableval" = "$ol_val" ; then
2634 if test "$ol_arg" = "invalid" ; then
2635 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2636 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2637 { (exit 1); exit 1; }; }
2639 ol_enable_rewrite="$ol_arg"
2642 ol_enable_rewrite="auto"
2643 fi; # end --enable-rewrite
2644 # OpenLDAP --enable-rlookups
2645 # Check whether --enable-rlookups or --disable-rlookups was given.
2646 if test "${enable_rlookups+set}" = set; then
2647 enableval="$enable_rlookups"
2650 for ol_val in auto yes no ; do
2651 if test "$enableval" = "$ol_val" ; then
2655 if test "$ol_arg" = "invalid" ; then
2656 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2658 { (exit 1); exit 1; }; }
2660 ol_enable_rlookups="$ol_arg"
2663 ol_enable_rlookups="no"
2664 fi; # end --enable-rlookups
2665 # OpenLDAP --enable-slapi
2666 # Check whether --enable-slapi or --disable-slapi was given.
2667 if test "${enable_slapi+set}" = set; then
2668 enableval="$enable_slapi"
2671 for ol_val in auto yes no ; do
2672 if test "$enableval" = "$ol_val" ; then
2676 if test "$ol_arg" = "invalid" ; then
2677 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2678 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2679 { (exit 1); exit 1; }; }
2681 ol_enable_slapi="$ol_arg"
2684 ol_enable_slapi="no"
2685 fi; # end --enable-slapi
2686 # OpenLDAP --enable-slp
2687 # Check whether --enable-slp or --disable-slp was given.
2688 if test "${enable_slp+set}" = set; then
2689 enableval="$enable_slp"
2692 for ol_val in auto yes no ; do
2693 if test "$enableval" = "$ol_val" ; then
2697 if test "$ol_arg" = "invalid" ; then
2698 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2699 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2700 { (exit 1); exit 1; }; }
2702 ol_enable_slp="$ol_arg"
2706 fi; # end --enable-slp
2707 # OpenLDAP --enable-wrappers
2708 # Check whether --enable-wrappers or --disable-wrappers was given.
2709 if test "${enable_wrappers+set}" = set; then
2710 enableval="$enable_wrappers"
2713 for ol_val in auto yes no ; do
2714 if test "$enableval" = "$ol_val" ; then
2718 if test "$ol_arg" = "invalid" ; then
2719 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2720 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2721 { (exit 1); exit 1; }; }
2723 ol_enable_wrappers="$ol_arg"
2726 ol_enable_wrappers="no"
2727 fi; # end --enable-wrappers
2729 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2730 passwd perl relay shell sql"
2733 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2734 if test "${with_xxslapbackends+set}" = set; then
2735 withval="$with_xxslapbackends"
2739 # OpenLDAP --enable-backends
2740 # Check whether --enable-backends or --disable-backends was given.
2741 if test "${enable_backends+set}" = set; then
2742 enableval="$enable_backends"
2745 for ol_val in no yes mod ; do
2746 if test "$enableval" = "$ol_val" ; then
2750 if test "$ol_arg" = "invalid" ; then
2751 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2752 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2753 { (exit 1); exit 1; }; }
2755 ol_enable_backends="$ol_arg"
2757 fi; # end --enable-backends
2758 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2759 # OpenLDAP --enable-bdb
2760 # Check whether --enable-bdb or --disable-bdb was given.
2761 if test "${enable_bdb+set}" = set; then
2762 enableval="$enable_bdb"
2765 for ol_val in no yes mod ; do
2766 if test "$enableval" = "$ol_val" ; then
2770 if test "$ol_arg" = "invalid" ; then
2771 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2772 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2773 { (exit 1); exit 1; }; }
2775 ol_enable_bdb="$ol_arg"
2778 ol_enable_bdb="${ol_dflt_backends-yes}"
2779 fi; # end --enable-bdb
2780 # OpenLDAP --enable-dnssrv
2781 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2782 if test "${enable_dnssrv+set}" = set; then
2783 enableval="$enable_dnssrv"
2786 for ol_val in no yes mod ; do
2787 if test "$enableval" = "$ol_val" ; then
2791 if test "$ol_arg" = "invalid" ; then
2792 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2793 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2794 { (exit 1); exit 1; }; }
2796 ol_enable_dnssrv="$ol_arg"
2799 ol_enable_dnssrv="${ol_dflt_backends-no}"
2800 fi; # end --enable-dnssrv
2801 # OpenLDAP --enable-hdb
2802 # Check whether --enable-hdb or --disable-hdb was given.
2803 if test "${enable_hdb+set}" = set; then
2804 enableval="$enable_hdb"
2807 for ol_val in no yes mod ; do
2808 if test "$enableval" = "$ol_val" ; then
2812 if test "$ol_arg" = "invalid" ; then
2813 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2815 { (exit 1); exit 1; }; }
2817 ol_enable_hdb="$ol_arg"
2820 ol_enable_hdb="${ol_dflt_backends-yes}"
2821 fi; # end --enable-hdb
2822 # OpenLDAP --enable-ldap
2823 # Check whether --enable-ldap or --disable-ldap was given.
2824 if test "${enable_ldap+set}" = set; then
2825 enableval="$enable_ldap"
2828 for ol_val in no yes mod ; do
2829 if test "$enableval" = "$ol_val" ; then
2833 if test "$ol_arg" = "invalid" ; then
2834 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2835 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2836 { (exit 1); exit 1; }; }
2838 ol_enable_ldap="$ol_arg"
2841 ol_enable_ldap="${ol_dflt_backends-no}"
2842 fi; # end --enable-ldap
2843 # OpenLDAP --enable-ldbm
2844 # Check whether --enable-ldbm or --disable-ldbm was given.
2845 if test "${enable_ldbm+set}" = set; then
2846 enableval="$enable_ldbm"
2849 for ol_val in no yes mod ; do
2850 if test "$enableval" = "$ol_val" ; then
2854 if test "$ol_arg" = "invalid" ; then
2855 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2856 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2857 { (exit 1); exit 1; }; }
2859 ol_enable_ldbm="$ol_arg"
2862 ol_enable_ldbm="${ol_dflt_backends-no}"
2863 fi; # end --enable-ldbm
2864 # OpenLDAP --with-ldbm_api
2866 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2867 if test "${with_ldbm_api+set}" = set; then
2868 withval="$with_ldbm_api"
2871 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2872 if test "$withval" = "$ol_val" ; then
2876 if test "$ol_arg" = "invalid" ; then
2877 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2878 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2879 { (exit 1); exit 1; }; }
2881 ol_with_ldbm_api="$ol_arg"
2884 ol_with_ldbm_api="auto"
2885 fi; # end --with-ldbm_api
2887 # OpenLDAP --with-ldbm_type
2889 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2890 if test "${with_ldbm_type+set}" = set; then
2891 withval="$with_ldbm_type"
2894 for ol_val in auto btree hash ; do
2895 if test "$withval" = "$ol_val" ; then
2899 if test "$ol_arg" = "invalid" ; then
2900 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2901 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2902 { (exit 1); exit 1; }; }
2904 ol_with_ldbm_type="$ol_arg"
2907 ol_with_ldbm_type="auto"
2908 fi; # end --with-ldbm_type
2910 # OpenLDAP --enable-meta
2911 # Check whether --enable-meta or --disable-meta was given.
2912 if test "${enable_meta+set}" = set; then
2913 enableval="$enable_meta"
2916 for ol_val in no yes mod ; do
2917 if test "$enableval" = "$ol_val" ; then
2921 if test "$ol_arg" = "invalid" ; then
2922 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2923 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2924 { (exit 1); exit 1; }; }
2926 ol_enable_meta="$ol_arg"
2929 ol_enable_meta="${ol_dflt_backends-no}"
2930 fi; # end --enable-meta
2931 # OpenLDAP --enable-monitor
2932 # Check whether --enable-monitor or --disable-monitor was given.
2933 if test "${enable_monitor+set}" = set; then
2934 enableval="$enable_monitor"
2937 for ol_val in no yes mod ; do
2938 if test "$enableval" = "$ol_val" ; then
2942 if test "$ol_arg" = "invalid" ; then
2943 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2944 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2945 { (exit 1); exit 1; }; }
2947 ol_enable_monitor="$ol_arg"
2950 ol_enable_monitor="${ol_dflt_backends-yes}"
2951 fi; # end --enable-monitor
2952 # OpenLDAP --enable-null
2953 # Check whether --enable-null or --disable-null was given.
2954 if test "${enable_null+set}" = set; then
2955 enableval="$enable_null"
2958 for ol_val in no yes mod ; do
2959 if test "$enableval" = "$ol_val" ; then
2963 if test "$ol_arg" = "invalid" ; then
2964 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2965 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2966 { (exit 1); exit 1; }; }
2968 ol_enable_null="$ol_arg"
2971 ol_enable_null="${ol_dflt_backends-no}"
2972 fi; # end --enable-null
2973 # OpenLDAP --enable-passwd
2974 # Check whether --enable-passwd or --disable-passwd was given.
2975 if test "${enable_passwd+set}" = set; then
2976 enableval="$enable_passwd"
2979 for ol_val in no yes mod ; do
2980 if test "$enableval" = "$ol_val" ; then
2984 if test "$ol_arg" = "invalid" ; then
2985 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2986 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2987 { (exit 1); exit 1; }; }
2989 ol_enable_passwd="$ol_arg"
2992 ol_enable_passwd="${ol_dflt_backends-no}"
2993 fi; # end --enable-passwd
2994 # OpenLDAP --enable-perl
2995 # Check whether --enable-perl or --disable-perl was given.
2996 if test "${enable_perl+set}" = set; then
2997 enableval="$enable_perl"
3000 for ol_val in no yes mod ; do
3001 if test "$enableval" = "$ol_val" ; then
3005 if test "$ol_arg" = "invalid" ; then
3006 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3007 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3008 { (exit 1); exit 1; }; }
3010 ol_enable_perl="$ol_arg"
3013 ol_enable_perl="${ol_dflt_backends-no}"
3014 fi; # end --enable-perl
3015 # OpenLDAP --enable-relay
3016 # Check whether --enable-relay or --disable-relay was given.
3017 if test "${enable_relay+set}" = set; then
3018 enableval="$enable_relay"
3021 for ol_val in no yes mod ; do
3022 if test "$enableval" = "$ol_val" ; then
3026 if test "$ol_arg" = "invalid" ; then
3027 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3028 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3029 { (exit 1); exit 1; }; }
3031 ol_enable_relay="$ol_arg"
3034 ol_enable_relay="${ol_dflt_backends-yes}"
3035 fi; # end --enable-relay
3036 # OpenLDAP --enable-shell
3037 # Check whether --enable-shell or --disable-shell was given.
3038 if test "${enable_shell+set}" = set; then
3039 enableval="$enable_shell"
3042 for ol_val in no yes mod ; do
3043 if test "$enableval" = "$ol_val" ; then
3047 if test "$ol_arg" = "invalid" ; then
3048 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3049 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3050 { (exit 1); exit 1; }; }
3052 ol_enable_shell="$ol_arg"
3055 ol_enable_shell="${ol_dflt_backends-no}"
3056 fi; # end --enable-shell
3057 # OpenLDAP --enable-sql
3058 # Check whether --enable-sql or --disable-sql was given.
3059 if test "${enable_sql+set}" = set; then
3060 enableval="$enable_sql"
3063 for ol_val in no yes mod ; do
3064 if test "$enableval" = "$ol_val" ; then
3068 if test "$ol_arg" = "invalid" ; then
3069 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3070 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3071 { (exit 1); exit 1; }; }
3073 ol_enable_sql="$ol_arg"
3076 ol_enable_sql="${ol_dflt_backends-no}"
3077 fi; # end --enable-sql
3079 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3080 refint retcode rwm syncprov translucent unique"
3083 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3084 if test "${with_xxslapoverlays+set}" = set; then
3085 withval="$with_xxslapoverlays"
3089 # OpenLDAP --enable-overlays
3090 # Check whether --enable-overlays or --disable-overlays was given.
3091 if test "${enable_overlays+set}" = set; then
3092 enableval="$enable_overlays"
3095 for ol_val in no yes mod ; do
3096 if test "$enableval" = "$ol_val" ; then
3100 if test "$ol_arg" = "invalid" ; then
3101 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3102 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3103 { (exit 1); exit 1; }; }
3105 ol_enable_overlays="$ol_arg"
3107 fi; # end --enable-overlays
3108 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3109 # OpenLDAP --enable-accesslog
3110 # Check whether --enable-accesslog or --disable-accesslog was given.
3111 if test "${enable_accesslog+set}" = set; then
3112 enableval="$enable_accesslog"
3115 for ol_val in no yes mod ; do
3116 if test "$enableval" = "$ol_val" ; then
3120 if test "$ol_arg" = "invalid" ; then
3121 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3122 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3123 { (exit 1); exit 1; }; }
3125 ol_enable_accesslog="$ol_arg"
3128 ol_enable_accesslog="${ol_dflt_overlays-no}"
3129 fi; # end --enable-accesslog
3131 # OpenLDAP --enable-denyop
3132 # Check whether --enable-denyop or --disable-denyop was given.
3133 if test "${enable_denyop+set}" = set; then
3134 enableval="$enable_denyop"
3137 for ol_val in no yes mod ; do
3138 if test "$enableval" = "$ol_val" ; then
3142 if test "$ol_arg" = "invalid" ; then
3143 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3144 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3145 { (exit 1); exit 1; }; }
3147 ol_enable_denyop="$ol_arg"
3150 ol_enable_denyop="${ol_dflt_overlays-no}"
3151 fi; # end --enable-denyop
3153 # OpenLDAP --enable-dyngroup
3154 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3155 if test "${enable_dyngroup+set}" = set; then
3156 enableval="$enable_dyngroup"
3159 for ol_val in no yes mod ; do
3160 if test "$enableval" = "$ol_val" ; then
3164 if test "$ol_arg" = "invalid" ; then
3165 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3166 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3167 { (exit 1); exit 1; }; }
3169 ol_enable_dyngroup="$ol_arg"
3172 ol_enable_dyngroup="${ol_dflt_overlays-no}"
3173 fi; # end --enable-dyngroup
3175 # OpenLDAP --enable-dynlist
3176 # Check whether --enable-dynlist or --disable-dynlist was given.
3177 if test "${enable_dynlist+set}" = set; then
3178 enableval="$enable_dynlist"
3181 for ol_val in no yes mod ; do
3182 if test "$enableval" = "$ol_val" ; then
3186 if test "$ol_arg" = "invalid" ; then
3187 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3188 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3189 { (exit 1); exit 1; }; }
3191 ol_enable_dynlist="$ol_arg"
3194 ol_enable_dynlist="${ol_dflt_overlays-no}"
3195 fi; # end --enable-dynlist
3197 # OpenLDAP --enable-glue
3198 # Check whether --enable-glue or --disable-glue was given.
3199 if test "${enable_glue+set}" = set; then
3200 enableval="$enable_glue"
3203 for ol_val in no yes mod ; do
3204 if test "$enableval" = "$ol_val" ; then
3208 if test "$ol_arg" = "invalid" ; then
3209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3210 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3211 { (exit 1); exit 1; }; }
3213 ol_enable_glue="$ol_arg"
3216 ol_enable_glue="${ol_dflt_overlays-yes}"
3217 fi; # end --enable-glue
3219 # OpenLDAP --enable-lastmod
3220 # Check whether --enable-lastmod or --disable-lastmod was given.
3221 if test "${enable_lastmod+set}" = set; then
3222 enableval="$enable_lastmod"
3225 for ol_val in no yes mod ; do
3226 if test "$enableval" = "$ol_val" ; then
3230 if test "$ol_arg" = "invalid" ; then
3231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3233 { (exit 1); exit 1; }; }
3235 ol_enable_lastmod="$ol_arg"
3238 ol_enable_lastmod="${ol_dflt_overlays-no}"
3239 fi; # end --enable-lastmod
3241 # OpenLDAP --enable-ppolicy
3242 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3243 if test "${enable_ppolicy+set}" = set; then
3244 enableval="$enable_ppolicy"
3247 for ol_val in no yes mod ; do
3248 if test "$enableval" = "$ol_val" ; then
3252 if test "$ol_arg" = "invalid" ; then
3253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3254 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3255 { (exit 1); exit 1; }; }
3257 ol_enable_ppolicy="$ol_arg"
3260 ol_enable_ppolicy="${ol_dflt_overlays-no}"
3261 fi; # end --enable-ppolicy
3263 # OpenLDAP --enable-proxycache
3264 # Check whether --enable-proxycache or --disable-proxycache was given.
3265 if test "${enable_proxycache+set}" = set; then
3266 enableval="$enable_proxycache"
3269 for ol_val in no yes mod ; do
3270 if test "$enableval" = "$ol_val" ; then
3274 if test "$ol_arg" = "invalid" ; then
3275 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3277 { (exit 1); exit 1; }; }
3279 ol_enable_proxycache="$ol_arg"
3282 ol_enable_proxycache="${ol_dflt_overlays-no}"
3283 fi; # end --enable-proxycache
3285 # OpenLDAP --enable-refint
3286 # Check whether --enable-refint or --disable-refint was given.
3287 if test "${enable_refint+set}" = set; then
3288 enableval="$enable_refint"
3291 for ol_val in no yes mod ; do
3292 if test "$enableval" = "$ol_val" ; then
3296 if test "$ol_arg" = "invalid" ; then
3297 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3299 { (exit 1); exit 1; }; }
3301 ol_enable_refint="$ol_arg"
3304 ol_enable_refint="${ol_dflt_overlays-no}"
3305 fi; # end --enable-refint
3307 # OpenLDAP --enable-retcode
3308 # Check whether --enable-retcode or --disable-retcode was given.
3309 if test "${enable_retcode+set}" = set; then
3310 enableval="$enable_retcode"
3313 for ol_val in no yes mod ; do
3314 if test "$enableval" = "$ol_val" ; then
3318 if test "$ol_arg" = "invalid" ; then
3319 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3321 { (exit 1); exit 1; }; }
3323 ol_enable_retcode="$ol_arg"
3326 ol_enable_retcode="${ol_dflt_overlays-no}"
3327 fi; # end --enable-retcode
3329 # OpenLDAP --enable-rwm
3330 # Check whether --enable-rwm or --disable-rwm was given.
3331 if test "${enable_rwm+set}" = set; then
3332 enableval="$enable_rwm"
3335 for ol_val in no yes mod ; do
3336 if test "$enableval" = "$ol_val" ; then
3340 if test "$ol_arg" = "invalid" ; then
3341 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3342 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3343 { (exit 1); exit 1; }; }
3345 ol_enable_rwm="$ol_arg"
3348 ol_enable_rwm="${ol_dflt_overlays-no}"
3349 fi; # end --enable-rwm
3351 # OpenLDAP --enable-syncprov
3352 # Check whether --enable-syncprov or --disable-syncprov was given.
3353 if test "${enable_syncprov+set}" = set; then
3354 enableval="$enable_syncprov"
3357 for ol_val in no yes mod ; do
3358 if test "$enableval" = "$ol_val" ; then
3362 if test "$ol_arg" = "invalid" ; then
3363 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3364 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3365 { (exit 1); exit 1; }; }
3367 ol_enable_syncprov="$ol_arg"
3370 ol_enable_syncprov="${ol_dflt_overlays-yes}"
3371 fi; # end --enable-syncprov
3373 # OpenLDAP --enable-translucent
3374 # Check whether --enable-translucent or --disable-translucent was given.
3375 if test "${enable_translucent+set}" = set; then
3376 enableval="$enable_translucent"
3379 for ol_val in no yes mod ; do
3380 if test "$enableval" = "$ol_val" ; then
3384 if test "$ol_arg" = "invalid" ; then
3385 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3386 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3387 { (exit 1); exit 1; }; }
3389 ol_enable_translucent="$ol_arg"
3392 ol_enable_translucent="${ol_dflt_overlays-no}"
3393 fi; # end --enable-translucent
3395 # OpenLDAP --enable-unique
3396 # Check whether --enable-unique or --disable-unique was given.
3397 if test "${enable_unique+set}" = set; then
3398 enableval="$enable_unique"
3401 for ol_val in no yes mod ; do
3402 if test "$enableval" = "$ol_val" ; then
3406 if test "$ol_arg" = "invalid" ; then
3407 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3408 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3409 { (exit 1); exit 1; }; }
3411 ol_enable_unique="$ol_arg"
3414 ol_enable_unique="${ol_dflt_overlays-no}"
3415 fi; # end --enable-unique
3420 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3421 if test "${with_xxslurpdoptions+set}" = set; then
3422 withval="$with_xxslurpdoptions"
3425 # OpenLDAP --enable-slurpd
3426 # Check whether --enable-slurpd or --disable-slurpd was given.
3427 if test "${enable_slurpd+set}" = set; then
3428 enableval="$enable_slurpd"
3431 for ol_val in auto yes no ; do
3432 if test "$enableval" = "$ol_val" ; then
3436 if test "$ol_arg" = "invalid" ; then
3437 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3438 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3439 { (exit 1); exit 1; }; }
3441 ol_enable_slurpd="$ol_arg"
3444 ol_enable_slurpd="auto"
3445 fi; # end --enable-slurpd
3448 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3449 if test "${with_xxliboptions+set}" = set; then
3450 withval="$with_xxliboptions"
3453 # Check whether --enable-static or --disable-static was given.
3454 if test "${enable_static+set}" = set; then
3455 enableval="$enable_static"
3456 p=${PACKAGE-default}
3458 yes) enable_static=yes ;;
3459 no) enable_static=no ;;
3462 # Look at the argument we got. We use all the common list separators.
3463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3464 for pkg in $enableval; do
3466 if test "X$pkg" = "X$p"; then
3477 # Check whether --enable-shared or --disable-shared was given.
3478 if test "${enable_shared+set}" = set; then
3479 enableval="$enable_shared"
3480 p=${PACKAGE-default}
3482 yes) enable_shared=yes ;;
3483 no) enable_shared=no ;;
3486 # Look at the argument we got. We use all the common list separators.
3487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3488 for pkg in $enableval; do
3490 if test "X$pkg" = "X$p"; then
3504 if test $ol_enable_slapd = no ; then
3505 if test $ol_enable_slapi = yes ; then
3506 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3507 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3509 case "$ol_enable_backends" in yes | mod)
3510 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3511 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3513 for i in $Backends; do
3514 eval "ol_tmp=\$ol_enable_$i"
3515 if test $ol_tmp != no ; then
3516 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3517 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3518 eval "ol_enable_$i=no"
3521 if test $ol_enable_modules = yes ; then
3522 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3523 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3525 if test $ol_enable_multimaster = yes ; then
3526 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3527 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3529 if test $ol_enable_wrappers = yes ; then
3530 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3531 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3533 if test $ol_enable_rlookups = yes ; then
3534 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3535 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3537 if test $ol_enable_aci = yes ; then
3538 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3539 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3541 if test $ol_with_ldbm_api != auto ; then
3542 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3543 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3545 if test $ol_with_ldbm_type != auto ; then
3546 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3547 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3549 if test $ol_enable_slurpd = yes ; then
3550 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3551 echo "$as_me: error: slurpd requires slapd" >&2;}
3552 { (exit 1); exit 1; }; }
3554 if test $ol_enable_rewrite = yes ; then
3555 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3556 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3558 case "$ol_enable_overlays" in yes | mod)
3559 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3560 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3562 for i in $Overlays; do
3563 eval "ol_tmp=\$ol_enable_$i"
3564 if test $ol_tmp != no ; then
3565 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3566 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3567 eval "ol_enable_$i=no"
3571 # force settings to no
3576 ol_enable_modules=no
3577 ol_enable_multimaster=no
3578 ol_enable_rlookups=no
3580 ol_enable_wrappers=no
3583 ol_with_ldbm_type=no
3587 ol_enable_rewrite=no
3589 elif test $ol_enable_ldbm = no ; then
3591 if test $ol_with_ldbm_api != auto ; then
3592 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3593 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3596 if test $ol_with_ldbm_type != auto ; then
3597 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3598 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3601 if test $ol_enable_modules != yes -a \
3602 $ol_enable_bdb = no -a \
3603 $ol_enable_dnssrv = no -a \
3604 $ol_enable_hdb = no -a \
3605 $ol_enable_ldap = no -a \
3606 $ol_enable_meta = no -a \
3607 $ol_enable_monitor = no -a \
3608 $ol_enable_null = no -a \
3609 $ol_enable_passwd = no -a \
3610 $ol_enable_perl = no -a \
3611 $ol_enable_relay = no -a \
3612 $ol_enable_shell = no -a \
3613 $ol_enable_sql = no ; then
3615 if test $ol_enable_slapd = yes ; then
3616 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3617 echo "$as_me: error: slapd requires a backend" >&2;}
3618 { (exit 1); exit 1; }; }
3620 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3621 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3627 ol_with_ldbm_type=no
3629 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3630 ol_with_ldbm_api=berkeley
3634 if test $ol_with_ldbm_api = gdbm -a \
3635 $ol_with_ldbm_type = btree ; then
3636 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3637 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3638 { (exit 1); exit 1; }; }
3640 if test $ol_with_ldbm_api = mdbm -a \
3641 $ol_with_ldbm_type = btree ; then
3642 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3643 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3644 { (exit 1); exit 1; }; }
3646 if test $ol_with_ldbm_api = ndbm -a \
3647 $ol_with_ldbm_type = btree ; then
3648 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3649 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3650 { (exit 1); exit 1; }; }
3653 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3654 if test $ol_with_ldbm_api = auto ; then
3655 ol_with_ldbm_api=berkeley
3656 elif test $ol_with_ldbm_api != berkeley ; then
3657 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3658 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3659 { (exit 1); exit 1; }; }
3664 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3665 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3666 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3667 { (exit 1); exit 1; }; }
3670 if test $ol_enable_slurpd = yes ; then
3671 if test $ol_with_threads = no ; then
3672 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3673 echo "$as_me: error: slurpd requires threads" >&2;}
3674 { (exit 1); exit 1; }; }
3678 if test $ol_enable_lmpasswd = yes ; then
3679 if test $ol_with_tls = no ; then
3680 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3681 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3682 { (exit 1); exit 1; }; }
3686 if test $ol_enable_kbind = yes ; then
3687 if test $ol_with_kerberos = no ; then
3688 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3689 echo "$as_me: error: options require --with-kerberos" >&2;}
3690 { (exit 1); exit 1; }; }
3691 elif test $ol_with_kerberos = auto ; then
3692 ol_with_kerberos=yes
3695 elif test $ol_enable_kbind = no ; then
3696 if test $ol_with_kerberos = auto ; then
3698 elif test $ol_with_kerberos != no ; then
3699 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3700 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3705 if test $ol_enable_spasswd = yes ; then
3706 if test $ol_with_cyrus_sasl = no ; then
3707 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3708 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3709 { (exit 1); exit 1; }; }
3711 ol_with_cyrus_sasl=yes
3714 echo "$as_me:$LINENO: result: done" >&5
3715 echo "${ECHO_T}done" >&6
3759 BUILD_TRANSLUCENT=no
3762 SLAPD_STATIC_OVERLAYS=
3763 SLAPD_DYNAMIC_OVERLAYS=
3765 SLAPD_MODULES_LDFLAGS=
3766 SLAPD_MODULES_CPPFLAGS=
3768 SLAPD_STATIC_BACKENDS=back-ldif
3769 SLAPD_DYNAMIC_BACKENDS=
3794 cat >>confdefs.h <<\_ACEOF
3795 #define HAVE_MKVERSION 1
3803 *-*-aix*) if test -z "$CC" ; then
3804 case "$ol_with_threads" in
3805 auto | yes | posix) ol_aix_threads=yes ;;
3811 if test $ol_aix_threads = yes ; then
3812 if test -z "${CC}" ; then
3813 for ac_prog in cc_r xlc_r cc
3815 # Extract the first word of "$ac_prog", so it can be a program name with args.
3816 set dummy $ac_prog; ac_word=$2
3817 echo "$as_me:$LINENO: checking for $ac_word" >&5
3818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3819 if test "${ac_cv_prog_CC+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 if test -n "$CC"; then
3823 ac_cv_prog_CC="$CC" # Let the user override the test.
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832 ac_cv_prog_CC="$ac_prog"
3833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 if test -n "$CC"; then
3843 echo "$as_me:$LINENO: result: $CC" >&5
3844 echo "${ECHO_T}$CC" >&6
3846 echo "$as_me:$LINENO: result: no" >&5
3847 echo "${ECHO_T}no" >&6
3850 test -n "$CC" && break
3854 if test "$CC" = cc ; then
3855 if test $ol_with_threads != auto ; then
3856 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3857 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3858 { (exit 1); exit 1; }; }
3860 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3861 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3867 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3868 ol_with_threads=posix
3869 ol_cv_pthread_create=yes
3873 if test -z "${CC}"; then
3874 for ac_prog in cc gcc
3876 # Extract the first word of "$ac_prog", so it can be a program name with args.
3877 set dummy $ac_prog; ac_word=$2
3878 echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3880 if test "${ac_cv_prog_CC+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893 ac_cv_prog_CC="$ac_prog"
3894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 if test -n "$CC"; then
3904 echo "$as_me:$LINENO: result: $CC" >&5
3905 echo "${ECHO_T}$CC" >&6
3907 echo "$as_me:$LINENO: result: no" >&5
3908 echo "${ECHO_T}no" >&6
3911 test -n "$CC" && break
3913 test -n "$CC" || CC="missing"
3916 if test "${CC}" = "missing" ; then
3917 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3918 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3919 { (exit 1); exit 1; }; }
3923 if test -z "${AR}"; then
3924 for ac_prog in ar gar
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_AR+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 if test -n "$AR"; then
3934 ac_cv_prog_AR="$AR" # Let the user override the test.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_AR="$ac_prog"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 if test -n "$AR"; then
3954 echo "$as_me:$LINENO: result: $AR" >&5
3955 echo "${ECHO_T}$AR" >&6
3957 echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3961 test -n "$AR" && break
3963 test -n "$AR" || AR="missing"
3966 if test "${AR}" = "missing" ; then
3967 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3968 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3969 { (exit 1); exit 1; }; }
3977 # Check whether --enable-fast-install or --disable-fast-install was given.
3978 if test "${enable_fast_install+set}" = set; then
3979 enableval="$enable_fast_install"
3980 p=${PACKAGE-default}
3982 yes) enable_fast_install=yes ;;
3983 no) enable_fast_install=no ;;
3985 enable_fast_install=no
3986 # Look at the argument we got. We use all the common list separators.
3987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3988 for pkg in $enableval; do
3990 if test "X$pkg" = "X$p"; then
3991 enable_fast_install=yes
3998 enable_fast_install=yes
4001 DEPDIR="${am__leading_dot}deps"
4003 ac_config_commands="$ac_config_commands depfiles"
4006 am_make=${MAKE-make}
4007 cat > confinc << 'END'
4012 # If we don't find an include directive, just comment out the code.
4013 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4014 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4018 # First try GNU make style include.
4019 echo "include confinc" > confmf
4020 # We grep out `Entering directory' and `Leaving directory'
4021 # messages which can occur if `w' ends up in MAKEFLAGS.
4022 # In particular we don't look at `^make:' because GNU make might
4023 # be invoked under some other name (usually "gmake"), in which
4024 # case it prints its new name instead of `make'.
4025 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4030 # Now try BSD make style include.
4031 if test "$am__include" = "#"; then
4032 echo '.include "confinc"' > confmf
4033 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4034 am__include=.include
4041 echo "$as_me:$LINENO: result: $_am_result" >&5
4042 echo "${ECHO_T}$_am_result" >&6
4043 rm -f confinc confmf
4045 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4046 if test "${enable_dependency_tracking+set}" = set; then
4047 enableval="$enable_dependency_tracking"
4050 if test "x$enable_dependency_tracking" != xno; then
4051 am_depcomp="$ac_aux_dir/depcomp"
4056 if test "x$enable_dependency_tracking" != xno; then
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4074 echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_prog_CC+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if test -n "$CC"; then
4080 ac_cv_prog_CC="$CC" # Let the user override the test.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 if test -n "$CC"; then
4100 echo "$as_me:$LINENO: result: $CC" >&5
4101 echo "${ECHO_T}$CC" >&6
4103 echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4108 if test -z "$ac_cv_prog_CC"; then
4110 # Extract the first word of "gcc", so it can be a program name with args.
4111 set dummy gcc; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -n "$ac_ct_CC"; then
4118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_ac_ct_CC="gcc"
4128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4137 if test -n "$ac_ct_CC"; then
4138 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4139 echo "${ECHO_T}$ac_ct_CC" >&6
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4150 if test -z "$CC"; then
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}cc; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_CC+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_CC="${ac_tool_prefix}cc"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 if test -n "$CC"; then
4180 echo "$as_me:$LINENO: result: $CC" >&5
4181 echo "${ECHO_T}$CC" >&6
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4188 if test -z "$ac_cv_prog_CC"; then
4190 # Extract the first word of "cc", so it can be a program name with args.
4191 set dummy cc; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 if test -n "$ac_ct_CC"; then
4198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_prog_ac_ct_CC="cc"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4219 echo "${ECHO_T}$ac_ct_CC" >&6
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4231 if test -z "$CC"; then
4232 # Extract the first word of "cc", so it can be a program name with args.
4233 set dummy cc; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_CC+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4251 ac_prog_rejected=yes
4255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test $ac_prog_rejected = yes; then
4262 # We found a bogon in the path, so make sure we never use it.
4263 set dummy $ac_cv_prog_CC
4265 if test $# != 0; then
4266 # We chose a different compiler from the bogus one.
4267 # However, it has the same basename, so the bogon will be chosen
4268 # first if we set CC to just the basename; use the full file name.
4270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4276 if test -n "$CC"; then
4277 echo "$as_me:$LINENO: result: $CC" >&5
4278 echo "${ECHO_T}$CC" >&6
4280 echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6
4285 if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4293 if test "${ac_cv_prog_CC+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 if test -n "$CC"; then
4317 echo "$as_me:$LINENO: result: $CC" >&5
4318 echo "${ECHO_T}$CC" >&6
4320 echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6
4324 test -n "$CC" && break
4327 if test -z "$CC"; then
4331 # Extract the first word of "$ac_prog", so it can be a program name with args.
4332 set dummy $ac_prog; ac_word=$2
4333 echo "$as_me:$LINENO: checking for $ac_word" >&5
4334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 if test -n "$ac_ct_CC"; then
4339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4348 ac_cv_prog_ac_ct_CC="$ac_prog"
4349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4360 echo "${ECHO_T}$ac_ct_CC" >&6
4362 echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4366 test -n "$ac_ct_CC" && break
4375 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4376 See \`config.log' for more details." >&5
4377 echo "$as_me: error: no acceptable C compiler found in \$PATH
4378 See \`config.log' for more details." >&2;}
4379 { (exit 1); exit 1; }; }
4381 # Provide some information about the compiler.
4382 echo "$as_me:$LINENO:" \
4383 "checking for C compiler version" >&5
4384 ac_compiler=`set X $ac_compile; echo $2`
4385 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4386 (eval $ac_compiler --version </dev/null >&5) 2>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }
4390 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4391 (eval $ac_compiler -v </dev/null >&5) 2>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }
4395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4396 (eval $ac_compiler -V </dev/null >&5) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }
4401 cat >conftest.$ac_ext <<_ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4416 ac_clean_files_save=$ac_clean_files
4417 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4418 # Try to create an executable without -o first, disregard a.out.
4419 # It will help us diagnose broken compilers, and finding out an intuition
4421 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4422 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4423 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4424 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4425 (eval $ac_link_default) 2>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; then
4429 # Find the output, starting from the most likely. This scheme is
4430 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4433 # Be careful to initialize this variable, since it used to be cached.
4434 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4436 # b.out is created by i960 compilers.
4437 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4439 test -f "$ac_file" || continue
4441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4444 # This is the source file.
4447 # We found the default executable, but exeext='' is most
4451 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4452 # FIXME: I believe we export ac_cv_exeext for Libtool,
4453 # but it would be cool to find out if it's true. Does anybody
4454 # maintain Libtool? --akim.
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4466 See \`config.log' for more details." >&5
4467 echo "$as_me: error: C compiler cannot create executables
4468 See \`config.log' for more details." >&2;}
4469 { (exit 77); exit 77; }; }
4472 ac_exeext=$ac_cv_exeext
4473 echo "$as_me:$LINENO: result: $ac_file" >&5
4474 echo "${ECHO_T}$ac_file" >&6
4476 # Check the compiler produces executables we can run. If not, either
4477 # the compiler is broken, or we cross compile.
4478 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4481 # If not cross compiling, check that we can run a simple program.
4482 if test "$cross_compiling" != yes; then
4483 if { ac_try='./$ac_file'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4491 if test "$cross_compiling" = maybe; then
4494 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4495 If you meant to cross compile, use \`--host'.
4496 See \`config.log' for more details." >&5
4497 echo "$as_me: error: cannot run C compiled programs.
4498 If you meant to cross compile, use \`--host'.
4499 See \`config.log' for more details." >&2;}
4500 { (exit 1); exit 1; }; }
4504 echo "$as_me:$LINENO: result: yes" >&5
4505 echo "${ECHO_T}yes" >&6
4507 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4508 ac_clean_files=$ac_clean_files_save
4509 # Check the compiler produces executables we can run. If not, either
4510 # the compiler is broken, or we cross compile.
4511 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4512 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4513 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4514 echo "${ECHO_T}$cross_compiling" >&6
4516 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4517 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519 (eval $ac_link) 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; then
4523 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4524 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4525 # work properly (i.e., refer to `conftest.exe'), while it won't with
4527 for ac_file in conftest.exe conftest conftest.*; do
4528 test -f "$ac_file" || continue
4530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4538 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4539 See \`config.log' for more details." >&5
4540 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4541 See \`config.log' for more details." >&2;}
4542 { (exit 1); exit 1; }; }
4545 rm -f conftest$ac_cv_exeext
4546 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4547 echo "${ECHO_T}$ac_cv_exeext" >&6
4549 rm -f conftest.$ac_ext
4550 EXEEXT=$ac_cv_exeext
4552 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4553 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4554 if test "${ac_cv_objext+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4572 rm -f conftest.o conftest.obj
4573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574 (eval $ac_compile) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; then
4578 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4581 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4592 See \`config.log' for more details." >&2;}
4593 { (exit 1); exit 1; }; }
4596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4598 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4599 echo "${ECHO_T}$ac_cv_objext" >&6
4600 OBJEXT=$ac_cv_objext
4602 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4625 rm -f conftest.$ac_objext
4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>conftest.er1
4629 grep -v '^ *+' conftest.er1 >conftest.err
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -z "$ac_c_werror_flag"
4635 || test ! -s conftest.err'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4658 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4659 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4660 GCC=`test $ac_compiler_gnu = yes && echo yes`
4661 ac_test_CFLAGS=${CFLAGS+set}
4662 ac_save_CFLAGS=$CFLAGS
4664 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4665 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4666 if test "${ac_cv_prog_cc_g+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 cat >conftest.$ac_ext <<_ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4715 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4717 if test "$ac_test_CFLAGS" = set; then
4718 CFLAGS=$ac_save_CFLAGS
4719 elif test $ac_cv_prog_cc_g = yes; then
4720 if test "$GCC" = yes; then
4726 if test "$GCC" = yes; then
4732 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4733 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4734 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 ac_cv_prog_cc_stdc=no
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4747 #include <sys/types.h>
4748 #include <sys/stat.h>
4749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4750 struct buf { int x; };
4751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4752 static char *e (p, i)
4758 static char *f (char * (*g) (char **, int), char **p, ...)
4763 s = g (p, va_arg (v,int));
4768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4769 function prototypes and stuff, but not '\xHH' hex character constants.
4770 These don't provoke an error unfortunately, instead are silently treated
4771 as 'x'. The following induces an error, until -std1 is added to get
4772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4773 array size at least. It's necessary to write '\x00'==0 to get something
4774 that's true only with -std1. */
4775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4777 int test (int i, double x);
4778 struct s1 {int (*f) (int a);};
4779 struct s2 {int (*f) (double a);};
4780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4791 # Don't try gcc -ansi; that turns off useful extensions and
4792 # breaks some systems' header files.
4793 # AIX -qlanglvl=ansi
4794 # Ultrix and OSF/1 -std1
4795 # HP-UX 10.20 and later -Ae
4796 # HP-UX older versions -Aa -D_HPUX_SOURCE
4797 # SVR4 -Xc -D__EXTENSIONS__
4798 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4800 CC="$ac_save_CC $ac_arg"
4801 rm -f conftest.$ac_objext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803 (eval $ac_compile) 2>conftest.er1
4805 grep -v '^ *+' conftest.er1 >conftest.err
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -z "$ac_c_werror_flag"
4811 || test ! -s conftest.err'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; } &&
4817 { ac_try='test -s conftest.$ac_objext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 ac_cv_prog_cc_stdc=$ac_arg
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4830 rm -f conftest.err conftest.$ac_objext
4832 rm -f conftest.$ac_ext conftest.$ac_objext
4837 case "x$ac_cv_prog_cc_stdc" in
4839 echo "$as_me:$LINENO: result: none needed" >&5
4840 echo "${ECHO_T}none needed" >&6 ;;
4842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4843 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4844 CC="$CC $ac_cv_prog_cc_stdc" ;;
4847 # Some people use a C++ compiler to compile C. Since we use `exit',
4848 # in C++ we need to declare it. In case someone uses the same compiler
4849 # for both compiling C and C++ we need to have the C++ compiler decide
4850 # the declaration of exit, since it's the most demanding environment.
4851 cat >conftest.$ac_ext <<_ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 for ac_declaration in \
4880 'extern "C" void std::exit (int) throw (); using std::exit;' \
4881 'extern "C" void std::exit (int); using std::exit;' \
4882 'extern "C" void exit (int) throw ();' \
4883 'extern "C" void exit (int);' \
4886 cat >conftest.$ac_ext <<_ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4906 grep -v '^ *+' conftest.er1 >conftest.err
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4947 rm -f conftest.$ac_objext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4949 (eval $ac_compile) 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -z "$ac_c_werror_flag"
4957 || test ! -s conftest.err'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; } &&
4963 { ac_try='test -s conftest.$ac_objext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978 if test -n "$ac_declaration"; then
4979 echo '#ifdef __cplusplus' >>confdefs.h
4980 echo $ac_declaration >>confdefs.h
4981 echo '#endif' >>confdefs.h
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 depcc="$CC" am_compiler_list=
4998 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4999 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5004 # We make a subdir and do the tests there. Otherwise we can end up
5005 # making bogus files that we don't know about and never remove. For
5006 # instance it was reported that on HP-UX the gcc test will end up
5007 # making a dummy file named `D' -- because `-MD' means `put the output
5010 # Copy depcomp to subdir because otherwise we won't find it if we're
5011 # using a relative directory.
5012 cp "$am_depcomp" conftest.dir
5014 # We will build objects and dependencies in a subdirectory because
5015 # it helps to detect inapplicable dependency modes. For instance
5016 # both Tru64's cc and ICC support -MD to output dependencies as a
5017 # side effect of compilation, but ICC will put the dependencies in
5018 # the current directory while Tru64 will put them in the object
5022 am_cv_CC_dependencies_compiler_type=none
5023 if test "$am_compiler_list" = ""; then
5024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5026 for depmode in $am_compiler_list; do
5027 # Setup a source with many dependencies, because some compilers
5028 # like to wrap large dependency lists on column 80 (with \), and
5029 # we should not choose a depcomp mode which is confused by this.
5031 # We need to recreate these files for each test, as the compiler may
5032 # overwrite some of them when testing with obscure command lines.
5033 # This happens at least with the AIX C compiler.
5035 for i in 1 2 3 4 5 6; do
5036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5038 # Solaris 8's {/usr,}/bin/sh.
5039 touch sub/conftst$i.h
5041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5045 # after this tag, mechanisms are not by side-effect, so they'll
5046 # only be used when explicitly requested
5047 if test "x$enable_dependency_tracking" = xyes; then
5055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5056 # mode. It turns out that the SunPro C++ compiler does not properly
5057 # handle `-M -o', and we need to detect this.
5058 if depmode=$depmode \
5059 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5061 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5062 >/dev/null 2>conftest.err &&
5063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5064 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5066 # icc doesn't choke on unknown options, it will just issue warnings
5067 # or remarks (even with -Werror). So we grep stderr for any message
5068 # that says an option was ignored or not supported.
5069 # When given -MP, icc 7.0 and 7.1 complain thusly:
5070 # icc: Command line warning: ignoring option '-M'; no argument required
5071 # The diagnosis changed in icc 8.0:
5072 # icc: Command line remark: option '-MP' not supported
5073 if (grep 'ignoring option' conftest.err ||
5074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5075 am_cv_CC_dependencies_compiler_type=$depmode
5084 am_cv_CC_dependencies_compiler_type=none
5088 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5089 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5095 test "x$enable_dependency_tracking" != xno \
5096 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5098 am__fastdepCC_FALSE='#'
5100 am__fastdepCC_TRUE='#'
5101 am__fastdepCC_FALSE=
5105 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5106 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5107 if test "${lt_cv_path_SED+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 # Loop through the user's path and test for sed and gsed.
5111 # Then use that list of sed's as ones to test for truncation.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir=.
5117 for lt_ac_prog in sed gsed; do
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5120 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5127 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5128 # along with /bin/sed that truncates output.
5129 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5130 test ! -f $lt_ac_sed && continue
5131 cat /dev/null > conftest.in
5133 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5134 # Check for GNU sed and select it if it is found.
5135 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5136 lt_cv_path_SED=$lt_ac_sed
5140 cat conftest.in conftest.in >conftest.tmp
5141 mv conftest.tmp conftest.in
5142 cp conftest.in conftest.nl
5144 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5145 cmp -s conftest.out conftest.nl || break
5146 # 10000 chars as input seems more than enough
5147 test $lt_ac_count -gt 10 && break
5148 lt_ac_count=`expr $lt_ac_count + 1`
5149 if test $lt_ac_count -gt $lt_ac_max; then
5150 lt_ac_max=$lt_ac_count
5151 lt_cv_path_SED=$lt_ac_sed
5159 echo "$as_me:$LINENO: result: $SED" >&5
5160 echo "${ECHO_T}$SED" >&6
5162 echo "$as_me:$LINENO: checking for egrep" >&5
5163 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5164 if test "${ac_cv_prog_egrep+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5168 then ac_cv_prog_egrep='grep -E'
5169 else ac_cv_prog_egrep='egrep'
5172 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5173 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5174 EGREP=$ac_cv_prog_egrep
5178 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5179 if test "${with_gnu_ld+set}" = set; then
5180 withval="$with_gnu_ld"
5181 test "$withval" = no || with_gnu_ld=yes
5186 if test "$GCC" = yes; then
5187 # Check if gcc -print-prog-name=ld gives a path.
5188 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5189 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5192 # gcc leaves a trailing carriage return which upsets mingw
5193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5198 # Accept absolute paths.
5200 re_direlt='/[^/][^/]*/\.\./'
5201 # Canonicalize the pathname of ld
5202 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5203 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5204 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5206 test -z "$LD" && LD="$ac_prog"
5209 # If it fails, then pretend we aren't using GCC.
5213 # If it is relative, then search for the first ld in PATH.
5217 elif test "$with_gnu_ld" = yes; then
5218 echo "$as_me:$LINENO: checking for GNU ld" >&5
5219 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5221 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5222 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5224 if test "${lt_cv_path_LD+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 if test -z "$LD"; then
5228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5229 for ac_dir in $PATH; do
5231 test -z "$ac_dir" && ac_dir=.
5232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5233 lt_cv_path_LD="$ac_dir/$ac_prog"
5234 # Check to see if the program is GNU ld. I'd rather use --version,
5235 # but apparently some GNU ld's only accept -v.
5236 # Break only if it was the GNU/non-GNU ld that we prefer.
5237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5238 *GNU* | *'with BFD'*)
5239 test "$with_gnu_ld" != no && break
5242 test "$with_gnu_ld" != yes && break
5249 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5254 if test -n "$LD"; then
5255 echo "$as_me:$LINENO: result: $LD" >&5
5256 echo "${ECHO_T}$LD" >&6
5258 echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263 { (exit 1); exit 1; }; }
5264 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5266 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272 lt_cv_prog_gnu_ld=yes
5275 lt_cv_prog_gnu_ld=no
5279 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5280 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5281 with_gnu_ld=$lt_cv_prog_gnu_ld
5284 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5285 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5286 if test "${lt_cv_ld_reload_flag+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 lt_cv_ld_reload_flag='-r'
5291 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5292 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5293 reload_flag=$lt_cv_ld_reload_flag
5294 case $reload_flag in
5296 *) reload_flag=" $reload_flag" ;;
5298 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5301 if test "$GCC" = yes; then
5302 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5304 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5309 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5310 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5311 if test "${lt_cv_path_NM+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 if test -n "$NM"; then
5315 # Let the user override the test.
5318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5319 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5321 test -z "$ac_dir" && ac_dir=.
5322 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5323 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5324 # Check to see if the nm accepts a BSD-compat flag.
5325 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5326 # nm: unknown option "B" ignored
5327 # Tru64's nm complains that /dev/null is an invalid object file
5328 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5329 */dev/null* | *'Invalid file or object type'*)
5330 lt_cv_path_NM="$tmp_nm -B"
5334 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5336 lt_cv_path_NM="$tmp_nm -p"
5340 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5341 continue # so that we can try to find one that supports BSD flags
5348 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5351 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5352 echo "${ECHO_T}$lt_cv_path_NM" >&6
5355 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5356 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5358 if test "$LN_S" = "ln -s"; then
5359 echo "$as_me:$LINENO: result: yes" >&5
5360 echo "${ECHO_T}yes" >&6
5362 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5363 echo "${ECHO_T}no, using $LN_S" >&6
5366 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5367 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5368 if test "${lt_cv_deplibs_check_method+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 lt_cv_file_magic_cmd='$MAGIC_CMD'
5372 lt_cv_file_magic_test_file=
5373 lt_cv_deplibs_check_method='unknown'
5374 # Need to set the preceding variable on all platforms that support
5375 # interlibrary dependencies.
5376 # 'none' -- dependencies not supported.
5377 # `unknown' -- same as none, but documents that we really don't know.
5378 # 'pass_all' -- all dependencies passed with no checks.
5379 # 'test_compile' -- check by making test program.
5380 # 'file_magic [[regex]]' -- check by looking for files in library path
5381 # which responds to the $file_magic_cmd with a given extended regex.
5382 # If you have `file' or equivalent on your system and you're not sure
5383 # whether `pass_all' will *always* work, you probably want this one.
5387 lt_cv_deplibs_check_method=pass_all
5391 lt_cv_deplibs_check_method=pass_all
5395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5396 lt_cv_file_magic_cmd='/usr/bin/file -L'
5397 lt_cv_file_magic_test_file=/shlib/libc.so
5401 # func_win32_libid is a shell function defined in ltmain.sh
5402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5403 lt_cv_file_magic_cmd='func_win32_libid'
5407 # Base MSYS/MinGW do not provide the 'file' command needed by
5408 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5409 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5410 lt_cv_file_magic_cmd='$OBJDUMP -f'
5413 darwin* | rhapsody*)
5414 lt_cv_deplibs_check_method=pass_all
5417 freebsd* | kfreebsd*-gnu | dragonfly*)
5418 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5421 # Not sure whether the presence of OpenBSD here was a mistake.
5422 # Let's accept both of them until this is cleared up.
5423 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5424 lt_cv_file_magic_cmd=/usr/bin/file
5425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5429 lt_cv_deplibs_check_method=pass_all
5434 lt_cv_deplibs_check_method=pass_all
5437 hpux10.20* | hpux11*)
5438 lt_cv_file_magic_cmd=/usr/bin/file
5441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5442 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5445 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]'
5446 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5450 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5455 irix5* | irix6* | nonstopux*)
5457 *-32|*"-32 ") libmagic=32-bit;;
5458 *-n32|*"-n32 ") libmagic=N32;;
5459 *-64|*"-64 ") libmagic=64-bit;;
5460 *) libmagic=never-match;;
5462 lt_cv_deplibs_check_method=pass_all
5465 # This must be Linux ELF.
5467 lt_cv_deplibs_check_method=pass_all
5471 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5480 lt_cv_file_magic_cmd=/usr/bin/file
5481 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5485 lt_cv_deplibs_check_method=unknown
5489 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5496 osf3* | osf4* | osf5*)
5497 lt_cv_deplibs_check_method=pass_all
5501 lt_cv_deplibs_check_method=pass_all
5505 lt_cv_deplibs_check_method=pass_all
5508 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5509 case $host_vendor in
5511 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]'
5512 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5515 lt_cv_deplibs_check_method=pass_all
5518 lt_cv_file_magic_cmd='/bin/file'
5519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5522 lt_cv_file_magic_cmd='/bin/file'
5523 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5524 lt_cv_file_magic_test_file=/lib/libc.so
5527 lt_cv_deplibs_check_method=pass_all
5532 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5533 lt_cv_deplibs_check_method=pass_all
5538 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5539 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5540 file_magic_cmd=$lt_cv_file_magic_cmd
5541 deplibs_check_method=$lt_cv_deplibs_check_method
5542 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5547 # If no C compiler was specified, use CC.
5550 # Allow CC to be a program name with arguments.
5554 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5555 if test "${enable_libtool_lock+set}" = set; then
5556 enableval="$enable_libtool_lock"
5559 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5561 # Some flags need to be propagated to the compiler or linker for good
5565 # Find out which ABI we are using.
5566 echo 'int i;' > conftest.$ac_ext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; then
5572 case `/usr/bin/file conftest.$ac_objext` in
5584 # Find out which ABI we are using.
5585 echo '#line 5585 "configure"' > conftest.$ac_ext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; then
5591 if test "$lt_cv_prog_gnu_ld" = yes; then
5592 case `/usr/bin/file conftest.$ac_objext` in
5594 LD="${LD-ld} -melf32bsmip"
5597 LD="${LD-ld} -melf32bmipn32"
5600 LD="${LD-ld} -melf64bmip"
5604 case `/usr/bin/file conftest.$ac_objext` in
5620 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5621 # Find out which ABI we are using.
5622 echo 'int i;' > conftest.$ac_ext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; then
5628 case "`/usr/bin/file conftest.o`" in
5632 LD="${LD-ld} -m elf_i386"
5634 ppc64-*linux*|powerpc64-*linux*)
5635 LD="${LD-ld} -m elf32ppclinux"
5638 LD="${LD-ld} -m elf_s390"
5641 LD="${LD-ld} -m elf32_sparc"
5648 LD="${LD-ld} -m elf_x86_64"
5650 ppc*-*linux*|powerpc*-*linux*)
5651 LD="${LD-ld} -m elf64ppc"
5654 LD="${LD-ld} -m elf64_s390"
5657 LD="${LD-ld} -m elf64_sparc"
5667 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5668 SAVE_CFLAGS="$CFLAGS"
5669 CFLAGS="$CFLAGS -belf"
5670 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5671 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5672 if test "${lt_cv_cc_needs_belf+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 ac_cpp='$CPP $CPPFLAGS'
5677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681 cat >conftest.$ac_ext <<_ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>conftest.er1
5700 grep -v '^ *+' conftest.er1 >conftest.err
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } &&
5705 { ac_try='test -z "$ac_c_werror_flag"
5706 || test ! -s conftest.err'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; } &&
5712 { ac_try='test -s conftest$ac_exeext'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 lt_cv_cc_needs_belf=yes
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 lt_cv_cc_needs_belf=no
5725 rm -f conftest.err conftest.$ac_objext \
5726 conftest$ac_exeext conftest.$ac_ext
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5735 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5736 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5738 CFLAGS="$SAVE_CFLAGS"
5741 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5742 if test -n "$ac_tool_prefix"; then
5743 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5744 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5745 echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5747 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -n "$DLLTOOL"; then
5751 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 DLLTOOL=$ac_cv_prog_DLLTOOL
5770 if test -n "$DLLTOOL"; then
5771 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5772 echo "${ECHO_T}$DLLTOOL" >&6
5774 echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5779 if test -z "$ac_cv_prog_DLLTOOL"; then
5780 ac_ct_DLLTOOL=$DLLTOOL
5781 # Extract the first word of "dlltool", so it can be a program name with args.
5782 set dummy dlltool; ac_word=$2
5783 echo "$as_me:$LINENO: checking for $ac_word" >&5
5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 if test -n "$ac_ct_DLLTOOL"; then
5789 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5808 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5809 if test -n "$ac_ct_DLLTOOL"; then
5810 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5811 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5813 echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6
5817 DLLTOOL=$ac_ct_DLLTOOL
5819 DLLTOOL="$ac_cv_prog_DLLTOOL"
5822 if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}as; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_prog_AS+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 if test -n "$AS"; then
5831 ac_cv_prog_AS="$AS" # Let the user override the test.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_AS="${ac_tool_prefix}as"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 if test -n "$AS"; then
5851 echo "$as_me:$LINENO: result: $AS" >&5
5852 echo "${ECHO_T}$AS" >&6
5854 echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5859 if test -z "$ac_cv_prog_AS"; then
5861 # Extract the first word of "as", so it can be a program name with args.
5862 set dummy as; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 if test -n "$ac_ct_AS"; then
5869 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_ac_ct_AS="as"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5888 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5889 if test -n "$ac_ct_AS"; then
5890 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5891 echo "${ECHO_T}$ac_ct_AS" >&6
5893 echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 if test -n "$OBJDUMP"; then
5911 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 OBJDUMP=$ac_cv_prog_OBJDUMP
5930 if test -n "$OBJDUMP"; then
5931 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5932 echo "${ECHO_T}$OBJDUMP" >&6
5934 echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5939 if test -z "$ac_cv_prog_OBJDUMP"; then
5940 ac_ct_OBJDUMP=$OBJDUMP
5941 # Extract the first word of "objdump", so it can be a program name with args.
5942 set dummy objdump; ac_word=$2
5943 echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$ac_ct_OBJDUMP"; then
5949 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5968 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5969 if test -n "$ac_ct_OBJDUMP"; then
5970 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5971 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5973 echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5977 OBJDUMP=$ac_ct_OBJDUMP
5979 OBJDUMP="$ac_cv_prog_OBJDUMP"
5986 need_locks="$enable_libtool_lock"
5990 ac_cpp='$CPP $CPPFLAGS'
5991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5994 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5995 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5996 # On Suns, sometimes $CPP names a directory.
5997 if test -n "$CPP" && test -d "$CPP"; then
6000 if test -z "$CPP"; then
6001 if test "${ac_cv_prog_CPP+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 # Double quotes because CPP needs to be expanded
6005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6008 for ac_c_preproc_warn_flag in '' yes
6010 # Use a header file that comes with gcc, so configuring glibc
6011 # with a fresh cross-compiler works.
6012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6013 # <limits.h> exists even on freestanding compilers.
6014 # On the NeXT, cc -E runs the code through the compiler's parser,
6015 # not just through cpp. "Syntax error" is here to catch this case.
6016 cat >conftest.$ac_ext <<_ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6023 # include <limits.h>
6025 # include <assert.h>
6029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6032 grep -v '^ *+' conftest.er1 >conftest.err
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } >/dev/null; then
6037 if test -s conftest.err; then
6038 ac_cpp_err=$ac_c_preproc_warn_flag
6039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6046 if test -z "$ac_cpp_err"; then
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 # Broken: fails on valid input.
6055 rm -f conftest.err conftest.$ac_ext
6057 # OK, works on sane cases. Now check whether non-existent headers
6058 # can be detected and how.
6059 cat >conftest.$ac_ext <<_ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 #include <ac_nonexistent.h>
6067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6070 grep -v '^ *+' conftest.er1 >conftest.err
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } >/dev/null; then
6075 if test -s conftest.err; then
6076 ac_cpp_err=$ac_c_preproc_warn_flag
6077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6084 if test -z "$ac_cpp_err"; then
6085 # Broken: success on invalid input.
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 # Passes both tests.
6095 rm -f conftest.err conftest.$ac_ext
6098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6099 rm -f conftest.err conftest.$ac_ext
6100 if $ac_preproc_ok; then
6112 echo "$as_me:$LINENO: result: $CPP" >&5
6113 echo "${ECHO_T}$CPP" >&6
6115 for ac_c_preproc_warn_flag in '' yes
6117 # Use a header file that comes with gcc, so configuring glibc
6118 # with a fresh cross-compiler works.
6119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6120 # <limits.h> exists even on freestanding compilers.
6121 # On the NeXT, cc -E runs the code through the compiler's parser,
6122 # not just through cpp. "Syntax error" is here to catch this case.
6123 cat >conftest.$ac_ext <<_ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 # include <limits.h>
6132 # include <assert.h>
6136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6139 grep -v '^ *+' conftest.er1 >conftest.err
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } >/dev/null; then
6144 if test -s conftest.err; then
6145 ac_cpp_err=$ac_c_preproc_warn_flag
6146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6153 if test -z "$ac_cpp_err"; then
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 # Broken: fails on valid input.
6162 rm -f conftest.err conftest.$ac_ext
6164 # OK, works on sane cases. Now check whether non-existent headers
6165 # can be detected and how.
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <ac_nonexistent.h>
6174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6177 grep -v '^ *+' conftest.er1 >conftest.err
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } >/dev/null; then
6182 if test -s conftest.err; then
6183 ac_cpp_err=$ac_c_preproc_warn_flag
6184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6191 if test -z "$ac_cpp_err"; then
6192 # Broken: success on invalid input.
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 # Passes both tests.
6202 rm -f conftest.err conftest.$ac_ext
6205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6206 rm -f conftest.err conftest.$ac_ext
6207 if $ac_preproc_ok; then
6210 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6211 See \`config.log' for more details." >&5
6212 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6213 See \`config.log' for more details." >&2;}
6214 { (exit 1); exit 1; }; }
6218 ac_cpp='$CPP $CPPFLAGS'
6219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6224 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6226 if test "${ac_cv_header_stdc+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_header_stdc=yes
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_cv_header_stdc=no
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279 if test $ac_cv_header_stdc = yes; then
6280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "memchr" >/dev/null 2>&1; then
6294 ac_cv_header_stdc=no
6300 if test $ac_cv_header_stdc = yes; then
6301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6312 $EGREP "free" >/dev/null 2>&1; then
6315 ac_cv_header_stdc=no
6321 if test $ac_cv_header_stdc = yes; then
6322 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6323 if test "$cross_compiling" = yes; then
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6333 #if ((' ' & 0x0FF) == 0x020)
6334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6337 # define ISLOWER(c) \
6338 (('a' <= (c) && (c) <= 'i') \
6339 || ('j' <= (c) && (c) <= 'r') \
6340 || ('s' <= (c) && (c) <= 'z'))
6341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6349 for (i = 0; i < 256; i++)
6350 if (XOR (islower (i), ISLOWER (i))
6351 || toupper (i) != TOUPPER (i))
6356 rm -f conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6369 echo "$as_me: program exited with status $ac_status" >&5
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6374 ac_cv_header_stdc=no
6376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6380 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6381 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6382 if test $ac_cv_header_stdc = yes; then
6384 cat >>confdefs.h <<\_ACEOF
6385 #define STDC_HEADERS 1
6390 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6400 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6401 inttypes.h stdint.h unistd.h
6403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404 echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 $ac_includes_default
6417 #include <$ac_header>
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421 (eval $ac_compile) 2>conftest.er1
6423 grep -v '^ *+' conftest.er1 >conftest.err
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -z "$ac_c_werror_flag"
6429 || test ! -s conftest.err'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; } &&
6435 { ac_try='test -s conftest.$ac_objext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 eval "$as_ac_Header=yes"
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6446 eval "$as_ac_Header=no"
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6453 cat >>confdefs.h <<_ACEOF
6454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6463 for ac_header in dlfcn.h
6465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6467 echo "$as_me:$LINENO: checking for $ac_header" >&5
6468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6475 # Is the header compilable?
6476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6478 cat >conftest.$ac_ext <<_ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 $ac_includes_default
6485 #include <$ac_header>
6487 rm -f conftest.$ac_objext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489 (eval $ac_compile) 2>conftest.er1
6491 grep -v '^ *+' conftest.er1 >conftest.err
6493 cat conftest.err >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } &&
6496 { ac_try='test -z "$ac_c_werror_flag"
6497 || test ! -s conftest.err'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; } &&
6503 { ac_try='test -s conftest.$ac_objext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_header_compiler=yes
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 ac_header_compiler=no
6516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6518 echo "${ECHO_T}$ac_header_compiler" >&6
6520 # Is the header present?
6521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6523 cat >conftest.$ac_ext <<_ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 #include <$ac_header>
6531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6534 grep -v '^ *+' conftest.er1 >conftest.err
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } >/dev/null; then
6539 if test -s conftest.err; then
6540 ac_cpp_err=$ac_c_preproc_warn_flag
6541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6548 if test -z "$ac_cpp_err"; then
6549 ac_header_preproc=yes
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 ac_header_preproc=no
6556 rm -f conftest.err conftest.$ac_ext
6557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6558 echo "${ECHO_T}$ac_header_preproc" >&6
6560 # So? What about this header?
6561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6567 ac_header_preproc=yes
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6584 ## ------------------------------------------ ##
6585 ## Report this to the AC_PACKAGE_NAME lists. ##
6586 ## ------------------------------------------ ##
6589 sed "s/^/$as_me: WARNING: /" >&2
6592 echo "$as_me:$LINENO: checking for $ac_header" >&5
6593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 eval "$as_ac_Header=\$ac_header_preproc"
6599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6604 cat >>confdefs.h <<_ACEOF
6605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6613 ac_cpp='$CXXCPP $CPPFLAGS'
6614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6617 if test -n "$ac_tool_prefix"; then
6618 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6622 echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6624 if test "${ac_cv_prog_CXX+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 if test -n "$CXX"; then
6628 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 if test -n "$CXX"; then
6648 echo "$as_me:$LINENO: result: $CXX" >&5
6649 echo "${ECHO_T}$CXX" >&6
6651 echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6655 test -n "$CXX" && break
6658 if test -z "$CXX"; then
6660 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6662 # Extract the first word of "$ac_prog", so it can be a program name with args.
6663 set dummy $ac_prog; ac_word=$2
6664 echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6666 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 if test -n "$ac_ct_CXX"; then
6670 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_ac_ct_CXX="$ac_prog"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6689 if test -n "$ac_ct_CXX"; then
6690 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6691 echo "${ECHO_T}$ac_ct_CXX" >&6
6693 echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6
6697 test -n "$ac_ct_CXX" && break
6699 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6705 # Provide some information about the compiler.
6706 echo "$as_me:$LINENO:" \
6707 "checking for C++ compiler version" >&5
6708 ac_compiler=`set X $ac_compile; echo $2`
6709 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6710 (eval $ac_compiler --version </dev/null >&5) 2>&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }
6714 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6715 (eval $ac_compiler -v </dev/null >&5) 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }
6719 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6720 (eval $ac_compiler -V </dev/null >&5) 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }
6725 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6726 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6727 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6752 grep -v '^ *+' conftest.er1 >conftest.err
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_cxx_werror_flag"
6758 || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6781 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6782 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6783 GXX=`test $ac_compiler_gnu = yes && echo yes`
6784 ac_test_CXXFLAGS=${CXXFLAGS+set}
6785 ac_save_CXXFLAGS=$CXXFLAGS
6787 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6788 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6789 if test "${ac_cv_prog_cxx_g+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6807 rm -f conftest.$ac_objext
6808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6809 (eval $ac_compile) 2>conftest.er1
6811 grep -v '^ *+' conftest.er1 >conftest.err
6813 cat conftest.err >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -z "$ac_cxx_werror_flag"
6817 || test ! -s conftest.err'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; } &&
6823 { ac_try='test -s conftest.$ac_objext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6829 ac_cv_prog_cxx_g=yes
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6839 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6840 if test "$ac_test_CXXFLAGS" = set; then
6841 CXXFLAGS=$ac_save_CXXFLAGS
6842 elif test $ac_cv_prog_cxx_g = yes; then
6843 if test "$GXX" = yes; then
6849 if test "$GXX" = yes; then
6855 for ac_declaration in \
6857 'extern "C" void std::exit (int) throw (); using std::exit;' \
6858 'extern "C" void std::exit (int); using std::exit;' \
6859 'extern "C" void exit (int) throw ();' \
6860 'extern "C" void exit (int);' \
6863 cat >conftest.$ac_ext <<_ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6879 rm -f conftest.$ac_objext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881 (eval $ac_compile) 2>conftest.er1
6883 grep -v '^ *+' conftest.er1 >conftest.err
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -z "$ac_cxx_werror_flag"
6889 || test ! -s conftest.err'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6909 cat >conftest.$ac_ext <<_ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6924 rm -f conftest.$ac_objext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>conftest.er1
6928 grep -v '^ *+' conftest.er1 >conftest.err
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } &&
6933 { ac_try='test -z "$ac_cxx_werror_flag"
6934 || test ! -s conftest.err'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; } &&
6940 { ac_try='test -s conftest.$ac_objext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6955 if test -n "$ac_declaration"; then
6956 echo '#ifdef __cplusplus' >>confdefs.h
6957 echo $ac_declaration >>confdefs.h
6958 echo '#endif' >>confdefs.h
6962 ac_cpp='$CXXCPP $CPPFLAGS'
6963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6967 depcc="$CXX" am_compiler_list=
6969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6971 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
6978 # making a dummy file named `D' -- because `-MD' means `put the output
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6993 am_cv_CXX_dependencies_compiler_type=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6997 for depmode in $am_compiler_list; do
6998 # Setup a source with many dependencies, because some compilers
6999 # like to wrap large dependency lists on column 80 (with \), and
7000 # we should not choose a depcomp mode which is confused by this.
7002 # We need to recreate these files for each test, as the compiler may
7003 # overwrite some of them when testing with obscure command lines.
7004 # This happens at least with the AIX C compiler.
7006 for i in 1 2 3 4 5 6; do
7007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7009 # Solaris 8's {/usr,}/bin/sh.
7010 touch sub/conftst$i.h
7012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7016 # after this tag, mechanisms are not by side-effect, so they'll
7017 # only be used when explicitly requested
7018 if test "x$enable_dependency_tracking" = xyes; then
7026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7027 # mode. It turns out that the SunPro C++ compiler does not properly
7028 # handle `-M -o', and we need to detect this.
7029 if depmode=$depmode \
7030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7033 >/dev/null 2>conftest.err &&
7034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7037 # icc doesn't choke on unknown options, it will just issue warnings
7038 # or remarks (even with -Werror). So we grep stderr for any message
7039 # that says an option was ignored or not supported.
7040 # When given -MP, icc 7.0 and 7.1 complain thusly:
7041 # icc: Command line warning: ignoring option '-M'; no argument required
7042 # The diagnosis changed in icc 8.0:
7043 # icc: Command line remark: option '-MP' not supported
7044 if (grep 'ignoring option' conftest.err ||
7045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7046 am_cv_CXX_dependencies_compiler_type=$depmode
7055 am_cv_CXX_dependencies_compiler_type=none
7059 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7060 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7061 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7066 test "x$enable_dependency_tracking" != xno \
7067 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7068 am__fastdepCXX_TRUE=
7069 am__fastdepCXX_FALSE='#'
7071 am__fastdepCXX_TRUE='#'
7072 am__fastdepCXX_FALSE=
7078 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7079 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7080 (test "X$CXX" != "Xg++"))) ; then
7082 ac_cpp='$CXXCPP $CPPFLAGS'
7083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7086 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7087 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7088 if test -z "$CXXCPP"; then
7089 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 # Double quotes because CXXCPP needs to be expanded
7093 for CXXCPP in "$CXX -E" "/lib/cpp"
7096 for ac_cxx_preproc_warn_flag in '' yes
7098 # Use a header file that comes with gcc, so configuring glibc
7099 # with a fresh cross-compiler works.
7100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7101 # <limits.h> exists even on freestanding compilers.
7102 # On the NeXT, cc -E runs the code through the compiler's parser,
7103 # not just through cpp. "Syntax error" is here to catch this case.
7104 cat >conftest.$ac_ext <<_ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7111 # include <limits.h>
7113 # include <assert.h>
7117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } >/dev/null; then
7125 if test -s conftest.err; then
7126 ac_cpp_err=$ac_cxx_preproc_warn_flag
7127 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7134 if test -z "$ac_cpp_err"; then
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 # Broken: fails on valid input.
7143 rm -f conftest.err conftest.$ac_ext
7145 # OK, works on sane cases. Now check whether non-existent headers
7146 # can be detected and how.
7147 cat >conftest.$ac_ext <<_ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 #include <ac_nonexistent.h>
7155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7158 grep -v '^ *+' conftest.er1 >conftest.err
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } >/dev/null; then
7163 if test -s conftest.err; then
7164 ac_cpp_err=$ac_cxx_preproc_warn_flag
7165 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7172 if test -z "$ac_cpp_err"; then
7173 # Broken: success on invalid input.
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 # Passes both tests.
7183 rm -f conftest.err conftest.$ac_ext
7186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7187 rm -f conftest.err conftest.$ac_ext
7188 if $ac_preproc_ok; then
7193 ac_cv_prog_CXXCPP=$CXXCPP
7196 CXXCPP=$ac_cv_prog_CXXCPP
7198 ac_cv_prog_CXXCPP=$CXXCPP
7200 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7201 echo "${ECHO_T}$CXXCPP" >&6
7203 for ac_cxx_preproc_warn_flag in '' yes
7205 # Use a header file that comes with gcc, so configuring glibc
7206 # with a fresh cross-compiler works.
7207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7208 # <limits.h> exists even on freestanding compilers.
7209 # On the NeXT, cc -E runs the code through the compiler's parser,
7210 # not just through cpp. "Syntax error" is here to catch this case.
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7218 # include <limits.h>
7220 # include <assert.h>
7224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7227 grep -v '^ *+' conftest.er1 >conftest.err
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } >/dev/null; then
7232 if test -s conftest.err; then
7233 ac_cpp_err=$ac_cxx_preproc_warn_flag
7234 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7241 if test -z "$ac_cpp_err"; then
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 # Broken: fails on valid input.
7250 rm -f conftest.err conftest.$ac_ext
7252 # OK, works on sane cases. Now check whether non-existent headers
7253 # can be detected and how.
7254 cat >conftest.$ac_ext <<_ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 #include <ac_nonexistent.h>
7262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7265 grep -v '^ *+' conftest.er1 >conftest.err
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } >/dev/null; then
7270 if test -s conftest.err; then
7271 ac_cpp_err=$ac_cxx_preproc_warn_flag
7272 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7279 if test -z "$ac_cpp_err"; then
7280 # Broken: success on invalid input.
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7286 # Passes both tests.
7290 rm -f conftest.err conftest.$ac_ext
7293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7294 rm -f conftest.err conftest.$ac_ext
7295 if $ac_preproc_ok; then
7298 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7299 See \`config.log' for more details." >&5
7300 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7301 See \`config.log' for more details." >&2;}
7302 { (exit 1); exit 1; }; }
7306 ac_cpp='$CXXCPP $CPPFLAGS'
7307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7315 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7316 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7318 if test -n "$ac_tool_prefix"; then
7319 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7323 echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7325 if test "${ac_cv_prog_F77+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 if test -n "$F77"; then
7329 ac_cv_prog_F77="$F77" # Let the user override the test.
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 if test -n "$F77"; then
7349 echo "$as_me:$LINENO: result: $F77" >&5
7350 echo "${ECHO_T}$F77" >&6
7352 echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6
7356 test -n "$F77" && break
7359 if test -z "$F77"; then
7361 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7363 # Extract the first word of "$ac_prog", so it can be a program name with args.
7364 set dummy $ac_prog; ac_word=$2
7365 echo "$as_me:$LINENO: checking for $ac_word" >&5
7366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7367 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 if test -n "$ac_ct_F77"; then
7371 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_ac_ct_F77="$ac_prog"
7381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7390 if test -n "$ac_ct_F77"; then
7391 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7392 echo "${ECHO_T}$ac_ct_F77" >&6
7394 echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7398 test -n "$ac_ct_F77" && break
7405 # Provide some information about the compiler.
7406 echo "$as_me:7406:" \
7407 "checking for Fortran 77 compiler version" >&5
7408 ac_compiler=`set X $ac_compile; echo $2`
7409 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7410 (eval $ac_compiler --version </dev/null >&5) 2>&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }
7414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7415 (eval $ac_compiler -v </dev/null >&5) 2>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }
7419 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7420 (eval $ac_compiler -V </dev/null >&5) 2>&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }
7426 # If we don't use `.F' as extension, the preprocessor is not run on the
7427 # input file. (Note that this only needs to work for GNU compilers.)
7430 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7431 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7432 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 cat >conftest.$ac_ext <<_ACEOF
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -z "$ac_f77_werror_flag"
7453 || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest.$ac_objext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7473 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7476 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7477 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7479 ac_test_FFLAGS=${FFLAGS+set}
7480 ac_save_FFLAGS=$FFLAGS
7482 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7483 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7484 if test "${ac_cv_prog_f77_g+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cat >conftest.$ac_ext <<_ACEOF
7493 rm -f conftest.$ac_objext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7495 (eval $ac_compile) 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try='test -z "$ac_f77_werror_flag"
7503 || test ! -s conftest.err'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; } &&
7509 { ac_try='test -s conftest.$ac_objext'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 ac_cv_prog_f77_g=yes
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7525 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7526 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7527 if test "$ac_test_FFLAGS" = set; then
7528 FFLAGS=$ac_save_FFLAGS
7529 elif test $ac_cv_prog_f77_g = yes; then
7530 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7536 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7543 G77=`test $ac_compiler_gnu = yes && echo yes`
7545 ac_cpp='$CPP $CPPFLAGS'
7546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7554 # find the maximum length of command line arguments
7555 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7556 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7557 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 # On DJGPP, this test can blow up pretty badly due to problems in libc
7566 # (any single argument exceeding 2000 bytes causes a buffer overrun
7567 # during glob expansion). Even if it were fixed, the result of this
7568 # check would be larger than it should be.
7569 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7573 # Under GNU Hurd, this test is not required because there is
7574 # no limit to the length of command line arguments.
7575 # Libtool will interpret -1 as no limit whatsoever
7576 lt_cv_sys_max_cmd_len=-1;
7580 # On Win9x/ME, this test blows up -- it succeeds, but takes
7581 # about 5 minutes as the teststring grows exponentially.
7582 # Worse, since 9x/ME are not pre-emptively multitasking,
7583 # you end up with a "frozen" computer, even though with patience
7584 # the test eventually succeeds (with a max line length of 256k).
7585 # Instead, let's just punt: use the minimum linelength reported by
7586 # all of the supported platforms: 8192 (on NT/2K/XP).
7587 lt_cv_sys_max_cmd_len=8192;
7591 # On AmigaOS with pdksh, this test takes hours, literally.
7592 # So we just punt and use a minimum line length of 8192.
7593 lt_cv_sys_max_cmd_len=8192;
7596 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7597 # This has been around since 386BSD, at least. Likely further.
7598 if test -x /sbin/sysctl; then
7599 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7600 elif test -x /usr/sbin/sysctl; then
7601 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7603 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7605 # And add a safety zone
7606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7610 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7611 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7612 # nice to cause kernel panics so lets avoid the loop below.
7613 # First set a reasonable default.
7614 lt_cv_sys_max_cmd_len=16384
7616 if test -x /sbin/sysconfig; then
7617 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7618 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7623 # If test is not a shell built-in, we'll probably end up computing a
7624 # maximum length that is only half of the actual maximum length, but
7626 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7627 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7628 = "XX$teststring") >/dev/null 2>&1 &&
7629 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7630 lt_cv_sys_max_cmd_len=$new_result &&
7631 test $i != 17 # 1/2 MB should be enough
7634 teststring=$teststring$teststring
7637 # Add a significant safety factor because C++ compilers can tack on massive
7638 # amounts of additional arguments before passing them to the linker.
7639 # It appears as though 1/2 is a usable value.
7640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7646 if test -n $lt_cv_sys_max_cmd_len ; then
7647 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7648 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7650 echo "$as_me:$LINENO: result: none" >&5
7651 echo "${ECHO_T}none" >&6
7657 # Check for command to grab the raw symbol name followed by C symbol from nm.
7658 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7659 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7660 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 # These are sane defaults that work on at least a few old systems.
7665 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7667 # Character class describing NM global symbol codes.
7668 symcode='[BCDEGRST]'
7670 # Regexp to match symbols that can be accessed directly from C.
7671 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7673 # Transform an extracted symbol line into a proper C declaration
7674 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7676 # Transform an extracted symbol line into symbol name and symbol address
7677 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'"
7679 # Define system-specific variables.
7684 cygwin* | mingw* | pw32*)
7685 symcode='[ABCDGISTW]'
7687 hpux*) # Its linker distinguishes data from code symbols
7688 if test "$host_cpu" = ia64; then
7689 symcode='[ABCDEGRST]'
7691 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7692 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'"
7695 if test "$host_cpu" = ia64; then
7696 symcode='[ABCDGIRSTW]'
7697 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7698 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'"
7702 symcode='[BCDEGRST]'
7705 symcode='[BCDEGQRST]'
7715 # Handle CRLF in mingw tool chain
7719 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7723 # If we're using GNU nm, then use its standard symbol codes.
7724 case `$NM -V 2>&1` in
7725 *GNU* | *'with BFD'*)
7726 symcode='[ABCDGIRSTW]' ;;
7729 # Try without a prefix undercore, then with it.
7730 for ac_symprfx in "" "_"; do
7732 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7733 symxfrm="\\1 $ac_symprfx\\2 \\2"
7735 # Write the raw and C identifiers.
7736 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7738 # Check to see that the pipe works correctly.
7742 cat > conftest.$ac_ext <<EOF
7747 void nm_test_func(){}
7751 int main(){nm_test_var='a';nm_test_func();return(0);}
7754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; then
7759 # Now try to grab the symbols.
7761 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7762 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } && test -s "$nlist"; then
7766 # Try sorting and uniquifying the output.
7767 if sort "$nlist" | uniq > "$nlist"T; then
7768 mv -f "$nlist"T "$nlist"
7773 # Make sure that we snagged all the symbols we need.
7774 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7775 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7776 cat <<EOF > conftest.$ac_ext
7782 # Now generate the symbol file.
7783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7785 cat <<EOF >> conftest.$ac_ext
7786 #if defined (__STDC__) && __STDC__
7787 # define lt_ptr_t void *
7789 # define lt_ptr_t char *
7793 /* The mapping between symbol names and symbols. */
7798 lt_preloaded_symbols[] =
7801 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7802 cat <<\EOF >> conftest.$ac_ext
7810 # Now try linking the two files.
7811 mv conftest.$ac_objext conftstm.$ac_objext
7812 lt_save_LIBS="$LIBS"
7813 lt_save_CFLAGS="$CFLAGS"
7814 LIBS="conftstm.$ac_objext"
7815 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817 (eval $ac_link) 2>&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7823 LIBS="$lt_save_LIBS"
7824 CFLAGS="$lt_save_CFLAGS"
7826 echo "cannot find nm_test_func in $nlist" >&5
7829 echo "cannot find nm_test_var in $nlist" >&5
7832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7835 echo "$progname: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7838 rm -f conftest* conftst*
7840 # Do not use the global_symbol_pipe unless it works.
7841 if test "$pipe_works" = yes; then
7844 lt_cv_sys_global_symbol_pipe=
7850 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7851 lt_cv_sys_global_symbol_to_cdecl=
7853 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7854 echo "$as_me:$LINENO: result: failed" >&5
7855 echo "${ECHO_T}failed" >&6
7857 echo "$as_me:$LINENO: result: ok" >&5
7858 echo "${ECHO_T}ok" >&6
7861 echo "$as_me:$LINENO: checking for objdir" >&5
7862 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7863 if test "${lt_cv_objdir+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 rm -f .libs 2>/dev/null
7867 mkdir .libs 2>/dev/null
7868 if test -d .libs; then
7871 # MS-DOS does not allow filenames that begin with a dot.
7874 rmdir .libs 2>/dev/null
7876 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7877 echo "${ECHO_T}$lt_cv_objdir" >&6
7878 objdir=$lt_cv_objdir
7886 # AIX sometimes has problems with the GCC collect2 program. For some
7887 # reason, if we set the COLLECT_NAMES environment variable, the problems
7888 # vanish in a puff of smoke.
7889 if test "X${COLLECT_NAMES+set}" != Xset; then
7891 export COLLECT_NAMES
7896 # Sed substitution that helps us do robust quoting. It backslashifies
7897 # metacharacters that are still active within double-quoted strings.
7898 Xsed='sed -e 1s/^X//'
7899 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7901 # Same as above, but do not quote variable references.
7902 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7904 # Sed substitution to delay expansion of an escaped shell variable in a
7905 # double_quote_subst'ed string.
7906 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7908 # Sed substitution to avoid accidental globbing in evaled expressions
7909 no_glob_subst='s/\*/\\\*/g'
7915 default_ofile=libtool
7916 can_build_shared=yes
7918 # All known linkers require a `.a' archive for static linking (except M$VC,
7919 # which needs '.lib').
7921 ltmain="$ac_aux_dir/ltmain.sh"
7922 ofile="$default_ofile"
7923 with_gnu_ld="$lt_cv_prog_gnu_ld"
7925 if test -n "$ac_tool_prefix"; then
7926 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}ar; ac_word=$2
7928 echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7930 if test "${ac_cv_prog_AR+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 if test -n "$AR"; then
7934 ac_cv_prog_AR="$AR" # Let the user override the test.
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943 ac_cv_prog_AR="${ac_tool_prefix}ar"
7944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 if test -n "$AR"; then
7954 echo "$as_me:$LINENO: result: $AR" >&5
7955 echo "${ECHO_T}$AR" >&6
7957 echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6
7962 if test -z "$ac_cv_prog_AR"; then
7964 # Extract the first word of "ar", so it can be a program name with args.
7965 set dummy ar; ac_word=$2
7966 echo "$as_me:$LINENO: checking for $ac_word" >&5
7967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7968 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 if test -n "$ac_ct_AR"; then
7972 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981 ac_cv_prog_ac_ct_AR="ar"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7991 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7992 if test -n "$ac_ct_AR"; then
7993 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7994 echo "${ECHO_T}$ac_ct_AR" >&6
7996 echo "$as_me:$LINENO: result: no" >&5
7997 echo "${ECHO_T}no" >&6
8005 if test -n "$ac_tool_prefix"; then
8006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8008 echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8010 if test "${ac_cv_prog_RANLIB+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 if test -n "$RANLIB"; then
8014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 RANLIB=$ac_cv_prog_RANLIB
8033 if test -n "$RANLIB"; then
8034 echo "$as_me:$LINENO: result: $RANLIB" >&5
8035 echo "${ECHO_T}$RANLIB" >&6
8037 echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6
8042 if test -z "$ac_cv_prog_RANLIB"; then
8043 ac_ct_RANLIB=$RANLIB
8044 # Extract the first word of "ranlib", so it can be a program name with args.
8045 set dummy ranlib; ac_word=$2
8046 echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 if test -n "$ac_ct_RANLIB"; then
8052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_ac_ct_RANLIB="ranlib"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8072 if test -n "$ac_ct_RANLIB"; then
8073 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8074 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8076 echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6
8080 RANLIB=$ac_ct_RANLIB
8082 RANLIB="$ac_cv_prog_RANLIB"
8085 if test -n "$ac_tool_prefix"; then
8086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8087 set dummy ${ac_tool_prefix}strip; ac_word=$2
8088 echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8090 if test "${ac_cv_prog_STRIP+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 if test -n "$STRIP"; then
8094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 STRIP=$ac_cv_prog_STRIP
8113 if test -n "$STRIP"; then
8114 echo "$as_me:$LINENO: result: $STRIP" >&5
8115 echo "${ECHO_T}$STRIP" >&6
8117 echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6
8122 if test -z "$ac_cv_prog_STRIP"; then
8124 # Extract the first word of "strip", so it can be a program name with args.
8125 set dummy strip; ac_word=$2
8126 echo "$as_me:$LINENO: checking for $ac_word" >&5
8127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8128 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 if test -n "$ac_ct_STRIP"; then
8132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_ac_ct_STRIP="strip"
8142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8152 if test -n "$ac_ct_STRIP"; then
8153 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8154 echo "${ECHO_T}$ac_ct_STRIP" >&6
8156 echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8162 STRIP="$ac_cv_prog_STRIP"
8167 old_CFLAGS="$CFLAGS"
8169 # Set sane defaults for various variables
8170 test -z "$AR" && AR=ar
8171 test -z "$AR_FLAGS" && AR_FLAGS=cru
8172 test -z "$AS" && AS=as
8173 test -z "$CC" && CC=cc
8174 test -z "$LTCC" && LTCC=$CC
8175 test -z "$DLLTOOL" && DLLTOOL=dlltool
8176 test -z "$LD" && LD=ld
8177 test -z "$LN_S" && LN_S="ln -s"
8178 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8179 test -z "$NM" && NM=nm
8180 test -z "$SED" && SED=sed
8181 test -z "$OBJDUMP" && OBJDUMP=objdump
8182 test -z "$RANLIB" && RANLIB=:
8183 test -z "$STRIP" && STRIP=:
8184 test -z "$ac_objext" && ac_objext=o
8186 # Determine commands to create old-style static archives.
8187 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8188 old_postinstall_cmds='chmod 644 $oldlib'
8189 old_postuninstall_cmds=
8191 if test -n "$RANLIB"; then
8194 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8197 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8200 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8203 for cc_temp in $compiler""; do
8205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8211 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8214 # Only perform the check for file, if the check method requires it
8215 case $deplibs_check_method in
8217 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8218 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8219 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8228 lt_save_MAGIC_CMD="$MAGIC_CMD"
8229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8231 for ac_dir in $ac_dummy; do
8233 test -z "$ac_dir" && ac_dir=.
8234 if test -f $ac_dir/${ac_tool_prefix}file; then
8235 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8236 if test -n "$file_magic_test_file"; then
8237 case $deplibs_check_method in
8239 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8242 $EGREP "$file_magic_regex" > /dev/null; then
8247 *** Warning: the command libtool uses to detect shared libraries,
8248 *** $file_magic_cmd, produces output that libtool cannot recognize.
8249 *** The result is that libtool may fail to recognize shared libraries
8250 *** as such. This will affect the creation of libtool libraries that
8251 *** depend on shared libraries, but programs linked with such libtool
8252 *** libraries will work regardless of this problem. Nevertheless, you
8253 *** may want to report the problem to your system manager and/or to
8254 *** bug-libtool@gnu.org
8264 MAGIC_CMD="$lt_save_MAGIC_CMD"
8269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8270 if test -n "$MAGIC_CMD"; then
8271 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8272 echo "${ECHO_T}$MAGIC_CMD" >&6
8274 echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6
8278 if test -z "$lt_cv_path_MAGIC_CMD"; then
8279 if test -n "$ac_tool_prefix"; then
8280 echo "$as_me:$LINENO: checking for file" >&5
8281 echo $ECHO_N "checking for file... $ECHO_C" >&6
8282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290 lt_save_MAGIC_CMD="$MAGIC_CMD"
8291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293 for ac_dir in $ac_dummy; do
8295 test -z "$ac_dir" && ac_dir=.
8296 if test -f $ac_dir/file; then
8297 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8298 if test -n "$file_magic_test_file"; then
8299 case $deplibs_check_method in
8301 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304 $EGREP "$file_magic_regex" > /dev/null; then
8309 *** Warning: the command libtool uses to detect shared libraries,
8310 *** $file_magic_cmd, produces output that libtool cannot recognize.
8311 *** The result is that libtool may fail to recognize shared libraries
8312 *** as such. This will affect the creation of libtool libraries that
8313 *** depend on shared libraries, but programs linked with such libtool
8314 *** libraries will work regardless of this problem. Nevertheless, you
8315 *** may want to report the problem to your system manager and/or to
8316 *** bug-libtool@gnu.org
8326 MAGIC_CMD="$lt_save_MAGIC_CMD"
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if test -n "$MAGIC_CMD"; then
8333 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8334 echo "${ECHO_T}$MAGIC_CMD" >&6
8336 echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8350 enable_win32_dll=yes
8352 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8353 if test "${enable_libtool_lock+set}" = set; then
8354 enableval="$enable_libtool_lock"
8357 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8360 # Check whether --with-pic or --without-pic was given.
8361 if test "${with_pic+set}" = set; then
8367 test -z "$pic_mode" && pic_mode=default
8369 # Use C for the default configuration in the libtool script
8373 ac_cpp='$CPP $CPPFLAGS'
8374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379 # Source file extension for C test sources.
8382 # Object file extension for compiled C test sources.
8386 # Code to be used in simple compile tests
8387 lt_simple_compile_test_code="int some_variable = 0;\n"
8389 # Code to be used in simple link tests
8390 lt_simple_link_test_code='int main(){return(0);}\n'
8393 # If no C compiler was specified, use CC.
8396 # Allow CC to be a program name with arguments.
8400 # save warnings/boilerplate of simple test code
8401 ac_outfile=conftest.$ac_objext
8402 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8404 _lt_compiler_boilerplate=`cat conftest.err`
8407 ac_outfile=conftest.$ac_objext
8408 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8410 _lt_linker_boilerplate=`cat conftest.err`
8415 # Check for any special shared library compilation flags.
8418 if test "$GCC" = no; then
8421 lt_prog_cc_shlib='-belf'
8425 if test -n "$lt_prog_cc_shlib"; then
8426 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8427 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8428 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8430 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8431 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8432 lt_cv_prog_cc_can_build_shared=no
8438 # Check to make sure the static flag actually works.
8440 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8441 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8442 if test "${lt_prog_compiler_static_works+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 lt_prog_compiler_static_works=no
8446 save_LDFLAGS="$LDFLAGS"
8447 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8448 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8450 # The compiler can only warn and ignore the option if not recognized
8451 # So say no if there are warnings
8452 if test -s conftest.err; then
8453 # Append any errors to the config.log.
8454 cat conftest.err 1>&5
8455 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8456 $SED '/^$/d' conftest.err >conftest.er2
8457 if diff conftest.exp conftest.er2 >/dev/null; then
8458 lt_prog_compiler_static_works=yes
8461 lt_prog_compiler_static_works=yes
8465 LDFLAGS="$save_LDFLAGS"
8468 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8469 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8471 if test x"$lt_prog_compiler_static_works" = xyes; then
8474 lt_prog_compiler_static=
8480 lt_prog_compiler_no_builtin_flag=
8482 if test "$GCC" = yes; then
8483 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8486 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8487 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8488 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 lt_cv_prog_compiler_rtti_exceptions=no
8492 ac_outfile=conftest.$ac_objext
8493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8494 lt_compiler_flag="-fno-rtti -fno-exceptions"
8495 # Insert the option either (1) after the last *FLAGS variable, or
8496 # (2) before a word containing "conftest.", or (3) at the end.
8497 # Note that $ac_compile itself does not contain backslashes and begins
8498 # with a dollar sign (not a hyphen), so the echo should work correctly.
8499 # The option is referenced via a variable to avoid confusing sed.
8500 lt_compile=`echo "$ac_compile" | $SED \
8501 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503 -e 's:$: $lt_compiler_flag:'`
8504 (eval echo "\"\$as_me:8504: $lt_compile\"" >&5)
8505 (eval "$lt_compile" 2>conftest.err)
8507 cat conftest.err >&5
8508 echo "$as_me:8508: \$? = $ac_status" >&5
8509 if (exit $ac_status) && test -s "$ac_outfile"; then
8510 # The compiler can only warn and ignore the option if not recognized
8511 # So say no if there are warnings other than the usual output.
8512 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8513 $SED '/^$/d' conftest.err >conftest.er2
8514 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8515 lt_cv_prog_compiler_rtti_exceptions=yes
8521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8522 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8525 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8532 lt_prog_compiler_wl=
8533 lt_prog_compiler_pic=
8534 lt_prog_compiler_static=
8536 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8537 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8539 if test "$GCC" = yes; then
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_static='-static'
8545 # All AIX code is PIC.
8546 if test "$host_cpu" = ia64; then
8547 # AIX 5 now supports IA64 processor
8548 lt_prog_compiler_static='-Bstatic'
8553 # FIXME: we need at least 68020 code to build shared libraries, but
8554 # adding the `-m68020' flag to GCC prevents building anything better,
8556 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8559 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8560 # PIC is the default for these OSes.
8563 mingw* | pw32* | os2*)
8564 # This hack is so that the source file can tell whether it is being
8565 # built for inclusion in a dll (and should export symbols for example).
8566 lt_prog_compiler_pic='-DDLL_EXPORT'
8569 darwin* | rhapsody*)
8570 # PIC is the default on this platform
8571 # Common symbols not allowed in MH_DYLIB files
8572 lt_prog_compiler_pic='-fno-common'
8576 # Just because we use GCC doesn't mean we suddenly get shared libraries
8577 # on systems that don't support them.
8578 lt_prog_compiler_can_build_shared=no
8583 if test -d /usr/nec; then
8584 lt_prog_compiler_pic=-Kconform_pic
8589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8596 lt_prog_compiler_pic='-fPIC'
8602 lt_prog_compiler_pic='-fPIC'
8606 # PORTME Check for flag to pass linker flags through the system compiler.
8609 lt_prog_compiler_wl='-Wl,'
8610 if test "$host_cpu" = ia64; then
8611 # AIX 5 now supports IA64 processor
8612 lt_prog_compiler_static='-Bstatic'
8614 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8618 # PIC is the default on this platform
8619 # Common symbols not allowed in MH_DYLIB files
8620 case $cc_basename in
8622 lt_prog_compiler_pic='-qnocommon'
8623 lt_prog_compiler_wl='-Wl,'
8628 mingw* | pw32* | os2*)
8629 # This hack is so that the source file can tell whether it is being
8630 # built for inclusion in a dll (and should export symbols for example).
8631 lt_prog_compiler_pic='-DDLL_EXPORT'
8634 hpux9* | hpux10* | hpux11*)
8635 lt_prog_compiler_wl='-Wl,'
8636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8643 lt_prog_compiler_pic='+Z'
8646 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8647 lt_prog_compiler_static='${wl}-a ${wl}archive'
8650 irix5* | irix6* | nonstopux*)
8651 lt_prog_compiler_wl='-Wl,'
8652 # PIC (with -KPIC) is the default.
8653 lt_prog_compiler_static='-non_shared'
8657 lt_prog_compiler_pic='-KPIC'
8658 lt_prog_compiler_static='-Bstatic'
8662 case $cc_basename in
8664 lt_prog_compiler_wl='-Wl,'
8665 lt_prog_compiler_pic='-KPIC'
8666 lt_prog_compiler_static='-static'
8668 pgcc* | pgf77* | pgf90*)
8669 # Portland Group compilers (*not* the Pentium gcc compiler,
8670 # which looks to be a dead project)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_pic='-fpic'
8673 lt_prog_compiler_static='-static'
8676 lt_prog_compiler_wl='-Wl,'
8677 # All Alpha code is PIC.
8678 lt_prog_compiler_static='-non_shared'
8683 osf3* | osf4* | osf5*)
8684 lt_prog_compiler_wl='-Wl,'
8685 # All OSF/1 code is PIC.
8686 lt_prog_compiler_static='-non_shared'
8690 lt_prog_compiler_pic='-Kpic'
8691 lt_prog_compiler_static='-dn'
8695 lt_prog_compiler_pic='-KPIC'
8696 lt_prog_compiler_static='-Bstatic'
8697 case $cc_basename in
8699 lt_prog_compiler_wl='-Qoption ld ';;
8701 lt_prog_compiler_wl='-Wl,';;
8706 lt_prog_compiler_wl='-Qoption ld '
8707 lt_prog_compiler_pic='-PIC'
8708 lt_prog_compiler_static='-Bstatic'
8711 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_pic='-KPIC'
8714 lt_prog_compiler_static='-Bstatic'
8718 if test -d /usr/nec ;then
8719 lt_prog_compiler_pic='-Kconform_pic'
8720 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl='-Wl,'
8726 lt_prog_compiler_can_build_shared=no
8730 lt_prog_compiler_pic='-pic'
8731 lt_prog_compiler_static='-Bstatic'
8735 lt_prog_compiler_can_build_shared=no
8740 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8741 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8744 # Check to make sure the PIC flag actually works.
8746 if test -n "$lt_prog_compiler_pic"; then
8748 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8750 if test "${lt_prog_compiler_pic_works+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 lt_prog_compiler_pic_works=no
8754 ac_outfile=conftest.$ac_objext
8755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8757 # Insert the option either (1) after the last *FLAGS variable, or
8758 # (2) before a word containing "conftest.", or (3) at the end.
8759 # Note that $ac_compile itself does not contain backslashes and begins
8760 # with a dollar sign (not a hyphen), so the echo should work correctly.
8761 # The option is referenced via a variable to avoid confusing sed.
8762 lt_compile=`echo "$ac_compile" | $SED \
8763 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765 -e 's:$: $lt_compiler_flag:'`
8766 (eval echo "\"\$as_me:8766: $lt_compile\"" >&5)
8767 (eval "$lt_compile" 2>conftest.err)
8769 cat conftest.err >&5
8770 echo "$as_me:8770: \$? = $ac_status" >&5
8771 if (exit $ac_status) && test -s "$ac_outfile"; then
8772 # The compiler can only warn and ignore the option if not recognized
8773 # So say no if there are warnings other than the usual output.
8774 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8775 $SED '/^$/d' conftest.err >conftest.er2
8776 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8777 lt_prog_compiler_pic_works=yes
8783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8784 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8786 if test x"$lt_prog_compiler_pic_works" = xyes; then
8787 case $lt_prog_compiler_pic in
8789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8792 lt_prog_compiler_pic=
8793 lt_prog_compiler_can_build_shared=no
8798 # For platforms which do not support PIC, -DPIC is meaningless:
8800 lt_prog_compiler_pic=
8803 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8807 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8808 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8809 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 lt_cv_prog_compiler_c_o=no
8813 $rm -r conftest 2>/dev/null
8817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8819 lt_compiler_flag="-o out/conftest2.$ac_objext"
8820 # Insert the option either (1) after the last *FLAGS variable, or
8821 # (2) before a word containing "conftest.", or (3) at the end.
8822 # Note that $ac_compile itself does not contain backslashes and begins
8823 # with a dollar sign (not a hyphen), so the echo should work correctly.
8824 lt_compile=`echo "$ac_compile" | $SED \
8825 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8827 -e 's:$: $lt_compiler_flag:'`
8828 (eval echo "\"\$as_me:8828: $lt_compile\"" >&5)
8829 (eval "$lt_compile" 2>out/conftest.err)
8831 cat out/conftest.err >&5
8832 echo "$as_me:8832: \$? = $ac_status" >&5
8833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8835 # The compiler can only warn and ignore the option if not recognized
8836 # So say no if there are warnings
8837 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8838 $SED '/^$/d' out/conftest.err >out/conftest.er2
8839 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8840 lt_cv_prog_compiler_c_o=yes
8845 # SGI C++ compiler will create directory out/ii_files/ for
8846 # template instantiation
8847 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8848 $rm out/* && rmdir out
8854 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8855 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8858 hard_links="nottested"
8859 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8860 # do not overwrite the value of need_locks provided by the user
8861 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8862 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8867 ln conftest.a conftest.b 2>&5 || hard_links=no
8868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8869 echo "$as_me:$LINENO: result: $hard_links" >&5
8870 echo "${ECHO_T}$hard_links" >&6
8871 if test "$hard_links" = no; then
8872 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8873 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8880 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8881 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8884 allow_undefined_flag=
8885 enable_shared_with_static_runtimes=no
8887 archive_expsym_cmds=
8888 old_archive_From_new_cmds=
8889 old_archive_from_expsyms_cmds=
8890 export_dynamic_flag_spec=
8891 whole_archive_flag_spec=
8892 thread_safe_flag_spec=
8893 hardcode_libdir_flag_spec=
8894 hardcode_libdir_flag_spec_ld=
8895 hardcode_libdir_separator=
8898 hardcode_shlibpath_var=unsupported
8899 link_all_deplibs=unknown
8900 hardcode_automatic=no
8903 always_export_symbols=no
8904 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8905 # include_expsyms should be a list of space-separated symbols to be *always*
8906 # included in the symbol list
8908 # exclude_expsyms can be an extended regexp of symbols to exclude
8909 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8911 # as well as any symbol that contains `d'.
8912 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8914 # platforms (ab)use it in PIC code, but their linkers get confused if
8915 # the symbol is explicitly referenced. Since portable code cannot
8916 # rely on this symbol name, it's probably fine to never include it in
8917 # preloaded symbol tables.
8918 extract_expsyms_cmds=
8919 # Just being paranoid about ensuring that cc_basename is set.
8920 for cc_temp in $compiler""; do
8922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8931 cygwin* | mingw* | pw32*)
8932 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8933 # When not using gcc, we currently assume that we are using
8934 # Microsoft Visual C++.
8935 if test "$GCC" != yes; then
8945 if test "$with_gnu_ld" = yes; then
8946 # If archive_cmds runs LD, not CC, wlarc should be empty
8949 # Set some defaults for GNU ld with shared library support. These
8950 # are reset later if shared libraries are not supported. Putting them
8951 # here allows them to be overridden if necessary.
8952 runpath_var=LD_RUN_PATH
8953 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8954 export_dynamic_flag_spec='${wl}--export-dynamic'
8955 # ancient GNU ld didn't support --whole-archive et. al.
8956 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8957 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8959 whole_archive_flag_spec=
8961 supports_anon_versioning=no
8962 case `$LD -v 2>/dev/null` in
8963 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8964 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8965 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8966 *\ 2.11.*) ;; # other 2.11 versions
8967 *) supports_anon_versioning=yes ;;
8970 # See if GNU ld supports shared libraries.
8972 aix3* | aix4* | aix5*)
8973 # On AIX/PPC, the GNU linker is very broken
8974 if test "$host_cpu" != ia64; then
8978 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8979 *** to be unable to reliably create shared libraries on AIX.
8980 *** Therefore, libtool is disabling shared libraries support. If you
8981 *** really care for shared libraries, you may want to modify your PATH
8982 *** so that a non-GNU linker is found, and then restart.
8989 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)'
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 hardcode_minus_L=yes
8993 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8994 # that the semantics of dynamic libraries on AmigaOS, at least up
8995 # to version 4, is to share data among multiple programs linked
8996 # with the same dynamic library. Since this doesn't match the
8997 # behavior of shared libraries on other platforms, we can't use
9003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9004 allow_undefined_flag=unsupported
9005 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9006 # support --undefined. This deserves some investigation. FIXME
9007 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 cygwin* | mingw* | pw32*)
9014 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9015 # as there is no search path for DLLs.
9016 hardcode_libdir_flag_spec='-L$libdir'
9017 allow_undefined_flag=unsupported
9018 always_export_symbols=no
9019 enable_shared_with_static_runtimes=yes
9020 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9022 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9024 # If the export-symbols file already is a .def file (1st line
9025 # is EXPORTS), use it as is; otherwise, prepend...
9026 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9027 cp $export_symbols $output_objdir/$soname.def;
9029 echo EXPORTS > $output_objdir/$soname.def;
9030 cat $export_symbols >> $output_objdir/$soname.def;
9032 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9041 case $cc_basename,$host_cpu in
9042 pgcc*) # Portland Group C compiler
9043 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9044 tmp_addflag=' $pic_flag'
9046 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9047 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9048 tmp_addflag=' $pic_flag -Mnomain' ;;
9049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9050 tmp_addflag=' -i_dynamic' ;;
9051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9052 tmp_addflag=' -i_dynamic -nofor_main' ;;
9053 ifc* | ifort*) # Intel Fortran compiler
9054 tmp_addflag=' -nofor_main' ;;
9056 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 if test $supports_anon_versioning = yes; then
9059 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9061 $echo "local: *; };" >> $output_objdir/$libname.ver~
9062 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9071 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9080 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9085 *** create shared libraries on Solaris systems. Therefore, libtool
9086 *** is disabling shared libraries support. We urge you to upgrade GNU
9087 *** binutils to release 2.9.1 or newer. Another option is to modify
9088 *** your PATH or compiler configuration so that the native linker is
9089 *** used, and then restart.
9092 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9101 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_shlibpath_var=no
9108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9117 if test "$ld_shlibs" = no; then
9119 hardcode_libdir_flag_spec=
9120 export_dynamic_flag_spec=
9121 whole_archive_flag_spec=
9124 # PORTME fill in a description of your system's linker (not GNU ld)
9127 allow_undefined_flag=unsupported
9128 always_export_symbols=yes
9129 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'
9130 # Note: this linker hardcodes the directories in LIBPATH if there
9131 # are no directories specified by -L.
9132 hardcode_minus_L=yes
9133 if test "$GCC" = yes && test -z "$link_static_flag"; then
9134 # Neither direct hardcoding nor static linking is supported with a
9136 hardcode_direct=unsupported
9141 if test "$host_cpu" = ia64; then
9142 # On IA64, the linker does run time linking by default, so we don't
9143 # have to do anything special.
9144 aix_use_runtimelinking=no
9145 exp_sym_flag='-Bexport'
9148 # If we're using GNU nm, then we don't want the "-C" option.
9149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9151 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'
9153 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'
9155 aix_use_runtimelinking=no
9157 # Test if we are trying to use run time linking or normal
9158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9159 # need to do runtime linking.
9160 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9161 for ld_flag in $LDFLAGS; do
9162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9163 aix_use_runtimelinking=yes
9169 exp_sym_flag='-bexport'
9170 no_entry_flag='-bnoentry'
9173 # When large executables or shared objects are built, AIX ld can
9174 # have problems creating the table of contents. If linking a library
9175 # or program results in "error TOC overflow" add -mminimal-toc to
9176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9181 hardcode_libdir_separator=':'
9182 link_all_deplibs=yes
9184 if test "$GCC" = yes; then
9185 case $host_os in aix4.[012]|aix4.[012].*)
9186 # We only want to do this on AIX 4.2 and lower, the check
9187 # below for broken collect2 doesn't work under 4.3+
9188 collect2name=`${CC} -print-prog-name=collect2`
9189 if test -f "$collect2name" && \
9190 strings "$collect2name" | grep resolve_lib_name >/dev/null
9192 # We have reworked collect2
9195 # We have old collect2
9196 hardcode_direct=unsupported
9197 # It fails to find uninstalled libraries when the uninstalled
9198 # path is not listed in the libpath. Setting hardcode_minus_L
9199 # to unsupported forces relinking
9200 hardcode_minus_L=yes
9201 hardcode_libdir_flag_spec='-L$libdir'
9202 hardcode_libdir_separator=
9205 shared_flag='-shared'
9206 if test "$aix_use_runtimelinking" = yes; then
9207 shared_flag="$shared_flag "'${wl}-G'
9211 if test "$host_cpu" = ia64; then
9212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9213 # chokes on -Wl,-G. The following line is correct:
9216 if test "$aix_use_runtimelinking" = yes; then
9217 shared_flag='${wl}-G'
9219 shared_flag='${wl}-bM:SRE'
9224 # It seems that -bexpall does not export symbols beginning with
9225 # underscore (_), so it is better to generate a list of symbols to export.
9226 always_export_symbols=yes
9227 if test "$aix_use_runtimelinking" = yes; then
9228 # Warning - without using the other runtime loading flags (-brtl),
9229 # -berok will link without error, but may produce a broken library.
9230 allow_undefined_flag='-berok'
9231 # Determine the default libpath from the value encoded in an empty executable.
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249 (eval $ac_link) 2>conftest.er1
9251 grep -v '^ *+' conftest.er1 >conftest.err
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try='test -z "$ac_c_werror_flag"
9257 || test ! -s conftest.err'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; } &&
9263 { ac_try='test -s conftest$ac_exeext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9272 # Check for a 64-bit object if we didn't find anything.
9273 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; }
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9280 rm -f conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9284 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9285 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"
9287 if test "$host_cpu" = ia64; then
9288 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9289 allow_undefined_flag="-z nodefs"
9290 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"
9292 # Determine the default libpath from the value encoded in an empty executable.
9293 cat >conftest.$ac_ext <<_ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9308 rm -f conftest.$ac_objext conftest$ac_exeext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310 (eval $ac_link) 2>conftest.er1
9312 grep -v '^ *+' conftest.er1 >conftest.err
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag"
9318 || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest$ac_exeext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9333 # Check for a 64-bit object if we didn't find anything.
9334 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; }
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9341 rm -f conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9345 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346 # Warning - without using the other run time loading flags,
9347 # -berok will link without error, but may produce a broken library.
9348 no_undefined_flag=' ${wl}-bernotok'
9349 allow_undefined_flag=' ${wl}-berok'
9350 # -bexpall does not export symbols beginning with underscore (_)
9351 always_export_symbols=yes
9352 # Exported symbols can be pulled into shared objects from archives
9353 whole_archive_flag_spec=' '
9354 archive_cmds_need_lc=yes
9355 # This is similar to how AIX traditionally builds it's shared libraries.
9356 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'
9362 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)'
9363 hardcode_libdir_flag_spec='-L$libdir'
9364 hardcode_minus_L=yes
9365 # see comment about different semantics on the GNU ld section
9370 export_dynamic_flag_spec=-rdynamic
9373 cygwin* | mingw* | pw32*)
9374 # When not using gcc, we currently assume that we are using
9375 # Microsoft Visual C++.
9376 # hardcode_libdir_flag_spec is actually meaningless, as there is
9377 # no search path for DLLs.
9378 hardcode_libdir_flag_spec=' '
9379 allow_undefined_flag=unsupported
9380 # Tell ltmain to make .lib files, not .a files.
9382 # Tell ltmain to make .dll files, not .so files.
9384 # FIXME: Setting linknames here is a bad hack.
9385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9386 # The linker will automatically build a .lib file if we build a DLL.
9387 old_archive_From_new_cmds='true'
9388 # FIXME: Should let the user specify the lib program.
9389 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9390 fix_srcfile_path='`cygpath -w "$srcfile"`'
9391 enable_shared_with_static_runtimes=yes
9394 darwin* | rhapsody*)
9396 rhapsody* | darwin1.[012])
9397 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9400 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9401 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9403 case ${MACOSX_DEPLOYMENT_TARGET} in
9405 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9408 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9414 archive_cmds_need_lc=no
9416 hardcode_automatic=yes
9417 hardcode_shlibpath_var=unsupported
9418 whole_archive_flag_spec=''
9419 link_all_deplibs=yes
9420 if test "$GCC" = yes ; then
9421 output_verbose_link_cmd='echo'
9422 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9423 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9424 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9425 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}'
9426 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}'
9428 case $cc_basename in
9430 output_verbose_link_cmd='echo'
9431 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9432 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9434 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}'
9435 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}'
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_shlibpath_var=no
9454 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9455 # support. Future versions do this automatically, but an explicit c++rt0.o
9456 # does not break anything, and helps significantly (at the cost of a little
9459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9460 hardcode_libdir_flag_spec='-R$libdir'
9462 hardcode_shlibpath_var=no
9465 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_minus_L=yes
9470 hardcode_shlibpath_var=no
9473 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9474 freebsd* | kfreebsd*-gnu | dragonfly*)
9475 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9476 hardcode_libdir_flag_spec='-R$libdir'
9478 hardcode_shlibpath_var=no
9482 if test "$GCC" = yes; then
9483 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'
9485 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'
9487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488 hardcode_libdir_separator=:
9491 # hardcode_minus_L: Not really in the search PATH,
9492 # but as the default location of the library.
9493 hardcode_minus_L=yes
9494 export_dynamic_flag_spec='${wl}-E'
9498 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9501 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9517 if test "$with_gnu_ld" = no; then
9520 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521 hardcode_libdir_flag_spec_ld='+b $libdir'
9522 hardcode_libdir_separator=:
9524 hardcode_shlibpath_var=no
9527 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_shlibpath_var=no
9531 # hardcode_minus_L: Not really in the search PATH,
9532 # but as the default location of the library.
9533 hardcode_minus_L=yes
9536 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537 hardcode_libdir_separator=:
9539 export_dynamic_flag_spec='${wl}-E'
9541 # hardcode_minus_L: Not really in the search PATH,
9542 # but as the default location of the library.
9543 hardcode_minus_L=yes
9549 irix5* | irix6* | nonstopux*)
9550 if test "$GCC" = yes; then
9551 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'
9553 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'
9554 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 hardcode_libdir_separator=:
9558 link_all_deplibs=yes
9562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9567 hardcode_libdir_flag_spec='-R$libdir'
9569 hardcode_shlibpath_var=no
9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 hardcode_libdir_separator=:
9577 hardcode_shlibpath_var=no
9582 hardcode_shlibpath_var=no
9583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587 export_dynamic_flag_spec='${wl}-E'
9590 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_libdir_flag_spec='-R$libdir'
9595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_minus_L=yes
9605 allow_undefined_flag=unsupported
9606 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'
9607 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9611 if test "$GCC" = yes; then
9612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9613 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'
9615 allow_undefined_flag=' -expect_unresolved \*'
9616 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'
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 hardcode_libdir_separator=:
9622 osf4* | osf5*) # as osf3* with the addition of -msym flag
9623 if test "$GCC" = yes; then
9624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625 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'
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628 allow_undefined_flag=' -expect_unresolved \*'
9629 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'
9630 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9631 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9633 # Both c and cxx compiler support -rpath directly
9634 hardcode_libdir_flag_spec='-rpath $libdir'
9636 hardcode_libdir_separator=:
9640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_shlibpath_var=no
9642 export_dynamic_flag_spec='${wl}-Bexport'
9643 runpath_var=LD_RUN_PATH
9644 hardcode_runpath_var=yes
9648 no_undefined_flag=' -z text'
9649 if test "$GCC" = yes; then
9651 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9653 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9656 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9660 hardcode_libdir_flag_spec='-R$libdir'
9661 hardcode_shlibpath_var=no
9663 solaris2.[0-5] | solaris2.[0-5].*) ;;
9665 # The compiler driver will combine linker options so we
9666 # cannot just pass the convience library names through
9667 # without $wl, iff we do not link with $LD.
9668 # Luckily, gcc supports the same syntax we need for Sun Studio.
9669 # Supported since Solaris 2.6 (maybe 2.5.1?)
9672 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9674 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9677 link_all_deplibs=yes
9681 if test "x$host_vendor" = xsequent; then
9682 # Use $CC to link under sequent, because it throws in some extra .o
9683 # files that make .init and .fini sections work.
9684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_minus_L=yes
9691 hardcode_shlibpath_var=no
9695 case $host_vendor in
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_direct=yes # is this really true???
9701 ## LD is ld it makes a PLAMLIB
9702 ## CC just makes a GrossModule.
9703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704 reload_cmds='$CC -r -o $output$reload_objs'
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9712 runpath_var='LD_RUN_PATH'
9713 hardcode_shlibpath_var=no
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_shlibpath_var=no
9719 export_dynamic_flag_spec='-Bexport'
9723 if test -d /usr/nec; then
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_shlibpath_var=no
9726 runpath_var=LD_RUN_PATH
9727 hardcode_runpath_var=yes
9733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_shlibpath_var=no
9737 hardcode_runpath_var=yes
9738 runpath_var=LD_RUN_PATH
9741 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9742 no_undefined_flag='${wl}-z ${wl}text'
9743 if test "$GCC" = yes; then
9744 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 runpath_var='LD_RUN_PATH'
9749 hardcode_shlibpath_var=no
9753 no_undefined_flag=' -z text'
9754 # $CC -shared without GNU ld will not create a library from C++
9755 # object files and a static libstdc++, better avoid it by now
9756 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9758 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9759 hardcode_libdir_flag_spec=
9760 hardcode_shlibpath_var=no
9761 runpath_var='LD_RUN_PATH'
9765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_shlibpath_var=no
9776 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9777 echo "${ECHO_T}$ld_shlibs" >&6
9778 test "$ld_shlibs" = no && can_build_shared=no
9780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9781 if test "$GCC" = yes; then
9782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9786 # Do we need to explicitly link libc?
9788 case "x$archive_cmds_need_lc" in
9790 # Assume -lc should be added
9791 archive_cmds_need_lc=yes
9793 if test "$enable_shared" = yes && test "$GCC" = yes; then
9794 case $archive_cmds in
9796 # FIXME: we may have to deal with multi-command sequences.
9799 # Test whether the compiler implicitly links with -lc since on some
9800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9801 # to ld, don't add -lc before -lgcc.
9802 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808 (eval $ac_compile) 2>&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } 2>conftest.err; then
9814 libobjs=conftest.$ac_objext
9816 wl=$lt_prog_compiler_wl
9822 lt_save_allow_undefined_flag=$allow_undefined_flag
9823 allow_undefined_flag=
9824 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9825 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }
9830 archive_cmds_need_lc=no
9832 archive_cmds_need_lc=yes
9834 allow_undefined_flag=$lt_save_allow_undefined_flag
9836 cat conftest.err 1>&5
9839 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9840 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9847 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9850 libname_spec='lib$name'
9858 shlibpath_overrides_runpath=unknown
9860 dynamic_linker="$host_os ld.so"
9861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862 if test "$GCC" = yes; then
9863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9864 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9865 # if the path contains ";" then we assume it to be the separator
9866 # otherwise default to the standard path separator (i.e. ":") - it is
9867 # assumed that no part of a normal pathname contains ";" but that should
9868 # okay in the real world where ";" in dirpaths is itself problematic.
9869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9876 need_lib_prefix=unknown
9877 hardcode_into_libs=no
9879 # when you set need_version to no, make sure it does not cause -set_version
9880 # flags to be left without arguments
9881 need_version=unknown
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9887 shlibpath_var=LIBPATH
9889 # AIX 3 has no versioning support, so we append a major version to the name.
9890 soname_spec='${libname}${release}${shared_ext}$major'
9897 hardcode_into_libs=yes
9898 if test "$host_cpu" = ia64; then
9899 # AIX 5 supports IA64
9900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9901 shlibpath_var=LD_LIBRARY_PATH
9903 # With GCC up to 2.95.x, collect2 would create an import file
9904 # for dependence libraries. The import file would start with
9905 # the line `#! .'. This would cause the generated library to
9906 # depend on `.', always an invalid library. This was fixed in
9907 # development snapshots of GCC prior to 3.0.
9909 aix4 | aix4.[01] | aix4.[01].*)
9910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9920 # soname into executable. Probably we can add versioning support to
9921 # collect2, so additional links can be useful in future.
9922 if test "$aix_use_runtimelinking" = yes; then
9923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9924 # instead of lib<name>.a to let people know that these are not
9925 # typical AIX shared libraries.
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 # We preserve .a as extension for shared libraries through AIX4.2
9929 # and later when we are not doing run time linking.
9930 library_names_spec='${libname}${release}.a $libname.a'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LIBPATH
9938 library_names_spec='$libname.ixlibrary $libname.a'
9939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9940 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'
9944 library_names_spec='${libname}${shared_ext}'
9945 dynamic_linker="$host_os ld.so"
9946 shlibpath_var=LIBRARY_PATH
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9958 # the default ld.so.conf also contains /usr/contrib/lib and
9959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9960 # libtool to hard-code these into programs
9963 cygwin* | mingw* | pw32*)
9964 version_type=windows
9969 case $GCC,$host_os in
9970 yes,cygwin* | yes,mingw* | yes,pw32*)
9971 library_names_spec='$libname.dll.a'
9972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9973 postinstall_cmds='base_file=`basename \${file}`~
9974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9975 dldir=$destdir/`dirname \$dlpath`~
9976 test -d \$dldir || mkdir -p \$dldir~
9977 $install_prog $dir/$dlname \$dldir/$dlname'
9978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9979 dlpath=$dir/\$dldll~
9981 shlibpath_overrides_runpath=yes
9985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9990 # MinGW DLLs use traditional 'lib' prefix
9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9993 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9994 # It is most probably a Windows format PATH printed by
9995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9996 # path with ; separators, and with drive letters. We can handle the
9997 # drive letters (cygwin fileutils understands them), so leave them,
9998 # especially as we might pass files found there to a mingw objdump,
9999 # which wouldn't understand a cygwinified path. Ahh.
10000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10006 # pw32 DLLs use 'pw' prefix rather than 'lib'
10007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10016 dynamic_linker='Win32 ld.exe'
10017 # FIXME: first we should search . and the directory the executable is in
10021 darwin* | rhapsody*)
10022 dynamic_linker="$host_os dyld"
10023 version_type=darwin
10026 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10027 soname_spec='${libname}${release}${major}$shared_ext'
10028 shlibpath_overrides_runpath=yes
10029 shlibpath_var=DYLD_LIBRARY_PATH
10030 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10031 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10032 if test "$GCC" = yes; then
10033 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"`
10035 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10037 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 shlibpath_var=LD_LIBRARY_PATH
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=no
10061 hardcode_into_libs=yes
10062 dynamic_linker='GNU ld.so'
10065 freebsd* | dragonfly*)
10066 # DragonFly does not have aout. When/if they implement a new
10067 # versioning mechanism, adjust this.
10068 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10069 version_type=freebsd-$objformat
10070 case $version_type in
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10081 shlibpath_var=LD_LIBRARY_PATH
10084 shlibpath_overrides_runpath=yes
10086 freebsd3.[01]* | freebsdelf3.[01]*)
10087 shlibpath_overrides_runpath=yes
10088 hardcode_into_libs=yes
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 hardcode_into_libs=yes
10107 hpux9* | hpux10* | hpux11*)
10108 # Give a soname corresponding to the major version so that dld.sl refuses to
10109 # link against other versions.
10113 case "$host_cpu" in
10116 hardcode_into_libs=yes
10117 dynamic_linker="$host_os dld.so"
10118 shlibpath_var=LD_LIBRARY_PATH
10119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 if test "X$HPUX_IA64_MODE" = X32; then
10123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10131 hardcode_into_libs=yes
10132 dynamic_linker="$host_os dld.sl"
10133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10142 dynamic_linker="$host_os dld.sl"
10143 shlibpath_var=SHLIB_PATH
10144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10149 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10150 postinstall_cmds='chmod 555 $lib'
10153 irix5* | irix6* | nonstopux*)
10155 nonstopux*) version_type=nonstopux ;;
10157 if test "$lt_cv_prog_gnu_ld" = yes; then
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10168 irix5* | nonstopux*)
10169 libsuff= shlibsuff=
10172 case $LD in # libtool.m4 will add one of these switches to LD
10173 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10174 libsuff= shlibsuff= libmagic=32-bit;;
10175 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10176 libsuff=32 shlibsuff=N32 libmagic=N32;;
10177 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10178 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10179 *) libsuff= shlibsuff= libmagic=never-match;;
10183 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10184 shlibpath_overrides_runpath=no
10185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10187 hardcode_into_libs=yes
10190 # No shared lib support for Linux oldld, aout, or coff.
10191 linux*oldld* | linux*aout* | linux*coff*)
10195 # This must be Linux ELF.
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=no
10205 # This implies no fast_install, which is unacceptable.
10206 # Some rework will be needed to allow for fast_install
10207 # before this can be enabled.
10208 hardcode_into_libs=yes
10210 # Append ld.so.conf contents to the search path
10211 if test -f /etc/ld.so.conf; then
10212 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10216 # We used to test for /lib/ld.so.1 and disable shared libraries on
10217 # powerpc, because MkLinux only supported shared libraries with the
10218 # GNU dynamic linker. Since this was broken with cross compilers,
10219 # most powerpc-linux boxes support dynamic linking these days and
10220 # people can always --disable-shared, the test was removed, and we
10221 # assume the GNU/Linux dynamic linker is in use.
10222 dynamic_linker='GNU/Linux ld.so'
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 shlibpath_var=LD_LIBRARY_PATH
10232 shlibpath_overrides_runpath=no
10233 hardcode_into_libs=yes
10234 dynamic_linker='GNU ld.so'
10241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10244 dynamic_linker='NetBSD (a.out) ld.so'
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 dynamic_linker='NetBSD ld.elf_so'
10250 shlibpath_var=LD_LIBRARY_PATH
10251 shlibpath_overrides_runpath=yes
10252 hardcode_into_libs=yes
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=yes
10275 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10277 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10278 *) need_version=no ;;
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10285 openbsd2.[89] | openbsd2.[89].*)
10286 shlibpath_overrides_runpath=no
10289 shlibpath_overrides_runpath=yes
10293 shlibpath_overrides_runpath=yes
10298 libname_spec='$name'
10301 library_names_spec='$libname${shared_ext} $libname.a'
10302 dynamic_linker='OS/2 ld.exe'
10303 shlibpath_var=LIBPATH
10306 osf3* | osf4* | osf5*)
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10314 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321 shlibpath_var=LD_LIBRARY_PATH
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes
10332 hardcode_into_libs=yes
10333 # ldd complains unless libraries are executable
10334 postinstall_cmds='chmod +x $lib'
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10340 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343 if test "$with_gnu_ld" = yes; then
10349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 case $host_vendor in
10356 shlibpath_overrides_runpath=no
10358 export_dynamic_flag_spec='${wl}-Blargedynsym'
10359 runpath_var=LD_RUN_PATH
10367 shlibpath_overrides_runpath=no
10368 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10374 if test -d /usr/nec ;then
10376 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10377 soname_spec='$libname${shared_ext}.$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 shlibpath_var=LD_LIBRARY_PATH
10393 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10394 echo "${ECHO_T}$dynamic_linker" >&6
10395 test "$dynamic_linker" = no && can_build_shared=no
10397 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10398 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10400 if test -n "$hardcode_libdir_flag_spec" || \
10401 test -n "$runpath_var" || \
10402 test "X$hardcode_automatic" = "Xyes" ; then
10404 # We can hardcode non-existant directories.
10405 if test "$hardcode_direct" != no &&
10406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10407 # have to relink, otherwise we might link with an installed library
10408 # when we should be linking with a yet-to-be-installed one
10409 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10410 test "$hardcode_minus_L" != no; then
10411 # Linking always hardcodes the temporary library directory.
10412 hardcode_action=relink
10414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10415 hardcode_action=immediate
10418 # We cannot hardcode anything, or else we can only hardcode existing
10420 hardcode_action=unsupported
10422 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10423 echo "${ECHO_T}$hardcode_action" >&6
10425 if test "$hardcode_action" = relink; then
10426 # Fast installation is not supported
10427 enable_fast_install=no
10428 elif test "$shlibpath_overrides_runpath" = yes ||
10429 test "$enable_shared" = no; then
10430 # Fast installation is not necessary
10431 enable_fast_install=needless
10436 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10437 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10438 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10439 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10440 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10441 echo "$as_me:$LINENO: result: yes" >&5
10442 echo "${ECHO_T}yes" >&6
10444 # FIXME - insert some real tests, host_os isn't really good enough
10447 if test -n "$STRIP" ; then
10448 striplib="$STRIP -x"
10449 echo "$as_me:$LINENO: result: yes" >&5
10450 echo "${ECHO_T}yes" >&6
10452 echo "$as_me:$LINENO: result: no" >&5
10453 echo "${ECHO_T}no" >&6
10457 echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6
10463 if test "x$enable_dlopen" != xyes; then
10464 enable_dlopen=unknown
10465 enable_dlopen_self=unknown
10466 enable_dlopen_self_static=unknown
10473 lt_cv_dlopen="load_add_on"
10475 lt_cv_dlopen_self=yes
10479 lt_cv_dlopen="LoadLibrary"
10484 lt_cv_dlopen="dlopen"
10489 # if libdl is installed we need to link against it
10490 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10491 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 ac_check_lib_save_LIBS=$LIBS
10497 cat >conftest.$ac_ext <<_ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10504 /* Override any gcc2 internal prototype to avoid an error. */
10508 /* We use char because int might match the return type of a gcc2
10509 builtin and then its argument prototype would still apply. */
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10521 (eval $ac_link) 2>conftest.er1
10523 grep -v '^ *+' conftest.er1 >conftest.err
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } &&
10528 { ac_try='test -z "$ac_c_werror_flag"
10529 || test ! -s conftest.err'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; } &&
10535 { ac_try='test -s conftest$ac_exeext'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_lib_dl_dlopen=yes
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 ac_cv_lib_dl_dlopen=no
10548 rm -f conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550 LIBS=$ac_check_lib_save_LIBS
10552 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10553 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10554 if test $ac_cv_lib_dl_dlopen = yes; then
10555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10558 lt_cv_dlopen="dyld"
10560 lt_cv_dlopen_self=yes
10567 echo "$as_me:$LINENO: checking for shl_load" >&5
10568 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10569 if test "${ac_cv_func_shl_load+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 cat >conftest.$ac_ext <<_ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10580 #define shl_load innocuous_shl_load
10582 /* System header to define __stub macros and hopefully few prototypes,
10583 which can conflict with char shl_load (); below.
10584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10585 <limits.h> exists even on freestanding compilers. */
10588 # include <limits.h>
10590 # include <assert.h>
10595 /* Override any gcc2 internal prototype to avoid an error. */
10600 /* We use char because int might match the return type of a gcc2
10601 builtin and then its argument prototype would still apply. */
10603 /* The GNU C library defines this for functions which it implements
10604 to always fail with ENOSYS. Some functions are actually named
10605 something starting with __ and the normal name is an alias. */
10606 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10609 char (*f) () = shl_load;
10618 return f != shl_load;
10623 rm -f conftest.$ac_objext conftest$ac_exeext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -z "$ac_c_werror_flag"
10633 || test ! -s conftest.err'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; } &&
10639 { ac_try='test -s conftest$ac_exeext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 ac_cv_func_shl_load=yes
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 ac_cv_func_shl_load=no
10652 rm -f conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10655 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10656 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10657 if test $ac_cv_func_shl_load = yes; then
10658 lt_cv_dlopen="shl_load"
10660 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10661 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10662 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 ac_check_lib_save_LIBS=$LIBS
10667 cat >conftest.$ac_ext <<_ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10674 /* Override any gcc2 internal prototype to avoid an error. */
10678 /* We use char because int might match the return type of a gcc2
10679 builtin and then its argument prototype would still apply. */
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691 (eval $ac_link) 2>conftest.er1
10693 grep -v '^ *+' conftest.er1 >conftest.err
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } &&
10698 { ac_try='test -z "$ac_c_werror_flag"
10699 || test ! -s conftest.err'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_lib_dld_shl_load=yes
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_cv_lib_dld_shl_load=no
10718 rm -f conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10722 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10723 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10724 if test $ac_cv_lib_dld_shl_load = yes; then
10725 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10727 echo "$as_me:$LINENO: checking for dlopen" >&5
10728 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10729 if test "${ac_cv_func_dlopen+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10740 #define dlopen innocuous_dlopen
10742 /* System header to define __stub macros and hopefully few prototypes,
10743 which can conflict with char dlopen (); below.
10744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10745 <limits.h> exists even on freestanding compilers. */
10748 # include <limits.h>
10750 # include <assert.h>
10755 /* Override any gcc2 internal prototype to avoid an error. */
10760 /* We use char because int might match the return type of a gcc2
10761 builtin and then its argument prototype would still apply. */
10763 /* The GNU C library defines this for functions which it implements
10764 to always fail with ENOSYS. Some functions are actually named
10765 something starting with __ and the normal name is an alias. */
10766 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10769 char (*f) () = dlopen;
10778 return f != dlopen;
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try='test -z "$ac_c_werror_flag"
10793 || test ! -s conftest.err'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest$ac_exeext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_func_dlopen=yes
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10810 ac_cv_func_dlopen=no
10812 rm -f conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10815 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10816 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10817 if test $ac_cv_func_dlopen = yes; then
10818 lt_cv_dlopen="dlopen"
10820 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10821 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10822 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 ac_check_lib_save_LIBS=$LIBS
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10834 /* Override any gcc2 internal prototype to avoid an error. */
10838 /* We use char because int might match the return type of a gcc2
10839 builtin and then its argument prototype would still apply. */
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851 (eval $ac_link) 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -z "$ac_c_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_lib_dl_dlopen=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 ac_cv_lib_dl_dlopen=no
10878 rm -f conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_lib_save_LIBS
10882 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10883 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10884 if test $ac_cv_lib_dl_dlopen = yes; then
10885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10887 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10888 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10889 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-lsvld $LIBS"
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10901 /* Override any gcc2 internal prototype to avoid an error. */
10905 /* We use char because int might match the return type of a gcc2
10906 builtin and then its argument prototype would still apply. */
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10918 (eval $ac_link) 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_c_werror_flag"
10926 || test ! -s conftest.err'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 ac_cv_lib_svld_dlopen=yes
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ac_cv_lib_svld_dlopen=no
10945 rm -f conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10949 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10950 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10951 if test $ac_cv_lib_svld_dlopen = yes; then
10952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10954 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10955 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10956 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 ac_check_lib_save_LIBS=$LIBS
10961 cat >conftest.$ac_ext <<_ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10968 /* Override any gcc2 internal prototype to avoid an error. */
10972 /* We use char because int might match the return type of a gcc2
10973 builtin and then its argument prototype would still apply. */
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10985 (eval $ac_link) 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -z "$ac_c_werror_flag"
10993 || test ! -s conftest.err'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest$ac_exeext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_cv_lib_dld_dld_link=yes
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 ac_cv_lib_dld_dld_link=no
11012 rm -f conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11016 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11017 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11018 if test $ac_cv_lib_dld_dld_link = yes; then
11019 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11040 if test "x$lt_cv_dlopen" != xno; then
11046 case $lt_cv_dlopen in
11048 save_CPPFLAGS="$CPPFLAGS"
11049 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11051 save_LDFLAGS="$LDFLAGS"
11052 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11055 LIBS="$lt_cv_dlopen_libs $LIBS"
11057 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11058 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11059 if test "${lt_cv_dlopen_self+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 if test "$cross_compiling" = yes; then :
11063 lt_cv_dlopen_self=cross
11065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11066 lt_status=$lt_dlunknown
11067 cat > conftest.$ac_ext <<EOF
11068 #line 11068 "configure"
11069 #include "confdefs.h"
11078 # define LT_DLGLOBAL RTLD_GLOBAL
11081 # define LT_DLGLOBAL DL_GLOBAL
11083 # define LT_DLGLOBAL 0
11087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11088 find out it does not work in some platform. */
11089 #ifndef LT_DLLAZY_OR_NOW
11091 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11094 # define LT_DLLAZY_OR_NOW DL_LAZY
11097 # define LT_DLLAZY_OR_NOW RTLD_NOW
11100 # define LT_DLLAZY_OR_NOW DL_NOW
11102 # define LT_DLLAZY_OR_NOW 0
11110 extern "C" void exit (int);
11113 void fnord() { int i=42;}
11116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11117 int status = $lt_dlunknown;
11121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11122 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11123 /* dlclose (self); */
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130 (eval $ac_link) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11134 (./conftest; exit; ) 2>/dev/null
11136 case x$lt_status in
11137 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11138 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11139 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11142 # compilation failed
11143 lt_cv_dlopen_self=no
11150 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11151 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11153 if test "x$lt_cv_dlopen_self" = xyes; then
11154 LDFLAGS="$LDFLAGS $link_static_flag"
11155 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11156 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11157 if test "${lt_cv_dlopen_self_static+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 if test "$cross_compiling" = yes; then :
11161 lt_cv_dlopen_self_static=cross
11163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11164 lt_status=$lt_dlunknown
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11166 "configure"
11167 #include "confdefs.h"
11176 # define LT_DLGLOBAL RTLD_GLOBAL
11179 # define LT_DLGLOBAL DL_GLOBAL
11181 # define LT_DLGLOBAL 0
11185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11186 find out it does not work in some platform. */
11187 #ifndef LT_DLLAZY_OR_NOW
11189 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11192 # define LT_DLLAZY_OR_NOW DL_LAZY
11195 # define LT_DLLAZY_OR_NOW RTLD_NOW
11198 # define LT_DLLAZY_OR_NOW DL_NOW
11200 # define LT_DLLAZY_OR_NOW 0
11208 extern "C" void exit (int);
11211 void fnord() { int i=42;}
11214 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11215 int status = $lt_dlunknown;
11219 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11220 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221 /* dlclose (self); */
11227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11228 (eval $ac_link) 2>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11232 (./conftest; exit; ) 2>/dev/null
11234 case x$lt_status in
11235 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11236 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11237 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11240 # compilation failed
11241 lt_cv_dlopen_self_static=no
11248 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11249 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11252 CPPFLAGS="$save_CPPFLAGS"
11253 LDFLAGS="$save_LDFLAGS"
11258 case $lt_cv_dlopen_self in
11259 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11260 *) enable_dlopen_self=unknown ;;
11263 case $lt_cv_dlopen_self_static in
11264 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11265 *) enable_dlopen_self_static=unknown ;;
11270 # Report which librarie types wil actually be built
11271 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11272 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11273 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11274 echo "${ECHO_T}$can_build_shared" >&6
11276 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11277 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11278 test "$can_build_shared" = "no" && enable_shared=no
11280 # On AIX, shared libraries and static libraries use the same namespace, and
11281 # are all built from PIC.
11284 test "$enable_shared" = yes && enable_static=no
11285 if test -n "$RANLIB"; then
11286 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11287 postinstall_cmds='$RANLIB $lib'
11292 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11293 test "$enable_shared" = yes && enable_static=no
11297 echo "$as_me:$LINENO: result: $enable_shared" >&5
11298 echo "${ECHO_T}$enable_shared" >&6
11300 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11301 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11302 # Make sure either enable_shared or enable_static is yes.
11303 test "$enable_shared" = yes || enable_static=yes
11304 echo "$as_me:$LINENO: result: $enable_static" >&5
11305 echo "${ECHO_T}$enable_static" >&6
11307 # The else clause should only fire when bootstrapping the
11308 # libtool distribution, otherwise you forgot to ship ltmain.sh
11309 # with your package, and you will get complaints that there are
11310 # no rules to generate ltmain.sh.
11311 if test -f "$ltmain"; then
11312 # See if we are running on zsh, and set the options which allow our commands through
11313 # without removal of \ escapes.
11314 if test -n "${ZSH_VERSION+set}" ; then
11315 setopt NO_GLOB_SUBST
11317 # Now quote all the things that may contain metacharacters while being
11318 # careful not to overquote the AC_SUBSTed values. We take copies of the
11319 # variables and quote the copies for generation of the libtool script.
11320 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11322 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11323 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11324 deplibs_check_method reload_flag reload_cmds need_locks \
11325 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11326 lt_cv_sys_global_symbol_to_c_name_address \
11327 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11328 old_postinstall_cmds old_postuninstall_cmds \
11332 lt_prog_compiler_wl \
11333 lt_prog_compiler_pic \
11334 lt_prog_compiler_static \
11335 lt_prog_compiler_no_builtin_flag \
11336 export_dynamic_flag_spec \
11337 thread_safe_flag_spec \
11338 whole_archive_flag_spec \
11339 enable_shared_with_static_runtimes \
11341 old_archive_from_new_cmds \
11346 compiler_lib_search_path \
11348 archive_expsym_cmds \
11350 postuninstall_cmds \
11351 old_archive_from_expsyms_cmds \
11352 allow_undefined_flag \
11353 no_undefined_flag \
11354 export_symbols_cmds \
11355 hardcode_libdir_flag_spec \
11356 hardcode_libdir_flag_spec_ld \
11357 hardcode_libdir_separator \
11358 hardcode_automatic \
11360 module_expsym_cmds \
11361 lt_cv_prog_compiler_c_o \
11363 include_expsyms; do
11366 old_archive_cmds | \
11367 old_archive_from_new_cmds | \
11369 archive_expsym_cmds | \
11371 module_expsym_cmds | \
11372 old_archive_from_expsyms_cmds | \
11373 export_symbols_cmds | \
11374 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11375 postinstall_cmds | postuninstall_cmds | \
11376 old_postinstall_cmds | old_postuninstall_cmds | \
11377 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11378 # Double-quote double-evaled strings.
11379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11388 *'\$0 --fallback-echo"')
11389 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11393 cfgfile="${ofile}T"
11394 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11396 { echo "$as_me:$LINENO: creating $ofile" >&5
11397 echo "$as_me: creating $ofile" >&6;}
11399 cat <<__EOF__ >> "$cfgfile"
11402 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11403 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11404 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11406 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11407 # Free Software Foundation, Inc.
11409 # This file is part of GNU Libtool:
11410 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11412 # This program is free software; you can redistribute it and/or modify
11413 # it under the terms of the GNU General Public License as published by
11414 # the Free Software Foundation; either version 2 of the License, or
11415 # (at your option) any later version.
11417 # This program is distributed in the hope that it will be useful, but
11418 # WITHOUT ANY WARRANTY; without even the implied warranty of
11419 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11420 # General Public License for more details.
11422 # You should have received a copy of the GNU General Public License
11423 # along with this program; if not, write to the Free Software
11424 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11426 # As a special exception to the GNU General Public License, if you
11427 # distribute this file as part of a program that contains a
11428 # configuration script generated by Autoconf, you may include it under
11429 # the same distribution terms that you use for the rest of that program.
11431 # A sed program that does not truncate output.
11434 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11435 Xsed="$SED -e 1s/^X//"
11437 # The HP-UX ksh and POSIX shell print the target directory to stdout
11438 # if CDPATH is set.
11439 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11441 # The names of the tagged configurations supported by this script.
11444 # ### BEGIN LIBTOOL CONFIG
11446 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11448 # Shell to use when invoking shell scripts.
11451 # Whether or not to build shared libraries.
11452 build_libtool_libs=$enable_shared
11454 # Whether or not to build static libraries.
11455 build_old_libs=$enable_static
11457 # Whether or not to add -lc for building shared libraries.
11458 build_libtool_need_lc=$archive_cmds_need_lc
11460 # Whether or not to disallow shared libs when runtime libs are static
11461 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11463 # Whether or not to optimize for fast installation.
11464 fast_install=$enable_fast_install
11467 host_alias=$host_alias
11471 # The build system.
11472 build_alias=$build_alias
11476 # An echo program that does not interpret backslashes.
11481 AR_FLAGS=$lt_AR_FLAGS
11486 # A language-specific compiler.
11489 # Is the compiler the GNU C compiler?
11495 # The linker used to build libraries.
11498 # Whether we need hard or soft links.
11501 # A BSD-compatible nm program.
11504 # A symbol stripping program
11507 # Used to examine libraries when file_magic_cmd begins "file"
11508 MAGIC_CMD=$MAGIC_CMD
11510 # Used on cygwin: DLL creation program.
11513 # Used on cygwin: object dumper.
11516 # Used on cygwin: assembler.
11519 # The name of the directory that contains temporary libtool files.
11522 # How to create reloadable object files.
11523 reload_flag=$lt_reload_flag
11524 reload_cmds=$lt_reload_cmds
11526 # How to pass a linker flag through the compiler.
11527 wl=$lt_lt_prog_compiler_wl
11529 # Object file suffix (normally "o").
11530 objext="$ac_objext"
11532 # Old archive suffix (normally "a").
11535 # Shared library suffix (normally ".so").
11536 shrext_cmds='$shrext_cmds'
11538 # Executable file suffix (normally "").
11541 # Additional compiler flags for building library objects.
11542 pic_flag=$lt_lt_prog_compiler_pic
11545 # What is the maximum length of a command?
11546 max_cmd_len=$lt_cv_sys_max_cmd_len
11548 # Does compiler simultaneously support -c and -o options?
11549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11551 # Must we lock files when doing compilation?
11552 need_locks=$lt_need_locks
11554 # Do we need the lib prefix for modules?
11555 need_lib_prefix=$need_lib_prefix
11557 # Do we need a version for libraries?
11558 need_version=$need_version
11560 # Whether dlopen is supported.
11561 dlopen_support=$enable_dlopen
11563 # Whether dlopen of programs is supported.
11564 dlopen_self=$enable_dlopen_self
11566 # Whether dlopen of statically linked programs is supported.
11567 dlopen_self_static=$enable_dlopen_self_static
11569 # Compiler flag to prevent dynamic linking.
11570 link_static_flag=$lt_lt_prog_compiler_static
11572 # Compiler flag to turn off builtin functions.
11573 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11575 # Compiler flag to allow reflexive dlopens.
11576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11578 # Compiler flag to generate shared objects directly from archives.
11579 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11581 # Compiler flag to generate thread-safe objects.
11582 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11584 # Library versioning type.
11585 version_type=$version_type
11587 # Format of library name prefix.
11588 libname_spec=$lt_libname_spec
11590 # List of archive names. First name is the real one, the rest are links.
11591 # The last name is the one that the linker finds with -lNAME.
11592 library_names_spec=$lt_library_names_spec
11594 # The coded name of the library, if different from the real name.
11595 soname_spec=$lt_soname_spec
11597 # Commands used to build and install an old-style archive.
11599 old_archive_cmds=$lt_old_archive_cmds
11600 old_postinstall_cmds=$lt_old_postinstall_cmds
11601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11603 # Create an old-style archive from a shared archive.
11604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11606 # Create a temporary old-style archive to link instead of a shared archive.
11607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11609 # Commands used to build and install a shared archive.
11610 archive_cmds=$lt_archive_cmds
11611 archive_expsym_cmds=$lt_archive_expsym_cmds
11612 postinstall_cmds=$lt_postinstall_cmds
11613 postuninstall_cmds=$lt_postuninstall_cmds
11615 # Commands used to build a loadable module (assumed same as above if empty)
11616 module_cmds=$lt_module_cmds
11617 module_expsym_cmds=$lt_module_expsym_cmds
11619 # Commands to strip libraries.
11620 old_striplib=$lt_old_striplib
11621 striplib=$lt_striplib
11623 # Dependencies to place before the objects being linked to create a
11625 predep_objects=$lt_predep_objects
11627 # Dependencies to place after the objects being linked to create a
11629 postdep_objects=$lt_postdep_objects
11631 # Dependencies to place before the objects being linked to create a
11633 predeps=$lt_predeps
11635 # Dependencies to place after the objects being linked to create a
11637 postdeps=$lt_postdeps
11639 # The library search path used internally by the compiler when linking
11640 # a shared library.
11641 compiler_lib_search_path=$lt_compiler_lib_search_path
11643 # Method to check whether dependent libraries are shared objects.
11644 deplibs_check_method=$lt_deplibs_check_method
11646 # Command to use when deplibs_check_method == file_magic.
11647 file_magic_cmd=$lt_file_magic_cmd
11649 # Flag that allows shared libraries with undefined symbols to be built.
11650 allow_undefined_flag=$lt_allow_undefined_flag
11652 # Flag that forces no undefined symbols.
11653 no_undefined_flag=$lt_no_undefined_flag
11655 # Commands used to finish a libtool library installation in a directory.
11656 finish_cmds=$lt_finish_cmds
11658 # Same as above, but a single script fragment to be evaled but not shown.
11659 finish_eval=$lt_finish_eval
11661 # Take the output of nm and produce a listing of raw symbols and C names.
11662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11664 # Transform the output of nm in a proper C declaration
11665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11667 # Transform the output of nm in a C name address pair
11668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11670 # This is the shared library runtime path variable.
11671 runpath_var=$runpath_var
11673 # This is the shared library path variable.
11674 shlibpath_var=$shlibpath_var
11676 # Is shlibpath searched before the hard-coded library search path?
11677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11679 # How to hardcode a shared library path into an executable.
11680 hardcode_action=$hardcode_action
11682 # Whether we should hardcode library paths into libraries.
11683 hardcode_into_libs=$hardcode_into_libs
11685 # Flag to hardcode \$libdir into a binary during linking.
11686 # This must work even if \$libdir does not exist.
11687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11689 # If ld is used when linking, flag to hardcode \$libdir into
11690 # a binary during linking. This must work even if \$libdir does
11692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11694 # Whether we need a single -rpath flag with a separated argument.
11695 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11698 # resulting binary.
11699 hardcode_direct=$hardcode_direct
11701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11702 # resulting binary.
11703 hardcode_minus_L=$hardcode_minus_L
11705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11706 # the resulting binary.
11707 hardcode_shlibpath_var=$hardcode_shlibpath_var
11709 # Set to yes if building a shared library automatically hardcodes DIR into the library
11710 # and all subsequent libraries and executables linked against it.
11711 hardcode_automatic=$hardcode_automatic
11713 # Variables whose values should be saved in libtool wrapper scripts and
11714 # restored at relink time.
11715 variables_saved_for_relink="$variables_saved_for_relink"
11717 # Whether libtool must link a program against all its dependency libraries.
11718 link_all_deplibs=$link_all_deplibs
11720 # Compile-time system search path for libraries
11721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11723 # Run-time system search path for libraries
11724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11726 # Fix the shell variable \$srcfile for the compiler.
11727 fix_srcfile_path="$fix_srcfile_path"
11729 # Set to yes if exported symbols are required.
11730 always_export_symbols=$always_export_symbols
11732 # The commands to list exported symbols.
11733 export_symbols_cmds=$lt_export_symbols_cmds
11735 # The commands to extract the exported symbol list from a shared archive.
11736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11738 # Symbols that should not be listed in the preloaded symbols.
11739 exclude_expsyms=$lt_exclude_expsyms
11741 # Symbols that must always be exported.
11742 include_expsyms=$lt_include_expsyms
11744 # ### END LIBTOOL CONFIG
11751 cat <<\EOF >> "$cfgfile"
11753 # AIX sometimes has problems with the GCC collect2 program. For some
11754 # reason, if we set the COLLECT_NAMES environment variable, the problems
11755 # vanish in a puff of smoke.
11756 if test "X${COLLECT_NAMES+set}" != Xset; then
11758 export COLLECT_NAMES
11764 # We use sed instead of cat because bash on DJGPP gets confused if
11765 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11766 # text mode, it properly converts lines to CR/LF. This bash problem
11767 # is reportedly fixed, but why not run on old versions too?
11768 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11770 mv -f "$cfgfile" "$ofile" || \
11771 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11775 # If there is no Makefile yet, we rely on a make rule to execute
11776 # `config.status --recheck' to rerun these tests and create the
11777 # libtool script then.
11778 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11779 if test -f "$ltmain_in"; then
11780 test -f Makefile && make "$ltmain"
11786 ac_cpp='$CPP $CPPFLAGS'
11787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11794 # Check whether --with-tags or --without-tags was given.
11795 if test "${with_tags+set}" = set; then
11796 withval="$with_tags"
11797 tagnames="$withval"
11800 if test -f "$ltmain" && test -n "$tagnames"; then
11801 if test ! -f "${ofile}"; then
11802 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11803 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11806 if test -z "$LTCC"; then
11807 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11808 if test -z "$LTCC"; then
11809 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11810 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11813 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11817 # Extract list of available tagged configurations in $ofile.
11818 # Note that this assumes the entire list is on one line.
11819 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11821 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11822 for tagname in $tagnames; do
11824 # Check whether tagname contains only valid characters
11825 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11827 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11828 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11829 { (exit 1); exit 1; }; }
11833 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11835 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11836 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11837 { (exit 1); exit 1; }; }
11840 # Update the list of available tags.
11841 if test -n "$tagname"; then
11842 echo appending configuration tag \"$tagname\" to $ofile
11846 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11847 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11848 (test "X$CXX" != "Xg++"))) ; then
11850 ac_cpp='$CXXCPP $CPPFLAGS'
11851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11858 archive_cmds_need_lc_CXX=no
11859 allow_undefined_flag_CXX=
11860 always_export_symbols_CXX=no
11861 archive_expsym_cmds_CXX=
11862 export_dynamic_flag_spec_CXX=
11863 hardcode_direct_CXX=no
11864 hardcode_libdir_flag_spec_CXX=
11865 hardcode_libdir_flag_spec_ld_CXX=
11866 hardcode_libdir_separator_CXX=
11867 hardcode_minus_L_CXX=no
11868 hardcode_automatic_CXX=no
11870 module_expsym_cmds_CXX=
11871 link_all_deplibs_CXX=unknown
11872 old_archive_cmds_CXX=$old_archive_cmds
11873 no_undefined_flag_CXX=
11874 whole_archive_flag_spec_CXX=
11875 enable_shared_with_static_runtimes_CXX=no
11877 # Dependencies to place before and after the object being linked:
11878 predep_objects_CXX=
11879 postdep_objects_CXX=
11882 compiler_lib_search_path_CXX=
11884 # Source file extension for C++ test sources.
11887 # Object file extension for compiled C++ test sources.
11891 # Code to be used in simple compile tests
11892 lt_simple_compile_test_code="int some_variable = 0;\n"
11894 # Code to be used in simple link tests
11895 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11899 # If no C compiler was specified, use CC.
11902 # Allow CC to be a program name with arguments.
11906 # save warnings/boilerplate of simple test code
11907 ac_outfile=conftest.$ac_objext
11908 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11910 _lt_compiler_boilerplate=`cat conftest.err`
11913 ac_outfile=conftest.$ac_objext
11914 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11916 _lt_linker_boilerplate=`cat conftest.err`
11920 # Allow CC to be a program name with arguments.
11925 lt_save_with_gnu_ld=$with_gnu_ld
11926 lt_save_path_LD=$lt_cv_path_LD
11927 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11928 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11930 unset lt_cv_prog_gnu_ld
11932 if test -n "${lt_cv_path_LDCXX+set}"; then
11933 lt_cv_path_LD=$lt_cv_path_LDCXX
11935 unset lt_cv_path_LD
11937 test -z "${LDCXX+set}" || LD=$LDCXX
11941 for cc_temp in $compiler""; do
11943 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11944 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11949 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11952 # We don't want -fno-exception wen compiling C++ code, so set the
11953 # no_builtin_flag separately
11954 if test "$GXX" = yes; then
11955 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11957 lt_prog_compiler_no_builtin_flag_CXX=
11960 if test "$GXX" = yes; then
11961 # Set up default GNU C++ configuration
11964 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11965 if test "${with_gnu_ld+set}" = set; then
11966 withval="$with_gnu_ld"
11967 test "$withval" = no || with_gnu_ld=yes
11972 if test "$GCC" = yes; then
11973 # Check if gcc -print-prog-name=ld gives a path.
11974 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11975 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11978 # gcc leaves a trailing carriage return which upsets mingw
11979 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11981 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11984 # Accept absolute paths.
11986 re_direlt='/[^/][^/]*/\.\./'
11987 # Canonicalize the pathname of ld
11988 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11989 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11990 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11992 test -z "$LD" && LD="$ac_prog"
11995 # If it fails, then pretend we aren't using GCC.
11999 # If it is relative, then search for the first ld in PATH.
12000 with_gnu_ld=unknown
12003 elif test "$with_gnu_ld" = yes; then
12004 echo "$as_me:$LINENO: checking for GNU ld" >&5
12005 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12007 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12008 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12010 if test "${lt_cv_path_LD+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 if test -z "$LD"; then
12014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12015 for ac_dir in $PATH; do
12017 test -z "$ac_dir" && ac_dir=.
12018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12019 lt_cv_path_LD="$ac_dir/$ac_prog"
12020 # Check to see if the program is GNU ld. I'd rather use --version,
12021 # but apparently some GNU ld's only accept -v.
12022 # Break only if it was the GNU/non-GNU ld that we prefer.
12023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12024 *GNU* | *'with BFD'*)
12025 test "$with_gnu_ld" != no && break
12028 test "$with_gnu_ld" != yes && break
12035 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12039 LD="$lt_cv_path_LD"
12040 if test -n "$LD"; then
12041 echo "$as_me:$LINENO: result: $LD" >&5
12042 echo "${ECHO_T}$LD" >&6
12044 echo "$as_me:$LINENO: result: no" >&5
12045 echo "${ECHO_T}no" >&6
12047 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12048 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12049 { (exit 1); exit 1; }; }
12050 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12051 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12052 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12056 case `$LD -v 2>&1 </dev/null` in
12057 *GNU* | *'with BFD'*)
12058 lt_cv_prog_gnu_ld=yes
12061 lt_cv_prog_gnu_ld=no
12065 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12066 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12067 with_gnu_ld=$lt_cv_prog_gnu_ld
12071 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12072 # archiving commands below assume that GNU ld is being used.
12073 if test "$with_gnu_ld" = yes; then
12074 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075 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'
12077 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12080 # If archive_cmds runs LD, not CC, wlarc should be empty
12081 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12082 # investigate it a little bit more. (MM)
12085 # ancient GNU ld didn't support --whole-archive et. al.
12086 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12087 grep 'no-whole-archive' > /dev/null; then
12088 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12090 whole_archive_flag_spec_CXX=
12096 # A generic and very simple default shared library creation
12097 # command for GNU C++ for the case where it uses the native
12098 # linker, instead of GNU ld. If possible, this setting should
12099 # overridden to take advantage of the native linker features on
12100 # the platform it is being used on.
12101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12104 # Commands to make compiler produce verbose output that lists
12105 # what "hidden" libraries, object files and flags are used when
12106 # linking a shared library.
12107 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12115 # PORTME: fill in a description of your system's C++ link characteristics
12116 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12121 # FIXME: insert proper C++ library support
12125 if test "$host_cpu" = ia64; then
12126 # On IA64, the linker does run time linking by default, so we don't
12127 # have to do anything special.
12128 aix_use_runtimelinking=no
12129 exp_sym_flag='-Bexport'
12132 aix_use_runtimelinking=no
12134 # Test if we are trying to use run time linking or normal
12135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12136 # need to do runtime linking.
12137 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12138 for ld_flag in $LDFLAGS; do
12141 aix_use_runtimelinking=yes
12148 exp_sym_flag='-bexport'
12149 no_entry_flag='-bnoentry'
12152 # When large executables or shared objects are built, AIX ld can
12153 # have problems creating the table of contents. If linking a library
12154 # or program results in "error TOC overflow" add -mminimal-toc to
12155 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12156 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12158 archive_cmds_CXX=''
12159 hardcode_direct_CXX=yes
12160 hardcode_libdir_separator_CXX=':'
12161 link_all_deplibs_CXX=yes
12163 if test "$GXX" = yes; then
12164 case $host_os in aix4.[012]|aix4.[012].*)
12165 # We only want to do this on AIX 4.2 and lower, the check
12166 # below for broken collect2 doesn't work under 4.3+
12167 collect2name=`${CC} -print-prog-name=collect2`
12168 if test -f "$collect2name" && \
12169 strings "$collect2name" | grep resolve_lib_name >/dev/null
12171 # We have reworked collect2
12172 hardcode_direct_CXX=yes
12174 # We have old collect2
12175 hardcode_direct_CXX=unsupported
12176 # It fails to find uninstalled libraries when the uninstalled
12177 # path is not listed in the libpath. Setting hardcode_minus_L
12178 # to unsupported forces relinking
12179 hardcode_minus_L_CXX=yes
12180 hardcode_libdir_flag_spec_CXX='-L$libdir'
12181 hardcode_libdir_separator_CXX=
12184 shared_flag='-shared'
12185 if test "$aix_use_runtimelinking" = yes; then
12186 shared_flag="$shared_flag "'${wl}-G'
12190 if test "$host_cpu" = ia64; then
12191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12192 # chokes on -Wl,-G. The following line is correct:
12195 if test "$aix_use_runtimelinking" = yes; then
12196 shared_flag='${wl}-G'
12198 shared_flag='${wl}-bM:SRE'
12203 # It seems that -bexpall does not export symbols beginning with
12204 # underscore (_), so it is better to generate a list of symbols to export.
12205 always_export_symbols_CXX=yes
12206 if test "$aix_use_runtimelinking" = yes; then
12207 # Warning - without using the other runtime loading flags (-brtl),
12208 # -berok will link without error, but may produce a broken library.
12209 allow_undefined_flag_CXX='-berok'
12210 # Determine the default libpath from the value encoded in an empty executable.
12211 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228 (eval $ac_link) 2>conftest.er1
12230 grep -v '^ *+' conftest.er1 >conftest.err
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -z "$ac_cxx_werror_flag"
12236 || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12251 # Check for a 64-bit object if we didn't find anything.
12252 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; }
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12259 rm -f conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12263 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12265 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"
12267 if test "$host_cpu" = ia64; then
12268 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12269 allow_undefined_flag_CXX="-z nodefs"
12270 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"
12272 # Determine the default libpath from the value encoded in an empty executable.
12273 cat >conftest.$ac_ext <<_ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290 (eval $ac_link) 2>conftest.er1
12292 grep -v '^ *+' conftest.er1 >conftest.err
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_cxx_werror_flag"
12298 || test ! -s conftest.err'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest$ac_exeext'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12311 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12313 # Check for a 64-bit object if we didn't find anything.
12314 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; }
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12321 rm -f conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12325 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12326 # Warning - without using the other run time loading flags,
12327 # -berok will link without error, but may produce a broken library.
12328 no_undefined_flag_CXX=' ${wl}-bernotok'
12329 allow_undefined_flag_CXX=' ${wl}-berok'
12330 # -bexpall does not export symbols beginning with underscore (_)
12331 always_export_symbols_CXX=yes
12332 # Exported symbols can be pulled into shared objects from archives
12333 whole_archive_flag_spec_CXX=' '
12334 archive_cmds_need_lc_CXX=yes
12335 # This is similar to how AIX traditionally builds it's shared libraries.
12336 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'
12341 case $cc_basename in
12343 # FIXME: insert proper C++ library support
12350 cygwin* | mingw* | pw32*)
12351 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12352 # as there is no search path for DLLs.
12353 hardcode_libdir_flag_spec_CXX='-L$libdir'
12354 allow_undefined_flag_CXX=unsupported
12355 always_export_symbols_CXX=no
12356 enable_shared_with_static_runtimes_CXX=yes
12358 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12359 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'
12360 # If the export-symbols file already is a .def file (1st line
12361 # is EXPORTS), use it as is; otherwise, prepend...
12362 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12363 cp $export_symbols $output_objdir/$soname.def;
12365 echo EXPORTS > $output_objdir/$soname.def;
12366 cat $export_symbols >> $output_objdir/$soname.def;
12368 $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'
12373 darwin* | rhapsody*)
12375 rhapsody* | darwin1.[012])
12376 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12380 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12382 case ${MACOSX_DEPLOYMENT_TARGET} in
12384 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12387 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12393 archive_cmds_need_lc_CXX=no
12394 hardcode_direct_CXX=no
12395 hardcode_automatic_CXX=yes
12396 hardcode_shlibpath_var_CXX=unsupported
12397 whole_archive_flag_spec_CXX=''
12398 link_all_deplibs_CXX=yes
12400 if test "$GXX" = yes ; then
12401 lt_int_apple_cc_single_mod=no
12402 output_verbose_link_cmd='echo'
12403 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12404 lt_int_apple_cc_single_mod=yes
12406 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12407 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12409 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'
12411 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12412 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12413 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12414 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}'
12416 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}'
12418 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}'
12420 case $cc_basename in
12422 output_verbose_link_cmd='echo'
12423 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'
12424 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12426 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}'
12427 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}'
12437 case $cc_basename in
12439 # FIXME: insert proper C++ library support
12443 # Green Hills C++ Compiler
12444 # FIXME: insert proper C++ library support
12448 # FIXME: insert proper C++ library support
12454 # C++ shared libraries reported to be fairly broken before switch to ELF
12458 archive_cmds_need_lc_CXX=no
12460 freebsd* | kfreebsd*-gnu | dragonfly*)
12461 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12468 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12469 hardcode_libdir_separator_CXX=:
12470 export_dynamic_flag_spec_CXX='${wl}-E'
12471 hardcode_direct_CXX=yes
12472 hardcode_minus_L_CXX=yes # Not in the search PATH,
12473 # but as the default
12474 # location of the library.
12476 case $cc_basename in
12478 # FIXME: insert proper C++ library support
12482 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'
12483 # Commands to make compiler produce verbose output that lists
12484 # what "hidden" libraries, object files and flags are used when
12485 # linking a shared library.
12487 # There doesn't appear to be a way to prevent this compiler from
12488 # explicitly linking system object files so we need to strip them
12489 # from the output so that they don't get included in the library
12491 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'
12494 if test "$GXX" = yes; then
12495 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'
12497 # FIXME: insert proper C++ library support
12504 if test $with_gnu_ld = no; then
12505 case "$host_cpu" in
12507 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12508 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12509 hardcode_libdir_separator_CXX=:
12512 hardcode_libdir_flag_spec_CXX='-L$libdir'
12515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12516 hardcode_libdir_separator_CXX=:
12517 export_dynamic_flag_spec_CXX='${wl}-E'
12521 case "$host_cpu" in
12523 hardcode_direct_CXX=no
12524 hardcode_shlibpath_var_CXX=no
12527 hardcode_direct_CXX=no
12528 hardcode_shlibpath_var_CXX=no
12529 hardcode_minus_L_CXX=yes # Not in the search PATH,
12530 # but as the default
12531 # location of the library.
12534 hardcode_direct_CXX=yes
12535 hardcode_minus_L_CXX=yes # Not in the search PATH,
12536 # but as the default
12537 # location of the library.
12541 case $cc_basename in
12543 # FIXME: insert proper C++ library support
12547 case "$host_cpu" in
12549 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12555 # Commands to make compiler produce verbose output that lists
12556 # what "hidden" libraries, object files and flags are used when
12557 # linking a shared library.
12559 # There doesn't appear to be a way to prevent this compiler from
12560 # explicitly linking system object files so we need to strip them
12561 # from the output so that they don't get included in the library
12563 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'
12566 if test "$GXX" = yes; then
12567 if test $with_gnu_ld = no; then
12568 case "$host_cpu" in
12570 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12573 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'
12578 # FIXME: insert proper C++ library support
12585 case $cc_basename in
12588 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12590 # Archives containing C++ object files must be created using
12591 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12592 # necessary to make sure instantiated templates are included
12594 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12597 if test "$GXX" = yes; then
12598 if test "$with_gnu_ld" = no; then
12599 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12601 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'
12604 link_all_deplibs_CXX=yes
12607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12608 hardcode_libdir_separator_CXX=:
12611 case $cc_basename in
12613 # Kuck and Associates, Inc. (KAI) C++ Compiler
12615 # KCC will only create a shared library if the output file
12616 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12617 # to its proper name (with version) after linking.
12618 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'
12619 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'
12620 # Commands to make compiler produce verbose output that lists
12621 # what "hidden" libraries, object files and flags are used when
12622 # linking a shared library.
12624 # There doesn't appear to be a way to prevent this compiler from
12625 # explicitly linking system object files so we need to strip them
12626 # from the output so that they don't get included in the library
12628 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'
12630 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12633 # Archives containing C++ object files must be created using
12634 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12635 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12640 # version 8.0 and above of icpc choke on multiply defined symbols
12641 # if we add $predep_objects and $postdep_objects, however 7.1 and
12642 # earlier do not add the objects themselves.
12643 case `$CC -V 2>&1` in
12645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 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'
12648 *) # Version 8.0 or newer
12651 ia64*) tmp_idyn=' -i_dynamic';;
12653 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12654 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12657 archive_cmds_need_lc_CXX=no
12658 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12660 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12663 # Portland Group C++ compiler
12664 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12665 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12667 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12669 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12673 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 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'
12676 runpath_var=LD_RUN_PATH
12677 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12678 hardcode_libdir_separator_CXX=:
12680 # Commands to make compiler produce verbose output that lists
12681 # what "hidden" libraries, object files and flags are used when
12682 # linking a shared library.
12684 # There doesn't appear to be a way to prevent this compiler from
12685 # explicitly linking system object files so we need to strip them
12686 # from the output so that they don't get included in the library
12688 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'
12693 # FIXME: insert proper C++ library support
12697 # FIXME: insert proper C++ library support
12701 case $cc_basename in
12703 # FIXME: insert proper C++ library support
12707 # FIXME: insert proper C++ library support
12713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12714 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12716 hardcode_libdir_flag_spec_CXX='-R$libdir'
12717 hardcode_direct_CXX=yes
12718 hardcode_shlibpath_var_CXX=no
12720 # Workaround some broken pre-1.5 toolchains
12721 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12724 # C++ shared libraries are fairly broken
12728 hardcode_direct_CXX=yes
12729 hardcode_shlibpath_var_CXX=no
12730 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12731 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12733 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12734 export_dynamic_flag_spec_CXX='${wl}-E'
12735 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12737 output_verbose_link_cmd='echo'
12740 case $cc_basename in
12742 # Kuck and Associates, Inc. (KAI) C++ Compiler
12744 # KCC will only create a shared library if the output file
12745 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12746 # to its proper name (with version) after linking.
12747 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'
12749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12750 hardcode_libdir_separator_CXX=:
12752 # Archives containing C++ object files must be created using
12753 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12754 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12758 # Rational C++ 2.4.1
12759 # FIXME: insert proper C++ library support
12763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12764 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12767 hardcode_libdir_separator_CXX=:
12769 # Commands to make compiler produce verbose output that lists
12770 # what "hidden" libraries, object files and flags are used when
12771 # linking a shared library.
12773 # There doesn't appear to be a way to prevent this compiler from
12774 # explicitly linking system object files so we need to strip them
12775 # from the output so that they don't get included in the library
12777 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'
12780 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12781 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12782 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12784 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12785 hardcode_libdir_separator_CXX=:
12787 # Commands to make compiler produce verbose output that lists
12788 # what "hidden" libraries, object files and flags are used when
12789 # linking a shared library.
12790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12793 # FIXME: insert proper C++ library support
12800 case $cc_basename in
12802 # Kuck and Associates, Inc. (KAI) C++ Compiler
12804 # KCC will only create a shared library if the output file
12805 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12806 # to its proper name (with version) after linking.
12807 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'
12809 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12810 hardcode_libdir_separator_CXX=:
12812 # Archives containing C++ object files must be created using
12813 # the KAI C++ compiler.
12814 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12817 # Rational C++ 2.4.1
12818 # FIXME: insert proper C++ library support
12822 allow_undefined_flag_CXX=' -expect_unresolved \*'
12823 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12824 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12825 echo "-hidden">> $lib.exp~
12826 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12829 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12830 hardcode_libdir_separator_CXX=:
12832 # Commands to make compiler produce verbose output that lists
12833 # what "hidden" libraries, object files and flags are used when
12834 # linking a shared library.
12836 # There doesn't appear to be a way to prevent this compiler from
12837 # explicitly linking system object files so we need to strip them
12838 # from the output so that they don't get included in the library
12840 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'
12843 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12844 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12845 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12848 hardcode_libdir_separator_CXX=:
12850 # Commands to make compiler produce verbose output that lists
12851 # what "hidden" libraries, object files and flags are used when
12852 # linking a shared library.
12853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12856 # FIXME: insert proper C++ library support
12863 # FIXME: insert proper C++ library support
12867 archive_cmds_need_lc_CXX=no
12868 case $cc_basename in
12870 # FIXME: insert proper C++ library support
12874 # FIXME: insert proper C++ library support
12880 case $cc_basename in
12883 # FIXME: insert proper C++ library support
12888 # FIXME: insert proper C++ library support
12892 # FIXME: insert proper C++ library support
12898 case $cc_basename in
12900 # Sun C++ 4.2, 5.x and Centerline C++
12901 no_undefined_flag_CXX=' -zdefs'
12902 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12903 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12904 $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'
12906 hardcode_libdir_flag_spec_CXX='-R$libdir'
12907 hardcode_shlibpath_var_CXX=no
12909 solaris2.[0-5] | solaris2.[0-5].*) ;;
12911 # The C++ compiler is used as linker so we must use $wl
12912 # flag to pass the commands to the underlying system
12913 # linker. We must also pass each convience library through
12914 # to the system linker between allextract/defaultextract.
12915 # The C++ compiler will combine linker options so we
12916 # cannot just pass the convience library names through
12918 # Supported since Solaris 2.6 (maybe 2.5.1?)
12919 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12922 link_all_deplibs_CXX=yes
12924 # Commands to make compiler produce verbose output that lists
12925 # what "hidden" libraries, object files and flags are used when
12926 # linking a shared library.
12928 # There doesn't appear to be a way to prevent this compiler from
12929 # explicitly linking system object files so we need to strip them
12930 # from the output so that they don't get included in the library
12932 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'
12934 # Archives containing C++ object files must be created using
12935 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12936 # necessary to make sure instantiated templates are included
12938 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12941 # Green Hills C++ Compiler
12942 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12944 # The C++ compiler must be used to create the archive.
12945 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12948 # GNU C++ compiler with Solaris linker
12949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12950 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12951 if $CC --version | grep -v '^2\.7' > /dev/null; then
12952 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12953 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12954 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12956 # Commands to make compiler produce verbose output that lists
12957 # what "hidden" libraries, object files and flags are used when
12958 # linking a shared library.
12959 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12961 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12963 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12964 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12965 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12967 # Commands to make compiler produce verbose output that lists
12968 # what "hidden" libraries, object files and flags are used when
12969 # linking a shared library.
12970 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12973 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12978 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12979 archive_cmds_need_lc_CXX=no
12982 case $cc_basename in
12984 # NonStop-UX NCC 3.20
12985 # FIXME: insert proper C++ library support
12989 # FIXME: insert proper C++ library support
12995 # FIXME: insert proper C++ library support
12999 # FIXME: insert proper C++ library support
13003 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13004 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13005 test "$ld_shlibs_CXX" = no && can_build_shared=no
13011 cat > conftest.$ac_ext <<EOF
13015 Foo (void) { a = 0; }
13021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022 (eval $ac_compile) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; then
13026 # Parse the compiler output and extract the necessary
13027 # objects, libraries and library flags.
13029 # Sentinel used to keep track of whether or not we are before
13030 # the conftest object file.
13031 pre_test_object_deps_done=no
13033 # The `*' in the case matches for architectures that use `case' in
13034 # $output_verbose_cmd can trigger glob expansion during the loop
13035 # eval without this substitution.
13036 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13038 for p in `eval $output_verbose_link_cmd`; do
13042 # Some compilers place space between "-{L,R}" and the path.
13043 # Remove the space.
13044 if test $p = "-L" \
13045 || test $p = "-R"; then
13052 if test "$pre_test_object_deps_done" = no; then
13055 # Internal compiler library paths should come after those
13056 # provided the user. The postdeps already come after the
13057 # user supplied libs so there is no need to process them.
13058 if test -z "$compiler_lib_search_path_CXX"; then
13059 compiler_lib_search_path_CXX="${prev}${p}"
13061 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13064 # The "-l" case would never come before the object being
13065 # linked, so don't bother handling this case.
13068 if test -z "$postdeps_CXX"; then
13069 postdeps_CXX="${prev}${p}"
13071 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13077 # This assumes that the test object file only shows up
13078 # once in the compiler output.
13079 if test "$p" = "conftest.$objext"; then
13080 pre_test_object_deps_done=yes
13084 if test "$pre_test_object_deps_done" = no; then
13085 if test -z "$predep_objects_CXX"; then
13086 predep_objects_CXX="$p"
13088 predep_objects_CXX="$predep_objects_CXX $p"
13091 if test -z "$postdep_objects_CXX"; then
13092 postdep_objects_CXX="$p"
13094 postdep_objects_CXX="$postdep_objects_CXX $p"
13099 *) ;; # Ignore the rest.
13107 echo "libtool.m4: error: problem compiling CXX test program"
13110 $rm -f confest.$objext
13112 case " $postdeps_CXX " in
13113 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13116 lt_prog_compiler_wl_CXX=
13117 lt_prog_compiler_pic_CXX=
13118 lt_prog_compiler_static_CXX=
13120 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13121 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13123 # C++ specific cases for pic, static, wl, etc.
13124 if test "$GXX" = yes; then
13125 lt_prog_compiler_wl_CXX='-Wl,'
13126 lt_prog_compiler_static_CXX='-static'
13130 # All AIX code is PIC.
13131 if test "$host_cpu" = ia64; then
13132 # AIX 5 now supports IA64 processor
13133 lt_prog_compiler_static_CXX='-Bstatic'
13137 # FIXME: we need at least 68020 code to build shared libraries, but
13138 # adding the `-m68020' flag to GCC prevents building anything better,
13140 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13142 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13143 # PIC is the default for these OSes.
13145 mingw* | os2* | pw32*)
13146 # This hack is so that the source file can tell whether it is being
13147 # built for inclusion in a dll (and should export symbols for example).
13148 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13150 darwin* | rhapsody*)
13151 # PIC is the default on this platform
13152 # Common symbols not allowed in MH_DYLIB files
13153 lt_prog_compiler_pic_CXX='-fno-common'
13156 # DJGPP does not support shared libraries at all
13157 lt_prog_compiler_pic_CXX=
13160 if test -d /usr/nec; then
13161 lt_prog_compiler_pic_CXX=-Kconform_pic
13165 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13166 # not for PA HP-UX.
13167 case "$host_cpu" in
13171 lt_prog_compiler_pic_CXX='-fPIC'
13176 lt_prog_compiler_pic_CXX='-fPIC'
13182 # All AIX code is PIC.
13183 if test "$host_cpu" = ia64; then
13184 # AIX 5 now supports IA64 processor
13185 lt_prog_compiler_static_CXX='-Bstatic'
13187 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13191 case $cc_basename in
13193 # Green Hills C++ Compiler
13194 # _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"
13199 # PIC is the default on this platform
13200 # Common symbols not allowed in MH_DYLIB files
13201 case $cc_basename in
13203 lt_prog_compiler_pic_CXX='-qnocommon'
13204 lt_prog_compiler_wl_CXX='-Wl,'
13209 case $cc_basename in
13211 lt_prog_compiler_pic_CXX='-KPIC'
13214 # Green Hills C++ Compiler
13215 lt_prog_compiler_pic_CXX='-pic'
13221 freebsd* | kfreebsd*-gnu | dragonfly*)
13222 # FreeBSD uses GNU C++
13224 hpux9* | hpux10* | hpux11*)
13225 case $cc_basename in
13227 lt_prog_compiler_wl_CXX='-Wl,'
13228 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13229 if test "$host_cpu" != ia64; then
13230 lt_prog_compiler_pic_CXX='+Z'
13234 lt_prog_compiler_wl_CXX='-Wl,'
13235 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13236 case "$host_cpu" in
13241 lt_prog_compiler_pic_CXX='+Z'
13249 irix5* | irix6* | nonstopux*)
13250 case $cc_basename in
13252 lt_prog_compiler_wl_CXX='-Wl,'
13253 lt_prog_compiler_static_CXX='-non_shared'
13254 # CC pic flag -KPIC is the default.
13261 case $cc_basename in
13264 lt_prog_compiler_wl_CXX='--backend -Wl,'
13265 lt_prog_compiler_pic_CXX='-fPIC'
13269 lt_prog_compiler_wl_CXX='-Wl,'
13270 lt_prog_compiler_pic_CXX='-KPIC'
13271 lt_prog_compiler_static_CXX='-static'
13274 # Portland Group C++ compiler.
13275 lt_prog_compiler_wl_CXX='-Wl,'
13276 lt_prog_compiler_pic_CXX='-fpic'
13277 lt_prog_compiler_static_CXX='-static'
13281 # Make sure the PIC flag is empty. It appears that all Alpha
13282 # Linux and Compaq Tru64 Unix objects are PIC.
13283 lt_prog_compiler_pic_CXX=
13284 lt_prog_compiler_static_CXX='-non_shared'
13295 case $cc_basename in
13297 lt_prog_compiler_pic_CXX='-W c,exportall'
13305 osf3* | osf4* | osf5*)
13306 case $cc_basename in
13308 lt_prog_compiler_wl_CXX='--backend -Wl,'
13311 # Rational C++ 2.4.1
13312 lt_prog_compiler_pic_CXX='-pic'
13315 # Digital/Compaq C++
13316 lt_prog_compiler_wl_CXX='-Wl,'
13317 # Make sure the PIC flag is empty. It appears that all Alpha
13318 # Linux and Compaq Tru64 Unix objects are PIC.
13319 lt_prog_compiler_pic_CXX=
13320 lt_prog_compiler_static_CXX='-non_shared'
13329 case $cc_basename in
13331 lt_prog_compiler_pic_CXX='-fPIC'
13338 case $cc_basename in
13340 # Sun C++ 4.2, 5.x and Centerline C++
13341 lt_prog_compiler_pic_CXX='-KPIC'
13342 lt_prog_compiler_static_CXX='-Bstatic'
13343 lt_prog_compiler_wl_CXX='-Qoption ld '
13346 # Green Hills C++ Compiler
13347 lt_prog_compiler_pic_CXX='-PIC'
13354 case $cc_basename in
13357 lt_prog_compiler_pic_CXX='-pic'
13358 lt_prog_compiler_static_CXX='-Bstatic'
13362 lt_prog_compiler_pic_CXX='-pic'
13369 case $cc_basename in
13371 # NonStop-UX NCC 3.20
13372 lt_prog_compiler_pic_CXX='-KPIC'
13383 lt_prog_compiler_can_build_shared_CXX=no
13388 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13389 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13392 # Check to make sure the PIC flag actually works.
13394 if test -n "$lt_prog_compiler_pic_CXX"; then
13396 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13398 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 lt_prog_compiler_pic_works_CXX=no
13402 ac_outfile=conftest.$ac_objext
13403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13404 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13405 # Insert the option either (1) after the last *FLAGS variable, or
13406 # (2) before a word containing "conftest.", or (3) at the end.
13407 # Note that $ac_compile itself does not contain backslashes and begins
13408 # with a dollar sign (not a hyphen), so the echo should work correctly.
13409 # The option is referenced via a variable to avoid confusing sed.
13410 lt_compile=`echo "$ac_compile" | $SED \
13411 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13413 -e 's:$: $lt_compiler_flag:'`
13414 (eval echo "\"\$as_me:13414: $lt_compile\"" >&5)
13415 (eval "$lt_compile" 2>conftest.err)
13417 cat conftest.err >&5
13418 echo "$as_me:13418: \$? = $ac_status" >&5
13419 if (exit $ac_status) && test -s "$ac_outfile"; then
13420 # The compiler can only warn and ignore the option if not recognized
13421 # So say no if there are warnings other than the usual output.
13422 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13423 $SED '/^$/d' conftest.err >conftest.er2
13424 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13425 lt_prog_compiler_pic_works_CXX=yes
13431 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13432 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13434 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13435 case $lt_prog_compiler_pic_CXX in
13437 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13440 lt_prog_compiler_pic_CXX=
13441 lt_prog_compiler_can_build_shared_CXX=no
13446 # For platforms which do not support PIC, -DPIC is meaningless:
13448 lt_prog_compiler_pic_CXX=
13451 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13455 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13456 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13457 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 lt_cv_prog_compiler_c_o_CXX=no
13461 $rm -r conftest 2>/dev/null
13465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13467 lt_compiler_flag="-o out/conftest2.$ac_objext"
13468 # Insert the option either (1) after the last *FLAGS variable, or
13469 # (2) before a word containing "conftest.", or (3) at the end.
13470 # Note that $ac_compile itself does not contain backslashes and begins
13471 # with a dollar sign (not a hyphen), so the echo should work correctly.
13472 lt_compile=`echo "$ac_compile" | $SED \
13473 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13475 -e 's:$: $lt_compiler_flag:'`
13476 (eval echo "\"\$as_me:13476: $lt_compile\"" >&5)
13477 (eval "$lt_compile" 2>out/conftest.err)
13479 cat out/conftest.err >&5
13480 echo "$as_me:13480: \$? = $ac_status" >&5
13481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13483 # The compiler can only warn and ignore the option if not recognized
13484 # So say no if there are warnings
13485 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13486 $SED '/^$/d' out/conftest.err >out/conftest.er2
13487 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13488 lt_cv_prog_compiler_c_o_CXX=yes
13493 # SGI C++ compiler will create directory out/ii_files/ for
13494 # template instantiation
13495 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13496 $rm out/* && rmdir out
13502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13506 hard_links="nottested"
13507 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13508 # do not overwrite the value of need_locks provided by the user
13509 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13515 ln conftest.a conftest.b 2>&5 || hard_links=no
13516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13517 echo "$as_me:$LINENO: result: $hard_links" >&5
13518 echo "${ECHO_T}$hard_links" >&6
13519 if test "$hard_links" = no; then
13520 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13528 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13531 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13534 # If we're using GNU nm, then we don't want the "-C" option.
13535 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13536 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13537 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'
13539 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'
13543 export_symbols_cmds_CXX="$ltdll_cmds"
13546 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13549 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13553 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13554 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13555 test "$ld_shlibs_CXX" = no && can_build_shared=no
13557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13558 if test "$GCC" = yes; then
13559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13563 # Do we need to explicitly link libc?
13565 case "x$archive_cmds_need_lc_CXX" in
13567 # Assume -lc should be added
13568 archive_cmds_need_lc_CXX=yes
13570 if test "$enable_shared" = yes && test "$GCC" = yes; then
13571 case $archive_cmds_CXX in
13573 # FIXME: we may have to deal with multi-command sequences.
13576 # Test whether the compiler implicitly links with -lc since on some
13577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13578 # to ld, don't add -lc before -lgcc.
13579 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13580 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585 (eval $ac_compile) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } 2>conftest.err; then
13591 libobjs=conftest.$ac_objext
13593 wl=$lt_prog_compiler_wl_CXX
13599 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13600 allow_undefined_flag_CXX=
13601 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13602 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }
13607 archive_cmds_need_lc_CXX=no
13609 archive_cmds_need_lc_CXX=yes
13611 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13613 cat conftest.err 1>&5
13616 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13617 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13626 library_names_spec=
13627 libname_spec='lib$name'
13631 postuninstall_cmds=
13635 shlibpath_overrides_runpath=unknown
13637 dynamic_linker="$host_os ld.so"
13638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13639 if test "$GCC" = yes; then
13640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13641 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13642 # if the path contains ";" then we assume it to be the separator
13643 # otherwise default to the standard path separator (i.e. ":") - it is
13644 # assumed that no part of a normal pathname contains ";" but that should
13645 # okay in the real world where ";" in dirpaths is itself problematic.
13646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13651 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13653 need_lib_prefix=unknown
13654 hardcode_into_libs=no
13656 # when you set need_version to no, make sure it does not cause -set_version
13657 # flags to be left without arguments
13658 need_version=unknown
13663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13664 shlibpath_var=LIBPATH
13666 # AIX 3 has no versioning support, so we append a major version to the name.
13667 soname_spec='${libname}${release}${shared_ext}$major'
13674 hardcode_into_libs=yes
13675 if test "$host_cpu" = ia64; then
13676 # AIX 5 supports IA64
13677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13678 shlibpath_var=LD_LIBRARY_PATH
13680 # With GCC up to 2.95.x, collect2 would create an import file
13681 # for dependence libraries. The import file would start with
13682 # the line `#! .'. This would cause the generated library to
13683 # depend on `.', always an invalid library. This was fixed in
13684 # development snapshots of GCC prior to 3.0.
13686 aix4 | aix4.[01] | aix4.[01].*)
13687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13689 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13692 can_build_shared=no
13696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13697 # soname into executable. Probably we can add versioning support to
13698 # collect2, so additional links can be useful in future.
13699 if test "$aix_use_runtimelinking" = yes; then
13700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13701 # instead of lib<name>.a to let people know that these are not
13702 # typical AIX shared libraries.
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13705 # We preserve .a as extension for shared libraries through AIX4.2
13706 # and later when we are not doing run time linking.
13707 library_names_spec='${libname}${release}.a $libname.a'
13708 soname_spec='${libname}${release}${shared_ext}$major'
13710 shlibpath_var=LIBPATH
13715 library_names_spec='$libname.ixlibrary $libname.a'
13716 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13717 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'
13721 library_names_spec='${libname}${shared_ext}'
13722 dynamic_linker="$host_os ld.so"
13723 shlibpath_var=LIBRARY_PATH
13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13732 shlibpath_var=LD_LIBRARY_PATH
13733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13735 # the default ld.so.conf also contains /usr/contrib/lib and
13736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13737 # libtool to hard-code these into programs
13740 cygwin* | mingw* | pw32*)
13741 version_type=windows
13746 case $GCC,$host_os in
13747 yes,cygwin* | yes,mingw* | yes,pw32*)
13748 library_names_spec='$libname.dll.a'
13749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13750 postinstall_cmds='base_file=`basename \${file}`~
13751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13752 dldir=$destdir/`dirname \$dlpath`~
13753 test -d \$dldir || mkdir -p \$dldir~
13754 $install_prog $dir/$dlname \$dldir/$dlname'
13755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13756 dlpath=$dir/\$dldll~
13758 shlibpath_overrides_runpath=yes
13762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13767 # MinGW DLLs use traditional 'lib' prefix
13768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13771 # It is most probably a Windows format PATH printed by
13772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13773 # path with ; separators, and with drive letters. We can handle the
13774 # drive letters (cygwin fileutils understands them), so leave them,
13775 # especially as we might pass files found there to a mingw objdump,
13776 # which wouldn't understand a cygwinified path. Ahh.
13777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13783 # pw32 DLLs use 'pw' prefix rather than 'lib'
13784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13793 dynamic_linker='Win32 ld.exe'
13794 # FIXME: first we should search . and the directory the executable is in
13798 darwin* | rhapsody*)
13799 dynamic_linker="$host_os dyld"
13800 version_type=darwin
13803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13804 soname_spec='${libname}${release}${major}$shared_ext'
13805 shlibpath_overrides_runpath=yes
13806 shlibpath_var=DYLD_LIBRARY_PATH
13807 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13809 if test "$GCC" = yes; then
13810 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"`
13812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13822 soname_spec='${libname}${release}${shared_ext}$major'
13823 shlibpath_var=LD_LIBRARY_PATH
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 shlibpath_var=LD_LIBRARY_PATH
13837 shlibpath_overrides_runpath=no
13838 hardcode_into_libs=yes
13839 dynamic_linker='GNU ld.so'
13842 freebsd* | dragonfly*)
13843 # DragonFly does not have aout. When/if they implement a new
13844 # versioning mechanism, adjust this.
13845 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13846 version_type=freebsd-$objformat
13847 case $version_type in
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13858 shlibpath_var=LD_LIBRARY_PATH
13861 shlibpath_overrides_runpath=yes
13863 freebsd3.[01]* | freebsdelf3.[01]*)
13864 shlibpath_overrides_runpath=yes
13865 hardcode_into_libs=yes
13868 shlibpath_overrides_runpath=no
13869 hardcode_into_libs=yes
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 shlibpath_var=LD_LIBRARY_PATH
13881 hardcode_into_libs=yes
13884 hpux9* | hpux10* | hpux11*)
13885 # Give a soname corresponding to the major version so that dld.sl refuses to
13886 # link against other versions.
13890 case "$host_cpu" in
13893 hardcode_into_libs=yes
13894 dynamic_linker="$host_os dld.so"
13895 shlibpath_var=LD_LIBRARY_PATH
13896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 if test "X$HPUX_IA64_MODE" = X32; then
13900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13908 hardcode_into_libs=yes
13909 dynamic_linker="$host_os dld.sl"
13910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913 soname_spec='${libname}${release}${shared_ext}$major'
13914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13919 dynamic_linker="$host_os dld.sl"
13920 shlibpath_var=SHLIB_PATH
13921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923 soname_spec='${libname}${release}${shared_ext}$major'
13926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13927 postinstall_cmds='chmod 555 $lib'
13930 irix5* | irix6* | nonstopux*)
13932 nonstopux*) version_type=nonstopux ;;
13934 if test "$lt_cv_prog_gnu_ld" = yes; then
13942 soname_spec='${libname}${release}${shared_ext}$major'
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13945 irix5* | nonstopux*)
13946 libsuff= shlibsuff=
13949 case $LD in # libtool.m4 will add one of these switches to LD
13950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13951 libsuff= shlibsuff= libmagic=32-bit;;
13952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13953 libsuff=32 shlibsuff=N32 libmagic=N32;;
13954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13956 *) libsuff= shlibsuff= libmagic=never-match;;
13960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13961 shlibpath_overrides_runpath=no
13962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13964 hardcode_into_libs=yes
13967 # No shared lib support for Linux oldld, aout, or coff.
13968 linux*oldld* | linux*aout* | linux*coff*)
13972 # This must be Linux ELF.
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13980 shlibpath_var=LD_LIBRARY_PATH
13981 shlibpath_overrides_runpath=no
13982 # This implies no fast_install, which is unacceptable.
13983 # Some rework will be needed to allow for fast_install
13984 # before this can be enabled.
13985 hardcode_into_libs=yes
13987 # Append ld.so.conf contents to the search path
13988 if test -f /etc/ld.so.conf; then
13989 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13990 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13993 # We used to test for /lib/ld.so.1 and disable shared libraries on
13994 # powerpc, because MkLinux only supported shared libraries with the
13995 # GNU dynamic linker. Since this was broken with cross compilers,
13996 # most powerpc-linux boxes support dynamic linking these days and
13997 # people can always --disable-shared, the test was removed, and we
13998 # assume the GNU/Linux dynamic linker is in use.
13999 dynamic_linker='GNU/Linux ld.so'
14006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14007 soname_spec='${libname}${release}${shared_ext}$major'
14008 shlibpath_var=LD_LIBRARY_PATH
14009 shlibpath_overrides_runpath=no
14010 hardcode_into_libs=yes
14011 dynamic_linker='GNU ld.so'
14018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14021 dynamic_linker='NetBSD (a.out) ld.so'
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 dynamic_linker='NetBSD ld.elf_so'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=yes
14029 hardcode_into_libs=yes
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=yes
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044 soname_spec='${libname}${release}${shared_ext}$major'
14045 shlibpath_var=LD_LIBRARY_PATH
14046 shlibpath_overrides_runpath=yes
14052 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14054 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14055 *) need_version=no ;;
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14059 shlibpath_var=LD_LIBRARY_PATH
14060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14062 openbsd2.[89] | openbsd2.[89].*)
14063 shlibpath_overrides_runpath=no
14066 shlibpath_overrides_runpath=yes
14070 shlibpath_overrides_runpath=yes
14075 libname_spec='$name'
14078 library_names_spec='$libname${shared_ext} $libname.a'
14079 dynamic_linker='OS/2 ld.exe'
14080 shlibpath_var=LIBPATH
14083 osf3* | osf4* | osf5*)
14087 soname_spec='${libname}${release}${shared_ext}$major'
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098 shlibpath_var=LD_LIBRARY_PATH
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106 soname_spec='${libname}${release}${shared_ext}$major'
14107 shlibpath_var=LD_LIBRARY_PATH
14108 shlibpath_overrides_runpath=yes
14109 hardcode_into_libs=yes
14110 # ldd complains unless libraries are executable
14111 postinstall_cmds='chmod +x $lib'
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14118 shlibpath_var=LD_LIBRARY_PATH
14119 shlibpath_overrides_runpath=yes
14120 if test "$with_gnu_ld" = yes; then
14126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129 soname_spec='${libname}${release}${shared_ext}$major'
14130 shlibpath_var=LD_LIBRARY_PATH
14131 case $host_vendor in
14133 shlibpath_overrides_runpath=no
14135 export_dynamic_flag_spec='${wl}-Blargedynsym'
14136 runpath_var=LD_RUN_PATH
14144 shlibpath_overrides_runpath=no
14145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14151 if test -d /usr/nec ;then
14153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14154 soname_spec='$libname${shared_ext}.$major'
14155 shlibpath_var=LD_LIBRARY_PATH
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 soname_spec='${libname}${release}${shared_ext}$major'
14163 shlibpath_var=LD_LIBRARY_PATH
14170 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14171 echo "${ECHO_T}$dynamic_linker" >&6
14172 test "$dynamic_linker" = no && can_build_shared=no
14174 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14175 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14176 hardcode_action_CXX=
14177 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14178 test -n "$runpath_var_CXX" || \
14179 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14181 # We can hardcode non-existant directories.
14182 if test "$hardcode_direct_CXX" != no &&
14183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14184 # have to relink, otherwise we might link with an installed library
14185 # when we should be linking with a yet-to-be-installed one
14186 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14187 test "$hardcode_minus_L_CXX" != no; then
14188 # Linking always hardcodes the temporary library directory.
14189 hardcode_action_CXX=relink
14191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14192 hardcode_action_CXX=immediate
14195 # We cannot hardcode anything, or else we can only hardcode existing
14197 hardcode_action_CXX=unsupported
14199 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14200 echo "${ECHO_T}$hardcode_action_CXX" >&6
14202 if test "$hardcode_action_CXX" = relink; then
14203 # Fast installation is not supported
14204 enable_fast_install=no
14205 elif test "$shlibpath_overrides_runpath" = yes ||
14206 test "$enable_shared" = no; then
14207 # Fast installation is not necessary
14208 enable_fast_install=needless
14213 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14214 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14215 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14216 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14217 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14218 echo "$as_me:$LINENO: result: yes" >&5
14219 echo "${ECHO_T}yes" >&6
14221 # FIXME - insert some real tests, host_os isn't really good enough
14224 if test -n "$STRIP" ; then
14225 striplib="$STRIP -x"
14226 echo "$as_me:$LINENO: result: yes" >&5
14227 echo "${ECHO_T}yes" >&6
14229 echo "$as_me:$LINENO: result: no" >&5
14230 echo "${ECHO_T}no" >&6
14234 echo "$as_me:$LINENO: result: no" >&5
14235 echo "${ECHO_T}no" >&6
14240 if test "x$enable_dlopen" != xyes; then
14241 enable_dlopen=unknown
14242 enable_dlopen_self=unknown
14243 enable_dlopen_self_static=unknown
14250 lt_cv_dlopen="load_add_on"
14252 lt_cv_dlopen_self=yes
14256 lt_cv_dlopen="LoadLibrary"
14261 lt_cv_dlopen="dlopen"
14266 # if libdl is installed we need to link against it
14267 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14268 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14269 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 ac_check_lib_save_LIBS=$LIBS
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14281 /* Override any gcc2 internal prototype to avoid an error. */
14285 /* We use char because int might match the return type of a gcc2
14286 builtin and then its argument prototype would still apply. */
14296 rm -f conftest.$ac_objext conftest$ac_exeext
14297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14298 (eval $ac_link) 2>conftest.er1
14300 grep -v '^ *+' conftest.er1 >conftest.err
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -z "$ac_cxx_werror_flag"
14306 || test ! -s conftest.err'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; } &&
14312 { ac_try='test -s conftest$ac_exeext'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 ac_cv_lib_dl_dlopen=yes
14320 echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14323 ac_cv_lib_dl_dlopen=no
14325 rm -f conftest.err conftest.$ac_objext \
14326 conftest$ac_exeext conftest.$ac_ext
14327 LIBS=$ac_check_lib_save_LIBS
14329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14330 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14331 if test $ac_cv_lib_dl_dlopen = yes; then
14332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14335 lt_cv_dlopen="dyld"
14337 lt_cv_dlopen_self=yes
14344 echo "$as_me:$LINENO: checking for shl_load" >&5
14345 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14346 if test "${ac_cv_func_shl_load+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14357 #define shl_load innocuous_shl_load
14359 /* System header to define __stub macros and hopefully few prototypes,
14360 which can conflict with char shl_load (); below.
14361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362 <limits.h> exists even on freestanding compilers. */
14365 # include <limits.h>
14367 # include <assert.h>
14372 /* Override any gcc2 internal prototype to avoid an error. */
14377 /* We use char because int might match the return type of a gcc2
14378 builtin and then its argument prototype would still apply. */
14380 /* The GNU C library defines this for functions which it implements
14381 to always fail with ENOSYS. Some functions are actually named
14382 something starting with __ and the normal name is an alias. */
14383 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14386 char (*f) () = shl_load;
14395 return f != shl_load;
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14402 (eval $ac_link) 2>conftest.er1
14404 grep -v '^ *+' conftest.er1 >conftest.err
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_cxx_werror_flag"
14410 || test ! -s conftest.err'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest$ac_exeext'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_cv_func_shl_load=yes
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_cv_func_shl_load=no
14429 rm -f conftest.err conftest.$ac_objext \
14430 conftest$ac_exeext conftest.$ac_ext
14432 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14433 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14434 if test $ac_cv_func_shl_load = yes; then
14435 lt_cv_dlopen="shl_load"
14437 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14438 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14439 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 ac_check_lib_save_LIBS=$LIBS
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14451 /* Override any gcc2 internal prototype to avoid an error. */
14455 /* We use char because int might match the return type of a gcc2
14456 builtin and then its argument prototype would still apply. */
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14468 (eval $ac_link) 2>conftest.er1
14470 grep -v '^ *+' conftest.er1 >conftest.err
14472 cat conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -z "$ac_cxx_werror_flag"
14476 || test ! -s conftest.err'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; } &&
14482 { ac_try='test -s conftest$ac_exeext'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 ac_cv_lib_dld_shl_load=yes
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_cv_lib_dld_shl_load=no
14495 rm -f conftest.err conftest.$ac_objext \
14496 conftest$ac_exeext conftest.$ac_ext
14497 LIBS=$ac_check_lib_save_LIBS
14499 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14500 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14501 if test $ac_cv_lib_dld_shl_load = yes; then
14502 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14504 echo "$as_me:$LINENO: checking for dlopen" >&5
14505 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14506 if test "${ac_cv_func_dlopen+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 cat >conftest.$ac_ext <<_ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14517 #define dlopen innocuous_dlopen
14519 /* System header to define __stub macros and hopefully few prototypes,
14520 which can conflict with char dlopen (); below.
14521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14522 <limits.h> exists even on freestanding compilers. */
14525 # include <limits.h>
14527 # include <assert.h>
14532 /* Override any gcc2 internal prototype to avoid an error. */
14537 /* We use char because int might match the return type of a gcc2
14538 builtin and then its argument prototype would still apply. */
14540 /* The GNU C library defines this for functions which it implements
14541 to always fail with ENOSYS. Some functions are actually named
14542 something starting with __ and the normal name is an alias. */
14543 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14546 char (*f) () = dlopen;
14555 return f != dlopen;
14560 rm -f conftest.$ac_objext conftest$ac_exeext
14561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14562 (eval $ac_link) 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -z "$ac_cxx_werror_flag"
14570 || test ! -s conftest.err'
14571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572 (eval $ac_try) 2>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; } &&
14576 { ac_try='test -s conftest$ac_exeext'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
14582 ac_cv_func_dlopen=yes
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14587 ac_cv_func_dlopen=no
14589 rm -f conftest.err conftest.$ac_objext \
14590 conftest$ac_exeext conftest.$ac_ext
14592 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14593 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14594 if test $ac_cv_func_dlopen = yes; then
14595 lt_cv_dlopen="dlopen"
14597 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14598 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14599 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 ac_check_lib_save_LIBS=$LIBS
14604 cat >conftest.$ac_ext <<_ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14611 /* Override any gcc2 internal prototype to avoid an error. */
14615 /* We use char because int might match the return type of a gcc2
14616 builtin and then its argument prototype would still apply. */
14626 rm -f conftest.$ac_objext conftest$ac_exeext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14628 (eval $ac_link) 2>conftest.er1
14630 grep -v '^ *+' conftest.er1 >conftest.err
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -z "$ac_cxx_werror_flag"
14636 || test ! -s conftest.err'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest$ac_exeext'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_cv_lib_dl_dlopen=yes
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_cv_lib_dl_dlopen=no
14655 rm -f conftest.err conftest.$ac_objext \
14656 conftest$ac_exeext conftest.$ac_ext
14657 LIBS=$ac_check_lib_save_LIBS
14659 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14660 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14661 if test $ac_cv_lib_dl_dlopen = yes; then
14662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14664 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14665 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14666 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 ac_check_lib_save_LIBS=$LIBS
14670 LIBS="-lsvld $LIBS"
14671 cat >conftest.$ac_ext <<_ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14678 /* Override any gcc2 internal prototype to avoid an error. */
14682 /* We use char because int might match the return type of a gcc2
14683 builtin and then its argument prototype would still apply. */
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14695 (eval $ac_link) 2>conftest.er1
14697 grep -v '^ *+' conftest.er1 >conftest.err
14699 cat conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try='test -z "$ac_cxx_werror_flag"
14703 || test ! -s conftest.err'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; } &&
14709 { ac_try='test -s conftest$ac_exeext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_lib_svld_dlopen=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_lib_svld_dlopen=no
14722 rm -f conftest.err conftest.$ac_objext \
14723 conftest$ac_exeext conftest.$ac_ext
14724 LIBS=$ac_check_lib_save_LIBS
14726 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14727 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14728 if test $ac_cv_lib_svld_dlopen = yes; then
14729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14731 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14732 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14733 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 ac_check_lib_save_LIBS=$LIBS
14738 cat >conftest.$ac_ext <<_ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14745 /* Override any gcc2 internal prototype to avoid an error. */
14749 /* We use char because int might match the return type of a gcc2
14750 builtin and then its argument prototype would still apply. */
14760 rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14762 (eval $ac_link) 2>conftest.er1
14764 grep -v '^ *+' conftest.er1 >conftest.err
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -z "$ac_cxx_werror_flag"
14770 || test ! -s conftest.err'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } &&
14776 { ac_try='test -s conftest$ac_exeext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_lib_dld_dld_link=yes
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 ac_cv_lib_dld_dld_link=no
14789 rm -f conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14794 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14795 if test $ac_cv_lib_dld_dld_link = yes; then
14796 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14817 if test "x$lt_cv_dlopen" != xno; then
14823 case $lt_cv_dlopen in
14825 save_CPPFLAGS="$CPPFLAGS"
14826 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14828 save_LDFLAGS="$LDFLAGS"
14829 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14832 LIBS="$lt_cv_dlopen_libs $LIBS"
14834 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14835 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14836 if test "${lt_cv_dlopen_self+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 if test "$cross_compiling" = yes; then :
14840 lt_cv_dlopen_self=cross
14842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14843 lt_status=$lt_dlunknown
14844 cat > conftest.$ac_ext <<EOF
14845 #line 14845 "configure"
14846 #include "confdefs.h"
14855 # define LT_DLGLOBAL RTLD_GLOBAL
14858 # define LT_DLGLOBAL DL_GLOBAL
14860 # define LT_DLGLOBAL 0
14864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14865 find out it does not work in some platform. */
14866 #ifndef LT_DLLAZY_OR_NOW
14868 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14871 # define LT_DLLAZY_OR_NOW DL_LAZY
14874 # define LT_DLLAZY_OR_NOW RTLD_NOW
14877 # define LT_DLLAZY_OR_NOW DL_NOW
14879 # define LT_DLLAZY_OR_NOW 0
14887 extern "C" void exit (int);
14890 void fnord() { int i=42;}
14893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14894 int status = $lt_dlunknown;
14898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14899 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14900 /* dlclose (self); */
14906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907 (eval $ac_link) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14911 (./conftest; exit; ) 2>/dev/null
14913 case x$lt_status in
14914 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14915 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14916 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14919 # compilation failed
14920 lt_cv_dlopen_self=no
14927 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14928 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14930 if test "x$lt_cv_dlopen_self" = xyes; then
14931 LDFLAGS="$LDFLAGS $link_static_flag"
14932 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14933 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14934 if test "${lt_cv_dlopen_self_static+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 if test "$cross_compiling" = yes; then :
14938 lt_cv_dlopen_self_static=cross
14940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14941 lt_status=$lt_dlunknown
14942 cat > conftest.$ac_ext <<EOF
14943 #line 14943 "configure"
14944 #include "confdefs.h"
14953 # define LT_DLGLOBAL RTLD_GLOBAL
14956 # define LT_DLGLOBAL DL_GLOBAL
14958 # define LT_DLGLOBAL 0
14962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14963 find out it does not work in some platform. */
14964 #ifndef LT_DLLAZY_OR_NOW
14966 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14969 # define LT_DLLAZY_OR_NOW DL_LAZY
14972 # define LT_DLLAZY_OR_NOW RTLD_NOW
14975 # define LT_DLLAZY_OR_NOW DL_NOW
14977 # define LT_DLLAZY_OR_NOW 0
14985 extern "C" void exit (int);
14988 void fnord() { int i=42;}
14991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14992 int status = $lt_dlunknown;
14996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14997 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14998 /* dlclose (self); */
15004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15005 (eval $ac_link) 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15009 (./conftest; exit; ) 2>/dev/null
15011 case x$lt_status in
15012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15014 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15017 # compilation failed
15018 lt_cv_dlopen_self_static=no
15025 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15026 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15029 CPPFLAGS="$save_CPPFLAGS"
15030 LDFLAGS="$save_LDFLAGS"
15035 case $lt_cv_dlopen_self in
15036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15037 *) enable_dlopen_self=unknown ;;
15040 case $lt_cv_dlopen_self_static in
15041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15042 *) enable_dlopen_self_static=unknown ;;
15047 # The else clause should only fire when bootstrapping the
15048 # libtool distribution, otherwise you forgot to ship ltmain.sh
15049 # with your package, and you will get complaints that there are
15050 # no rules to generate ltmain.sh.
15051 if test -f "$ltmain"; then
15052 # See if we are running on zsh, and set the options which allow our commands through
15053 # without removal of \ escapes.
15054 if test -n "${ZSH_VERSION+set}" ; then
15055 setopt NO_GLOB_SUBST
15057 # Now quote all the things that may contain metacharacters while being
15058 # careful not to overquote the AC_SUBSTed values. We take copies of the
15059 # variables and quote the copies for generation of the libtool script.
15060 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15062 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15063 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15064 deplibs_check_method reload_flag reload_cmds need_locks \
15065 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15066 lt_cv_sys_global_symbol_to_c_name_address \
15067 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15068 old_postinstall_cmds old_postuninstall_cmds \
15072 lt_prog_compiler_wl_CXX \
15073 lt_prog_compiler_pic_CXX \
15074 lt_prog_compiler_static_CXX \
15075 lt_prog_compiler_no_builtin_flag_CXX \
15076 export_dynamic_flag_spec_CXX \
15077 thread_safe_flag_spec_CXX \
15078 whole_archive_flag_spec_CXX \
15079 enable_shared_with_static_runtimes_CXX \
15080 old_archive_cmds_CXX \
15081 old_archive_from_new_cmds_CXX \
15082 predep_objects_CXX \
15083 postdep_objects_CXX \
15086 compiler_lib_search_path_CXX \
15088 archive_expsym_cmds_CXX \
15089 postinstall_cmds_CXX \
15090 postuninstall_cmds_CXX \
15091 old_archive_from_expsyms_cmds_CXX \
15092 allow_undefined_flag_CXX \
15093 no_undefined_flag_CXX \
15094 export_symbols_cmds_CXX \
15095 hardcode_libdir_flag_spec_CXX \
15096 hardcode_libdir_flag_spec_ld_CXX \
15097 hardcode_libdir_separator_CXX \
15098 hardcode_automatic_CXX \
15100 module_expsym_cmds_CXX \
15101 lt_cv_prog_compiler_c_o_CXX \
15102 exclude_expsyms_CXX \
15103 include_expsyms_CXX; do
15106 old_archive_cmds_CXX | \
15107 old_archive_from_new_cmds_CXX | \
15108 archive_cmds_CXX | \
15109 archive_expsym_cmds_CXX | \
15110 module_cmds_CXX | \
15111 module_expsym_cmds_CXX | \
15112 old_archive_from_expsyms_cmds_CXX | \
15113 export_symbols_cmds_CXX | \
15114 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15115 postinstall_cmds | postuninstall_cmds | \
15116 old_postinstall_cmds | old_postuninstall_cmds | \
15117 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15118 # Double-quote double-evaled strings.
15119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15128 *'\$0 --fallback-echo"')
15129 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15135 cat <<__EOF__ >> "$cfgfile"
15136 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15138 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15140 # Shell to use when invoking shell scripts.
15143 # Whether or not to build shared libraries.
15144 build_libtool_libs=$enable_shared
15146 # Whether or not to build static libraries.
15147 build_old_libs=$enable_static
15149 # Whether or not to add -lc for building shared libraries.
15150 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15152 # Whether or not to disallow shared libs when runtime libs are static
15153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15155 # Whether or not to optimize for fast installation.
15156 fast_install=$enable_fast_install
15159 host_alias=$host_alias
15163 # The build system.
15164 build_alias=$build_alias
15168 # An echo program that does not interpret backslashes.
15173 AR_FLAGS=$lt_AR_FLAGS
15178 # A language-specific compiler.
15179 CC=$lt_compiler_CXX
15181 # Is the compiler the GNU C compiler?
15187 # The linker used to build libraries.
15190 # Whether we need hard or soft links.
15193 # A BSD-compatible nm program.
15196 # A symbol stripping program
15199 # Used to examine libraries when file_magic_cmd begins "file"
15200 MAGIC_CMD=$MAGIC_CMD
15202 # Used on cygwin: DLL creation program.
15205 # Used on cygwin: object dumper.
15208 # Used on cygwin: assembler.
15211 # The name of the directory that contains temporary libtool files.
15214 # How to create reloadable object files.
15215 reload_flag=$lt_reload_flag
15216 reload_cmds=$lt_reload_cmds
15218 # How to pass a linker flag through the compiler.
15219 wl=$lt_lt_prog_compiler_wl_CXX
15221 # Object file suffix (normally "o").
15222 objext="$ac_objext"
15224 # Old archive suffix (normally "a").
15227 # Shared library suffix (normally ".so").
15228 shrext_cmds='$shrext_cmds'
15230 # Executable file suffix (normally "").
15233 # Additional compiler flags for building library objects.
15234 pic_flag=$lt_lt_prog_compiler_pic_CXX
15237 # What is the maximum length of a command?
15238 max_cmd_len=$lt_cv_sys_max_cmd_len
15240 # Does compiler simultaneously support -c and -o options?
15241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15243 # Must we lock files when doing compilation?
15244 need_locks=$lt_need_locks
15246 # Do we need the lib prefix for modules?
15247 need_lib_prefix=$need_lib_prefix
15249 # Do we need a version for libraries?
15250 need_version=$need_version
15252 # Whether dlopen is supported.
15253 dlopen_support=$enable_dlopen
15255 # Whether dlopen of programs is supported.
15256 dlopen_self=$enable_dlopen_self
15258 # Whether dlopen of statically linked programs is supported.
15259 dlopen_self_static=$enable_dlopen_self_static
15261 # Compiler flag to prevent dynamic linking.
15262 link_static_flag=$lt_lt_prog_compiler_static_CXX
15264 # Compiler flag to turn off builtin functions.
15265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15267 # Compiler flag to allow reflexive dlopens.
15268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15270 # Compiler flag to generate shared objects directly from archives.
15271 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15273 # Compiler flag to generate thread-safe objects.
15274 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15276 # Library versioning type.
15277 version_type=$version_type
15279 # Format of library name prefix.
15280 libname_spec=$lt_libname_spec
15282 # List of archive names. First name is the real one, the rest are links.
15283 # The last name is the one that the linker finds with -lNAME.
15284 library_names_spec=$lt_library_names_spec
15286 # The coded name of the library, if different from the real name.
15287 soname_spec=$lt_soname_spec
15289 # Commands used to build and install an old-style archive.
15291 old_archive_cmds=$lt_old_archive_cmds_CXX
15292 old_postinstall_cmds=$lt_old_postinstall_cmds
15293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15295 # Create an old-style archive from a shared archive.
15296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15298 # Create a temporary old-style archive to link instead of a shared archive.
15299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15301 # Commands used to build and install a shared archive.
15302 archive_cmds=$lt_archive_cmds_CXX
15303 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15304 postinstall_cmds=$lt_postinstall_cmds
15305 postuninstall_cmds=$lt_postuninstall_cmds
15307 # Commands used to build a loadable module (assumed same as above if empty)
15308 module_cmds=$lt_module_cmds_CXX
15309 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15311 # Commands to strip libraries.
15312 old_striplib=$lt_old_striplib
15313 striplib=$lt_striplib
15315 # Dependencies to place before the objects being linked to create a
15317 predep_objects=$lt_predep_objects_CXX
15319 # Dependencies to place after the objects being linked to create a
15321 postdep_objects=$lt_postdep_objects_CXX
15323 # Dependencies to place before the objects being linked to create a
15325 predeps=$lt_predeps_CXX
15327 # Dependencies to place after the objects being linked to create a
15329 postdeps=$lt_postdeps_CXX
15331 # The library search path used internally by the compiler when linking
15332 # a shared library.
15333 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15335 # Method to check whether dependent libraries are shared objects.
15336 deplibs_check_method=$lt_deplibs_check_method
15338 # Command to use when deplibs_check_method == file_magic.
15339 file_magic_cmd=$lt_file_magic_cmd
15341 # Flag that allows shared libraries with undefined symbols to be built.
15342 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15344 # Flag that forces no undefined symbols.
15345 no_undefined_flag=$lt_no_undefined_flag_CXX
15347 # Commands used to finish a libtool library installation in a directory.
15348 finish_cmds=$lt_finish_cmds
15350 # Same as above, but a single script fragment to be evaled but not shown.
15351 finish_eval=$lt_finish_eval
15353 # Take the output of nm and produce a listing of raw symbols and C names.
15354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15356 # Transform the output of nm in a proper C declaration
15357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15359 # Transform the output of nm in a C name address pair
15360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15362 # This is the shared library runtime path variable.
15363 runpath_var=$runpath_var
15365 # This is the shared library path variable.
15366 shlibpath_var=$shlibpath_var
15368 # Is shlibpath searched before the hard-coded library search path?
15369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15371 # How to hardcode a shared library path into an executable.
15372 hardcode_action=$hardcode_action_CXX
15374 # Whether we should hardcode library paths into libraries.
15375 hardcode_into_libs=$hardcode_into_libs
15377 # Flag to hardcode \$libdir into a binary during linking.
15378 # This must work even if \$libdir does not exist.
15379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15381 # If ld is used when linking, flag to hardcode \$libdir into
15382 # a binary during linking. This must work even if \$libdir does
15384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15386 # Whether we need a single -rpath flag with a separated argument.
15387 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15390 # resulting binary.
15391 hardcode_direct=$hardcode_direct_CXX
15393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15394 # resulting binary.
15395 hardcode_minus_L=$hardcode_minus_L_CXX
15397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15398 # the resulting binary.
15399 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15401 # Set to yes if building a shared library automatically hardcodes DIR into the library
15402 # and all subsequent libraries and executables linked against it.
15403 hardcode_automatic=$hardcode_automatic_CXX
15405 # Variables whose values should be saved in libtool wrapper scripts and
15406 # restored at relink time.
15407 variables_saved_for_relink="$variables_saved_for_relink"
15409 # Whether libtool must link a program against all its dependency libraries.
15410 link_all_deplibs=$link_all_deplibs_CXX
15412 # Compile-time system search path for libraries
15413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15415 # Run-time system search path for libraries
15416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15418 # Fix the shell variable \$srcfile for the compiler.
15419 fix_srcfile_path="$fix_srcfile_path_CXX"
15421 # Set to yes if exported symbols are required.
15422 always_export_symbols=$always_export_symbols_CXX
15424 # The commands to list exported symbols.
15425 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15427 # The commands to extract the exported symbol list from a shared archive.
15428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15430 # Symbols that should not be listed in the preloaded symbols.
15431 exclude_expsyms=$lt_exclude_expsyms_CXX
15433 # Symbols that must always be exported.
15434 include_expsyms=$lt_include_expsyms_CXX
15436 # ### END LIBTOOL TAG CONFIG: $tagname
15442 # If there is no Makefile yet, we rely on a make rule to execute
15443 # `config.status --recheck' to rerun these tests and create the
15444 # libtool script then.
15445 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15446 if test -f "$ltmain_in"; then
15447 test -f Makefile && make "$ltmain"
15453 ac_cpp='$CPP $CPPFLAGS'
15454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15462 with_gnu_ldcxx=$with_gnu_ld
15463 with_gnu_ld=$lt_save_with_gnu_ld
15464 lt_cv_path_LDCXX=$lt_cv_path_LD
15465 lt_cv_path_LD=$lt_save_path_LD
15466 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15467 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15475 if test -n "$F77" && test "X$F77" != "Xno"; then
15478 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15479 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15480 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15483 archive_cmds_need_lc_F77=no
15484 allow_undefined_flag_F77=
15485 always_export_symbols_F77=no
15486 archive_expsym_cmds_F77=
15487 export_dynamic_flag_spec_F77=
15488 hardcode_direct_F77=no
15489 hardcode_libdir_flag_spec_F77=
15490 hardcode_libdir_flag_spec_ld_F77=
15491 hardcode_libdir_separator_F77=
15492 hardcode_minus_L_F77=no
15493 hardcode_automatic_F77=no
15495 module_expsym_cmds_F77=
15496 link_all_deplibs_F77=unknown
15497 old_archive_cmds_F77=$old_archive_cmds
15498 no_undefined_flag_F77=
15499 whole_archive_flag_spec_F77=
15500 enable_shared_with_static_runtimes_F77=no
15502 # Source file extension for f77 test sources.
15505 # Object file extension for compiled f77 test sources.
15509 # Code to be used in simple compile tests
15510 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15512 # Code to be used in simple link tests
15513 lt_simple_link_test_code=" program t\n end\n"
15515 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15517 # If no C compiler was specified, use CC.
15520 # Allow CC to be a program name with arguments.
15524 # save warnings/boilerplate of simple test code
15525 ac_outfile=conftest.$ac_objext
15526 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15528 _lt_compiler_boilerplate=`cat conftest.err`
15531 ac_outfile=conftest.$ac_objext
15532 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15534 _lt_linker_boilerplate=`cat conftest.err`
15538 # Allow CC to be a program name with arguments.
15543 for cc_temp in $compiler""; do
15545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15551 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15554 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15555 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15556 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15557 echo "${ECHO_T}$can_build_shared" >&6
15559 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15560 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15561 test "$can_build_shared" = "no" && enable_shared=no
15563 # On AIX, shared libraries and static libraries use the same namespace, and
15564 # are all built from PIC.
15567 test "$enable_shared" = yes && enable_static=no
15568 if test -n "$RANLIB"; then
15569 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15570 postinstall_cmds='$RANLIB $lib'
15574 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15575 test "$enable_shared" = yes && enable_static=no
15579 echo "$as_me:$LINENO: result: $enable_shared" >&5
15580 echo "${ECHO_T}$enable_shared" >&6
15582 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15583 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15584 # Make sure either enable_shared or enable_static is yes.
15585 test "$enable_shared" = yes || enable_static=yes
15586 echo "$as_me:$LINENO: result: $enable_static" >&5
15587 echo "${ECHO_T}$enable_static" >&6
15589 test "$ld_shlibs_F77" = no && can_build_shared=no
15594 lt_prog_compiler_wl_F77=
15595 lt_prog_compiler_pic_F77=
15596 lt_prog_compiler_static_F77=
15598 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15599 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15601 if test "$GCC" = yes; then
15602 lt_prog_compiler_wl_F77='-Wl,'
15603 lt_prog_compiler_static_F77='-static'
15607 # All AIX code is PIC.
15608 if test "$host_cpu" = ia64; then
15609 # AIX 5 now supports IA64 processor
15610 lt_prog_compiler_static_F77='-Bstatic'
15615 # FIXME: we need at least 68020 code to build shared libraries, but
15616 # adding the `-m68020' flag to GCC prevents building anything better,
15618 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15621 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15622 # PIC is the default for these OSes.
15625 mingw* | pw32* | os2*)
15626 # This hack is so that the source file can tell whether it is being
15627 # built for inclusion in a dll (and should export symbols for example).
15628 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15631 darwin* | rhapsody*)
15632 # PIC is the default on this platform
15633 # Common symbols not allowed in MH_DYLIB files
15634 lt_prog_compiler_pic_F77='-fno-common'
15638 # Just because we use GCC doesn't mean we suddenly get shared libraries
15639 # on systems that don't support them.
15640 lt_prog_compiler_can_build_shared_F77=no
15645 if test -d /usr/nec; then
15646 lt_prog_compiler_pic_F77=-Kconform_pic
15651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15652 # not for PA HP-UX.
15653 case "$host_cpu" in
15658 lt_prog_compiler_pic_F77='-fPIC'
15664 lt_prog_compiler_pic_F77='-fPIC'
15668 # PORTME Check for flag to pass linker flags through the system compiler.
15671 lt_prog_compiler_wl_F77='-Wl,'
15672 if test "$host_cpu" = ia64; then
15673 # AIX 5 now supports IA64 processor
15674 lt_prog_compiler_static_F77='-Bstatic'
15676 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15680 # PIC is the default on this platform
15681 # Common symbols not allowed in MH_DYLIB files
15682 case $cc_basename in
15684 lt_prog_compiler_pic_F77='-qnocommon'
15685 lt_prog_compiler_wl_F77='-Wl,'
15690 mingw* | pw32* | os2*)
15691 # This hack is so that the source file can tell whether it is being
15692 # built for inclusion in a dll (and should export symbols for example).
15693 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15696 hpux9* | hpux10* | hpux11*)
15697 lt_prog_compiler_wl_F77='-Wl,'
15698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15699 # not for PA HP-UX.
15700 case "$host_cpu" in
15705 lt_prog_compiler_pic_F77='+Z'
15708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15709 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15712 irix5* | irix6* | nonstopux*)
15713 lt_prog_compiler_wl_F77='-Wl,'
15714 # PIC (with -KPIC) is the default.
15715 lt_prog_compiler_static_F77='-non_shared'
15719 lt_prog_compiler_pic_F77='-KPIC'
15720 lt_prog_compiler_static_F77='-Bstatic'
15724 case $cc_basename in
15726 lt_prog_compiler_wl_F77='-Wl,'
15727 lt_prog_compiler_pic_F77='-KPIC'
15728 lt_prog_compiler_static_F77='-static'
15730 pgcc* | pgf77* | pgf90*)
15731 # Portland Group compilers (*not* the Pentium gcc compiler,
15732 # which looks to be a dead project)
15733 lt_prog_compiler_wl_F77='-Wl,'
15734 lt_prog_compiler_pic_F77='-fpic'
15735 lt_prog_compiler_static_F77='-static'
15738 lt_prog_compiler_wl_F77='-Wl,'
15739 # All Alpha code is PIC.
15740 lt_prog_compiler_static_F77='-non_shared'
15745 osf3* | osf4* | osf5*)
15746 lt_prog_compiler_wl_F77='-Wl,'
15747 # All OSF/1 code is PIC.
15748 lt_prog_compiler_static_F77='-non_shared'
15752 lt_prog_compiler_pic_F77='-Kpic'
15753 lt_prog_compiler_static_F77='-dn'
15757 lt_prog_compiler_pic_F77='-KPIC'
15758 lt_prog_compiler_static_F77='-Bstatic'
15759 case $cc_basename in
15760 f77* | f90* | f95*)
15761 lt_prog_compiler_wl_F77='-Qoption ld ';;
15763 lt_prog_compiler_wl_F77='-Wl,';;
15768 lt_prog_compiler_wl_F77='-Qoption ld '
15769 lt_prog_compiler_pic_F77='-PIC'
15770 lt_prog_compiler_static_F77='-Bstatic'
15773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15774 lt_prog_compiler_wl_F77='-Wl,'
15775 lt_prog_compiler_pic_F77='-KPIC'
15776 lt_prog_compiler_static_F77='-Bstatic'
15780 if test -d /usr/nec ;then
15781 lt_prog_compiler_pic_F77='-Kconform_pic'
15782 lt_prog_compiler_static_F77='-Bstatic'
15787 lt_prog_compiler_wl_F77='-Wl,'
15788 lt_prog_compiler_can_build_shared_F77=no
15792 lt_prog_compiler_pic_F77='-pic'
15793 lt_prog_compiler_static_F77='-Bstatic'
15797 lt_prog_compiler_can_build_shared_F77=no
15802 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15803 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15806 # Check to make sure the PIC flag actually works.
15808 if test -n "$lt_prog_compiler_pic_F77"; then
15810 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15811 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15812 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 lt_prog_compiler_pic_works_F77=no
15816 ac_outfile=conftest.$ac_objext
15817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15818 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15819 # Insert the option either (1) after the last *FLAGS variable, or
15820 # (2) before a word containing "conftest.", or (3) at the end.
15821 # Note that $ac_compile itself does not contain backslashes and begins
15822 # with a dollar sign (not a hyphen), so the echo should work correctly.
15823 # The option is referenced via a variable to avoid confusing sed.
15824 lt_compile=`echo "$ac_compile" | $SED \
15825 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15827 -e 's:$: $lt_compiler_flag:'`
15828 (eval echo "\"\$as_me:15828: $lt_compile\"" >&5)
15829 (eval "$lt_compile" 2>conftest.err)
15831 cat conftest.err >&5
15832 echo "$as_me:15832: \$? = $ac_status" >&5
15833 if (exit $ac_status) && test -s "$ac_outfile"; then
15834 # The compiler can only warn and ignore the option if not recognized
15835 # So say no if there are warnings other than the usual output.
15836 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15837 $SED '/^$/d' conftest.err >conftest.er2
15838 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15839 lt_prog_compiler_pic_works_F77=yes
15845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15846 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15848 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15849 case $lt_prog_compiler_pic_F77 in
15851 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15854 lt_prog_compiler_pic_F77=
15855 lt_prog_compiler_can_build_shared_F77=no
15860 # For platforms which do not support PIC, -DPIC is meaningless:
15862 lt_prog_compiler_pic_F77=
15865 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15869 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15871 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 lt_cv_prog_compiler_c_o_F77=no
15875 $rm -r conftest 2>/dev/null
15879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15881 lt_compiler_flag="-o out/conftest2.$ac_objext"
15882 # Insert the option either (1) after the last *FLAGS variable, or
15883 # (2) before a word containing "conftest.", or (3) at the end.
15884 # Note that $ac_compile itself does not contain backslashes and begins
15885 # with a dollar sign (not a hyphen), so the echo should work correctly.
15886 lt_compile=`echo "$ac_compile" | $SED \
15887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15889 -e 's:$: $lt_compiler_flag:'`
15890 (eval echo "\"\$as_me:15890: $lt_compile\"" >&5)
15891 (eval "$lt_compile" 2>out/conftest.err)
15893 cat out/conftest.err >&5
15894 echo "$as_me:15894: \$? = $ac_status" >&5
15895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15897 # The compiler can only warn and ignore the option if not recognized
15898 # So say no if there are warnings
15899 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15900 $SED '/^$/d' out/conftest.err >out/conftest.er2
15901 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15902 lt_cv_prog_compiler_c_o_F77=yes
15907 # SGI C++ compiler will create directory out/ii_files/ for
15908 # template instantiation
15909 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15910 $rm out/* && rmdir out
15916 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15920 hard_links="nottested"
15921 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15922 # do not overwrite the value of need_locks provided by the user
15923 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15924 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15929 ln conftest.a conftest.b 2>&5 || hard_links=no
15930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15931 echo "$as_me:$LINENO: result: $hard_links" >&5
15932 echo "${ECHO_T}$hard_links" >&6
15933 if test "$hard_links" = no; then
15934 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15935 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15942 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15943 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15946 allow_undefined_flag_F77=
15947 enable_shared_with_static_runtimes_F77=no
15949 archive_expsym_cmds_F77=
15950 old_archive_From_new_cmds_F77=
15951 old_archive_from_expsyms_cmds_F77=
15952 export_dynamic_flag_spec_F77=
15953 whole_archive_flag_spec_F77=
15954 thread_safe_flag_spec_F77=
15955 hardcode_libdir_flag_spec_F77=
15956 hardcode_libdir_flag_spec_ld_F77=
15957 hardcode_libdir_separator_F77=
15958 hardcode_direct_F77=no
15959 hardcode_minus_L_F77=no
15960 hardcode_shlibpath_var_F77=unsupported
15961 link_all_deplibs_F77=unknown
15962 hardcode_automatic_F77=no
15964 module_expsym_cmds_F77=
15965 always_export_symbols_F77=no
15966 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15967 # include_expsyms should be a list of space-separated symbols to be *always*
15968 # included in the symbol list
15969 include_expsyms_F77=
15970 # exclude_expsyms can be an extended regexp of symbols to exclude
15971 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15972 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15973 # as well as any symbol that contains `d'.
15974 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15975 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15976 # platforms (ab)use it in PIC code, but their linkers get confused if
15977 # the symbol is explicitly referenced. Since portable code cannot
15978 # rely on this symbol name, it's probably fine to never include it in
15979 # preloaded symbol tables.
15980 extract_expsyms_cmds=
15981 # Just being paranoid about ensuring that cc_basename is set.
15982 for cc_temp in $compiler""; do
15984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15990 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15993 cygwin* | mingw* | pw32*)
15994 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15995 # When not using gcc, we currently assume that we are using
15996 # Microsoft Visual C++.
15997 if test "$GCC" != yes; then
16007 if test "$with_gnu_ld" = yes; then
16008 # If archive_cmds runs LD, not CC, wlarc should be empty
16011 # Set some defaults for GNU ld with shared library support. These
16012 # are reset later if shared libraries are not supported. Putting them
16013 # here allows them to be overridden if necessary.
16014 runpath_var=LD_RUN_PATH
16015 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16016 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16017 # ancient GNU ld didn't support --whole-archive et. al.
16018 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16019 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16021 whole_archive_flag_spec_F77=
16023 supports_anon_versioning=no
16024 case `$LD -v 2>/dev/null` in
16025 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16026 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16027 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16028 *\ 2.11.*) ;; # other 2.11 versions
16029 *) supports_anon_versioning=yes ;;
16032 # See if GNU ld supports shared libraries.
16034 aix3* | aix4* | aix5*)
16035 # On AIX/PPC, the GNU linker is very broken
16036 if test "$host_cpu" != ia64; then
16040 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16041 *** to be unable to reliably create shared libraries on AIX.
16042 *** Therefore, libtool is disabling shared libraries support. If you
16043 *** really care for shared libraries, you may want to modify your PATH
16044 *** so that a non-GNU linker is found, and then restart.
16051 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)'
16052 hardcode_libdir_flag_spec_F77='-L$libdir'
16053 hardcode_minus_L_F77=yes
16055 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16056 # that the semantics of dynamic libraries on AmigaOS, at least up
16057 # to version 4, is to share data among multiple programs linked
16058 # with the same dynamic library. Since this doesn't match the
16059 # behavior of shared libraries on other platforms, we can't use
16065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066 allow_undefined_flag_F77=unsupported
16067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16068 # support --undefined. This deserves some investigation. FIXME
16069 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16075 cygwin* | mingw* | pw32*)
16076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16077 # as there is no search path for DLLs.
16078 hardcode_libdir_flag_spec_F77='-L$libdir'
16079 allow_undefined_flag_F77=unsupported
16080 always_export_symbols_F77=no
16081 enable_shared_with_static_runtimes_F77=yes
16082 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16084 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16086 # If the export-symbols file already is a .def file (1st line
16087 # is EXPORTS), use it as is; otherwise, prepend...
16088 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16089 cp $export_symbols $output_objdir/$soname.def;
16091 echo EXPORTS > $output_objdir/$soname.def;
16092 cat $export_symbols >> $output_objdir/$soname.def;
16094 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16103 case $cc_basename,$host_cpu in
16104 pgcc*) # Portland Group C compiler
16105 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16106 tmp_addflag=' $pic_flag'
16108 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16109 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16110 tmp_addflag=' $pic_flag -Mnomain' ;;
16111 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16112 tmp_addflag=' -i_dynamic' ;;
16113 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16114 tmp_addflag=' -i_dynamic -nofor_main' ;;
16115 ifc* | ifort*) # Intel Fortran compiler
16116 tmp_addflag=' -nofor_main' ;;
16118 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16120 if test $supports_anon_versioning = yes; then
16121 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16123 $echo "local: *; };" >> $output_objdir/$libname.ver~
16124 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16133 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16136 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16142 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16146 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16147 *** create shared libraries on Solaris systems. Therefore, libtool
16148 *** is disabling shared libraries support. We urge you to upgrade GNU
16149 *** binutils to release 2.9.1 or newer. Another option is to modify
16150 *** your PATH or compiler configuration so that the native linker is
16151 *** used, and then restart.
16154 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16155 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16163 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16165 hardcode_direct_F77=yes
16166 hardcode_shlibpath_var_F77=no
16170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16171 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16179 if test "$ld_shlibs_F77" = no; then
16181 hardcode_libdir_flag_spec_F77=
16182 export_dynamic_flag_spec_F77=
16183 whole_archive_flag_spec_F77=
16186 # PORTME fill in a description of your system's linker (not GNU ld)
16189 allow_undefined_flag_F77=unsupported
16190 always_export_symbols_F77=yes
16191 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'
16192 # Note: this linker hardcodes the directories in LIBPATH if there
16193 # are no directories specified by -L.
16194 hardcode_minus_L_F77=yes
16195 if test "$GCC" = yes && test -z "$link_static_flag"; then
16196 # Neither direct hardcoding nor static linking is supported with a
16198 hardcode_direct_F77=unsupported
16203 if test "$host_cpu" = ia64; then
16204 # On IA64, the linker does run time linking by default, so we don't
16205 # have to do anything special.
16206 aix_use_runtimelinking=no
16207 exp_sym_flag='-Bexport'
16210 # If we're using GNU nm, then we don't want the "-C" option.
16211 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16212 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16213 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'
16215 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'
16217 aix_use_runtimelinking=no
16219 # Test if we are trying to use run time linking or normal
16220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16221 # need to do runtime linking.
16222 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16223 for ld_flag in $LDFLAGS; do
16224 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16225 aix_use_runtimelinking=yes
16231 exp_sym_flag='-bexport'
16232 no_entry_flag='-bnoentry'
16235 # When large executables or shared objects are built, AIX ld can
16236 # have problems creating the table of contents. If linking a library
16237 # or program results in "error TOC overflow" add -mminimal-toc to
16238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16241 archive_cmds_F77=''
16242 hardcode_direct_F77=yes
16243 hardcode_libdir_separator_F77=':'
16244 link_all_deplibs_F77=yes
16246 if test "$GCC" = yes; then
16247 case $host_os in aix4.[012]|aix4.[012].*)
16248 # We only want to do this on AIX 4.2 and lower, the check
16249 # below for broken collect2 doesn't work under 4.3+
16250 collect2name=`${CC} -print-prog-name=collect2`
16251 if test -f "$collect2name" && \
16252 strings "$collect2name" | grep resolve_lib_name >/dev/null
16254 # We have reworked collect2
16255 hardcode_direct_F77=yes
16257 # We have old collect2
16258 hardcode_direct_F77=unsupported
16259 # It fails to find uninstalled libraries when the uninstalled
16260 # path is not listed in the libpath. Setting hardcode_minus_L
16261 # to unsupported forces relinking
16262 hardcode_minus_L_F77=yes
16263 hardcode_libdir_flag_spec_F77='-L$libdir'
16264 hardcode_libdir_separator_F77=
16267 shared_flag='-shared'
16268 if test "$aix_use_runtimelinking" = yes; then
16269 shared_flag="$shared_flag "'${wl}-G'
16273 if test "$host_cpu" = ia64; then
16274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16275 # chokes on -Wl,-G. The following line is correct:
16278 if test "$aix_use_runtimelinking" = yes; then
16279 shared_flag='${wl}-G'
16281 shared_flag='${wl}-bM:SRE'
16286 # It seems that -bexpall does not export symbols beginning with
16287 # underscore (_), so it is better to generate a list of symbols to export.
16288 always_export_symbols_F77=yes
16289 if test "$aix_use_runtimelinking" = yes; then
16290 # Warning - without using the other runtime loading flags (-brtl),
16291 # -berok will link without error, but may produce a broken library.
16292 allow_undefined_flag_F77='-berok'
16293 # Determine the default libpath from the value encoded in an empty executable.
16294 cat >conftest.$ac_ext <<_ACEOF
16299 rm -f conftest.$ac_objext conftest$ac_exeext
16300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16301 (eval $ac_link) 2>conftest.er1
16303 grep -v '^ *+' conftest.er1 >conftest.err
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } &&
16308 { ac_try='test -z "$ac_f77_werror_flag"
16309 || test ! -s conftest.err'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest$ac_exeext'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16324 # Check for a 64-bit object if we didn't find anything.
16325 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; }
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16332 rm -f conftest.err conftest.$ac_objext \
16333 conftest$ac_exeext conftest.$ac_ext
16334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16336 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16337 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"
16339 if test "$host_cpu" = ia64; then
16340 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16341 allow_undefined_flag_F77="-z nodefs"
16342 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"
16344 # Determine the default libpath from the value encoded in an empty executable.
16345 cat >conftest.$ac_ext <<_ACEOF
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16352 (eval $ac_link) 2>conftest.er1
16354 grep -v '^ *+' conftest.er1 >conftest.err
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -z "$ac_f77_werror_flag"
16360 || test ! -s conftest.err'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest$ac_exeext'
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16375 # Check for a 64-bit object if we didn't find anything.
16376 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; }
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16383 rm -f conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16385 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16387 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16388 # Warning - without using the other run time loading flags,
16389 # -berok will link without error, but may produce a broken library.
16390 no_undefined_flag_F77=' ${wl}-bernotok'
16391 allow_undefined_flag_F77=' ${wl}-berok'
16392 # -bexpall does not export symbols beginning with underscore (_)
16393 always_export_symbols_F77=yes
16394 # Exported symbols can be pulled into shared objects from archives
16395 whole_archive_flag_spec_F77=' '
16396 archive_cmds_need_lc_F77=yes
16397 # This is similar to how AIX traditionally builds it's shared libraries.
16398 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'
16404 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)'
16405 hardcode_libdir_flag_spec_F77='-L$libdir'
16406 hardcode_minus_L_F77=yes
16407 # see comment about different semantics on the GNU ld section
16412 export_dynamic_flag_spec_F77=-rdynamic
16415 cygwin* | mingw* | pw32*)
16416 # When not using gcc, we currently assume that we are using
16417 # Microsoft Visual C++.
16418 # hardcode_libdir_flag_spec is actually meaningless, as there is
16419 # no search path for DLLs.
16420 hardcode_libdir_flag_spec_F77=' '
16421 allow_undefined_flag_F77=unsupported
16422 # Tell ltmain to make .lib files, not .a files.
16424 # Tell ltmain to make .dll files, not .so files.
16426 # FIXME: Setting linknames here is a bad hack.
16427 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16428 # The linker will automatically build a .lib file if we build a DLL.
16429 old_archive_From_new_cmds_F77='true'
16430 # FIXME: Should let the user specify the lib program.
16431 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16432 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16433 enable_shared_with_static_runtimes_F77=yes
16436 darwin* | rhapsody*)
16438 rhapsody* | darwin1.[012])
16439 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16442 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16443 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16445 case ${MACOSX_DEPLOYMENT_TARGET} in
16447 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16450 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16456 archive_cmds_need_lc_F77=no
16457 hardcode_direct_F77=no
16458 hardcode_automatic_F77=yes
16459 hardcode_shlibpath_var_F77=unsupported
16460 whole_archive_flag_spec_F77=''
16461 link_all_deplibs_F77=yes
16462 if test "$GCC" = yes ; then
16463 output_verbose_link_cmd='echo'
16464 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16465 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16467 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}'
16468 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}'
16470 case $cc_basename in
16472 output_verbose_link_cmd='echo'
16473 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16474 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16475 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16476 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}'
16477 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}'
16487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16488 hardcode_libdir_flag_spec_F77='-L$libdir'
16489 hardcode_shlibpath_var_F77=no
16496 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16497 # support. Future versions do this automatically, but an explicit c++rt0.o
16498 # does not break anything, and helps significantly (at the cost of a little
16501 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16502 hardcode_libdir_flag_spec_F77='-R$libdir'
16503 hardcode_direct_F77=yes
16504 hardcode_shlibpath_var_F77=no
16507 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16509 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16510 hardcode_direct_F77=yes
16511 hardcode_minus_L_F77=yes
16512 hardcode_shlibpath_var_F77=no
16515 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16516 freebsd* | kfreebsd*-gnu | dragonfly*)
16517 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16518 hardcode_libdir_flag_spec_F77='-R$libdir'
16519 hardcode_direct_F77=yes
16520 hardcode_shlibpath_var_F77=no
16524 if test "$GCC" = yes; then
16525 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'
16527 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'
16529 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16530 hardcode_libdir_separator_F77=:
16531 hardcode_direct_F77=yes
16533 # hardcode_minus_L: Not really in the search PATH,
16534 # but as the default location of the library.
16535 hardcode_minus_L_F77=yes
16536 export_dynamic_flag_spec_F77='${wl}-E'
16540 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16541 case "$host_cpu" in
16543 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16546 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16550 case "$host_cpu" in
16552 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16555 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16559 if test "$with_gnu_ld" = no; then
16560 case "$host_cpu" in
16562 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16563 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16564 hardcode_libdir_separator_F77=:
16565 hardcode_direct_F77=no
16566 hardcode_shlibpath_var_F77=no
16569 hardcode_libdir_flag_spec_F77='-L$libdir'
16570 hardcode_direct_F77=no
16571 hardcode_shlibpath_var_F77=no
16573 # hardcode_minus_L: Not really in the search PATH,
16574 # but as the default location of the library.
16575 hardcode_minus_L_F77=yes
16578 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16579 hardcode_libdir_separator_F77=:
16580 hardcode_direct_F77=yes
16581 export_dynamic_flag_spec_F77='${wl}-E'
16583 # hardcode_minus_L: Not really in the search PATH,
16584 # but as the default location of the library.
16585 hardcode_minus_L_F77=yes
16591 irix5* | irix6* | nonstopux*)
16592 if test "$GCC" = yes; then
16593 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'
16595 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'
16596 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16598 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16599 hardcode_libdir_separator_F77=:
16600 link_all_deplibs_F77=yes
16604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16605 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16607 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16609 hardcode_libdir_flag_spec_F77='-R$libdir'
16610 hardcode_direct_F77=yes
16611 hardcode_shlibpath_var_F77=no
16615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16616 hardcode_direct_F77=yes
16617 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16618 hardcode_libdir_separator_F77=:
16619 hardcode_shlibpath_var_F77=no
16623 hardcode_direct_F77=yes
16624 hardcode_shlibpath_var_F77=no
16625 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16626 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16627 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16628 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16629 export_dynamic_flag_spec_F77='${wl}-E'
16632 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16633 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16634 hardcode_libdir_flag_spec_F77='-R$libdir'
16637 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16638 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16645 hardcode_libdir_flag_spec_F77='-L$libdir'
16646 hardcode_minus_L_F77=yes
16647 allow_undefined_flag_F77=unsupported
16648 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'
16649 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16653 if test "$GCC" = yes; then
16654 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16655 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'
16657 allow_undefined_flag_F77=' -expect_unresolved \*'
16658 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'
16660 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16661 hardcode_libdir_separator_F77=:
16664 osf4* | osf5*) # as osf3* with the addition of -msym flag
16665 if test "$GCC" = yes; then
16666 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16667 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'
16668 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16670 allow_undefined_flag_F77=' -expect_unresolved \*'
16671 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'
16672 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~
16673 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16675 # Both c and cxx compiler support -rpath directly
16676 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16678 hardcode_libdir_separator_F77=:
16682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16683 hardcode_shlibpath_var_F77=no
16684 export_dynamic_flag_spec_F77='${wl}-Bexport'
16685 runpath_var=LD_RUN_PATH
16686 hardcode_runpath_var=yes
16690 no_undefined_flag_F77=' -z text'
16691 if test "$GCC" = yes; then
16693 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16694 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16695 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16698 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16700 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16702 hardcode_libdir_flag_spec_F77='-R$libdir'
16703 hardcode_shlibpath_var_F77=no
16705 solaris2.[0-5] | solaris2.[0-5].*) ;;
16707 # The compiler driver will combine linker options so we
16708 # cannot just pass the convience library names through
16709 # without $wl, iff we do not link with $LD.
16710 # Luckily, gcc supports the same syntax we need for Sun Studio.
16711 # Supported since Solaris 2.6 (maybe 2.5.1?)
16714 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16716 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16719 link_all_deplibs_F77=yes
16723 if test "x$host_vendor" = xsequent; then
16724 # Use $CC to link under sequent, because it throws in some extra .o
16725 # files that make .init and .fini sections work.
16726 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16728 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16730 hardcode_libdir_flag_spec_F77='-L$libdir'
16731 hardcode_direct_F77=yes
16732 hardcode_minus_L_F77=yes
16733 hardcode_shlibpath_var_F77=no
16737 case $host_vendor in
16739 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740 hardcode_direct_F77=yes # is this really true???
16743 ## LD is ld it makes a PLAMLIB
16744 ## CC just makes a GrossModule.
16745 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16746 reload_cmds_F77='$CC -r -o $output$reload_objs'
16747 hardcode_direct_F77=no
16750 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16751 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16754 runpath_var='LD_RUN_PATH'
16755 hardcode_shlibpath_var_F77=no
16759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760 hardcode_shlibpath_var_F77=no
16761 export_dynamic_flag_spec_F77='-Bexport'
16765 if test -d /usr/nec; then
16766 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767 hardcode_shlibpath_var_F77=no
16768 runpath_var=LD_RUN_PATH
16769 hardcode_runpath_var=yes
16775 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16776 hardcode_direct_F77=yes
16777 hardcode_minus_L_F77=no
16778 hardcode_shlibpath_var_F77=no
16779 hardcode_runpath_var=yes
16780 runpath_var=LD_RUN_PATH
16783 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16784 no_undefined_flag_F77='${wl}-z ${wl}text'
16785 if test "$GCC" = yes; then
16786 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16788 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16790 runpath_var='LD_RUN_PATH'
16791 hardcode_shlibpath_var_F77=no
16795 no_undefined_flag_F77=' -z text'
16796 # $CC -shared without GNU ld will not create a library from C++
16797 # object files and a static libstdc++, better avoid it by now
16798 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16800 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16801 hardcode_libdir_flag_spec_F77=
16802 hardcode_shlibpath_var_F77=no
16803 runpath_var='LD_RUN_PATH'
16807 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808 hardcode_libdir_flag_spec_F77='-L$libdir'
16809 hardcode_shlibpath_var_F77=no
16818 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16819 echo "${ECHO_T}$ld_shlibs_F77" >&6
16820 test "$ld_shlibs_F77" = no && can_build_shared=no
16822 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16823 if test "$GCC" = yes; then
16824 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16828 # Do we need to explicitly link libc?
16830 case "x$archive_cmds_need_lc_F77" in
16832 # Assume -lc should be added
16833 archive_cmds_need_lc_F77=yes
16835 if test "$enable_shared" = yes && test "$GCC" = yes; then
16836 case $archive_cmds_F77 in
16838 # FIXME: we may have to deal with multi-command sequences.
16841 # Test whether the compiler implicitly links with -lc since on some
16842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16843 # to ld, don't add -lc before -lgcc.
16844 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16845 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16850 (eval $ac_compile) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } 2>conftest.err; then
16856 libobjs=conftest.$ac_objext
16858 wl=$lt_prog_compiler_wl_F77
16864 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16865 allow_undefined_flag_F77=
16866 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16867 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }
16872 archive_cmds_need_lc_F77=no
16874 archive_cmds_need_lc_F77=yes
16876 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16878 cat conftest.err 1>&5
16881 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16882 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16889 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16890 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16891 library_names_spec=
16892 libname_spec='lib$name'
16896 postuninstall_cmds=
16900 shlibpath_overrides_runpath=unknown
16902 dynamic_linker="$host_os ld.so"
16903 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16904 if test "$GCC" = yes; then
16905 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16906 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16907 # if the path contains ";" then we assume it to be the separator
16908 # otherwise default to the standard path separator (i.e. ":") - it is
16909 # assumed that no part of a normal pathname contains ";" but that should
16910 # okay in the real world where ";" in dirpaths is itself problematic.
16911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16916 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16918 need_lib_prefix=unknown
16919 hardcode_into_libs=no
16921 # when you set need_version to no, make sure it does not cause -set_version
16922 # flags to be left without arguments
16923 need_version=unknown
16928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16929 shlibpath_var=LIBPATH
16931 # AIX 3 has no versioning support, so we append a major version to the name.
16932 soname_spec='${libname}${release}${shared_ext}$major'
16939 hardcode_into_libs=yes
16940 if test "$host_cpu" = ia64; then
16941 # AIX 5 supports IA64
16942 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16943 shlibpath_var=LD_LIBRARY_PATH
16945 # With GCC up to 2.95.x, collect2 would create an import file
16946 # for dependence libraries. The import file would start with
16947 # the line `#! .'. This would cause the generated library to
16948 # depend on `.', always an invalid library. This was fixed in
16949 # development snapshots of GCC prior to 3.0.
16951 aix4 | aix4.[01] | aix4.[01].*)
16952 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16954 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16957 can_build_shared=no
16961 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16962 # soname into executable. Probably we can add versioning support to
16963 # collect2, so additional links can be useful in future.
16964 if test "$aix_use_runtimelinking" = yes; then
16965 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16966 # instead of lib<name>.a to let people know that these are not
16967 # typical AIX shared libraries.
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16970 # We preserve .a as extension for shared libraries through AIX4.2
16971 # and later when we are not doing run time linking.
16972 library_names_spec='${libname}${release}.a $libname.a'
16973 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LIBPATH
16980 library_names_spec='$libname.ixlibrary $libname.a'
16981 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16982 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'
16986 library_names_spec='${libname}${shared_ext}'
16987 dynamic_linker="$host_os ld.so"
16988 shlibpath_var=LIBRARY_PATH
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16997 shlibpath_var=LD_LIBRARY_PATH
16998 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16999 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17000 # the default ld.so.conf also contains /usr/contrib/lib and
17001 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17002 # libtool to hard-code these into programs
17005 cygwin* | mingw* | pw32*)
17006 version_type=windows
17011 case $GCC,$host_os in
17012 yes,cygwin* | yes,mingw* | yes,pw32*)
17013 library_names_spec='$libname.dll.a'
17014 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17015 postinstall_cmds='base_file=`basename \${file}`~
17016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17017 dldir=$destdir/`dirname \$dlpath`~
17018 test -d \$dldir || mkdir -p \$dldir~
17019 $install_prog $dir/$dlname \$dldir/$dlname'
17020 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17021 dlpath=$dir/\$dldll~
17023 shlibpath_overrides_runpath=yes
17027 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17028 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17029 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17032 # MinGW DLLs use traditional 'lib' prefix
17033 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17035 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17036 # It is most probably a Windows format PATH printed by
17037 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17038 # path with ; separators, and with drive letters. We can handle the
17039 # drive letters (cygwin fileutils understands them), so leave them,
17040 # especially as we might pass files found there to a mingw objdump,
17041 # which wouldn't understand a cygwinified path. Ahh.
17042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17048 # pw32 DLLs use 'pw' prefix rather than 'lib'
17049 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17055 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17058 dynamic_linker='Win32 ld.exe'
17059 # FIXME: first we should search . and the directory the executable is in
17063 darwin* | rhapsody*)
17064 dynamic_linker="$host_os dyld"
17065 version_type=darwin
17068 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17069 soname_spec='${libname}${release}${major}$shared_ext'
17070 shlibpath_overrides_runpath=yes
17071 shlibpath_var=DYLD_LIBRARY_PATH
17072 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17073 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17074 if test "$GCC" = yes; then
17075 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"`
17077 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17079 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 shlibpath_var=LD_LIBRARY_PATH
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 shlibpath_overrides_runpath=no
17103 hardcode_into_libs=yes
17104 dynamic_linker='GNU ld.so'
17107 freebsd* | dragonfly*)
17108 # DragonFly does not have aout. When/if they implement a new
17109 # versioning mechanism, adjust this.
17110 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17111 version_type=freebsd-$objformat
17112 case $version_type in
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17123 shlibpath_var=LD_LIBRARY_PATH
17126 shlibpath_overrides_runpath=yes
17128 freebsd3.[01]* | freebsdelf3.[01]*)
17129 shlibpath_overrides_runpath=yes
17130 hardcode_into_libs=yes
17133 shlibpath_overrides_runpath=no
17134 hardcode_into_libs=yes
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 shlibpath_var=LD_LIBRARY_PATH
17146 hardcode_into_libs=yes
17149 hpux9* | hpux10* | hpux11*)
17150 # Give a soname corresponding to the major version so that dld.sl refuses to
17151 # link against other versions.
17155 case "$host_cpu" in
17158 hardcode_into_libs=yes
17159 dynamic_linker="$host_os dld.so"
17160 shlibpath_var=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17164 if test "X$HPUX_IA64_MODE" = X32; then
17165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17173 hardcode_into_libs=yes
17174 dynamic_linker="$host_os dld.sl"
17175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17184 dynamic_linker="$host_os dld.sl"
17185 shlibpath_var=SHLIB_PATH
17186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 soname_spec='${libname}${release}${shared_ext}$major'
17191 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17192 postinstall_cmds='chmod 555 $lib'
17195 irix5* | irix6* | nonstopux*)
17197 nonstopux*) version_type=nonstopux ;;
17199 if test "$lt_cv_prog_gnu_ld" = yes; then
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17210 irix5* | nonstopux*)
17211 libsuff= shlibsuff=
17214 case $LD in # libtool.m4 will add one of these switches to LD
17215 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17216 libsuff= shlibsuff= libmagic=32-bit;;
17217 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17218 libsuff=32 shlibsuff=N32 libmagic=N32;;
17219 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17220 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17221 *) libsuff= shlibsuff= libmagic=never-match;;
17225 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17226 shlibpath_overrides_runpath=no
17227 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17228 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17229 hardcode_into_libs=yes
17232 # No shared lib support for Linux oldld, aout, or coff.
17233 linux*oldld* | linux*aout* | linux*coff*)
17237 # This must be Linux ELF.
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17243 soname_spec='${libname}${release}${shared_ext}$major'
17244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 shlibpath_overrides_runpath=no
17247 # This implies no fast_install, which is unacceptable.
17248 # Some rework will be needed to allow for fast_install
17249 # before this can be enabled.
17250 hardcode_into_libs=yes
17252 # Append ld.so.conf contents to the search path
17253 if test -f /etc/ld.so.conf; then
17254 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17255 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17258 # We used to test for /lib/ld.so.1 and disable shared libraries on
17259 # powerpc, because MkLinux only supported shared libraries with the
17260 # GNU dynamic linker. Since this was broken with cross compilers,
17261 # most powerpc-linux boxes support dynamic linking these days and
17262 # people can always --disable-shared, the test was removed, and we
17263 # assume the GNU/Linux dynamic linker is in use.
17264 dynamic_linker='GNU/Linux ld.so'
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17272 soname_spec='${libname}${release}${shared_ext}$major'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 shlibpath_overrides_runpath=no
17275 hardcode_into_libs=yes
17276 dynamic_linker='GNU ld.so'
17283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17286 dynamic_linker='NetBSD (a.out) ld.so'
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 dynamic_linker='NetBSD ld.elf_so'
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=yes
17294 hardcode_into_libs=yes
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 shlibpath_var=LD_LIBRARY_PATH
17301 shlibpath_overrides_runpath=yes
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 shlibpath_var=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath=yes
17317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17320 *) need_version=no ;;
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17327 openbsd2.[89] | openbsd2.[89].*)
17328 shlibpath_overrides_runpath=no
17331 shlibpath_overrides_runpath=yes
17335 shlibpath_overrides_runpath=yes
17340 libname_spec='$name'
17343 library_names_spec='$libname${shared_ext} $libname.a'
17344 dynamic_linker='OS/2 ld.exe'
17345 shlibpath_var=LIBPATH
17348 osf3* | osf4* | osf5*)
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17361 soname_spec='${libname}${release}${shared_ext}$major'
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 shlibpath_var=LD_LIBRARY_PATH
17370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 soname_spec='${libname}${release}${shared_ext}$major'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 shlibpath_overrides_runpath=yes
17374 hardcode_into_libs=yes
17375 # ldd complains unless libraries are executable
17376 postinstall_cmds='chmod +x $lib'
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 shlibpath_overrides_runpath=yes
17385 if test "$with_gnu_ld" = yes; then
17391 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 case $host_vendor in
17398 shlibpath_overrides_runpath=no
17400 export_dynamic_flag_spec='${wl}-Blargedynsym'
17401 runpath_var=LD_RUN_PATH
17409 shlibpath_overrides_runpath=no
17410 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17416 if test -d /usr/nec ;then
17418 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17419 soname_spec='$libname${shared_ext}.$major'
17420 shlibpath_var=LD_LIBRARY_PATH
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427 soname_spec='${libname}${release}${shared_ext}$major'
17428 shlibpath_var=LD_LIBRARY_PATH
17435 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17436 echo "${ECHO_T}$dynamic_linker" >&6
17437 test "$dynamic_linker" = no && can_build_shared=no
17439 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17440 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17441 hardcode_action_F77=
17442 if test -n "$hardcode_libdir_flag_spec_F77" || \
17443 test -n "$runpath_var_F77" || \
17444 test "X$hardcode_automatic_F77" = "Xyes" ; then
17446 # We can hardcode non-existant directories.
17447 if test "$hardcode_direct_F77" != no &&
17448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17449 # have to relink, otherwise we might link with an installed library
17450 # when we should be linking with a yet-to-be-installed one
17451 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17452 test "$hardcode_minus_L_F77" != no; then
17453 # Linking always hardcodes the temporary library directory.
17454 hardcode_action_F77=relink
17456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17457 hardcode_action_F77=immediate
17460 # We cannot hardcode anything, or else we can only hardcode existing
17462 hardcode_action_F77=unsupported
17464 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17465 echo "${ECHO_T}$hardcode_action_F77" >&6
17467 if test "$hardcode_action_F77" = relink; then
17468 # Fast installation is not supported
17469 enable_fast_install=no
17470 elif test "$shlibpath_overrides_runpath" = yes ||
17471 test "$enable_shared" = no; then
17472 # Fast installation is not necessary
17473 enable_fast_install=needless
17478 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17479 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17480 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17481 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17482 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17483 echo "$as_me:$LINENO: result: yes" >&5
17484 echo "${ECHO_T}yes" >&6
17486 # FIXME - insert some real tests, host_os isn't really good enough
17489 if test -n "$STRIP" ; then
17490 striplib="$STRIP -x"
17491 echo "$as_me:$LINENO: result: yes" >&5
17492 echo "${ECHO_T}yes" >&6
17494 echo "$as_me:$LINENO: result: no" >&5
17495 echo "${ECHO_T}no" >&6
17499 echo "$as_me:$LINENO: result: no" >&5
17500 echo "${ECHO_T}no" >&6
17507 # The else clause should only fire when bootstrapping the
17508 # libtool distribution, otherwise you forgot to ship ltmain.sh
17509 # with your package, and you will get complaints that there are
17510 # no rules to generate ltmain.sh.
17511 if test -f "$ltmain"; then
17512 # See if we are running on zsh, and set the options which allow our commands through
17513 # without removal of \ escapes.
17514 if test -n "${ZSH_VERSION+set}" ; then
17515 setopt NO_GLOB_SUBST
17517 # Now quote all the things that may contain metacharacters while being
17518 # careful not to overquote the AC_SUBSTed values. We take copies of the
17519 # variables and quote the copies for generation of the libtool script.
17520 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17522 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17523 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17524 deplibs_check_method reload_flag reload_cmds need_locks \
17525 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17526 lt_cv_sys_global_symbol_to_c_name_address \
17527 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17528 old_postinstall_cmds old_postuninstall_cmds \
17532 lt_prog_compiler_wl_F77 \
17533 lt_prog_compiler_pic_F77 \
17534 lt_prog_compiler_static_F77 \
17535 lt_prog_compiler_no_builtin_flag_F77 \
17536 export_dynamic_flag_spec_F77 \
17537 thread_safe_flag_spec_F77 \
17538 whole_archive_flag_spec_F77 \
17539 enable_shared_with_static_runtimes_F77 \
17540 old_archive_cmds_F77 \
17541 old_archive_from_new_cmds_F77 \
17542 predep_objects_F77 \
17543 postdep_objects_F77 \
17546 compiler_lib_search_path_F77 \
17548 archive_expsym_cmds_F77 \
17549 postinstall_cmds_F77 \
17550 postuninstall_cmds_F77 \
17551 old_archive_from_expsyms_cmds_F77 \
17552 allow_undefined_flag_F77 \
17553 no_undefined_flag_F77 \
17554 export_symbols_cmds_F77 \
17555 hardcode_libdir_flag_spec_F77 \
17556 hardcode_libdir_flag_spec_ld_F77 \
17557 hardcode_libdir_separator_F77 \
17558 hardcode_automatic_F77 \
17560 module_expsym_cmds_F77 \
17561 lt_cv_prog_compiler_c_o_F77 \
17562 exclude_expsyms_F77 \
17563 include_expsyms_F77; do
17566 old_archive_cmds_F77 | \
17567 old_archive_from_new_cmds_F77 | \
17568 archive_cmds_F77 | \
17569 archive_expsym_cmds_F77 | \
17570 module_cmds_F77 | \
17571 module_expsym_cmds_F77 | \
17572 old_archive_from_expsyms_cmds_F77 | \
17573 export_symbols_cmds_F77 | \
17574 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17575 postinstall_cmds | postuninstall_cmds | \
17576 old_postinstall_cmds | old_postuninstall_cmds | \
17577 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17578 # Double-quote double-evaled strings.
17579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17588 *'\$0 --fallback-echo"')
17589 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17595 cat <<__EOF__ >> "$cfgfile"
17596 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17598 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17600 # Shell to use when invoking shell scripts.
17603 # Whether or not to build shared libraries.
17604 build_libtool_libs=$enable_shared
17606 # Whether or not to build static libraries.
17607 build_old_libs=$enable_static
17609 # Whether or not to add -lc for building shared libraries.
17610 build_libtool_need_lc=$archive_cmds_need_lc_F77
17612 # Whether or not to disallow shared libs when runtime libs are static
17613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17615 # Whether or not to optimize for fast installation.
17616 fast_install=$enable_fast_install
17619 host_alias=$host_alias
17623 # The build system.
17624 build_alias=$build_alias
17628 # An echo program that does not interpret backslashes.
17633 AR_FLAGS=$lt_AR_FLAGS
17638 # A language-specific compiler.
17639 CC=$lt_compiler_F77
17641 # Is the compiler the GNU C compiler?
17647 # The linker used to build libraries.
17650 # Whether we need hard or soft links.
17653 # A BSD-compatible nm program.
17656 # A symbol stripping program
17659 # Used to examine libraries when file_magic_cmd begins "file"
17660 MAGIC_CMD=$MAGIC_CMD
17662 # Used on cygwin: DLL creation program.
17665 # Used on cygwin: object dumper.
17668 # Used on cygwin: assembler.
17671 # The name of the directory that contains temporary libtool files.
17674 # How to create reloadable object files.
17675 reload_flag=$lt_reload_flag
17676 reload_cmds=$lt_reload_cmds
17678 # How to pass a linker flag through the compiler.
17679 wl=$lt_lt_prog_compiler_wl_F77
17681 # Object file suffix (normally "o").
17682 objext="$ac_objext"
17684 # Old archive suffix (normally "a").
17687 # Shared library suffix (normally ".so").
17688 shrext_cmds='$shrext_cmds'
17690 # Executable file suffix (normally "").
17693 # Additional compiler flags for building library objects.
17694 pic_flag=$lt_lt_prog_compiler_pic_F77
17697 # What is the maximum length of a command?
17698 max_cmd_len=$lt_cv_sys_max_cmd_len
17700 # Does compiler simultaneously support -c and -o options?
17701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17703 # Must we lock files when doing compilation?
17704 need_locks=$lt_need_locks
17706 # Do we need the lib prefix for modules?
17707 need_lib_prefix=$need_lib_prefix
17709 # Do we need a version for libraries?
17710 need_version=$need_version
17712 # Whether dlopen is supported.
17713 dlopen_support=$enable_dlopen
17715 # Whether dlopen of programs is supported.
17716 dlopen_self=$enable_dlopen_self
17718 # Whether dlopen of statically linked programs is supported.
17719 dlopen_self_static=$enable_dlopen_self_static
17721 # Compiler flag to prevent dynamic linking.
17722 link_static_flag=$lt_lt_prog_compiler_static_F77
17724 # Compiler flag to turn off builtin functions.
17725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17727 # Compiler flag to allow reflexive dlopens.
17728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17730 # Compiler flag to generate shared objects directly from archives.
17731 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17733 # Compiler flag to generate thread-safe objects.
17734 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17736 # Library versioning type.
17737 version_type=$version_type
17739 # Format of library name prefix.
17740 libname_spec=$lt_libname_spec
17742 # List of archive names. First name is the real one, the rest are links.
17743 # The last name is the one that the linker finds with -lNAME.
17744 library_names_spec=$lt_library_names_spec
17746 # The coded name of the library, if different from the real name.
17747 soname_spec=$lt_soname_spec
17749 # Commands used to build and install an old-style archive.
17751 old_archive_cmds=$lt_old_archive_cmds_F77
17752 old_postinstall_cmds=$lt_old_postinstall_cmds
17753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17755 # Create an old-style archive from a shared archive.
17756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17758 # Create a temporary old-style archive to link instead of a shared archive.
17759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17761 # Commands used to build and install a shared archive.
17762 archive_cmds=$lt_archive_cmds_F77
17763 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17764 postinstall_cmds=$lt_postinstall_cmds
17765 postuninstall_cmds=$lt_postuninstall_cmds
17767 # Commands used to build a loadable module (assumed same as above if empty)
17768 module_cmds=$lt_module_cmds_F77
17769 module_expsym_cmds=$lt_module_expsym_cmds_F77
17771 # Commands to strip libraries.
17772 old_striplib=$lt_old_striplib
17773 striplib=$lt_striplib
17775 # Dependencies to place before the objects being linked to create a
17777 predep_objects=$lt_predep_objects_F77
17779 # Dependencies to place after the objects being linked to create a
17781 postdep_objects=$lt_postdep_objects_F77
17783 # Dependencies to place before the objects being linked to create a
17785 predeps=$lt_predeps_F77
17787 # Dependencies to place after the objects being linked to create a
17789 postdeps=$lt_postdeps_F77
17791 # The library search path used internally by the compiler when linking
17792 # a shared library.
17793 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17795 # Method to check whether dependent libraries are shared objects.
17796 deplibs_check_method=$lt_deplibs_check_method
17798 # Command to use when deplibs_check_method == file_magic.
17799 file_magic_cmd=$lt_file_magic_cmd
17801 # Flag that allows shared libraries with undefined symbols to be built.
17802 allow_undefined_flag=$lt_allow_undefined_flag_F77
17804 # Flag that forces no undefined symbols.
17805 no_undefined_flag=$lt_no_undefined_flag_F77
17807 # Commands used to finish a libtool library installation in a directory.
17808 finish_cmds=$lt_finish_cmds
17810 # Same as above, but a single script fragment to be evaled but not shown.
17811 finish_eval=$lt_finish_eval
17813 # Take the output of nm and produce a listing of raw symbols and C names.
17814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17816 # Transform the output of nm in a proper C declaration
17817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17819 # Transform the output of nm in a C name address pair
17820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17822 # This is the shared library runtime path variable.
17823 runpath_var=$runpath_var
17825 # This is the shared library path variable.
17826 shlibpath_var=$shlibpath_var
17828 # Is shlibpath searched before the hard-coded library search path?
17829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17831 # How to hardcode a shared library path into an executable.
17832 hardcode_action=$hardcode_action_F77
17834 # Whether we should hardcode library paths into libraries.
17835 hardcode_into_libs=$hardcode_into_libs
17837 # Flag to hardcode \$libdir into a binary during linking.
17838 # This must work even if \$libdir does not exist.
17839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17841 # If ld is used when linking, flag to hardcode \$libdir into
17842 # a binary during linking. This must work even if \$libdir does
17844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17846 # Whether we need a single -rpath flag with a separated argument.
17847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17850 # resulting binary.
17851 hardcode_direct=$hardcode_direct_F77
17853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17854 # resulting binary.
17855 hardcode_minus_L=$hardcode_minus_L_F77
17857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17858 # the resulting binary.
17859 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17861 # Set to yes if building a shared library automatically hardcodes DIR into the library
17862 # and all subsequent libraries and executables linked against it.
17863 hardcode_automatic=$hardcode_automatic_F77
17865 # Variables whose values should be saved in libtool wrapper scripts and
17866 # restored at relink time.
17867 variables_saved_for_relink="$variables_saved_for_relink"
17869 # Whether libtool must link a program against all its dependency libraries.
17870 link_all_deplibs=$link_all_deplibs_F77
17872 # Compile-time system search path for libraries
17873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17875 # Run-time system search path for libraries
17876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17878 # Fix the shell variable \$srcfile for the compiler.
17879 fix_srcfile_path="$fix_srcfile_path_F77"
17881 # Set to yes if exported symbols are required.
17882 always_export_symbols=$always_export_symbols_F77
17884 # The commands to list exported symbols.
17885 export_symbols_cmds=$lt_export_symbols_cmds_F77
17887 # The commands to extract the exported symbol list from a shared archive.
17888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17890 # Symbols that should not be listed in the preloaded symbols.
17891 exclude_expsyms=$lt_exclude_expsyms_F77
17893 # Symbols that must always be exported.
17894 include_expsyms=$lt_include_expsyms_F77
17896 # ### END LIBTOOL TAG CONFIG: $tagname
17902 # If there is no Makefile yet, we rely on a make rule to execute
17903 # `config.status --recheck' to rerun these tests and create the
17904 # libtool script then.
17905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17906 if test -f "$ltmain_in"; then
17907 test -f Makefile && make "$ltmain"
17913 ac_cpp='$CPP $CPPFLAGS'
17914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17926 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17930 # Source file extension for Java test sources.
17933 # Object file extension for compiled Java test sources.
17937 # Code to be used in simple compile tests
17938 lt_simple_compile_test_code="class foo {}\n"
17940 # Code to be used in simple link tests
17941 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17943 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17945 # If no C compiler was specified, use CC.
17948 # Allow CC to be a program name with arguments.
17952 # save warnings/boilerplate of simple test code
17953 ac_outfile=conftest.$ac_objext
17954 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17955 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17956 _lt_compiler_boilerplate=`cat conftest.err`
17959 ac_outfile=conftest.$ac_objext
17960 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17961 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17962 _lt_linker_boilerplate=`cat conftest.err`
17966 # Allow CC to be a program name with arguments.
17971 for cc_temp in $compiler""; do
17973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17979 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17982 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17983 archive_cmds_need_lc_GCJ=no
17985 old_archive_cmds_GCJ=$old_archive_cmds
17988 lt_prog_compiler_no_builtin_flag_GCJ=
17990 if test "$GCC" = yes; then
17991 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17994 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17995 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17996 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 lt_cv_prog_compiler_rtti_exceptions=no
18000 ac_outfile=conftest.$ac_objext
18001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18002 lt_compiler_flag="-fno-rtti -fno-exceptions"
18003 # Insert the option either (1) after the last *FLAGS variable, or
18004 # (2) before a word containing "conftest.", or (3) at the end.
18005 # Note that $ac_compile itself does not contain backslashes and begins
18006 # with a dollar sign (not a hyphen), so the echo should work correctly.
18007 # The option is referenced via a variable to avoid confusing sed.
18008 lt_compile=`echo "$ac_compile" | $SED \
18009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18011 -e 's:$: $lt_compiler_flag:'`
18012 (eval echo "\"\$as_me:18012: $lt_compile\"" >&5)
18013 (eval "$lt_compile" 2>conftest.err)
18015 cat conftest.err >&5
18016 echo "$as_me:18016: \$? = $ac_status" >&5
18017 if (exit $ac_status) && test -s "$ac_outfile"; then
18018 # The compiler can only warn and ignore the option if not recognized
18019 # So say no if there are warnings other than the usual output.
18020 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18021 $SED '/^$/d' conftest.err >conftest.er2
18022 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18023 lt_cv_prog_compiler_rtti_exceptions=yes
18029 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18030 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18032 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18033 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18040 lt_prog_compiler_wl_GCJ=
18041 lt_prog_compiler_pic_GCJ=
18042 lt_prog_compiler_static_GCJ=
18044 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18045 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18047 if test "$GCC" = yes; then
18048 lt_prog_compiler_wl_GCJ='-Wl,'
18049 lt_prog_compiler_static_GCJ='-static'
18053 # All AIX code is PIC.
18054 if test "$host_cpu" = ia64; then
18055 # AIX 5 now supports IA64 processor
18056 lt_prog_compiler_static_GCJ='-Bstatic'
18061 # FIXME: we need at least 68020 code to build shared libraries, but
18062 # adding the `-m68020' flag to GCC prevents building anything better,
18064 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18067 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18068 # PIC is the default for these OSes.
18071 mingw* | pw32* | os2*)
18072 # This hack is so that the source file can tell whether it is being
18073 # built for inclusion in a dll (and should export symbols for example).
18074 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18077 darwin* | rhapsody*)
18078 # PIC is the default on this platform
18079 # Common symbols not allowed in MH_DYLIB files
18080 lt_prog_compiler_pic_GCJ='-fno-common'
18084 # Just because we use GCC doesn't mean we suddenly get shared libraries
18085 # on systems that don't support them.
18086 lt_prog_compiler_can_build_shared_GCJ=no
18091 if test -d /usr/nec; then
18092 lt_prog_compiler_pic_GCJ=-Kconform_pic
18097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18098 # not for PA HP-UX.
18099 case "$host_cpu" in
18104 lt_prog_compiler_pic_GCJ='-fPIC'
18110 lt_prog_compiler_pic_GCJ='-fPIC'
18114 # PORTME Check for flag to pass linker flags through the system compiler.
18117 lt_prog_compiler_wl_GCJ='-Wl,'
18118 if test "$host_cpu" = ia64; then
18119 # AIX 5 now supports IA64 processor
18120 lt_prog_compiler_static_GCJ='-Bstatic'
18122 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18126 # PIC is the default on this platform
18127 # Common symbols not allowed in MH_DYLIB files
18128 case $cc_basename in
18130 lt_prog_compiler_pic_GCJ='-qnocommon'
18131 lt_prog_compiler_wl_GCJ='-Wl,'
18136 mingw* | pw32* | os2*)
18137 # This hack is so that the source file can tell whether it is being
18138 # built for inclusion in a dll (and should export symbols for example).
18139 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18142 hpux9* | hpux10* | hpux11*)
18143 lt_prog_compiler_wl_GCJ='-Wl,'
18144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18145 # not for PA HP-UX.
18146 case "$host_cpu" in
18151 lt_prog_compiler_pic_GCJ='+Z'
18154 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18155 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18158 irix5* | irix6* | nonstopux*)
18159 lt_prog_compiler_wl_GCJ='-Wl,'
18160 # PIC (with -KPIC) is the default.
18161 lt_prog_compiler_static_GCJ='-non_shared'
18165 lt_prog_compiler_pic_GCJ='-KPIC'
18166 lt_prog_compiler_static_GCJ='-Bstatic'
18170 case $cc_basename in
18172 lt_prog_compiler_wl_GCJ='-Wl,'
18173 lt_prog_compiler_pic_GCJ='-KPIC'
18174 lt_prog_compiler_static_GCJ='-static'
18176 pgcc* | pgf77* | pgf90*)
18177 # Portland Group compilers (*not* the Pentium gcc compiler,
18178 # which looks to be a dead project)
18179 lt_prog_compiler_wl_GCJ='-Wl,'
18180 lt_prog_compiler_pic_GCJ='-fpic'
18181 lt_prog_compiler_static_GCJ='-static'
18184 lt_prog_compiler_wl_GCJ='-Wl,'
18185 # All Alpha code is PIC.
18186 lt_prog_compiler_static_GCJ='-non_shared'
18191 osf3* | osf4* | osf5*)
18192 lt_prog_compiler_wl_GCJ='-Wl,'
18193 # All OSF/1 code is PIC.
18194 lt_prog_compiler_static_GCJ='-non_shared'
18198 lt_prog_compiler_pic_GCJ='-Kpic'
18199 lt_prog_compiler_static_GCJ='-dn'
18203 lt_prog_compiler_pic_GCJ='-KPIC'
18204 lt_prog_compiler_static_GCJ='-Bstatic'
18205 case $cc_basename in
18206 f77* | f90* | f95*)
18207 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18209 lt_prog_compiler_wl_GCJ='-Wl,';;
18214 lt_prog_compiler_wl_GCJ='-Qoption ld '
18215 lt_prog_compiler_pic_GCJ='-PIC'
18216 lt_prog_compiler_static_GCJ='-Bstatic'
18219 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18220 lt_prog_compiler_wl_GCJ='-Wl,'
18221 lt_prog_compiler_pic_GCJ='-KPIC'
18222 lt_prog_compiler_static_GCJ='-Bstatic'
18226 if test -d /usr/nec ;then
18227 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18228 lt_prog_compiler_static_GCJ='-Bstatic'
18233 lt_prog_compiler_wl_GCJ='-Wl,'
18234 lt_prog_compiler_can_build_shared_GCJ=no
18238 lt_prog_compiler_pic_GCJ='-pic'
18239 lt_prog_compiler_static_GCJ='-Bstatic'
18243 lt_prog_compiler_can_build_shared_GCJ=no
18248 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18249 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18252 # Check to make sure the PIC flag actually works.
18254 if test -n "$lt_prog_compiler_pic_GCJ"; then
18256 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18257 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18258 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 lt_prog_compiler_pic_works_GCJ=no
18262 ac_outfile=conftest.$ac_objext
18263 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18264 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18265 # Insert the option either (1) after the last *FLAGS variable, or
18266 # (2) before a word containing "conftest.", or (3) at the end.
18267 # Note that $ac_compile itself does not contain backslashes and begins
18268 # with a dollar sign (not a hyphen), so the echo should work correctly.
18269 # The option is referenced via a variable to avoid confusing sed.
18270 lt_compile=`echo "$ac_compile" | $SED \
18271 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18273 -e 's:$: $lt_compiler_flag:'`
18274 (eval echo "\"\$as_me:18274: $lt_compile\"" >&5)
18275 (eval "$lt_compile" 2>conftest.err)
18277 cat conftest.err >&5
18278 echo "$as_me:18278: \$? = $ac_status" >&5
18279 if (exit $ac_status) && test -s "$ac_outfile"; then
18280 # The compiler can only warn and ignore the option if not recognized
18281 # So say no if there are warnings other than the usual output.
18282 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18283 $SED '/^$/d' conftest.err >conftest.er2
18284 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18285 lt_prog_compiler_pic_works_GCJ=yes
18291 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18292 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18294 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18295 case $lt_prog_compiler_pic_GCJ in
18297 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18300 lt_prog_compiler_pic_GCJ=
18301 lt_prog_compiler_can_build_shared_GCJ=no
18306 # For platforms which do not support PIC, -DPIC is meaningless:
18308 lt_prog_compiler_pic_GCJ=
18311 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18315 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18316 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18317 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 lt_cv_prog_compiler_c_o_GCJ=no
18321 $rm -r conftest 2>/dev/null
18325 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18327 lt_compiler_flag="-o out/conftest2.$ac_objext"
18328 # Insert the option either (1) after the last *FLAGS variable, or
18329 # (2) before a word containing "conftest.", or (3) at the end.
18330 # Note that $ac_compile itself does not contain backslashes and begins
18331 # with a dollar sign (not a hyphen), so the echo should work correctly.
18332 lt_compile=`echo "$ac_compile" | $SED \
18333 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18335 -e 's:$: $lt_compiler_flag:'`
18336 (eval echo "\"\$as_me:18336: $lt_compile\"" >&5)
18337 (eval "$lt_compile" 2>out/conftest.err)
18339 cat out/conftest.err >&5
18340 echo "$as_me:18340: \$? = $ac_status" >&5
18341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18343 # The compiler can only warn and ignore the option if not recognized
18344 # So say no if there are warnings
18345 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18346 $SED '/^$/d' out/conftest.err >out/conftest.er2
18347 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18348 lt_cv_prog_compiler_c_o_GCJ=yes
18353 # SGI C++ compiler will create directory out/ii_files/ for
18354 # template instantiation
18355 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18356 $rm out/* && rmdir out
18362 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18363 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18366 hard_links="nottested"
18367 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18368 # do not overwrite the value of need_locks provided by the user
18369 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18370 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18375 ln conftest.a conftest.b 2>&5 || hard_links=no
18376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18377 echo "$as_me:$LINENO: result: $hard_links" >&5
18378 echo "${ECHO_T}$hard_links" >&6
18379 if test "$hard_links" = no; then
18380 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18381 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18388 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18389 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18392 allow_undefined_flag_GCJ=
18393 enable_shared_with_static_runtimes_GCJ=no
18395 archive_expsym_cmds_GCJ=
18396 old_archive_From_new_cmds_GCJ=
18397 old_archive_from_expsyms_cmds_GCJ=
18398 export_dynamic_flag_spec_GCJ=
18399 whole_archive_flag_spec_GCJ=
18400 thread_safe_flag_spec_GCJ=
18401 hardcode_libdir_flag_spec_GCJ=
18402 hardcode_libdir_flag_spec_ld_GCJ=
18403 hardcode_libdir_separator_GCJ=
18404 hardcode_direct_GCJ=no
18405 hardcode_minus_L_GCJ=no
18406 hardcode_shlibpath_var_GCJ=unsupported
18407 link_all_deplibs_GCJ=unknown
18408 hardcode_automatic_GCJ=no
18410 module_expsym_cmds_GCJ=
18411 always_export_symbols_GCJ=no
18412 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18413 # include_expsyms should be a list of space-separated symbols to be *always*
18414 # included in the symbol list
18415 include_expsyms_GCJ=
18416 # exclude_expsyms can be an extended regexp of symbols to exclude
18417 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18418 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18419 # as well as any symbol that contains `d'.
18420 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18421 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18422 # platforms (ab)use it in PIC code, but their linkers get confused if
18423 # the symbol is explicitly referenced. Since portable code cannot
18424 # rely on this symbol name, it's probably fine to never include it in
18425 # preloaded symbol tables.
18426 extract_expsyms_cmds=
18427 # Just being paranoid about ensuring that cc_basename is set.
18428 for cc_temp in $compiler""; do
18430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18436 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18439 cygwin* | mingw* | pw32*)
18440 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18441 # When not using gcc, we currently assume that we are using
18442 # Microsoft Visual C++.
18443 if test "$GCC" != yes; then
18453 if test "$with_gnu_ld" = yes; then
18454 # If archive_cmds runs LD, not CC, wlarc should be empty
18457 # Set some defaults for GNU ld with shared library support. These
18458 # are reset later if shared libraries are not supported. Putting them
18459 # here allows them to be overridden if necessary.
18460 runpath_var=LD_RUN_PATH
18461 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18462 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18463 # ancient GNU ld didn't support --whole-archive et. al.
18464 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18465 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18467 whole_archive_flag_spec_GCJ=
18469 supports_anon_versioning=no
18470 case `$LD -v 2>/dev/null` in
18471 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18472 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18473 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18474 *\ 2.11.*) ;; # other 2.11 versions
18475 *) supports_anon_versioning=yes ;;
18478 # See if GNU ld supports shared libraries.
18480 aix3* | aix4* | aix5*)
18481 # On AIX/PPC, the GNU linker is very broken
18482 if test "$host_cpu" != ia64; then
18486 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18487 *** to be unable to reliably create shared libraries on AIX.
18488 *** Therefore, libtool is disabling shared libraries support. If you
18489 *** really care for shared libraries, you may want to modify your PATH
18490 *** so that a non-GNU linker is found, and then restart.
18497 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)'
18498 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18499 hardcode_minus_L_GCJ=yes
18501 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18502 # that the semantics of dynamic libraries on AmigaOS, at least up
18503 # to version 4, is to share data among multiple programs linked
18504 # with the same dynamic library. Since this doesn't match the
18505 # behavior of shared libraries on other platforms, we can't use
18511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18512 allow_undefined_flag_GCJ=unsupported
18513 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18514 # support --undefined. This deserves some investigation. FIXME
18515 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18521 cygwin* | mingw* | pw32*)
18522 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18523 # as there is no search path for DLLs.
18524 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18525 allow_undefined_flag_GCJ=unsupported
18526 always_export_symbols_GCJ=no
18527 enable_shared_with_static_runtimes_GCJ=yes
18528 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18530 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18531 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18532 # If the export-symbols file already is a .def file (1st line
18533 # is EXPORTS), use it as is; otherwise, prepend...
18534 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18535 cp $export_symbols $output_objdir/$soname.def;
18537 echo EXPORTS > $output_objdir/$soname.def;
18538 cat $export_symbols >> $output_objdir/$soname.def;
18540 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18549 case $cc_basename,$host_cpu in
18550 pgcc*) # Portland Group C compiler
18551 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18552 tmp_addflag=' $pic_flag'
18554 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18555 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18556 tmp_addflag=' $pic_flag -Mnomain' ;;
18557 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18558 tmp_addflag=' -i_dynamic' ;;
18559 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18560 tmp_addflag=' -i_dynamic -nofor_main' ;;
18561 ifc* | ifort*) # Intel Fortran compiler
18562 tmp_addflag=' -nofor_main' ;;
18564 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18566 if test $supports_anon_versioning = yes; then
18567 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18568 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18569 $echo "local: *; };" >> $output_objdir/$libname.ver~
18570 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18579 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18582 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18583 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18588 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18593 *** create shared libraries on Solaris systems. Therefore, libtool
18594 *** is disabling shared libraries support. We urge you to upgrade GNU
18595 *** binutils to release 2.9.1 or newer. Another option is to modify
18596 *** your PATH or compiler configuration so that the native linker is
18597 *** used, and then restart.
18600 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18601 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18602 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18609 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18611 hardcode_direct_GCJ=yes
18612 hardcode_shlibpath_var_GCJ=no
18616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18617 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18625 if test "$ld_shlibs_GCJ" = no; then
18627 hardcode_libdir_flag_spec_GCJ=
18628 export_dynamic_flag_spec_GCJ=
18629 whole_archive_flag_spec_GCJ=
18632 # PORTME fill in a description of your system's linker (not GNU ld)
18635 allow_undefined_flag_GCJ=unsupported
18636 always_export_symbols_GCJ=yes
18637 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'
18638 # Note: this linker hardcodes the directories in LIBPATH if there
18639 # are no directories specified by -L.
18640 hardcode_minus_L_GCJ=yes
18641 if test "$GCC" = yes && test -z "$link_static_flag"; then
18642 # Neither direct hardcoding nor static linking is supported with a
18644 hardcode_direct_GCJ=unsupported
18649 if test "$host_cpu" = ia64; then
18650 # On IA64, the linker does run time linking by default, so we don't
18651 # have to do anything special.
18652 aix_use_runtimelinking=no
18653 exp_sym_flag='-Bexport'
18656 # If we're using GNU nm, then we don't want the "-C" option.
18657 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18658 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18659 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'
18661 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'
18663 aix_use_runtimelinking=no
18665 # Test if we are trying to use run time linking or normal
18666 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18667 # need to do runtime linking.
18668 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18669 for ld_flag in $LDFLAGS; do
18670 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18671 aix_use_runtimelinking=yes
18677 exp_sym_flag='-bexport'
18678 no_entry_flag='-bnoentry'
18681 # When large executables or shared objects are built, AIX ld can
18682 # have problems creating the table of contents. If linking a library
18683 # or program results in "error TOC overflow" add -mminimal-toc to
18684 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18685 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18687 archive_cmds_GCJ=''
18688 hardcode_direct_GCJ=yes
18689 hardcode_libdir_separator_GCJ=':'
18690 link_all_deplibs_GCJ=yes
18692 if test "$GCC" = yes; then
18693 case $host_os in aix4.[012]|aix4.[012].*)
18694 # We only want to do this on AIX 4.2 and lower, the check
18695 # below for broken collect2 doesn't work under 4.3+
18696 collect2name=`${CC} -print-prog-name=collect2`
18697 if test -f "$collect2name" && \
18698 strings "$collect2name" | grep resolve_lib_name >/dev/null
18700 # We have reworked collect2
18701 hardcode_direct_GCJ=yes
18703 # We have old collect2
18704 hardcode_direct_GCJ=unsupported
18705 # It fails to find uninstalled libraries when the uninstalled
18706 # path is not listed in the libpath. Setting hardcode_minus_L
18707 # to unsupported forces relinking
18708 hardcode_minus_L_GCJ=yes
18709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18710 hardcode_libdir_separator_GCJ=
18713 shared_flag='-shared'
18714 if test "$aix_use_runtimelinking" = yes; then
18715 shared_flag="$shared_flag "'${wl}-G'
18719 if test "$host_cpu" = ia64; then
18720 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18721 # chokes on -Wl,-G. The following line is correct:
18724 if test "$aix_use_runtimelinking" = yes; then
18725 shared_flag='${wl}-G'
18727 shared_flag='${wl}-bM:SRE'
18732 # It seems that -bexpall does not export symbols beginning with
18733 # underscore (_), so it is better to generate a list of symbols to export.
18734 always_export_symbols_GCJ=yes
18735 if test "$aix_use_runtimelinking" = yes; then
18736 # Warning - without using the other runtime loading flags (-brtl),
18737 # -berok will link without error, but may produce a broken library.
18738 allow_undefined_flag_GCJ='-berok'
18739 # Determine the default libpath from the value encoded in an empty executable.
18740 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757 (eval $ac_link) 2>conftest.er1
18759 grep -v '^ *+' conftest.er1 >conftest.err
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
18764 { ac_try='test -z "$ac_c_werror_flag"
18765 || test ! -s conftest.err'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; } &&
18771 { ac_try='test -s conftest$ac_exeext'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18780 # Check for a 64-bit object if we didn't find anything.
18781 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; }
18784 echo "$as_me: failed program was:" >&5
18785 sed 's/^/| /' conftest.$ac_ext >&5
18788 rm -f conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18792 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18793 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"
18795 if test "$host_cpu" = ia64; then
18796 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18797 allow_undefined_flag_GCJ="-z nodefs"
18798 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"
18800 # Determine the default libpath from the value encoded in an empty executable.
18801 cat >conftest.$ac_ext <<_ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18816 rm -f conftest.$ac_objext conftest$ac_exeext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18818 (eval $ac_link) 2>conftest.er1
18820 grep -v '^ *+' conftest.er1 >conftest.err
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try='test -z "$ac_c_werror_flag"
18826 || test ! -s conftest.err'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest$ac_exeext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18839 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18841 # Check for a 64-bit object if we didn't find anything.
18842 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; }
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18849 rm -f conftest.err conftest.$ac_objext \
18850 conftest$ac_exeext conftest.$ac_ext
18851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18853 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18854 # Warning - without using the other run time loading flags,
18855 # -berok will link without error, but may produce a broken library.
18856 no_undefined_flag_GCJ=' ${wl}-bernotok'
18857 allow_undefined_flag_GCJ=' ${wl}-berok'
18858 # -bexpall does not export symbols beginning with underscore (_)
18859 always_export_symbols_GCJ=yes
18860 # Exported symbols can be pulled into shared objects from archives
18861 whole_archive_flag_spec_GCJ=' '
18862 archive_cmds_need_lc_GCJ=yes
18863 # This is similar to how AIX traditionally builds it's shared libraries.
18864 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'
18870 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)'
18871 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18872 hardcode_minus_L_GCJ=yes
18873 # see comment about different semantics on the GNU ld section
18878 export_dynamic_flag_spec_GCJ=-rdynamic
18881 cygwin* | mingw* | pw32*)
18882 # When not using gcc, we currently assume that we are using
18883 # Microsoft Visual C++.
18884 # hardcode_libdir_flag_spec is actually meaningless, as there is
18885 # no search path for DLLs.
18886 hardcode_libdir_flag_spec_GCJ=' '
18887 allow_undefined_flag_GCJ=unsupported
18888 # Tell ltmain to make .lib files, not .a files.
18890 # Tell ltmain to make .dll files, not .so files.
18892 # FIXME: Setting linknames here is a bad hack.
18893 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18894 # The linker will automatically build a .lib file if we build a DLL.
18895 old_archive_From_new_cmds_GCJ='true'
18896 # FIXME: Should let the user specify the lib program.
18897 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18898 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18899 enable_shared_with_static_runtimes_GCJ=yes
18902 darwin* | rhapsody*)
18904 rhapsody* | darwin1.[012])
18905 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18908 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18909 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18911 case ${MACOSX_DEPLOYMENT_TARGET} in
18913 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18916 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18922 archive_cmds_need_lc_GCJ=no
18923 hardcode_direct_GCJ=no
18924 hardcode_automatic_GCJ=yes
18925 hardcode_shlibpath_var_GCJ=unsupported
18926 whole_archive_flag_spec_GCJ=''
18927 link_all_deplibs_GCJ=yes
18928 if test "$GCC" = yes ; then
18929 output_verbose_link_cmd='echo'
18930 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18931 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18932 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18933 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}'
18934 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}'
18936 case $cc_basename in
18938 output_verbose_link_cmd='echo'
18939 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18940 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18941 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18942 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}'
18943 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}'
18953 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18955 hardcode_shlibpath_var_GCJ=no
18962 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18963 # support. Future versions do this automatically, but an explicit c++rt0.o
18964 # does not break anything, and helps significantly (at the cost of a little
18967 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18968 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18969 hardcode_direct_GCJ=yes
18970 hardcode_shlibpath_var_GCJ=no
18973 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18975 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18976 hardcode_direct_GCJ=yes
18977 hardcode_minus_L_GCJ=yes
18978 hardcode_shlibpath_var_GCJ=no
18981 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18982 freebsd* | kfreebsd*-gnu | dragonfly*)
18983 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18984 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18985 hardcode_direct_GCJ=yes
18986 hardcode_shlibpath_var_GCJ=no
18990 if test "$GCC" = yes; then
18991 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'
18993 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'
18995 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18996 hardcode_libdir_separator_GCJ=:
18997 hardcode_direct_GCJ=yes
18999 # hardcode_minus_L: Not really in the search PATH,
19000 # but as the default location of the library.
19001 hardcode_minus_L_GCJ=yes
19002 export_dynamic_flag_spec_GCJ='${wl}-E'
19006 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19007 case "$host_cpu" in
19009 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19012 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19016 case "$host_cpu" in
19018 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19021 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19025 if test "$with_gnu_ld" = no; then
19026 case "$host_cpu" in
19028 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19029 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19030 hardcode_libdir_separator_GCJ=:
19031 hardcode_direct_GCJ=no
19032 hardcode_shlibpath_var_GCJ=no
19035 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19036 hardcode_direct_GCJ=no
19037 hardcode_shlibpath_var_GCJ=no
19039 # hardcode_minus_L: Not really in the search PATH,
19040 # but as the default location of the library.
19041 hardcode_minus_L_GCJ=yes
19044 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19045 hardcode_libdir_separator_GCJ=:
19046 hardcode_direct_GCJ=yes
19047 export_dynamic_flag_spec_GCJ='${wl}-E'
19049 # hardcode_minus_L: Not really in the search PATH,
19050 # but as the default location of the library.
19051 hardcode_minus_L_GCJ=yes
19057 irix5* | irix6* | nonstopux*)
19058 if test "$GCC" = yes; then
19059 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'
19061 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'
19062 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19065 hardcode_libdir_separator_GCJ=:
19066 link_all_deplibs_GCJ=yes
19070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19071 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19073 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19075 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19076 hardcode_direct_GCJ=yes
19077 hardcode_shlibpath_var_GCJ=no
19081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19082 hardcode_direct_GCJ=yes
19083 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19084 hardcode_libdir_separator_GCJ=:
19085 hardcode_shlibpath_var_GCJ=no
19089 hardcode_direct_GCJ=yes
19090 hardcode_shlibpath_var_GCJ=no
19091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19092 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19093 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19095 export_dynamic_flag_spec_GCJ='${wl}-E'
19098 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19099 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19100 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19103 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19104 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19112 hardcode_minus_L_GCJ=yes
19113 allow_undefined_flag_GCJ=unsupported
19114 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'
19115 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19119 if test "$GCC" = yes; then
19120 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19121 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'
19123 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19124 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'
19126 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19127 hardcode_libdir_separator_GCJ=:
19130 osf4* | osf5*) # as osf3* with the addition of -msym flag
19131 if test "$GCC" = yes; then
19132 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19133 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'
19134 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19136 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19137 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'
19138 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~
19139 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19141 # Both c and cxx compiler support -rpath directly
19142 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19144 hardcode_libdir_separator_GCJ=:
19148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19149 hardcode_shlibpath_var_GCJ=no
19150 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19151 runpath_var=LD_RUN_PATH
19152 hardcode_runpath_var=yes
19156 no_undefined_flag_GCJ=' -z text'
19157 if test "$GCC" = yes; then
19159 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19160 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19161 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19164 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19165 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19166 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19168 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19169 hardcode_shlibpath_var_GCJ=no
19171 solaris2.[0-5] | solaris2.[0-5].*) ;;
19173 # The compiler driver will combine linker options so we
19174 # cannot just pass the convience library names through
19175 # without $wl, iff we do not link with $LD.
19176 # Luckily, gcc supports the same syntax we need for Sun Studio.
19177 # Supported since Solaris 2.6 (maybe 2.5.1?)
19180 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19182 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19185 link_all_deplibs_GCJ=yes
19189 if test "x$host_vendor" = xsequent; then
19190 # Use $CC to link under sequent, because it throws in some extra .o
19191 # files that make .init and .fini sections work.
19192 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19194 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19196 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19197 hardcode_direct_GCJ=yes
19198 hardcode_minus_L_GCJ=yes
19199 hardcode_shlibpath_var_GCJ=no
19203 case $host_vendor in
19205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19206 hardcode_direct_GCJ=yes # is this really true???
19209 ## LD is ld it makes a PLAMLIB
19210 ## CC just makes a GrossModule.
19211 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19212 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19213 hardcode_direct_GCJ=no
19216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19217 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19220 runpath_var='LD_RUN_PATH'
19221 hardcode_shlibpath_var_GCJ=no
19225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19226 hardcode_shlibpath_var_GCJ=no
19227 export_dynamic_flag_spec_GCJ='-Bexport'
19231 if test -d /usr/nec; then
19232 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19233 hardcode_shlibpath_var_GCJ=no
19234 runpath_var=LD_RUN_PATH
19235 hardcode_runpath_var=yes
19241 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19242 hardcode_direct_GCJ=yes
19243 hardcode_minus_L_GCJ=no
19244 hardcode_shlibpath_var_GCJ=no
19245 hardcode_runpath_var=yes
19246 runpath_var=LD_RUN_PATH
19249 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19250 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19251 if test "$GCC" = yes; then
19252 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19254 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19256 runpath_var='LD_RUN_PATH'
19257 hardcode_shlibpath_var_GCJ=no
19261 no_undefined_flag_GCJ=' -z text'
19262 # $CC -shared without GNU ld will not create a library from C++
19263 # object files and a static libstdc++, better avoid it by now
19264 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19265 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19266 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19267 hardcode_libdir_flag_spec_GCJ=
19268 hardcode_shlibpath_var_GCJ=no
19269 runpath_var='LD_RUN_PATH'
19273 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19274 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19275 hardcode_shlibpath_var_GCJ=no
19284 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19285 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19286 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19289 if test "$GCC" = yes; then
19290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19294 # Do we need to explicitly link libc?
19296 case "x$archive_cmds_need_lc_GCJ" in
19298 # Assume -lc should be added
19299 archive_cmds_need_lc_GCJ=yes
19301 if test "$enable_shared" = yes && test "$GCC" = yes; then
19302 case $archive_cmds_GCJ in
19304 # FIXME: we may have to deal with multi-command sequences.
19307 # Test whether the compiler implicitly links with -lc since on some
19308 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19309 # to ld, don't add -lc before -lgcc.
19310 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19311 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316 (eval $ac_compile) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } 2>conftest.err; then
19322 libobjs=conftest.$ac_objext
19324 wl=$lt_prog_compiler_wl_GCJ
19330 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19331 allow_undefined_flag_GCJ=
19332 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19333 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }
19338 archive_cmds_need_lc_GCJ=no
19340 archive_cmds_need_lc_GCJ=yes
19342 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19344 cat conftest.err 1>&5
19347 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19348 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19355 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19356 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19357 library_names_spec=
19358 libname_spec='lib$name'
19362 postuninstall_cmds=
19366 shlibpath_overrides_runpath=unknown
19368 dynamic_linker="$host_os ld.so"
19369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19370 if test "$GCC" = yes; then
19371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19372 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19373 # if the path contains ";" then we assume it to be the separator
19374 # otherwise default to the standard path separator (i.e. ":") - it is
19375 # assumed that no part of a normal pathname contains ";" but that should
19376 # okay in the real world where ";" in dirpaths is itself problematic.
19377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19384 need_lib_prefix=unknown
19385 hardcode_into_libs=no
19387 # when you set need_version to no, make sure it does not cause -set_version
19388 # flags to be left without arguments
19389 need_version=unknown
19394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19395 shlibpath_var=LIBPATH
19397 # AIX 3 has no versioning support, so we append a major version to the name.
19398 soname_spec='${libname}${release}${shared_ext}$major'
19405 hardcode_into_libs=yes
19406 if test "$host_cpu" = ia64; then
19407 # AIX 5 supports IA64
19408 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19409 shlibpath_var=LD_LIBRARY_PATH
19411 # With GCC up to 2.95.x, collect2 would create an import file
19412 # for dependence libraries. The import file would start with
19413 # the line `#! .'. This would cause the generated library to
19414 # depend on `.', always an invalid library. This was fixed in
19415 # development snapshots of GCC prior to 3.0.
19417 aix4 | aix4.[01] | aix4.[01].*)
19418 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19420 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19423 can_build_shared=no
19427 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19428 # soname into executable. Probably we can add versioning support to
19429 # collect2, so additional links can be useful in future.
19430 if test "$aix_use_runtimelinking" = yes; then
19431 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19432 # instead of lib<name>.a to let people know that these are not
19433 # typical AIX shared libraries.
19434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19436 # We preserve .a as extension for shared libraries through AIX4.2
19437 # and later when we are not doing run time linking.
19438 library_names_spec='${libname}${release}.a $libname.a'
19439 soname_spec='${libname}${release}${shared_ext}$major'
19441 shlibpath_var=LIBPATH
19446 library_names_spec='$libname.ixlibrary $libname.a'
19447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19448 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'
19452 library_names_spec='${libname}${shared_ext}'
19453 dynamic_linker="$host_os ld.so"
19454 shlibpath_var=LIBRARY_PATH
19460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19461 soname_spec='${libname}${release}${shared_ext}$major'
19462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19463 shlibpath_var=LD_LIBRARY_PATH
19464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19466 # the default ld.so.conf also contains /usr/contrib/lib and
19467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19468 # libtool to hard-code these into programs
19471 cygwin* | mingw* | pw32*)
19472 version_type=windows
19477 case $GCC,$host_os in
19478 yes,cygwin* | yes,mingw* | yes,pw32*)
19479 library_names_spec='$libname.dll.a'
19480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19481 postinstall_cmds='base_file=`basename \${file}`~
19482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19483 dldir=$destdir/`dirname \$dlpath`~
19484 test -d \$dldir || mkdir -p \$dldir~
19485 $install_prog $dir/$dlname \$dldir/$dlname'
19486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19487 dlpath=$dir/\$dldll~
19489 shlibpath_overrides_runpath=yes
19493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19495 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19498 # MinGW DLLs use traditional 'lib' prefix
19499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19500 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19501 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19502 # It is most probably a Windows format PATH printed by
19503 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19504 # path with ; separators, and with drive letters. We can handle the
19505 # drive letters (cygwin fileutils understands them), so leave them,
19506 # especially as we might pass files found there to a mingw objdump,
19507 # which wouldn't understand a cygwinified path. Ahh.
19508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19514 # pw32 DLLs use 'pw' prefix rather than 'lib'
19515 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19521 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19524 dynamic_linker='Win32 ld.exe'
19525 # FIXME: first we should search . and the directory the executable is in
19529 darwin* | rhapsody*)
19530 dynamic_linker="$host_os dyld"
19531 version_type=darwin
19534 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19535 soname_spec='${libname}${release}${major}$shared_ext'
19536 shlibpath_overrides_runpath=yes
19537 shlibpath_var=DYLD_LIBRARY_PATH
19538 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19539 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19540 if test "$GCC" = yes; then
19541 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"`
19543 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19545 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19553 soname_spec='${libname}${release}${shared_ext}$major'
19554 shlibpath_var=LD_LIBRARY_PATH
19565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19566 soname_spec='${libname}${release}${shared_ext}$major'
19567 shlibpath_var=LD_LIBRARY_PATH
19568 shlibpath_overrides_runpath=no
19569 hardcode_into_libs=yes
19570 dynamic_linker='GNU ld.so'
19573 freebsd* | dragonfly*)
19574 # DragonFly does not have aout. When/if they implement a new
19575 # versioning mechanism, adjust this.
19576 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19577 version_type=freebsd-$objformat
19578 case $version_type in
19580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19589 shlibpath_var=LD_LIBRARY_PATH
19592 shlibpath_overrides_runpath=yes
19594 freebsd3.[01]* | freebsdelf3.[01]*)
19595 shlibpath_overrides_runpath=yes
19596 hardcode_into_libs=yes
19599 shlibpath_overrides_runpath=no
19600 hardcode_into_libs=yes
19609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19610 soname_spec='${libname}${release}${shared_ext}$major'
19611 shlibpath_var=LD_LIBRARY_PATH
19612 hardcode_into_libs=yes
19615 hpux9* | hpux10* | hpux11*)
19616 # Give a soname corresponding to the major version so that dld.sl refuses to
19617 # link against other versions.
19621 case "$host_cpu" in
19624 hardcode_into_libs=yes
19625 dynamic_linker="$host_os dld.so"
19626 shlibpath_var=LD_LIBRARY_PATH
19627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19629 soname_spec='${libname}${release}${shared_ext}$major'
19630 if test "X$HPUX_IA64_MODE" = X32; then
19631 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19633 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19639 hardcode_into_libs=yes
19640 dynamic_linker="$host_os dld.sl"
19641 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19644 soname_spec='${libname}${release}${shared_ext}$major'
19645 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19650 dynamic_linker="$host_os dld.sl"
19651 shlibpath_var=SHLIB_PATH
19652 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19654 soname_spec='${libname}${release}${shared_ext}$major'
19657 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19658 postinstall_cmds='chmod 555 $lib'
19661 irix5* | irix6* | nonstopux*)
19663 nonstopux*) version_type=nonstopux ;;
19665 if test "$lt_cv_prog_gnu_ld" = yes; then
19673 soname_spec='${libname}${release}${shared_ext}$major'
19674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19676 irix5* | nonstopux*)
19677 libsuff= shlibsuff=
19680 case $LD in # libtool.m4 will add one of these switches to LD
19681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19682 libsuff= shlibsuff= libmagic=32-bit;;
19683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19684 libsuff=32 shlibsuff=N32 libmagic=N32;;
19685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19687 *) libsuff= shlibsuff= libmagic=never-match;;
19691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19692 shlibpath_overrides_runpath=no
19693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19695 hardcode_into_libs=yes
19698 # No shared lib support for Linux oldld, aout, or coff.
19699 linux*oldld* | linux*aout* | linux*coff*)
19703 # This must be Linux ELF.
19708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709 soname_spec='${libname}${release}${shared_ext}$major'
19710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19711 shlibpath_var=LD_LIBRARY_PATH
19712 shlibpath_overrides_runpath=no
19713 # This implies no fast_install, which is unacceptable.
19714 # Some rework will be needed to allow for fast_install
19715 # before this can be enabled.
19716 hardcode_into_libs=yes
19718 # Append ld.so.conf contents to the search path
19719 if test -f /etc/ld.so.conf; then
19720 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19724 # We used to test for /lib/ld.so.1 and disable shared libraries on
19725 # powerpc, because MkLinux only supported shared libraries with the
19726 # GNU dynamic linker. Since this was broken with cross compilers,
19727 # most powerpc-linux boxes support dynamic linking these days and
19728 # people can always --disable-shared, the test was removed, and we
19729 # assume the GNU/Linux dynamic linker is in use.
19730 dynamic_linker='GNU/Linux ld.so'
19737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19738 soname_spec='${libname}${release}${shared_ext}$major'
19739 shlibpath_var=LD_LIBRARY_PATH
19740 shlibpath_overrides_runpath=no
19741 hardcode_into_libs=yes
19742 dynamic_linker='GNU ld.so'
19749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19752 dynamic_linker='NetBSD (a.out) ld.so'
19754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19755 soname_spec='${libname}${release}${shared_ext}$major'
19756 dynamic_linker='NetBSD ld.elf_so'
19758 shlibpath_var=LD_LIBRARY_PATH
19759 shlibpath_overrides_runpath=yes
19760 hardcode_into_libs=yes
19765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19766 shlibpath_var=LD_LIBRARY_PATH
19767 shlibpath_overrides_runpath=yes
19774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19775 soname_spec='${libname}${release}${shared_ext}$major'
19776 shlibpath_var=LD_LIBRARY_PATH
19777 shlibpath_overrides_runpath=yes
19783 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19785 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19786 *) need_version=no ;;
19788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19790 shlibpath_var=LD_LIBRARY_PATH
19791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19793 openbsd2.[89] | openbsd2.[89].*)
19794 shlibpath_overrides_runpath=no
19797 shlibpath_overrides_runpath=yes
19801 shlibpath_overrides_runpath=yes
19806 libname_spec='$name'
19809 library_names_spec='$libname${shared_ext} $libname.a'
19810 dynamic_linker='OS/2 ld.exe'
19811 shlibpath_var=LIBPATH
19814 osf3* | osf4* | osf5*)
19818 soname_spec='${libname}${release}${shared_ext}$major'
19819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19820 shlibpath_var=LD_LIBRARY_PATH
19821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19827 soname_spec='${libname}${release}${shared_ext}$major'
19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829 shlibpath_var=LD_LIBRARY_PATH
19836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19837 soname_spec='${libname}${release}${shared_ext}$major'
19838 shlibpath_var=LD_LIBRARY_PATH
19839 shlibpath_overrides_runpath=yes
19840 hardcode_into_libs=yes
19841 # ldd complains unless libraries are executable
19842 postinstall_cmds='chmod +x $lib'
19847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19849 shlibpath_var=LD_LIBRARY_PATH
19850 shlibpath_overrides_runpath=yes
19851 if test "$with_gnu_ld" = yes; then
19857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860 soname_spec='${libname}${release}${shared_ext}$major'
19861 shlibpath_var=LD_LIBRARY_PATH
19862 case $host_vendor in
19864 shlibpath_overrides_runpath=no
19866 export_dynamic_flag_spec='${wl}-Blargedynsym'
19867 runpath_var=LD_RUN_PATH
19875 shlibpath_overrides_runpath=no
19876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19882 if test -d /usr/nec ;then
19884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19885 soname_spec='$libname${shared_ext}.$major'
19886 shlibpath_var=LD_LIBRARY_PATH
19892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19893 soname_spec='${libname}${release}${shared_ext}$major'
19894 shlibpath_var=LD_LIBRARY_PATH
19901 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19902 echo "${ECHO_T}$dynamic_linker" >&6
19903 test "$dynamic_linker" = no && can_build_shared=no
19905 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19906 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19907 hardcode_action_GCJ=
19908 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19909 test -n "$runpath_var_GCJ" || \
19910 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19912 # We can hardcode non-existant directories.
19913 if test "$hardcode_direct_GCJ" != no &&
19914 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19915 # have to relink, otherwise we might link with an installed library
19916 # when we should be linking with a yet-to-be-installed one
19917 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19918 test "$hardcode_minus_L_GCJ" != no; then
19919 # Linking always hardcodes the temporary library directory.
19920 hardcode_action_GCJ=relink
19922 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19923 hardcode_action_GCJ=immediate
19926 # We cannot hardcode anything, or else we can only hardcode existing
19928 hardcode_action_GCJ=unsupported
19930 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19931 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19933 if test "$hardcode_action_GCJ" = relink; then
19934 # Fast installation is not supported
19935 enable_fast_install=no
19936 elif test "$shlibpath_overrides_runpath" = yes ||
19937 test "$enable_shared" = no; then
19938 # Fast installation is not necessary
19939 enable_fast_install=needless
19944 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19945 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19946 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19947 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19948 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19949 echo "$as_me:$LINENO: result: yes" >&5
19950 echo "${ECHO_T}yes" >&6
19952 # FIXME - insert some real tests, host_os isn't really good enough
19955 if test -n "$STRIP" ; then
19956 striplib="$STRIP -x"
19957 echo "$as_me:$LINENO: result: yes" >&5
19958 echo "${ECHO_T}yes" >&6
19960 echo "$as_me:$LINENO: result: no" >&5
19961 echo "${ECHO_T}no" >&6
19965 echo "$as_me:$LINENO: result: no" >&5
19966 echo "${ECHO_T}no" >&6
19971 if test "x$enable_dlopen" != xyes; then
19972 enable_dlopen=unknown
19973 enable_dlopen_self=unknown
19974 enable_dlopen_self_static=unknown
19981 lt_cv_dlopen="load_add_on"
19983 lt_cv_dlopen_self=yes
19987 lt_cv_dlopen="LoadLibrary"
19992 lt_cv_dlopen="dlopen"
19997 # if libdl is installed we need to link against it
19998 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19999 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 ac_check_lib_save_LIBS=$LIBS
20005 cat >conftest.$ac_ext <<_ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20012 /* Override any gcc2 internal prototype to avoid an error. */
20016 /* We use char because int might match the return type of a gcc2
20017 builtin and then its argument prototype would still apply. */
20027 rm -f conftest.$ac_objext conftest$ac_exeext
20028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20029 (eval $ac_link) 2>conftest.er1
20031 grep -v '^ *+' conftest.er1 >conftest.err
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag"
20037 || test ! -s conftest.err'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest$ac_exeext'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 ac_cv_lib_dl_dlopen=yes
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ac_cv_lib_dl_dlopen=no
20056 rm -f conftest.err conftest.$ac_objext \
20057 conftest$ac_exeext conftest.$ac_ext
20058 LIBS=$ac_check_lib_save_LIBS
20060 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20061 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20062 if test $ac_cv_lib_dl_dlopen = yes; then
20063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20066 lt_cv_dlopen="dyld"
20068 lt_cv_dlopen_self=yes
20075 echo "$as_me:$LINENO: checking for shl_load" >&5
20076 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20077 if test "${ac_cv_func_shl_load+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20088 #define shl_load innocuous_shl_load
20090 /* System header to define __stub macros and hopefully few prototypes,
20091 which can conflict with char shl_load (); below.
20092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20093 <limits.h> exists even on freestanding compilers. */
20096 # include <limits.h>
20098 # include <assert.h>
20103 /* Override any gcc2 internal prototype to avoid an error. */
20108 /* We use char because int might match the return type of a gcc2
20109 builtin and then its argument prototype would still apply. */
20111 /* The GNU C library defines this for functions which it implements
20112 to always fail with ENOSYS. Some functions are actually named
20113 something starting with __ and the normal name is an alias. */
20114 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20117 char (*f) () = shl_load;
20126 return f != shl_load;
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20133 (eval $ac_link) 2>conftest.er1
20135 grep -v '^ *+' conftest.er1 >conftest.err
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } &&
20140 { ac_try='test -z "$ac_c_werror_flag"
20141 || test ! -s conftest.err'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; } &&
20147 { ac_try='test -s conftest$ac_exeext'
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20153 ac_cv_func_shl_load=yes
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 ac_cv_func_shl_load=no
20160 rm -f conftest.err conftest.$ac_objext \
20161 conftest$ac_exeext conftest.$ac_ext
20163 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20164 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20165 if test $ac_cv_func_shl_load = yes; then
20166 lt_cv_dlopen="shl_load"
20168 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20169 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20170 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 ac_check_lib_save_LIBS=$LIBS
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20182 /* Override any gcc2 internal prototype to avoid an error. */
20186 /* We use char because int might match the return type of a gcc2
20187 builtin and then its argument prototype would still apply. */
20197 rm -f conftest.$ac_objext conftest$ac_exeext
20198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20199 (eval $ac_link) 2>conftest.er1
20201 grep -v '^ *+' conftest.er1 >conftest.err
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } &&
20206 { ac_try='test -z "$ac_c_werror_flag"
20207 || test ! -s conftest.err'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; } &&
20213 { ac_try='test -s conftest$ac_exeext'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219 ac_cv_lib_dld_shl_load=yes
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_cv_lib_dld_shl_load=no
20226 rm -f conftest.err conftest.$ac_objext \
20227 conftest$ac_exeext conftest.$ac_ext
20228 LIBS=$ac_check_lib_save_LIBS
20230 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20231 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20232 if test $ac_cv_lib_dld_shl_load = yes; then
20233 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20235 echo "$as_me:$LINENO: checking for dlopen" >&5
20236 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20237 if test "${ac_cv_func_dlopen+set}" = set; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 cat >conftest.$ac_ext <<_ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20248 #define dlopen innocuous_dlopen
20250 /* System header to define __stub macros and hopefully few prototypes,
20251 which can conflict with char dlopen (); below.
20252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20253 <limits.h> exists even on freestanding compilers. */
20256 # include <limits.h>
20258 # include <assert.h>
20263 /* Override any gcc2 internal prototype to avoid an error. */
20268 /* We use char because int might match the return type of a gcc2
20269 builtin and then its argument prototype would still apply. */
20271 /* The GNU C library defines this for functions which it implements
20272 to always fail with ENOSYS. Some functions are actually named
20273 something starting with __ and the normal name is an alias. */
20274 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20277 char (*f) () = dlopen;
20286 return f != dlopen;
20291 rm -f conftest.$ac_objext conftest$ac_exeext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20293 (eval $ac_link) 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
20300 { ac_try='test -z "$ac_c_werror_flag"
20301 || test ! -s conftest.err'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest$ac_exeext'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20313 ac_cv_func_dlopen=yes
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_cv_func_dlopen=no
20320 rm -f conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext conftest.$ac_ext
20323 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20324 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20325 if test $ac_cv_func_dlopen = yes; then
20326 lt_cv_dlopen="dlopen"
20328 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20329 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20330 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 ac_check_lib_save_LIBS=$LIBS
20335 cat >conftest.$ac_ext <<_ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20342 /* Override any gcc2 internal prototype to avoid an error. */
20346 /* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359 (eval $ac_link) 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_c_werror_flag"
20367 || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest$ac_exeext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_cv_lib_dl_dlopen=yes
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ac_cv_lib_dl_dlopen=no
20386 rm -f conftest.err conftest.$ac_objext \
20387 conftest$ac_exeext conftest.$ac_ext
20388 LIBS=$ac_check_lib_save_LIBS
20390 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20391 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20392 if test $ac_cv_lib_dl_dlopen = yes; then
20393 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20395 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20396 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20397 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20400 ac_check_lib_save_LIBS=$LIBS
20401 LIBS="-lsvld $LIBS"
20402 cat >conftest.$ac_ext <<_ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h. */
20409 /* Override any gcc2 internal prototype to avoid an error. */
20413 /* We use char because int might match the return type of a gcc2
20414 builtin and then its argument prototype would still apply. */
20424 rm -f conftest.$ac_objext conftest$ac_exeext
20425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20426 (eval $ac_link) 2>conftest.er1
20428 grep -v '^ *+' conftest.er1 >conftest.err
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } &&
20433 { ac_try='test -z "$ac_c_werror_flag"
20434 || test ! -s conftest.err'
20435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436 (eval $ac_try) 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; } &&
20440 { ac_try='test -s conftest$ac_exeext'
20441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442 (eval $ac_try) 2>&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; }; then
20446 ac_cv_lib_svld_dlopen=yes
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 ac_cv_lib_svld_dlopen=no
20453 rm -f conftest.err conftest.$ac_objext \
20454 conftest$ac_exeext conftest.$ac_ext
20455 LIBS=$ac_check_lib_save_LIBS
20457 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20458 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20459 if test $ac_cv_lib_svld_dlopen = yes; then
20460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20462 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20463 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20464 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 ac_check_lib_save_LIBS=$LIBS
20469 cat >conftest.$ac_ext <<_ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20476 /* Override any gcc2 internal prototype to avoid an error. */
20480 /* We use char because int might match the return type of a gcc2
20481 builtin and then its argument prototype would still apply. */
20491 rm -f conftest.$ac_objext conftest$ac_exeext
20492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20493 (eval $ac_link) 2>conftest.er1
20495 grep -v '^ *+' conftest.er1 >conftest.err
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
20500 { ac_try='test -z "$ac_c_werror_flag"
20501 || test ! -s conftest.err'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; } &&
20507 { ac_try='test -s conftest$ac_exeext'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513 ac_cv_lib_dld_dld_link=yes
20515 echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20518 ac_cv_lib_dld_dld_link=no
20520 rm -f conftest.err conftest.$ac_objext \
20521 conftest$ac_exeext conftest.$ac_ext
20522 LIBS=$ac_check_lib_save_LIBS
20524 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20525 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20526 if test $ac_cv_lib_dld_dld_link = yes; then
20527 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20548 if test "x$lt_cv_dlopen" != xno; then
20554 case $lt_cv_dlopen in
20556 save_CPPFLAGS="$CPPFLAGS"
20557 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20559 save_LDFLAGS="$LDFLAGS"
20560 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20563 LIBS="$lt_cv_dlopen_libs $LIBS"
20565 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20566 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20567 if test "${lt_cv_dlopen_self+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 if test "$cross_compiling" = yes; then :
20571 lt_cv_dlopen_self=cross
20573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20574 lt_status=$lt_dlunknown
20575 cat > conftest.$ac_ext <<EOF
20576 #line 20576 "configure"
20577 #include "confdefs.h"
20586 # define LT_DLGLOBAL RTLD_GLOBAL
20589 # define LT_DLGLOBAL DL_GLOBAL
20591 # define LT_DLGLOBAL 0
20595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20596 find out it does not work in some platform. */
20597 #ifndef LT_DLLAZY_OR_NOW
20599 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20602 # define LT_DLLAZY_OR_NOW DL_LAZY
20605 # define LT_DLLAZY_OR_NOW RTLD_NOW
20608 # define LT_DLLAZY_OR_NOW DL_NOW
20610 # define LT_DLLAZY_OR_NOW 0
20618 extern "C" void exit (int);
20621 void fnord() { int i=42;}
20624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20625 int status = $lt_dlunknown;
20629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20630 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20631 /* dlclose (self); */
20637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638 (eval $ac_link) 2>&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20642 (./conftest; exit; ) 2>/dev/null
20644 case x$lt_status in
20645 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20646 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20647 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20650 # compilation failed
20651 lt_cv_dlopen_self=no
20658 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20659 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20661 if test "x$lt_cv_dlopen_self" = xyes; then
20662 LDFLAGS="$LDFLAGS $link_static_flag"
20663 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20664 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20665 if test "${lt_cv_dlopen_self_static+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 if test "$cross_compiling" = yes; then :
20669 lt_cv_dlopen_self_static=cross
20671 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20672 lt_status=$lt_dlunknown
20673 cat > conftest.$ac_ext <<EOF
20674 #line 20674 "configure"
20675 #include "confdefs.h"
20684 # define LT_DLGLOBAL RTLD_GLOBAL
20687 # define LT_DLGLOBAL DL_GLOBAL
20689 # define LT_DLGLOBAL 0
20693 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20694 find out it does not work in some platform. */
20695 #ifndef LT_DLLAZY_OR_NOW
20697 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20700 # define LT_DLLAZY_OR_NOW DL_LAZY
20703 # define LT_DLLAZY_OR_NOW RTLD_NOW
20706 # define LT_DLLAZY_OR_NOW DL_NOW
20708 # define LT_DLLAZY_OR_NOW 0
20716 extern "C" void exit (int);
20719 void fnord() { int i=42;}
20722 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20723 int status = $lt_dlunknown;
20727 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20728 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20729 /* dlclose (self); */
20735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20736 (eval $ac_link) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20740 (./conftest; exit; ) 2>/dev/null
20742 case x$lt_status in
20743 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20744 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20745 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20748 # compilation failed
20749 lt_cv_dlopen_self_static=no
20756 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20757 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20760 CPPFLAGS="$save_CPPFLAGS"
20761 LDFLAGS="$save_LDFLAGS"
20766 case $lt_cv_dlopen_self in
20767 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20768 *) enable_dlopen_self=unknown ;;
20771 case $lt_cv_dlopen_self_static in
20772 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20773 *) enable_dlopen_self_static=unknown ;;
20778 # The else clause should only fire when bootstrapping the
20779 # libtool distribution, otherwise you forgot to ship ltmain.sh
20780 # with your package, and you will get complaints that there are
20781 # no rules to generate ltmain.sh.
20782 if test -f "$ltmain"; then
20783 # See if we are running on zsh, and set the options which allow our commands through
20784 # without removal of \ escapes.
20785 if test -n "${ZSH_VERSION+set}" ; then
20786 setopt NO_GLOB_SUBST
20788 # Now quote all the things that may contain metacharacters while being
20789 # careful not to overquote the AC_SUBSTed values. We take copies of the
20790 # variables and quote the copies for generation of the libtool script.
20791 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20793 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20794 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20795 deplibs_check_method reload_flag reload_cmds need_locks \
20796 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20797 lt_cv_sys_global_symbol_to_c_name_address \
20798 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20799 old_postinstall_cmds old_postuninstall_cmds \
20803 lt_prog_compiler_wl_GCJ \
20804 lt_prog_compiler_pic_GCJ \
20805 lt_prog_compiler_static_GCJ \
20806 lt_prog_compiler_no_builtin_flag_GCJ \
20807 export_dynamic_flag_spec_GCJ \
20808 thread_safe_flag_spec_GCJ \
20809 whole_archive_flag_spec_GCJ \
20810 enable_shared_with_static_runtimes_GCJ \
20811 old_archive_cmds_GCJ \
20812 old_archive_from_new_cmds_GCJ \
20813 predep_objects_GCJ \
20814 postdep_objects_GCJ \
20817 compiler_lib_search_path_GCJ \
20819 archive_expsym_cmds_GCJ \
20820 postinstall_cmds_GCJ \
20821 postuninstall_cmds_GCJ \
20822 old_archive_from_expsyms_cmds_GCJ \
20823 allow_undefined_flag_GCJ \
20824 no_undefined_flag_GCJ \
20825 export_symbols_cmds_GCJ \
20826 hardcode_libdir_flag_spec_GCJ \
20827 hardcode_libdir_flag_spec_ld_GCJ \
20828 hardcode_libdir_separator_GCJ \
20829 hardcode_automatic_GCJ \
20831 module_expsym_cmds_GCJ \
20832 lt_cv_prog_compiler_c_o_GCJ \
20833 exclude_expsyms_GCJ \
20834 include_expsyms_GCJ; do
20837 old_archive_cmds_GCJ | \
20838 old_archive_from_new_cmds_GCJ | \
20839 archive_cmds_GCJ | \
20840 archive_expsym_cmds_GCJ | \
20841 module_cmds_GCJ | \
20842 module_expsym_cmds_GCJ | \
20843 old_archive_from_expsyms_cmds_GCJ | \
20844 export_symbols_cmds_GCJ | \
20845 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20846 postinstall_cmds | postuninstall_cmds | \
20847 old_postinstall_cmds | old_postuninstall_cmds | \
20848 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20849 # Double-quote double-evaled strings.
20850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20859 *'\$0 --fallback-echo"')
20860 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20866 cat <<__EOF__ >> "$cfgfile"
20867 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20869 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20871 # Shell to use when invoking shell scripts.
20874 # Whether or not to build shared libraries.
20875 build_libtool_libs=$enable_shared
20877 # Whether or not to build static libraries.
20878 build_old_libs=$enable_static
20880 # Whether or not to add -lc for building shared libraries.
20881 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20883 # Whether or not to disallow shared libs when runtime libs are static
20884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20886 # Whether or not to optimize for fast installation.
20887 fast_install=$enable_fast_install
20890 host_alias=$host_alias
20894 # The build system.
20895 build_alias=$build_alias
20899 # An echo program that does not interpret backslashes.
20904 AR_FLAGS=$lt_AR_FLAGS
20909 # A language-specific compiler.
20910 CC=$lt_compiler_GCJ
20912 # Is the compiler the GNU C compiler?
20918 # The linker used to build libraries.
20921 # Whether we need hard or soft links.
20924 # A BSD-compatible nm program.
20927 # A symbol stripping program
20930 # Used to examine libraries when file_magic_cmd begins "file"
20931 MAGIC_CMD=$MAGIC_CMD
20933 # Used on cygwin: DLL creation program.
20936 # Used on cygwin: object dumper.
20939 # Used on cygwin: assembler.
20942 # The name of the directory that contains temporary libtool files.
20945 # How to create reloadable object files.
20946 reload_flag=$lt_reload_flag
20947 reload_cmds=$lt_reload_cmds
20949 # How to pass a linker flag through the compiler.
20950 wl=$lt_lt_prog_compiler_wl_GCJ
20952 # Object file suffix (normally "o").
20953 objext="$ac_objext"
20955 # Old archive suffix (normally "a").
20958 # Shared library suffix (normally ".so").
20959 shrext_cmds='$shrext_cmds'
20961 # Executable file suffix (normally "").
20964 # Additional compiler flags for building library objects.
20965 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20968 # What is the maximum length of a command?
20969 max_cmd_len=$lt_cv_sys_max_cmd_len
20971 # Does compiler simultaneously support -c and -o options?
20972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20974 # Must we lock files when doing compilation?
20975 need_locks=$lt_need_locks
20977 # Do we need the lib prefix for modules?
20978 need_lib_prefix=$need_lib_prefix
20980 # Do we need a version for libraries?
20981 need_version=$need_version
20983 # Whether dlopen is supported.
20984 dlopen_support=$enable_dlopen
20986 # Whether dlopen of programs is supported.
20987 dlopen_self=$enable_dlopen_self
20989 # Whether dlopen of statically linked programs is supported.
20990 dlopen_self_static=$enable_dlopen_self_static
20992 # Compiler flag to prevent dynamic linking.
20993 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20995 # Compiler flag to turn off builtin functions.
20996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20998 # Compiler flag to allow reflexive dlopens.
20999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21001 # Compiler flag to generate shared objects directly from archives.
21002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21004 # Compiler flag to generate thread-safe objects.
21005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21007 # Library versioning type.
21008 version_type=$version_type
21010 # Format of library name prefix.
21011 libname_spec=$lt_libname_spec
21013 # List of archive names. First name is the real one, the rest are links.
21014 # The last name is the one that the linker finds with -lNAME.
21015 library_names_spec=$lt_library_names_spec
21017 # The coded name of the library, if different from the real name.
21018 soname_spec=$lt_soname_spec
21020 # Commands used to build and install an old-style archive.
21022 old_archive_cmds=$lt_old_archive_cmds_GCJ
21023 old_postinstall_cmds=$lt_old_postinstall_cmds
21024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21026 # Create an old-style archive from a shared archive.
21027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21029 # Create a temporary old-style archive to link instead of a shared archive.
21030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21032 # Commands used to build and install a shared archive.
21033 archive_cmds=$lt_archive_cmds_GCJ
21034 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21035 postinstall_cmds=$lt_postinstall_cmds
21036 postuninstall_cmds=$lt_postuninstall_cmds
21038 # Commands used to build a loadable module (assumed same as above if empty)
21039 module_cmds=$lt_module_cmds_GCJ
21040 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21042 # Commands to strip libraries.
21043 old_striplib=$lt_old_striplib
21044 striplib=$lt_striplib
21046 # Dependencies to place before the objects being linked to create a
21048 predep_objects=$lt_predep_objects_GCJ
21050 # Dependencies to place after the objects being linked to create a
21052 postdep_objects=$lt_postdep_objects_GCJ
21054 # Dependencies to place before the objects being linked to create a
21056 predeps=$lt_predeps_GCJ
21058 # Dependencies to place after the objects being linked to create a
21060 postdeps=$lt_postdeps_GCJ
21062 # The library search path used internally by the compiler when linking
21063 # a shared library.
21064 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21066 # Method to check whether dependent libraries are shared objects.
21067 deplibs_check_method=$lt_deplibs_check_method
21069 # Command to use when deplibs_check_method == file_magic.
21070 file_magic_cmd=$lt_file_magic_cmd
21072 # Flag that allows shared libraries with undefined symbols to be built.
21073 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21075 # Flag that forces no undefined symbols.
21076 no_undefined_flag=$lt_no_undefined_flag_GCJ
21078 # Commands used to finish a libtool library installation in a directory.
21079 finish_cmds=$lt_finish_cmds
21081 # Same as above, but a single script fragment to be evaled but not shown.
21082 finish_eval=$lt_finish_eval
21084 # Take the output of nm and produce a listing of raw symbols and C names.
21085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21087 # Transform the output of nm in a proper C declaration
21088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21090 # Transform the output of nm in a C name address pair
21091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21093 # This is the shared library runtime path variable.
21094 runpath_var=$runpath_var
21096 # This is the shared library path variable.
21097 shlibpath_var=$shlibpath_var
21099 # Is shlibpath searched before the hard-coded library search path?
21100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21102 # How to hardcode a shared library path into an executable.
21103 hardcode_action=$hardcode_action_GCJ
21105 # Whether we should hardcode library paths into libraries.
21106 hardcode_into_libs=$hardcode_into_libs
21108 # Flag to hardcode \$libdir into a binary during linking.
21109 # This must work even if \$libdir does not exist.
21110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21112 # If ld is used when linking, flag to hardcode \$libdir into
21113 # a binary during linking. This must work even if \$libdir does
21115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21117 # Whether we need a single -rpath flag with a separated argument.
21118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21121 # resulting binary.
21122 hardcode_direct=$hardcode_direct_GCJ
21124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21125 # resulting binary.
21126 hardcode_minus_L=$hardcode_minus_L_GCJ
21128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21129 # the resulting binary.
21130 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21132 # Set to yes if building a shared library automatically hardcodes DIR into the library
21133 # and all subsequent libraries and executables linked against it.
21134 hardcode_automatic=$hardcode_automatic_GCJ
21136 # Variables whose values should be saved in libtool wrapper scripts and
21137 # restored at relink time.
21138 variables_saved_for_relink="$variables_saved_for_relink"
21140 # Whether libtool must link a program against all its dependency libraries.
21141 link_all_deplibs=$link_all_deplibs_GCJ
21143 # Compile-time system search path for libraries
21144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21146 # Run-time system search path for libraries
21147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21149 # Fix the shell variable \$srcfile for the compiler.
21150 fix_srcfile_path="$fix_srcfile_path_GCJ"
21152 # Set to yes if exported symbols are required.
21153 always_export_symbols=$always_export_symbols_GCJ
21155 # The commands to list exported symbols.
21156 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21158 # The commands to extract the exported symbol list from a shared archive.
21159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21161 # Symbols that should not be listed in the preloaded symbols.
21162 exclude_expsyms=$lt_exclude_expsyms_GCJ
21164 # Symbols that must always be exported.
21165 include_expsyms=$lt_include_expsyms_GCJ
21167 # ### END LIBTOOL TAG CONFIG: $tagname
21173 # If there is no Makefile yet, we rely on a make rule to execute
21174 # `config.status --recheck' to rerun these tests and create the
21175 # libtool script then.
21176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21177 if test -f "$ltmain_in"; then
21178 test -f Makefile && make "$ltmain"
21184 ac_cpp='$CPP $CPPFLAGS'
21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21200 # Source file extension for RC test sources.
21203 # Object file extension for compiled RC test sources.
21207 # Code to be used in simple compile tests
21208 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21210 # Code to be used in simple link tests
21211 lt_simple_link_test_code="$lt_simple_compile_test_code"
21213 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21215 # If no C compiler was specified, use CC.
21218 # Allow CC to be a program name with arguments.
21222 # save warnings/boilerplate of simple test code
21223 ac_outfile=conftest.$ac_objext
21224 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21225 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21226 _lt_compiler_boilerplate=`cat conftest.err`
21229 ac_outfile=conftest.$ac_objext
21230 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21231 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21232 _lt_linker_boilerplate=`cat conftest.err`
21236 # Allow CC to be a program name with arguments.
21241 for cc_temp in $compiler""; do
21243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21249 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21251 lt_cv_prog_compiler_c_o_RC=yes
21253 # The else clause should only fire when bootstrapping the
21254 # libtool distribution, otherwise you forgot to ship ltmain.sh
21255 # with your package, and you will get complaints that there are
21256 # no rules to generate ltmain.sh.
21257 if test -f "$ltmain"; then
21258 # See if we are running on zsh, and set the options which allow our commands through
21259 # without removal of \ escapes.
21260 if test -n "${ZSH_VERSION+set}" ; then
21261 setopt NO_GLOB_SUBST
21263 # Now quote all the things that may contain metacharacters while being
21264 # careful not to overquote the AC_SUBSTed values. We take copies of the
21265 # variables and quote the copies for generation of the libtool script.
21266 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21268 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21269 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21270 deplibs_check_method reload_flag reload_cmds need_locks \
21271 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21272 lt_cv_sys_global_symbol_to_c_name_address \
21273 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21274 old_postinstall_cmds old_postuninstall_cmds \
21278 lt_prog_compiler_wl_RC \
21279 lt_prog_compiler_pic_RC \
21280 lt_prog_compiler_static_RC \
21281 lt_prog_compiler_no_builtin_flag_RC \
21282 export_dynamic_flag_spec_RC \
21283 thread_safe_flag_spec_RC \
21284 whole_archive_flag_spec_RC \
21285 enable_shared_with_static_runtimes_RC \
21286 old_archive_cmds_RC \
21287 old_archive_from_new_cmds_RC \
21288 predep_objects_RC \
21289 postdep_objects_RC \
21292 compiler_lib_search_path_RC \
21294 archive_expsym_cmds_RC \
21295 postinstall_cmds_RC \
21296 postuninstall_cmds_RC \
21297 old_archive_from_expsyms_cmds_RC \
21298 allow_undefined_flag_RC \
21299 no_undefined_flag_RC \
21300 export_symbols_cmds_RC \
21301 hardcode_libdir_flag_spec_RC \
21302 hardcode_libdir_flag_spec_ld_RC \
21303 hardcode_libdir_separator_RC \
21304 hardcode_automatic_RC \
21306 module_expsym_cmds_RC \
21307 lt_cv_prog_compiler_c_o_RC \
21308 exclude_expsyms_RC \
21309 include_expsyms_RC; do
21312 old_archive_cmds_RC | \
21313 old_archive_from_new_cmds_RC | \
21314 archive_cmds_RC | \
21315 archive_expsym_cmds_RC | \
21317 module_expsym_cmds_RC | \
21318 old_archive_from_expsyms_cmds_RC | \
21319 export_symbols_cmds_RC | \
21320 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21321 postinstall_cmds | postuninstall_cmds | \
21322 old_postinstall_cmds | old_postuninstall_cmds | \
21323 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21324 # Double-quote double-evaled strings.
21325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21334 *'\$0 --fallback-echo"')
21335 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21341 cat <<__EOF__ >> "$cfgfile"
21342 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21344 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21346 # Shell to use when invoking shell scripts.
21349 # Whether or not to build shared libraries.
21350 build_libtool_libs=$enable_shared
21352 # Whether or not to build static libraries.
21353 build_old_libs=$enable_static
21355 # Whether or not to add -lc for building shared libraries.
21356 build_libtool_need_lc=$archive_cmds_need_lc_RC
21358 # Whether or not to disallow shared libs when runtime libs are static
21359 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21361 # Whether or not to optimize for fast installation.
21362 fast_install=$enable_fast_install
21365 host_alias=$host_alias
21369 # The build system.
21370 build_alias=$build_alias
21374 # An echo program that does not interpret backslashes.
21379 AR_FLAGS=$lt_AR_FLAGS
21384 # A language-specific compiler.
21387 # Is the compiler the GNU C compiler?
21393 # The linker used to build libraries.
21396 # Whether we need hard or soft links.
21399 # A BSD-compatible nm program.
21402 # A symbol stripping program
21405 # Used to examine libraries when file_magic_cmd begins "file"
21406 MAGIC_CMD=$MAGIC_CMD
21408 # Used on cygwin: DLL creation program.
21411 # Used on cygwin: object dumper.
21414 # Used on cygwin: assembler.
21417 # The name of the directory that contains temporary libtool files.
21420 # How to create reloadable object files.
21421 reload_flag=$lt_reload_flag
21422 reload_cmds=$lt_reload_cmds
21424 # How to pass a linker flag through the compiler.
21425 wl=$lt_lt_prog_compiler_wl_RC
21427 # Object file suffix (normally "o").
21428 objext="$ac_objext"
21430 # Old archive suffix (normally "a").
21433 # Shared library suffix (normally ".so").
21434 shrext_cmds='$shrext_cmds'
21436 # Executable file suffix (normally "").
21439 # Additional compiler flags for building library objects.
21440 pic_flag=$lt_lt_prog_compiler_pic_RC
21443 # What is the maximum length of a command?
21444 max_cmd_len=$lt_cv_sys_max_cmd_len
21446 # Does compiler simultaneously support -c and -o options?
21447 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21449 # Must we lock files when doing compilation?
21450 need_locks=$lt_need_locks
21452 # Do we need the lib prefix for modules?
21453 need_lib_prefix=$need_lib_prefix
21455 # Do we need a version for libraries?
21456 need_version=$need_version
21458 # Whether dlopen is supported.
21459 dlopen_support=$enable_dlopen
21461 # Whether dlopen of programs is supported.
21462 dlopen_self=$enable_dlopen_self
21464 # Whether dlopen of statically linked programs is supported.
21465 dlopen_self_static=$enable_dlopen_self_static
21467 # Compiler flag to prevent dynamic linking.
21468 link_static_flag=$lt_lt_prog_compiler_static_RC
21470 # Compiler flag to turn off builtin functions.
21471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21473 # Compiler flag to allow reflexive dlopens.
21474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21476 # Compiler flag to generate shared objects directly from archives.
21477 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21479 # Compiler flag to generate thread-safe objects.
21480 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21482 # Library versioning type.
21483 version_type=$version_type
21485 # Format of library name prefix.
21486 libname_spec=$lt_libname_spec
21488 # List of archive names. First name is the real one, the rest are links.
21489 # The last name is the one that the linker finds with -lNAME.
21490 library_names_spec=$lt_library_names_spec
21492 # The coded name of the library, if different from the real name.
21493 soname_spec=$lt_soname_spec
21495 # Commands used to build and install an old-style archive.
21497 old_archive_cmds=$lt_old_archive_cmds_RC
21498 old_postinstall_cmds=$lt_old_postinstall_cmds
21499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21501 # Create an old-style archive from a shared archive.
21502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21504 # Create a temporary old-style archive to link instead of a shared archive.
21505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21507 # Commands used to build and install a shared archive.
21508 archive_cmds=$lt_archive_cmds_RC
21509 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21510 postinstall_cmds=$lt_postinstall_cmds
21511 postuninstall_cmds=$lt_postuninstall_cmds
21513 # Commands used to build a loadable module (assumed same as above if empty)
21514 module_cmds=$lt_module_cmds_RC
21515 module_expsym_cmds=$lt_module_expsym_cmds_RC
21517 # Commands to strip libraries.
21518 old_striplib=$lt_old_striplib
21519 striplib=$lt_striplib
21521 # Dependencies to place before the objects being linked to create a
21523 predep_objects=$lt_predep_objects_RC
21525 # Dependencies to place after the objects being linked to create a
21527 postdep_objects=$lt_postdep_objects_RC
21529 # Dependencies to place before the objects being linked to create a
21531 predeps=$lt_predeps_RC
21533 # Dependencies to place after the objects being linked to create a
21535 postdeps=$lt_postdeps_RC
21537 # The library search path used internally by the compiler when linking
21538 # a shared library.
21539 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21541 # Method to check whether dependent libraries are shared objects.
21542 deplibs_check_method=$lt_deplibs_check_method
21544 # Command to use when deplibs_check_method == file_magic.
21545 file_magic_cmd=$lt_file_magic_cmd
21547 # Flag that allows shared libraries with undefined symbols to be built.
21548 allow_undefined_flag=$lt_allow_undefined_flag_RC
21550 # Flag that forces no undefined symbols.
21551 no_undefined_flag=$lt_no_undefined_flag_RC
21553 # Commands used to finish a libtool library installation in a directory.
21554 finish_cmds=$lt_finish_cmds
21556 # Same as above, but a single script fragment to be evaled but not shown.
21557 finish_eval=$lt_finish_eval
21559 # Take the output of nm and produce a listing of raw symbols and C names.
21560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21562 # Transform the output of nm in a proper C declaration
21563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21565 # Transform the output of nm in a C name address pair
21566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21568 # This is the shared library runtime path variable.
21569 runpath_var=$runpath_var
21571 # This is the shared library path variable.
21572 shlibpath_var=$shlibpath_var
21574 # Is shlibpath searched before the hard-coded library search path?
21575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21577 # How to hardcode a shared library path into an executable.
21578 hardcode_action=$hardcode_action_RC
21580 # Whether we should hardcode library paths into libraries.
21581 hardcode_into_libs=$hardcode_into_libs
21583 # Flag to hardcode \$libdir into a binary during linking.
21584 # This must work even if \$libdir does not exist.
21585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21587 # If ld is used when linking, flag to hardcode \$libdir into
21588 # a binary during linking. This must work even if \$libdir does
21590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21592 # Whether we need a single -rpath flag with a separated argument.
21593 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21596 # resulting binary.
21597 hardcode_direct=$hardcode_direct_RC
21599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21600 # resulting binary.
21601 hardcode_minus_L=$hardcode_minus_L_RC
21603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21604 # the resulting binary.
21605 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21607 # Set to yes if building a shared library automatically hardcodes DIR into the library
21608 # and all subsequent libraries and executables linked against it.
21609 hardcode_automatic=$hardcode_automatic_RC
21611 # Variables whose values should be saved in libtool wrapper scripts and
21612 # restored at relink time.
21613 variables_saved_for_relink="$variables_saved_for_relink"
21615 # Whether libtool must link a program against all its dependency libraries.
21616 link_all_deplibs=$link_all_deplibs_RC
21618 # Compile-time system search path for libraries
21619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21621 # Run-time system search path for libraries
21622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21624 # Fix the shell variable \$srcfile for the compiler.
21625 fix_srcfile_path="$fix_srcfile_path_RC"
21627 # Set to yes if exported symbols are required.
21628 always_export_symbols=$always_export_symbols_RC
21630 # The commands to list exported symbols.
21631 export_symbols_cmds=$lt_export_symbols_cmds_RC
21633 # The commands to extract the exported symbol list from a shared archive.
21634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21636 # Symbols that should not be listed in the preloaded symbols.
21637 exclude_expsyms=$lt_exclude_expsyms_RC
21639 # Symbols that must always be exported.
21640 include_expsyms=$lt_include_expsyms_RC
21642 # ### END LIBTOOL TAG CONFIG: $tagname
21648 # If there is no Makefile yet, we rely on a make rule to execute
21649 # `config.status --recheck' to rerun these tests and create the
21650 # libtool script then.
21651 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21652 if test -f "$ltmain_in"; then
21653 test -f Makefile && make "$ltmain"
21659 ac_cpp='$CPP $CPPFLAGS'
21660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21669 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21670 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21671 { (exit 1); exit 1; }; }
21675 # Append the new tag name to the list of available tags.
21676 if test -n "$tagname" ; then
21677 available_tags="$available_tags $tagname"
21683 # Now substitute the updated list of available tags.
21684 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21685 mv "${ofile}T" "$ofile"
21689 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21690 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21691 { (exit 1); exit 1; }; }
21697 # This can be used to rebuild libtool when needed
21698 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21700 # Always use our own libtool.
21701 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21703 # Prevent multiple expansion
21726 if test $ol_enable_perl != no ; then
21727 # Extract the first word of "perl", so it can be a program name with args.
21728 set dummy perl; ac_word=$2
21729 echo "$as_me:$LINENO: checking for $ac_word" >&5
21730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21731 if test "${ac_cv_path_PERLBIN+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21736 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21740 for as_dir in $PATH
21743 test -z "$as_dir" && as_dir=.
21744 for ac_exec_ext in '' $ac_executable_extensions; do
21745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21746 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21753 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21757 PERLBIN=$ac_cv_path_PERLBIN
21759 if test -n "$PERLBIN"; then
21760 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21761 echo "${ECHO_T}$PERLBIN" >&6
21763 echo "$as_me:$LINENO: result: no" >&5
21764 echo "${ECHO_T}no" >&6
21768 if test "no$PERLBIN" = "no" ; then
21769 if test $ol_enable_perl = yes ; then
21770 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21771 echo "$as_me: error: could not locate perl" >&2;}
21772 { (exit 1); exit 1; }; }
21776 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21777 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21779 if test x"$ol_enable_perl" = "xyes" ; then
21780 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21782 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21789 ac_cpp='$CPP $CPPFLAGS'
21790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21793 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21794 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21795 # On Suns, sometimes $CPP names a directory.
21796 if test -n "$CPP" && test -d "$CPP"; then
21799 if test -z "$CPP"; then
21800 if test "${ac_cv_prog_CPP+set}" = set; then
21801 echo $ECHO_N "(cached) $ECHO_C" >&6
21803 # Double quotes because CPP needs to be expanded
21804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21806 ac_preproc_ok=false
21807 for ac_c_preproc_warn_flag in '' yes
21809 # Use a header file that comes with gcc, so configuring glibc
21810 # with a fresh cross-compiler works.
21811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21812 # <limits.h> exists even on freestanding compilers.
21813 # On the NeXT, cc -E runs the code through the compiler's parser,
21814 # not just through cpp. "Syntax error" is here to catch this case.
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21822 # include <limits.h>
21824 # include <assert.h>
21828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21831 grep -v '^ *+' conftest.er1 >conftest.err
21833 cat conftest.err >&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } >/dev/null; then
21836 if test -s conftest.err; then
21837 ac_cpp_err=$ac_c_preproc_warn_flag
21838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21845 if test -z "$ac_cpp_err"; then
21848 echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21851 # Broken: fails on valid input.
21854 rm -f conftest.err conftest.$ac_ext
21856 # OK, works on sane cases. Now check whether non-existent headers
21857 # can be detected and how.
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 #include <ac_nonexistent.h>
21866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21869 grep -v '^ *+' conftest.er1 >conftest.err
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } >/dev/null; then
21874 if test -s conftest.err; then
21875 ac_cpp_err=$ac_c_preproc_warn_flag
21876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21883 if test -z "$ac_cpp_err"; then
21884 # Broken: success on invalid input.
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 # Passes both tests.
21894 rm -f conftest.err conftest.$ac_ext
21897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21898 rm -f conftest.err conftest.$ac_ext
21899 if $ac_preproc_ok; then
21904 ac_cv_prog_CPP=$CPP
21907 CPP=$ac_cv_prog_CPP
21909 ac_cv_prog_CPP=$CPP
21911 echo "$as_me:$LINENO: result: $CPP" >&5
21912 echo "${ECHO_T}$CPP" >&6
21913 ac_preproc_ok=false
21914 for ac_c_preproc_warn_flag in '' yes
21916 # Use a header file that comes with gcc, so configuring glibc
21917 # with a fresh cross-compiler works.
21918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21919 # <limits.h> exists even on freestanding compilers.
21920 # On the NeXT, cc -E runs the code through the compiler's parser,
21921 # not just through cpp. "Syntax error" is here to catch this case.
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21929 # include <limits.h>
21931 # include <assert.h>
21935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21938 grep -v '^ *+' conftest.er1 >conftest.err
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } >/dev/null; then
21943 if test -s conftest.err; then
21944 ac_cpp_err=$ac_c_preproc_warn_flag
21945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21952 if test -z "$ac_cpp_err"; then
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 # Broken: fails on valid input.
21961 rm -f conftest.err conftest.$ac_ext
21963 # OK, works on sane cases. Now check whether non-existent headers
21964 # can be detected and how.
21965 cat >conftest.$ac_ext <<_ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21971 #include <ac_nonexistent.h>
21973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21976 grep -v '^ *+' conftest.er1 >conftest.err
21978 cat conftest.err >&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } >/dev/null; then
21981 if test -s conftest.err; then
21982 ac_cpp_err=$ac_c_preproc_warn_flag
21983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21990 if test -z "$ac_cpp_err"; then
21991 # Broken: success on invalid input.
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21997 # Passes both tests.
22001 rm -f conftest.err conftest.$ac_ext
22004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22005 rm -f conftest.err conftest.$ac_ext
22006 if $ac_preproc_ok; then
22009 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22010 See \`config.log' for more details." >&5
22011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22012 See \`config.log' for more details." >&2;}
22013 { (exit 1); exit 1; }; }
22017 ac_cpp='$CPP $CPPFLAGS'
22018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22026 cat >>confdefs.h <<_ACEOF
22027 #define EXEEXT "${EXEEXT}"
22031 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22032 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22033 if test "${ac_cv_lib_be_be_app+set}" = set; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22036 ac_check_lib_save_LIBS=$LIBS
22037 LIBS="-lbe -lroot -lnet $LIBS"
22038 cat >conftest.$ac_ext <<_ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22045 /* Override any gcc2 internal prototype to avoid an error. */
22049 /* We use char because int might match the return type of a gcc2
22050 builtin and then its argument prototype would still apply. */
22060 rm -f conftest.$ac_objext conftest$ac_exeext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22062 (eval $ac_link) 2>conftest.er1
22064 grep -v '^ *+' conftest.er1 >conftest.err
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
22069 { ac_try='test -z "$ac_c_werror_flag"
22070 || test ! -s conftest.err'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; } &&
22076 { ac_try='test -s conftest$ac_exeext'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ac_cv_lib_be_be_app=yes
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_cv_lib_be_be_app=no
22089 rm -f conftest.err conftest.$ac_objext \
22090 conftest$ac_exeext conftest.$ac_ext
22091 LIBS=$ac_check_lib_save_LIBS
22093 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22094 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22095 if test $ac_cv_lib_be_be_app = yes; then
22096 LIBS="$LIBS -lbe -lroot -lnet"
22103 ac_cpp='$CPP $CPPFLAGS'
22104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22107 if test -n "$ac_tool_prefix"; then
22108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22110 echo "$as_me:$LINENO: checking for $ac_word" >&5
22111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22112 if test "${ac_cv_prog_CC+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 if test -n "$CC"; then
22116 ac_cv_prog_CC="$CC" # Let the user override the test.
22118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22119 for as_dir in $PATH
22122 test -z "$as_dir" && as_dir=.
22123 for ac_exec_ext in '' $ac_executable_extensions; do
22124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22135 if test -n "$CC"; then
22136 echo "$as_me:$LINENO: result: $CC" >&5
22137 echo "${ECHO_T}$CC" >&6
22139 echo "$as_me:$LINENO: result: no" >&5
22140 echo "${ECHO_T}no" >&6
22144 if test -z "$ac_cv_prog_CC"; then
22146 # Extract the first word of "gcc", so it can be a program name with args.
22147 set dummy gcc; ac_word=$2
22148 echo "$as_me:$LINENO: checking for $ac_word" >&5
22149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 if test -n "$ac_ct_CC"; then
22154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22157 for as_dir in $PATH
22160 test -z "$as_dir" && as_dir=.
22161 for ac_exec_ext in '' $ac_executable_extensions; do
22162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22163 ac_cv_prog_ac_ct_CC="gcc"
22164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22173 if test -n "$ac_ct_CC"; then
22174 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22175 echo "${ECHO_T}$ac_ct_CC" >&6
22177 echo "$as_me:$LINENO: result: no" >&5
22178 echo "${ECHO_T}no" >&6
22183 CC="$ac_cv_prog_CC"
22186 if test -z "$CC"; then
22187 if test -n "$ac_tool_prefix"; then
22188 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22189 set dummy ${ac_tool_prefix}cc; ac_word=$2
22190 echo "$as_me:$LINENO: checking for $ac_word" >&5
22191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22192 if test "${ac_cv_prog_CC+set}" = set; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 if test -n "$CC"; then
22196 ac_cv_prog_CC="$CC" # Let the user override the test.
22198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22199 for as_dir in $PATH
22202 test -z "$as_dir" && as_dir=.
22203 for ac_exec_ext in '' $ac_executable_extensions; do
22204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22205 ac_cv_prog_CC="${ac_tool_prefix}cc"
22206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22215 if test -n "$CC"; then
22216 echo "$as_me:$LINENO: result: $CC" >&5
22217 echo "${ECHO_T}$CC" >&6
22219 echo "$as_me:$LINENO: result: no" >&5
22220 echo "${ECHO_T}no" >&6
22224 if test -z "$ac_cv_prog_CC"; then
22226 # Extract the first word of "cc", so it can be a program name with args.
22227 set dummy cc; ac_word=$2
22228 echo "$as_me:$LINENO: checking for $ac_word" >&5
22229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 if test -n "$ac_ct_CC"; then
22234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22237 for as_dir in $PATH
22240 test -z "$as_dir" && as_dir=.
22241 for ac_exec_ext in '' $ac_executable_extensions; do
22242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22243 ac_cv_prog_ac_ct_CC="cc"
22244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22253 if test -n "$ac_ct_CC"; then
22254 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22255 echo "${ECHO_T}$ac_ct_CC" >&6
22257 echo "$as_me:$LINENO: result: no" >&5
22258 echo "${ECHO_T}no" >&6
22263 CC="$ac_cv_prog_CC"
22267 if test -z "$CC"; then
22268 # Extract the first word of "cc", so it can be a program name with args.
22269 set dummy cc; ac_word=$2
22270 echo "$as_me:$LINENO: checking for $ac_word" >&5
22271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22272 if test "${ac_cv_prog_CC+set}" = set; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22275 if test -n "$CC"; then
22276 ac_cv_prog_CC="$CC" # Let the user override the test.
22278 ac_prog_rejected=no
22279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22280 for as_dir in $PATH
22283 test -z "$as_dir" && as_dir=.
22284 for ac_exec_ext in '' $ac_executable_extensions; do
22285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22286 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22287 ac_prog_rejected=yes
22291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22297 if test $ac_prog_rejected = yes; then
22298 # We found a bogon in the path, so make sure we never use it.
22299 set dummy $ac_cv_prog_CC
22301 if test $# != 0; then
22302 # We chose a different compiler from the bogus one.
22303 # However, it has the same basename, so the bogon will be chosen
22304 # first if we set CC to just the basename; use the full file name.
22306 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22312 if test -n "$CC"; then
22313 echo "$as_me:$LINENO: result: $CC" >&5
22314 echo "${ECHO_T}$CC" >&6
22316 echo "$as_me:$LINENO: result: no" >&5
22317 echo "${ECHO_T}no" >&6
22321 if test -z "$CC"; then
22322 if test -n "$ac_tool_prefix"; then
22325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22327 echo "$as_me:$LINENO: checking for $ac_word" >&5
22328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22329 if test "${ac_cv_prog_CC+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22332 if test -n "$CC"; then
22333 ac_cv_prog_CC="$CC" # Let the user override the test.
22335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22336 for as_dir in $PATH
22339 test -z "$as_dir" && as_dir=.
22340 for ac_exec_ext in '' $ac_executable_extensions; do
22341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22352 if test -n "$CC"; then
22353 echo "$as_me:$LINENO: result: $CC" >&5
22354 echo "${ECHO_T}$CC" >&6
22356 echo "$as_me:$LINENO: result: no" >&5
22357 echo "${ECHO_T}no" >&6
22360 test -n "$CC" && break
22363 if test -z "$CC"; then
22367 # Extract the first word of "$ac_prog", so it can be a program name with args.
22368 set dummy $ac_prog; ac_word=$2
22369 echo "$as_me:$LINENO: checking for $ac_word" >&5
22370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 if test -n "$ac_ct_CC"; then
22375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22378 for as_dir in $PATH
22381 test -z "$as_dir" && as_dir=.
22382 for ac_exec_ext in '' $ac_executable_extensions; do
22383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22384 ac_cv_prog_ac_ct_CC="$ac_prog"
22385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22394 if test -n "$ac_ct_CC"; then
22395 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22396 echo "${ECHO_T}$ac_ct_CC" >&6
22398 echo "$as_me:$LINENO: result: no" >&5
22399 echo "${ECHO_T}no" >&6
22402 test -n "$ac_ct_CC" && break
22411 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22412 See \`config.log' for more details." >&5
22413 echo "$as_me: error: no acceptable C compiler found in \$PATH
22414 See \`config.log' for more details." >&2;}
22415 { (exit 1); exit 1; }; }
22417 # Provide some information about the compiler.
22418 echo "$as_me:$LINENO:" \
22419 "checking for C compiler version" >&5
22420 ac_compiler=`set X $ac_compile; echo $2`
22421 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22422 (eval $ac_compiler --version </dev/null >&5) 2>&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }
22426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22427 (eval $ac_compiler -v </dev/null >&5) 2>&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }
22431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22432 (eval $ac_compiler -V </dev/null >&5) 2>&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }
22437 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22438 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22439 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22442 cat >conftest.$ac_ext <<_ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22460 rm -f conftest.$ac_objext
22461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22462 (eval $ac_compile) 2>conftest.er1
22464 grep -v '^ *+' conftest.er1 >conftest.err
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
22469 { ac_try='test -z "$ac_c_werror_flag"
22470 || test ! -s conftest.err'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; } &&
22476 { ac_try='test -s conftest.$ac_objext'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 ac_compiler_gnu=yes
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22493 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22494 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22495 GCC=`test $ac_compiler_gnu = yes && echo yes`
22496 ac_test_CFLAGS=${CFLAGS+set}
22497 ac_save_CFLAGS=$CFLAGS
22499 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22500 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22501 if test "${ac_cv_prog_cc_g+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22504 cat >conftest.$ac_ext <<_ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22519 rm -f conftest.$ac_objext
22520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22521 (eval $ac_compile) 2>conftest.er1
22523 grep -v '^ *+' conftest.er1 >conftest.err
22525 cat conftest.err >&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } &&
22528 { ac_try='test -z "$ac_c_werror_flag"
22529 || test ! -s conftest.err'
22530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22531 (eval $ac_try) 2>&5
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; } &&
22535 { ac_try='test -s conftest.$ac_objext'
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; }; then
22541 ac_cv_prog_cc_g=yes
22543 echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22551 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22552 if test "$ac_test_CFLAGS" = set; then
22553 CFLAGS=$ac_save_CFLAGS
22554 elif test $ac_cv_prog_cc_g = yes; then
22555 if test "$GCC" = yes; then
22561 if test "$GCC" = yes; then
22567 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22568 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22569 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 ac_cv_prog_cc_stdc=no
22574 cat >conftest.$ac_ext <<_ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22580 #include <stdarg.h>
22582 #include <sys/types.h>
22583 #include <sys/stat.h>
22584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22585 struct buf { int x; };
22586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22587 static char *e (p, i)
22593 static char *f (char * (*g) (char **, int), char **p, ...)
22598 s = g (p, va_arg (v,int));
22603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22604 function prototypes and stuff, but not '\xHH' hex character constants.
22605 These don't provoke an error unfortunately, instead are silently treated
22606 as 'x'. The following induces an error, until -std1 is added to get
22607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22608 array size at least. It's necessary to write '\x00'==0 to get something
22609 that's true only with -std1. */
22610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22612 int test (int i, double x);
22613 struct s1 {int (*f) (int a);};
22614 struct s2 {int (*f) (double a);};
22615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22621 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22626 # Don't try gcc -ansi; that turns off useful extensions and
22627 # breaks some systems' header files.
22628 # AIX -qlanglvl=ansi
22629 # Ultrix and OSF/1 -std1
22630 # HP-UX 10.20 and later -Ae
22631 # HP-UX older versions -Aa -D_HPUX_SOURCE
22632 # SVR4 -Xc -D__EXTENSIONS__
22633 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22635 CC="$ac_save_CC $ac_arg"
22636 rm -f conftest.$ac_objext
22637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22638 (eval $ac_compile) 2>conftest.er1
22640 grep -v '^ *+' conftest.er1 >conftest.err
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } &&
22645 { ac_try='test -z "$ac_c_werror_flag"
22646 || test ! -s conftest.err'
22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648 (eval $ac_try) 2>&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; } &&
22652 { ac_try='test -s conftest.$ac_objext'
22653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654 (eval $ac_try) 2>&5
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); }; }; then
22658 ac_cv_prog_cc_stdc=$ac_arg
22661 echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22665 rm -f conftest.err conftest.$ac_objext
22667 rm -f conftest.$ac_ext conftest.$ac_objext
22672 case "x$ac_cv_prog_cc_stdc" in
22674 echo "$as_me:$LINENO: result: none needed" >&5
22675 echo "${ECHO_T}none needed" >&6 ;;
22677 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22678 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22679 CC="$CC $ac_cv_prog_cc_stdc" ;;
22682 # Some people use a C++ compiler to compile C. Since we use `exit',
22683 # in C++ we need to declare it. In case someone uses the same compiler
22684 # for both compiling C and C++ we need to have the C++ compiler decide
22685 # the declaration of exit, since it's the most demanding environment.
22686 cat >conftest.$ac_ext <<_ACEOF
22687 #ifndef __cplusplus
22691 rm -f conftest.$ac_objext
22692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22693 (eval $ac_compile) 2>conftest.er1
22695 grep -v '^ *+' conftest.er1 >conftest.err
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } &&
22700 { ac_try='test -z "$ac_c_werror_flag"
22701 || test ! -s conftest.err'
22702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22703 (eval $ac_try) 2>&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); }; } &&
22707 { ac_try='test -s conftest.$ac_objext'
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; }; then
22713 for ac_declaration in \
22715 'extern "C" void std::exit (int) throw (); using std::exit;' \
22716 'extern "C" void std::exit (int); using std::exit;' \
22717 'extern "C" void exit (int) throw ();' \
22718 'extern "C" void exit (int);' \
22721 cat >conftest.$ac_ext <<_ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22728 #include <stdlib.h>
22737 rm -f conftest.$ac_objext
22738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22739 (eval $ac_compile) 2>conftest.er1
22741 grep -v '^ *+' conftest.er1 >conftest.err
22743 cat conftest.err >&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } &&
22746 { ac_try='test -z "$ac_c_werror_flag"
22747 || test ! -s conftest.err'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; } &&
22753 { ac_try='test -s conftest.$ac_objext'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22761 echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22767 cat >conftest.$ac_ext <<_ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22782 rm -f conftest.$ac_objext
22783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22784 (eval $ac_compile) 2>conftest.er1
22786 grep -v '^ *+' conftest.er1 >conftest.err
22788 cat conftest.err >&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } &&
22791 { ac_try='test -z "$ac_c_werror_flag"
22792 || test ! -s conftest.err'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; } &&
22798 { ac_try='test -s conftest.$ac_objext'
22799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22800 (eval $ac_try) 2>&5
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); }; }; then
22806 echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22813 if test -n "$ac_declaration"; then
22814 echo '#ifdef __cplusplus' >>confdefs.h
22815 echo $ac_declaration >>confdefs.h
22816 echo '#endif' >>confdefs.h
22820 echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22826 ac_cpp='$CPP $CPPFLAGS'
22827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22831 depcc="$CC" am_compiler_list=
22833 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22834 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22835 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22836 echo $ECHO_N "(cached) $ECHO_C" >&6
22838 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22839 # We make a subdir and do the tests there. Otherwise we can end up
22840 # making bogus files that we don't know about and never remove. For
22841 # instance it was reported that on HP-UX the gcc test will end up
22842 # making a dummy file named `D' -- because `-MD' means `put the output
22845 # Copy depcomp to subdir because otherwise we won't find it if we're
22846 # using a relative directory.
22847 cp "$am_depcomp" conftest.dir
22849 # We will build objects and dependencies in a subdirectory because
22850 # it helps to detect inapplicable dependency modes. For instance
22851 # both Tru64's cc and ICC support -MD to output dependencies as a
22852 # side effect of compilation, but ICC will put the dependencies in
22853 # the current directory while Tru64 will put them in the object
22857 am_cv_CC_dependencies_compiler_type=none
22858 if test "$am_compiler_list" = ""; then
22859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22861 for depmode in $am_compiler_list; do
22862 # Setup a source with many dependencies, because some compilers
22863 # like to wrap large dependency lists on column 80 (with \), and
22864 # we should not choose a depcomp mode which is confused by this.
22866 # We need to recreate these files for each test, as the compiler may
22867 # overwrite some of them when testing with obscure command lines.
22868 # This happens at least with the AIX C compiler.
22870 for i in 1 2 3 4 5 6; do
22871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22873 # Solaris 8's {/usr,}/bin/sh.
22874 touch sub/conftst$i.h
22876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22880 # after this tag, mechanisms are not by side-effect, so they'll
22881 # only be used when explicitly requested
22882 if test "x$enable_dependency_tracking" = xyes; then
22890 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22891 # mode. It turns out that the SunPro C++ compiler does not properly
22892 # handle `-M -o', and we need to detect this.
22893 if depmode=$depmode \
22894 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22896 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22897 >/dev/null 2>conftest.err &&
22898 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22899 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22900 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22901 # icc doesn't choke on unknown options, it will just issue warnings
22902 # or remarks (even with -Werror). So we grep stderr for any message
22903 # that says an option was ignored or not supported.
22904 # When given -MP, icc 7.0 and 7.1 complain thusly:
22905 # icc: Command line warning: ignoring option '-M'; no argument required
22906 # The diagnosis changed in icc 8.0:
22907 # icc: Command line remark: option '-MP' not supported
22908 if (grep 'ignoring option' conftest.err ||
22909 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22910 am_cv_CC_dependencies_compiler_type=$depmode
22917 rm -rf conftest.dir
22919 am_cv_CC_dependencies_compiler_type=none
22923 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22924 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22925 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22930 test "x$enable_dependency_tracking" != xno \
22931 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22932 am__fastdepCC_TRUE=
22933 am__fastdepCC_FALSE='#'
22935 am__fastdepCC_TRUE='#'
22936 am__fastdepCC_FALSE=
22940 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22941 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22942 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22943 { (exit 1); exit 1; }; }
22946 # test for make depend flag
22949 if test -z "${MKDEP}"; then
22950 OL_MKDEP="${CC-cc}"
22951 if test -z "${MKDEP_FLAGS}"; then
22952 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22953 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22954 if test "${ol_cv_mkdep+set}" = set; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 for flag in "-M" "-xM"; do
22960 cat > conftest.c <<EOF
22963 if { ac_try='$OL_MKDEP $flag conftest.c'
22964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22965 (eval $ac_try) 2>&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); }; } \
22969 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22971 if test ! -f conftest."${ac_object}" ; then
22973 OL_MKDEP_FLAGS="$flag"
22981 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22982 echo "${ECHO_T}$ol_cv_mkdep" >&6
22985 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22989 OL_MKDEP="${MKDEP}"
22990 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22995 if test "${ol_cv_mkdep}" = no ; then
22996 # this will soon become an error
22997 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22998 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23001 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23002 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23003 if test "${ac_cv_lib_s_afopen+set}" = set; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23006 ac_check_lib_save_LIBS=$LIBS
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23015 /* Override any gcc2 internal prototype to avoid an error. */
23019 /* We use char because int might match the return type of a gcc2
23020 builtin and then its argument prototype would still apply. */
23030 rm -f conftest.$ac_objext conftest$ac_exeext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032 (eval $ac_link) 2>conftest.er1
23034 grep -v '^ *+' conftest.er1 >conftest.err
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
23039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest$ac_exeext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_lib_s_afopen=yes
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ac_cv_lib_s_afopen=no
23059 rm -f conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext conftest.$ac_ext
23061 LIBS=$ac_check_lib_save_LIBS
23063 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23064 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23065 if test $ac_cv_lib_s_afopen = yes; then
23069 cat >>confdefs.h <<\_ACEOF
23070 #define HAVE_AIX_SECURITY 1
23079 ac_cv_func_getopt=no
23081 cat >>confdefs.h <<\_ACEOF
23082 #define BOTH_STRINGS_H 1
23089 WITH_MODULES_ENABLED=no
23090 if test $ol_enable_modules != no ; then
23092 for ac_header in ltdl.h
23094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23096 echo "$as_me:$LINENO: checking for $ac_header" >&5
23097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23104 # Is the header compilable?
23105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23107 cat >conftest.$ac_ext <<_ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 $ac_includes_default
23114 #include <$ac_header>
23116 rm -f conftest.$ac_objext
23117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23118 (eval $ac_compile) 2>conftest.er1
23120 grep -v '^ *+' conftest.er1 >conftest.err
23122 cat conftest.err >&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } &&
23125 { ac_try='test -z "$ac_c_werror_flag"
23126 || test ! -s conftest.err'
23127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128 (eval $ac_try) 2>&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; } &&
23132 { ac_try='test -s conftest.$ac_objext'
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 ac_header_compiler=yes
23140 echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23143 ac_header_compiler=no
23145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23147 echo "${ECHO_T}$ac_header_compiler" >&6
23149 # Is the header present?
23150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23158 #include <$ac_header>
23160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } >/dev/null; then
23168 if test -s conftest.err; then
23169 ac_cpp_err=$ac_c_preproc_warn_flag
23170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23177 if test -z "$ac_cpp_err"; then
23178 ac_header_preproc=yes
23180 echo "$as_me: failed program was:" >&5
23181 sed 's/^/| /' conftest.$ac_ext >&5
23183 ac_header_preproc=no
23185 rm -f conftest.err conftest.$ac_ext
23186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23187 echo "${ECHO_T}$ac_header_preproc" >&6
23189 # So? What about this header?
23190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23196 ac_header_preproc=yes
23199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23213 ## ------------------------------------------ ##
23214 ## Report this to the AC_PACKAGE_NAME lists. ##
23215 ## ------------------------------------------ ##
23218 sed "s/^/$as_me: WARNING: /" >&2
23221 echo "$as_me:$LINENO: checking for $ac_header" >&5
23222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23226 eval "$as_ac_Header=\$ac_header_preproc"
23228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23233 cat >>confdefs.h <<_ACEOF
23234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23242 if test $ac_cv_header_ltdl_h = no ; then
23243 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23244 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23245 { (exit 1); exit 1; }; }
23248 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23249 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23250 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23253 ac_check_lib_save_LIBS=$LIBS
23254 LIBS="-lltdl $LIBS"
23255 cat >conftest.$ac_ext <<_ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h. */
23262 /* Override any gcc2 internal prototype to avoid an error. */
23266 /* We use char because int might match the return type of a gcc2
23267 builtin and then its argument prototype would still apply. */
23277 rm -f conftest.$ac_objext conftest$ac_exeext
23278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23279 (eval $ac_link) 2>conftest.er1
23281 grep -v '^ *+' conftest.er1 >conftest.err
23283 cat conftest.err >&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); } &&
23286 { ac_try='test -z "$ac_c_werror_flag"
23287 || test ! -s conftest.err'
23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289 (eval $ac_try) 2>&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; } &&
23293 { ac_try='test -s conftest$ac_exeext'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; }; then
23299 ac_cv_lib_ltdl_lt_dlinit=yes
23301 echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23304 ac_cv_lib_ltdl_lt_dlinit=no
23306 rm -f conftest.err conftest.$ac_objext \
23307 conftest$ac_exeext conftest.$ac_ext
23308 LIBS=$ac_check_lib_save_LIBS
23310 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23311 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23312 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23314 MODULES_LIBS=-lltdl
23316 cat >>confdefs.h <<\_ACEOF
23317 #define HAVE_LIBLTDL 1
23324 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23325 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23326 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23327 { (exit 1); exit 1; }; }
23329 ol_link_modules=yes
23330 WITH_MODULES_ENABLED=yes
23333 for i in $Backends; do
23334 eval "ol_tmp=\$ol_enable_$i"
23335 if test $ol_tmp = mod ; then
23336 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23337 echo "$as_me: WARNING: building static $i backend" >&2;}
23338 eval "ol_enable_$i=yes"
23341 for i in $Overlays; do
23342 eval "ol_tmp=\$ol_enable_$i"
23343 if test $ol_tmp = mod ; then
23344 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23345 echo "$as_me: WARNING: building static $i overlay" >&2;}
23346 eval "ol_enable_$i=yes"
23352 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23353 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23354 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23355 echo $ECHO_N "(cached) $ECHO_C" >&6
23358 cat >conftest.$ac_ext <<_ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h. */
23366 #include <__ASCII__/generate_error.h>
23370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } >/dev/null; then
23378 if test -s conftest.err; then
23379 ac_cpp_err=$ac_c_preproc_warn_flag
23380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23387 if test -z "$ac_cpp_err"; then
23388 ol_cv_cpp_ebcdic=yes
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23393 ol_cv_cpp_ebcdic=no
23395 rm -f conftest.err conftest.$ac_ext
23397 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23398 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23399 if test $ol_cv_cpp_ebcdic = yes ; then
23401 cat >>confdefs.h <<\_ACEOF
23402 #define HAVE_EBCDIC 1
23407 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23409 if test "${ol_cv_header_stdc+set}" = set; then
23410 echo $ECHO_N "(cached) $ECHO_C" >&6
23412 cat >conftest.$ac_ext <<_ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h. */
23418 #include <stdlib.h>
23419 #include <stdarg.h>
23420 #include <string.h>
23423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23426 grep -v '^ *+' conftest.er1 >conftest.err
23428 cat conftest.err >&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } >/dev/null; then
23431 if test -s conftest.err; then
23432 ac_cpp_err=$ac_c_preproc_warn_flag
23433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23440 if test -z "$ac_cpp_err"; then
23441 ol_cv_header_stdc=yes
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23446 ol_cv_header_stdc=no
23448 rm -f conftest.err conftest.$ac_ext
23450 if test $ol_cv_header_stdc = yes; then
23451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23452 cat >conftest.$ac_ext <<_ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 #include <string.h>
23461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23462 $EGREP "memchr" >/dev/null 2>&1; then
23465 ol_cv_header_stdc=no
23471 if test $ol_cv_header_stdc = yes; then
23472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23473 cat >conftest.$ac_ext <<_ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h. */
23479 #include <stdlib.h>
23482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23483 $EGREP "free" >/dev/null 2>&1; then
23486 ol_cv_header_stdc=no
23492 if test $ol_cv_header_stdc = yes; then
23493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23494 if test "$cross_compiling" = yes; then
23497 cat >conftest.$ac_ext <<_ACEOF
23500 cat confdefs.h >>conftest.$ac_ext
23501 cat >>conftest.$ac_ext <<_ACEOF
23502 /* end confdefs.h. */
23504 #ifndef HAVE_EBCDIC
23505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23508 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23509 || ('j' <= (c) && (c) <= 'r') \
23510 || ('s' <= (c) && (c) <= 'z'))
23511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23513 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23514 int main () { int i; for (i = 0; i < 256; i++)
23515 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23519 rm -f conftest$ac_exeext
23520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23521 (eval $ac_link) 2>&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526 (eval $ac_try) 2>&5
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); }; }; then
23532 echo "$as_me: program exited with status $ac_status" >&5
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23536 ( exit $ac_status )
23537 ol_cv_header_stdc=no
23539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23543 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23544 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23545 if test $ol_cv_header_stdc = yes; then
23546 cat >>confdefs.h <<\_ACEOF
23547 #define STDC_HEADERS 1
23551 ac_cv_header_stdc=disable
23554 if test $ol_cv_header_stdc != yes; then
23555 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23556 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23564 ac_header_dirent=no
23565 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23566 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23567 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23568 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23572 cat >conftest.$ac_ext <<_ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23578 #include <sys/types.h>
23590 rm -f conftest.$ac_objext
23591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23592 (eval $ac_compile) 2>conftest.er1
23594 grep -v '^ *+' conftest.er1 >conftest.err
23596 cat conftest.err >&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } &&
23599 { ac_try='test -z "$ac_c_werror_flag"
23600 || test ! -s conftest.err'
23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602 (eval $ac_try) 2>&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; } &&
23606 { ac_try='test -s conftest.$ac_objext'
23607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; }; then
23612 eval "$as_ac_Header=yes"
23614 echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23617 eval "$as_ac_Header=no"
23619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23624 cat >>confdefs.h <<_ACEOF
23625 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23628 ac_header_dirent=$ac_hdr; break
23632 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23633 if test $ac_header_dirent = dirent.h; then
23634 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23635 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23636 if test "${ac_cv_search_opendir+set}" = set; then
23637 echo $ECHO_N "(cached) $ECHO_C" >&6
23639 ac_func_search_save_LIBS=$LIBS
23640 ac_cv_search_opendir=no
23641 cat >conftest.$ac_ext <<_ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23648 /* Override any gcc2 internal prototype to avoid an error. */
23652 /* We use char because int might match the return type of a gcc2
23653 builtin and then its argument prototype would still apply. */
23663 rm -f conftest.$ac_objext conftest$ac_exeext
23664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23665 (eval $ac_link) 2>conftest.er1
23667 grep -v '^ *+' conftest.er1 >conftest.err
23669 cat conftest.err >&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); } &&
23672 { ac_try='test -z "$ac_c_werror_flag"
23673 || test ! -s conftest.err'
23674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675 (eval $ac_try) 2>&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; } &&
23679 { ac_try='test -s conftest$ac_exeext'
23680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681 (eval $ac_try) 2>&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; }; then
23685 ac_cv_search_opendir="none required"
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23691 rm -f conftest.err conftest.$ac_objext \
23692 conftest$ac_exeext conftest.$ac_ext
23693 if test "$ac_cv_search_opendir" = no; then
23694 for ac_lib in dir; do
23695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23696 cat >conftest.$ac_ext <<_ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23703 /* Override any gcc2 internal prototype to avoid an error. */
23707 /* We use char because int might match the return type of a gcc2
23708 builtin and then its argument prototype would still apply. */
23718 rm -f conftest.$ac_objext conftest$ac_exeext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23720 (eval $ac_link) 2>conftest.er1
23722 grep -v '^ *+' conftest.er1 >conftest.err
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } &&
23727 { ac_try='test -z "$ac_c_werror_flag"
23728 || test ! -s conftest.err'
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; } &&
23734 { ac_try='test -s conftest$ac_exeext'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
23740 ac_cv_search_opendir="-l$ac_lib"
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23747 rm -f conftest.err conftest.$ac_objext \
23748 conftest$ac_exeext conftest.$ac_ext
23751 LIBS=$ac_func_search_save_LIBS
23753 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23754 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23755 if test "$ac_cv_search_opendir" != no; then
23756 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23761 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23762 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23763 if test "${ac_cv_search_opendir+set}" = set; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23766 ac_func_search_save_LIBS=$LIBS
23767 ac_cv_search_opendir=no
23768 cat >conftest.$ac_ext <<_ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h. */
23775 /* Override any gcc2 internal prototype to avoid an error. */
23779 /* We use char because int might match the return type of a gcc2
23780 builtin and then its argument prototype would still apply. */
23790 rm -f conftest.$ac_objext conftest$ac_exeext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792 (eval $ac_link) 2>conftest.er1
23794 grep -v '^ *+' conftest.er1 >conftest.err
23796 cat conftest.err >&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } &&
23799 { ac_try='test -z "$ac_c_werror_flag"
23800 || test ! -s conftest.err'
23801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802 (eval $ac_try) 2>&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); }; } &&
23806 { ac_try='test -s conftest$ac_exeext'
23807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808 (eval $ac_try) 2>&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 ac_cv_search_opendir="none required"
23814 echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23818 rm -f conftest.err conftest.$ac_objext \
23819 conftest$ac_exeext conftest.$ac_ext
23820 if test "$ac_cv_search_opendir" = no; then
23821 for ac_lib in x; do
23822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23823 cat >conftest.$ac_ext <<_ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h. */
23830 /* Override any gcc2 internal prototype to avoid an error. */
23834 /* We use char because int might match the return type of a gcc2
23835 builtin and then its argument prototype would still apply. */
23845 rm -f conftest.$ac_objext conftest$ac_exeext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23847 (eval $ac_link) 2>conftest.er1
23849 grep -v '^ *+' conftest.er1 >conftest.err
23851 cat conftest.err >&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } &&
23854 { ac_try='test -z "$ac_c_werror_flag"
23855 || test ! -s conftest.err'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; } &&
23861 { ac_try='test -s conftest$ac_exeext'
23862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863 (eval $ac_try) 2>&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; }; then
23867 ac_cv_search_opendir="-l$ac_lib"
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23874 rm -f conftest.err conftest.$ac_objext \
23875 conftest$ac_exeext conftest.$ac_ext
23878 LIBS=$ac_func_search_save_LIBS
23880 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23881 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23882 if test "$ac_cv_search_opendir" != no; then
23883 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23889 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23890 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23891 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23894 cat >conftest.$ac_ext <<_ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 #include <sys/types.h>
23901 #include <sys/wait.h>
23902 #ifndef WEXITSTATUS
23903 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23906 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23914 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23919 rm -f conftest.$ac_objext
23920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23921 (eval $ac_compile) 2>conftest.er1
23923 grep -v '^ *+' conftest.er1 >conftest.err
23925 cat conftest.err >&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } &&
23928 { ac_try='test -z "$ac_c_werror_flag"
23929 || test ! -s conftest.err'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; } &&
23935 { ac_try='test -s conftest.$ac_objext'
23936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937 (eval $ac_try) 2>&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23941 ac_cv_header_sys_wait_h=yes
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23946 ac_cv_header_sys_wait_h=no
23948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23950 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23951 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23952 if test $ac_cv_header_sys_wait_h = yes; then
23954 cat >>confdefs.h <<\_ACEOF
23955 #define HAVE_SYS_WAIT_H 1
23960 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23961 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23962 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23963 echo $ECHO_N "(cached) $ECHO_C" >&6
23965 cat >conftest.$ac_ext <<_ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h. */
23971 #include <sys/types.h>
23972 #include <termios.h>
23978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23979 $EGREP "yes" >/dev/null 2>&1; then
23980 ac_cv_sys_tiocgwinsz_in_termios_h=yes
23982 ac_cv_sys_tiocgwinsz_in_termios_h=no
23987 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23988 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23990 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23991 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23992 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23993 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23994 echo $ECHO_N "(cached) $ECHO_C" >&6
23996 cat >conftest.$ac_ext <<_ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24002 #include <sys/types.h>
24003 #include <sys/ioctl.h>
24009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24010 $EGREP "yes" >/dev/null 2>&1; then
24011 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24013 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24018 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24019 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24021 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24023 cat >>confdefs.h <<\_ACEOF
24024 #define GWINSZ_IN_SYS_IOCTL 1
24128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24130 echo "$as_me:$LINENO: checking for $ac_header" >&5
24131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24138 # Is the header compilable?
24139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24141 cat >conftest.$ac_ext <<_ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 $ac_includes_default
24148 #include <$ac_header>
24150 rm -f conftest.$ac_objext
24151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24152 (eval $ac_compile) 2>conftest.er1
24154 grep -v '^ *+' conftest.er1 >conftest.err
24156 cat conftest.err >&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); } &&
24159 { ac_try='test -z "$ac_c_werror_flag"
24160 || test ! -s conftest.err'
24161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162 (eval $ac_try) 2>&5
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; } &&
24166 { ac_try='test -s conftest.$ac_objext'
24167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168 (eval $ac_try) 2>&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; }; then
24172 ac_header_compiler=yes
24174 echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24177 ac_header_compiler=no
24179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24181 echo "${ECHO_T}$ac_header_compiler" >&6
24183 # Is the header present?
24184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24186 cat >conftest.$ac_ext <<_ACEOF
24189 cat confdefs.h >>conftest.$ac_ext
24190 cat >>conftest.$ac_ext <<_ACEOF
24191 /* end confdefs.h. */
24192 #include <$ac_header>
24194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24197 grep -v '^ *+' conftest.er1 >conftest.err
24199 cat conftest.err >&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } >/dev/null; then
24202 if test -s conftest.err; then
24203 ac_cpp_err=$ac_c_preproc_warn_flag
24204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24211 if test -z "$ac_cpp_err"; then
24212 ac_header_preproc=yes
24214 echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24217 ac_header_preproc=no
24219 rm -f conftest.err conftest.$ac_ext
24220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24221 echo "${ECHO_T}$ac_header_preproc" >&6
24223 # So? What about this header?
24224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24230 ac_header_preproc=yes
24233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24247 ## ------------------------------------------ ##
24248 ## Report this to the AC_PACKAGE_NAME lists. ##
24249 ## ------------------------------------------ ##
24252 sed "s/^/$as_me: WARNING: /" >&2
24255 echo "$as_me:$LINENO: checking for $ac_header" >&5
24256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24258 echo $ECHO_N "(cached) $ECHO_C" >&6
24260 eval "$as_ac_Header=\$ac_header_preproc"
24262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24267 cat >>confdefs.h <<_ACEOF
24268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24277 for ac_header in resolv.h
24279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24280 echo "$as_me:$LINENO: checking for $ac_header" >&5
24281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24283 echo $ECHO_N "(cached) $ECHO_C" >&6
24285 cat >conftest.$ac_ext <<_ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 $ac_includes_default
24292 #include <netinet/in.h>
24295 #include <$ac_header>
24297 rm -f conftest.$ac_objext
24298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24299 (eval $ac_compile) 2>conftest.er1
24301 grep -v '^ *+' conftest.er1 >conftest.err
24303 cat conftest.err >&5
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); } &&
24306 { ac_try='test -z "$ac_c_werror_flag"
24307 || test ! -s conftest.err'
24308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }; } &&
24313 { ac_try='test -s conftest.$ac_objext'
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; }; then
24319 eval "$as_ac_Header=yes"
24321 echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24324 eval "$as_ac_Header=no"
24326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24331 cat >>confdefs.h <<_ACEOF
24332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24341 for ac_header in sys/ucred.h
24343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24344 echo "$as_me:$LINENO: checking for $ac_header" >&5
24345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24347 echo $ECHO_N "(cached) $ECHO_C" >&6
24349 cat >conftest.$ac_ext <<_ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24355 $ac_includes_default
24356 #ifdef HAVE_SYS_PARAM_H
24357 #include <sys/param.h>
24361 #include <$ac_header>
24363 rm -f conftest.$ac_objext
24364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24365 (eval $ac_compile) 2>conftest.er1
24367 grep -v '^ *+' conftest.er1 >conftest.err
24369 cat conftest.err >&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } &&
24372 { ac_try='test -z "$ac_c_werror_flag"
24373 || test ! -s conftest.err'
24374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375 (eval $ac_try) 2>&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); }; } &&
24379 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24385 eval "$as_ac_Header=yes"
24387 echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24390 eval "$as_ac_Header=no"
24392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24397 cat >>confdefs.h <<_ACEOF
24398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24409 for ac_func in sigaction sigset
24411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24412 echo "$as_me:$LINENO: checking for $ac_func" >&5
24413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24414 if eval "test \"\${$as_ac_var+set}\" = set"; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24417 cat >conftest.$ac_ext <<_ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h. */
24423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24425 #define $ac_func innocuous_$ac_func
24427 /* System header to define __stub macros and hopefully few prototypes,
24428 which can conflict with char $ac_func (); below.
24429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24430 <limits.h> exists even on freestanding compilers. */
24433 # include <limits.h>
24435 # include <assert.h>
24440 /* Override any gcc2 internal prototype to avoid an error. */
24445 /* We use char because int might match the return type of a gcc2
24446 builtin and then its argument prototype would still apply. */
24448 /* The GNU C library defines this for functions which it implements
24449 to always fail with ENOSYS. Some functions are actually named
24450 something starting with __ and the normal name is an alias. */
24451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24454 char (*f) () = $ac_func;
24463 return f != $ac_func;
24468 rm -f conftest.$ac_objext conftest$ac_exeext
24469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24470 (eval $ac_link) 2>conftest.er1
24472 grep -v '^ *+' conftest.er1 >conftest.err
24474 cat conftest.err >&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } &&
24477 { ac_try='test -z "$ac_c_werror_flag"
24478 || test ! -s conftest.err'
24479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; } &&
24484 { ac_try='test -s conftest$ac_exeext'
24485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486 (eval $ac_try) 2>&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; }; then
24490 eval "$as_ac_var=yes"
24492 echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24495 eval "$as_ac_var=no"
24497 rm -f conftest.err conftest.$ac_objext \
24498 conftest$ac_exeext conftest.$ac_ext
24500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24502 if test `eval echo '${'$as_ac_var'}'` = yes; then
24503 cat >>confdefs.h <<_ACEOF
24504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24511 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24513 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24514 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24515 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24516 echo $ECHO_N "(cached) $ECHO_C" >&6
24518 ac_check_lib_save_LIBS=$LIBS
24520 cat >conftest.$ac_ext <<_ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24527 /* Override any gcc2 internal prototype to avoid an error. */
24531 /* We use char because int might match the return type of a gcc2
24532 builtin and then its argument prototype would still apply. */
24542 rm -f conftest.$ac_objext conftest$ac_exeext
24543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24544 (eval $ac_link) 2>conftest.er1
24546 grep -v '^ *+' conftest.er1 >conftest.err
24548 cat conftest.err >&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } &&
24551 { ac_try='test -z "$ac_c_werror_flag"
24552 || test ! -s conftest.err'
24553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554 (eval $ac_try) 2>&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; } &&
24558 { ac_try='test -s conftest$ac_exeext'
24559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24560 (eval $ac_try) 2>&5
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); }; }; then
24564 ac_cv_lib_V3_sigset=yes
24566 echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24569 ac_cv_lib_V3_sigset=no
24571 rm -f conftest.err conftest.$ac_objext \
24572 conftest$ac_exeext conftest.$ac_ext
24573 LIBS=$ac_check_lib_save_LIBS
24575 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24576 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24577 if test $ac_cv_lib_V3_sigset = yes; then
24578 cat >>confdefs.h <<_ACEOF
24579 #define HAVE_LIBV3 1
24588 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24589 echo "$as_me:$LINENO: checking for winsock" >&5
24590 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24591 if test "${ol_cv_winsock+set}" = set; then
24592 echo $ECHO_N "(cached) $ECHO_C" >&6
24595 for curlib in ws2_32 wsock32; do
24596 LIBS="$LIBS -l$curlib"
24597 cat >conftest.$ac_ext <<_ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h. */
24603 #include <winsock.h>
24610 select(0,NULL,NULL,NULL,NULL);
24612 gethostname(NULL,0);
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24620 (eval $ac_link) 2>conftest.er1
24622 grep -v '^ *+' conftest.er1 >conftest.err
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } &&
24627 { ac_try='test -z "$ac_c_werror_flag"
24628 || test ! -s conftest.err'
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; } &&
24634 { ac_try='test -s conftest$ac_exeext'
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24642 echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24647 rm -f conftest.err conftest.$ac_objext \
24648 conftest$ac_exeext conftest.$ac_ext
24650 if test $ol_cv_winsock = yes; then
24652 cat >>confdefs.h <<\_ACEOF
24653 #define HAVE_WINSOCK 1
24656 ac_cv_func_socket=yes
24657 ac_cv_func_select=yes
24658 ac_cv_func_closesocket=yes
24659 ac_cv_func_gethostname=yes
24660 if test $curlib = ws2_32; then
24661 ol_cv_winsock=winsock2
24663 cat >>confdefs.h <<\_ACEOF
24664 #define HAVE_WINSOCK2 1
24673 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24674 echo "${ECHO_T}$ol_cv_winsock" >&6
24678 echo "$as_me:$LINENO: checking for socket" >&5
24679 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24680 if test "${ac_cv_func_socket+set}" = set; then
24681 echo $ECHO_N "(cached) $ECHO_C" >&6
24683 cat >conftest.$ac_ext <<_ACEOF
24686 cat confdefs.h >>conftest.$ac_ext
24687 cat >>conftest.$ac_ext <<_ACEOF
24688 /* end confdefs.h. */
24689 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24691 #define socket innocuous_socket
24693 /* System header to define __stub macros and hopefully few prototypes,
24694 which can conflict with char socket (); below.
24695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24696 <limits.h> exists even on freestanding compilers. */
24699 # include <limits.h>
24701 # include <assert.h>
24706 /* Override any gcc2 internal prototype to avoid an error. */
24711 /* We use char because int might match the return type of a gcc2
24712 builtin and then its argument prototype would still apply. */
24714 /* The GNU C library defines this for functions which it implements
24715 to always fail with ENOSYS. Some functions are actually named
24716 something starting with __ and the normal name is an alias. */
24717 #if defined (__stub_socket) || defined (__stub___socket)
24720 char (*f) () = socket;
24729 return f != socket;
24734 rm -f conftest.$ac_objext conftest$ac_exeext
24735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24736 (eval $ac_link) 2>conftest.er1
24738 grep -v '^ *+' conftest.er1 >conftest.err
24740 cat conftest.err >&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); } &&
24743 { ac_try='test -z "$ac_c_werror_flag"
24744 || test ! -s conftest.err'
24745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746 (eval $ac_try) 2>&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; } &&
24750 { ac_try='test -s conftest$ac_exeext'
24751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752 (eval $ac_try) 2>&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; }; then
24756 ac_cv_func_socket=yes
24758 echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24761 ac_cv_func_socket=no
24763 rm -f conftest.err conftest.$ac_objext \
24764 conftest$ac_exeext conftest.$ac_ext
24766 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24767 echo "${ECHO_T}$ac_cv_func_socket" >&6
24768 if test $ac_cv_func_socket = yes; then
24773 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24774 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24775 if test "${ac_cv_lib_socket_main+set}" = set; then
24776 echo $ECHO_N "(cached) $ECHO_C" >&6
24778 ac_check_lib_save_LIBS=$LIBS
24779 LIBS="-lsocket $LIBS"
24780 cat >conftest.$ac_ext <<_ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24796 rm -f conftest.$ac_objext conftest$ac_exeext
24797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24798 (eval $ac_link) 2>conftest.er1
24800 grep -v '^ *+' conftest.er1 >conftest.err
24802 cat conftest.err >&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } &&
24805 { ac_try='test -z "$ac_c_werror_flag"
24806 || test ! -s conftest.err'
24807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808 (eval $ac_try) 2>&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); }; } &&
24812 { ac_try='test -s conftest$ac_exeext'
24813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814 (eval $ac_try) 2>&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); }; }; then
24818 ac_cv_lib_socket_main=yes
24820 echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24823 ac_cv_lib_socket_main=no
24825 rm -f conftest.err conftest.$ac_objext \
24826 conftest$ac_exeext conftest.$ac_ext
24827 LIBS=$ac_check_lib_save_LIBS
24829 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24830 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24831 if test $ac_cv_lib_socket_main = yes; then
24832 cat >>confdefs.h <<_ACEOF
24833 #define HAVE_LIBSOCKET 1
24836 LIBS="-lsocket $LIBS"
24841 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24842 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24843 if test "${ac_cv_lib_net_main+set}" = set; then
24844 echo $ECHO_N "(cached) $ECHO_C" >&6
24846 ac_check_lib_save_LIBS=$LIBS
24848 cat >conftest.$ac_ext <<_ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24864 rm -f conftest.$ac_objext conftest$ac_exeext
24865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24866 (eval $ac_link) 2>conftest.er1
24868 grep -v '^ *+' conftest.er1 >conftest.err
24870 cat conftest.err >&5
24871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872 (exit $ac_status); } &&
24873 { ac_try='test -z "$ac_c_werror_flag"
24874 || test ! -s conftest.err'
24875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876 (eval $ac_try) 2>&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; } &&
24880 { ac_try='test -s conftest$ac_exeext'
24881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882 (eval $ac_try) 2>&5
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); }; }; then
24886 ac_cv_lib_net_main=yes
24888 echo "$as_me: failed program was:" >&5
24889 sed 's/^/| /' conftest.$ac_ext >&5
24891 ac_cv_lib_net_main=no
24893 rm -f conftest.err conftest.$ac_objext \
24894 conftest$ac_exeext conftest.$ac_ext
24895 LIBS=$ac_check_lib_save_LIBS
24897 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24898 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24899 if test $ac_cv_lib_net_main = yes; then
24900 cat >>confdefs.h <<_ACEOF
24901 #define HAVE_LIBNET 1
24909 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24910 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24911 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24914 ac_check_lib_save_LIBS=$LIBS
24915 LIBS="-lnsl_s $LIBS"
24916 cat >conftest.$ac_ext <<_ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24932 rm -f conftest.$ac_objext conftest$ac_exeext
24933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24934 (eval $ac_link) 2>conftest.er1
24936 grep -v '^ *+' conftest.er1 >conftest.err
24938 cat conftest.err >&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); } &&
24941 { ac_try='test -z "$ac_c_werror_flag"
24942 || test ! -s conftest.err'
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; } &&
24948 { ac_try='test -s conftest$ac_exeext'
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; }; then
24954 ac_cv_lib_nsl_s_main=yes
24956 echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24959 ac_cv_lib_nsl_s_main=no
24961 rm -f conftest.err conftest.$ac_objext \
24962 conftest$ac_exeext conftest.$ac_ext
24963 LIBS=$ac_check_lib_save_LIBS
24965 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24966 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24967 if test $ac_cv_lib_nsl_s_main = yes; then
24968 cat >>confdefs.h <<_ACEOF
24969 #define HAVE_LIBNSL_S 1
24972 LIBS="-lnsl_s $LIBS"
24977 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24978 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24979 if test "${ac_cv_lib_nsl_main+set}" = set; then
24980 echo $ECHO_N "(cached) $ECHO_C" >&6
24982 ac_check_lib_save_LIBS=$LIBS
24984 cat >conftest.$ac_ext <<_ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
25000 rm -f conftest.$ac_objext conftest$ac_exeext
25001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25002 (eval $ac_link) 2>conftest.er1
25004 grep -v '^ *+' conftest.er1 >conftest.err
25006 cat conftest.err >&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); } &&
25009 { ac_try='test -z "$ac_c_werror_flag"
25010 || test ! -s conftest.err'
25011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012 (eval $ac_try) 2>&5
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; } &&
25016 { ac_try='test -s conftest$ac_exeext'
25017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25018 (eval $ac_try) 2>&5
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); }; }; then
25022 ac_cv_lib_nsl_main=yes
25024 echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25027 ac_cv_lib_nsl_main=no
25029 rm -f conftest.err conftest.$ac_objext \
25030 conftest$ac_exeext conftest.$ac_ext
25031 LIBS=$ac_check_lib_save_LIBS
25033 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25034 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25035 if test $ac_cv_lib_nsl_main = yes; then
25036 cat >>confdefs.h <<_ACEOF
25037 #define HAVE_LIBNSL 1
25045 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25046 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25047 if test "${ac_cv_lib_inet_socket+set}" = set; then
25048 echo $ECHO_N "(cached) $ECHO_C" >&6
25050 ac_check_lib_save_LIBS=$LIBS
25051 LIBS="-linet $LIBS"
25052 cat >conftest.$ac_ext <<_ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25059 /* Override any gcc2 internal prototype to avoid an error. */
25063 /* We use char because int might match the return type of a gcc2
25064 builtin and then its argument prototype would still apply. */
25074 rm -f conftest.$ac_objext conftest$ac_exeext
25075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25076 (eval $ac_link) 2>conftest.er1
25078 grep -v '^ *+' conftest.er1 >conftest.err
25080 cat conftest.err >&5
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } &&
25083 { ac_try='test -z "$ac_c_werror_flag"
25084 || test ! -s conftest.err'
25085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086 (eval $ac_try) 2>&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; } &&
25090 { ac_try='test -s conftest$ac_exeext'
25091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092 (eval $ac_try) 2>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; }; then
25096 ac_cv_lib_inet_socket=yes
25098 echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25101 ac_cv_lib_inet_socket=no
25103 rm -f conftest.err conftest.$ac_objext \
25104 conftest$ac_exeext conftest.$ac_ext
25105 LIBS=$ac_check_lib_save_LIBS
25107 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25108 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25109 if test $ac_cv_lib_inet_socket = yes; then
25110 cat >>confdefs.h <<_ACEOF
25111 #define HAVE_LIBINET 1
25114 LIBS="-linet $LIBS"
25119 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25120 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25121 if test "${ac_cv_lib_gen_main+set}" = set; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25124 ac_check_lib_save_LIBS=$LIBS
25126 cat >conftest.$ac_ext <<_ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h. */
25142 rm -f conftest.$ac_objext conftest$ac_exeext
25143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144 (eval $ac_link) 2>conftest.er1
25146 grep -v '^ *+' conftest.er1 >conftest.err
25148 cat conftest.err >&5
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); } &&
25151 { ac_try='test -z "$ac_c_werror_flag"
25152 || test ! -s conftest.err'
25153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); }; } &&
25158 { ac_try='test -s conftest$ac_exeext'
25159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160 (eval $ac_try) 2>&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); }; }; then
25164 ac_cv_lib_gen_main=yes
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25169 ac_cv_lib_gen_main=no
25171 rm -f conftest.err conftest.$ac_objext \
25172 conftest$ac_exeext conftest.$ac_ext
25173 LIBS=$ac_check_lib_save_LIBS
25175 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25176 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25177 if test $ac_cv_lib_gen_main = yes; then
25178 cat >>confdefs.h <<_ACEOF
25179 #define HAVE_LIBGEN 1
25190 echo "$as_me:$LINENO: checking for select" >&5
25191 echo $ECHO_N "checking for select... $ECHO_C" >&6
25192 if test "${ac_cv_func_select+set}" = set; then
25193 echo $ECHO_N "(cached) $ECHO_C" >&6
25195 cat >conftest.$ac_ext <<_ACEOF
25198 cat confdefs.h >>conftest.$ac_ext
25199 cat >>conftest.$ac_ext <<_ACEOF
25200 /* end confdefs.h. */
25201 /* Define select to an innocuous variant, in case <limits.h> declares select.
25202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25203 #define select innocuous_select
25205 /* System header to define __stub macros and hopefully few prototypes,
25206 which can conflict with char select (); below.
25207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25208 <limits.h> exists even on freestanding compilers. */
25211 # include <limits.h>
25213 # include <assert.h>
25218 /* Override any gcc2 internal prototype to avoid an error. */
25223 /* We use char because int might match the return type of a gcc2
25224 builtin and then its argument prototype would still apply. */
25226 /* The GNU C library defines this for functions which it implements
25227 to always fail with ENOSYS. Some functions are actually named
25228 something starting with __ and the normal name is an alias. */
25229 #if defined (__stub_select) || defined (__stub___select)
25232 char (*f) () = select;
25241 return f != select;
25246 rm -f conftest.$ac_objext conftest$ac_exeext
25247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25248 (eval $ac_link) 2>conftest.er1
25250 grep -v '^ *+' conftest.er1 >conftest.err
25252 cat conftest.err >&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); } &&
25255 { ac_try='test -z "$ac_c_werror_flag"
25256 || test ! -s conftest.err'
25257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258 (eval $ac_try) 2>&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; } &&
25262 { ac_try='test -s conftest$ac_exeext'
25263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25264 (eval $ac_try) 2>&5
25266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); }; }; then
25268 ac_cv_func_select=yes
25270 echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25273 ac_cv_func_select=no
25275 rm -f conftest.err conftest.$ac_objext \
25276 conftest$ac_exeext conftest.$ac_ext
25278 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25279 echo "${ECHO_T}$ac_cv_func_select" >&6
25280 if test $ac_cv_func_select = yes; then
25283 { { echo "$as_me:$LINENO: error: select() required." >&5
25284 echo "$as_me: error: select() required." >&2;}
25285 { (exit 1); exit 1; }; }
25289 if test "${ac_cv_header_winsock_h}" != yes; then
25292 for ac_header in sys/select.h sys/socket.h
25294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25296 echo "$as_me:$LINENO: checking for $ac_header" >&5
25297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25299 echo $ECHO_N "(cached) $ECHO_C" >&6
25301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25304 # Is the header compilable?
25305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25307 cat >conftest.$ac_ext <<_ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 $ac_includes_default
25314 #include <$ac_header>
25316 rm -f conftest.$ac_objext
25317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25318 (eval $ac_compile) 2>conftest.er1
25320 grep -v '^ *+' conftest.er1 >conftest.err
25322 cat conftest.err >&5
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } &&
25325 { ac_try='test -z "$ac_c_werror_flag"
25326 || test ! -s conftest.err'
25327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328 (eval $ac_try) 2>&5
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); }; } &&
25332 { ac_try='test -s conftest.$ac_objext'
25333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334 (eval $ac_try) 2>&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); }; }; then
25338 ac_header_compiler=yes
25340 echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25343 ac_header_compiler=no
25345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25347 echo "${ECHO_T}$ac_header_compiler" >&6
25349 # Is the header present?
25350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25352 cat >conftest.$ac_ext <<_ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 #include <$ac_header>
25360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25363 grep -v '^ *+' conftest.er1 >conftest.err
25365 cat conftest.err >&5
25366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 (exit $ac_status); } >/dev/null; then
25368 if test -s conftest.err; then
25369 ac_cpp_err=$ac_c_preproc_warn_flag
25370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25377 if test -z "$ac_cpp_err"; then
25378 ac_header_preproc=yes
25380 echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25383 ac_header_preproc=no
25385 rm -f conftest.err conftest.$ac_ext
25386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25387 echo "${ECHO_T}$ac_header_preproc" >&6
25389 # So? What about this header?
25390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25396 ac_header_preproc=yes
25399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25413 ## ------------------------------------------ ##
25414 ## Report this to the AC_PACKAGE_NAME lists. ##
25415 ## ------------------------------------------ ##
25418 sed "s/^/$as_me: WARNING: /" >&2
25421 echo "$as_me:$LINENO: checking for $ac_header" >&5
25422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25426 eval "$as_ac_Header=\$ac_header_preproc"
25428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25433 cat >>confdefs.h <<_ACEOF
25434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25441 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25442 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25443 if test "${ac_cv_func_select_args+set}" = set; then
25444 echo $ECHO_N "(cached) $ECHO_C" >&6
25446 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25447 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25448 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25449 cat >conftest.$ac_ext <<_ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h. */
25455 $ac_includes_default
25456 #if HAVE_SYS_SELECT_H
25457 # include <sys/select.h>
25459 #if HAVE_SYS_SOCKET_H
25460 # include <sys/socket.h>
25466 extern int select ($ac_arg1,
25467 $ac_arg234, $ac_arg234, $ac_arg234,
25473 rm -f conftest.$ac_objext
25474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25475 (eval $ac_compile) 2>conftest.er1
25477 grep -v '^ *+' conftest.er1 >conftest.err
25479 cat conftest.err >&5
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } &&
25482 { ac_try='test -z "$ac_c_werror_flag"
25483 || test ! -s conftest.err'
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; } &&
25489 { ac_try='test -s conftest.$ac_objext'
25490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25491 (eval $ac_try) 2>&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); }; }; then
25495 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25497 echo "$as_me: failed program was:" >&5
25498 sed 's/^/| /' conftest.$ac_ext >&5
25501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25505 # Provide a safe default value.
25506 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25509 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25510 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25511 ac_save_IFS=$IFS; IFS=','
25512 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25516 cat >>confdefs.h <<_ACEOF
25517 #define SELECT_TYPE_ARG1 $1
25521 cat >>confdefs.h <<_ACEOF
25522 #define SELECT_TYPE_ARG234 ($2)
25526 cat >>confdefs.h <<_ACEOF
25527 #define SELECT_TYPE_ARG5 ($3)
25536 for ac_func in poll
25538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25539 echo "$as_me:$LINENO: checking for $ac_func" >&5
25540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25541 if eval "test \"\${$as_ac_var+set}\" = set"; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 cat >conftest.$ac_ext <<_ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h. */
25550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25552 #define $ac_func innocuous_$ac_func
25554 /* System header to define __stub macros and hopefully few prototypes,
25555 which can conflict with char $ac_func (); below.
25556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25557 <limits.h> exists even on freestanding compilers. */
25560 # include <limits.h>
25562 # include <assert.h>
25567 /* Override any gcc2 internal prototype to avoid an error. */
25572 /* We use char because int might match the return type of a gcc2
25573 builtin and then its argument prototype would still apply. */
25575 /* The GNU C library defines this for functions which it implements
25576 to always fail with ENOSYS. Some functions are actually named
25577 something starting with __ and the normal name is an alias. */
25578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25581 char (*f) () = $ac_func;
25590 return f != $ac_func;
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25597 (eval $ac_link) 2>conftest.er1
25599 grep -v '^ *+' conftest.er1 >conftest.err
25601 cat conftest.err >&5
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); } &&
25604 { ac_try='test -z "$ac_c_werror_flag"
25605 || test ! -s conftest.err'
25606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607 (eval $ac_try) 2>&5
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; } &&
25611 { ac_try='test -s conftest$ac_exeext'
25612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613 (eval $ac_try) 2>&5
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; }; then
25617 eval "$as_ac_var=yes"
25619 echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25622 eval "$as_ac_var=no"
25624 rm -f conftest.err conftest.$ac_objext \
25625 conftest$ac_exeext conftest.$ac_ext
25627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25629 if test `eval echo '${'$as_ac_var'}'` = yes; then
25630 cat >>confdefs.h <<_ACEOF
25631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25638 for ac_header in poll.h
25640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25642 echo "$as_me:$LINENO: checking for $ac_header" >&5
25643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25645 echo $ECHO_N "(cached) $ECHO_C" >&6
25647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25650 # Is the header compilable?
25651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25653 cat >conftest.$ac_ext <<_ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h. */
25659 $ac_includes_default
25660 #include <$ac_header>
25662 rm -f conftest.$ac_objext
25663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25664 (eval $ac_compile) 2>conftest.er1
25666 grep -v '^ *+' conftest.er1 >conftest.err
25668 cat conftest.err >&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); } &&
25671 { ac_try='test -z "$ac_c_werror_flag"
25672 || test ! -s conftest.err'
25673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674 (eval $ac_try) 2>&5
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); }; } &&
25678 { ac_try='test -s conftest.$ac_objext'
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; }; then
25684 ac_header_compiler=yes
25686 echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25689 ac_header_compiler=no
25691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25693 echo "${ECHO_T}$ac_header_compiler" >&6
25695 # Is the header present?
25696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25698 cat >conftest.$ac_ext <<_ACEOF
25701 cat confdefs.h >>conftest.$ac_ext
25702 cat >>conftest.$ac_ext <<_ACEOF
25703 /* end confdefs.h. */
25704 #include <$ac_header>
25706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25709 grep -v '^ *+' conftest.er1 >conftest.err
25711 cat conftest.err >&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } >/dev/null; then
25714 if test -s conftest.err; then
25715 ac_cpp_err=$ac_c_preproc_warn_flag
25716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25723 if test -z "$ac_cpp_err"; then
25724 ac_header_preproc=yes
25726 echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25729 ac_header_preproc=no
25731 rm -f conftest.err conftest.$ac_ext
25732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25733 echo "${ECHO_T}$ac_header_preproc" >&6
25735 # So? What about this header?
25736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25742 ac_header_preproc=yes
25745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25759 ## ------------------------------------------ ##
25760 ## Report this to the AC_PACKAGE_NAME lists. ##
25761 ## ------------------------------------------ ##
25764 sed "s/^/$as_me: WARNING: /" >&2
25767 echo "$as_me:$LINENO: checking for $ac_header" >&5
25768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25770 echo $ECHO_N "(cached) $ECHO_C" >&6
25772 eval "$as_ac_Header=\$ac_header_preproc"
25774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25779 cat >>confdefs.h <<_ACEOF
25780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25789 for ac_header in sys/epoll.h
25791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25793 echo "$as_me:$LINENO: checking for $ac_header" >&5
25794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25801 # Is the header compilable?
25802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25810 $ac_includes_default
25811 #include <$ac_header>
25813 rm -f conftest.$ac_objext
25814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25815 (eval $ac_compile) 2>conftest.er1
25817 grep -v '^ *+' conftest.er1 >conftest.err
25819 cat conftest.err >&5
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } &&
25822 { ac_try='test -z "$ac_c_werror_flag"
25823 || test ! -s conftest.err'
25824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825 (eval $ac_try) 2>&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); }; } &&
25829 { ac_try='test -s conftest.$ac_objext'
25830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831 (eval $ac_try) 2>&5
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); }; }; then
25835 ac_header_compiler=yes
25837 echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25840 ac_header_compiler=no
25842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25844 echo "${ECHO_T}$ac_header_compiler" >&6
25846 # Is the header present?
25847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25849 cat >conftest.$ac_ext <<_ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h. */
25855 #include <$ac_header>
25857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25860 grep -v '^ *+' conftest.er1 >conftest.err
25862 cat conftest.err >&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } >/dev/null; then
25865 if test -s conftest.err; then
25866 ac_cpp_err=$ac_c_preproc_warn_flag
25867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25874 if test -z "$ac_cpp_err"; then
25875 ac_header_preproc=yes
25877 echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25880 ac_header_preproc=no
25882 rm -f conftest.err conftest.$ac_ext
25883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25884 echo "${ECHO_T}$ac_header_preproc" >&6
25886 # So? What about this header?
25887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25893 ac_header_preproc=yes
25896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25910 ## ------------------------------------------ ##
25911 ## Report this to the AC_PACKAGE_NAME lists. ##
25912 ## ------------------------------------------ ##
25915 sed "s/^/$as_me: WARNING: /" >&2
25918 echo "$as_me:$LINENO: checking for $ac_header" >&5
25919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25921 echo $ECHO_N "(cached) $ECHO_C" >&6
25923 eval "$as_ac_Header=\$ac_header_preproc"
25925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25930 cat >>confdefs.h <<_ACEOF
25931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25938 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25939 echo "$as_me:$LINENO: checking for epoll system call" >&5
25940 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25941 if test "$cross_compiling" = yes; then
25942 echo "$as_me:$LINENO: result: no" >&5
25943 echo "${ECHO_T}no" >&6
25945 cat >conftest.$ac_ext <<_ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h. */
25951 int main(int argc, char *argv)
25953 int epfd = epoll_create(256);
25954 exit (epfd == -1 ? 1 : 0);
25957 rm -f conftest$ac_exeext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25959 (eval $ac_link) 2>&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; }; then
25968 echo "$as_me:$LINENO: result: yes" >&5
25969 echo "${ECHO_T}yes" >&6
25971 cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_EPOLL 1
25976 echo "$as_me: program exited with status $ac_status" >&5
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 ( exit $ac_status )
25981 echo "$as_me:$LINENO: result: no" >&5
25982 echo "${ECHO_T}no" >&6
25984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25989 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25990 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25991 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25992 echo $ECHO_N "(cached) $ECHO_C" >&6
25995 cat >conftest.$ac_ext <<_ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26003 #include <sys/types.h>
26006 #include <stdlib.h>
26011 char *c = (char *) *sys_errlist
26016 rm -f conftest.$ac_objext
26017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26018 (eval $ac_compile) 2>conftest.er1
26020 grep -v '^ *+' conftest.er1 >conftest.err
26022 cat conftest.err >&5
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); } &&
26025 { ac_try='test -z "$ac_c_werror_flag"
26026 || test ! -s conftest.err'
26027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028 (eval $ac_try) 2>&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; } &&
26032 { ac_try='test -s conftest.$ac_objext'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; }; then
26038 ol_cv_dcl_sys_errlist=yes
26039 ol_cv_have_sys_errlist=yes
26041 echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26044 ol_cv_dcl_sys_errlist=no
26046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26048 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26049 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26051 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26052 if test $ol_cv_dcl_sys_errlist = no ; then
26054 cat >>confdefs.h <<\_ACEOF
26055 #define DECL_SYS_ERRLIST 1
26059 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26060 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26061 if test "${ol_cv_have_sys_errlist+set}" = set; then
26062 echo $ECHO_N "(cached) $ECHO_C" >&6
26065 cat >conftest.$ac_ext <<_ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h. */
26075 char *c = (char *) *sys_errlist
26080 rm -f conftest.$ac_objext conftest$ac_exeext
26081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26082 (eval $ac_link) 2>conftest.er1
26084 grep -v '^ *+' conftest.er1 >conftest.err
26086 cat conftest.err >&5
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } &&
26089 { ac_try='test -z "$ac_c_werror_flag"
26090 || test ! -s conftest.err'
26091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092 (eval $ac_try) 2>&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); }; } &&
26096 { ac_try='test -s conftest$ac_exeext'
26097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098 (eval $ac_try) 2>&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; }; then
26102 ol_cv_have_sys_errlist=yes
26104 echo "$as_me: failed program was:" >&5
26105 sed 's/^/| /' conftest.$ac_ext >&5
26107 ol_cv_have_sys_errlist=no
26109 rm -f conftest.err conftest.$ac_objext \
26110 conftest$ac_exeext conftest.$ac_ext
26112 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26113 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26115 if test $ol_cv_have_sys_errlist = yes ; then
26117 cat >>confdefs.h <<\_ACEOF
26118 #define HAVE_SYS_ERRLIST 1
26124 for ac_func in strerror strerror_r
26126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26127 echo "$as_me:$LINENO: checking for $ac_func" >&5
26128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26129 if eval "test \"\${$as_ac_var+set}\" = set"; then
26130 echo $ECHO_N "(cached) $ECHO_C" >&6
26132 cat >conftest.$ac_ext <<_ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26140 #define $ac_func innocuous_$ac_func
26142 /* System header to define __stub macros and hopefully few prototypes,
26143 which can conflict with char $ac_func (); below.
26144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26145 <limits.h> exists even on freestanding compilers. */
26148 # include <limits.h>
26150 # include <assert.h>
26155 /* Override any gcc2 internal prototype to avoid an error. */
26160 /* We use char because int might match the return type of a gcc2
26161 builtin and then its argument prototype would still apply. */
26163 /* The GNU C library defines this for functions which it implements
26164 to always fail with ENOSYS. Some functions are actually named
26165 something starting with __ and the normal name is an alias. */
26166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26169 char (*f) () = $ac_func;
26178 return f != $ac_func;
26183 rm -f conftest.$ac_objext conftest$ac_exeext
26184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26185 (eval $ac_link) 2>conftest.er1
26187 grep -v '^ *+' conftest.er1 >conftest.err
26189 cat conftest.err >&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } &&
26192 { ac_try='test -z "$ac_c_werror_flag"
26193 || test ! -s conftest.err'
26194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195 (eval $ac_try) 2>&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; } &&
26199 { ac_try='test -s conftest$ac_exeext'
26200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26201 (eval $ac_try) 2>&5
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); }; }; then
26205 eval "$as_ac_var=yes"
26207 echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26210 eval "$as_ac_var=no"
26212 rm -f conftest.err conftest.$ac_objext \
26213 conftest$ac_exeext conftest.$ac_ext
26215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26217 if test `eval echo '${'$as_ac_var'}'` = yes; then
26218 cat >>confdefs.h <<_ACEOF
26219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26225 ol_cv_func_strerror_r=no
26226 if test "${ac_cv_func_strerror_r}" = yes ; then
26227 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26228 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26229 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26233 cat >conftest.$ac_ext <<_ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h. */
26239 #include <string.h>
26241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26242 $EGREP "strerror_r" >/dev/null 2>&1; then
26243 ol_decl_strerror_r=yes
26245 ol_decl_strerror_r=no
26249 if test $ol_decl_strerror_r = yes ; then
26250 cat >conftest.$ac_ext <<_ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h. */
26256 #include <string.h>
26260 /* from autoconf 2.59 */
26262 char x = *strerror_r (0, buf, sizeof buf);
26263 char *p = strerror_r (0, buf, sizeof buf);
26269 rm -f conftest.$ac_objext
26270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26271 (eval $ac_compile) 2>conftest.er1
26273 grep -v '^ *+' conftest.er1 >conftest.err
26275 cat conftest.err >&5
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); } &&
26278 { ac_try='test -z "$ac_c_werror_flag"
26279 || test ! -s conftest.err'
26280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; } &&
26285 { ac_try='test -s conftest.$ac_objext'
26286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; }; then
26291 ol_cv_nonposix_strerror_r=yes
26293 echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26296 ol_cv_nonposix_strerror_r=no
26298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26300 if test "$cross_compiling" = yes; then
26301 ol_cv_nonposix_strerror=no
26303 cat >conftest.$ac_ext <<_ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h. */
26313 strerror_r( 1, buf, sizeof buf );
26314 exit( buf[0] == 0 );
26318 rm -f conftest$ac_exeext
26319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26320 (eval $ac_link) 2>&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; }; then
26329 ol_cv_nonposix_strerror_r=yes
26331 echo "$as_me: program exited with status $ac_status" >&5
26332 echo "$as_me: failed program was:" >&5
26333 sed 's/^/| /' conftest.$ac_ext >&5
26335 ( exit $ac_status )
26336 ol_cv_nonposix_strerror=no
26338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26343 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26344 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26345 if test $ol_cv_nonposix_strerror_r = yes ; then
26347 cat >>confdefs.h <<\_ACEOF
26348 #define HAVE_NONPOSIX_STRERROR_R 1
26353 elif test "${ac_cv_func_strerror}" = no ; then
26354 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26355 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26356 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26357 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 cat >conftest.$ac_ext <<_ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h. */
26368 #include <sys/types.h>
26371 #include <stdlib.h>
26376 char *c = (char *) *sys_errlist
26381 rm -f conftest.$ac_objext
26382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26383 (eval $ac_compile) 2>conftest.er1
26385 grep -v '^ *+' conftest.er1 >conftest.err
26387 cat conftest.err >&5
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } &&
26390 { ac_try='test -z "$ac_c_werror_flag"
26391 || test ! -s conftest.err'
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; } &&
26397 { ac_try='test -s conftest.$ac_objext'
26398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26399 (eval $ac_try) 2>&5
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); }; }; then
26403 ol_cv_dcl_sys_errlist=yes
26404 ol_cv_have_sys_errlist=yes
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26409 ol_cv_dcl_sys_errlist=no
26411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26413 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26414 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26416 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26417 if test $ol_cv_dcl_sys_errlist = no ; then
26419 cat >>confdefs.h <<\_ACEOF
26420 #define DECL_SYS_ERRLIST 1
26424 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26425 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26426 if test "${ol_cv_have_sys_errlist+set}" = set; then
26427 echo $ECHO_N "(cached) $ECHO_C" >&6
26430 cat >conftest.$ac_ext <<_ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h. */
26440 char *c = (char *) *sys_errlist
26445 rm -f conftest.$ac_objext conftest$ac_exeext
26446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26447 (eval $ac_link) 2>conftest.er1
26449 grep -v '^ *+' conftest.er1 >conftest.err
26451 cat conftest.err >&5
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); } &&
26454 { ac_try='test -z "$ac_c_werror_flag"
26455 || test ! -s conftest.err'
26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457 (eval $ac_try) 2>&5
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; } &&
26461 { ac_try='test -s conftest$ac_exeext'
26462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26463 (eval $ac_try) 2>&5
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); }; }; then
26467 ol_cv_have_sys_errlist=yes
26469 echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26472 ol_cv_have_sys_errlist=no
26474 rm -f conftest.err conftest.$ac_objext \
26475 conftest$ac_exeext conftest.$ac_ext
26477 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26478 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26480 if test $ol_cv_have_sys_errlist = yes ; then
26482 cat >>confdefs.h <<\_ACEOF
26483 #define HAVE_SYS_ERRLIST 1
26492 for ac_header in regex.h
26494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26496 echo "$as_me:$LINENO: checking for $ac_header" >&5
26497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26499 echo $ECHO_N "(cached) $ECHO_C" >&6
26501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26504 # Is the header compilable?
26505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26507 cat >conftest.$ac_ext <<_ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h. */
26513 $ac_includes_default
26514 #include <$ac_header>
26516 rm -f conftest.$ac_objext
26517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26518 (eval $ac_compile) 2>conftest.er1
26520 grep -v '^ *+' conftest.er1 >conftest.err
26522 cat conftest.err >&5
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } &&
26525 { ac_try='test -z "$ac_c_werror_flag"
26526 || test ! -s conftest.err'
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; } &&
26532 { ac_try='test -s conftest.$ac_objext'
26533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534 (eval $ac_try) 2>&5
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); }; }; then
26538 ac_header_compiler=yes
26540 echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26543 ac_header_compiler=no
26545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26547 echo "${ECHO_T}$ac_header_compiler" >&6
26549 # Is the header present?
26550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26552 cat >conftest.$ac_ext <<_ACEOF
26555 cat confdefs.h >>conftest.$ac_ext
26556 cat >>conftest.$ac_ext <<_ACEOF
26557 /* end confdefs.h. */
26558 #include <$ac_header>
26560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26563 grep -v '^ *+' conftest.er1 >conftest.err
26565 cat conftest.err >&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); } >/dev/null; then
26568 if test -s conftest.err; then
26569 ac_cpp_err=$ac_c_preproc_warn_flag
26570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26577 if test -z "$ac_cpp_err"; then
26578 ac_header_preproc=yes
26580 echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26583 ac_header_preproc=no
26585 rm -f conftest.err conftest.$ac_ext
26586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26587 echo "${ECHO_T}$ac_header_preproc" >&6
26589 # So? What about this header?
26590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26596 ac_header_preproc=yes
26599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26613 ## ------------------------------------------ ##
26614 ## Report this to the AC_PACKAGE_NAME lists. ##
26615 ## ------------------------------------------ ##
26618 sed "s/^/$as_me: WARNING: /" >&2
26621 echo "$as_me:$LINENO: checking for $ac_header" >&5
26622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26626 eval "$as_ac_Header=\$ac_header_preproc"
26628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26633 cat >>confdefs.h <<_ACEOF
26634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26641 if test "$ac_cv_header_regex_h" != yes ; then
26642 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26643 echo "$as_me: error: POSIX regex.h required." >&2;}
26644 { (exit 1); exit 1; }; }
26646 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26647 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26648 if test "${ac_cv_search_regfree+set}" = set; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26651 ac_func_search_save_LIBS=$LIBS
26652 ac_cv_search_regfree=no
26653 cat >conftest.$ac_ext <<_ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h. */
26660 /* Override any gcc2 internal prototype to avoid an error. */
26664 /* We use char because int might match the return type of a gcc2
26665 builtin and then its argument prototype would still apply. */
26675 rm -f conftest.$ac_objext conftest$ac_exeext
26676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26677 (eval $ac_link) 2>conftest.er1
26679 grep -v '^ *+' conftest.er1 >conftest.err
26681 cat conftest.err >&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } &&
26684 { ac_try='test -z "$ac_c_werror_flag"
26685 || test ! -s conftest.err'
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; } &&
26691 { ac_try='test -s conftest$ac_exeext'
26692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693 (eval $ac_try) 2>&5
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); }; }; then
26697 ac_cv_search_regfree="none required"
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26703 rm -f conftest.err conftest.$ac_objext \
26704 conftest$ac_exeext conftest.$ac_ext
26705 if test "$ac_cv_search_regfree" = no; then
26706 for ac_lib in regex gnuregex; do
26707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26708 cat >conftest.$ac_ext <<_ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h. */
26715 /* Override any gcc2 internal prototype to avoid an error. */
26719 /* We use char because int might match the return type of a gcc2
26720 builtin and then its argument prototype would still apply. */
26730 rm -f conftest.$ac_objext conftest$ac_exeext
26731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26732 (eval $ac_link) 2>conftest.er1
26734 grep -v '^ *+' conftest.er1 >conftest.err
26736 cat conftest.err >&5
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); } &&
26739 { ac_try='test -z "$ac_c_werror_flag"
26740 || test ! -s conftest.err'
26741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742 (eval $ac_try) 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; } &&
26746 { ac_try='test -s conftest$ac_exeext'
26747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748 (eval $ac_try) 2>&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); }; }; then
26752 ac_cv_search_regfree="-l$ac_lib"
26755 echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26759 rm -f conftest.err conftest.$ac_objext \
26760 conftest$ac_exeext conftest.$ac_ext
26763 LIBS=$ac_func_search_save_LIBS
26765 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26766 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26767 if test "$ac_cv_search_regfree" != no; then
26768 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26771 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26772 echo "$as_me: error: POSIX regex required." >&2;}
26773 { (exit 1); exit 1; }; }
26778 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26779 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26780 if test "${ol_cv_c_posix_regex+set}" = set; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26784 if test "$cross_compiling" = yes; then
26785 ol_cv_c_posix_regex=cross
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26794 #include <sys/types.h>
26796 static char *pattern, *string;
26804 if(regcomp(&re, pattern, 0)) {
26808 string = "ALL MATCH";
26810 rc = regexec(&re, string, 0, (void*)0, 0);
26817 rm -f conftest$ac_exeext
26818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26819 (eval $ac_link) 2>&5
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; }; then
26828 ol_cv_c_posix_regex=yes
26830 echo "$as_me: program exited with status $ac_status" >&5
26831 echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26834 ( exit $ac_status )
26835 ol_cv_c_posix_regex=no
26837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26840 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26841 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26843 if test "$ol_cv_c_posix_regex" = no ; then
26844 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26845 echo "$as_me: error: broken POSIX regex!" >&2;}
26846 { (exit 1); exit 1; }; }
26852 for ac_header in sys/uuid.h
26854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26856 echo "$as_me:$LINENO: checking for $ac_header" >&5
26857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26864 # Is the header compilable?
26865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26867 cat >conftest.$ac_ext <<_ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h. */
26873 $ac_includes_default
26874 #include <$ac_header>
26876 rm -f conftest.$ac_objext
26877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26878 (eval $ac_compile) 2>conftest.er1
26880 grep -v '^ *+' conftest.er1 >conftest.err
26882 cat conftest.err >&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); } &&
26885 { ac_try='test -z "$ac_c_werror_flag"
26886 || test ! -s conftest.err'
26887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888 (eval $ac_try) 2>&5
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; } &&
26892 { ac_try='test -s conftest.$ac_objext'
26893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26894 (eval $ac_try) 2>&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); }; }; then
26898 ac_header_compiler=yes
26900 echo "$as_me: failed program was:" >&5
26901 sed 's/^/| /' conftest.$ac_ext >&5
26903 ac_header_compiler=no
26905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26907 echo "${ECHO_T}$ac_header_compiler" >&6
26909 # Is the header present?
26910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26912 cat >conftest.$ac_ext <<_ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h. */
26918 #include <$ac_header>
26920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26923 grep -v '^ *+' conftest.er1 >conftest.err
26925 cat conftest.err >&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } >/dev/null; then
26928 if test -s conftest.err; then
26929 ac_cpp_err=$ac_c_preproc_warn_flag
26930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26937 if test -z "$ac_cpp_err"; then
26938 ac_header_preproc=yes
26940 echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26943 ac_header_preproc=no
26945 rm -f conftest.err conftest.$ac_ext
26946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26947 echo "${ECHO_T}$ac_header_preproc" >&6
26949 # So? What about this header?
26950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26956 ac_header_preproc=yes
26959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26973 ## ------------------------------------------ ##
26974 ## Report this to the AC_PACKAGE_NAME lists. ##
26975 ## ------------------------------------------ ##
26978 sed "s/^/$as_me: WARNING: /" >&2
26981 echo "$as_me:$LINENO: checking for $ac_header" >&5
26982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26984 echo $ECHO_N "(cached) $ECHO_C" >&6
26986 eval "$as_ac_Header=\$ac_header_preproc"
26988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26993 cat >>confdefs.h <<_ACEOF
26994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27001 if test $ac_cv_header_sys_uuid_h = yes ; then
27003 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27004 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27005 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27006 echo $ECHO_N "(cached) $ECHO_C" >&6
27008 ac_func_search_save_LIBS=$LIBS
27009 ac_cv_search_uuid_to_str=no
27010 cat >conftest.$ac_ext <<_ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h. */
27017 /* Override any gcc2 internal prototype to avoid an error. */
27021 /* We use char because int might match the return type of a gcc2
27022 builtin and then its argument prototype would still apply. */
27023 char uuid_to_str ();
27032 rm -f conftest.$ac_objext conftest$ac_exeext
27033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27034 (eval $ac_link) 2>conftest.er1
27036 grep -v '^ *+' conftest.er1 >conftest.err
27038 cat conftest.err >&5
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); } &&
27041 { ac_try='test -z "$ac_c_werror_flag"
27042 || test ! -s conftest.err'
27043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044 (eval $ac_try) 2>&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; } &&
27048 { ac_try='test -s conftest$ac_exeext'
27049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27050 (eval $ac_try) 2>&5
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; }; then
27054 ac_cv_search_uuid_to_str="none required"
27056 echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27060 rm -f conftest.err conftest.$ac_objext \
27061 conftest$ac_exeext conftest.$ac_ext
27062 if test "$ac_cv_search_uuid_to_str" = no; then
27063 for ac_lib in uuid; do
27064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27065 cat >conftest.$ac_ext <<_ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h. */
27072 /* Override any gcc2 internal prototype to avoid an error. */
27076 /* We use char because int might match the return type of a gcc2
27077 builtin and then its argument prototype would still apply. */
27078 char uuid_to_str ();
27087 rm -f conftest.$ac_objext conftest$ac_exeext
27088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27089 (eval $ac_link) 2>conftest.er1
27091 grep -v '^ *+' conftest.er1 >conftest.err
27093 cat conftest.err >&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } &&
27096 { ac_try='test -z "$ac_c_werror_flag"
27097 || test ! -s conftest.err'
27098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27099 (eval $ac_try) 2>&5
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); }; } &&
27103 { ac_try='test -s conftest$ac_exeext'
27104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105 (eval $ac_try) 2>&5
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); }; }; then
27109 ac_cv_search_uuid_to_str="-l$ac_lib"
27112 echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27116 rm -f conftest.err conftest.$ac_objext \
27117 conftest$ac_exeext conftest.$ac_ext
27120 LIBS=$ac_func_search_save_LIBS
27122 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27123 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27124 if test "$ac_cv_search_uuid_to_str" != no; then
27125 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27133 if test have_uuid = yes ; then
27135 cat >>confdefs.h <<\_ACEOF
27136 #define HAVE_UUID_TO_STR 1
27140 test "$ac_cv_search_uuid_to_str" = "none required" || \
27141 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27145 if test $have_uuid = no ; then
27146 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27147 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27149 LIBS="$LIBS -lrpcrt4"
27150 cat >conftest.$ac_ext <<_ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h. */
27157 int __stdcall UuidCreate(void *);
27158 int __stdcall UuidToStringA(void *,void **);
27165 UuidToStringA(0,0);
27171 rm -f conftest.$ac_objext conftest$ac_exeext
27172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27173 (eval $ac_link) 2>conftest.er1
27175 grep -v '^ *+' conftest.er1 >conftest.err
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
27180 { ac_try='test -z "$ac_c_werror_flag"
27181 || test ! -s conftest.err'
27182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183 (eval $ac_try) 2>&5
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest$ac_exeext'
27188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27200 rm -f conftest.err conftest.$ac_objext \
27201 conftest$ac_exeext conftest.$ac_ext
27202 if test $need_rpcrt = yes; then
27203 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27206 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27207 echo "${ECHO_T}$need_rpcrt" >&6
27210 ol_cv_lib_resolver=no
27211 if test $ol_cv_lib_resolver = no ; then
27212 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27213 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27214 if test "${ol_cv_resolver_none+set}" = set; then
27215 echo $ECHO_N "(cached) $ECHO_C" >&6
27220 LIBS="$ol_RESOLVER_LIB $LIBS"
27222 cat >conftest.$ac_ext <<_ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h. */
27229 #ifdef HAVE_SYS_TYPES_H
27230 # include <sys/types.h>
27232 #include <netinet/in.h>
27233 #ifdef HAVE_ARPA_NAMESER_H
27234 # include <arpa/nameser.h>
27236 #ifdef HAVE_RESOLV_H
27237 # include <resolv.h>
27245 char *request = NULL;
27246 unsigned char reply[64*1024];
27247 unsigned char host[64*1024];
27251 /* Bind 8/9 interface */
27252 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27254 /* Bind 4 interface */
27258 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27262 /* Bind 8/9 interface */
27264 #elif defined(HFIXEDSZ)
27265 /* Bind 4 interface w/ HFIXEDSZ */
27268 /* Bind 4 interface w/o HFIXEDSZ */
27269 p += sizeof(HEADER);
27271 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27277 rm -f conftest.$ac_objext conftest$ac_exeext
27278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27279 (eval $ac_link) 2>conftest.er1
27281 grep -v '^ *+' conftest.er1 >conftest.err
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } &&
27286 { ac_try='test -z "$ac_c_werror_flag"
27287 || test ! -s conftest.err'
27288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289 (eval $ac_try) 2>&5
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); }; } &&
27293 { ac_try='test -s conftest$ac_exeext'
27294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27295 (eval $ac_try) 2>&5
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; }; then
27299 ol_cv_resolver_none=yes
27301 echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27304 ol_cv_resolver_none=no
27306 rm -f conftest.err conftest.$ac_objext \
27307 conftest$ac_exeext conftest.$ac_ext
27312 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27313 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27315 if test $ol_cv_resolver_none = yes ; then
27316 ol_cv_lib_resolver=yes
27320 if test $ol_cv_lib_resolver = no ; then
27321 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27322 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27323 if test "${ol_cv_resolver_resolv+set}" = set; then
27324 echo $ECHO_N "(cached) $ECHO_C" >&6
27327 ol_RESOLVER_LIB=-lresolv
27329 LIBS="$ol_RESOLVER_LIB $LIBS"
27331 cat >conftest.$ac_ext <<_ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h. */
27338 #ifdef HAVE_SYS_TYPES_H
27339 # include <sys/types.h>
27341 #include <netinet/in.h>
27342 #ifdef HAVE_ARPA_NAMESER_H
27343 # include <arpa/nameser.h>
27345 #ifdef HAVE_RESOLV_H
27346 # include <resolv.h>
27354 char *request = NULL;
27355 unsigned char reply[64*1024];
27356 unsigned char host[64*1024];
27360 /* Bind 8/9 interface */
27361 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27363 /* Bind 4 interface */
27367 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27371 /* Bind 8/9 interface */
27373 #elif defined(HFIXEDSZ)
27374 /* Bind 4 interface w/ HFIXEDSZ */
27377 /* Bind 4 interface w/o HFIXEDSZ */
27378 p += sizeof(HEADER);
27380 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27386 rm -f conftest.$ac_objext conftest$ac_exeext
27387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27388 (eval $ac_link) 2>conftest.er1
27390 grep -v '^ *+' conftest.er1 >conftest.err
27392 cat conftest.err >&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); } &&
27395 { ac_try='test -z "$ac_c_werror_flag"
27396 || test ! -s conftest.err'
27397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398 (eval $ac_try) 2>&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); }; } &&
27402 { ac_try='test -s conftest$ac_exeext'
27403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404 (eval $ac_try) 2>&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; }; then
27408 ol_cv_resolver_resolv=yes
27410 echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27413 ol_cv_resolver_resolv=no
27415 rm -f conftest.err conftest.$ac_objext \
27416 conftest$ac_exeext conftest.$ac_ext
27421 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27422 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27424 if test $ol_cv_resolver_resolv = yes ; then
27425 ol_cv_lib_resolver=-lresolv
27429 if test $ol_cv_lib_resolver = no ; then
27430 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27431 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27432 if test "${ol_cv_resolver_bind+set}" = set; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27436 ol_RESOLVER_LIB=-lbind
27438 LIBS="$ol_RESOLVER_LIB $LIBS"
27440 cat >conftest.$ac_ext <<_ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27447 #ifdef HAVE_SYS_TYPES_H
27448 # include <sys/types.h>
27450 #include <netinet/in.h>
27451 #ifdef HAVE_ARPA_NAMESER_H
27452 # include <arpa/nameser.h>
27454 #ifdef HAVE_RESOLV_H
27455 # include <resolv.h>
27463 char *request = NULL;
27464 unsigned char reply[64*1024];
27465 unsigned char host[64*1024];
27469 /* Bind 8/9 interface */
27470 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27472 /* Bind 4 interface */
27476 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27480 /* Bind 8/9 interface */
27482 #elif defined(HFIXEDSZ)
27483 /* Bind 4 interface w/ HFIXEDSZ */
27486 /* Bind 4 interface w/o HFIXEDSZ */
27487 p += sizeof(HEADER);
27489 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27495 rm -f conftest.$ac_objext conftest$ac_exeext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27497 (eval $ac_link) 2>conftest.er1
27499 grep -v '^ *+' conftest.er1 >conftest.err
27501 cat conftest.err >&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); } &&
27504 { ac_try='test -z "$ac_c_werror_flag"
27505 || test ! -s conftest.err'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; } &&
27511 { ac_try='test -s conftest$ac_exeext'
27512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513 (eval $ac_try) 2>&5
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; }; then
27517 ol_cv_resolver_bind=yes
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27522 ol_cv_resolver_bind=no
27524 rm -f conftest.err conftest.$ac_objext \
27525 conftest$ac_exeext conftest.$ac_ext
27530 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27531 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27533 if test $ol_cv_resolver_bind = yes ; then
27534 ol_cv_lib_resolver=-lbind
27541 if test "$ol_cv_lib_resolver" != no ; then
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_RES_QUERY 1
27548 if test "$ol_enable_dnssrv" != no ; then
27552 if test "$ol_cv_lib_resolver" != yes ; then
27553 LIBS="$ol_cv_lib_resolver $LIBS"
27557 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27558 if test "$ol_link_dnssrv" = no ; then
27559 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27560 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27561 { (exit 1); exit 1; }; }
27564 ol_enable_dnssrv=no
27568 for ac_func in hstrerror
27570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27571 echo "$as_me:$LINENO: checking for $ac_func" >&5
27572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27573 if eval "test \"\${$as_ac_var+set}\" = set"; then
27574 echo $ECHO_N "(cached) $ECHO_C" >&6
27576 cat >conftest.$ac_ext <<_ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h. */
27582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27584 #define $ac_func innocuous_$ac_func
27586 /* System header to define __stub macros and hopefully few prototypes,
27587 which can conflict with char $ac_func (); below.
27588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27589 <limits.h> exists even on freestanding compilers. */
27592 # include <limits.h>
27594 # include <assert.h>
27599 /* Override any gcc2 internal prototype to avoid an error. */
27604 /* We use char because int might match the return type of a gcc2
27605 builtin and then its argument prototype would still apply. */
27607 /* The GNU C library defines this for functions which it implements
27608 to always fail with ENOSYS. Some functions are actually named
27609 something starting with __ and the normal name is an alias. */
27610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27613 char (*f) () = $ac_func;
27622 return f != $ac_func;
27627 rm -f conftest.$ac_objext conftest$ac_exeext
27628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27629 (eval $ac_link) 2>conftest.er1
27631 grep -v '^ *+' conftest.er1 >conftest.err
27633 cat conftest.err >&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } &&
27636 { ac_try='test -z "$ac_c_werror_flag"
27637 || test ! -s conftest.err'
27638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; } &&
27643 { ac_try='test -s conftest$ac_exeext'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }; then
27649 eval "$as_ac_var=yes"
27651 echo "$as_me: failed program was:" >&5
27652 sed 's/^/| /' conftest.$ac_ext >&5
27654 eval "$as_ac_var=no"
27656 rm -f conftest.err conftest.$ac_objext \
27657 conftest$ac_exeext conftest.$ac_ext
27659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27661 if test `eval echo '${'$as_ac_var'}'` = yes; then
27662 cat >>confdefs.h <<_ACEOF
27663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27674 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27677 echo "$as_me:$LINENO: checking for $ac_func" >&5
27678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27679 if eval "test \"\${$as_ac_var+set}\" = set"; then
27680 echo $ECHO_N "(cached) $ECHO_C" >&6
27682 cat >conftest.$ac_ext <<_ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h. */
27688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27690 #define $ac_func innocuous_$ac_func
27692 /* System header to define __stub macros and hopefully few prototypes,
27693 which can conflict with char $ac_func (); below.
27694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27695 <limits.h> exists even on freestanding compilers. */
27698 # include <limits.h>
27700 # include <assert.h>
27705 /* Override any gcc2 internal prototype to avoid an error. */
27710 /* We use char because int might match the return type of a gcc2
27711 builtin and then its argument prototype would still apply. */
27713 /* The GNU C library defines this for functions which it implements
27714 to always fail with ENOSYS. Some functions are actually named
27715 something starting with __ and the normal name is an alias. */
27716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27719 char (*f) () = $ac_func;
27728 return f != $ac_func;
27733 rm -f conftest.$ac_objext conftest$ac_exeext
27734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27735 (eval $ac_link) 2>conftest.er1
27737 grep -v '^ *+' conftest.er1 >conftest.err
27739 cat conftest.err >&5
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); } &&
27742 { ac_try='test -z "$ac_c_werror_flag"
27743 || test ! -s conftest.err'
27744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745 (eval $ac_try) 2>&5
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); }; } &&
27749 { ac_try='test -s conftest$ac_exeext'
27750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27751 (eval $ac_try) 2>&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); }; }; then
27755 eval "$as_ac_var=yes"
27757 echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27760 eval "$as_ac_var=no"
27762 rm -f conftest.err conftest.$ac_objext \
27763 conftest$ac_exeext conftest.$ac_ext
27765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27767 if test `eval echo '${'$as_ac_var'}'` = yes; then
27768 cat >>confdefs.h <<_ACEOF
27769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27777 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27778 if test $ol_enable_ipv6 = yes ; then
27779 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27780 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27781 { (exit 1); exit 1; }; }
27783 elif test $ol_enable_ipv6 != no ; then
27784 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27785 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27786 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27787 echo $ECHO_N "(cached) $ECHO_C" >&6
27790 cat >conftest.$ac_ext <<_ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h. */
27797 # include <netinet/in.h>
27798 # ifdef INET6_ADDRSTRLEN
27799 __has_inet6_addrstrlen__;
27803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27804 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27805 ol_cv_inet6_addrstrlen=yes
27807 ol_cv_inet6_addrstrlen=no
27812 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27813 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27816 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27817 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27818 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27819 echo $ECHO_N "(cached) $ECHO_C" >&6
27822 cat >conftest.$ac_ext <<_ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h. */
27829 #include <sys/types.h>
27830 #include <sys/socket.h>
27836 struct sockaddr_storage ss;
27842 rm -f conftest.$ac_objext
27843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27844 (eval $ac_compile) 2>conftest.er1
27846 grep -v '^ *+' conftest.er1 >conftest.err
27848 cat conftest.err >&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } &&
27851 { ac_try='test -z "$ac_c_werror_flag"
27852 || test ! -s conftest.err'
27853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854 (eval $ac_try) 2>&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; } &&
27858 { ac_try='test -s conftest.$ac_objext'
27859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860 (eval $ac_try) 2>&5
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); }; }; then
27864 ol_cv_struct_sockaddr_storage=yes
27866 echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27869 ol_cv_struct_sockaddr_storage=no
27871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27873 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27874 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27876 if test $ol_cv_inet6_addrstrlen = yes \
27877 -a $ol_cv_struct_sockaddr_storage = yes ; then
27879 elif test $ol_enable_ipv6 = yes \
27880 -a $ol_cv_inet6_addrstrlen = no ; then
27881 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27882 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27883 { (exit 1); exit 1; }; }
27884 elif test $ol_enable_ipv6 = yes \
27885 -a $ol_cv_struct_sockaddr_storage = no ; then
27886 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27887 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27888 { (exit 1); exit 1; }; }
27892 if test $ol_enable_local != no ; then
27894 for ac_header in sys/un.h
27896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27898 echo "$as_me:$LINENO: checking for $ac_header" >&5
27899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27901 echo $ECHO_N "(cached) $ECHO_C" >&6
27903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27906 # Is the header compilable?
27907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27909 cat >conftest.$ac_ext <<_ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h. */
27915 $ac_includes_default
27916 #include <$ac_header>
27918 rm -f conftest.$ac_objext
27919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27920 (eval $ac_compile) 2>conftest.er1
27922 grep -v '^ *+' conftest.er1 >conftest.err
27924 cat conftest.err >&5
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); } &&
27927 { ac_try='test -z "$ac_c_werror_flag"
27928 || test ! -s conftest.err'
27929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930 (eval $ac_try) 2>&5
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); }; } &&
27934 { ac_try='test -s conftest.$ac_objext'
27935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936 (eval $ac_try) 2>&5
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); }; }; then
27940 ac_header_compiler=yes
27942 echo "$as_me: failed program was:" >&5
27943 sed 's/^/| /' conftest.$ac_ext >&5
27945 ac_header_compiler=no
27947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27949 echo "${ECHO_T}$ac_header_compiler" >&6
27951 # Is the header present?
27952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27954 cat >conftest.$ac_ext <<_ACEOF
27957 cat confdefs.h >>conftest.$ac_ext
27958 cat >>conftest.$ac_ext <<_ACEOF
27959 /* end confdefs.h. */
27960 #include <$ac_header>
27962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27965 grep -v '^ *+' conftest.er1 >conftest.err
27967 cat conftest.err >&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); } >/dev/null; then
27970 if test -s conftest.err; then
27971 ac_cpp_err=$ac_c_preproc_warn_flag
27972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27979 if test -z "$ac_cpp_err"; then
27980 ac_header_preproc=yes
27982 echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27985 ac_header_preproc=no
27987 rm -f conftest.err conftest.$ac_ext
27988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27989 echo "${ECHO_T}$ac_header_preproc" >&6
27991 # So? What about this header?
27992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27998 ac_header_preproc=yes
28001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28015 ## ------------------------------------------ ##
28016 ## Report this to the AC_PACKAGE_NAME lists. ##
28017 ## ------------------------------------------ ##
28020 sed "s/^/$as_me: WARNING: /" >&2
28023 echo "$as_me:$LINENO: checking for $ac_header" >&5
28024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 eval "$as_ac_Header=\$ac_header_preproc"
28030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28035 cat >>confdefs.h <<_ACEOF
28036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28044 if test $ol_enable_local = auto ; then
28045 ol_enable_local=$ac_cv_header_sys_un_h
28046 elif test $ac_cv_header_sys_un_h = no ; then
28047 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28048 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28049 { (exit 1); exit 1; }; }
28057 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28058 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28059 -o $ol_with_kerberos = k425 ; then
28062 for ac_header in krb5.h
28064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28066 echo "$as_me:$LINENO: checking for $ac_header" >&5
28067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28069 echo $ECHO_N "(cached) $ECHO_C" >&6
28071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28074 # Is the header compilable?
28075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28077 cat >conftest.$ac_ext <<_ACEOF
28080 cat confdefs.h >>conftest.$ac_ext
28081 cat >>conftest.$ac_ext <<_ACEOF
28082 /* end confdefs.h. */
28083 $ac_includes_default
28084 #include <$ac_header>
28086 rm -f conftest.$ac_objext
28087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28088 (eval $ac_compile) 2>conftest.er1
28090 grep -v '^ *+' conftest.er1 >conftest.err
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } &&
28095 { ac_try='test -z "$ac_c_werror_flag"
28096 || test ! -s conftest.err'
28097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098 (eval $ac_try) 2>&5
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; } &&
28102 { ac_try='test -s conftest.$ac_objext'
28103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104 (eval $ac_try) 2>&5
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; }; then
28108 ac_header_compiler=yes
28110 echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28113 ac_header_compiler=no
28115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28117 echo "${ECHO_T}$ac_header_compiler" >&6
28119 # Is the header present?
28120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28122 cat >conftest.$ac_ext <<_ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h. */
28128 #include <$ac_header>
28130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28133 grep -v '^ *+' conftest.er1 >conftest.err
28135 cat conftest.err >&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } >/dev/null; then
28138 if test -s conftest.err; then
28139 ac_cpp_err=$ac_c_preproc_warn_flag
28140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28147 if test -z "$ac_cpp_err"; then
28148 ac_header_preproc=yes
28150 echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28153 ac_header_preproc=no
28155 rm -f conftest.err conftest.$ac_ext
28156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28157 echo "${ECHO_T}$ac_header_preproc" >&6
28159 # So? What about this header?
28160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28166 ac_header_preproc=yes
28169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28183 ## ------------------------------------------ ##
28184 ## Report this to the AC_PACKAGE_NAME lists. ##
28185 ## ------------------------------------------ ##
28188 sed "s/^/$as_me: WARNING: /" >&2
28191 echo "$as_me:$LINENO: checking for $ac_header" >&5
28192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28194 echo $ECHO_N "(cached) $ECHO_C" >&6
28196 eval "$as_ac_Header=\$ac_header_preproc"
28198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28203 cat >>confdefs.h <<_ACEOF
28204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28212 if test $ac_cv_header_krb5_h = yes ; then
28214 for ac_header in heim_err.h
28216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28218 echo "$as_me:$LINENO: checking for $ac_header" >&5
28219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28221 echo $ECHO_N "(cached) $ECHO_C" >&6
28223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28226 # Is the header compilable?
28227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28229 cat >conftest.$ac_ext <<_ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h. */
28235 $ac_includes_default
28236 #include <$ac_header>
28238 rm -f conftest.$ac_objext
28239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28240 (eval $ac_compile) 2>conftest.er1
28242 grep -v '^ *+' conftest.er1 >conftest.err
28244 cat conftest.err >&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); } &&
28247 { ac_try='test -z "$ac_c_werror_flag"
28248 || test ! -s conftest.err'
28249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28250 (eval $ac_try) 2>&5
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253 (exit $ac_status); }; } &&
28254 { ac_try='test -s conftest.$ac_objext'
28255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28256 (eval $ac_try) 2>&5
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); }; }; then
28260 ac_header_compiler=yes
28262 echo "$as_me: failed program was:" >&5
28263 sed 's/^/| /' conftest.$ac_ext >&5
28265 ac_header_compiler=no
28267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28269 echo "${ECHO_T}$ac_header_compiler" >&6
28271 # Is the header present?
28272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28274 cat >conftest.$ac_ext <<_ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h. */
28280 #include <$ac_header>
28282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28285 grep -v '^ *+' conftest.er1 >conftest.err
28287 cat conftest.err >&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); } >/dev/null; then
28290 if test -s conftest.err; then
28291 ac_cpp_err=$ac_c_preproc_warn_flag
28292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28299 if test -z "$ac_cpp_err"; then
28300 ac_header_preproc=yes
28302 echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28305 ac_header_preproc=no
28307 rm -f conftest.err conftest.$ac_ext
28308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28309 echo "${ECHO_T}$ac_header_preproc" >&6
28311 # So? What about this header?
28312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28318 ac_header_preproc=yes
28321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28335 ## ------------------------------------------ ##
28336 ## Report this to the AC_PACKAGE_NAME lists. ##
28337 ## ------------------------------------------ ##
28340 sed "s/^/$as_me: WARNING: /" >&2
28343 echo "$as_me:$LINENO: checking for $ac_header" >&5
28344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28346 echo $ECHO_N "(cached) $ECHO_C" >&6
28348 eval "$as_ac_Header=\$ac_header_preproc"
28350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28355 cat >>confdefs.h <<_ACEOF
28356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28363 if test $ac_cv_header_heim_err_h = yes ; then
28369 if test $krb5_impl = mit; then
28370 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28371 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28372 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28373 echo $ECHO_N "(cached) $ECHO_C" >&6
28375 ac_check_lib_save_LIBS=$LIBS
28376 LIBS="-lk5crypto $LIBS"
28377 cat >conftest.$ac_ext <<_ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h. */
28393 rm -f conftest.$ac_objext conftest$ac_exeext
28394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28395 (eval $ac_link) 2>conftest.er1
28397 grep -v '^ *+' conftest.er1 >conftest.err
28399 cat conftest.err >&5
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); } &&
28402 { ac_try='test -z "$ac_c_werror_flag"
28403 || test ! -s conftest.err'
28404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28405 (eval $ac_try) 2>&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); }; } &&
28409 { ac_try='test -s conftest$ac_exeext'
28410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411 (eval $ac_try) 2>&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; }; then
28415 ac_cv_lib_k5crypto_main=yes
28417 echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28420 ac_cv_lib_k5crypto_main=no
28422 rm -f conftest.err conftest.$ac_objext \
28423 conftest$ac_exeext conftest.$ac_ext
28424 LIBS=$ac_check_lib_save_LIBS
28426 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28427 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28428 if test $ac_cv_lib_k5crypto_main = yes; then
28429 krb5crypto=k5crypto
28435 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28436 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28437 if test "${ac_cv_lib_krb5_main+set}" = set; then
28438 echo $ECHO_N "(cached) $ECHO_C" >&6
28440 ac_check_lib_save_LIBS=$LIBS
28441 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28442 cat >conftest.$ac_ext <<_ACEOF
28445 cat confdefs.h >>conftest.$ac_ext
28446 cat >>conftest.$ac_ext <<_ACEOF
28447 /* end confdefs.h. */
28458 rm -f conftest.$ac_objext conftest$ac_exeext
28459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28460 (eval $ac_link) 2>conftest.er1
28462 grep -v '^ *+' conftest.er1 >conftest.err
28464 cat conftest.err >&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); } &&
28467 { ac_try='test -z "$ac_c_werror_flag"
28468 || test ! -s conftest.err'
28469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470 (eval $ac_try) 2>&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); }; } &&
28474 { ac_try='test -s conftest$ac_exeext'
28475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476 (eval $ac_try) 2>&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; }; then
28480 ac_cv_lib_krb5_main=yes
28482 echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28485 ac_cv_lib_krb5_main=no
28487 rm -f conftest.err conftest.$ac_objext \
28488 conftest$ac_exeext conftest.$ac_ext
28489 LIBS=$ac_check_lib_save_LIBS
28491 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28492 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28493 if test $ac_cv_lib_krb5_main = yes; then
28495 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28501 elif test $krb5_impl = heimdal; then
28502 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28503 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28504 if test "${ac_cv_lib_des_main+set}" = set; then
28505 echo $ECHO_N "(cached) $ECHO_C" >&6
28507 ac_check_lib_save_LIBS=$LIBS
28509 cat >conftest.$ac_ext <<_ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h. */
28525 rm -f conftest.$ac_objext conftest$ac_exeext
28526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28527 (eval $ac_link) 2>conftest.er1
28529 grep -v '^ *+' conftest.er1 >conftest.err
28531 cat conftest.err >&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } &&
28534 { ac_try='test -z "$ac_c_werror_flag"
28535 || test ! -s conftest.err'
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; } &&
28541 { ac_try='test -s conftest$ac_exeext'
28542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28543 (eval $ac_try) 2>&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); }; }; then
28547 ac_cv_lib_des_main=yes
28549 echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28552 ac_cv_lib_des_main=no
28554 rm -f conftest.err conftest.$ac_objext \
28555 conftest$ac_exeext conftest.$ac_ext
28556 LIBS=$ac_check_lib_save_LIBS
28558 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28559 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28560 if test $ac_cv_lib_des_main = yes; then
28567 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28568 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28569 if test "${ac_cv_lib_krb5_main+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
28572 ac_check_lib_save_LIBS=$LIBS
28573 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28574 cat >conftest.$ac_ext <<_ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h. */
28590 rm -f conftest.$ac_objext conftest$ac_exeext
28591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28592 (eval $ac_link) 2>conftest.er1
28594 grep -v '^ *+' conftest.er1 >conftest.err
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } &&
28599 { ac_try='test -z "$ac_c_werror_flag"
28600 || test ! -s conftest.err'
28601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602 (eval $ac_try) 2>&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; } &&
28606 { ac_try='test -s conftest$ac_exeext'
28607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28608 (eval $ac_try) 2>&5
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); }; }; then
28612 ac_cv_lib_krb5_main=yes
28614 echo "$as_me: failed program was:" >&5
28615 sed 's/^/| /' conftest.$ac_ext >&5
28617 ac_cv_lib_krb5_main=no
28619 rm -f conftest.err conftest.$ac_objext \
28620 conftest$ac_exeext conftest.$ac_ext
28621 LIBS=$ac_check_lib_save_LIBS
28623 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28624 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28625 if test $ac_cv_lib_krb5_main = yes; then
28627 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28634 cat >>confdefs.h <<\_ACEOF
28635 #define HAVE_HEIMDAL_KERBEROS 1
28641 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28642 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28645 if test $have_krb5 = yes ; then
28649 cat >>confdefs.h <<\_ACEOF
28650 #define HAVE_KRB5 1
28654 if test $ol_with_kerberos = k5only ; then
28655 ol_with_kerberos=found
28658 elif test $ol_with_kerberos != auto ; then
28659 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28660 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28661 { (exit 1); exit 1; }; }
28667 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28668 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28672 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28676 echo "$as_me:$LINENO: checking for $ac_header" >&5
28677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28679 echo $ECHO_N "(cached) $ECHO_C" >&6
28681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28684 # Is the header compilable?
28685 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28687 cat >conftest.$ac_ext <<_ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h. */
28693 $ac_includes_default
28694 #include <$ac_header>
28696 rm -f conftest.$ac_objext
28697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28698 (eval $ac_compile) 2>conftest.er1
28700 grep -v '^ *+' conftest.er1 >conftest.err
28702 cat conftest.err >&5
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); } &&
28705 { ac_try='test -z "$ac_c_werror_flag"
28706 || test ! -s conftest.err'
28707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28708 (eval $ac_try) 2>&5
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); }; } &&
28712 { ac_try='test -s conftest.$ac_objext'
28713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714 (eval $ac_try) 2>&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
28718 ac_header_compiler=yes
28720 echo "$as_me: failed program was:" >&5
28721 sed 's/^/| /' conftest.$ac_ext >&5
28723 ac_header_compiler=no
28725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28727 echo "${ECHO_T}$ac_header_compiler" >&6
28729 # Is the header present?
28730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28732 cat >conftest.$ac_ext <<_ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h. */
28738 #include <$ac_header>
28740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28743 grep -v '^ *+' conftest.er1 >conftest.err
28745 cat conftest.err >&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } >/dev/null; then
28748 if test -s conftest.err; then
28749 ac_cpp_err=$ac_c_preproc_warn_flag
28750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28757 if test -z "$ac_cpp_err"; then
28758 ac_header_preproc=yes
28760 echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.$ac_ext >&5
28763 ac_header_preproc=no
28765 rm -f conftest.err conftest.$ac_ext
28766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28767 echo "${ECHO_T}$ac_header_preproc" >&6
28769 # So? What about this header?
28770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28776 ac_header_preproc=yes
28779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28793 ## ------------------------------------------ ##
28794 ## Report this to the AC_PACKAGE_NAME lists. ##
28795 ## ------------------------------------------ ##
28798 sed "s/^/$as_me: WARNING: /" >&2
28801 echo "$as_me:$LINENO: checking for $ac_header" >&5
28802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28804 echo $ECHO_N "(cached) $ECHO_C" >&6
28806 eval "$as_ac_Header=\$ac_header_preproc"
28808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28813 cat >>confdefs.h <<_ACEOF
28814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28822 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28823 if test $krb5_impl = mit; then
28824 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28825 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28826 if test "${ac_cv_lib_krb4_main+set}" = set; then
28827 echo $ECHO_N "(cached) $ECHO_C" >&6
28829 ac_check_lib_save_LIBS=$LIBS
28830 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28831 cat >conftest.$ac_ext <<_ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h. */
28847 rm -f conftest.$ac_objext conftest$ac_exeext
28848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28849 (eval $ac_link) 2>conftest.er1
28851 grep -v '^ *+' conftest.er1 >conftest.err
28853 cat conftest.err >&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); } &&
28856 { ac_try='test -z "$ac_c_werror_flag"
28857 || test ! -s conftest.err'
28858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859 (eval $ac_try) 2>&5
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; } &&
28863 { ac_try='test -s conftest$ac_exeext'
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; }; then
28869 ac_cv_lib_krb4_main=yes
28871 echo "$as_me: failed program was:" >&5
28872 sed 's/^/| /' conftest.$ac_ext >&5
28874 ac_cv_lib_krb4_main=no
28876 rm -f conftest.err conftest.$ac_objext \
28877 conftest$ac_exeext conftest.$ac_ext
28878 LIBS=$ac_check_lib_save_LIBS
28880 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28881 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28882 if test $ac_cv_lib_krb4_main = yes; then
28884 KRB4_LIBS="-lkrb4 -ldes425"
28890 elif test $krb5_impl = heimdal; then
28891 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28892 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28893 if test "${ac_cv_lib_krb4_main+set}" = set; then
28894 echo $ECHO_N "(cached) $ECHO_C" >&6
28896 ac_check_lib_save_LIBS=$LIBS
28897 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28898 cat >conftest.$ac_ext <<_ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h. */
28914 rm -f conftest.$ac_objext conftest$ac_exeext
28915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28916 (eval $ac_link) 2>conftest.er1
28918 grep -v '^ *+' conftest.er1 >conftest.err
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } &&
28923 { ac_try='test -z "$ac_c_werror_flag"
28924 || test ! -s conftest.err'
28925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926 (eval $ac_try) 2>&5
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); }; } &&
28930 { ac_try='test -s conftest$ac_exeext'
28931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28932 (eval $ac_try) 2>&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); }; }; then
28936 ac_cv_lib_krb4_main=yes
28938 echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28941 ac_cv_lib_krb4_main=no
28943 rm -f conftest.err conftest.$ac_objext \
28944 conftest$ac_exeext conftest.$ac_ext
28945 LIBS=$ac_check_lib_save_LIBS
28947 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28948 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28949 if test $ac_cv_lib_krb4_main = yes; then
28959 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28960 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28963 if test $have_k425 = yes ; then
28964 ol_with_kerberos=found
28968 cat >>confdefs.h <<\_ACEOF
28969 #define HAVE_KRB425 1
28973 cat >>confdefs.h <<\_ACEOF
28974 #define HAVE_KRB4 1
28978 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28979 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28980 if test "${ol_cv_var_des_debug+set}" = set; then
28981 echo $ECHO_N "(cached) $ECHO_C" >&6
28985 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28986 cat >conftest.$ac_ext <<_ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h. */
28993 #include <kerberosIV/krb.h>
28994 #include <kerberosIV/des.h>
28995 extern int des_debug;
29007 rm -f conftest.$ac_objext conftest$ac_exeext
29008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29009 (eval $ac_link) 2>conftest.er1
29011 grep -v '^ *+' conftest.er1 >conftest.err
29013 cat conftest.err >&5
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); } &&
29016 { ac_try='test -z "$ac_c_werror_flag"
29017 || test ! -s conftest.err'
29018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29019 (eval $ac_try) 2>&5
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; } &&
29023 { ac_try='test -s conftest$ac_exeext'
29024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29025 (eval $ac_try) 2>&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); }; }; then
29029 ol_cv_var_des_debug=yes
29031 echo "$as_me: failed program was:" >&5
29032 sed 's/^/| /' conftest.$ac_ext >&5
29034 ol_cv_var_des_debug=no
29036 rm -f conftest.err conftest.$ac_objext \
29037 conftest$ac_exeext conftest.$ac_ext
29041 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29042 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29044 if test $ol_cv_var_des_debug = yes ; then
29046 cat >>confdefs.h <<\_ACEOF
29047 #define HAVE_DES_DEBUG 1
29057 if test $ol_link_krb5 = yes ; then
29058 ol_with_kerberos=found
29061 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29062 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29067 for ac_header in krb.h des.h krb-archaeology.h
29069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29071 echo "$as_me:$LINENO: checking for $ac_header" >&5
29072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29074 echo $ECHO_N "(cached) $ECHO_C" >&6
29076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29079 # Is the header compilable?
29080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29082 cat >conftest.$ac_ext <<_ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h. */
29088 $ac_includes_default
29089 #include <$ac_header>
29091 rm -f conftest.$ac_objext
29092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29093 (eval $ac_compile) 2>conftest.er1
29095 grep -v '^ *+' conftest.er1 >conftest.err
29097 cat conftest.err >&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } &&
29100 { ac_try='test -z "$ac_c_werror_flag"
29101 || test ! -s conftest.err'
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; } &&
29107 { ac_try='test -s conftest.$ac_objext'
29108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109 (eval $ac_try) 2>&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; }; then
29113 ac_header_compiler=yes
29115 echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29118 ac_header_compiler=no
29120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29122 echo "${ECHO_T}$ac_header_compiler" >&6
29124 # Is the header present?
29125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29127 cat >conftest.$ac_ext <<_ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29133 #include <$ac_header>
29135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29138 grep -v '^ *+' conftest.er1 >conftest.err
29140 cat conftest.err >&5
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); } >/dev/null; then
29143 if test -s conftest.err; then
29144 ac_cpp_err=$ac_c_preproc_warn_flag
29145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29152 if test -z "$ac_cpp_err"; then
29153 ac_header_preproc=yes
29155 echo "$as_me: failed program was:" >&5
29156 sed 's/^/| /' conftest.$ac_ext >&5
29158 ac_header_preproc=no
29160 rm -f conftest.err conftest.$ac_ext
29161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29162 echo "${ECHO_T}$ac_header_preproc" >&6
29164 # So? What about this header?
29165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29171 ac_header_preproc=yes
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29188 ## ------------------------------------------ ##
29189 ## Report this to the AC_PACKAGE_NAME lists. ##
29190 ## ------------------------------------------ ##
29193 sed "s/^/$as_me: WARNING: /" >&2
29196 echo "$as_me:$LINENO: checking for $ac_header" >&5
29197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29199 echo $ECHO_N "(cached) $ECHO_C" >&6
29201 eval "$as_ac_Header=\$ac_header_preproc"
29203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29208 cat >>confdefs.h <<_ACEOF
29209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29217 if test $ac_cv_header_krb_h = yes ; then
29218 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29219 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29220 if test "${ac_cv_lib_krb_main+set}" = set; then
29221 echo $ECHO_N "(cached) $ECHO_C" >&6
29223 ac_check_lib_save_LIBS=$LIBS
29224 LIBS="-lkrb -ldes $LIBS"
29225 cat >conftest.$ac_ext <<_ACEOF
29228 cat confdefs.h >>conftest.$ac_ext
29229 cat >>conftest.$ac_ext <<_ACEOF
29230 /* end confdefs.h. */
29241 rm -f conftest.$ac_objext conftest$ac_exeext
29242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29243 (eval $ac_link) 2>conftest.er1
29245 grep -v '^ *+' conftest.er1 >conftest.err
29247 cat conftest.err >&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } &&
29250 { ac_try='test -z "$ac_c_werror_flag"
29251 || test ! -s conftest.err'
29252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29253 (eval $ac_try) 2>&5
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); }; } &&
29257 { ac_try='test -s conftest$ac_exeext'
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; }; then
29263 ac_cv_lib_krb_main=yes
29265 echo "$as_me: failed program was:" >&5
29266 sed 's/^/| /' conftest.$ac_ext >&5
29268 ac_cv_lib_krb_main=no
29270 rm -f conftest.err conftest.$ac_objext \
29271 conftest$ac_exeext conftest.$ac_ext
29272 LIBS=$ac_check_lib_save_LIBS
29274 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29275 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29276 if test $ac_cv_lib_krb_main = yes; then
29283 if test $have_k4 = yes ; then
29284 ol_with_kerberos=found
29288 cat >>confdefs.h <<\_ACEOF
29289 #define HAVE_KRB4 1
29293 KRB4_LIBS="-lkrb -ldes"
29295 if test $ac_cv_header_krb_archaeology_h = yes ; then
29297 cat >>confdefs.h <<\_ACEOF
29298 #define HAVE_KTH_KERBEROS 1
29306 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29309 elif test $ol_enable_kbind = yes ; then
29310 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29311 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29312 { (exit 1); exit 1; }; }
29315 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29317 cat >>confdefs.h <<\_ACEOF
29318 #define HAVE_KERBEROS 1
29322 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29323 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29324 echo "$as_me: error: Kerberos detection failed" >&2;}
29325 { (exit 1); exit 1; }; }
29330 if test $ol_with_tls != no ; then
29333 for ac_header in openssl/ssl.h ssl.h
29335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29337 echo "$as_me:$LINENO: checking for $ac_header" >&5
29338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29345 # Is the header compilable?
29346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29348 cat >conftest.$ac_ext <<_ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h. */
29354 $ac_includes_default
29355 #include <$ac_header>
29357 rm -f conftest.$ac_objext
29358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29359 (eval $ac_compile) 2>conftest.er1
29361 grep -v '^ *+' conftest.er1 >conftest.err
29363 cat conftest.err >&5
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); } &&
29366 { ac_try='test -z "$ac_c_werror_flag"
29367 || test ! -s conftest.err'
29368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29369 (eval $ac_try) 2>&5
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); }; } &&
29373 { ac_try='test -s conftest.$ac_objext'
29374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375 (eval $ac_try) 2>&5
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); }; }; then
29379 ac_header_compiler=yes
29381 echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29384 ac_header_compiler=no
29386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29388 echo "${ECHO_T}$ac_header_compiler" >&6
29390 # Is the header present?
29391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29393 cat >conftest.$ac_ext <<_ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h. */
29399 #include <$ac_header>
29401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29404 grep -v '^ *+' conftest.er1 >conftest.err
29406 cat conftest.err >&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); } >/dev/null; then
29409 if test -s conftest.err; then
29410 ac_cpp_err=$ac_c_preproc_warn_flag
29411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29418 if test -z "$ac_cpp_err"; then
29419 ac_header_preproc=yes
29421 echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29424 ac_header_preproc=no
29426 rm -f conftest.err conftest.$ac_ext
29427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29428 echo "${ECHO_T}$ac_header_preproc" >&6
29430 # So? What about this header?
29431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29437 ac_header_preproc=yes
29440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29454 ## ------------------------------------------ ##
29455 ## Report this to the AC_PACKAGE_NAME lists. ##
29456 ## ------------------------------------------ ##
29459 sed "s/^/$as_me: WARNING: /" >&2
29462 echo "$as_me:$LINENO: checking for $ac_header" >&5
29463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29465 echo $ECHO_N "(cached) $ECHO_C" >&6
29467 eval "$as_ac_Header=\$ac_header_preproc"
29469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29474 cat >>confdefs.h <<_ACEOF
29475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29483 if test $ac_cv_header_openssl_ssl_h = yes \
29484 -o $ac_cv_header_ssl_h = yes ; then
29485 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29486 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29487 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29488 echo $ECHO_N "(cached) $ECHO_C" >&6
29490 ac_check_lib_save_LIBS=$LIBS
29491 LIBS="-lssl -lcrypto $LIBS"
29492 cat >conftest.$ac_ext <<_ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h. */
29499 /* Override any gcc2 internal prototype to avoid an error. */
29503 /* We use char because int might match the return type of a gcc2
29504 builtin and then its argument prototype would still apply. */
29505 char SSLeay_add_ssl_algorithms ();
29509 SSLeay_add_ssl_algorithms ();
29514 rm -f conftest.$ac_objext conftest$ac_exeext
29515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29516 (eval $ac_link) 2>conftest.er1
29518 grep -v '^ *+' conftest.er1 >conftest.err
29520 cat conftest.err >&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); } &&
29523 { ac_try='test -z "$ac_c_werror_flag"
29524 || test ! -s conftest.err'
29525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526 (eval $ac_try) 2>&5
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; } &&
29530 { ac_try='test -s conftest$ac_exeext'
29531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532 (eval $ac_try) 2>&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; }; then
29536 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29538 echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29541 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29543 rm -f conftest.err conftest.$ac_objext \
29544 conftest$ac_exeext conftest.$ac_ext
29545 LIBS=$ac_check_lib_save_LIBS
29547 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29548 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29549 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29557 if test $have_ssleay = no ; then
29558 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29559 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29560 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29561 echo $ECHO_N "(cached) $ECHO_C" >&6
29563 ac_check_lib_save_LIBS=$LIBS
29564 LIBS="-lssl -lcrypto $LIBS"
29565 cat >conftest.$ac_ext <<_ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h. */
29572 /* Override any gcc2 internal prototype to avoid an error. */
29576 /* We use char because int might match the return type of a gcc2
29577 builtin and then its argument prototype would still apply. */
29578 char SSL_library_init ();
29582 SSL_library_init ();
29587 rm -f conftest.$ac_objext conftest$ac_exeext
29588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29589 (eval $ac_link) 2>conftest.er1
29591 grep -v '^ *+' conftest.er1 >conftest.err
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
29596 { ac_try='test -z "$ac_c_werror_flag"
29597 || test ! -s conftest.err'
29598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599 (eval $ac_try) 2>&5
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; } &&
29603 { ac_try='test -s conftest$ac_exeext'
29604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605 (eval $ac_try) 2>&5
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; }; then
29609 ac_cv_lib_ssl_SSL_library_init=yes
29611 echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29614 ac_cv_lib_ssl_SSL_library_init=no
29616 rm -f conftest.err conftest.$ac_objext \
29617 conftest$ac_exeext conftest.$ac_ext
29618 LIBS=$ac_check_lib_save_LIBS
29620 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29621 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29622 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29631 if test $have_ssleay = no ; then
29632 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29633 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29634 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29635 echo $ECHO_N "(cached) $ECHO_C" >&6
29637 ac_check_lib_save_LIBS=$LIBS
29638 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29639 cat >conftest.$ac_ext <<_ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h. */
29646 /* Override any gcc2 internal prototype to avoid an error. */
29650 /* We use char because int might match the return type of a gcc2
29651 builtin and then its argument prototype would still apply. */
29652 char ssl3_accept ();
29661 rm -f conftest.$ac_objext conftest$ac_exeext
29662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29663 (eval $ac_link) 2>conftest.er1
29665 grep -v '^ *+' conftest.er1 >conftest.err
29667 cat conftest.err >&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } &&
29670 { ac_try='test -z "$ac_c_werror_flag"
29671 || test ! -s conftest.err'
29672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29673 (eval $ac_try) 2>&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); }; } &&
29677 { ac_try='test -s conftest$ac_exeext'
29678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29679 (eval $ac_try) 2>&5
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; }; then
29683 ac_cv_lib_ssl_ssl3_accept=yes
29685 echo "$as_me: failed program was:" >&5
29686 sed 's/^/| /' conftest.$ac_ext >&5
29688 ac_cv_lib_ssl_ssl3_accept=no
29690 rm -f conftest.err conftest.$ac_objext \
29691 conftest$ac_exeext conftest.$ac_ext
29692 LIBS=$ac_check_lib_save_LIBS
29694 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29695 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29696 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29705 if test $have_ssleay = yes ; then
29710 cat >>confdefs.h <<\_ACEOF
29711 #define HAVE_SSLEAY 1
29715 if test $need_rsaref = yes; then
29717 cat >>confdefs.h <<\_ACEOF
29718 #define HAVE_RSAREF 1
29722 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29724 TLS_LIBS="-lssl -lcrypto"
29727 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29728 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29729 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29733 cat >conftest.$ac_ext <<_ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h. */
29740 #ifdef HAVE_OPENSSL_SSL_H
29741 #include <openssl/ssl.h>
29746 /* Require 0.9.7d+ */
29747 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29748 char *__ssl_compat = "0.9.7d";
29752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29753 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29754 ol_cv_ssl_crl_compat=yes
29756 ol_cv_ssl_crl_compat=no
29761 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29762 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29764 if test $ol_cv_ssl_crl_compat = no ; then
29768 cat >>confdefs.h <<\_ACEOF
29769 #define HAVE_OPENSSL_CRL 1
29776 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29777 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29781 if test $ol_link_tls = yes ; then
29783 cat >>confdefs.h <<\_ACEOF
29789 elif test $ol_with_tls = auto ; then
29790 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29791 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29792 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29793 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29795 elif test $ol_with_tls != no ; then
29796 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29797 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29798 { (exit 1); exit 1; }; }
29801 if test $ol_enable_lmpasswd != no; then
29802 if test $ol_link_tls != yes ; then
29803 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29804 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29805 { (exit 1); exit 1; }; }
29809 cat >>confdefs.h <<\_ACEOF
29810 #define SLAPD_LMHASH 1
29817 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29818 -o $ol_with_threads = nt ; then
29821 echo "$as_me:$LINENO: checking for _beginthread" >&5
29822 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29823 if test "${ac_cv_func__beginthread+set}" = set; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29826 cat >conftest.$ac_ext <<_ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h. */
29832 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29834 #define _beginthread innocuous__beginthread
29836 /* System header to define __stub macros and hopefully few prototypes,
29837 which can conflict with char _beginthread (); below.
29838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29839 <limits.h> exists even on freestanding compilers. */
29842 # include <limits.h>
29844 # include <assert.h>
29847 #undef _beginthread
29849 /* Override any gcc2 internal prototype to avoid an error. */
29854 /* We use char because int might match the return type of a gcc2
29855 builtin and then its argument prototype would still apply. */
29856 char _beginthread ();
29857 /* The GNU C library defines this for functions which it implements
29858 to always fail with ENOSYS. Some functions are actually named
29859 something starting with __ and the normal name is an alias. */
29860 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29863 char (*f) () = _beginthread;
29872 return f != _beginthread;
29877 rm -f conftest.$ac_objext conftest$ac_exeext
29878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29879 (eval $ac_link) 2>conftest.er1
29881 grep -v '^ *+' conftest.er1 >conftest.err
29883 cat conftest.err >&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); } &&
29886 { ac_try='test -z "$ac_c_werror_flag"
29887 || test ! -s conftest.err'
29888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889 (eval $ac_try) 2>&5
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); }; } &&
29893 { ac_try='test -s conftest$ac_exeext'
29894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29895 (eval $ac_try) 2>&5
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; }; then
29899 ac_cv_func__beginthread=yes
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29904 ac_cv_func__beginthread=no
29906 rm -f conftest.err conftest.$ac_objext \
29907 conftest$ac_exeext conftest.$ac_ext
29909 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29910 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29913 if test $ac_cv_func__beginthread = yes ; then
29915 cat >>confdefs.h <<\_ACEOF
29916 #define HAVE_NT_THREADS 1
29919 ol_cv_nt_threads=yes
29923 if test "$ol_cv_nt_threads" = yes ; then
29925 ol_with_threads=found
29926 ol_with_yielding_select=yes
29929 cat >>confdefs.h <<\_ACEOF
29930 #define HAVE_NT_SERVICE_MANAGER 1
29934 cat >>confdefs.h <<\_ACEOF
29935 #define HAVE_NT_EVENT_LOG 1
29940 if test $ol_with_threads = nt ; then
29941 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29942 echo "$as_me: error: could not locate NT Threads" >&2;}
29943 { (exit 1); exit 1; }; }
29947 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29948 -o $ol_with_threads = posix ; then
29951 for ac_header in pthread.h
29953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29955 echo "$as_me:$LINENO: checking for $ac_header" >&5
29956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29958 echo $ECHO_N "(cached) $ECHO_C" >&6
29960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29963 # Is the header compilable?
29964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29966 cat >conftest.$ac_ext <<_ACEOF
29969 cat confdefs.h >>conftest.$ac_ext
29970 cat >>conftest.$ac_ext <<_ACEOF
29971 /* end confdefs.h. */
29972 $ac_includes_default
29973 #include <$ac_header>
29975 rm -f conftest.$ac_objext
29976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29977 (eval $ac_compile) 2>conftest.er1
29979 grep -v '^ *+' conftest.er1 >conftest.err
29981 cat conftest.err >&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } &&
29984 { ac_try='test -z "$ac_c_werror_flag"
29985 || test ! -s conftest.err'
29986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29987 (eval $ac_try) 2>&5
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); }; } &&
29991 { ac_try='test -s conftest.$ac_objext'
29992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29993 (eval $ac_try) 2>&5
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); }; }; then
29997 ac_header_compiler=yes
29999 echo "$as_me: failed program was:" >&5
30000 sed 's/^/| /' conftest.$ac_ext >&5
30002 ac_header_compiler=no
30004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30006 echo "${ECHO_T}$ac_header_compiler" >&6
30008 # Is the header present?
30009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30011 cat >conftest.$ac_ext <<_ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h. */
30017 #include <$ac_header>
30019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30022 grep -v '^ *+' conftest.er1 >conftest.err
30024 cat conftest.err >&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); } >/dev/null; then
30027 if test -s conftest.err; then
30028 ac_cpp_err=$ac_c_preproc_warn_flag
30029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30036 if test -z "$ac_cpp_err"; then
30037 ac_header_preproc=yes
30039 echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30042 ac_header_preproc=no
30044 rm -f conftest.err conftest.$ac_ext
30045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30046 echo "${ECHO_T}$ac_header_preproc" >&6
30048 # So? What about this header?
30049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30055 ac_header_preproc=yes
30058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30072 ## ------------------------------------------ ##
30073 ## Report this to the AC_PACKAGE_NAME lists. ##
30074 ## ------------------------------------------ ##
30077 sed "s/^/$as_me: WARNING: /" >&2
30080 echo "$as_me:$LINENO: checking for $ac_header" >&5
30081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30083 echo $ECHO_N "(cached) $ECHO_C" >&6
30085 eval "$as_ac_Header=\$ac_header_preproc"
30087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30092 cat >>confdefs.h <<_ACEOF
30093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30101 if test $ac_cv_header_pthread_h = yes ; then
30102 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30103 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30104 if test "${ol_cv_pthread_version+set}" = set; then
30105 echo $ECHO_N "(cached) $ECHO_C" >&6
30108 cat >conftest.$ac_ext <<_ACEOF
30111 cat confdefs.h >>conftest.$ac_ext
30112 cat >>conftest.$ac_ext <<_ACEOF
30113 /* end confdefs.h. */
30115 # include <pthread.h>
30121 int i = PTHREAD_CREATE_JOINABLE;
30127 rm -f conftest.$ac_objext
30128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30129 (eval $ac_compile) 2>conftest.er1
30131 grep -v '^ *+' conftest.er1 >conftest.err
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); } &&
30136 { ac_try='test -z "$ac_c_werror_flag"
30137 || test ! -s conftest.err'
30138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30139 (eval $ac_try) 2>&5
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); }; } &&
30143 { ac_try='test -s conftest.$ac_objext'
30144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30145 (eval $ac_try) 2>&5
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); }; }; then
30150 cat >conftest.$ac_ext <<_ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h. */
30156 #include <pthread.h>
30159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30160 $EGREP "pthread_detach" >/dev/null 2>&1; then
30161 ol_cv_pthread_version=10
30163 ol_cv_pthread_version=8
30168 echo "$as_me: failed program was:" >&5
30169 sed 's/^/| /' conftest.$ac_ext >&5
30172 cat >conftest.$ac_ext <<_ACEOF
30175 cat confdefs.h >>conftest.$ac_ext
30176 cat >>conftest.$ac_ext <<_ACEOF
30177 /* end confdefs.h. */
30179 # include <pthread.h>
30180 # ifdef PTHREAD_CREATE_UNDETACHED
30185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30186 $EGREP "draft7" >/dev/null 2>&1; then
30187 ol_cv_pthread_version=7
30190 cat >conftest.$ac_ext <<_ACEOF
30193 cat confdefs.h >>conftest.$ac_ext
30194 cat >>conftest.$ac_ext <<_ACEOF
30195 /* end confdefs.h. */
30196 #include <pthread.h>
30199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30200 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30201 ol_cv_pthread_version=6
30204 cat >conftest.$ac_ext <<_ACEOF
30207 cat confdefs.h >>conftest.$ac_ext
30208 cat >>conftest.$ac_ext <<_ACEOF
30209 /* end confdefs.h. */
30211 # include <pthread.h>
30212 #ifdef PTHREAD_MUTEX_INITIALIZER
30217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30218 $EGREP "draft5" >/dev/null 2>&1; then
30219 ol_cv_pthread_version=5
30221 ol_cv_pthread_version=4
30232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30235 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30236 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30239 if test $ol_cv_pthread_version != 0 ; then
30241 cat >>confdefs.h <<_ACEOF
30242 #define HAVE_PTHREADS $ol_cv_pthread_version
30246 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30247 echo "$as_me: error: unknown pthread version" >&2;}
30248 { (exit 1); exit 1; }; }
30251 # consider threads found
30252 ol_with_threads=found
30255 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30256 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30257 if test "${ol_cv_header_linux_threads+set}" = set; then
30258 echo $ECHO_N "(cached) $ECHO_C" >&6
30260 cat >conftest.$ac_ext <<_ACEOF
30263 cat confdefs.h >>conftest.$ac_ext
30264 cat >>conftest.$ac_ext <<_ACEOF
30265 /* end confdefs.h. */
30266 #include <pthread.h>
30268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30269 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30270 ol_cv_header_linux_threads=yes
30272 ol_cv_header_linux_threads=no
30278 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30279 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30280 if test $ol_cv_header_linux_threads = yes; then
30282 cat >>confdefs.h <<\_ACEOF
30283 #define HAVE_LINUX_THREADS 1
30289 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30290 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30291 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30292 echo $ECHO_N "(cached) $ECHO_C" >&6
30294 cat >conftest.$ac_ext <<_ACEOF
30297 cat confdefs.h >>conftest.$ac_ext
30298 cat >>conftest.$ac_ext <<_ACEOF
30299 /* end confdefs.h. */
30300 #include <pthread.h>
30301 #ifdef _POSIX_THREAD_IS_GNU_PTH
30306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30307 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30308 ol_cv_header_gnu_pth_pthread_h=yes
30310 ol_cv_header_gnu_pth_pthread_h=no
30316 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30317 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30320 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30322 for ac_header in sched.h
30324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30326 echo "$as_me:$LINENO: checking for $ac_header" >&5
30327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30329 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30334 # Is the header compilable?
30335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30337 cat >conftest.$ac_ext <<_ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30343 $ac_includes_default
30344 #include <$ac_header>
30346 rm -f conftest.$ac_objext
30347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30348 (eval $ac_compile) 2>conftest.er1
30350 grep -v '^ *+' conftest.er1 >conftest.err
30352 cat conftest.err >&5
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); } &&
30355 { ac_try='test -z "$ac_c_werror_flag"
30356 || test ! -s conftest.err'
30357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30358 (eval $ac_try) 2>&5
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; } &&
30362 { ac_try='test -s conftest.$ac_objext'
30363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30364 (eval $ac_try) 2>&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; }; then
30368 ac_header_compiler=yes
30370 echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30373 ac_header_compiler=no
30375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30377 echo "${ECHO_T}$ac_header_compiler" >&6
30379 # Is the header present?
30380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30382 cat >conftest.$ac_ext <<_ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h. */
30388 #include <$ac_header>
30390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30393 grep -v '^ *+' conftest.er1 >conftest.err
30395 cat conftest.err >&5
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); } >/dev/null; then
30398 if test -s conftest.err; then
30399 ac_cpp_err=$ac_c_preproc_warn_flag
30400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30407 if test -z "$ac_cpp_err"; then
30408 ac_header_preproc=yes
30410 echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30413 ac_header_preproc=no
30415 rm -f conftest.err conftest.$ac_ext
30416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30417 echo "${ECHO_T}$ac_header_preproc" >&6
30419 # So? What about this header?
30420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30426 ac_header_preproc=yes
30429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30443 ## ------------------------------------------ ##
30444 ## Report this to the AC_PACKAGE_NAME lists. ##
30445 ## ------------------------------------------ ##
30448 sed "s/^/$as_me: WARNING: /" >&2
30451 echo "$as_me:$LINENO: checking for $ac_header" >&5
30452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30454 echo $ECHO_N "(cached) $ECHO_C" >&6
30456 eval "$as_ac_Header=\$ac_header_preproc"
30458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30463 cat >>confdefs.h <<_ACEOF
30464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30474 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30475 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30476 if test "${ol_cv_pthread_create+set}" = set; then
30477 echo $ECHO_N "(cached) $ECHO_C" >&6
30480 if test "$cross_compiling" = yes; then
30481 cat >conftest.$ac_ext <<_ACEOF
30484 cat confdefs.h >>conftest.$ac_ext
30485 cat >>conftest.$ac_ext <<_ACEOF
30486 /* end confdefs.h. */
30488 /* pthread test headers */
30489 #include <pthread.h>
30490 #if HAVE_PTHREADS < 7
30494 #define NULL (void*)0
30497 static void *task(p)
30500 return (void *) (p == NULL);
30507 /* pthread test function */
30508 #ifndef PTHREAD_CREATE_DETACHED
30509 #define PTHREAD_CREATE_DETACHED 1
30513 int detach = PTHREAD_CREATE_DETACHED;
30515 #if HAVE_PTHREADS > 4
30516 /* Final pthreads */
30517 pthread_attr_t attr;
30519 status = pthread_attr_init(&attr);
30520 if( status ) return status;
30522 #if HAVE_PTHREADS < 7
30523 status = pthread_attr_setdetachstate(&attr, &detach);
30524 if( status < 0 ) status = errno;
30526 status = pthread_attr_setdetachstate(&attr, detach);
30528 if( status ) return status;
30529 status = pthread_create( &t, &attr, task, NULL );
30530 #if HAVE_PTHREADS < 7
30531 if( status < 0 ) status = errno;
30533 if( status ) return status;
30535 /* Draft 4 pthreads */
30536 status = pthread_create( &t, pthread_attr_default, task, NULL );
30537 if( status ) return errno;
30539 /* give thread a chance to complete */
30540 /* it should remain joinable and hence detachable */
30543 status = pthread_detach( &t );
30544 if( status ) return errno;
30547 #ifdef HAVE_LINUX_THREADS
30548 pthread_kill_other_threads_np();
30557 rm -f conftest.$ac_objext conftest$ac_exeext
30558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30559 (eval $ac_link) 2>conftest.er1
30561 grep -v '^ *+' conftest.er1 >conftest.err
30563 cat conftest.err >&5
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); } &&
30566 { ac_try='test -z "$ac_c_werror_flag"
30567 || test ! -s conftest.err'
30568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30569 (eval $ac_try) 2>&5
30571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572 (exit $ac_status); }; } &&
30573 { ac_try='test -s conftest$ac_exeext'
30574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30575 (eval $ac_try) 2>&5
30577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30578 (exit $ac_status); }; }; then
30579 ol_cv_pthread_create=yes
30581 echo "$as_me: failed program was:" >&5
30582 sed 's/^/| /' conftest.$ac_ext >&5
30584 ol_cv_pthread_create=no
30586 rm -f conftest.err conftest.$ac_objext \
30587 conftest$ac_exeext conftest.$ac_ext
30589 cat >conftest.$ac_ext <<_ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h. */
30596 /* pthread test headers */
30597 #include <pthread.h>
30598 #if HAVE_PTHREADS < 7
30602 #define NULL (void*)0
30605 static void *task(p)
30608 return (void *) (p == NULL);
30612 int main(argc, argv)
30617 /* pthread test function */
30618 #ifndef PTHREAD_CREATE_DETACHED
30619 #define PTHREAD_CREATE_DETACHED 1
30623 int detach = PTHREAD_CREATE_DETACHED;
30625 #if HAVE_PTHREADS > 4
30626 /* Final pthreads */
30627 pthread_attr_t attr;
30629 status = pthread_attr_init(&attr);
30630 if( status ) return status;
30632 #if HAVE_PTHREADS < 7
30633 status = pthread_attr_setdetachstate(&attr, &detach);
30634 if( status < 0 ) status = errno;
30636 status = pthread_attr_setdetachstate(&attr, detach);
30638 if( status ) return status;
30639 status = pthread_create( &t, &attr, task, NULL );
30640 #if HAVE_PTHREADS < 7
30641 if( status < 0 ) status = errno;
30643 if( status ) return status;
30645 /* Draft 4 pthreads */
30646 status = pthread_create( &t, pthread_attr_default, task, NULL );
30647 if( status ) return errno;
30649 /* give thread a chance to complete */
30650 /* it should remain joinable and hence detachable */
30653 status = pthread_detach( &t );
30654 if( status ) return errno;
30657 #ifdef HAVE_LINUX_THREADS
30658 pthread_kill_other_threads_np();
30666 rm -f conftest$ac_exeext
30667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30668 (eval $ac_link) 2>&5
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
30677 ol_cv_pthread_create=yes
30679 echo "$as_me: program exited with status $ac_status" >&5
30680 echo "$as_me: failed program was:" >&5
30681 sed 's/^/| /' conftest.$ac_ext >&5
30683 ( exit $ac_status )
30684 ol_cv_pthread_create=no
30686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30689 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30690 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30692 if test $ol_cv_pthread_create != no ; then
30693 ol_link_threads=posix
30694 ol_link_pthreads=""
30697 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30698 if test "$ol_link_threads" = no ; then
30700 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30701 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30702 if test "${ol_cv_pthread_kthread+set}" = set; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30708 LIBS="-kthread $LIBS"
30710 if test "$cross_compiling" = yes; then
30711 cat >conftest.$ac_ext <<_ACEOF
30714 cat confdefs.h >>conftest.$ac_ext
30715 cat >>conftest.$ac_ext <<_ACEOF
30716 /* end confdefs.h. */
30718 /* pthread test headers */
30719 #include <pthread.h>
30720 #if HAVE_PTHREADS < 7
30724 #define NULL (void*)0
30727 static void *task(p)
30730 return (void *) (p == NULL);
30737 /* pthread test function */
30738 #ifndef PTHREAD_CREATE_DETACHED
30739 #define PTHREAD_CREATE_DETACHED 1
30743 int detach = PTHREAD_CREATE_DETACHED;
30745 #if HAVE_PTHREADS > 4
30746 /* Final pthreads */
30747 pthread_attr_t attr;
30749 status = pthread_attr_init(&attr);
30750 if( status ) return status;
30752 #if HAVE_PTHREADS < 7
30753 status = pthread_attr_setdetachstate(&attr, &detach);
30754 if( status < 0 ) status = errno;
30756 status = pthread_attr_setdetachstate(&attr, detach);
30758 if( status ) return status;
30759 status = pthread_create( &t, &attr, task, NULL );
30760 #if HAVE_PTHREADS < 7
30761 if( status < 0 ) status = errno;
30763 if( status ) return status;
30765 /* Draft 4 pthreads */
30766 status = pthread_create( &t, pthread_attr_default, task, NULL );
30767 if( status ) return errno;
30769 /* give thread a chance to complete */
30770 /* it should remain joinable and hence detachable */
30773 status = pthread_detach( &t );
30774 if( status ) return errno;
30777 #ifdef HAVE_LINUX_THREADS
30778 pthread_kill_other_threads_np();
30787 rm -f conftest.$ac_objext conftest$ac_exeext
30788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30789 (eval $ac_link) 2>conftest.er1
30791 grep -v '^ *+' conftest.er1 >conftest.err
30793 cat conftest.err >&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); } &&
30796 { ac_try='test -z "$ac_c_werror_flag"
30797 || test ! -s conftest.err'
30798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30799 (eval $ac_try) 2>&5
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; } &&
30803 { ac_try='test -s conftest$ac_exeext'
30804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30805 (eval $ac_try) 2>&5
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); }; }; then
30809 ol_cv_pthread_kthread=yes
30811 echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30814 ol_cv_pthread_kthread=no
30816 rm -f conftest.err conftest.$ac_objext \
30817 conftest$ac_exeext conftest.$ac_ext
30819 cat >conftest.$ac_ext <<_ACEOF
30822 cat confdefs.h >>conftest.$ac_ext
30823 cat >>conftest.$ac_ext <<_ACEOF
30824 /* end confdefs.h. */
30826 /* pthread test headers */
30827 #include <pthread.h>
30828 #if HAVE_PTHREADS < 7
30832 #define NULL (void*)0
30835 static void *task(p)
30838 return (void *) (p == NULL);
30842 int main(argc, argv)
30847 /* pthread test function */
30848 #ifndef PTHREAD_CREATE_DETACHED
30849 #define PTHREAD_CREATE_DETACHED 1
30853 int detach = PTHREAD_CREATE_DETACHED;
30855 #if HAVE_PTHREADS > 4
30856 /* Final pthreads */
30857 pthread_attr_t attr;
30859 status = pthread_attr_init(&attr);
30860 if( status ) return status;
30862 #if HAVE_PTHREADS < 7
30863 status = pthread_attr_setdetachstate(&attr, &detach);
30864 if( status < 0 ) status = errno;
30866 status = pthread_attr_setdetachstate(&attr, detach);
30868 if( status ) return status;
30869 status = pthread_create( &t, &attr, task, NULL );
30870 #if HAVE_PTHREADS < 7
30871 if( status < 0 ) status = errno;
30873 if( status ) return status;
30875 /* Draft 4 pthreads */
30876 status = pthread_create( &t, pthread_attr_default, task, NULL );
30877 if( status ) return errno;
30879 /* give thread a chance to complete */
30880 /* it should remain joinable and hence detachable */
30883 status = pthread_detach( &t );
30884 if( status ) return errno;
30887 #ifdef HAVE_LINUX_THREADS
30888 pthread_kill_other_threads_np();
30896 rm -f conftest$ac_exeext
30897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30898 (eval $ac_link) 2>&5
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903 (eval $ac_try) 2>&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
30907 ol_cv_pthread_kthread=yes
30909 echo "$as_me: program exited with status $ac_status" >&5
30910 echo "$as_me: failed program was:" >&5
30911 sed 's/^/| /' conftest.$ac_ext >&5
30913 ( exit $ac_status )
30914 ol_cv_pthread_kthread=no
30916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30923 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30924 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30926 if test $ol_cv_pthread_kthread = yes ; then
30927 ol_link_pthreads="-kthread"
30928 ol_link_threads=posix
30932 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30933 if test "$ol_link_threads" = no ; then
30935 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30936 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30937 if test "${ol_cv_pthread_pthread+set}" = set; then
30938 echo $ECHO_N "(cached) $ECHO_C" >&6
30943 LIBS="-pthread $LIBS"
30945 if test "$cross_compiling" = yes; then
30946 cat >conftest.$ac_ext <<_ACEOF
30949 cat confdefs.h >>conftest.$ac_ext
30950 cat >>conftest.$ac_ext <<_ACEOF
30951 /* end confdefs.h. */
30953 /* pthread test headers */
30954 #include <pthread.h>
30955 #if HAVE_PTHREADS < 7
30959 #define NULL (void*)0
30962 static void *task(p)
30965 return (void *) (p == NULL);
30972 /* pthread test function */
30973 #ifndef PTHREAD_CREATE_DETACHED
30974 #define PTHREAD_CREATE_DETACHED 1
30978 int detach = PTHREAD_CREATE_DETACHED;
30980 #if HAVE_PTHREADS > 4
30981 /* Final pthreads */
30982 pthread_attr_t attr;
30984 status = pthread_attr_init(&attr);
30985 if( status ) return status;
30987 #if HAVE_PTHREADS < 7
30988 status = pthread_attr_setdetachstate(&attr, &detach);
30989 if( status < 0 ) status = errno;
30991 status = pthread_attr_setdetachstate(&attr, detach);
30993 if( status ) return status;
30994 status = pthread_create( &t, &attr, task, NULL );
30995 #if HAVE_PTHREADS < 7
30996 if( status < 0 ) status = errno;
30998 if( status ) return status;
31000 /* Draft 4 pthreads */
31001 status = pthread_create( &t, pthread_attr_default, task, NULL );
31002 if( status ) return errno;
31004 /* give thread a chance to complete */
31005 /* it should remain joinable and hence detachable */
31008 status = pthread_detach( &t );
31009 if( status ) return errno;
31012 #ifdef HAVE_LINUX_THREADS
31013 pthread_kill_other_threads_np();
31022 rm -f conftest.$ac_objext conftest$ac_exeext
31023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31024 (eval $ac_link) 2>conftest.er1
31026 grep -v '^ *+' conftest.er1 >conftest.err
31028 cat conftest.err >&5
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } &&
31031 { ac_try='test -z "$ac_c_werror_flag"
31032 || test ! -s conftest.err'
31033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31034 (eval $ac_try) 2>&5
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); }; } &&
31038 { ac_try='test -s conftest$ac_exeext'
31039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31040 (eval $ac_try) 2>&5
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); }; }; then
31044 ol_cv_pthread_pthread=yes
31046 echo "$as_me: failed program was:" >&5
31047 sed 's/^/| /' conftest.$ac_ext >&5
31049 ol_cv_pthread_pthread=no
31051 rm -f conftest.err conftest.$ac_objext \
31052 conftest$ac_exeext conftest.$ac_ext
31054 cat >conftest.$ac_ext <<_ACEOF
31057 cat confdefs.h >>conftest.$ac_ext
31058 cat >>conftest.$ac_ext <<_ACEOF
31059 /* end confdefs.h. */
31061 /* pthread test headers */
31062 #include <pthread.h>
31063 #if HAVE_PTHREADS < 7
31067 #define NULL (void*)0
31070 static void *task(p)
31073 return (void *) (p == NULL);
31077 int main(argc, argv)
31082 /* pthread test function */
31083 #ifndef PTHREAD_CREATE_DETACHED
31084 #define PTHREAD_CREATE_DETACHED 1
31088 int detach = PTHREAD_CREATE_DETACHED;
31090 #if HAVE_PTHREADS > 4
31091 /* Final pthreads */
31092 pthread_attr_t attr;
31094 status = pthread_attr_init(&attr);
31095 if( status ) return status;
31097 #if HAVE_PTHREADS < 7
31098 status = pthread_attr_setdetachstate(&attr, &detach);
31099 if( status < 0 ) status = errno;
31101 status = pthread_attr_setdetachstate(&attr, detach);
31103 if( status ) return status;
31104 status = pthread_create( &t, &attr, task, NULL );
31105 #if HAVE_PTHREADS < 7
31106 if( status < 0 ) status = errno;
31108 if( status ) return status;
31110 /* Draft 4 pthreads */
31111 status = pthread_create( &t, pthread_attr_default, task, NULL );
31112 if( status ) return errno;
31114 /* give thread a chance to complete */
31115 /* it should remain joinable and hence detachable */
31118 status = pthread_detach( &t );
31119 if( status ) return errno;
31122 #ifdef HAVE_LINUX_THREADS
31123 pthread_kill_other_threads_np();
31131 rm -f conftest$ac_exeext
31132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31133 (eval $ac_link) 2>&5
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31138 (eval $ac_try) 2>&5
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); }; }; then
31142 ol_cv_pthread_pthread=yes
31144 echo "$as_me: program exited with status $ac_status" >&5
31145 echo "$as_me: failed program was:" >&5
31146 sed 's/^/| /' conftest.$ac_ext >&5
31148 ( exit $ac_status )
31149 ol_cv_pthread_pthread=no
31151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31158 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31159 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31161 if test $ol_cv_pthread_pthread = yes ; then
31162 ol_link_pthreads="-pthread"
31163 ol_link_threads=posix
31167 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31168 if test "$ol_link_threads" = no ; then
31170 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31171 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31172 if test "${ol_cv_pthread_pthreads+set}" = set; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
31178 LIBS="-pthreads $LIBS"
31180 if test "$cross_compiling" = yes; then
31181 cat >conftest.$ac_ext <<_ACEOF
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h. */
31188 /* pthread test headers */
31189 #include <pthread.h>
31190 #if HAVE_PTHREADS < 7
31194 #define NULL (void*)0
31197 static void *task(p)
31200 return (void *) (p == NULL);
31207 /* pthread test function */
31208 #ifndef PTHREAD_CREATE_DETACHED
31209 #define PTHREAD_CREATE_DETACHED 1
31213 int detach = PTHREAD_CREATE_DETACHED;
31215 #if HAVE_PTHREADS > 4
31216 /* Final pthreads */
31217 pthread_attr_t attr;
31219 status = pthread_attr_init(&attr);
31220 if( status ) return status;
31222 #if HAVE_PTHREADS < 7
31223 status = pthread_attr_setdetachstate(&attr, &detach);
31224 if( status < 0 ) status = errno;
31226 status = pthread_attr_setdetachstate(&attr, detach);
31228 if( status ) return status;
31229 status = pthread_create( &t, &attr, task, NULL );
31230 #if HAVE_PTHREADS < 7
31231 if( status < 0 ) status = errno;
31233 if( status ) return status;
31235 /* Draft 4 pthreads */
31236 status = pthread_create( &t, pthread_attr_default, task, NULL );
31237 if( status ) return errno;
31239 /* give thread a chance to complete */
31240 /* it should remain joinable and hence detachable */
31243 status = pthread_detach( &t );
31244 if( status ) return errno;
31247 #ifdef HAVE_LINUX_THREADS
31248 pthread_kill_other_threads_np();
31257 rm -f conftest.$ac_objext conftest$ac_exeext
31258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31259 (eval $ac_link) 2>conftest.er1
31261 grep -v '^ *+' conftest.er1 >conftest.err
31263 cat conftest.err >&5
31264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265 (exit $ac_status); } &&
31266 { ac_try='test -z "$ac_c_werror_flag"
31267 || test ! -s conftest.err'
31268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269 (eval $ac_try) 2>&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; } &&
31273 { ac_try='test -s conftest$ac_exeext'
31274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31275 (eval $ac_try) 2>&5
31277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278 (exit $ac_status); }; }; then
31279 ol_cv_pthread_pthreads=yes
31281 echo "$as_me: failed program was:" >&5
31282 sed 's/^/| /' conftest.$ac_ext >&5
31284 ol_cv_pthread_pthreads=no
31286 rm -f conftest.err conftest.$ac_objext \
31287 conftest$ac_exeext conftest.$ac_ext
31289 cat >conftest.$ac_ext <<_ACEOF
31292 cat confdefs.h >>conftest.$ac_ext
31293 cat >>conftest.$ac_ext <<_ACEOF
31294 /* end confdefs.h. */
31296 /* pthread test headers */
31297 #include <pthread.h>
31298 #if HAVE_PTHREADS < 7
31302 #define NULL (void*)0
31305 static void *task(p)
31308 return (void *) (p == NULL);
31312 int main(argc, argv)
31317 /* pthread test function */
31318 #ifndef PTHREAD_CREATE_DETACHED
31319 #define PTHREAD_CREATE_DETACHED 1
31323 int detach = PTHREAD_CREATE_DETACHED;
31325 #if HAVE_PTHREADS > 4
31326 /* Final pthreads */
31327 pthread_attr_t attr;
31329 status = pthread_attr_init(&attr);
31330 if( status ) return status;
31332 #if HAVE_PTHREADS < 7
31333 status = pthread_attr_setdetachstate(&attr, &detach);
31334 if( status < 0 ) status = errno;
31336 status = pthread_attr_setdetachstate(&attr, detach);
31338 if( status ) return status;
31339 status = pthread_create( &t, &attr, task, NULL );
31340 #if HAVE_PTHREADS < 7
31341 if( status < 0 ) status = errno;
31343 if( status ) return status;
31345 /* Draft 4 pthreads */
31346 status = pthread_create( &t, pthread_attr_default, task, NULL );
31347 if( status ) return errno;
31349 /* give thread a chance to complete */
31350 /* it should remain joinable and hence detachable */
31353 status = pthread_detach( &t );
31354 if( status ) return errno;
31357 #ifdef HAVE_LINUX_THREADS
31358 pthread_kill_other_threads_np();
31366 rm -f conftest$ac_exeext
31367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31368 (eval $ac_link) 2>&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31373 (eval $ac_try) 2>&5
31375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); }; }; then
31377 ol_cv_pthread_pthreads=yes
31379 echo "$as_me: program exited with status $ac_status" >&5
31380 echo "$as_me: failed program was:" >&5
31381 sed 's/^/| /' conftest.$ac_ext >&5
31383 ( exit $ac_status )
31384 ol_cv_pthread_pthreads=no
31386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31393 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31394 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31396 if test $ol_cv_pthread_pthreads = yes ; then
31397 ol_link_pthreads="-pthreads"
31398 ol_link_threads=posix
31402 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31403 if test "$ol_link_threads" = no ; then
31405 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31406 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31407 if test "${ol_cv_pthread_mthreads+set}" = set; then
31408 echo $ECHO_N "(cached) $ECHO_C" >&6
31413 LIBS="-mthreads $LIBS"
31415 if test "$cross_compiling" = yes; then
31416 cat >conftest.$ac_ext <<_ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h. */
31423 /* pthread test headers */
31424 #include <pthread.h>
31425 #if HAVE_PTHREADS < 7
31429 #define NULL (void*)0
31432 static void *task(p)
31435 return (void *) (p == NULL);
31442 /* pthread test function */
31443 #ifndef PTHREAD_CREATE_DETACHED
31444 #define PTHREAD_CREATE_DETACHED 1
31448 int detach = PTHREAD_CREATE_DETACHED;
31450 #if HAVE_PTHREADS > 4
31451 /* Final pthreads */
31452 pthread_attr_t attr;
31454 status = pthread_attr_init(&attr);
31455 if( status ) return status;
31457 #if HAVE_PTHREADS < 7
31458 status = pthread_attr_setdetachstate(&attr, &detach);
31459 if( status < 0 ) status = errno;
31461 status = pthread_attr_setdetachstate(&attr, detach);
31463 if( status ) return status;
31464 status = pthread_create( &t, &attr, task, NULL );
31465 #if HAVE_PTHREADS < 7
31466 if( status < 0 ) status = errno;
31468 if( status ) return status;
31470 /* Draft 4 pthreads */
31471 status = pthread_create( &t, pthread_attr_default, task, NULL );
31472 if( status ) return errno;
31474 /* give thread a chance to complete */
31475 /* it should remain joinable and hence detachable */
31478 status = pthread_detach( &t );
31479 if( status ) return errno;
31482 #ifdef HAVE_LINUX_THREADS
31483 pthread_kill_other_threads_np();
31492 rm -f conftest.$ac_objext conftest$ac_exeext
31493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31494 (eval $ac_link) 2>conftest.er1
31496 grep -v '^ *+' conftest.er1 >conftest.err
31498 cat conftest.err >&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } &&
31501 { ac_try='test -z "$ac_c_werror_flag"
31502 || test ! -s conftest.err'
31503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31504 (eval $ac_try) 2>&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; } &&
31508 { ac_try='test -s conftest$ac_exeext'
31509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31510 (eval $ac_try) 2>&5
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); }; }; then
31514 ol_cv_pthread_mthreads=yes
31516 echo "$as_me: failed program was:" >&5
31517 sed 's/^/| /' conftest.$ac_ext >&5
31519 ol_cv_pthread_mthreads=no
31521 rm -f conftest.err conftest.$ac_objext \
31522 conftest$ac_exeext conftest.$ac_ext
31524 cat >conftest.$ac_ext <<_ACEOF
31527 cat confdefs.h >>conftest.$ac_ext
31528 cat >>conftest.$ac_ext <<_ACEOF
31529 /* end confdefs.h. */
31531 /* pthread test headers */
31532 #include <pthread.h>
31533 #if HAVE_PTHREADS < 7
31537 #define NULL (void*)0
31540 static void *task(p)
31543 return (void *) (p == NULL);
31547 int main(argc, argv)
31552 /* pthread test function */
31553 #ifndef PTHREAD_CREATE_DETACHED
31554 #define PTHREAD_CREATE_DETACHED 1
31558 int detach = PTHREAD_CREATE_DETACHED;
31560 #if HAVE_PTHREADS > 4
31561 /* Final pthreads */
31562 pthread_attr_t attr;
31564 status = pthread_attr_init(&attr);
31565 if( status ) return status;
31567 #if HAVE_PTHREADS < 7
31568 status = pthread_attr_setdetachstate(&attr, &detach);
31569 if( status < 0 ) status = errno;
31571 status = pthread_attr_setdetachstate(&attr, detach);
31573 if( status ) return status;
31574 status = pthread_create( &t, &attr, task, NULL );
31575 #if HAVE_PTHREADS < 7
31576 if( status < 0 ) status = errno;
31578 if( status ) return status;
31580 /* Draft 4 pthreads */
31581 status = pthread_create( &t, pthread_attr_default, task, NULL );
31582 if( status ) return errno;
31584 /* give thread a chance to complete */
31585 /* it should remain joinable and hence detachable */
31588 status = pthread_detach( &t );
31589 if( status ) return errno;
31592 #ifdef HAVE_LINUX_THREADS
31593 pthread_kill_other_threads_np();
31601 rm -f conftest$ac_exeext
31602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31603 (eval $ac_link) 2>&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31608 (eval $ac_try) 2>&5
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; }; then
31612 ol_cv_pthread_mthreads=yes
31614 echo "$as_me: program exited with status $ac_status" >&5
31615 echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31618 ( exit $ac_status )
31619 ol_cv_pthread_mthreads=no
31621 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31628 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31629 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31631 if test $ol_cv_pthread_mthreads = yes ; then
31632 ol_link_pthreads="-mthreads"
31633 ol_link_threads=posix
31637 # Pthread try link: -thread (ol_cv_pthread_thread)
31638 if test "$ol_link_threads" = no ; then
31640 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31641 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31642 if test "${ol_cv_pthread_thread+set}" = set; then
31643 echo $ECHO_N "(cached) $ECHO_C" >&6
31648 LIBS="-thread $LIBS"
31650 if test "$cross_compiling" = yes; then
31651 cat >conftest.$ac_ext <<_ACEOF
31654 cat confdefs.h >>conftest.$ac_ext
31655 cat >>conftest.$ac_ext <<_ACEOF
31656 /* end confdefs.h. */
31658 /* pthread test headers */
31659 #include <pthread.h>
31660 #if HAVE_PTHREADS < 7
31664 #define NULL (void*)0
31667 static void *task(p)
31670 return (void *) (p == NULL);
31677 /* pthread test function */
31678 #ifndef PTHREAD_CREATE_DETACHED
31679 #define PTHREAD_CREATE_DETACHED 1
31683 int detach = PTHREAD_CREATE_DETACHED;
31685 #if HAVE_PTHREADS > 4
31686 /* Final pthreads */
31687 pthread_attr_t attr;
31689 status = pthread_attr_init(&attr);
31690 if( status ) return status;
31692 #if HAVE_PTHREADS < 7
31693 status = pthread_attr_setdetachstate(&attr, &detach);
31694 if( status < 0 ) status = errno;
31696 status = pthread_attr_setdetachstate(&attr, detach);
31698 if( status ) return status;
31699 status = pthread_create( &t, &attr, task, NULL );
31700 #if HAVE_PTHREADS < 7
31701 if( status < 0 ) status = errno;
31703 if( status ) return status;
31705 /* Draft 4 pthreads */
31706 status = pthread_create( &t, pthread_attr_default, task, NULL );
31707 if( status ) return errno;
31709 /* give thread a chance to complete */
31710 /* it should remain joinable and hence detachable */
31713 status = pthread_detach( &t );
31714 if( status ) return errno;
31717 #ifdef HAVE_LINUX_THREADS
31718 pthread_kill_other_threads_np();
31727 rm -f conftest.$ac_objext conftest$ac_exeext
31728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31729 (eval $ac_link) 2>conftest.er1
31731 grep -v '^ *+' conftest.er1 >conftest.err
31733 cat conftest.err >&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); } &&
31736 { ac_try='test -z "$ac_c_werror_flag"
31737 || test ! -s conftest.err'
31738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31739 (eval $ac_try) 2>&5
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); }; } &&
31743 { ac_try='test -s conftest$ac_exeext'
31744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31745 (eval $ac_try) 2>&5
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); }; }; then
31749 ol_cv_pthread_thread=yes
31751 echo "$as_me: failed program was:" >&5
31752 sed 's/^/| /' conftest.$ac_ext >&5
31754 ol_cv_pthread_thread=no
31756 rm -f conftest.err conftest.$ac_objext \
31757 conftest$ac_exeext conftest.$ac_ext
31759 cat >conftest.$ac_ext <<_ACEOF
31762 cat confdefs.h >>conftest.$ac_ext
31763 cat >>conftest.$ac_ext <<_ACEOF
31764 /* end confdefs.h. */
31766 /* pthread test headers */
31767 #include <pthread.h>
31768 #if HAVE_PTHREADS < 7
31772 #define NULL (void*)0
31775 static void *task(p)
31778 return (void *) (p == NULL);
31782 int main(argc, argv)
31787 /* pthread test function */
31788 #ifndef PTHREAD_CREATE_DETACHED
31789 #define PTHREAD_CREATE_DETACHED 1
31793 int detach = PTHREAD_CREATE_DETACHED;
31795 #if HAVE_PTHREADS > 4
31796 /* Final pthreads */
31797 pthread_attr_t attr;
31799 status = pthread_attr_init(&attr);
31800 if( status ) return status;
31802 #if HAVE_PTHREADS < 7
31803 status = pthread_attr_setdetachstate(&attr, &detach);
31804 if( status < 0 ) status = errno;
31806 status = pthread_attr_setdetachstate(&attr, detach);
31808 if( status ) return status;
31809 status = pthread_create( &t, &attr, task, NULL );
31810 #if HAVE_PTHREADS < 7
31811 if( status < 0 ) status = errno;
31813 if( status ) return status;
31815 /* Draft 4 pthreads */
31816 status = pthread_create( &t, pthread_attr_default, task, NULL );
31817 if( status ) return errno;
31819 /* give thread a chance to complete */
31820 /* it should remain joinable and hence detachable */
31823 status = pthread_detach( &t );
31824 if( status ) return errno;
31827 #ifdef HAVE_LINUX_THREADS
31828 pthread_kill_other_threads_np();
31836 rm -f conftest$ac_exeext
31837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31838 (eval $ac_link) 2>&5
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31843 (eval $ac_try) 2>&5
31845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846 (exit $ac_status); }; }; then
31847 ol_cv_pthread_thread=yes
31849 echo "$as_me: program exited with status $ac_status" >&5
31850 echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31853 ( exit $ac_status )
31854 ol_cv_pthread_thread=no
31856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31863 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31864 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31866 if test $ol_cv_pthread_thread = yes ; then
31867 ol_link_pthreads="-thread"
31868 ol_link_threads=posix
31873 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31874 if test "$ol_link_threads" = no ; then
31875 # try -lpthread -lmach -lexc -lc_r
31876 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31877 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31878 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31879 echo $ECHO_N "(cached) $ECHO_C" >&6
31884 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31886 if test "$cross_compiling" = yes; then
31887 cat >conftest.$ac_ext <<_ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h. */
31894 /* pthread test headers */
31895 #include <pthread.h>
31896 #if HAVE_PTHREADS < 7
31900 #define NULL (void*)0
31903 static void *task(p)
31906 return (void *) (p == NULL);
31913 /* pthread test function */
31914 #ifndef PTHREAD_CREATE_DETACHED
31915 #define PTHREAD_CREATE_DETACHED 1
31919 int detach = PTHREAD_CREATE_DETACHED;
31921 #if HAVE_PTHREADS > 4
31922 /* Final pthreads */
31923 pthread_attr_t attr;
31925 status = pthread_attr_init(&attr);
31926 if( status ) return status;
31928 #if HAVE_PTHREADS < 7
31929 status = pthread_attr_setdetachstate(&attr, &detach);
31930 if( status < 0 ) status = errno;
31932 status = pthread_attr_setdetachstate(&attr, detach);
31934 if( status ) return status;
31935 status = pthread_create( &t, &attr, task, NULL );
31936 #if HAVE_PTHREADS < 7
31937 if( status < 0 ) status = errno;
31939 if( status ) return status;
31941 /* Draft 4 pthreads */
31942 status = pthread_create( &t, pthread_attr_default, task, NULL );
31943 if( status ) return errno;
31945 /* give thread a chance to complete */
31946 /* it should remain joinable and hence detachable */
31949 status = pthread_detach( &t );
31950 if( status ) return errno;
31953 #ifdef HAVE_LINUX_THREADS
31954 pthread_kill_other_threads_np();
31963 rm -f conftest.$ac_objext conftest$ac_exeext
31964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31965 (eval $ac_link) 2>conftest.er1
31967 grep -v '^ *+' conftest.er1 >conftest.err
31969 cat conftest.err >&5
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); } &&
31972 { ac_try='test -z "$ac_c_werror_flag"
31973 || test ! -s conftest.err'
31974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31975 (eval $ac_try) 2>&5
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; } &&
31979 { ac_try='test -s conftest$ac_exeext'
31980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31981 (eval $ac_try) 2>&5
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); }; }; then
31985 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31987 echo "$as_me: failed program was:" >&5
31988 sed 's/^/| /' conftest.$ac_ext >&5
31990 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31992 rm -f conftest.err conftest.$ac_objext \
31993 conftest$ac_exeext conftest.$ac_ext
31995 cat >conftest.$ac_ext <<_ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32002 /* pthread test headers */
32003 #include <pthread.h>
32004 #if HAVE_PTHREADS < 7
32008 #define NULL (void*)0
32011 static void *task(p)
32014 return (void *) (p == NULL);
32018 int main(argc, argv)
32023 /* pthread test function */
32024 #ifndef PTHREAD_CREATE_DETACHED
32025 #define PTHREAD_CREATE_DETACHED 1
32029 int detach = PTHREAD_CREATE_DETACHED;
32031 #if HAVE_PTHREADS > 4
32032 /* Final pthreads */
32033 pthread_attr_t attr;
32035 status = pthread_attr_init(&attr);
32036 if( status ) return status;
32038 #if HAVE_PTHREADS < 7
32039 status = pthread_attr_setdetachstate(&attr, &detach);
32040 if( status < 0 ) status = errno;
32042 status = pthread_attr_setdetachstate(&attr, detach);
32044 if( status ) return status;
32045 status = pthread_create( &t, &attr, task, NULL );
32046 #if HAVE_PTHREADS < 7
32047 if( status < 0 ) status = errno;
32049 if( status ) return status;
32051 /* Draft 4 pthreads */
32052 status = pthread_create( &t, pthread_attr_default, task, NULL );
32053 if( status ) return errno;
32055 /* give thread a chance to complete */
32056 /* it should remain joinable and hence detachable */
32059 status = pthread_detach( &t );
32060 if( status ) return errno;
32063 #ifdef HAVE_LINUX_THREADS
32064 pthread_kill_other_threads_np();
32072 rm -f conftest$ac_exeext
32073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32074 (eval $ac_link) 2>&5
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32079 (eval $ac_try) 2>&5
32081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082 (exit $ac_status); }; }; then
32083 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32085 echo "$as_me: program exited with status $ac_status" >&5
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32089 ( exit $ac_status )
32090 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32099 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32100 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32102 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32103 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32104 ol_link_threads=posix
32108 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32109 if test "$ol_link_threads" = no ; then
32110 # try -lpthread -lmach -lexc
32111 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32112 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32113 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32114 echo $ECHO_N "(cached) $ECHO_C" >&6
32119 LIBS="-lpthread -lmach -lexc $LIBS"
32121 if test "$cross_compiling" = yes; then
32122 cat >conftest.$ac_ext <<_ACEOF
32125 cat confdefs.h >>conftest.$ac_ext
32126 cat >>conftest.$ac_ext <<_ACEOF
32127 /* end confdefs.h. */
32129 /* pthread test headers */
32130 #include <pthread.h>
32131 #if HAVE_PTHREADS < 7
32135 #define NULL (void*)0
32138 static void *task(p)
32141 return (void *) (p == NULL);
32148 /* pthread test function */
32149 #ifndef PTHREAD_CREATE_DETACHED
32150 #define PTHREAD_CREATE_DETACHED 1
32154 int detach = PTHREAD_CREATE_DETACHED;
32156 #if HAVE_PTHREADS > 4
32157 /* Final pthreads */
32158 pthread_attr_t attr;
32160 status = pthread_attr_init(&attr);
32161 if( status ) return status;
32163 #if HAVE_PTHREADS < 7
32164 status = pthread_attr_setdetachstate(&attr, &detach);
32165 if( status < 0 ) status = errno;
32167 status = pthread_attr_setdetachstate(&attr, detach);
32169 if( status ) return status;
32170 status = pthread_create( &t, &attr, task, NULL );
32171 #if HAVE_PTHREADS < 7
32172 if( status < 0 ) status = errno;
32174 if( status ) return status;
32176 /* Draft 4 pthreads */
32177 status = pthread_create( &t, pthread_attr_default, task, NULL );
32178 if( status ) return errno;
32180 /* give thread a chance to complete */
32181 /* it should remain joinable and hence detachable */
32184 status = pthread_detach( &t );
32185 if( status ) return errno;
32188 #ifdef HAVE_LINUX_THREADS
32189 pthread_kill_other_threads_np();
32198 rm -f conftest.$ac_objext conftest$ac_exeext
32199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32200 (eval $ac_link) 2>conftest.er1
32202 grep -v '^ *+' conftest.er1 >conftest.err
32204 cat conftest.err >&5
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); } &&
32207 { ac_try='test -z "$ac_c_werror_flag"
32208 || test ! -s conftest.err'
32209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210 (eval $ac_try) 2>&5
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); }; } &&
32214 { ac_try='test -s conftest$ac_exeext'
32215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32216 (eval $ac_try) 2>&5
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; }; then
32220 ol_cv_pthread_lpthread_lmach_lexc=yes
32222 echo "$as_me: failed program was:" >&5
32223 sed 's/^/| /' conftest.$ac_ext >&5
32225 ol_cv_pthread_lpthread_lmach_lexc=no
32227 rm -f conftest.err conftest.$ac_objext \
32228 conftest$ac_exeext conftest.$ac_ext
32230 cat >conftest.$ac_ext <<_ACEOF
32233 cat confdefs.h >>conftest.$ac_ext
32234 cat >>conftest.$ac_ext <<_ACEOF
32235 /* end confdefs.h. */
32237 /* pthread test headers */
32238 #include <pthread.h>
32239 #if HAVE_PTHREADS < 7
32243 #define NULL (void*)0
32246 static void *task(p)
32249 return (void *) (p == NULL);
32253 int main(argc, argv)
32258 /* pthread test function */
32259 #ifndef PTHREAD_CREATE_DETACHED
32260 #define PTHREAD_CREATE_DETACHED 1
32264 int detach = PTHREAD_CREATE_DETACHED;
32266 #if HAVE_PTHREADS > 4
32267 /* Final pthreads */
32268 pthread_attr_t attr;
32270 status = pthread_attr_init(&attr);
32271 if( status ) return status;
32273 #if HAVE_PTHREADS < 7
32274 status = pthread_attr_setdetachstate(&attr, &detach);
32275 if( status < 0 ) status = errno;
32277 status = pthread_attr_setdetachstate(&attr, detach);
32279 if( status ) return status;
32280 status = pthread_create( &t, &attr, task, NULL );
32281 #if HAVE_PTHREADS < 7
32282 if( status < 0 ) status = errno;
32284 if( status ) return status;
32286 /* Draft 4 pthreads */
32287 status = pthread_create( &t, pthread_attr_default, task, NULL );
32288 if( status ) return errno;
32290 /* give thread a chance to complete */
32291 /* it should remain joinable and hence detachable */
32294 status = pthread_detach( &t );
32295 if( status ) return errno;
32298 #ifdef HAVE_LINUX_THREADS
32299 pthread_kill_other_threads_np();
32307 rm -f conftest$ac_exeext
32308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32309 (eval $ac_link) 2>&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314 (eval $ac_try) 2>&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
32318 ol_cv_pthread_lpthread_lmach_lexc=yes
32320 echo "$as_me: program exited with status $ac_status" >&5
32321 echo "$as_me: failed program was:" >&5
32322 sed 's/^/| /' conftest.$ac_ext >&5
32324 ( exit $ac_status )
32325 ol_cv_pthread_lpthread_lmach_lexc=no
32327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32334 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32335 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32337 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32338 ol_link_pthreads="-lpthread -lmach -lexc"
32339 ol_link_threads=posix
32344 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32345 if test "$ol_link_threads" = no ; then
32346 # try -lpthread -Wl,-woff,85
32347 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32348 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32349 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32350 echo $ECHO_N "(cached) $ECHO_C" >&6
32355 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32357 if test "$cross_compiling" = yes; then
32358 cat >conftest.$ac_ext <<_ACEOF
32361 cat confdefs.h >>conftest.$ac_ext
32362 cat >>conftest.$ac_ext <<_ACEOF
32363 /* end confdefs.h. */
32365 /* pthread test headers */
32366 #include <pthread.h>
32367 #if HAVE_PTHREADS < 7
32371 #define NULL (void*)0
32374 static void *task(p)
32377 return (void *) (p == NULL);
32384 /* pthread test function */
32385 #ifndef PTHREAD_CREATE_DETACHED
32386 #define PTHREAD_CREATE_DETACHED 1
32390 int detach = PTHREAD_CREATE_DETACHED;
32392 #if HAVE_PTHREADS > 4
32393 /* Final pthreads */
32394 pthread_attr_t attr;
32396 status = pthread_attr_init(&attr);
32397 if( status ) return status;
32399 #if HAVE_PTHREADS < 7
32400 status = pthread_attr_setdetachstate(&attr, &detach);
32401 if( status < 0 ) status = errno;
32403 status = pthread_attr_setdetachstate(&attr, detach);
32405 if( status ) return status;
32406 status = pthread_create( &t, &attr, task, NULL );
32407 #if HAVE_PTHREADS < 7
32408 if( status < 0 ) status = errno;
32410 if( status ) return status;
32412 /* Draft 4 pthreads */
32413 status = pthread_create( &t, pthread_attr_default, task, NULL );
32414 if( status ) return errno;
32416 /* give thread a chance to complete */
32417 /* it should remain joinable and hence detachable */
32420 status = pthread_detach( &t );
32421 if( status ) return errno;
32424 #ifdef HAVE_LINUX_THREADS
32425 pthread_kill_other_threads_np();
32434 rm -f conftest.$ac_objext conftest$ac_exeext
32435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32436 (eval $ac_link) 2>conftest.er1
32438 grep -v '^ *+' conftest.er1 >conftest.err
32440 cat conftest.err >&5
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); } &&
32443 { ac_try='test -z "$ac_c_werror_flag"
32444 || test ! -s conftest.err'
32445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32446 (eval $ac_try) 2>&5
32448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449 (exit $ac_status); }; } &&
32450 { ac_try='test -s conftest$ac_exeext'
32451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32452 (eval $ac_try) 2>&5
32454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455 (exit $ac_status); }; }; then
32456 ol_cv_pthread_lib_lpthread_woff=yes
32458 echo "$as_me: failed program was:" >&5
32459 sed 's/^/| /' conftest.$ac_ext >&5
32461 ol_cv_pthread_lib_lpthread_woff=no
32463 rm -f conftest.err conftest.$ac_objext \
32464 conftest$ac_exeext conftest.$ac_ext
32466 cat >conftest.$ac_ext <<_ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h. */
32473 /* pthread test headers */
32474 #include <pthread.h>
32475 #if HAVE_PTHREADS < 7
32479 #define NULL (void*)0
32482 static void *task(p)
32485 return (void *) (p == NULL);
32489 int main(argc, argv)
32494 /* pthread test function */
32495 #ifndef PTHREAD_CREATE_DETACHED
32496 #define PTHREAD_CREATE_DETACHED 1
32500 int detach = PTHREAD_CREATE_DETACHED;
32502 #if HAVE_PTHREADS > 4
32503 /* Final pthreads */
32504 pthread_attr_t attr;
32506 status = pthread_attr_init(&attr);
32507 if( status ) return status;
32509 #if HAVE_PTHREADS < 7
32510 status = pthread_attr_setdetachstate(&attr, &detach);
32511 if( status < 0 ) status = errno;
32513 status = pthread_attr_setdetachstate(&attr, detach);
32515 if( status ) return status;
32516 status = pthread_create( &t, &attr, task, NULL );
32517 #if HAVE_PTHREADS < 7
32518 if( status < 0 ) status = errno;
32520 if( status ) return status;
32522 /* Draft 4 pthreads */
32523 status = pthread_create( &t, pthread_attr_default, task, NULL );
32524 if( status ) return errno;
32526 /* give thread a chance to complete */
32527 /* it should remain joinable and hence detachable */
32530 status = pthread_detach( &t );
32531 if( status ) return errno;
32534 #ifdef HAVE_LINUX_THREADS
32535 pthread_kill_other_threads_np();
32543 rm -f conftest$ac_exeext
32544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32545 (eval $ac_link) 2>&5
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32550 (eval $ac_try) 2>&5
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); }; }; then
32554 ol_cv_pthread_lib_lpthread_woff=yes
32556 echo "$as_me: program exited with status $ac_status" >&5
32557 echo "$as_me: failed program was:" >&5
32558 sed 's/^/| /' conftest.$ac_ext >&5
32560 ( exit $ac_status )
32561 ol_cv_pthread_lib_lpthread_woff=no
32563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32570 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32571 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32573 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32574 ol_link_pthreads="-lpthread -Wl,-woff,85"
32575 ol_link_threads=posix
32580 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32581 if test "$ol_link_threads" = no ; then
32583 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32584 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32585 if test "${ol_cv_pthread_lpthread+set}" = set; then
32586 echo $ECHO_N "(cached) $ECHO_C" >&6
32591 LIBS="-lpthread $LIBS"
32593 if test "$cross_compiling" = yes; then
32594 cat >conftest.$ac_ext <<_ACEOF
32597 cat confdefs.h >>conftest.$ac_ext
32598 cat >>conftest.$ac_ext <<_ACEOF
32599 /* end confdefs.h. */
32601 /* pthread test headers */
32602 #include <pthread.h>
32603 #if HAVE_PTHREADS < 7
32607 #define NULL (void*)0
32610 static void *task(p)
32613 return (void *) (p == NULL);
32620 /* pthread test function */
32621 #ifndef PTHREAD_CREATE_DETACHED
32622 #define PTHREAD_CREATE_DETACHED 1
32626 int detach = PTHREAD_CREATE_DETACHED;
32628 #if HAVE_PTHREADS > 4
32629 /* Final pthreads */
32630 pthread_attr_t attr;
32632 status = pthread_attr_init(&attr);
32633 if( status ) return status;
32635 #if HAVE_PTHREADS < 7
32636 status = pthread_attr_setdetachstate(&attr, &detach);
32637 if( status < 0 ) status = errno;
32639 status = pthread_attr_setdetachstate(&attr, detach);
32641 if( status ) return status;
32642 status = pthread_create( &t, &attr, task, NULL );
32643 #if HAVE_PTHREADS < 7
32644 if( status < 0 ) status = errno;
32646 if( status ) return status;
32648 /* Draft 4 pthreads */
32649 status = pthread_create( &t, pthread_attr_default, task, NULL );
32650 if( status ) return errno;
32652 /* give thread a chance to complete */
32653 /* it should remain joinable and hence detachable */
32656 status = pthread_detach( &t );
32657 if( status ) return errno;
32660 #ifdef HAVE_LINUX_THREADS
32661 pthread_kill_other_threads_np();
32670 rm -f conftest.$ac_objext conftest$ac_exeext
32671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32672 (eval $ac_link) 2>conftest.er1
32674 grep -v '^ *+' conftest.er1 >conftest.err
32676 cat conftest.err >&5
32677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678 (exit $ac_status); } &&
32679 { ac_try='test -z "$ac_c_werror_flag"
32680 || test ! -s conftest.err'
32681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682 (eval $ac_try) 2>&5
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); }; } &&
32686 { ac_try='test -s conftest$ac_exeext'
32687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688 (eval $ac_try) 2>&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; }; then
32692 ol_cv_pthread_lpthread=yes
32694 echo "$as_me: failed program was:" >&5
32695 sed 's/^/| /' conftest.$ac_ext >&5
32697 ol_cv_pthread_lpthread=no
32699 rm -f conftest.err conftest.$ac_objext \
32700 conftest$ac_exeext conftest.$ac_ext
32702 cat >conftest.$ac_ext <<_ACEOF
32705 cat confdefs.h >>conftest.$ac_ext
32706 cat >>conftest.$ac_ext <<_ACEOF
32707 /* end confdefs.h. */
32709 /* pthread test headers */
32710 #include <pthread.h>
32711 #if HAVE_PTHREADS < 7
32715 #define NULL (void*)0
32718 static void *task(p)
32721 return (void *) (p == NULL);
32725 int main(argc, argv)
32730 /* pthread test function */
32731 #ifndef PTHREAD_CREATE_DETACHED
32732 #define PTHREAD_CREATE_DETACHED 1
32736 int detach = PTHREAD_CREATE_DETACHED;
32738 #if HAVE_PTHREADS > 4
32739 /* Final pthreads */
32740 pthread_attr_t attr;
32742 status = pthread_attr_init(&attr);
32743 if( status ) return status;
32745 #if HAVE_PTHREADS < 7
32746 status = pthread_attr_setdetachstate(&attr, &detach);
32747 if( status < 0 ) status = errno;
32749 status = pthread_attr_setdetachstate(&attr, detach);
32751 if( status ) return status;
32752 status = pthread_create( &t, &attr, task, NULL );
32753 #if HAVE_PTHREADS < 7
32754 if( status < 0 ) status = errno;
32756 if( status ) return status;
32758 /* Draft 4 pthreads */
32759 status = pthread_create( &t, pthread_attr_default, task, NULL );
32760 if( status ) return errno;
32762 /* give thread a chance to complete */
32763 /* it should remain joinable and hence detachable */
32766 status = pthread_detach( &t );
32767 if( status ) return errno;
32770 #ifdef HAVE_LINUX_THREADS
32771 pthread_kill_other_threads_np();
32779 rm -f conftest$ac_exeext
32780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32781 (eval $ac_link) 2>&5
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32786 (eval $ac_try) 2>&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); }; }; then
32790 ol_cv_pthread_lpthread=yes
32792 echo "$as_me: program exited with status $ac_status" >&5
32793 echo "$as_me: failed program was:" >&5
32794 sed 's/^/| /' conftest.$ac_ext >&5
32796 ( exit $ac_status )
32797 ol_cv_pthread_lpthread=no
32799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32806 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32807 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32809 if test $ol_cv_pthread_lpthread = yes ; then
32810 ol_link_pthreads="-lpthread"
32811 ol_link_threads=posix
32815 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32816 if test "$ol_link_threads" = no ; then
32818 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32819 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32820 if test "${ol_cv_pthread_lc_r+set}" = set; then
32821 echo $ECHO_N "(cached) $ECHO_C" >&6
32828 if test "$cross_compiling" = yes; then
32829 cat >conftest.$ac_ext <<_ACEOF
32832 cat confdefs.h >>conftest.$ac_ext
32833 cat >>conftest.$ac_ext <<_ACEOF
32834 /* end confdefs.h. */
32836 /* pthread test headers */
32837 #include <pthread.h>
32838 #if HAVE_PTHREADS < 7
32842 #define NULL (void*)0
32845 static void *task(p)
32848 return (void *) (p == NULL);
32855 /* pthread test function */
32856 #ifndef PTHREAD_CREATE_DETACHED
32857 #define PTHREAD_CREATE_DETACHED 1
32861 int detach = PTHREAD_CREATE_DETACHED;
32863 #if HAVE_PTHREADS > 4
32864 /* Final pthreads */
32865 pthread_attr_t attr;
32867 status = pthread_attr_init(&attr);
32868 if( status ) return status;
32870 #if HAVE_PTHREADS < 7
32871 status = pthread_attr_setdetachstate(&attr, &detach);
32872 if( status < 0 ) status = errno;
32874 status = pthread_attr_setdetachstate(&attr, detach);
32876 if( status ) return status;
32877 status = pthread_create( &t, &attr, task, NULL );
32878 #if HAVE_PTHREADS < 7
32879 if( status < 0 ) status = errno;
32881 if( status ) return status;
32883 /* Draft 4 pthreads */
32884 status = pthread_create( &t, pthread_attr_default, task, NULL );
32885 if( status ) return errno;
32887 /* give thread a chance to complete */
32888 /* it should remain joinable and hence detachable */
32891 status = pthread_detach( &t );
32892 if( status ) return errno;
32895 #ifdef HAVE_LINUX_THREADS
32896 pthread_kill_other_threads_np();
32905 rm -f conftest.$ac_objext conftest$ac_exeext
32906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32907 (eval $ac_link) 2>conftest.er1
32909 grep -v '^ *+' conftest.er1 >conftest.err
32911 cat conftest.err >&5
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); } &&
32914 { ac_try='test -z "$ac_c_werror_flag"
32915 || test ! -s conftest.err'
32916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917 (eval $ac_try) 2>&5
32919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920 (exit $ac_status); }; } &&
32921 { ac_try='test -s conftest$ac_exeext'
32922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923 (eval $ac_try) 2>&5
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); }; }; then
32927 ol_cv_pthread_lc_r=yes
32929 echo "$as_me: failed program was:" >&5
32930 sed 's/^/| /' conftest.$ac_ext >&5
32932 ol_cv_pthread_lc_r=no
32934 rm -f conftest.err conftest.$ac_objext \
32935 conftest$ac_exeext conftest.$ac_ext
32937 cat >conftest.$ac_ext <<_ACEOF
32940 cat confdefs.h >>conftest.$ac_ext
32941 cat >>conftest.$ac_ext <<_ACEOF
32942 /* end confdefs.h. */
32944 /* pthread test headers */
32945 #include <pthread.h>
32946 #if HAVE_PTHREADS < 7
32950 #define NULL (void*)0
32953 static void *task(p)
32956 return (void *) (p == NULL);
32960 int main(argc, argv)
32965 /* pthread test function */
32966 #ifndef PTHREAD_CREATE_DETACHED
32967 #define PTHREAD_CREATE_DETACHED 1
32971 int detach = PTHREAD_CREATE_DETACHED;
32973 #if HAVE_PTHREADS > 4
32974 /* Final pthreads */
32975 pthread_attr_t attr;
32977 status = pthread_attr_init(&attr);
32978 if( status ) return status;
32980 #if HAVE_PTHREADS < 7
32981 status = pthread_attr_setdetachstate(&attr, &detach);
32982 if( status < 0 ) status = errno;
32984 status = pthread_attr_setdetachstate(&attr, detach);
32986 if( status ) return status;
32987 status = pthread_create( &t, &attr, task, NULL );
32988 #if HAVE_PTHREADS < 7
32989 if( status < 0 ) status = errno;
32991 if( status ) return status;
32993 /* Draft 4 pthreads */
32994 status = pthread_create( &t, pthread_attr_default, task, NULL );
32995 if( status ) return errno;
32997 /* give thread a chance to complete */
32998 /* it should remain joinable and hence detachable */
33001 status = pthread_detach( &t );
33002 if( status ) return errno;
33005 #ifdef HAVE_LINUX_THREADS
33006 pthread_kill_other_threads_np();
33014 rm -f conftest$ac_exeext
33015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33016 (eval $ac_link) 2>&5
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33021 (eval $ac_try) 2>&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; }; then
33025 ol_cv_pthread_lc_r=yes
33027 echo "$as_me: program exited with status $ac_status" >&5
33028 echo "$as_me: failed program was:" >&5
33029 sed 's/^/| /' conftest.$ac_ext >&5
33031 ( exit $ac_status )
33032 ol_cv_pthread_lc_r=no
33034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33041 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33042 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33044 if test $ol_cv_pthread_lc_r = yes ; then
33045 ol_link_pthreads="-lc_r"
33046 ol_link_threads=posix
33051 # Pthread try link: -threads (ol_cv_pthread_threads)
33052 if test "$ol_link_threads" = no ; then
33054 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33055 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33056 if test "${ol_cv_pthread_threads+set}" = set; then
33057 echo $ECHO_N "(cached) $ECHO_C" >&6
33062 LIBS="-threads $LIBS"
33064 if test "$cross_compiling" = yes; then
33065 cat >conftest.$ac_ext <<_ACEOF
33068 cat confdefs.h >>conftest.$ac_ext
33069 cat >>conftest.$ac_ext <<_ACEOF
33070 /* end confdefs.h. */
33072 /* pthread test headers */
33073 #include <pthread.h>
33074 #if HAVE_PTHREADS < 7
33078 #define NULL (void*)0
33081 static void *task(p)
33084 return (void *) (p == NULL);
33091 /* pthread test function */
33092 #ifndef PTHREAD_CREATE_DETACHED
33093 #define PTHREAD_CREATE_DETACHED 1
33097 int detach = PTHREAD_CREATE_DETACHED;
33099 #if HAVE_PTHREADS > 4
33100 /* Final pthreads */
33101 pthread_attr_t attr;
33103 status = pthread_attr_init(&attr);
33104 if( status ) return status;
33106 #if HAVE_PTHREADS < 7
33107 status = pthread_attr_setdetachstate(&attr, &detach);
33108 if( status < 0 ) status = errno;
33110 status = pthread_attr_setdetachstate(&attr, detach);
33112 if( status ) return status;
33113 status = pthread_create( &t, &attr, task, NULL );
33114 #if HAVE_PTHREADS < 7
33115 if( status < 0 ) status = errno;
33117 if( status ) return status;
33119 /* Draft 4 pthreads */
33120 status = pthread_create( &t, pthread_attr_default, task, NULL );
33121 if( status ) return errno;
33123 /* give thread a chance to complete */
33124 /* it should remain joinable and hence detachable */
33127 status = pthread_detach( &t );
33128 if( status ) return errno;
33131 #ifdef HAVE_LINUX_THREADS
33132 pthread_kill_other_threads_np();
33141 rm -f conftest.$ac_objext conftest$ac_exeext
33142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33143 (eval $ac_link) 2>conftest.er1
33145 grep -v '^ *+' conftest.er1 >conftest.err
33147 cat conftest.err >&5
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); } &&
33150 { ac_try='test -z "$ac_c_werror_flag"
33151 || test ! -s conftest.err'
33152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33153 (eval $ac_try) 2>&5
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; } &&
33157 { ac_try='test -s conftest$ac_exeext'
33158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33159 (eval $ac_try) 2>&5
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; }; then
33163 ol_cv_pthread_threads=yes
33165 echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33168 ol_cv_pthread_threads=no
33170 rm -f conftest.err conftest.$ac_objext \
33171 conftest$ac_exeext conftest.$ac_ext
33173 cat >conftest.$ac_ext <<_ACEOF
33176 cat confdefs.h >>conftest.$ac_ext
33177 cat >>conftest.$ac_ext <<_ACEOF
33178 /* end confdefs.h. */
33180 /* pthread test headers */
33181 #include <pthread.h>
33182 #if HAVE_PTHREADS < 7
33186 #define NULL (void*)0
33189 static void *task(p)
33192 return (void *) (p == NULL);
33196 int main(argc, argv)
33201 /* pthread test function */
33202 #ifndef PTHREAD_CREATE_DETACHED
33203 #define PTHREAD_CREATE_DETACHED 1
33207 int detach = PTHREAD_CREATE_DETACHED;
33209 #if HAVE_PTHREADS > 4
33210 /* Final pthreads */
33211 pthread_attr_t attr;
33213 status = pthread_attr_init(&attr);
33214 if( status ) return status;
33216 #if HAVE_PTHREADS < 7
33217 status = pthread_attr_setdetachstate(&attr, &detach);
33218 if( status < 0 ) status = errno;
33220 status = pthread_attr_setdetachstate(&attr, detach);
33222 if( status ) return status;
33223 status = pthread_create( &t, &attr, task, NULL );
33224 #if HAVE_PTHREADS < 7
33225 if( status < 0 ) status = errno;
33227 if( status ) return status;
33229 /* Draft 4 pthreads */
33230 status = pthread_create( &t, pthread_attr_default, task, NULL );
33231 if( status ) return errno;
33233 /* give thread a chance to complete */
33234 /* it should remain joinable and hence detachable */
33237 status = pthread_detach( &t );
33238 if( status ) return errno;
33241 #ifdef HAVE_LINUX_THREADS
33242 pthread_kill_other_threads_np();
33250 rm -f conftest$ac_exeext
33251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33252 (eval $ac_link) 2>&5
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33257 (eval $ac_try) 2>&5
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); }; }; then
33261 ol_cv_pthread_threads=yes
33263 echo "$as_me: program exited with status $ac_status" >&5
33264 echo "$as_me: failed program was:" >&5
33265 sed 's/^/| /' conftest.$ac_ext >&5
33267 ( exit $ac_status )
33268 ol_cv_pthread_threads=no
33270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33277 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33278 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33280 if test $ol_cv_pthread_threads = yes ; then
33281 ol_link_pthreads="-threads"
33282 ol_link_threads=posix
33287 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33288 if test "$ol_link_threads" = no ; then
33289 # try -lpthreads -lmach -lexc -lc_r
33290 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33291 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33292 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33293 echo $ECHO_N "(cached) $ECHO_C" >&6
33298 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33300 if test "$cross_compiling" = yes; then
33301 cat >conftest.$ac_ext <<_ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h. */
33308 /* pthread test headers */
33309 #include <pthread.h>
33310 #if HAVE_PTHREADS < 7
33314 #define NULL (void*)0
33317 static void *task(p)
33320 return (void *) (p == NULL);
33327 /* pthread test function */
33328 #ifndef PTHREAD_CREATE_DETACHED
33329 #define PTHREAD_CREATE_DETACHED 1
33333 int detach = PTHREAD_CREATE_DETACHED;
33335 #if HAVE_PTHREADS > 4
33336 /* Final pthreads */
33337 pthread_attr_t attr;
33339 status = pthread_attr_init(&attr);
33340 if( status ) return status;
33342 #if HAVE_PTHREADS < 7
33343 status = pthread_attr_setdetachstate(&attr, &detach);
33344 if( status < 0 ) status = errno;
33346 status = pthread_attr_setdetachstate(&attr, detach);
33348 if( status ) return status;
33349 status = pthread_create( &t, &attr, task, NULL );
33350 #if HAVE_PTHREADS < 7
33351 if( status < 0 ) status = errno;
33353 if( status ) return status;
33355 /* Draft 4 pthreads */
33356 status = pthread_create( &t, pthread_attr_default, task, NULL );
33357 if( status ) return errno;
33359 /* give thread a chance to complete */
33360 /* it should remain joinable and hence detachable */
33363 status = pthread_detach( &t );
33364 if( status ) return errno;
33367 #ifdef HAVE_LINUX_THREADS
33368 pthread_kill_other_threads_np();
33377 rm -f conftest.$ac_objext conftest$ac_exeext
33378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33379 (eval $ac_link) 2>conftest.er1
33381 grep -v '^ *+' conftest.er1 >conftest.err
33383 cat conftest.err >&5
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); } &&
33386 { ac_try='test -z "$ac_c_werror_flag"
33387 || test ! -s conftest.err'
33388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389 (eval $ac_try) 2>&5
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); }; } &&
33393 { ac_try='test -s conftest$ac_exeext'
33394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395 (eval $ac_try) 2>&5
33397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398 (exit $ac_status); }; }; then
33399 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33401 echo "$as_me: failed program was:" >&5
33402 sed 's/^/| /' conftest.$ac_ext >&5
33404 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33406 rm -f conftest.err conftest.$ac_objext \
33407 conftest$ac_exeext conftest.$ac_ext
33409 cat >conftest.$ac_ext <<_ACEOF
33412 cat confdefs.h >>conftest.$ac_ext
33413 cat >>conftest.$ac_ext <<_ACEOF
33414 /* end confdefs.h. */
33416 /* pthread test headers */
33417 #include <pthread.h>
33418 #if HAVE_PTHREADS < 7
33422 #define NULL (void*)0
33425 static void *task(p)
33428 return (void *) (p == NULL);
33432 int main(argc, argv)
33437 /* pthread test function */
33438 #ifndef PTHREAD_CREATE_DETACHED
33439 #define PTHREAD_CREATE_DETACHED 1
33443 int detach = PTHREAD_CREATE_DETACHED;
33445 #if HAVE_PTHREADS > 4
33446 /* Final pthreads */
33447 pthread_attr_t attr;
33449 status = pthread_attr_init(&attr);
33450 if( status ) return status;
33452 #if HAVE_PTHREADS < 7
33453 status = pthread_attr_setdetachstate(&attr, &detach);
33454 if( status < 0 ) status = errno;
33456 status = pthread_attr_setdetachstate(&attr, detach);
33458 if( status ) return status;
33459 status = pthread_create( &t, &attr, task, NULL );
33460 #if HAVE_PTHREADS < 7
33461 if( status < 0 ) status = errno;
33463 if( status ) return status;
33465 /* Draft 4 pthreads */
33466 status = pthread_create( &t, pthread_attr_default, task, NULL );
33467 if( status ) return errno;
33469 /* give thread a chance to complete */
33470 /* it should remain joinable and hence detachable */
33473 status = pthread_detach( &t );
33474 if( status ) return errno;
33477 #ifdef HAVE_LINUX_THREADS
33478 pthread_kill_other_threads_np();
33486 rm -f conftest$ac_exeext
33487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33488 (eval $ac_link) 2>&5
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33493 (eval $ac_try) 2>&5
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); }; }; then
33497 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33499 echo "$as_me: program exited with status $ac_status" >&5
33500 echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.$ac_ext >&5
33503 ( exit $ac_status )
33504 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33513 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33514 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33516 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33517 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33518 ol_link_threads=posix
33522 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33523 if test "$ol_link_threads" = no ; then
33524 # try -lpthreads -lmach -lexc
33525 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33526 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33527 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33533 LIBS="-lpthreads -lmach -lexc $LIBS"
33535 if test "$cross_compiling" = yes; then
33536 cat >conftest.$ac_ext <<_ACEOF
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h. */
33543 /* pthread test headers */
33544 #include <pthread.h>
33545 #if HAVE_PTHREADS < 7
33549 #define NULL (void*)0
33552 static void *task(p)
33555 return (void *) (p == NULL);
33562 /* pthread test function */
33563 #ifndef PTHREAD_CREATE_DETACHED
33564 #define PTHREAD_CREATE_DETACHED 1
33568 int detach = PTHREAD_CREATE_DETACHED;
33570 #if HAVE_PTHREADS > 4
33571 /* Final pthreads */
33572 pthread_attr_t attr;
33574 status = pthread_attr_init(&attr);
33575 if( status ) return status;
33577 #if HAVE_PTHREADS < 7
33578 status = pthread_attr_setdetachstate(&attr, &detach);
33579 if( status < 0 ) status = errno;
33581 status = pthread_attr_setdetachstate(&attr, detach);
33583 if( status ) return status;
33584 status = pthread_create( &t, &attr, task, NULL );
33585 #if HAVE_PTHREADS < 7
33586 if( status < 0 ) status = errno;
33588 if( status ) return status;
33590 /* Draft 4 pthreads */
33591 status = pthread_create( &t, pthread_attr_default, task, NULL );
33592 if( status ) return errno;
33594 /* give thread a chance to complete */
33595 /* it should remain joinable and hence detachable */
33598 status = pthread_detach( &t );
33599 if( status ) return errno;
33602 #ifdef HAVE_LINUX_THREADS
33603 pthread_kill_other_threads_np();
33612 rm -f conftest.$ac_objext conftest$ac_exeext
33613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33614 (eval $ac_link) 2>conftest.er1
33616 grep -v '^ *+' conftest.er1 >conftest.err
33618 cat conftest.err >&5
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); } &&
33621 { ac_try='test -z "$ac_c_werror_flag"
33622 || test ! -s conftest.err'
33623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33624 (eval $ac_try) 2>&5
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; } &&
33628 { ac_try='test -s conftest$ac_exeext'
33629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33630 (eval $ac_try) 2>&5
33632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633 (exit $ac_status); }; }; then
33634 ol_cv_pthread_lpthreads_lmach_lexc=yes
33636 echo "$as_me: failed program was:" >&5
33637 sed 's/^/| /' conftest.$ac_ext >&5
33639 ol_cv_pthread_lpthreads_lmach_lexc=no
33641 rm -f conftest.err conftest.$ac_objext \
33642 conftest$ac_exeext conftest.$ac_ext
33644 cat >conftest.$ac_ext <<_ACEOF
33647 cat confdefs.h >>conftest.$ac_ext
33648 cat >>conftest.$ac_ext <<_ACEOF
33649 /* end confdefs.h. */
33651 /* pthread test headers */
33652 #include <pthread.h>
33653 #if HAVE_PTHREADS < 7
33657 #define NULL (void*)0
33660 static void *task(p)
33663 return (void *) (p == NULL);
33667 int main(argc, argv)
33672 /* pthread test function */
33673 #ifndef PTHREAD_CREATE_DETACHED
33674 #define PTHREAD_CREATE_DETACHED 1
33678 int detach = PTHREAD_CREATE_DETACHED;
33680 #if HAVE_PTHREADS > 4
33681 /* Final pthreads */
33682 pthread_attr_t attr;
33684 status = pthread_attr_init(&attr);
33685 if( status ) return status;
33687 #if HAVE_PTHREADS < 7
33688 status = pthread_attr_setdetachstate(&attr, &detach);
33689 if( status < 0 ) status = errno;
33691 status = pthread_attr_setdetachstate(&attr, detach);
33693 if( status ) return status;
33694 status = pthread_create( &t, &attr, task, NULL );
33695 #if HAVE_PTHREADS < 7
33696 if( status < 0 ) status = errno;
33698 if( status ) return status;
33700 /* Draft 4 pthreads */
33701 status = pthread_create( &t, pthread_attr_default, task, NULL );
33702 if( status ) return errno;
33704 /* give thread a chance to complete */
33705 /* it should remain joinable and hence detachable */
33708 status = pthread_detach( &t );
33709 if( status ) return errno;
33712 #ifdef HAVE_LINUX_THREADS
33713 pthread_kill_other_threads_np();
33721 rm -f conftest$ac_exeext
33722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33723 (eval $ac_link) 2>&5
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728 (eval $ac_try) 2>&5
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; }; then
33732 ol_cv_pthread_lpthreads_lmach_lexc=yes
33734 echo "$as_me: program exited with status $ac_status" >&5
33735 echo "$as_me: failed program was:" >&5
33736 sed 's/^/| /' conftest.$ac_ext >&5
33738 ( exit $ac_status )
33739 ol_cv_pthread_lpthreads_lmach_lexc=no
33741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33748 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33749 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33751 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33752 ol_link_pthreads="-lpthreads -lmach -lexc"
33753 ol_link_threads=posix
33757 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33758 if test "$ol_link_threads" = no ; then
33759 # try -lpthreads -lexc
33760 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33761 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33762 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33763 echo $ECHO_N "(cached) $ECHO_C" >&6
33768 LIBS="-lpthreads -lexc $LIBS"
33770 if test "$cross_compiling" = yes; then
33771 cat >conftest.$ac_ext <<_ACEOF
33774 cat confdefs.h >>conftest.$ac_ext
33775 cat >>conftest.$ac_ext <<_ACEOF
33776 /* end confdefs.h. */
33778 /* pthread test headers */
33779 #include <pthread.h>
33780 #if HAVE_PTHREADS < 7
33784 #define NULL (void*)0
33787 static void *task(p)
33790 return (void *) (p == NULL);
33797 /* pthread test function */
33798 #ifndef PTHREAD_CREATE_DETACHED
33799 #define PTHREAD_CREATE_DETACHED 1
33803 int detach = PTHREAD_CREATE_DETACHED;
33805 #if HAVE_PTHREADS > 4
33806 /* Final pthreads */
33807 pthread_attr_t attr;
33809 status = pthread_attr_init(&attr);
33810 if( status ) return status;
33812 #if HAVE_PTHREADS < 7
33813 status = pthread_attr_setdetachstate(&attr, &detach);
33814 if( status < 0 ) status = errno;
33816 status = pthread_attr_setdetachstate(&attr, detach);
33818 if( status ) return status;
33819 status = pthread_create( &t, &attr, task, NULL );
33820 #if HAVE_PTHREADS < 7
33821 if( status < 0 ) status = errno;
33823 if( status ) return status;
33825 /* Draft 4 pthreads */
33826 status = pthread_create( &t, pthread_attr_default, task, NULL );
33827 if( status ) return errno;
33829 /* give thread a chance to complete */
33830 /* it should remain joinable and hence detachable */
33833 status = pthread_detach( &t );
33834 if( status ) return errno;
33837 #ifdef HAVE_LINUX_THREADS
33838 pthread_kill_other_threads_np();
33847 rm -f conftest.$ac_objext conftest$ac_exeext
33848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33849 (eval $ac_link) 2>conftest.er1
33851 grep -v '^ *+' conftest.er1 >conftest.err
33853 cat conftest.err >&5
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); } &&
33856 { ac_try='test -z "$ac_c_werror_flag"
33857 || test ! -s conftest.err'
33858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33859 (eval $ac_try) 2>&5
33861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862 (exit $ac_status); }; } &&
33863 { ac_try='test -s conftest$ac_exeext'
33864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865 (eval $ac_try) 2>&5
33867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868 (exit $ac_status); }; }; then
33869 ol_cv_pthread_lpthreads_lexc=yes
33871 echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33874 ol_cv_pthread_lpthreads_lexc=no
33876 rm -f conftest.err conftest.$ac_objext \
33877 conftest$ac_exeext conftest.$ac_ext
33879 cat >conftest.$ac_ext <<_ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h. */
33886 /* pthread test headers */
33887 #include <pthread.h>
33888 #if HAVE_PTHREADS < 7
33892 #define NULL (void*)0
33895 static void *task(p)
33898 return (void *) (p == NULL);
33902 int main(argc, argv)
33907 /* pthread test function */
33908 #ifndef PTHREAD_CREATE_DETACHED
33909 #define PTHREAD_CREATE_DETACHED 1
33913 int detach = PTHREAD_CREATE_DETACHED;
33915 #if HAVE_PTHREADS > 4
33916 /* Final pthreads */
33917 pthread_attr_t attr;
33919 status = pthread_attr_init(&attr);
33920 if( status ) return status;
33922 #if HAVE_PTHREADS < 7
33923 status = pthread_attr_setdetachstate(&attr, &detach);
33924 if( status < 0 ) status = errno;
33926 status = pthread_attr_setdetachstate(&attr, detach);
33928 if( status ) return status;
33929 status = pthread_create( &t, &attr, task, NULL );
33930 #if HAVE_PTHREADS < 7
33931 if( status < 0 ) status = errno;
33933 if( status ) return status;
33935 /* Draft 4 pthreads */
33936 status = pthread_create( &t, pthread_attr_default, task, NULL );
33937 if( status ) return errno;
33939 /* give thread a chance to complete */
33940 /* it should remain joinable and hence detachable */
33943 status = pthread_detach( &t );
33944 if( status ) return errno;
33947 #ifdef HAVE_LINUX_THREADS
33948 pthread_kill_other_threads_np();
33956 rm -f conftest$ac_exeext
33957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33958 (eval $ac_link) 2>&5
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33963 (eval $ac_try) 2>&5
33965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966 (exit $ac_status); }; }; then
33967 ol_cv_pthread_lpthreads_lexc=yes
33969 echo "$as_me: program exited with status $ac_status" >&5
33970 echo "$as_me: failed program was:" >&5
33971 sed 's/^/| /' conftest.$ac_ext >&5
33973 ( exit $ac_status )
33974 ol_cv_pthread_lpthreads_lexc=no
33976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33983 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33984 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33986 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33987 ol_link_pthreads="-lpthreads -lexc"
33988 ol_link_threads=posix
33993 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33994 if test "$ol_link_threads" = no ; then
33996 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33997 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33998 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33999 echo $ECHO_N "(cached) $ECHO_C" >&6
34004 LIBS="-lpthreads $LIBS"
34006 if test "$cross_compiling" = yes; then
34007 cat >conftest.$ac_ext <<_ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h. */
34014 /* pthread test headers */
34015 #include <pthread.h>
34016 #if HAVE_PTHREADS < 7
34020 #define NULL (void*)0
34023 static void *task(p)
34026 return (void *) (p == NULL);
34033 /* pthread test function */
34034 #ifndef PTHREAD_CREATE_DETACHED
34035 #define PTHREAD_CREATE_DETACHED 1
34039 int detach = PTHREAD_CREATE_DETACHED;
34041 #if HAVE_PTHREADS > 4
34042 /* Final pthreads */
34043 pthread_attr_t attr;
34045 status = pthread_attr_init(&attr);
34046 if( status ) return status;
34048 #if HAVE_PTHREADS < 7
34049 status = pthread_attr_setdetachstate(&attr, &detach);
34050 if( status < 0 ) status = errno;
34052 status = pthread_attr_setdetachstate(&attr, detach);
34054 if( status ) return status;
34055 status = pthread_create( &t, &attr, task, NULL );
34056 #if HAVE_PTHREADS < 7
34057 if( status < 0 ) status = errno;
34059 if( status ) return status;
34061 /* Draft 4 pthreads */
34062 status = pthread_create( &t, pthread_attr_default, task, NULL );
34063 if( status ) return errno;
34065 /* give thread a chance to complete */
34066 /* it should remain joinable and hence detachable */
34069 status = pthread_detach( &t );
34070 if( status ) return errno;
34073 #ifdef HAVE_LINUX_THREADS
34074 pthread_kill_other_threads_np();
34083 rm -f conftest.$ac_objext conftest$ac_exeext
34084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34085 (eval $ac_link) 2>conftest.er1
34087 grep -v '^ *+' conftest.er1 >conftest.err
34089 cat conftest.err >&5
34090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091 (exit $ac_status); } &&
34092 { ac_try='test -z "$ac_c_werror_flag"
34093 || test ! -s conftest.err'
34094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34095 (eval $ac_try) 2>&5
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); }; } &&
34099 { ac_try='test -s conftest$ac_exeext'
34100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34101 (eval $ac_try) 2>&5
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 (exit $ac_status); }; }; then
34105 ol_cv_pthread_lib_lpthreads=yes
34107 echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.$ac_ext >&5
34110 ol_cv_pthread_lib_lpthreads=no
34112 rm -f conftest.err conftest.$ac_objext \
34113 conftest$ac_exeext conftest.$ac_ext
34115 cat >conftest.$ac_ext <<_ACEOF
34118 cat confdefs.h >>conftest.$ac_ext
34119 cat >>conftest.$ac_ext <<_ACEOF
34120 /* end confdefs.h. */
34122 /* pthread test headers */
34123 #include <pthread.h>
34124 #if HAVE_PTHREADS < 7
34128 #define NULL (void*)0
34131 static void *task(p)
34134 return (void *) (p == NULL);
34138 int main(argc, argv)
34143 /* pthread test function */
34144 #ifndef PTHREAD_CREATE_DETACHED
34145 #define PTHREAD_CREATE_DETACHED 1
34149 int detach = PTHREAD_CREATE_DETACHED;
34151 #if HAVE_PTHREADS > 4
34152 /* Final pthreads */
34153 pthread_attr_t attr;
34155 status = pthread_attr_init(&attr);
34156 if( status ) return status;
34158 #if HAVE_PTHREADS < 7
34159 status = pthread_attr_setdetachstate(&attr, &detach);
34160 if( status < 0 ) status = errno;
34162 status = pthread_attr_setdetachstate(&attr, detach);
34164 if( status ) return status;
34165 status = pthread_create( &t, &attr, task, NULL );
34166 #if HAVE_PTHREADS < 7
34167 if( status < 0 ) status = errno;
34169 if( status ) return status;
34171 /* Draft 4 pthreads */
34172 status = pthread_create( &t, pthread_attr_default, task, NULL );
34173 if( status ) return errno;
34175 /* give thread a chance to complete */
34176 /* it should remain joinable and hence detachable */
34179 status = pthread_detach( &t );
34180 if( status ) return errno;
34183 #ifdef HAVE_LINUX_THREADS
34184 pthread_kill_other_threads_np();
34192 rm -f conftest$ac_exeext
34193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34194 (eval $ac_link) 2>&5
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34199 (eval $ac_try) 2>&5
34201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202 (exit $ac_status); }; }; then
34203 ol_cv_pthread_lib_lpthreads=yes
34205 echo "$as_me: program exited with status $ac_status" >&5
34206 echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34209 ( exit $ac_status )
34210 ol_cv_pthread_lib_lpthreads=no
34212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34219 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34220 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34222 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34223 ol_link_pthreads="-lpthreads"
34224 ol_link_threads=posix
34229 if test $ol_link_threads != no ; then
34230 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34232 save_CPPFLAGS="$CPPFLAGS"
34234 LIBS="$LTHREAD_LIBS $LIBS"
34239 for ac_func in sched_yield pthread_yield thr_yield
34241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34242 echo "$as_me:$LINENO: checking for $ac_func" >&5
34243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34244 if eval "test \"\${$as_ac_var+set}\" = set"; then
34245 echo $ECHO_N "(cached) $ECHO_C" >&6
34247 cat >conftest.$ac_ext <<_ACEOF
34250 cat confdefs.h >>conftest.$ac_ext
34251 cat >>conftest.$ac_ext <<_ACEOF
34252 /* end confdefs.h. */
34253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34255 #define $ac_func innocuous_$ac_func
34257 /* System header to define __stub macros and hopefully few prototypes,
34258 which can conflict with char $ac_func (); below.
34259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34260 <limits.h> exists even on freestanding compilers. */
34263 # include <limits.h>
34265 # include <assert.h>
34270 /* Override any gcc2 internal prototype to avoid an error. */
34275 /* We use char because int might match the return type of a gcc2
34276 builtin and then its argument prototype would still apply. */
34278 /* The GNU C library defines this for functions which it implements
34279 to always fail with ENOSYS. Some functions are actually named
34280 something starting with __ and the normal name is an alias. */
34281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34284 char (*f) () = $ac_func;
34293 return f != $ac_func;
34298 rm -f conftest.$ac_objext conftest$ac_exeext
34299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34300 (eval $ac_link) 2>conftest.er1
34302 grep -v '^ *+' conftest.er1 >conftest.err
34304 cat conftest.err >&5
34305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306 (exit $ac_status); } &&
34307 { ac_try='test -z "$ac_c_werror_flag"
34308 || test ! -s conftest.err'
34309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34310 (eval $ac_try) 2>&5
34312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313 (exit $ac_status); }; } &&
34314 { ac_try='test -s conftest$ac_exeext'
34315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34316 (eval $ac_try) 2>&5
34318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319 (exit $ac_status); }; }; then
34320 eval "$as_ac_var=yes"
34322 echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34325 eval "$as_ac_var=no"
34327 rm -f conftest.err conftest.$ac_objext \
34328 conftest$ac_exeext conftest.$ac_ext
34330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34332 if test `eval echo '${'$as_ac_var'}'` = yes; then
34333 cat >>confdefs.h <<_ACEOF
34334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34341 if test $ac_cv_func_sched_yield = no -a \
34342 $ac_cv_func_pthread_yield = no -a \
34343 $ac_cv_func_thr_yield = no ; then
34344 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34345 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34346 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34347 echo $ECHO_N "(cached) $ECHO_C" >&6
34349 ac_check_lib_save_LIBS=$LIBS
34351 cat >conftest.$ac_ext <<_ACEOF
34354 cat confdefs.h >>conftest.$ac_ext
34355 cat >>conftest.$ac_ext <<_ACEOF
34356 /* end confdefs.h. */
34358 /* Override any gcc2 internal prototype to avoid an error. */
34362 /* We use char because int might match the return type of a gcc2
34363 builtin and then its argument prototype would still apply. */
34364 char sched_yield ();
34373 rm -f conftest.$ac_objext conftest$ac_exeext
34374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34375 (eval $ac_link) 2>conftest.er1
34377 grep -v '^ *+' conftest.er1 >conftest.err
34379 cat conftest.err >&5
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); } &&
34382 { ac_try='test -z "$ac_c_werror_flag"
34383 || test ! -s conftest.err'
34384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34385 (eval $ac_try) 2>&5
34387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388 (exit $ac_status); }; } &&
34389 { ac_try='test -s conftest$ac_exeext'
34390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34391 (eval $ac_try) 2>&5
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); }; }; then
34395 ac_cv_lib_rt_sched_yield=yes
34397 echo "$as_me: failed program was:" >&5
34398 sed 's/^/| /' conftest.$ac_ext >&5
34400 ac_cv_lib_rt_sched_yield=no
34402 rm -f conftest.err conftest.$ac_objext \
34403 conftest$ac_exeext conftest.$ac_ext
34404 LIBS=$ac_check_lib_save_LIBS
34406 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34407 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34408 if test $ac_cv_lib_rt_sched_yield = yes; then
34409 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34411 cat >>confdefs.h <<\_ACEOF
34412 #define HAVE_SCHED_YIELD 1
34415 ac_cv_func_sched_yield=yes
34417 ac_cv_func_sched_yield=no
34421 if test $ac_cv_func_sched_yield = no -a \
34422 $ac_cv_func_pthread_yield = no -a \
34423 "$ac_cv_func_thr_yield" = no ; then
34424 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34425 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34430 for ac_func in pthread_kill pthread_rwlock_destroy
34432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34433 echo "$as_me:$LINENO: checking for $ac_func" >&5
34434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34435 if eval "test \"\${$as_ac_var+set}\" = set"; then
34436 echo $ECHO_N "(cached) $ECHO_C" >&6
34438 cat >conftest.$ac_ext <<_ACEOF
34441 cat confdefs.h >>conftest.$ac_ext
34442 cat >>conftest.$ac_ext <<_ACEOF
34443 /* end confdefs.h. */
34444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34446 #define $ac_func innocuous_$ac_func
34448 /* System header to define __stub macros and hopefully few prototypes,
34449 which can conflict with char $ac_func (); below.
34450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34451 <limits.h> exists even on freestanding compilers. */
34454 # include <limits.h>
34456 # include <assert.h>
34461 /* Override any gcc2 internal prototype to avoid an error. */
34466 /* We use char because int might match the return type of a gcc2
34467 builtin and then its argument prototype would still apply. */
34469 /* The GNU C library defines this for functions which it implements
34470 to always fail with ENOSYS. Some functions are actually named
34471 something starting with __ and the normal name is an alias. */
34472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34475 char (*f) () = $ac_func;
34484 return f != $ac_func;
34489 rm -f conftest.$ac_objext conftest$ac_exeext
34490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34491 (eval $ac_link) 2>conftest.er1
34493 grep -v '^ *+' conftest.er1 >conftest.err
34495 cat conftest.err >&5
34496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497 (exit $ac_status); } &&
34498 { ac_try='test -z "$ac_c_werror_flag"
34499 || test ! -s conftest.err'
34500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34501 (eval $ac_try) 2>&5
34503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34504 (exit $ac_status); }; } &&
34505 { ac_try='test -s conftest$ac_exeext'
34506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34507 (eval $ac_try) 2>&5
34509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510 (exit $ac_status); }; }; then
34511 eval "$as_ac_var=yes"
34513 echo "$as_me: failed program was:" >&5
34514 sed 's/^/| /' conftest.$ac_ext >&5
34516 eval "$as_ac_var=no"
34518 rm -f conftest.err conftest.$ac_objext \
34519 conftest$ac_exeext conftest.$ac_ext
34521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34523 if test `eval echo '${'$as_ac_var'}'` = yes; then
34524 cat >>confdefs.h <<_ACEOF
34525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34532 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34533 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34534 if test "${ol_cv_func_pthread_detach+set}" = set; then
34535 echo $ECHO_N "(cached) $ECHO_C" >&6
34538 cat >conftest.$ac_ext <<_ACEOF
34541 cat confdefs.h >>conftest.$ac_ext
34542 cat >>conftest.$ac_ext <<_ACEOF
34543 /* end confdefs.h. */
34545 #include <pthread.h>
34547 #define NULL (void*)0
34553 pthread_detach(NULL);
34558 rm -f conftest.$ac_objext conftest$ac_exeext
34559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34560 (eval $ac_link) 2>conftest.er1
34562 grep -v '^ *+' conftest.er1 >conftest.err
34564 cat conftest.err >&5
34565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566 (exit $ac_status); } &&
34567 { ac_try='test -z "$ac_c_werror_flag"
34568 || test ! -s conftest.err'
34569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34570 (eval $ac_try) 2>&5
34572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 (exit $ac_status); }; } &&
34574 { ac_try='test -s conftest$ac_exeext'
34575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34576 (eval $ac_try) 2>&5
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); }; }; then
34580 ol_cv_func_pthread_detach=yes
34582 echo "$as_me: failed program was:" >&5
34583 sed 's/^/| /' conftest.$ac_ext >&5
34585 ol_cv_func_pthread_detach=no
34587 rm -f conftest.err conftest.$ac_objext \
34588 conftest$ac_exeext conftest.$ac_ext
34591 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34592 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34594 if test $ol_cv_func_pthread_detach = no ; then
34595 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34596 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34597 { (exit 1); exit 1; }; }
34601 cat >>confdefs.h <<\_ACEOF
34602 #define HAVE_PTHREAD_DETACH 1
34611 pthread_setconcurrency \
34612 pthread_getconcurrency \
34613 thr_setconcurrency \
34614 thr_getconcurrency \
34617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34618 echo "$as_me:$LINENO: checking for $ac_func" >&5
34619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34620 if eval "test \"\${$as_ac_var+set}\" = set"; then
34621 echo $ECHO_N "(cached) $ECHO_C" >&6
34623 cat >conftest.$ac_ext <<_ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h. */
34629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34631 #define $ac_func innocuous_$ac_func
34633 /* System header to define __stub macros and hopefully few prototypes,
34634 which can conflict with char $ac_func (); below.
34635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34636 <limits.h> exists even on freestanding compilers. */
34639 # include <limits.h>
34641 # include <assert.h>
34646 /* Override any gcc2 internal prototype to avoid an error. */
34651 /* We use char because int might match the return type of a gcc2
34652 builtin and then its argument prototype would still apply. */
34654 /* The GNU C library defines this for functions which it implements
34655 to always fail with ENOSYS. Some functions are actually named
34656 something starting with __ and the normal name is an alias. */
34657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34660 char (*f) () = $ac_func;
34669 return f != $ac_func;
34674 rm -f conftest.$ac_objext conftest$ac_exeext
34675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34676 (eval $ac_link) 2>conftest.er1
34678 grep -v '^ *+' conftest.er1 >conftest.err
34680 cat conftest.err >&5
34681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); } &&
34683 { ac_try='test -z "$ac_c_werror_flag"
34684 || test ! -s conftest.err'
34685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686 (eval $ac_try) 2>&5
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; } &&
34690 { ac_try='test -s conftest$ac_exeext'
34691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692 (eval $ac_try) 2>&5
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); }; }; then
34696 eval "$as_ac_var=yes"
34698 echo "$as_me: failed program was:" >&5
34699 sed 's/^/| /' conftest.$ac_ext >&5
34701 eval "$as_ac_var=no"
34703 rm -f conftest.err conftest.$ac_objext \
34704 conftest$ac_exeext conftest.$ac_ext
34706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34708 if test `eval echo '${'$as_ac_var'}'` = yes; then
34709 cat >>confdefs.h <<_ACEOF
34710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34719 for ac_func in pthread_kill_other_threads_np
34721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34722 echo "$as_me:$LINENO: checking for $ac_func" >&5
34723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34724 if eval "test \"\${$as_ac_var+set}\" = set"; then
34725 echo $ECHO_N "(cached) $ECHO_C" >&6
34727 cat >conftest.$ac_ext <<_ACEOF
34730 cat confdefs.h >>conftest.$ac_ext
34731 cat >>conftest.$ac_ext <<_ACEOF
34732 /* end confdefs.h. */
34733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34735 #define $ac_func innocuous_$ac_func
34737 /* System header to define __stub macros and hopefully few prototypes,
34738 which can conflict with char $ac_func (); below.
34739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34740 <limits.h> exists even on freestanding compilers. */
34743 # include <limits.h>
34745 # include <assert.h>
34750 /* Override any gcc2 internal prototype to avoid an error. */
34755 /* We use char because int might match the return type of a gcc2
34756 builtin and then its argument prototype would still apply. */
34758 /* The GNU C library defines this for functions which it implements
34759 to always fail with ENOSYS. Some functions are actually named
34760 something starting with __ and the normal name is an alias. */
34761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34764 char (*f) () = $ac_func;
34773 return f != $ac_func;
34778 rm -f conftest.$ac_objext conftest$ac_exeext
34779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34780 (eval $ac_link) 2>conftest.er1
34782 grep -v '^ *+' conftest.er1 >conftest.err
34784 cat conftest.err >&5
34785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786 (exit $ac_status); } &&
34787 { ac_try='test -z "$ac_c_werror_flag"
34788 || test ! -s conftest.err'
34789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34790 (eval $ac_try) 2>&5
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); }; } &&
34794 { ac_try='test -s conftest$ac_exeext'
34795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34796 (eval $ac_try) 2>&5
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); }; }; then
34800 eval "$as_ac_var=yes"
34802 echo "$as_me: failed program was:" >&5
34803 sed 's/^/| /' conftest.$ac_ext >&5
34805 eval "$as_ac_var=no"
34807 rm -f conftest.err conftest.$ac_objext \
34808 conftest$ac_exeext conftest.$ac_ext
34810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34812 if test `eval echo '${'$as_ac_var'}'` = yes; then
34813 cat >>confdefs.h <<_ACEOF
34814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34820 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34821 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34822 if test "${ol_cv_sys_linux_threads+set}" = set; then
34823 echo $ECHO_N "(cached) $ECHO_C" >&6
34825 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34827 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34828 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34833 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34834 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34835 if test "${ol_cv_linux_threads+set}" = set; then
34836 echo $ECHO_N "(cached) $ECHO_C" >&6
34839 if test $ol_cv_header_linux_threads = yes -a \
34840 $ol_cv_sys_linux_threads = yes; then
34841 ol_cv_linux_threads=yes
34842 elif test $ol_cv_header_linux_threads = no -a \
34843 $ol_cv_sys_linux_threads = no; then
34844 ol_cv_linux_threads=no
34846 ol_cv_linux_threads=error
34850 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34851 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34854 if test $ol_cv_linux_threads = error; then
34855 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34856 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34857 { (exit 1); exit 1; }; };
34860 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34861 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34862 if test "${ol_cv_pthread_create_works+set}" = set; then
34863 echo $ECHO_N "(cached) $ECHO_C" >&6
34866 if test "$cross_compiling" = yes; then
34867 ol_cv_pthread_create_works=yes
34869 cat >conftest.$ac_ext <<_ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h. */
34876 /* pthread test headers */
34877 #include <pthread.h>
34878 #if HAVE_PTHREADS < 7
34882 #define NULL (void*)0
34885 static void *task(p)
34888 return (void *) (p == NULL);
34892 int main(argc, argv)
34897 /* pthread test function */
34898 #ifndef PTHREAD_CREATE_DETACHED
34899 #define PTHREAD_CREATE_DETACHED 1
34903 int detach = PTHREAD_CREATE_DETACHED;
34905 #if HAVE_PTHREADS > 4
34906 /* Final pthreads */
34907 pthread_attr_t attr;
34909 status = pthread_attr_init(&attr);
34910 if( status ) return status;
34912 #if HAVE_PTHREADS < 7
34913 status = pthread_attr_setdetachstate(&attr, &detach);
34914 if( status < 0 ) status = errno;
34916 status = pthread_attr_setdetachstate(&attr, detach);
34918 if( status ) return status;
34919 status = pthread_create( &t, &attr, task, NULL );
34920 #if HAVE_PTHREADS < 7
34921 if( status < 0 ) status = errno;
34923 if( status ) return status;
34925 /* Draft 4 pthreads */
34926 status = pthread_create( &t, pthread_attr_default, task, NULL );
34927 if( status ) return errno;
34929 /* give thread a chance to complete */
34930 /* it should remain joinable and hence detachable */
34933 status = pthread_detach( &t );
34934 if( status ) return errno;
34937 #ifdef HAVE_LINUX_THREADS
34938 pthread_kill_other_threads_np();
34946 rm -f conftest$ac_exeext
34947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34948 (eval $ac_link) 2>&5
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34953 (eval $ac_try) 2>&5
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); }; }; then
34957 ol_cv_pthread_create_works=yes
34959 echo "$as_me: program exited with status $ac_status" >&5
34960 echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34963 ( exit $ac_status )
34964 ol_cv_pthread_create_works=no
34966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34969 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34970 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34972 if test $ol_cv_pthread_create_works = no ; then
34973 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34974 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34975 { (exit 1); exit 1; }; }
34978 if test $ol_with_yielding_select = auto ; then
34979 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34980 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34981 if test "${ol_cv_pthread_select_yields+set}" = set; then
34982 echo $ECHO_N "(cached) $ECHO_C" >&6
34985 if test "$cross_compiling" = yes; then
34986 ol_cv_pthread_select_yields=cross
34988 cat >conftest.$ac_ext <<_ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h. */
34995 #include <sys/types.h>
34996 #include <sys/time.h>
34997 #include <unistd.h>
34998 #include <pthread.h>
35000 #define NULL (void*) 0
35003 static int fildes[2];
35005 static void *task(p)
35017 FD_SET(fildes[0], &rfds);
35019 /* we're not interested in any fds */
35020 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35027 exit(0); /* if we exit here, the select blocked the whole process */
35030 int main(argc, argv)
35036 /* create a pipe to select */
35037 if(pipe(&fildes[0])) {
35042 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35043 (void) pthread_setconcurrency(2);
35045 #ifdef HAVE_THR_SETCONCURRENCY
35046 /* Set Solaris LWP concurrency to 2 */
35047 thr_setconcurrency(2);
35051 #if HAVE_PTHREADS < 6
35052 pthread_create(&t, pthread_attr_default, task, NULL);
35054 pthread_create(&t, NULL, task, NULL);
35057 /* make sure task runs first */
35060 #elif defined( HAVE_SCHED_YIELD )
35062 #elif defined( HAVE_PTHREAD_YIELD )
35069 rm -f conftest$ac_exeext
35070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35071 (eval $ac_link) 2>&5
35073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35076 (eval $ac_try) 2>&5
35078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079 (exit $ac_status); }; }; then
35080 ol_cv_pthread_select_yields=no
35082 echo "$as_me: program exited with status $ac_status" >&5
35083 echo "$as_me: failed program was:" >&5
35084 sed 's/^/| /' conftest.$ac_ext >&5
35086 ( exit $ac_status )
35087 ol_cv_pthread_select_yields=yes
35089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35092 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35093 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35095 if test $ol_cv_pthread_select_yields = cross ; then
35096 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35097 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35098 { (exit 1); exit 1; }; }
35101 if test $ol_cv_pthread_select_yields = yes ; then
35102 ol_with_yielding_select=yes
35106 CPPFLAGS="$save_CPPFLAGS"
35109 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35110 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35111 { (exit 1); exit 1; }; }
35115 if test $ol_with_threads = posix ; then
35116 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35117 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35118 { (exit 1); exit 1; }; }
35122 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35123 -o $ol_with_threads = mach ; then
35127 for ac_header in mach/cthreads.h cthreads.h
35129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35131 echo "$as_me:$LINENO: checking for $ac_header" >&5
35132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35134 echo $ECHO_N "(cached) $ECHO_C" >&6
35136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35139 # Is the header compilable?
35140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35142 cat >conftest.$ac_ext <<_ACEOF
35145 cat confdefs.h >>conftest.$ac_ext
35146 cat >>conftest.$ac_ext <<_ACEOF
35147 /* end confdefs.h. */
35148 $ac_includes_default
35149 #include <$ac_header>
35151 rm -f conftest.$ac_objext
35152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35153 (eval $ac_compile) 2>conftest.er1
35155 grep -v '^ *+' conftest.er1 >conftest.err
35157 cat conftest.err >&5
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); } &&
35160 { ac_try='test -z "$ac_c_werror_flag"
35161 || test ! -s conftest.err'
35162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35163 (eval $ac_try) 2>&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); }; } &&
35167 { ac_try='test -s conftest.$ac_objext'
35168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169 (eval $ac_try) 2>&5
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); }; }; then
35173 ac_header_compiler=yes
35175 echo "$as_me: failed program was:" >&5
35176 sed 's/^/| /' conftest.$ac_ext >&5
35178 ac_header_compiler=no
35180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35182 echo "${ECHO_T}$ac_header_compiler" >&6
35184 # Is the header present?
35185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35187 cat >conftest.$ac_ext <<_ACEOF
35190 cat confdefs.h >>conftest.$ac_ext
35191 cat >>conftest.$ac_ext <<_ACEOF
35192 /* end confdefs.h. */
35193 #include <$ac_header>
35195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35198 grep -v '^ *+' conftest.er1 >conftest.err
35200 cat conftest.err >&5
35201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); } >/dev/null; then
35203 if test -s conftest.err; then
35204 ac_cpp_err=$ac_c_preproc_warn_flag
35205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35212 if test -z "$ac_cpp_err"; then
35213 ac_header_preproc=yes
35215 echo "$as_me: failed program was:" >&5
35216 sed 's/^/| /' conftest.$ac_ext >&5
35218 ac_header_preproc=no
35220 rm -f conftest.err conftest.$ac_ext
35221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35222 echo "${ECHO_T}$ac_header_preproc" >&6
35224 # So? What about this header?
35225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35231 ac_header_preproc=yes
35234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35248 ## ------------------------------------------ ##
35249 ## Report this to the AC_PACKAGE_NAME lists. ##
35250 ## ------------------------------------------ ##
35253 sed "s/^/$as_me: WARNING: /" >&2
35256 echo "$as_me:$LINENO: checking for $ac_header" >&5
35257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35259 echo $ECHO_N "(cached) $ECHO_C" >&6
35261 eval "$as_ac_Header=\$ac_header_preproc"
35263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35268 cat >>confdefs.h <<_ACEOF
35269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35276 if test $ac_cv_header_mach_cthreads_h = yes ; then
35277 ol_with_threads=found
35279 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35280 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35281 if test "${ac_cv_func_cthread_fork+set}" = set; then
35282 echo $ECHO_N "(cached) $ECHO_C" >&6
35284 cat >conftest.$ac_ext <<_ACEOF
35287 cat confdefs.h >>conftest.$ac_ext
35288 cat >>conftest.$ac_ext <<_ACEOF
35289 /* end confdefs.h. */
35290 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35292 #define cthread_fork innocuous_cthread_fork
35294 /* System header to define __stub macros and hopefully few prototypes,
35295 which can conflict with char cthread_fork (); below.
35296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35297 <limits.h> exists even on freestanding compilers. */
35300 # include <limits.h>
35302 # include <assert.h>
35305 #undef cthread_fork
35307 /* Override any gcc2 internal prototype to avoid an error. */
35312 /* We use char because int might match the return type of a gcc2
35313 builtin and then its argument prototype would still apply. */
35314 char cthread_fork ();
35315 /* The GNU C library defines this for functions which it implements
35316 to always fail with ENOSYS. Some functions are actually named
35317 something starting with __ and the normal name is an alias. */
35318 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35321 char (*f) () = cthread_fork;
35330 return f != cthread_fork;
35335 rm -f conftest.$ac_objext conftest$ac_exeext
35336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35337 (eval $ac_link) 2>conftest.er1
35339 grep -v '^ *+' conftest.er1 >conftest.err
35341 cat conftest.err >&5
35342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); } &&
35344 { ac_try='test -z "$ac_c_werror_flag"
35345 || test ! -s conftest.err'
35346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347 (eval $ac_try) 2>&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; } &&
35351 { ac_try='test -s conftest$ac_exeext'
35352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353 (eval $ac_try) 2>&5
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); }; }; then
35357 ac_cv_func_cthread_fork=yes
35359 echo "$as_me: failed program was:" >&5
35360 sed 's/^/| /' conftest.$ac_ext >&5
35362 ac_cv_func_cthread_fork=no
35364 rm -f conftest.err conftest.$ac_objext \
35365 conftest$ac_exeext conftest.$ac_ext
35367 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35368 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35369 if test $ac_cv_func_cthread_fork = yes; then
35370 ol_link_threads=yes
35374 if test $ol_link_threads = no ; then
35375 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35376 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35377 if test "${ol_cv_cthread_all_load+set}" = set; then
35378 echo $ECHO_N "(cached) $ECHO_C" >&6
35382 LIBS="-all_load $LIBS"
35383 cat >conftest.$ac_ext <<_ACEOF
35386 cat confdefs.h >>conftest.$ac_ext
35387 cat >>conftest.$ac_ext <<_ACEOF
35388 /* end confdefs.h. */
35389 #include <mach/cthreads.h>
35394 cthread_fork((void *)0, (void *)0);
35400 rm -f conftest.$ac_objext conftest$ac_exeext
35401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35402 (eval $ac_link) 2>conftest.er1
35404 grep -v '^ *+' conftest.er1 >conftest.err
35406 cat conftest.err >&5
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); } &&
35409 { ac_try='test -z "$ac_c_werror_flag"
35410 || test ! -s conftest.err'
35411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412 (eval $ac_try) 2>&5
35414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415 (exit $ac_status); }; } &&
35416 { ac_try='test -s conftest$ac_exeext'
35417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35418 (eval $ac_try) 2>&5
35420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421 (exit $ac_status); }; }; then
35422 ol_cv_cthread_all_load=yes
35424 echo "$as_me: failed program was:" >&5
35425 sed 's/^/| /' conftest.$ac_ext >&5
35427 ol_cv_cthread_all_load=no
35429 rm -f conftest.err conftest.$ac_objext \
35430 conftest$ac_exeext conftest.$ac_ext
35434 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35435 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35437 if test $ol_cv_cthread_all_load = yes ; then
35438 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35439 ol_link_threads=mach
35440 ol_with_threads=found
35444 elif test $ac_cv_header_cthreads_h = yes ; then
35446 ol_with_threads=found
35449 LIBS="$LIBS -lthreads"
35450 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35451 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35452 if test "${ac_cv_func_cthread_fork+set}" = set; then
35453 echo $ECHO_N "(cached) $ECHO_C" >&6
35455 cat >conftest.$ac_ext <<_ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h. */
35461 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35463 #define cthread_fork innocuous_cthread_fork
35465 /* System header to define __stub macros and hopefully few prototypes,
35466 which can conflict with char cthread_fork (); below.
35467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35468 <limits.h> exists even on freestanding compilers. */
35471 # include <limits.h>
35473 # include <assert.h>
35476 #undef cthread_fork
35478 /* Override any gcc2 internal prototype to avoid an error. */
35483 /* We use char because int might match the return type of a gcc2
35484 builtin and then its argument prototype would still apply. */
35485 char cthread_fork ();
35486 /* The GNU C library defines this for functions which it implements
35487 to always fail with ENOSYS. Some functions are actually named
35488 something starting with __ and the normal name is an alias. */
35489 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35492 char (*f) () = cthread_fork;
35501 return f != cthread_fork;
35506 rm -f conftest.$ac_objext conftest$ac_exeext
35507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35508 (eval $ac_link) 2>conftest.er1
35510 grep -v '^ *+' conftest.er1 >conftest.err
35512 cat conftest.err >&5
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); } &&
35515 { ac_try='test -z "$ac_c_werror_flag"
35516 || test ! -s conftest.err'
35517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518 (eval $ac_try) 2>&5
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); }; } &&
35522 { ac_try='test -s conftest$ac_exeext'
35523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35524 (eval $ac_try) 2>&5
35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527 (exit $ac_status); }; }; then
35528 ac_cv_func_cthread_fork=yes
35530 echo "$as_me: failed program was:" >&5
35531 sed 's/^/| /' conftest.$ac_ext >&5
35533 ac_cv_func_cthread_fork=no
35535 rm -f conftest.err conftest.$ac_objext \
35536 conftest$ac_exeext conftest.$ac_ext
35538 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35539 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35540 if test $ac_cv_func_cthread_fork = yes; then
35541 ol_link_threads=yes
35546 if test $ol_link_threads = yes ; then
35547 LTHREAD_LIBS="-lthreads"
35548 ol_link_threads=mach
35549 ol_with_threads=found
35551 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35552 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35553 { (exit 1); exit 1; }; }
35556 elif test $ol_with_threads = mach ; then
35557 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35558 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35559 { (exit 1); exit 1; }; }
35562 if test $ol_link_threads = mach ; then
35564 cat >>confdefs.h <<\_ACEOF
35565 #define HAVE_MACH_CTHREADS 1
35568 elif test $ol_with_threads = found ; then
35569 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35570 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35571 { (exit 1); exit 1; }; }
35575 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35576 -o $ol_with_threads = pth ; then
35579 for ac_header in pth.h
35581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35583 echo "$as_me:$LINENO: checking for $ac_header" >&5
35584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35586 echo $ECHO_N "(cached) $ECHO_C" >&6
35588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35591 # Is the header compilable?
35592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35594 cat >conftest.$ac_ext <<_ACEOF
35597 cat confdefs.h >>conftest.$ac_ext
35598 cat >>conftest.$ac_ext <<_ACEOF
35599 /* end confdefs.h. */
35600 $ac_includes_default
35601 #include <$ac_header>
35603 rm -f conftest.$ac_objext
35604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35605 (eval $ac_compile) 2>conftest.er1
35607 grep -v '^ *+' conftest.er1 >conftest.err
35609 cat conftest.err >&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } &&
35612 { ac_try='test -z "$ac_c_werror_flag"
35613 || test ! -s conftest.err'
35614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615 (eval $ac_try) 2>&5
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); }; } &&
35619 { ac_try='test -s conftest.$ac_objext'
35620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621 (eval $ac_try) 2>&5
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); }; }; then
35625 ac_header_compiler=yes
35627 echo "$as_me: failed program was:" >&5
35628 sed 's/^/| /' conftest.$ac_ext >&5
35630 ac_header_compiler=no
35632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35634 echo "${ECHO_T}$ac_header_compiler" >&6
35636 # Is the header present?
35637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35639 cat >conftest.$ac_ext <<_ACEOF
35642 cat confdefs.h >>conftest.$ac_ext
35643 cat >>conftest.$ac_ext <<_ACEOF
35644 /* end confdefs.h. */
35645 #include <$ac_header>
35647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35650 grep -v '^ *+' conftest.er1 >conftest.err
35652 cat conftest.err >&5
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); } >/dev/null; then
35655 if test -s conftest.err; then
35656 ac_cpp_err=$ac_c_preproc_warn_flag
35657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35664 if test -z "$ac_cpp_err"; then
35665 ac_header_preproc=yes
35667 echo "$as_me: failed program was:" >&5
35668 sed 's/^/| /' conftest.$ac_ext >&5
35670 ac_header_preproc=no
35672 rm -f conftest.err conftest.$ac_ext
35673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35674 echo "${ECHO_T}$ac_header_preproc" >&6
35676 # So? What about this header?
35677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35683 ac_header_preproc=yes
35686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35700 ## ------------------------------------------ ##
35701 ## Report this to the AC_PACKAGE_NAME lists. ##
35702 ## ------------------------------------------ ##
35705 sed "s/^/$as_me: WARNING: /" >&2
35708 echo "$as_me:$LINENO: checking for $ac_header" >&5
35709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35711 echo $ECHO_N "(cached) $ECHO_C" >&6
35713 eval "$as_ac_Header=\$ac_header_preproc"
35715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35720 cat >>confdefs.h <<_ACEOF
35721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35729 if test $ac_cv_header_pth_h = yes ; then
35730 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35731 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35732 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35733 echo $ECHO_N "(cached) $ECHO_C" >&6
35735 ac_check_lib_save_LIBS=$LIBS
35737 cat >conftest.$ac_ext <<_ACEOF
35740 cat confdefs.h >>conftest.$ac_ext
35741 cat >>conftest.$ac_ext <<_ACEOF
35742 /* end confdefs.h. */
35744 /* Override any gcc2 internal prototype to avoid an error. */
35748 /* We use char because int might match the return type of a gcc2
35749 builtin and then its argument prototype would still apply. */
35750 char pth_version ();
35759 rm -f conftest.$ac_objext conftest$ac_exeext
35760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35761 (eval $ac_link) 2>conftest.er1
35763 grep -v '^ *+' conftest.er1 >conftest.err
35765 cat conftest.err >&5
35766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35767 (exit $ac_status); } &&
35768 { ac_try='test -z "$ac_c_werror_flag"
35769 || test ! -s conftest.err'
35770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35771 (eval $ac_try) 2>&5
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); }; } &&
35775 { ac_try='test -s conftest$ac_exeext'
35776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35777 (eval $ac_try) 2>&5
35779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35780 (exit $ac_status); }; }; then
35781 ac_cv_lib_pth_pth_version=yes
35783 echo "$as_me: failed program was:" >&5
35784 sed 's/^/| /' conftest.$ac_ext >&5
35786 ac_cv_lib_pth_pth_version=no
35788 rm -f conftest.err conftest.$ac_objext \
35789 conftest$ac_exeext conftest.$ac_ext
35790 LIBS=$ac_check_lib_save_LIBS
35792 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35793 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35794 if test $ac_cv_lib_pth_pth_version = yes; then
35801 if test $have_pth = yes ; then
35803 cat >>confdefs.h <<\_ACEOF
35804 #define HAVE_GNU_PTH 1
35807 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35808 ol_link_threads=pth
35809 ol_with_threads=found
35811 if test $ol_with_yielding_select = auto ; then
35812 ol_with_yielding_select=yes
35818 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35819 -o $ol_with_threads = lwp ; then
35823 for ac_header in thread.h synch.h
35825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35827 echo "$as_me:$LINENO: checking for $ac_header" >&5
35828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35830 echo $ECHO_N "(cached) $ECHO_C" >&6
35832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35835 # Is the header compilable?
35836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35838 cat >conftest.$ac_ext <<_ACEOF
35841 cat confdefs.h >>conftest.$ac_ext
35842 cat >>conftest.$ac_ext <<_ACEOF
35843 /* end confdefs.h. */
35844 $ac_includes_default
35845 #include <$ac_header>
35847 rm -f conftest.$ac_objext
35848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35849 (eval $ac_compile) 2>conftest.er1
35851 grep -v '^ *+' conftest.er1 >conftest.err
35853 cat conftest.err >&5
35854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855 (exit $ac_status); } &&
35856 { ac_try='test -z "$ac_c_werror_flag"
35857 || test ! -s conftest.err'
35858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859 (eval $ac_try) 2>&5
35861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862 (exit $ac_status); }; } &&
35863 { ac_try='test -s conftest.$ac_objext'
35864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35865 (eval $ac_try) 2>&5
35867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868 (exit $ac_status); }; }; then
35869 ac_header_compiler=yes
35871 echo "$as_me: failed program was:" >&5
35872 sed 's/^/| /' conftest.$ac_ext >&5
35874 ac_header_compiler=no
35876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35878 echo "${ECHO_T}$ac_header_compiler" >&6
35880 # Is the header present?
35881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35883 cat >conftest.$ac_ext <<_ACEOF
35886 cat confdefs.h >>conftest.$ac_ext
35887 cat >>conftest.$ac_ext <<_ACEOF
35888 /* end confdefs.h. */
35889 #include <$ac_header>
35891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35894 grep -v '^ *+' conftest.er1 >conftest.err
35896 cat conftest.err >&5
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); } >/dev/null; then
35899 if test -s conftest.err; then
35900 ac_cpp_err=$ac_c_preproc_warn_flag
35901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35908 if test -z "$ac_cpp_err"; then
35909 ac_header_preproc=yes
35911 echo "$as_me: failed program was:" >&5
35912 sed 's/^/| /' conftest.$ac_ext >&5
35914 ac_header_preproc=no
35916 rm -f conftest.err conftest.$ac_ext
35917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35918 echo "${ECHO_T}$ac_header_preproc" >&6
35920 # So? What about this header?
35921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35927 ac_header_preproc=yes
35930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35944 ## ------------------------------------------ ##
35945 ## Report this to the AC_PACKAGE_NAME lists. ##
35946 ## ------------------------------------------ ##
35949 sed "s/^/$as_me: WARNING: /" >&2
35952 echo "$as_me:$LINENO: checking for $ac_header" >&5
35953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35955 echo $ECHO_N "(cached) $ECHO_C" >&6
35957 eval "$as_ac_Header=\$ac_header_preproc"
35959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35964 cat >>confdefs.h <<_ACEOF
35965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35972 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35973 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35974 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35975 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35976 echo $ECHO_N "(cached) $ECHO_C" >&6
35978 ac_check_lib_save_LIBS=$LIBS
35979 LIBS="-lthread $LIBS"
35980 cat >conftest.$ac_ext <<_ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h. */
35987 /* Override any gcc2 internal prototype to avoid an error. */
35991 /* We use char because int might match the return type of a gcc2
35992 builtin and then its argument prototype would still apply. */
35993 char thr_create ();
36002 rm -f conftest.$ac_objext conftest$ac_exeext
36003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36004 (eval $ac_link) 2>conftest.er1
36006 grep -v '^ *+' conftest.er1 >conftest.err
36008 cat conftest.err >&5
36009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010 (exit $ac_status); } &&
36011 { ac_try='test -z "$ac_c_werror_flag"
36012 || test ! -s conftest.err'
36013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36014 (eval $ac_try) 2>&5
36016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017 (exit $ac_status); }; } &&
36018 { ac_try='test -s conftest$ac_exeext'
36019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36020 (eval $ac_try) 2>&5
36022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023 (exit $ac_status); }; }; then
36024 ac_cv_lib_thread_thr_create=yes
36026 echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36029 ac_cv_lib_thread_thr_create=no
36031 rm -f conftest.err conftest.$ac_objext \
36032 conftest$ac_exeext conftest.$ac_ext
36033 LIBS=$ac_check_lib_save_LIBS
36035 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36036 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36037 if test $ac_cv_lib_thread_thr_create = yes; then
36044 if test $have_thr = yes ; then
36046 cat >>confdefs.h <<\_ACEOF
36050 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36051 ol_link_threads=thr
36053 if test $ol_with_yielding_select = auto ; then
36054 ol_with_yielding_select=yes
36060 thr_setconcurrency \
36061 thr_getconcurrency \
36064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36065 echo "$as_me:$LINENO: checking for $ac_func" >&5
36066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36067 if eval "test \"\${$as_ac_var+set}\" = set"; then
36068 echo $ECHO_N "(cached) $ECHO_C" >&6
36070 cat >conftest.$ac_ext <<_ACEOF
36073 cat confdefs.h >>conftest.$ac_ext
36074 cat >>conftest.$ac_ext <<_ACEOF
36075 /* end confdefs.h. */
36076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36078 #define $ac_func innocuous_$ac_func
36080 /* System header to define __stub macros and hopefully few prototypes,
36081 which can conflict with char $ac_func (); below.
36082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36083 <limits.h> exists even on freestanding compilers. */
36086 # include <limits.h>
36088 # include <assert.h>
36093 /* Override any gcc2 internal prototype to avoid an error. */
36098 /* We use char because int might match the return type of a gcc2
36099 builtin and then its argument prototype would still apply. */
36101 /* The GNU C library defines this for functions which it implements
36102 to always fail with ENOSYS. Some functions are actually named
36103 something starting with __ and the normal name is an alias. */
36104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36107 char (*f) () = $ac_func;
36116 return f != $ac_func;
36121 rm -f conftest.$ac_objext conftest$ac_exeext
36122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36123 (eval $ac_link) 2>conftest.er1
36125 grep -v '^ *+' conftest.er1 >conftest.err
36127 cat conftest.err >&5
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); } &&
36130 { ac_try='test -z "$ac_c_werror_flag"
36131 || test ! -s conftest.err'
36132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36133 (eval $ac_try) 2>&5
36135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136 (exit $ac_status); }; } &&
36137 { ac_try='test -s conftest$ac_exeext'
36138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36139 (eval $ac_try) 2>&5
36141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142 (exit $ac_status); }; }; then
36143 eval "$as_ac_var=yes"
36145 echo "$as_me: failed program was:" >&5
36146 sed 's/^/| /' conftest.$ac_ext >&5
36148 eval "$as_ac_var=no"
36150 rm -f conftest.err conftest.$ac_objext \
36151 conftest$ac_exeext conftest.$ac_ext
36153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36155 if test `eval echo '${'$as_ac_var'}'` = yes; then
36156 cat >>confdefs.h <<_ACEOF
36157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36167 for ac_header in lwp/lwp.h
36169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36171 echo "$as_me:$LINENO: checking for $ac_header" >&5
36172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36174 echo $ECHO_N "(cached) $ECHO_C" >&6
36176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36179 # Is the header compilable?
36180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36182 cat >conftest.$ac_ext <<_ACEOF
36185 cat confdefs.h >>conftest.$ac_ext
36186 cat >>conftest.$ac_ext <<_ACEOF
36187 /* end confdefs.h. */
36188 $ac_includes_default
36189 #include <$ac_header>
36191 rm -f conftest.$ac_objext
36192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36193 (eval $ac_compile) 2>conftest.er1
36195 grep -v '^ *+' conftest.er1 >conftest.err
36197 cat conftest.err >&5
36198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199 (exit $ac_status); } &&
36200 { ac_try='test -z "$ac_c_werror_flag"
36201 || test ! -s conftest.err'
36202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36203 (eval $ac_try) 2>&5
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); }; } &&
36207 { ac_try='test -s conftest.$ac_objext'
36208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209 (eval $ac_try) 2>&5
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; }; then
36213 ac_header_compiler=yes
36215 echo "$as_me: failed program was:" >&5
36216 sed 's/^/| /' conftest.$ac_ext >&5
36218 ac_header_compiler=no
36220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36222 echo "${ECHO_T}$ac_header_compiler" >&6
36224 # Is the header present?
36225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36227 cat >conftest.$ac_ext <<_ACEOF
36230 cat confdefs.h >>conftest.$ac_ext
36231 cat >>conftest.$ac_ext <<_ACEOF
36232 /* end confdefs.h. */
36233 #include <$ac_header>
36235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36238 grep -v '^ *+' conftest.er1 >conftest.err
36240 cat conftest.err >&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); } >/dev/null; then
36243 if test -s conftest.err; then
36244 ac_cpp_err=$ac_c_preproc_warn_flag
36245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36252 if test -z "$ac_cpp_err"; then
36253 ac_header_preproc=yes
36255 echo "$as_me: failed program was:" >&5
36256 sed 's/^/| /' conftest.$ac_ext >&5
36258 ac_header_preproc=no
36260 rm -f conftest.err conftest.$ac_ext
36261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36262 echo "${ECHO_T}$ac_header_preproc" >&6
36264 # So? What about this header?
36265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36271 ac_header_preproc=yes
36274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36288 ## ------------------------------------------ ##
36289 ## Report this to the AC_PACKAGE_NAME lists. ##
36290 ## ------------------------------------------ ##
36293 sed "s/^/$as_me: WARNING: /" >&2
36296 echo "$as_me:$LINENO: checking for $ac_header" >&5
36297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36299 echo $ECHO_N "(cached) $ECHO_C" >&6
36301 eval "$as_ac_Header=\$ac_header_preproc"
36303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36308 cat >>confdefs.h <<_ACEOF
36309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36316 if test $ac_cv_header_lwp_lwp_h = yes ; then
36317 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36318 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36319 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36320 echo $ECHO_N "(cached) $ECHO_C" >&6
36322 ac_check_lib_save_LIBS=$LIBS
36324 cat >conftest.$ac_ext <<_ACEOF
36327 cat confdefs.h >>conftest.$ac_ext
36328 cat >>conftest.$ac_ext <<_ACEOF
36329 /* end confdefs.h. */
36331 /* Override any gcc2 internal prototype to avoid an error. */
36335 /* We use char because int might match the return type of a gcc2
36336 builtin and then its argument prototype would still apply. */
36337 char lwp_create ();
36346 rm -f conftest.$ac_objext conftest$ac_exeext
36347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36348 (eval $ac_link) 2>conftest.er1
36350 grep -v '^ *+' conftest.er1 >conftest.err
36352 cat conftest.err >&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); } &&
36355 { ac_try='test -z "$ac_c_werror_flag"
36356 || test ! -s conftest.err'
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; } &&
36362 { ac_try='test -s conftest$ac_exeext'
36363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36364 (eval $ac_try) 2>&5
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); }; }; then
36368 ac_cv_lib_lwp_lwp_create=yes
36370 echo "$as_me: failed program was:" >&5
36371 sed 's/^/| /' conftest.$ac_ext >&5
36373 ac_cv_lib_lwp_lwp_create=no
36375 rm -f conftest.err conftest.$ac_objext \
36376 conftest$ac_exeext conftest.$ac_ext
36377 LIBS=$ac_check_lib_save_LIBS
36379 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36380 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36381 if test $ac_cv_lib_lwp_lwp_create = yes; then
36388 if test $have_lwp = yes ; then
36390 cat >>confdefs.h <<\_ACEOF
36394 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36395 ol_link_threads=lwp
36397 if test $ol_with_yielding_select = auto ; then
36398 ol_with_yielding_select=no
36404 if test $ol_with_yielding_select = yes ; then
36406 cat >>confdefs.h <<\_ACEOF
36407 #define HAVE_YIELDING_SELECT 1
36412 if test $ol_with_threads = manual ; then
36413 ol_link_threads=yes
36415 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36416 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36420 for ac_header in pthread.h sched.h
36422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36424 echo "$as_me:$LINENO: checking for $ac_header" >&5
36425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36427 echo $ECHO_N "(cached) $ECHO_C" >&6
36429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36432 # Is the header compilable?
36433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36435 cat >conftest.$ac_ext <<_ACEOF
36438 cat confdefs.h >>conftest.$ac_ext
36439 cat >>conftest.$ac_ext <<_ACEOF
36440 /* end confdefs.h. */
36441 $ac_includes_default
36442 #include <$ac_header>
36444 rm -f conftest.$ac_objext
36445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36446 (eval $ac_compile) 2>conftest.er1
36448 grep -v '^ *+' conftest.er1 >conftest.err
36450 cat conftest.err >&5
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); } &&
36453 { ac_try='test -z "$ac_c_werror_flag"
36454 || test ! -s conftest.err'
36455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36456 (eval $ac_try) 2>&5
36458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459 (exit $ac_status); }; } &&
36460 { ac_try='test -s conftest.$ac_objext'
36461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36462 (eval $ac_try) 2>&5
36464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465 (exit $ac_status); }; }; then
36466 ac_header_compiler=yes
36468 echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36471 ac_header_compiler=no
36473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36475 echo "${ECHO_T}$ac_header_compiler" >&6
36477 # Is the header present?
36478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36480 cat >conftest.$ac_ext <<_ACEOF
36483 cat confdefs.h >>conftest.$ac_ext
36484 cat >>conftest.$ac_ext <<_ACEOF
36485 /* end confdefs.h. */
36486 #include <$ac_header>
36488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36491 grep -v '^ *+' conftest.er1 >conftest.err
36493 cat conftest.err >&5
36494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36495 (exit $ac_status); } >/dev/null; then
36496 if test -s conftest.err; then
36497 ac_cpp_err=$ac_c_preproc_warn_flag
36498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36505 if test -z "$ac_cpp_err"; then
36506 ac_header_preproc=yes
36508 echo "$as_me: failed program was:" >&5
36509 sed 's/^/| /' conftest.$ac_ext >&5
36511 ac_header_preproc=no
36513 rm -f conftest.err conftest.$ac_ext
36514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36515 echo "${ECHO_T}$ac_header_preproc" >&6
36517 # So? What about this header?
36518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36524 ac_header_preproc=yes
36527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36541 ## ------------------------------------------ ##
36542 ## Report this to the AC_PACKAGE_NAME lists. ##
36543 ## ------------------------------------------ ##
36546 sed "s/^/$as_me: WARNING: /" >&2
36549 echo "$as_me:$LINENO: checking for $ac_header" >&5
36550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36552 echo $ECHO_N "(cached) $ECHO_C" >&6
36554 eval "$as_ac_Header=\$ac_header_preproc"
36556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36561 cat >>confdefs.h <<_ACEOF
36562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36571 for ac_func in sched_yield pthread_yield
36573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36574 echo "$as_me:$LINENO: checking for $ac_func" >&5
36575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36576 if eval "test \"\${$as_ac_var+set}\" = set"; then
36577 echo $ECHO_N "(cached) $ECHO_C" >&6
36579 cat >conftest.$ac_ext <<_ACEOF
36582 cat confdefs.h >>conftest.$ac_ext
36583 cat >>conftest.$ac_ext <<_ACEOF
36584 /* end confdefs.h. */
36585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36587 #define $ac_func innocuous_$ac_func
36589 /* System header to define __stub macros and hopefully few prototypes,
36590 which can conflict with char $ac_func (); below.
36591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36592 <limits.h> exists even on freestanding compilers. */
36595 # include <limits.h>
36597 # include <assert.h>
36602 /* Override any gcc2 internal prototype to avoid an error. */
36607 /* We use char because int might match the return type of a gcc2
36608 builtin and then its argument prototype would still apply. */
36610 /* The GNU C library defines this for functions which it implements
36611 to always fail with ENOSYS. Some functions are actually named
36612 something starting with __ and the normal name is an alias. */
36613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36616 char (*f) () = $ac_func;
36625 return f != $ac_func;
36630 rm -f conftest.$ac_objext conftest$ac_exeext
36631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36632 (eval $ac_link) 2>conftest.er1
36634 grep -v '^ *+' conftest.er1 >conftest.err
36636 cat conftest.err >&5
36637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638 (exit $ac_status); } &&
36639 { ac_try='test -z "$ac_c_werror_flag"
36640 || test ! -s conftest.err'
36641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36642 (eval $ac_try) 2>&5
36644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645 (exit $ac_status); }; } &&
36646 { ac_try='test -s conftest$ac_exeext'
36647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36648 (eval $ac_try) 2>&5
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); }; }; then
36652 eval "$as_ac_var=yes"
36654 echo "$as_me: failed program was:" >&5
36655 sed 's/^/| /' conftest.$ac_ext >&5
36657 eval "$as_ac_var=no"
36659 rm -f conftest.err conftest.$ac_objext \
36660 conftest$ac_exeext conftest.$ac_ext
36662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36664 if test `eval echo '${'$as_ac_var'}'` = yes; then
36665 cat >>confdefs.h <<_ACEOF
36666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36673 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36674 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36675 if test "${ol_cv_header_linux_threads+set}" = set; then
36676 echo $ECHO_N "(cached) $ECHO_C" >&6
36678 cat >conftest.$ac_ext <<_ACEOF
36681 cat confdefs.h >>conftest.$ac_ext
36682 cat >>conftest.$ac_ext <<_ACEOF
36683 /* end confdefs.h. */
36684 #include <pthread.h>
36686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36687 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36688 ol_cv_header_linux_threads=yes
36690 ol_cv_header_linux_threads=no
36696 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36697 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36698 if test $ol_cv_header_linux_threads = yes; then
36700 cat >>confdefs.h <<\_ACEOF
36701 #define HAVE_LINUX_THREADS 1
36708 for ac_header in mach/cthreads.h
36710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36712 echo "$as_me:$LINENO: checking for $ac_header" >&5
36713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36715 echo $ECHO_N "(cached) $ECHO_C" >&6
36717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36720 # Is the header compilable?
36721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36723 cat >conftest.$ac_ext <<_ACEOF
36726 cat confdefs.h >>conftest.$ac_ext
36727 cat >>conftest.$ac_ext <<_ACEOF
36728 /* end confdefs.h. */
36729 $ac_includes_default
36730 #include <$ac_header>
36732 rm -f conftest.$ac_objext
36733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36734 (eval $ac_compile) 2>conftest.er1
36736 grep -v '^ *+' conftest.er1 >conftest.err
36738 cat conftest.err >&5
36739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740 (exit $ac_status); } &&
36741 { ac_try='test -z "$ac_c_werror_flag"
36742 || test ! -s conftest.err'
36743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36744 (eval $ac_try) 2>&5
36746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36747 (exit $ac_status); }; } &&
36748 { ac_try='test -s conftest.$ac_objext'
36749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36750 (eval $ac_try) 2>&5
36752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36753 (exit $ac_status); }; }; then
36754 ac_header_compiler=yes
36756 echo "$as_me: failed program was:" >&5
36757 sed 's/^/| /' conftest.$ac_ext >&5
36759 ac_header_compiler=no
36761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36763 echo "${ECHO_T}$ac_header_compiler" >&6
36765 # Is the header present?
36766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36768 cat >conftest.$ac_ext <<_ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h. */
36774 #include <$ac_header>
36776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36779 grep -v '^ *+' conftest.er1 >conftest.err
36781 cat conftest.err >&5
36782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); } >/dev/null; then
36784 if test -s conftest.err; then
36785 ac_cpp_err=$ac_c_preproc_warn_flag
36786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36793 if test -z "$ac_cpp_err"; then
36794 ac_header_preproc=yes
36796 echo "$as_me: failed program was:" >&5
36797 sed 's/^/| /' conftest.$ac_ext >&5
36799 ac_header_preproc=no
36801 rm -f conftest.err conftest.$ac_ext
36802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36803 echo "${ECHO_T}$ac_header_preproc" >&6
36805 # So? What about this header?
36806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36812 ac_header_preproc=yes
36815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36829 ## ------------------------------------------ ##
36830 ## Report this to the AC_PACKAGE_NAME lists. ##
36831 ## ------------------------------------------ ##
36834 sed "s/^/$as_me: WARNING: /" >&2
36837 echo "$as_me:$LINENO: checking for $ac_header" >&5
36838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36840 echo $ECHO_N "(cached) $ECHO_C" >&6
36842 eval "$as_ac_Header=\$ac_header_preproc"
36844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36849 cat >>confdefs.h <<_ACEOF
36850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36858 for ac_header in lwp/lwp.h
36860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36862 echo "$as_me:$LINENO: checking for $ac_header" >&5
36863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36865 echo $ECHO_N "(cached) $ECHO_C" >&6
36867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36870 # Is the header compilable?
36871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36873 cat >conftest.$ac_ext <<_ACEOF
36876 cat confdefs.h >>conftest.$ac_ext
36877 cat >>conftest.$ac_ext <<_ACEOF
36878 /* end confdefs.h. */
36879 $ac_includes_default
36880 #include <$ac_header>
36882 rm -f conftest.$ac_objext
36883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36884 (eval $ac_compile) 2>conftest.er1
36886 grep -v '^ *+' conftest.er1 >conftest.err
36888 cat conftest.err >&5
36889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890 (exit $ac_status); } &&
36891 { ac_try='test -z "$ac_c_werror_flag"
36892 || test ! -s conftest.err'
36893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36894 (eval $ac_try) 2>&5
36896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897 (exit $ac_status); }; } &&
36898 { ac_try='test -s conftest.$ac_objext'
36899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36900 (eval $ac_try) 2>&5
36902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36903 (exit $ac_status); }; }; then
36904 ac_header_compiler=yes
36906 echo "$as_me: failed program was:" >&5
36907 sed 's/^/| /' conftest.$ac_ext >&5
36909 ac_header_compiler=no
36911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36913 echo "${ECHO_T}$ac_header_compiler" >&6
36915 # Is the header present?
36916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36918 cat >conftest.$ac_ext <<_ACEOF
36921 cat confdefs.h >>conftest.$ac_ext
36922 cat >>conftest.$ac_ext <<_ACEOF
36923 /* end confdefs.h. */
36924 #include <$ac_header>
36926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36929 grep -v '^ *+' conftest.er1 >conftest.err
36931 cat conftest.err >&5
36932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933 (exit $ac_status); } >/dev/null; then
36934 if test -s conftest.err; then
36935 ac_cpp_err=$ac_c_preproc_warn_flag
36936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36943 if test -z "$ac_cpp_err"; then
36944 ac_header_preproc=yes
36946 echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36949 ac_header_preproc=no
36951 rm -f conftest.err conftest.$ac_ext
36952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36953 echo "${ECHO_T}$ac_header_preproc" >&6
36955 # So? What about this header?
36956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36962 ac_header_preproc=yes
36965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36979 ## ------------------------------------------ ##
36980 ## Report this to the AC_PACKAGE_NAME lists. ##
36981 ## ------------------------------------------ ##
36984 sed "s/^/$as_me: WARNING: /" >&2
36987 echo "$as_me:$LINENO: checking for $ac_header" >&5
36988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36990 echo $ECHO_N "(cached) $ECHO_C" >&6
36992 eval "$as_ac_Header=\$ac_header_preproc"
36994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36999 cat >>confdefs.h <<_ACEOF
37000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37009 for ac_header in thread.h synch.h
37011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37013 echo "$as_me:$LINENO: checking for $ac_header" >&5
37014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37016 echo $ECHO_N "(cached) $ECHO_C" >&6
37018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37021 # Is the header compilable?
37022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37024 cat >conftest.$ac_ext <<_ACEOF
37027 cat confdefs.h >>conftest.$ac_ext
37028 cat >>conftest.$ac_ext <<_ACEOF
37029 /* end confdefs.h. */
37030 $ac_includes_default
37031 #include <$ac_header>
37033 rm -f conftest.$ac_objext
37034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37035 (eval $ac_compile) 2>conftest.er1
37037 grep -v '^ *+' conftest.er1 >conftest.err
37039 cat conftest.err >&5
37040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37041 (exit $ac_status); } &&
37042 { ac_try='test -z "$ac_c_werror_flag"
37043 || test ! -s conftest.err'
37044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37045 (eval $ac_try) 2>&5
37047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048 (exit $ac_status); }; } &&
37049 { ac_try='test -s conftest.$ac_objext'
37050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051 (eval $ac_try) 2>&5
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; }; then
37055 ac_header_compiler=yes
37057 echo "$as_me: failed program was:" >&5
37058 sed 's/^/| /' conftest.$ac_ext >&5
37060 ac_header_compiler=no
37062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37064 echo "${ECHO_T}$ac_header_compiler" >&6
37066 # Is the header present?
37067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37069 cat >conftest.$ac_ext <<_ACEOF
37072 cat confdefs.h >>conftest.$ac_ext
37073 cat >>conftest.$ac_ext <<_ACEOF
37074 /* end confdefs.h. */
37075 #include <$ac_header>
37077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37080 grep -v '^ *+' conftest.er1 >conftest.err
37082 cat conftest.err >&5
37083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); } >/dev/null; then
37085 if test -s conftest.err; then
37086 ac_cpp_err=$ac_c_preproc_warn_flag
37087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37094 if test -z "$ac_cpp_err"; then
37095 ac_header_preproc=yes
37097 echo "$as_me: failed program was:" >&5
37098 sed 's/^/| /' conftest.$ac_ext >&5
37100 ac_header_preproc=no
37102 rm -f conftest.err conftest.$ac_ext
37103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37104 echo "${ECHO_T}$ac_header_preproc" >&6
37106 # So? What about this header?
37107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37113 ac_header_preproc=yes
37116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37130 ## ------------------------------------------ ##
37131 ## Report this to the AC_PACKAGE_NAME lists. ##
37132 ## ------------------------------------------ ##
37135 sed "s/^/$as_me: WARNING: /" >&2
37138 echo "$as_me:$LINENO: checking for $ac_header" >&5
37139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37141 echo $ECHO_N "(cached) $ECHO_C" >&6
37143 eval "$as_ac_Header=\$ac_header_preproc"
37145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37150 cat >>confdefs.h <<_ACEOF
37151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37160 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37161 cat >>confdefs.h <<\_ACEOF
37162 #define REENTRANT 1
37165 cat >>confdefs.h <<\_ACEOF
37166 #define _REENTRANT 1
37169 cat >>confdefs.h <<\_ACEOF
37170 #define THREAD_SAFE 1
37173 cat >>confdefs.h <<\_ACEOF
37174 #define _THREAD_SAFE 1
37177 cat >>confdefs.h <<\_ACEOF
37178 #define THREADSAFE 1
37181 cat >>confdefs.h <<\_ACEOF
37182 #define _THREADSAFE 1
37185 cat >>confdefs.h <<\_ACEOF
37186 #define _SGI_MP_SOURCE 1
37190 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37191 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37192 if test "${ol_cv_errno_thread_specific+set}" = set; then
37193 echo $ECHO_N "(cached) $ECHO_C" >&6
37196 cat >conftest.$ac_ext <<_ACEOF
37199 cat confdefs.h >>conftest.$ac_ext
37200 cat >>conftest.$ac_ext <<_ACEOF
37201 /* end confdefs.h. */
37211 rm -f conftest.$ac_objext conftest$ac_exeext
37212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37213 (eval $ac_link) 2>conftest.er1
37215 grep -v '^ *+' conftest.er1 >conftest.err
37217 cat conftest.err >&5
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); } &&
37220 { ac_try='test -z "$ac_c_werror_flag"
37221 || test ! -s conftest.err'
37222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37223 (eval $ac_try) 2>&5
37225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37226 (exit $ac_status); }; } &&
37227 { ac_try='test -s conftest$ac_exeext'
37228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37229 (eval $ac_try) 2>&5
37231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37232 (exit $ac_status); }; }; then
37233 ol_cv_errno_thread_specific=yes
37235 echo "$as_me: failed program was:" >&5
37236 sed 's/^/| /' conftest.$ac_ext >&5
37238 ol_cv_errno_thread_specific=no
37240 rm -f conftest.err conftest.$ac_objext \
37241 conftest$ac_exeext conftest.$ac_ext
37244 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37245 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37247 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37248 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37249 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37250 echo $ECHO_N "(cached) $ECHO_C" >&6
37253 cat >conftest.$ac_ext <<_ACEOF
37256 cat confdefs.h >>conftest.$ac_ext
37257 cat >>conftest.$ac_ext <<_ACEOF
37258 /* end confdefs.h. */
37268 rm -f conftest.$ac_objext conftest$ac_exeext
37269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37270 (eval $ac_link) 2>conftest.er1
37272 grep -v '^ *+' conftest.er1 >conftest.err
37274 cat conftest.err >&5
37275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276 (exit $ac_status); } &&
37277 { ac_try='test -z "$ac_c_werror_flag"
37278 || test ! -s conftest.err'
37279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37280 (eval $ac_try) 2>&5
37282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283 (exit $ac_status); }; } &&
37284 { ac_try='test -s conftest$ac_exeext'
37285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37286 (eval $ac_try) 2>&5
37288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289 (exit $ac_status); }; }; then
37290 ol_cv_h_errno_thread_specific=yes
37292 echo "$as_me: failed program was:" >&5
37293 sed 's/^/| /' conftest.$ac_ext >&5
37295 ol_cv_h_errno_thread_specific=no
37297 rm -f conftest.err conftest.$ac_objext \
37298 conftest$ac_exeext conftest.$ac_ext
37301 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37302 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37304 if test $ol_cv_errno_thread_specific != yes \
37305 -o $ol_cv_h_errno_thread_specific != yes ; then
37306 LIBS="$LTHREAD_LIBS $LIBS"
37312 if test $ol_link_threads = no ; then
37313 if test $ol_with_threads = yes ; then
37314 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37315 echo "$as_me: error: no suitable thread support" >&2;}
37316 { (exit 1); exit 1; }; }
37319 if test $ol_with_threads = auto ; then
37320 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37321 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37326 cat >>confdefs.h <<\_ACEOF
37327 #define NO_THREADS 1
37333 if test $ol_link_threads != no ; then
37335 cat >>confdefs.h <<\_ACEOF
37336 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37346 gethostbyname_r gethostbyaddr_r \
37349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37350 echo "$as_me:$LINENO: checking for $ac_func" >&5
37351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37352 if eval "test \"\${$as_ac_var+set}\" = set"; then
37353 echo $ECHO_N "(cached) $ECHO_C" >&6
37355 cat >conftest.$ac_ext <<_ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h. */
37361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37363 #define $ac_func innocuous_$ac_func
37365 /* System header to define __stub macros and hopefully few prototypes,
37366 which can conflict with char $ac_func (); below.
37367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37368 <limits.h> exists even on freestanding compilers. */
37371 # include <limits.h>
37373 # include <assert.h>
37378 /* Override any gcc2 internal prototype to avoid an error. */
37383 /* We use char because int might match the return type of a gcc2
37384 builtin and then its argument prototype would still apply. */
37386 /* The GNU C library defines this for functions which it implements
37387 to always fail with ENOSYS. Some functions are actually named
37388 something starting with __ and the normal name is an alias. */
37389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37392 char (*f) () = $ac_func;
37401 return f != $ac_func;
37406 rm -f conftest.$ac_objext conftest$ac_exeext
37407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37408 (eval $ac_link) 2>conftest.er1
37410 grep -v '^ *+' conftest.er1 >conftest.err
37412 cat conftest.err >&5
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); } &&
37415 { ac_try='test -z "$ac_c_werror_flag"
37416 || test ! -s conftest.err'
37417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418 (eval $ac_try) 2>&5
37420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421 (exit $ac_status); }; } &&
37422 { ac_try='test -s conftest$ac_exeext'
37423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37424 (eval $ac_try) 2>&5
37426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37427 (exit $ac_status); }; }; then
37428 eval "$as_ac_var=yes"
37430 echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37433 eval "$as_ac_var=no"
37435 rm -f conftest.err conftest.$ac_objext \
37436 conftest$ac_exeext conftest.$ac_ext
37438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37440 if test `eval echo '${'$as_ac_var'}'` = yes; then
37441 cat >>confdefs.h <<_ACEOF
37442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37449 if test "$ac_cv_func_ctime_r" = no ; then
37450 ol_cv_func_ctime_r_nargs=0
37452 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37453 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37454 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37455 echo $ECHO_N "(cached) $ECHO_C" >&6
37457 cat >conftest.$ac_ext <<_ACEOF
37460 cat confdefs.h >>conftest.$ac_ext
37461 cat >>conftest.$ac_ext <<_ACEOF
37462 /* end confdefs.h. */
37467 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37472 rm -f conftest.$ac_objext
37473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37474 (eval $ac_compile) 2>conftest.er1
37476 grep -v '^ *+' conftest.er1 >conftest.err
37478 cat conftest.err >&5
37479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); } &&
37481 { ac_try='test -z "$ac_c_werror_flag"
37482 || test ! -s conftest.err'
37483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37484 (eval $ac_try) 2>&5
37486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37487 (exit $ac_status); }; } &&
37488 { ac_try='test -s conftest.$ac_objext'
37489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37490 (eval $ac_try) 2>&5
37492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493 (exit $ac_status); }; }; then
37494 ol_cv_func_ctime_r_nargs3=yes
37496 echo "$as_me: failed program was:" >&5
37497 sed 's/^/| /' conftest.$ac_ext >&5
37499 ol_cv_func_ctime_r_nargs3=no
37501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37503 cat >conftest.$ac_ext <<_ACEOF
37506 cat confdefs.h >>conftest.$ac_ext
37507 cat >>conftest.$ac_ext <<_ACEOF
37508 /* end confdefs.h. */
37513 time_t ti; char *buffer; ctime_r(&ti,buffer);
37518 rm -f conftest.$ac_objext
37519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37520 (eval $ac_compile) 2>conftest.er1
37522 grep -v '^ *+' conftest.er1 >conftest.err
37524 cat conftest.err >&5
37525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37526 (exit $ac_status); } &&
37527 { ac_try='test -z "$ac_c_werror_flag"
37528 || test ! -s conftest.err'
37529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37530 (eval $ac_try) 2>&5
37532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533 (exit $ac_status); }; } &&
37534 { ac_try='test -s conftest.$ac_objext'
37535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37536 (eval $ac_try) 2>&5
37538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37539 (exit $ac_status); }; }; then
37540 ol_cv_func_ctime_r_nargs2=yes
37542 echo "$as_me: failed program was:" >&5
37543 sed 's/^/| /' conftest.$ac_ext >&5
37545 ol_cv_func_ctime_r_nargs2=no
37547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37549 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37550 $ol_cv_func_ctime_r_nargs2 = no ; then
37552 ol_cv_func_ctime_r_nargs=3
37554 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37555 $ol_cv_func_ctime_r_nargs2 = yes ; then
37557 ol_cv_func_ctime_r_nargs=2
37560 ol_cv_func_ctime_r_nargs=0
37564 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37565 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37567 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37569 cat >>confdefs.h <<_ACEOF
37570 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37577 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37578 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37579 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37580 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37581 echo $ECHO_N "(cached) $ECHO_C" >&6
37583 cat >conftest.$ac_ext <<_ACEOF
37586 cat confdefs.h >>conftest.$ac_ext
37587 cat >>conftest.$ac_ext <<_ACEOF
37588 /* end confdefs.h. */
37589 #include <sys/types.h>
37590 #include <sys/socket.h>
37591 #include <netinet/in.h>
37593 #define BUFSIZE (sizeof(struct hostent)+10)
37597 struct hostent hent; char buffer[BUFSIZE];
37598 int bufsize=BUFSIZE;int h_errno;
37599 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37600 buffer, bufsize, &h_errno);
37605 rm -f conftest.$ac_objext
37606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37607 (eval $ac_compile) 2>conftest.er1
37609 grep -v '^ *+' conftest.er1 >conftest.err
37611 cat conftest.err >&5
37612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); } &&
37614 { ac_try='test -z "$ac_c_werror_flag"
37615 || test ! -s conftest.err'
37616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37617 (eval $ac_try) 2>&5
37619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620 (exit $ac_status); }; } &&
37621 { ac_try='test -s conftest.$ac_objext'
37622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37623 (eval $ac_try) 2>&5
37625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37626 (exit $ac_status); }; }; then
37627 ol_cv_func_gethostbyname_r_nargs5=yes
37629 echo "$as_me: failed program was:" >&5
37630 sed 's/^/| /' conftest.$ac_ext >&5
37632 ol_cv_func_gethostbyname_r_nargs5=no
37634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37636 cat >conftest.$ac_ext <<_ACEOF
37639 cat confdefs.h >>conftest.$ac_ext
37640 cat >>conftest.$ac_ext <<_ACEOF
37641 /* end confdefs.h. */
37642 #include <sys/types.h>
37643 #include <sys/socket.h>
37644 #include <netinet/in.h>
37646 #define BUFSIZE (sizeof(struct hostent)+10)
37650 struct hostent hent;struct hostent *rhent;
37651 char buffer[BUFSIZE];
37652 int bufsize=BUFSIZE;int h_errno;
37653 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37659 rm -f conftest.$ac_objext
37660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37661 (eval $ac_compile) 2>conftest.er1
37663 grep -v '^ *+' conftest.er1 >conftest.err
37665 cat conftest.err >&5
37666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667 (exit $ac_status); } &&
37668 { ac_try='test -z "$ac_c_werror_flag"
37669 || test ! -s conftest.err'
37670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671 (eval $ac_try) 2>&5
37673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674 (exit $ac_status); }; } &&
37675 { ac_try='test -s conftest.$ac_objext'
37676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37677 (eval $ac_try) 2>&5
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); }; }; then
37681 ol_cv_func_gethostbyname_r_nargs6=yes
37683 echo "$as_me: failed program was:" >&5
37684 sed 's/^/| /' conftest.$ac_ext >&5
37686 ol_cv_func_gethostbyname_r_nargs6=no
37688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37690 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37691 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37693 ol_cv_func_gethostbyname_r_nargs=5
37695 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37696 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37698 ol_cv_func_gethostbyname_r_nargs=6
37701 ol_cv_func_gethostbyname_r_nargs=0
37705 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37706 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37707 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37709 cat >>confdefs.h <<_ACEOF
37710 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37716 ol_cv_func_gethostbyname_r_nargs=0
37719 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37720 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37721 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37722 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37723 echo $ECHO_N "(cached) $ECHO_C" >&6
37725 cat >conftest.$ac_ext <<_ACEOF
37728 cat confdefs.h >>conftest.$ac_ext
37729 cat >>conftest.$ac_ext <<_ACEOF
37730 /* end confdefs.h. */
37731 #include <sys/types.h>
37732 #include <sys/socket.h>
37733 #include <netinet/in.h>
37735 #define BUFSIZE (sizeof(struct hostent)+10)
37739 struct hostent hent; char buffer[BUFSIZE];
37740 struct in_addr add;
37741 size_t alen=sizeof(struct in_addr);
37742 int bufsize=BUFSIZE;int h_errno;
37743 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37744 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37749 rm -f conftest.$ac_objext
37750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37751 (eval $ac_compile) 2>conftest.er1
37753 grep -v '^ *+' conftest.er1 >conftest.err
37755 cat conftest.err >&5
37756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757 (exit $ac_status); } &&
37758 { ac_try='test -z "$ac_c_werror_flag"
37759 || test ! -s conftest.err'
37760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37761 (eval $ac_try) 2>&5
37763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); }; } &&
37765 { ac_try='test -s conftest.$ac_objext'
37766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37767 (eval $ac_try) 2>&5
37769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770 (exit $ac_status); }; }; then
37771 ol_cv_func_gethostbyaddr_r_nargs7=yes
37773 echo "$as_me: failed program was:" >&5
37774 sed 's/^/| /' conftest.$ac_ext >&5
37776 ol_cv_func_gethostbyaddr_r_nargs7=no
37778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37780 cat >conftest.$ac_ext <<_ACEOF
37783 cat confdefs.h >>conftest.$ac_ext
37784 cat >>conftest.$ac_ext <<_ACEOF
37785 /* end confdefs.h. */
37786 #include <sys/types.h>
37787 #include <sys/socket.h>
37788 #include <netinet/in.h>
37790 #define BUFSIZE (sizeof(struct hostent)+10)
37794 struct hostent hent;
37795 struct hostent *rhent; char buffer[BUFSIZE];
37796 struct in_addr add;
37797 size_t alen=sizeof(struct in_addr);
37798 int bufsize=BUFSIZE;int h_errno;
37799 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37800 alen, AF_INET, &hent, buffer, bufsize,
37806 rm -f conftest.$ac_objext
37807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37808 (eval $ac_compile) 2>conftest.er1
37810 grep -v '^ *+' conftest.er1 >conftest.err
37812 cat conftest.err >&5
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); } &&
37815 { ac_try='test -z "$ac_c_werror_flag"
37816 || test ! -s conftest.err'
37817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37818 (eval $ac_try) 2>&5
37820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); }; } &&
37822 { ac_try='test -s conftest.$ac_objext'
37823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824 (eval $ac_try) 2>&5
37826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827 (exit $ac_status); }; }; then
37828 ol_cv_func_gethostbyaddr_r_nargs8=yes
37830 echo "$as_me: failed program was:" >&5
37831 sed 's/^/| /' conftest.$ac_ext >&5
37833 ol_cv_func_gethostbyaddr_r_nargs8=no
37835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37837 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37838 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37840 ol_cv_func_gethostbyaddr_r_nargs=7
37842 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37843 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37845 ol_cv_func_gethostbyaddr_r_nargs=8
37848 ol_cv_func_gethostbyaddr_r_nargs=0
37852 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37853 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37854 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37856 cat >>confdefs.h <<_ACEOF
37857 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37863 ol_cv_func_gethostbyaddr_r_nargs=0
37868 if test $ol_with_ldbm_api = auto \
37869 -o $ol_with_ldbm_api = berkeley \
37870 -o $ol_with_ldbm_api = bcompat ; then
37872 if test $ol_with_ldbm_api = bcompat; then \
37875 for ac_header in db_185.h db.h
37877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37879 echo "$as_me:$LINENO: checking for $ac_header" >&5
37880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37882 echo $ECHO_N "(cached) $ECHO_C" >&6
37884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37887 # Is the header compilable?
37888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37890 cat >conftest.$ac_ext <<_ACEOF
37893 cat confdefs.h >>conftest.$ac_ext
37894 cat >>conftest.$ac_ext <<_ACEOF
37895 /* end confdefs.h. */
37896 $ac_includes_default
37897 #include <$ac_header>
37899 rm -f conftest.$ac_objext
37900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37901 (eval $ac_compile) 2>conftest.er1
37903 grep -v '^ *+' conftest.er1 >conftest.err
37905 cat conftest.err >&5
37906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37907 (exit $ac_status); } &&
37908 { ac_try='test -z "$ac_c_werror_flag"
37909 || test ! -s conftest.err'
37910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37911 (eval $ac_try) 2>&5
37913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914 (exit $ac_status); }; } &&
37915 { ac_try='test -s conftest.$ac_objext'
37916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37917 (eval $ac_try) 2>&5
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); }; }; then
37921 ac_header_compiler=yes
37923 echo "$as_me: failed program was:" >&5
37924 sed 's/^/| /' conftest.$ac_ext >&5
37926 ac_header_compiler=no
37928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37930 echo "${ECHO_T}$ac_header_compiler" >&6
37932 # Is the header present?
37933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37935 cat >conftest.$ac_ext <<_ACEOF
37938 cat confdefs.h >>conftest.$ac_ext
37939 cat >>conftest.$ac_ext <<_ACEOF
37940 /* end confdefs.h. */
37941 #include <$ac_header>
37943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37946 grep -v '^ *+' conftest.er1 >conftest.err
37948 cat conftest.err >&5
37949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950 (exit $ac_status); } >/dev/null; then
37951 if test -s conftest.err; then
37952 ac_cpp_err=$ac_c_preproc_warn_flag
37953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37960 if test -z "$ac_cpp_err"; then
37961 ac_header_preproc=yes
37963 echo "$as_me: failed program was:" >&5
37964 sed 's/^/| /' conftest.$ac_ext >&5
37966 ac_header_preproc=no
37968 rm -f conftest.err conftest.$ac_ext
37969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37970 echo "${ECHO_T}$ac_header_preproc" >&6
37972 # So? What about this header?
37973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37979 ac_header_preproc=yes
37982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37996 ## ------------------------------------------ ##
37997 ## Report this to the AC_PACKAGE_NAME lists. ##
37998 ## ------------------------------------------ ##
38001 sed "s/^/$as_me: WARNING: /" >&2
38004 echo "$as_me:$LINENO: checking for $ac_header" >&5
38005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38007 echo $ECHO_N "(cached) $ECHO_C" >&6
38009 eval "$as_ac_Header=\$ac_header_preproc"
38011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38016 cat >>confdefs.h <<_ACEOF
38017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38024 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38025 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38026 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38027 if test "${ol_cv_header_db1+set}" = set; then
38028 echo $ECHO_N "(cached) $ECHO_C" >&6
38031 cat >conftest.$ac_ext <<_ACEOF
38034 cat confdefs.h >>conftest.$ac_ext
38035 cat >>conftest.$ac_ext <<_ACEOF
38036 /* end confdefs.h. */
38039 # include <db_185.h>
38044 /* this check could be improved */
38045 #ifndef DB_VERSION_MAJOR
38046 # define DB_VERSION_MAJOR 1
38049 #if DB_VERSION_MAJOR == 1
38054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38055 $EGREP "__db_version_1" >/dev/null 2>&1; then
38056 ol_cv_header_db1=yes
38058 ol_cv_header_db1=no
38063 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38064 echo "${ECHO_T}$ol_cv_header_db1" >&6
38066 if test $ol_cv_header_db1 = yes ; then
38068 if test $ol_cv_lib_db = no ; then
38069 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38070 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38071 if test "${ol_cv_db_none+set}" = set; then
38072 echo $ECHO_N "(cached) $ECHO_C" >&6
38077 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38079 cat >conftest.$ac_ext <<_ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h. */
38086 #ifdef HAVE_DB_185_H
38087 # include <db_185.h>
38092 #ifndef DB_VERSION_MAJOR
38093 # define DB_VERSION_MAJOR 1
38097 #define NULL ((void*)0)
38104 #if DB_VERSION_MAJOR > 1
38107 int major, minor, patch;
38109 version = db_version( &major, &minor, &patch );
38111 if( major != DB_VERSION_MAJOR ||
38112 minor < DB_VERSION_MINOR )
38114 printf("Berkeley DB version mismatch\n"
38115 "\theader: %s\n\tlibrary: %s\n",
38116 DB_VERSION_STRING, version);
38122 #if DB_VERSION_MAJOR > 2
38123 db_env_create( NULL, 0 );
38124 #elif DB_VERSION_MAJOR > 1
38125 db_appexit( NULL );
38127 (void) dbopen( NULL, 0, 0, 0, NULL);
38134 rm -f conftest.$ac_objext conftest$ac_exeext
38135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38136 (eval $ac_link) 2>conftest.er1
38138 grep -v '^ *+' conftest.er1 >conftest.err
38140 cat conftest.err >&5
38141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142 (exit $ac_status); } &&
38143 { ac_try='test -z "$ac_c_werror_flag"
38144 || test ! -s conftest.err'
38145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38146 (eval $ac_try) 2>&5
38148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38149 (exit $ac_status); }; } &&
38150 { ac_try='test -s conftest$ac_exeext'
38151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38152 (eval $ac_try) 2>&5
38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 (exit $ac_status); }; }; then
38158 echo "$as_me: failed program was:" >&5
38159 sed 's/^/| /' conftest.$ac_ext >&5
38163 rm -f conftest.err conftest.$ac_objext \
38164 conftest$ac_exeext conftest.$ac_ext
38169 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38170 echo "${ECHO_T}$ol_cv_db_none" >&6
38172 if test $ol_cv_db_none = yes ; then
38177 if test $ol_cv_lib_db = no ; then
38178 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38179 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38180 if test "${ol_cv_db_db43+set}" = set; then
38181 echo $ECHO_N "(cached) $ECHO_C" >&6
38186 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38188 cat >conftest.$ac_ext <<_ACEOF
38191 cat confdefs.h >>conftest.$ac_ext
38192 cat >>conftest.$ac_ext <<_ACEOF
38193 /* end confdefs.h. */
38195 #ifdef HAVE_DB_185_H
38196 # include <db_185.h>
38201 #ifndef DB_VERSION_MAJOR
38202 # define DB_VERSION_MAJOR 1
38206 #define NULL ((void*)0)
38213 #if DB_VERSION_MAJOR > 1
38216 int major, minor, patch;
38218 version = db_version( &major, &minor, &patch );
38220 if( major != DB_VERSION_MAJOR ||
38221 minor < DB_VERSION_MINOR )
38223 printf("Berkeley DB version mismatch\n"
38224 "\theader: %s\n\tlibrary: %s\n",
38225 DB_VERSION_STRING, version);
38231 #if DB_VERSION_MAJOR > 2
38232 db_env_create( NULL, 0 );
38233 #elif DB_VERSION_MAJOR > 1
38234 db_appexit( NULL );
38236 (void) dbopen( NULL, 0, 0, 0, NULL);
38243 rm -f conftest.$ac_objext conftest$ac_exeext
38244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38245 (eval $ac_link) 2>conftest.er1
38247 grep -v '^ *+' conftest.er1 >conftest.err
38249 cat conftest.err >&5
38250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251 (exit $ac_status); } &&
38252 { ac_try='test -z "$ac_c_werror_flag"
38253 || test ! -s conftest.err'
38254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38255 (eval $ac_try) 2>&5
38257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258 (exit $ac_status); }; } &&
38259 { ac_try='test -s conftest$ac_exeext'
38260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38261 (eval $ac_try) 2>&5
38263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264 (exit $ac_status); }; }; then
38267 echo "$as_me: failed program was:" >&5
38268 sed 's/^/| /' conftest.$ac_ext >&5
38272 rm -f conftest.err conftest.$ac_objext \
38273 conftest$ac_exeext conftest.$ac_ext
38278 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38279 echo "${ECHO_T}$ol_cv_db_db43" >&6
38281 if test $ol_cv_db_db43 = yes ; then
38282 ol_cv_lib_db=-ldb43
38286 if test $ol_cv_lib_db = no ; then
38287 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38288 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38289 if test "${ol_cv_db_db_43+set}" = set; then
38290 echo $ECHO_N "(cached) $ECHO_C" >&6
38295 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38297 cat >conftest.$ac_ext <<_ACEOF
38300 cat confdefs.h >>conftest.$ac_ext
38301 cat >>conftest.$ac_ext <<_ACEOF
38302 /* end confdefs.h. */
38304 #ifdef HAVE_DB_185_H
38305 # include <db_185.h>
38310 #ifndef DB_VERSION_MAJOR
38311 # define DB_VERSION_MAJOR 1
38315 #define NULL ((void*)0)
38322 #if DB_VERSION_MAJOR > 1
38325 int major, minor, patch;
38327 version = db_version( &major, &minor, &patch );
38329 if( major != DB_VERSION_MAJOR ||
38330 minor < DB_VERSION_MINOR )
38332 printf("Berkeley DB version mismatch\n"
38333 "\theader: %s\n\tlibrary: %s\n",
38334 DB_VERSION_STRING, version);
38340 #if DB_VERSION_MAJOR > 2
38341 db_env_create( NULL, 0 );
38342 #elif DB_VERSION_MAJOR > 1
38343 db_appexit( NULL );
38345 (void) dbopen( NULL, 0, 0, 0, NULL);
38352 rm -f conftest.$ac_objext conftest$ac_exeext
38353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38354 (eval $ac_link) 2>conftest.er1
38356 grep -v '^ *+' conftest.er1 >conftest.err
38358 cat conftest.err >&5
38359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360 (exit $ac_status); } &&
38361 { ac_try='test -z "$ac_c_werror_flag"
38362 || test ! -s conftest.err'
38363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38364 (eval $ac_try) 2>&5
38366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367 (exit $ac_status); }; } &&
38368 { ac_try='test -s conftest$ac_exeext'
38369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370 (eval $ac_try) 2>&5
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); }; }; then
38376 echo "$as_me: failed program was:" >&5
38377 sed 's/^/| /' conftest.$ac_ext >&5
38381 rm -f conftest.err conftest.$ac_objext \
38382 conftest$ac_exeext conftest.$ac_ext
38387 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38388 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38390 if test $ol_cv_db_db_43 = yes ; then
38391 ol_cv_lib_db=-ldb-43
38395 if test $ol_cv_lib_db = no ; then
38396 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38397 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38398 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38399 echo $ECHO_N "(cached) $ECHO_C" >&6
38404 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38406 cat >conftest.$ac_ext <<_ACEOF
38409 cat confdefs.h >>conftest.$ac_ext
38410 cat >>conftest.$ac_ext <<_ACEOF
38411 /* end confdefs.h. */
38413 #ifdef HAVE_DB_185_H
38414 # include <db_185.h>
38419 #ifndef DB_VERSION_MAJOR
38420 # define DB_VERSION_MAJOR 1
38424 #define NULL ((void*)0)
38431 #if DB_VERSION_MAJOR > 1
38434 int major, minor, patch;
38436 version = db_version( &major, &minor, &patch );
38438 if( major != DB_VERSION_MAJOR ||
38439 minor < DB_VERSION_MINOR )
38441 printf("Berkeley DB version mismatch\n"
38442 "\theader: %s\n\tlibrary: %s\n",
38443 DB_VERSION_STRING, version);
38449 #if DB_VERSION_MAJOR > 2
38450 db_env_create( NULL, 0 );
38451 #elif DB_VERSION_MAJOR > 1
38452 db_appexit( NULL );
38454 (void) dbopen( NULL, 0, 0, 0, NULL);
38461 rm -f conftest.$ac_objext conftest$ac_exeext
38462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38463 (eval $ac_link) 2>conftest.er1
38465 grep -v '^ *+' conftest.er1 >conftest.err
38467 cat conftest.err >&5
38468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469 (exit $ac_status); } &&
38470 { ac_try='test -z "$ac_c_werror_flag"
38471 || test ! -s conftest.err'
38472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38473 (eval $ac_try) 2>&5
38475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476 (exit $ac_status); }; } &&
38477 { ac_try='test -s conftest$ac_exeext'
38478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38479 (eval $ac_try) 2>&5
38481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482 (exit $ac_status); }; }; then
38483 ol_cv_db_db_4_dot_3=yes
38485 echo "$as_me: failed program was:" >&5
38486 sed 's/^/| /' conftest.$ac_ext >&5
38488 ol_cv_db_db_4_dot_3=no
38490 rm -f conftest.err conftest.$ac_objext \
38491 conftest$ac_exeext conftest.$ac_ext
38496 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38497 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38499 if test $ol_cv_db_db_4_dot_3 = yes ; then
38500 ol_cv_lib_db=-ldb-4.3
38504 if test $ol_cv_lib_db = no ; then
38505 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38506 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38507 if test "${ol_cv_db_db_4_3+set}" = set; then
38508 echo $ECHO_N "(cached) $ECHO_C" >&6
38513 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38515 cat >conftest.$ac_ext <<_ACEOF
38518 cat confdefs.h >>conftest.$ac_ext
38519 cat >>conftest.$ac_ext <<_ACEOF
38520 /* end confdefs.h. */
38522 #ifdef HAVE_DB_185_H
38523 # include <db_185.h>
38528 #ifndef DB_VERSION_MAJOR
38529 # define DB_VERSION_MAJOR 1
38533 #define NULL ((void*)0)
38540 #if DB_VERSION_MAJOR > 1
38543 int major, minor, patch;
38545 version = db_version( &major, &minor, &patch );
38547 if( major != DB_VERSION_MAJOR ||
38548 minor < DB_VERSION_MINOR )
38550 printf("Berkeley DB version mismatch\n"
38551 "\theader: %s\n\tlibrary: %s\n",
38552 DB_VERSION_STRING, version);
38558 #if DB_VERSION_MAJOR > 2
38559 db_env_create( NULL, 0 );
38560 #elif DB_VERSION_MAJOR > 1
38561 db_appexit( NULL );
38563 (void) dbopen( NULL, 0, 0, 0, NULL);
38570 rm -f conftest.$ac_objext conftest$ac_exeext
38571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38572 (eval $ac_link) 2>conftest.er1
38574 grep -v '^ *+' conftest.er1 >conftest.err
38576 cat conftest.err >&5
38577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578 (exit $ac_status); } &&
38579 { ac_try='test -z "$ac_c_werror_flag"
38580 || test ! -s conftest.err'
38581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38582 (eval $ac_try) 2>&5
38584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38585 (exit $ac_status); }; } &&
38586 { ac_try='test -s conftest$ac_exeext'
38587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38588 (eval $ac_try) 2>&5
38590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38591 (exit $ac_status); }; }; then
38592 ol_cv_db_db_4_3=yes
38594 echo "$as_me: failed program was:" >&5
38595 sed 's/^/| /' conftest.$ac_ext >&5
38599 rm -f conftest.err conftest.$ac_objext \
38600 conftest$ac_exeext conftest.$ac_ext
38605 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38606 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38608 if test $ol_cv_db_db_4_3 = yes ; then
38609 ol_cv_lib_db=-ldb-4-3
38613 if test $ol_cv_lib_db = no ; then
38614 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38615 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38616 if test "${ol_cv_db_db42+set}" = set; then
38617 echo $ECHO_N "(cached) $ECHO_C" >&6
38622 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38624 cat >conftest.$ac_ext <<_ACEOF
38627 cat confdefs.h >>conftest.$ac_ext
38628 cat >>conftest.$ac_ext <<_ACEOF
38629 /* end confdefs.h. */
38631 #ifdef HAVE_DB_185_H
38632 # include <db_185.h>
38637 #ifndef DB_VERSION_MAJOR
38638 # define DB_VERSION_MAJOR 1
38642 #define NULL ((void*)0)
38649 #if DB_VERSION_MAJOR > 1
38652 int major, minor, patch;
38654 version = db_version( &major, &minor, &patch );
38656 if( major != DB_VERSION_MAJOR ||
38657 minor < DB_VERSION_MINOR )
38659 printf("Berkeley DB version mismatch\n"
38660 "\theader: %s\n\tlibrary: %s\n",
38661 DB_VERSION_STRING, version);
38667 #if DB_VERSION_MAJOR > 2
38668 db_env_create( NULL, 0 );
38669 #elif DB_VERSION_MAJOR > 1
38670 db_appexit( NULL );
38672 (void) dbopen( NULL, 0, 0, 0, NULL);
38679 rm -f conftest.$ac_objext conftest$ac_exeext
38680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38681 (eval $ac_link) 2>conftest.er1
38683 grep -v '^ *+' conftest.er1 >conftest.err
38685 cat conftest.err >&5
38686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687 (exit $ac_status); } &&
38688 { ac_try='test -z "$ac_c_werror_flag"
38689 || test ! -s conftest.err'
38690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38691 (eval $ac_try) 2>&5
38693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694 (exit $ac_status); }; } &&
38695 { ac_try='test -s conftest$ac_exeext'
38696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38697 (eval $ac_try) 2>&5
38699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700 (exit $ac_status); }; }; then
38703 echo "$as_me: failed program was:" >&5
38704 sed 's/^/| /' conftest.$ac_ext >&5
38708 rm -f conftest.err conftest.$ac_objext \
38709 conftest$ac_exeext conftest.$ac_ext
38714 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38715 echo "${ECHO_T}$ol_cv_db_db42" >&6
38717 if test $ol_cv_db_db42 = yes ; then
38718 ol_cv_lib_db=-ldb42
38722 if test $ol_cv_lib_db = no ; then
38723 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38724 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38725 if test "${ol_cv_db_db_42+set}" = set; then
38726 echo $ECHO_N "(cached) $ECHO_C" >&6
38731 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38733 cat >conftest.$ac_ext <<_ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h. */
38740 #ifdef HAVE_DB_185_H
38741 # include <db_185.h>
38746 #ifndef DB_VERSION_MAJOR
38747 # define DB_VERSION_MAJOR 1
38751 #define NULL ((void*)0)
38758 #if DB_VERSION_MAJOR > 1
38761 int major, minor, patch;
38763 version = db_version( &major, &minor, &patch );
38765 if( major != DB_VERSION_MAJOR ||
38766 minor < DB_VERSION_MINOR )
38768 printf("Berkeley DB version mismatch\n"
38769 "\theader: %s\n\tlibrary: %s\n",
38770 DB_VERSION_STRING, version);
38776 #if DB_VERSION_MAJOR > 2
38777 db_env_create( NULL, 0 );
38778 #elif DB_VERSION_MAJOR > 1
38779 db_appexit( NULL );
38781 (void) dbopen( NULL, 0, 0, 0, NULL);
38788 rm -f conftest.$ac_objext conftest$ac_exeext
38789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38790 (eval $ac_link) 2>conftest.er1
38792 grep -v '^ *+' conftest.er1 >conftest.err
38794 cat conftest.err >&5
38795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38796 (exit $ac_status); } &&
38797 { ac_try='test -z "$ac_c_werror_flag"
38798 || test ! -s conftest.err'
38799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38800 (eval $ac_try) 2>&5
38802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803 (exit $ac_status); }; } &&
38804 { ac_try='test -s conftest$ac_exeext'
38805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38806 (eval $ac_try) 2>&5
38808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38809 (exit $ac_status); }; }; then
38812 echo "$as_me: failed program was:" >&5
38813 sed 's/^/| /' conftest.$ac_ext >&5
38817 rm -f conftest.err conftest.$ac_objext \
38818 conftest$ac_exeext conftest.$ac_ext
38823 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38824 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38826 if test $ol_cv_db_db_42 = yes ; then
38827 ol_cv_lib_db=-ldb-42
38831 if test $ol_cv_lib_db = no ; then
38832 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38833 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38834 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38835 echo $ECHO_N "(cached) $ECHO_C" >&6
38840 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38842 cat >conftest.$ac_ext <<_ACEOF
38845 cat confdefs.h >>conftest.$ac_ext
38846 cat >>conftest.$ac_ext <<_ACEOF
38847 /* end confdefs.h. */
38849 #ifdef HAVE_DB_185_H
38850 # include <db_185.h>
38855 #ifndef DB_VERSION_MAJOR
38856 # define DB_VERSION_MAJOR 1
38860 #define NULL ((void*)0)
38867 #if DB_VERSION_MAJOR > 1
38870 int major, minor, patch;
38872 version = db_version( &major, &minor, &patch );
38874 if( major != DB_VERSION_MAJOR ||
38875 minor < DB_VERSION_MINOR )
38877 printf("Berkeley DB version mismatch\n"
38878 "\theader: %s\n\tlibrary: %s\n",
38879 DB_VERSION_STRING, version);
38885 #if DB_VERSION_MAJOR > 2
38886 db_env_create( NULL, 0 );
38887 #elif DB_VERSION_MAJOR > 1
38888 db_appexit( NULL );
38890 (void) dbopen( NULL, 0, 0, 0, NULL);
38897 rm -f conftest.$ac_objext conftest$ac_exeext
38898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38899 (eval $ac_link) 2>conftest.er1
38901 grep -v '^ *+' conftest.er1 >conftest.err
38903 cat conftest.err >&5
38904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905 (exit $ac_status); } &&
38906 { ac_try='test -z "$ac_c_werror_flag"
38907 || test ! -s conftest.err'
38908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38909 (eval $ac_try) 2>&5
38911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912 (exit $ac_status); }; } &&
38913 { ac_try='test -s conftest$ac_exeext'
38914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38915 (eval $ac_try) 2>&5
38917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918 (exit $ac_status); }; }; then
38919 ol_cv_db_db_4_dot_2=yes
38921 echo "$as_me: failed program was:" >&5
38922 sed 's/^/| /' conftest.$ac_ext >&5
38924 ol_cv_db_db_4_dot_2=no
38926 rm -f conftest.err conftest.$ac_objext \
38927 conftest$ac_exeext conftest.$ac_ext
38932 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38933 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38935 if test $ol_cv_db_db_4_dot_2 = yes ; then
38936 ol_cv_lib_db=-ldb-4.2
38940 if test $ol_cv_lib_db = no ; then
38941 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38942 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38943 if test "${ol_cv_db_db_4_2+set}" = set; then
38944 echo $ECHO_N "(cached) $ECHO_C" >&6
38949 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38951 cat >conftest.$ac_ext <<_ACEOF
38954 cat confdefs.h >>conftest.$ac_ext
38955 cat >>conftest.$ac_ext <<_ACEOF
38956 /* end confdefs.h. */
38958 #ifdef HAVE_DB_185_H
38959 # include <db_185.h>
38964 #ifndef DB_VERSION_MAJOR
38965 # define DB_VERSION_MAJOR 1
38969 #define NULL ((void*)0)
38976 #if DB_VERSION_MAJOR > 1
38979 int major, minor, patch;
38981 version = db_version( &major, &minor, &patch );
38983 if( major != DB_VERSION_MAJOR ||
38984 minor < DB_VERSION_MINOR )
38986 printf("Berkeley DB version mismatch\n"
38987 "\theader: %s\n\tlibrary: %s\n",
38988 DB_VERSION_STRING, version);
38994 #if DB_VERSION_MAJOR > 2
38995 db_env_create( NULL, 0 );
38996 #elif DB_VERSION_MAJOR > 1
38997 db_appexit( NULL );
38999 (void) dbopen( NULL, 0, 0, 0, NULL);
39006 rm -f conftest.$ac_objext conftest$ac_exeext
39007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39008 (eval $ac_link) 2>conftest.er1
39010 grep -v '^ *+' conftest.er1 >conftest.err
39012 cat conftest.err >&5
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); } &&
39015 { ac_try='test -z "$ac_c_werror_flag"
39016 || test ! -s conftest.err'
39017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018 (eval $ac_try) 2>&5
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); }; } &&
39022 { ac_try='test -s conftest$ac_exeext'
39023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39024 (eval $ac_try) 2>&5
39026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027 (exit $ac_status); }; }; then
39028 ol_cv_db_db_4_2=yes
39030 echo "$as_me: failed program was:" >&5
39031 sed 's/^/| /' conftest.$ac_ext >&5
39035 rm -f conftest.err conftest.$ac_objext \
39036 conftest$ac_exeext conftest.$ac_ext
39041 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39042 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39044 if test $ol_cv_db_db_4_2 = yes ; then
39045 ol_cv_lib_db=-ldb-4-2
39049 if test $ol_cv_lib_db = no ; then
39050 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39051 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39052 if test "${ol_cv_db_db_4+set}" = set; then
39053 echo $ECHO_N "(cached) $ECHO_C" >&6
39058 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39060 cat >conftest.$ac_ext <<_ACEOF
39063 cat confdefs.h >>conftest.$ac_ext
39064 cat >>conftest.$ac_ext <<_ACEOF
39065 /* end confdefs.h. */
39067 #ifdef HAVE_DB_185_H
39068 # include <db_185.h>
39073 #ifndef DB_VERSION_MAJOR
39074 # define DB_VERSION_MAJOR 1
39078 #define NULL ((void*)0)
39085 #if DB_VERSION_MAJOR > 1
39088 int major, minor, patch;
39090 version = db_version( &major, &minor, &patch );
39092 if( major != DB_VERSION_MAJOR ||
39093 minor < DB_VERSION_MINOR )
39095 printf("Berkeley DB version mismatch\n"
39096 "\theader: %s\n\tlibrary: %s\n",
39097 DB_VERSION_STRING, version);
39103 #if DB_VERSION_MAJOR > 2
39104 db_env_create( NULL, 0 );
39105 #elif DB_VERSION_MAJOR > 1
39106 db_appexit( NULL );
39108 (void) dbopen( NULL, 0, 0, 0, NULL);
39115 rm -f conftest.$ac_objext conftest$ac_exeext
39116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39117 (eval $ac_link) 2>conftest.er1
39119 grep -v '^ *+' conftest.er1 >conftest.err
39121 cat conftest.err >&5
39122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); } &&
39124 { ac_try='test -z "$ac_c_werror_flag"
39125 || test ! -s conftest.err'
39126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127 (eval $ac_try) 2>&5
39129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); }; } &&
39131 { ac_try='test -s conftest$ac_exeext'
39132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39133 (eval $ac_try) 2>&5
39135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136 (exit $ac_status); }; }; then
39139 echo "$as_me: failed program was:" >&5
39140 sed 's/^/| /' conftest.$ac_ext >&5
39144 rm -f conftest.err conftest.$ac_objext \
39145 conftest$ac_exeext conftest.$ac_ext
39150 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39151 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39153 if test $ol_cv_db_db_4 = yes ; then
39154 ol_cv_lib_db=-ldb-4
39158 if test $ol_cv_lib_db = no ; then
39159 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39160 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39161 if test "${ol_cv_db_db4+set}" = set; then
39162 echo $ECHO_N "(cached) $ECHO_C" >&6
39167 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39169 cat >conftest.$ac_ext <<_ACEOF
39172 cat confdefs.h >>conftest.$ac_ext
39173 cat >>conftest.$ac_ext <<_ACEOF
39174 /* end confdefs.h. */
39176 #ifdef HAVE_DB_185_H
39177 # include <db_185.h>
39182 #ifndef DB_VERSION_MAJOR
39183 # define DB_VERSION_MAJOR 1
39187 #define NULL ((void*)0)
39194 #if DB_VERSION_MAJOR > 1
39197 int major, minor, patch;
39199 version = db_version( &major, &minor, &patch );
39201 if( major != DB_VERSION_MAJOR ||
39202 minor < DB_VERSION_MINOR )
39204 printf("Berkeley DB version mismatch\n"
39205 "\theader: %s\n\tlibrary: %s\n",
39206 DB_VERSION_STRING, version);
39212 #if DB_VERSION_MAJOR > 2
39213 db_env_create( NULL, 0 );
39214 #elif DB_VERSION_MAJOR > 1
39215 db_appexit( NULL );
39217 (void) dbopen( NULL, 0, 0, 0, NULL);
39224 rm -f conftest.$ac_objext conftest$ac_exeext
39225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39226 (eval $ac_link) 2>conftest.er1
39228 grep -v '^ *+' conftest.er1 >conftest.err
39230 cat conftest.err >&5
39231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232 (exit $ac_status); } &&
39233 { ac_try='test -z "$ac_c_werror_flag"
39234 || test ! -s conftest.err'
39235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39236 (eval $ac_try) 2>&5
39238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239 (exit $ac_status); }; } &&
39240 { ac_try='test -s conftest$ac_exeext'
39241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39242 (eval $ac_try) 2>&5
39244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); }; }; then
39248 echo "$as_me: failed program was:" >&5
39249 sed 's/^/| /' conftest.$ac_ext >&5
39253 rm -f conftest.err conftest.$ac_objext \
39254 conftest$ac_exeext conftest.$ac_ext
39259 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39260 echo "${ECHO_T}$ol_cv_db_db4" >&6
39262 if test $ol_cv_db_db4 = yes ; then
39267 if test $ol_cv_lib_db = no ; then
39268 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39269 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39270 if test "${ol_cv_db_db+set}" = set; then
39271 echo $ECHO_N "(cached) $ECHO_C" >&6
39276 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39278 cat >conftest.$ac_ext <<_ACEOF
39281 cat confdefs.h >>conftest.$ac_ext
39282 cat >>conftest.$ac_ext <<_ACEOF
39283 /* end confdefs.h. */
39285 #ifdef HAVE_DB_185_H
39286 # include <db_185.h>
39291 #ifndef DB_VERSION_MAJOR
39292 # define DB_VERSION_MAJOR 1
39296 #define NULL ((void*)0)
39303 #if DB_VERSION_MAJOR > 1
39306 int major, minor, patch;
39308 version = db_version( &major, &minor, &patch );
39310 if( major != DB_VERSION_MAJOR ||
39311 minor < DB_VERSION_MINOR )
39313 printf("Berkeley DB version mismatch\n"
39314 "\theader: %s\n\tlibrary: %s\n",
39315 DB_VERSION_STRING, version);
39321 #if DB_VERSION_MAJOR > 2
39322 db_env_create( NULL, 0 );
39323 #elif DB_VERSION_MAJOR > 1
39324 db_appexit( NULL );
39326 (void) dbopen( NULL, 0, 0, 0, NULL);
39333 rm -f conftest.$ac_objext conftest$ac_exeext
39334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39335 (eval $ac_link) 2>conftest.er1
39337 grep -v '^ *+' conftest.er1 >conftest.err
39339 cat conftest.err >&5
39340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39341 (exit $ac_status); } &&
39342 { ac_try='test -z "$ac_c_werror_flag"
39343 || test ! -s conftest.err'
39344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39345 (eval $ac_try) 2>&5
39347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39348 (exit $ac_status); }; } &&
39349 { ac_try='test -s conftest$ac_exeext'
39350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39351 (eval $ac_try) 2>&5
39353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39354 (exit $ac_status); }; }; then
39357 echo "$as_me: failed program was:" >&5
39358 sed 's/^/| /' conftest.$ac_ext >&5
39362 rm -f conftest.err conftest.$ac_objext \
39363 conftest$ac_exeext conftest.$ac_ext
39368 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39369 echo "${ECHO_T}$ol_cv_db_db" >&6
39371 if test $ol_cv_db_db = yes ; then
39376 if test $ol_cv_lib_db = no ; then
39377 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39378 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39379 if test "${ol_cv_db_db41+set}" = set; then
39380 echo $ECHO_N "(cached) $ECHO_C" >&6
39385 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39387 cat >conftest.$ac_ext <<_ACEOF
39390 cat confdefs.h >>conftest.$ac_ext
39391 cat >>conftest.$ac_ext <<_ACEOF
39392 /* end confdefs.h. */
39394 #ifdef HAVE_DB_185_H
39395 # include <db_185.h>
39400 #ifndef DB_VERSION_MAJOR
39401 # define DB_VERSION_MAJOR 1
39405 #define NULL ((void*)0)
39412 #if DB_VERSION_MAJOR > 1
39415 int major, minor, patch;
39417 version = db_version( &major, &minor, &patch );
39419 if( major != DB_VERSION_MAJOR ||
39420 minor < DB_VERSION_MINOR )
39422 printf("Berkeley DB version mismatch\n"
39423 "\theader: %s\n\tlibrary: %s\n",
39424 DB_VERSION_STRING, version);
39430 #if DB_VERSION_MAJOR > 2
39431 db_env_create( NULL, 0 );
39432 #elif DB_VERSION_MAJOR > 1
39433 db_appexit( NULL );
39435 (void) dbopen( NULL, 0, 0, 0, NULL);
39442 rm -f conftest.$ac_objext conftest$ac_exeext
39443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39444 (eval $ac_link) 2>conftest.er1
39446 grep -v '^ *+' conftest.er1 >conftest.err
39448 cat conftest.err >&5
39449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39450 (exit $ac_status); } &&
39451 { ac_try='test -z "$ac_c_werror_flag"
39452 || test ! -s conftest.err'
39453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39454 (eval $ac_try) 2>&5
39456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39457 (exit $ac_status); }; } &&
39458 { ac_try='test -s conftest$ac_exeext'
39459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39460 (eval $ac_try) 2>&5
39462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39463 (exit $ac_status); }; }; then
39466 echo "$as_me: failed program was:" >&5
39467 sed 's/^/| /' conftest.$ac_ext >&5
39471 rm -f conftest.err conftest.$ac_objext \
39472 conftest$ac_exeext conftest.$ac_ext
39477 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39478 echo "${ECHO_T}$ol_cv_db_db41" >&6
39480 if test $ol_cv_db_db41 = yes ; then
39481 ol_cv_lib_db=-ldb41
39485 if test $ol_cv_lib_db = no ; then
39486 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39487 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39488 if test "${ol_cv_db_db_41+set}" = set; then
39489 echo $ECHO_N "(cached) $ECHO_C" >&6
39494 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39496 cat >conftest.$ac_ext <<_ACEOF
39499 cat confdefs.h >>conftest.$ac_ext
39500 cat >>conftest.$ac_ext <<_ACEOF
39501 /* end confdefs.h. */
39503 #ifdef HAVE_DB_185_H
39504 # include <db_185.h>
39509 #ifndef DB_VERSION_MAJOR
39510 # define DB_VERSION_MAJOR 1
39514 #define NULL ((void*)0)
39521 #if DB_VERSION_MAJOR > 1
39524 int major, minor, patch;
39526 version = db_version( &major, &minor, &patch );
39528 if( major != DB_VERSION_MAJOR ||
39529 minor < DB_VERSION_MINOR )
39531 printf("Berkeley DB version mismatch\n"
39532 "\theader: %s\n\tlibrary: %s\n",
39533 DB_VERSION_STRING, version);
39539 #if DB_VERSION_MAJOR > 2
39540 db_env_create( NULL, 0 );
39541 #elif DB_VERSION_MAJOR > 1
39542 db_appexit( NULL );
39544 (void) dbopen( NULL, 0, 0, 0, NULL);
39551 rm -f conftest.$ac_objext conftest$ac_exeext
39552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39553 (eval $ac_link) 2>conftest.er1
39555 grep -v '^ *+' conftest.er1 >conftest.err
39557 cat conftest.err >&5
39558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559 (exit $ac_status); } &&
39560 { ac_try='test -z "$ac_c_werror_flag"
39561 || test ! -s conftest.err'
39562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39563 (eval $ac_try) 2>&5
39565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39566 (exit $ac_status); }; } &&
39567 { ac_try='test -s conftest$ac_exeext'
39568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39569 (eval $ac_try) 2>&5
39571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39572 (exit $ac_status); }; }; then
39575 echo "$as_me: failed program was:" >&5
39576 sed 's/^/| /' conftest.$ac_ext >&5
39580 rm -f conftest.err conftest.$ac_objext \
39581 conftest$ac_exeext conftest.$ac_ext
39586 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39587 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39589 if test $ol_cv_db_db_41 = yes ; then
39590 ol_cv_lib_db=-ldb-41
39594 if test $ol_cv_lib_db = no ; then
39595 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39596 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39597 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39598 echo $ECHO_N "(cached) $ECHO_C" >&6
39603 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39605 cat >conftest.$ac_ext <<_ACEOF
39608 cat confdefs.h >>conftest.$ac_ext
39609 cat >>conftest.$ac_ext <<_ACEOF
39610 /* end confdefs.h. */
39612 #ifdef HAVE_DB_185_H
39613 # include <db_185.h>
39618 #ifndef DB_VERSION_MAJOR
39619 # define DB_VERSION_MAJOR 1
39623 #define NULL ((void*)0)
39630 #if DB_VERSION_MAJOR > 1
39633 int major, minor, patch;
39635 version = db_version( &major, &minor, &patch );
39637 if( major != DB_VERSION_MAJOR ||
39638 minor < DB_VERSION_MINOR )
39640 printf("Berkeley DB version mismatch\n"
39641 "\theader: %s\n\tlibrary: %s\n",
39642 DB_VERSION_STRING, version);
39648 #if DB_VERSION_MAJOR > 2
39649 db_env_create( NULL, 0 );
39650 #elif DB_VERSION_MAJOR > 1
39651 db_appexit( NULL );
39653 (void) dbopen( NULL, 0, 0, 0, NULL);
39660 rm -f conftest.$ac_objext conftest$ac_exeext
39661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39662 (eval $ac_link) 2>conftest.er1
39664 grep -v '^ *+' conftest.er1 >conftest.err
39666 cat conftest.err >&5
39667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668 (exit $ac_status); } &&
39669 { ac_try='test -z "$ac_c_werror_flag"
39670 || test ! -s conftest.err'
39671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39672 (eval $ac_try) 2>&5
39674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675 (exit $ac_status); }; } &&
39676 { ac_try='test -s conftest$ac_exeext'
39677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39678 (eval $ac_try) 2>&5
39680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681 (exit $ac_status); }; }; then
39682 ol_cv_db_db_4_dot_1=yes
39684 echo "$as_me: failed program was:" >&5
39685 sed 's/^/| /' conftest.$ac_ext >&5
39687 ol_cv_db_db_4_dot_1=no
39689 rm -f conftest.err conftest.$ac_objext \
39690 conftest$ac_exeext conftest.$ac_ext
39695 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39696 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39698 if test $ol_cv_db_db_4_dot_1 = yes ; then
39699 ol_cv_lib_db=-ldb-4.1
39703 if test $ol_cv_lib_db = no ; then
39704 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39705 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39706 if test "${ol_cv_db_db_4_1+set}" = set; then
39707 echo $ECHO_N "(cached) $ECHO_C" >&6
39712 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39714 cat >conftest.$ac_ext <<_ACEOF
39717 cat confdefs.h >>conftest.$ac_ext
39718 cat >>conftest.$ac_ext <<_ACEOF
39719 /* end confdefs.h. */
39721 #ifdef HAVE_DB_185_H
39722 # include <db_185.h>
39727 #ifndef DB_VERSION_MAJOR
39728 # define DB_VERSION_MAJOR 1
39732 #define NULL ((void*)0)
39739 #if DB_VERSION_MAJOR > 1
39742 int major, minor, patch;
39744 version = db_version( &major, &minor, &patch );
39746 if( major != DB_VERSION_MAJOR ||
39747 minor < DB_VERSION_MINOR )
39749 printf("Berkeley DB version mismatch\n"
39750 "\theader: %s\n\tlibrary: %s\n",
39751 DB_VERSION_STRING, version);
39757 #if DB_VERSION_MAJOR > 2
39758 db_env_create( NULL, 0 );
39759 #elif DB_VERSION_MAJOR > 1
39760 db_appexit( NULL );
39762 (void) dbopen( NULL, 0, 0, 0, NULL);
39769 rm -f conftest.$ac_objext conftest$ac_exeext
39770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39771 (eval $ac_link) 2>conftest.er1
39773 grep -v '^ *+' conftest.er1 >conftest.err
39775 cat conftest.err >&5
39776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777 (exit $ac_status); } &&
39778 { ac_try='test -z "$ac_c_werror_flag"
39779 || test ! -s conftest.err'
39780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39781 (eval $ac_try) 2>&5
39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784 (exit $ac_status); }; } &&
39785 { ac_try='test -s conftest$ac_exeext'
39786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39787 (eval $ac_try) 2>&5
39789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790 (exit $ac_status); }; }; then
39791 ol_cv_db_db_4_1=yes
39793 echo "$as_me: failed program was:" >&5
39794 sed 's/^/| /' conftest.$ac_ext >&5
39798 rm -f conftest.err conftest.$ac_objext \
39799 conftest$ac_exeext conftest.$ac_ext
39804 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39805 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39807 if test $ol_cv_db_db_4_1 = yes ; then
39808 ol_cv_lib_db=-ldb-4-1
39812 if test $ol_cv_lib_db = no ; then
39813 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39814 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39815 if test "${ol_cv_db_db3+set}" = set; then
39816 echo $ECHO_N "(cached) $ECHO_C" >&6
39821 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39823 cat >conftest.$ac_ext <<_ACEOF
39826 cat confdefs.h >>conftest.$ac_ext
39827 cat >>conftest.$ac_ext <<_ACEOF
39828 /* end confdefs.h. */
39830 #ifdef HAVE_DB_185_H
39831 # include <db_185.h>
39836 #ifndef DB_VERSION_MAJOR
39837 # define DB_VERSION_MAJOR 1
39841 #define NULL ((void*)0)
39848 #if DB_VERSION_MAJOR > 1
39851 int major, minor, patch;
39853 version = db_version( &major, &minor, &patch );
39855 if( major != DB_VERSION_MAJOR ||
39856 minor < DB_VERSION_MINOR )
39858 printf("Berkeley DB version mismatch\n"
39859 "\theader: %s\n\tlibrary: %s\n",
39860 DB_VERSION_STRING, version);
39866 #if DB_VERSION_MAJOR > 2
39867 db_env_create( NULL, 0 );
39868 #elif DB_VERSION_MAJOR > 1
39869 db_appexit( NULL );
39871 (void) dbopen( NULL, 0, 0, 0, NULL);
39878 rm -f conftest.$ac_objext conftest$ac_exeext
39879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39880 (eval $ac_link) 2>conftest.er1
39882 grep -v '^ *+' conftest.er1 >conftest.err
39884 cat conftest.err >&5
39885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886 (exit $ac_status); } &&
39887 { ac_try='test -z "$ac_c_werror_flag"
39888 || test ! -s conftest.err'
39889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39890 (eval $ac_try) 2>&5
39892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893 (exit $ac_status); }; } &&
39894 { ac_try='test -s conftest$ac_exeext'
39895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39896 (eval $ac_try) 2>&5
39898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39899 (exit $ac_status); }; }; then
39902 echo "$as_me: failed program was:" >&5
39903 sed 's/^/| /' conftest.$ac_ext >&5
39907 rm -f conftest.err conftest.$ac_objext \
39908 conftest$ac_exeext conftest.$ac_ext
39913 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39914 echo "${ECHO_T}$ol_cv_db_db3" >&6
39916 if test $ol_cv_db_db3 = yes ; then
39921 if test $ol_cv_lib_db = no ; then
39922 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39923 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39924 if test "${ol_cv_db_db_3+set}" = set; then
39925 echo $ECHO_N "(cached) $ECHO_C" >&6
39930 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39932 cat >conftest.$ac_ext <<_ACEOF
39935 cat confdefs.h >>conftest.$ac_ext
39936 cat >>conftest.$ac_ext <<_ACEOF
39937 /* end confdefs.h. */
39939 #ifdef HAVE_DB_185_H
39940 # include <db_185.h>
39945 #ifndef DB_VERSION_MAJOR
39946 # define DB_VERSION_MAJOR 1
39950 #define NULL ((void*)0)
39957 #if DB_VERSION_MAJOR > 1
39960 int major, minor, patch;
39962 version = db_version( &major, &minor, &patch );
39964 if( major != DB_VERSION_MAJOR ||
39965 minor < DB_VERSION_MINOR )
39967 printf("Berkeley DB version mismatch\n"
39968 "\theader: %s\n\tlibrary: %s\n",
39969 DB_VERSION_STRING, version);
39975 #if DB_VERSION_MAJOR > 2
39976 db_env_create( NULL, 0 );
39977 #elif DB_VERSION_MAJOR > 1
39978 db_appexit( NULL );
39980 (void) dbopen( NULL, 0, 0, 0, NULL);
39987 rm -f conftest.$ac_objext conftest$ac_exeext
39988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39989 (eval $ac_link) 2>conftest.er1
39991 grep -v '^ *+' conftest.er1 >conftest.err
39993 cat conftest.err >&5
39994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39995 (exit $ac_status); } &&
39996 { ac_try='test -z "$ac_c_werror_flag"
39997 || test ! -s conftest.err'
39998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39999 (eval $ac_try) 2>&5
40001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002 (exit $ac_status); }; } &&
40003 { ac_try='test -s conftest$ac_exeext'
40004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40005 (eval $ac_try) 2>&5
40007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40008 (exit $ac_status); }; }; then
40011 echo "$as_me: failed program was:" >&5
40012 sed 's/^/| /' conftest.$ac_ext >&5
40016 rm -f conftest.err conftest.$ac_objext \
40017 conftest$ac_exeext conftest.$ac_ext
40022 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40023 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40025 if test $ol_cv_db_db_3 = yes ; then
40026 ol_cv_lib_db=-ldb-3
40030 if test $ol_cv_lib_db = no ; then
40031 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40032 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40033 if test "${ol_cv_db_db2+set}" = set; then
40034 echo $ECHO_N "(cached) $ECHO_C" >&6
40039 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40041 cat >conftest.$ac_ext <<_ACEOF
40044 cat confdefs.h >>conftest.$ac_ext
40045 cat >>conftest.$ac_ext <<_ACEOF
40046 /* end confdefs.h. */
40048 #ifdef HAVE_DB_185_H
40049 # include <db_185.h>
40054 #ifndef DB_VERSION_MAJOR
40055 # define DB_VERSION_MAJOR 1
40059 #define NULL ((void*)0)
40066 #if DB_VERSION_MAJOR > 1
40069 int major, minor, patch;
40071 version = db_version( &major, &minor, &patch );
40073 if( major != DB_VERSION_MAJOR ||
40074 minor < DB_VERSION_MINOR )
40076 printf("Berkeley DB version mismatch\n"
40077 "\theader: %s\n\tlibrary: %s\n",
40078 DB_VERSION_STRING, version);
40084 #if DB_VERSION_MAJOR > 2
40085 db_env_create( NULL, 0 );
40086 #elif DB_VERSION_MAJOR > 1
40087 db_appexit( NULL );
40089 (void) dbopen( NULL, 0, 0, 0, NULL);
40096 rm -f conftest.$ac_objext conftest$ac_exeext
40097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40098 (eval $ac_link) 2>conftest.er1
40100 grep -v '^ *+' conftest.er1 >conftest.err
40102 cat conftest.err >&5
40103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104 (exit $ac_status); } &&
40105 { ac_try='test -z "$ac_c_werror_flag"
40106 || test ! -s conftest.err'
40107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40108 (eval $ac_try) 2>&5
40110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40111 (exit $ac_status); }; } &&
40112 { ac_try='test -s conftest$ac_exeext'
40113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40114 (eval $ac_try) 2>&5
40116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40117 (exit $ac_status); }; }; then
40120 echo "$as_me: failed program was:" >&5
40121 sed 's/^/| /' conftest.$ac_ext >&5
40125 rm -f conftest.err conftest.$ac_objext \
40126 conftest$ac_exeext conftest.$ac_ext
40131 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40132 echo "${ECHO_T}$ol_cv_db_db2" >&6
40134 if test $ol_cv_db_db2 = yes ; then
40139 if test $ol_cv_lib_db = no ; then
40140 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40141 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40142 if test "${ol_cv_db_db_2+set}" = set; then
40143 echo $ECHO_N "(cached) $ECHO_C" >&6
40148 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40150 cat >conftest.$ac_ext <<_ACEOF
40153 cat confdefs.h >>conftest.$ac_ext
40154 cat >>conftest.$ac_ext <<_ACEOF
40155 /* end confdefs.h. */
40157 #ifdef HAVE_DB_185_H
40158 # include <db_185.h>
40163 #ifndef DB_VERSION_MAJOR
40164 # define DB_VERSION_MAJOR 1
40168 #define NULL ((void*)0)
40175 #if DB_VERSION_MAJOR > 1
40178 int major, minor, patch;
40180 version = db_version( &major, &minor, &patch );
40182 if( major != DB_VERSION_MAJOR ||
40183 minor < DB_VERSION_MINOR )
40185 printf("Berkeley DB version mismatch\n"
40186 "\theader: %s\n\tlibrary: %s\n",
40187 DB_VERSION_STRING, version);
40193 #if DB_VERSION_MAJOR > 2
40194 db_env_create( NULL, 0 );
40195 #elif DB_VERSION_MAJOR > 1
40196 db_appexit( NULL );
40198 (void) dbopen( NULL, 0, 0, 0, NULL);
40205 rm -f conftest.$ac_objext conftest$ac_exeext
40206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40207 (eval $ac_link) 2>conftest.er1
40209 grep -v '^ *+' conftest.er1 >conftest.err
40211 cat conftest.err >&5
40212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213 (exit $ac_status); } &&
40214 { ac_try='test -z "$ac_c_werror_flag"
40215 || test ! -s conftest.err'
40216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40217 (eval $ac_try) 2>&5
40219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220 (exit $ac_status); }; } &&
40221 { ac_try='test -s conftest$ac_exeext'
40222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40223 (eval $ac_try) 2>&5
40225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40226 (exit $ac_status); }; }; then
40229 echo "$as_me: failed program was:" >&5
40230 sed 's/^/| /' conftest.$ac_ext >&5
40234 rm -f conftest.err conftest.$ac_objext \
40235 conftest$ac_exeext conftest.$ac_ext
40240 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40241 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40243 if test $ol_cv_db_db_2 = yes ; then
40244 ol_cv_lib_db=-ldb-2
40248 if test $ol_cv_lib_db = no ; then
40249 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40250 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40251 if test "${ol_cv_db_db1+set}" = set; then
40252 echo $ECHO_N "(cached) $ECHO_C" >&6
40257 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40259 cat >conftest.$ac_ext <<_ACEOF
40262 cat confdefs.h >>conftest.$ac_ext
40263 cat >>conftest.$ac_ext <<_ACEOF
40264 /* end confdefs.h. */
40266 #ifdef HAVE_DB_185_H
40267 # include <db_185.h>
40272 #ifndef DB_VERSION_MAJOR
40273 # define DB_VERSION_MAJOR 1
40277 #define NULL ((void*)0)
40284 #if DB_VERSION_MAJOR > 1
40287 int major, minor, patch;
40289 version = db_version( &major, &minor, &patch );
40291 if( major != DB_VERSION_MAJOR ||
40292 minor < DB_VERSION_MINOR )
40294 printf("Berkeley DB version mismatch\n"
40295 "\theader: %s\n\tlibrary: %s\n",
40296 DB_VERSION_STRING, version);
40302 #if DB_VERSION_MAJOR > 2
40303 db_env_create( NULL, 0 );
40304 #elif DB_VERSION_MAJOR > 1
40305 db_appexit( NULL );
40307 (void) dbopen( NULL, 0, 0, 0, NULL);
40314 rm -f conftest.$ac_objext conftest$ac_exeext
40315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40316 (eval $ac_link) 2>conftest.er1
40318 grep -v '^ *+' conftest.er1 >conftest.err
40320 cat conftest.err >&5
40321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322 (exit $ac_status); } &&
40323 { ac_try='test -z "$ac_c_werror_flag"
40324 || test ! -s conftest.err'
40325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326 (eval $ac_try) 2>&5
40328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329 (exit $ac_status); }; } &&
40330 { ac_try='test -s conftest$ac_exeext'
40331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40332 (eval $ac_try) 2>&5
40334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335 (exit $ac_status); }; }; then
40338 echo "$as_me: failed program was:" >&5
40339 sed 's/^/| /' conftest.$ac_ext >&5
40343 rm -f conftest.err conftest.$ac_objext \
40344 conftest$ac_exeext conftest.$ac_ext
40349 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40350 echo "${ECHO_T}$ol_cv_db_db1" >&6
40352 if test $ol_cv_db_db1 = yes ; then
40357 if test $ol_cv_lib_db = no ; then
40358 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40359 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40360 if test "${ol_cv_db_db_1+set}" = set; then
40361 echo $ECHO_N "(cached) $ECHO_C" >&6
40366 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40368 cat >conftest.$ac_ext <<_ACEOF
40371 cat confdefs.h >>conftest.$ac_ext
40372 cat >>conftest.$ac_ext <<_ACEOF
40373 /* end confdefs.h. */
40375 #ifdef HAVE_DB_185_H
40376 # include <db_185.h>
40381 #ifndef DB_VERSION_MAJOR
40382 # define DB_VERSION_MAJOR 1
40386 #define NULL ((void*)0)
40393 #if DB_VERSION_MAJOR > 1
40396 int major, minor, patch;
40398 version = db_version( &major, &minor, &patch );
40400 if( major != DB_VERSION_MAJOR ||
40401 minor < DB_VERSION_MINOR )
40403 printf("Berkeley DB version mismatch\n"
40404 "\theader: %s\n\tlibrary: %s\n",
40405 DB_VERSION_STRING, version);
40411 #if DB_VERSION_MAJOR > 2
40412 db_env_create( NULL, 0 );
40413 #elif DB_VERSION_MAJOR > 1
40414 db_appexit( NULL );
40416 (void) dbopen( NULL, 0, 0, 0, NULL);
40423 rm -f conftest.$ac_objext conftest$ac_exeext
40424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40425 (eval $ac_link) 2>conftest.er1
40427 grep -v '^ *+' conftest.er1 >conftest.err
40429 cat conftest.err >&5
40430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40431 (exit $ac_status); } &&
40432 { ac_try='test -z "$ac_c_werror_flag"
40433 || test ! -s conftest.err'
40434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40435 (eval $ac_try) 2>&5
40437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40438 (exit $ac_status); }; } &&
40439 { ac_try='test -s conftest$ac_exeext'
40440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40441 (eval $ac_try) 2>&5
40443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40444 (exit $ac_status); }; }; then
40447 echo "$as_me: failed program was:" >&5
40448 sed 's/^/| /' conftest.$ac_ext >&5
40452 rm -f conftest.err conftest.$ac_objext \
40453 conftest$ac_exeext conftest.$ac_ext
40458 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40459 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40461 if test $ol_cv_db_db_1 = yes ; then
40462 ol_cv_lib_db=-ldb-1
40467 if test "$ol_cv_lib_db" != no ; then
40468 ol_cv_berkeley_db=yes
40474 ol_cv_berkeley_db=no
40476 for ac_header in db.h
40478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40480 echo "$as_me:$LINENO: checking for $ac_header" >&5
40481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40483 echo $ECHO_N "(cached) $ECHO_C" >&6
40485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40488 # Is the header compilable?
40489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40491 cat >conftest.$ac_ext <<_ACEOF
40494 cat confdefs.h >>conftest.$ac_ext
40495 cat >>conftest.$ac_ext <<_ACEOF
40496 /* end confdefs.h. */
40497 $ac_includes_default
40498 #include <$ac_header>
40500 rm -f conftest.$ac_objext
40501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40502 (eval $ac_compile) 2>conftest.er1
40504 grep -v '^ *+' conftest.er1 >conftest.err
40506 cat conftest.err >&5
40507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508 (exit $ac_status); } &&
40509 { ac_try='test -z "$ac_c_werror_flag"
40510 || test ! -s conftest.err'
40511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40512 (eval $ac_try) 2>&5
40514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40515 (exit $ac_status); }; } &&
40516 { ac_try='test -s conftest.$ac_objext'
40517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40518 (eval $ac_try) 2>&5
40520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521 (exit $ac_status); }; }; then
40522 ac_header_compiler=yes
40524 echo "$as_me: failed program was:" >&5
40525 sed 's/^/| /' conftest.$ac_ext >&5
40527 ac_header_compiler=no
40529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40531 echo "${ECHO_T}$ac_header_compiler" >&6
40533 # Is the header present?
40534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40536 cat >conftest.$ac_ext <<_ACEOF
40539 cat confdefs.h >>conftest.$ac_ext
40540 cat >>conftest.$ac_ext <<_ACEOF
40541 /* end confdefs.h. */
40542 #include <$ac_header>
40544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40547 grep -v '^ *+' conftest.er1 >conftest.err
40549 cat conftest.err >&5
40550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40551 (exit $ac_status); } >/dev/null; then
40552 if test -s conftest.err; then
40553 ac_cpp_err=$ac_c_preproc_warn_flag
40554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40561 if test -z "$ac_cpp_err"; then
40562 ac_header_preproc=yes
40564 echo "$as_me: failed program was:" >&5
40565 sed 's/^/| /' conftest.$ac_ext >&5
40567 ac_header_preproc=no
40569 rm -f conftest.err conftest.$ac_ext
40570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40571 echo "${ECHO_T}$ac_header_preproc" >&6
40573 # So? What about this header?
40574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40580 ac_header_preproc=yes
40583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40597 ## ------------------------------------------ ##
40598 ## Report this to the AC_PACKAGE_NAME lists. ##
40599 ## ------------------------------------------ ##
40602 sed "s/^/$as_me: WARNING: /" >&2
40605 echo "$as_me:$LINENO: checking for $ac_header" >&5
40606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40608 echo $ECHO_N "(cached) $ECHO_C" >&6
40610 eval "$as_ac_Header=\$ac_header_preproc"
40612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40617 cat >>confdefs.h <<_ACEOF
40618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40625 if test $ac_cv_header_db_h = yes; then
40627 if test $ol_cv_lib_db = no ; then
40628 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40629 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40630 if test "${ol_cv_db_none+set}" = set; then
40631 echo $ECHO_N "(cached) $ECHO_C" >&6
40636 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40638 cat >conftest.$ac_ext <<_ACEOF
40641 cat confdefs.h >>conftest.$ac_ext
40642 cat >>conftest.$ac_ext <<_ACEOF
40643 /* end confdefs.h. */
40645 #ifdef HAVE_DB_185_H
40646 # include <db_185.h>
40651 #ifndef DB_VERSION_MAJOR
40652 # define DB_VERSION_MAJOR 1
40656 #define NULL ((void*)0)
40663 #if DB_VERSION_MAJOR > 1
40666 int major, minor, patch;
40668 version = db_version( &major, &minor, &patch );
40670 if( major != DB_VERSION_MAJOR ||
40671 minor < DB_VERSION_MINOR )
40673 printf("Berkeley DB version mismatch\n"
40674 "\theader: %s\n\tlibrary: %s\n",
40675 DB_VERSION_STRING, version);
40681 #if DB_VERSION_MAJOR > 2
40682 db_env_create( NULL, 0 );
40683 #elif DB_VERSION_MAJOR > 1
40684 db_appexit( NULL );
40686 (void) dbopen( NULL, 0, 0, 0, NULL);
40693 rm -f conftest.$ac_objext conftest$ac_exeext
40694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40695 (eval $ac_link) 2>conftest.er1
40697 grep -v '^ *+' conftest.er1 >conftest.err
40699 cat conftest.err >&5
40700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40701 (exit $ac_status); } &&
40702 { ac_try='test -z "$ac_c_werror_flag"
40703 || test ! -s conftest.err'
40704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40705 (eval $ac_try) 2>&5
40707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40708 (exit $ac_status); }; } &&
40709 { ac_try='test -s conftest$ac_exeext'
40710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40711 (eval $ac_try) 2>&5
40713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40714 (exit $ac_status); }; }; then
40717 echo "$as_me: failed program was:" >&5
40718 sed 's/^/| /' conftest.$ac_ext >&5
40722 rm -f conftest.err conftest.$ac_objext \
40723 conftest$ac_exeext conftest.$ac_ext
40728 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40729 echo "${ECHO_T}$ol_cv_db_none" >&6
40731 if test $ol_cv_db_none = yes ; then
40736 if test $ol_cv_lib_db = no ; then
40737 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40738 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40739 if test "${ol_cv_db_db43+set}" = set; then
40740 echo $ECHO_N "(cached) $ECHO_C" >&6
40745 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40747 cat >conftest.$ac_ext <<_ACEOF
40750 cat confdefs.h >>conftest.$ac_ext
40751 cat >>conftest.$ac_ext <<_ACEOF
40752 /* end confdefs.h. */
40754 #ifdef HAVE_DB_185_H
40755 # include <db_185.h>
40760 #ifndef DB_VERSION_MAJOR
40761 # define DB_VERSION_MAJOR 1
40765 #define NULL ((void*)0)
40772 #if DB_VERSION_MAJOR > 1
40775 int major, minor, patch;
40777 version = db_version( &major, &minor, &patch );
40779 if( major != DB_VERSION_MAJOR ||
40780 minor < DB_VERSION_MINOR )
40782 printf("Berkeley DB version mismatch\n"
40783 "\theader: %s\n\tlibrary: %s\n",
40784 DB_VERSION_STRING, version);
40790 #if DB_VERSION_MAJOR > 2
40791 db_env_create( NULL, 0 );
40792 #elif DB_VERSION_MAJOR > 1
40793 db_appexit( NULL );
40795 (void) dbopen( NULL, 0, 0, 0, NULL);
40802 rm -f conftest.$ac_objext conftest$ac_exeext
40803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40804 (eval $ac_link) 2>conftest.er1
40806 grep -v '^ *+' conftest.er1 >conftest.err
40808 cat conftest.err >&5
40809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810 (exit $ac_status); } &&
40811 { ac_try='test -z "$ac_c_werror_flag"
40812 || test ! -s conftest.err'
40813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40814 (eval $ac_try) 2>&5
40816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817 (exit $ac_status); }; } &&
40818 { ac_try='test -s conftest$ac_exeext'
40819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40820 (eval $ac_try) 2>&5
40822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823 (exit $ac_status); }; }; then
40826 echo "$as_me: failed program was:" >&5
40827 sed 's/^/| /' conftest.$ac_ext >&5
40831 rm -f conftest.err conftest.$ac_objext \
40832 conftest$ac_exeext conftest.$ac_ext
40837 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40838 echo "${ECHO_T}$ol_cv_db_db43" >&6
40840 if test $ol_cv_db_db43 = yes ; then
40841 ol_cv_lib_db=-ldb43
40845 if test $ol_cv_lib_db = no ; then
40846 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40847 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40848 if test "${ol_cv_db_db_43+set}" = set; then
40849 echo $ECHO_N "(cached) $ECHO_C" >&6
40854 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40856 cat >conftest.$ac_ext <<_ACEOF
40859 cat confdefs.h >>conftest.$ac_ext
40860 cat >>conftest.$ac_ext <<_ACEOF
40861 /* end confdefs.h. */
40863 #ifdef HAVE_DB_185_H
40864 # include <db_185.h>
40869 #ifndef DB_VERSION_MAJOR
40870 # define DB_VERSION_MAJOR 1
40874 #define NULL ((void*)0)
40881 #if DB_VERSION_MAJOR > 1
40884 int major, minor, patch;
40886 version = db_version( &major, &minor, &patch );
40888 if( major != DB_VERSION_MAJOR ||
40889 minor < DB_VERSION_MINOR )
40891 printf("Berkeley DB version mismatch\n"
40892 "\theader: %s\n\tlibrary: %s\n",
40893 DB_VERSION_STRING, version);
40899 #if DB_VERSION_MAJOR > 2
40900 db_env_create( NULL, 0 );
40901 #elif DB_VERSION_MAJOR > 1
40902 db_appexit( NULL );
40904 (void) dbopen( NULL, 0, 0, 0, NULL);
40911 rm -f conftest.$ac_objext conftest$ac_exeext
40912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40913 (eval $ac_link) 2>conftest.er1
40915 grep -v '^ *+' conftest.er1 >conftest.err
40917 cat conftest.err >&5
40918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40919 (exit $ac_status); } &&
40920 { ac_try='test -z "$ac_c_werror_flag"
40921 || test ! -s conftest.err'
40922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40923 (eval $ac_try) 2>&5
40925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40926 (exit $ac_status); }; } &&
40927 { ac_try='test -s conftest$ac_exeext'
40928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40929 (eval $ac_try) 2>&5
40931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932 (exit $ac_status); }; }; then
40935 echo "$as_me: failed program was:" >&5
40936 sed 's/^/| /' conftest.$ac_ext >&5
40940 rm -f conftest.err conftest.$ac_objext \
40941 conftest$ac_exeext conftest.$ac_ext
40946 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40947 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40949 if test $ol_cv_db_db_43 = yes ; then
40950 ol_cv_lib_db=-ldb-43
40954 if test $ol_cv_lib_db = no ; then
40955 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40956 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40957 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40958 echo $ECHO_N "(cached) $ECHO_C" >&6
40963 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40965 cat >conftest.$ac_ext <<_ACEOF
40968 cat confdefs.h >>conftest.$ac_ext
40969 cat >>conftest.$ac_ext <<_ACEOF
40970 /* end confdefs.h. */
40972 #ifdef HAVE_DB_185_H
40973 # include <db_185.h>
40978 #ifndef DB_VERSION_MAJOR
40979 # define DB_VERSION_MAJOR 1
40983 #define NULL ((void*)0)
40990 #if DB_VERSION_MAJOR > 1
40993 int major, minor, patch;
40995 version = db_version( &major, &minor, &patch );
40997 if( major != DB_VERSION_MAJOR ||
40998 minor < DB_VERSION_MINOR )
41000 printf("Berkeley DB version mismatch\n"
41001 "\theader: %s\n\tlibrary: %s\n",
41002 DB_VERSION_STRING, version);
41008 #if DB_VERSION_MAJOR > 2
41009 db_env_create( NULL, 0 );
41010 #elif DB_VERSION_MAJOR > 1
41011 db_appexit( NULL );
41013 (void) dbopen( NULL, 0, 0, 0, NULL);
41020 rm -f conftest.$ac_objext conftest$ac_exeext
41021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41022 (eval $ac_link) 2>conftest.er1
41024 grep -v '^ *+' conftest.er1 >conftest.err
41026 cat conftest.err >&5
41027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41028 (exit $ac_status); } &&
41029 { ac_try='test -z "$ac_c_werror_flag"
41030 || test ! -s conftest.err'
41031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41032 (eval $ac_try) 2>&5
41034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41035 (exit $ac_status); }; } &&
41036 { ac_try='test -s conftest$ac_exeext'
41037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41038 (eval $ac_try) 2>&5
41040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41041 (exit $ac_status); }; }; then
41042 ol_cv_db_db_4_dot_3=yes
41044 echo "$as_me: failed program was:" >&5
41045 sed 's/^/| /' conftest.$ac_ext >&5
41047 ol_cv_db_db_4_dot_3=no
41049 rm -f conftest.err conftest.$ac_objext \
41050 conftest$ac_exeext conftest.$ac_ext
41055 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41056 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41058 if test $ol_cv_db_db_4_dot_3 = yes ; then
41059 ol_cv_lib_db=-ldb-4.3
41063 if test $ol_cv_lib_db = no ; then
41064 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41065 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41066 if test "${ol_cv_db_db_4_3+set}" = set; then
41067 echo $ECHO_N "(cached) $ECHO_C" >&6
41072 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41074 cat >conftest.$ac_ext <<_ACEOF
41077 cat confdefs.h >>conftest.$ac_ext
41078 cat >>conftest.$ac_ext <<_ACEOF
41079 /* end confdefs.h. */
41081 #ifdef HAVE_DB_185_H
41082 # include <db_185.h>
41087 #ifndef DB_VERSION_MAJOR
41088 # define DB_VERSION_MAJOR 1
41092 #define NULL ((void*)0)
41099 #if DB_VERSION_MAJOR > 1
41102 int major, minor, patch;
41104 version = db_version( &major, &minor, &patch );
41106 if( major != DB_VERSION_MAJOR ||
41107 minor < DB_VERSION_MINOR )
41109 printf("Berkeley DB version mismatch\n"
41110 "\theader: %s\n\tlibrary: %s\n",
41111 DB_VERSION_STRING, version);
41117 #if DB_VERSION_MAJOR > 2
41118 db_env_create( NULL, 0 );
41119 #elif DB_VERSION_MAJOR > 1
41120 db_appexit( NULL );
41122 (void) dbopen( NULL, 0, 0, 0, NULL);
41129 rm -f conftest.$ac_objext conftest$ac_exeext
41130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41131 (eval $ac_link) 2>conftest.er1
41133 grep -v '^ *+' conftest.er1 >conftest.err
41135 cat conftest.err >&5
41136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41137 (exit $ac_status); } &&
41138 { ac_try='test -z "$ac_c_werror_flag"
41139 || test ! -s conftest.err'
41140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41141 (eval $ac_try) 2>&5
41143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144 (exit $ac_status); }; } &&
41145 { ac_try='test -s conftest$ac_exeext'
41146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41147 (eval $ac_try) 2>&5
41149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150 (exit $ac_status); }; }; then
41151 ol_cv_db_db_4_3=yes
41153 echo "$as_me: failed program was:" >&5
41154 sed 's/^/| /' conftest.$ac_ext >&5
41158 rm -f conftest.err conftest.$ac_objext \
41159 conftest$ac_exeext conftest.$ac_ext
41164 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41165 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41167 if test $ol_cv_db_db_4_3 = yes ; then
41168 ol_cv_lib_db=-ldb-4-3
41172 if test $ol_cv_lib_db = no ; then
41173 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41174 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41175 if test "${ol_cv_db_db42+set}" = set; then
41176 echo $ECHO_N "(cached) $ECHO_C" >&6
41181 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41183 cat >conftest.$ac_ext <<_ACEOF
41186 cat confdefs.h >>conftest.$ac_ext
41187 cat >>conftest.$ac_ext <<_ACEOF
41188 /* end confdefs.h. */
41190 #ifdef HAVE_DB_185_H
41191 # include <db_185.h>
41196 #ifndef DB_VERSION_MAJOR
41197 # define DB_VERSION_MAJOR 1
41201 #define NULL ((void*)0)
41208 #if DB_VERSION_MAJOR > 1
41211 int major, minor, patch;
41213 version = db_version( &major, &minor, &patch );
41215 if( major != DB_VERSION_MAJOR ||
41216 minor < DB_VERSION_MINOR )
41218 printf("Berkeley DB version mismatch\n"
41219 "\theader: %s\n\tlibrary: %s\n",
41220 DB_VERSION_STRING, version);
41226 #if DB_VERSION_MAJOR > 2
41227 db_env_create( NULL, 0 );
41228 #elif DB_VERSION_MAJOR > 1
41229 db_appexit( NULL );
41231 (void) dbopen( NULL, 0, 0, 0, NULL);
41238 rm -f conftest.$ac_objext conftest$ac_exeext
41239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41240 (eval $ac_link) 2>conftest.er1
41242 grep -v '^ *+' conftest.er1 >conftest.err
41244 cat conftest.err >&5
41245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246 (exit $ac_status); } &&
41247 { ac_try='test -z "$ac_c_werror_flag"
41248 || test ! -s conftest.err'
41249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41250 (eval $ac_try) 2>&5
41252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41253 (exit $ac_status); }; } &&
41254 { ac_try='test -s conftest$ac_exeext'
41255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41256 (eval $ac_try) 2>&5
41258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41259 (exit $ac_status); }; }; then
41262 echo "$as_me: failed program was:" >&5
41263 sed 's/^/| /' conftest.$ac_ext >&5
41267 rm -f conftest.err conftest.$ac_objext \
41268 conftest$ac_exeext conftest.$ac_ext
41273 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41274 echo "${ECHO_T}$ol_cv_db_db42" >&6
41276 if test $ol_cv_db_db42 = yes ; then
41277 ol_cv_lib_db=-ldb42
41281 if test $ol_cv_lib_db = no ; then
41282 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41283 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41284 if test "${ol_cv_db_db_42+set}" = set; then
41285 echo $ECHO_N "(cached) $ECHO_C" >&6
41290 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41292 cat >conftest.$ac_ext <<_ACEOF
41295 cat confdefs.h >>conftest.$ac_ext
41296 cat >>conftest.$ac_ext <<_ACEOF
41297 /* end confdefs.h. */
41299 #ifdef HAVE_DB_185_H
41300 # include <db_185.h>
41305 #ifndef DB_VERSION_MAJOR
41306 # define DB_VERSION_MAJOR 1
41310 #define NULL ((void*)0)
41317 #if DB_VERSION_MAJOR > 1
41320 int major, minor, patch;
41322 version = db_version( &major, &minor, &patch );
41324 if( major != DB_VERSION_MAJOR ||
41325 minor < DB_VERSION_MINOR )
41327 printf("Berkeley DB version mismatch\n"
41328 "\theader: %s\n\tlibrary: %s\n",
41329 DB_VERSION_STRING, version);
41335 #if DB_VERSION_MAJOR > 2
41336 db_env_create( NULL, 0 );
41337 #elif DB_VERSION_MAJOR > 1
41338 db_appexit( NULL );
41340 (void) dbopen( NULL, 0, 0, 0, NULL);
41347 rm -f conftest.$ac_objext conftest$ac_exeext
41348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41349 (eval $ac_link) 2>conftest.er1
41351 grep -v '^ *+' conftest.er1 >conftest.err
41353 cat conftest.err >&5
41354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355 (exit $ac_status); } &&
41356 { ac_try='test -z "$ac_c_werror_flag"
41357 || test ! -s conftest.err'
41358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41359 (eval $ac_try) 2>&5
41361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362 (exit $ac_status); }; } &&
41363 { ac_try='test -s conftest$ac_exeext'
41364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41365 (eval $ac_try) 2>&5
41367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41368 (exit $ac_status); }; }; then
41371 echo "$as_me: failed program was:" >&5
41372 sed 's/^/| /' conftest.$ac_ext >&5
41376 rm -f conftest.err conftest.$ac_objext \
41377 conftest$ac_exeext conftest.$ac_ext
41382 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41383 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41385 if test $ol_cv_db_db_42 = yes ; then
41386 ol_cv_lib_db=-ldb-42
41390 if test $ol_cv_lib_db = no ; then
41391 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41392 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41393 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41394 echo $ECHO_N "(cached) $ECHO_C" >&6
41399 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41401 cat >conftest.$ac_ext <<_ACEOF
41404 cat confdefs.h >>conftest.$ac_ext
41405 cat >>conftest.$ac_ext <<_ACEOF
41406 /* end confdefs.h. */
41408 #ifdef HAVE_DB_185_H
41409 # include <db_185.h>
41414 #ifndef DB_VERSION_MAJOR
41415 # define DB_VERSION_MAJOR 1
41419 #define NULL ((void*)0)
41426 #if DB_VERSION_MAJOR > 1
41429 int major, minor, patch;
41431 version = db_version( &major, &minor, &patch );
41433 if( major != DB_VERSION_MAJOR ||
41434 minor < DB_VERSION_MINOR )
41436 printf("Berkeley DB version mismatch\n"
41437 "\theader: %s\n\tlibrary: %s\n",
41438 DB_VERSION_STRING, version);
41444 #if DB_VERSION_MAJOR > 2
41445 db_env_create( NULL, 0 );
41446 #elif DB_VERSION_MAJOR > 1
41447 db_appexit( NULL );
41449 (void) dbopen( NULL, 0, 0, 0, NULL);
41456 rm -f conftest.$ac_objext conftest$ac_exeext
41457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41458 (eval $ac_link) 2>conftest.er1
41460 grep -v '^ *+' conftest.er1 >conftest.err
41462 cat conftest.err >&5
41463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464 (exit $ac_status); } &&
41465 { ac_try='test -z "$ac_c_werror_flag"
41466 || test ! -s conftest.err'
41467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41468 (eval $ac_try) 2>&5
41470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471 (exit $ac_status); }; } &&
41472 { ac_try='test -s conftest$ac_exeext'
41473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41474 (eval $ac_try) 2>&5
41476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477 (exit $ac_status); }; }; then
41478 ol_cv_db_db_4_dot_2=yes
41480 echo "$as_me: failed program was:" >&5
41481 sed 's/^/| /' conftest.$ac_ext >&5
41483 ol_cv_db_db_4_dot_2=no
41485 rm -f conftest.err conftest.$ac_objext \
41486 conftest$ac_exeext conftest.$ac_ext
41491 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41492 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41494 if test $ol_cv_db_db_4_dot_2 = yes ; then
41495 ol_cv_lib_db=-ldb-4.2
41499 if test $ol_cv_lib_db = no ; then
41500 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41501 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41502 if test "${ol_cv_db_db_4_2+set}" = set; then
41503 echo $ECHO_N "(cached) $ECHO_C" >&6
41508 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41510 cat >conftest.$ac_ext <<_ACEOF
41513 cat confdefs.h >>conftest.$ac_ext
41514 cat >>conftest.$ac_ext <<_ACEOF
41515 /* end confdefs.h. */
41517 #ifdef HAVE_DB_185_H
41518 # include <db_185.h>
41523 #ifndef DB_VERSION_MAJOR
41524 # define DB_VERSION_MAJOR 1
41528 #define NULL ((void*)0)
41535 #if DB_VERSION_MAJOR > 1
41538 int major, minor, patch;
41540 version = db_version( &major, &minor, &patch );
41542 if( major != DB_VERSION_MAJOR ||
41543 minor < DB_VERSION_MINOR )
41545 printf("Berkeley DB version mismatch\n"
41546 "\theader: %s\n\tlibrary: %s\n",
41547 DB_VERSION_STRING, version);
41553 #if DB_VERSION_MAJOR > 2
41554 db_env_create( NULL, 0 );
41555 #elif DB_VERSION_MAJOR > 1
41556 db_appexit( NULL );
41558 (void) dbopen( NULL, 0, 0, 0, NULL);
41565 rm -f conftest.$ac_objext conftest$ac_exeext
41566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41567 (eval $ac_link) 2>conftest.er1
41569 grep -v '^ *+' conftest.er1 >conftest.err
41571 cat conftest.err >&5
41572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41573 (exit $ac_status); } &&
41574 { ac_try='test -z "$ac_c_werror_flag"
41575 || test ! -s conftest.err'
41576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41577 (eval $ac_try) 2>&5
41579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41580 (exit $ac_status); }; } &&
41581 { ac_try='test -s conftest$ac_exeext'
41582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41583 (eval $ac_try) 2>&5
41585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41586 (exit $ac_status); }; }; then
41587 ol_cv_db_db_4_2=yes
41589 echo "$as_me: failed program was:" >&5
41590 sed 's/^/| /' conftest.$ac_ext >&5
41594 rm -f conftest.err conftest.$ac_objext \
41595 conftest$ac_exeext conftest.$ac_ext
41600 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41601 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41603 if test $ol_cv_db_db_4_2 = yes ; then
41604 ol_cv_lib_db=-ldb-4-2
41608 if test $ol_cv_lib_db = no ; then
41609 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41610 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41611 if test "${ol_cv_db_db_4+set}" = set; then
41612 echo $ECHO_N "(cached) $ECHO_C" >&6
41617 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41619 cat >conftest.$ac_ext <<_ACEOF
41622 cat confdefs.h >>conftest.$ac_ext
41623 cat >>conftest.$ac_ext <<_ACEOF
41624 /* end confdefs.h. */
41626 #ifdef HAVE_DB_185_H
41627 # include <db_185.h>
41632 #ifndef DB_VERSION_MAJOR
41633 # define DB_VERSION_MAJOR 1
41637 #define NULL ((void*)0)
41644 #if DB_VERSION_MAJOR > 1
41647 int major, minor, patch;
41649 version = db_version( &major, &minor, &patch );
41651 if( major != DB_VERSION_MAJOR ||
41652 minor < DB_VERSION_MINOR )
41654 printf("Berkeley DB version mismatch\n"
41655 "\theader: %s\n\tlibrary: %s\n",
41656 DB_VERSION_STRING, version);
41662 #if DB_VERSION_MAJOR > 2
41663 db_env_create( NULL, 0 );
41664 #elif DB_VERSION_MAJOR > 1
41665 db_appexit( NULL );
41667 (void) dbopen( NULL, 0, 0, 0, NULL);
41674 rm -f conftest.$ac_objext conftest$ac_exeext
41675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41676 (eval $ac_link) 2>conftest.er1
41678 grep -v '^ *+' conftest.er1 >conftest.err
41680 cat conftest.err >&5
41681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41682 (exit $ac_status); } &&
41683 { ac_try='test -z "$ac_c_werror_flag"
41684 || test ! -s conftest.err'
41685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41686 (eval $ac_try) 2>&5
41688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689 (exit $ac_status); }; } &&
41690 { ac_try='test -s conftest$ac_exeext'
41691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41692 (eval $ac_try) 2>&5
41694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41695 (exit $ac_status); }; }; then
41698 echo "$as_me: failed program was:" >&5
41699 sed 's/^/| /' conftest.$ac_ext >&5
41703 rm -f conftest.err conftest.$ac_objext \
41704 conftest$ac_exeext conftest.$ac_ext
41709 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41710 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41712 if test $ol_cv_db_db_4 = yes ; then
41713 ol_cv_lib_db=-ldb-4
41717 if test $ol_cv_lib_db = no ; then
41718 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41719 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41720 if test "${ol_cv_db_db4+set}" = set; then
41721 echo $ECHO_N "(cached) $ECHO_C" >&6
41726 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41728 cat >conftest.$ac_ext <<_ACEOF
41731 cat confdefs.h >>conftest.$ac_ext
41732 cat >>conftest.$ac_ext <<_ACEOF
41733 /* end confdefs.h. */
41735 #ifdef HAVE_DB_185_H
41736 # include <db_185.h>
41741 #ifndef DB_VERSION_MAJOR
41742 # define DB_VERSION_MAJOR 1
41746 #define NULL ((void*)0)
41753 #if DB_VERSION_MAJOR > 1
41756 int major, minor, patch;
41758 version = db_version( &major, &minor, &patch );
41760 if( major != DB_VERSION_MAJOR ||
41761 minor < DB_VERSION_MINOR )
41763 printf("Berkeley DB version mismatch\n"
41764 "\theader: %s\n\tlibrary: %s\n",
41765 DB_VERSION_STRING, version);
41771 #if DB_VERSION_MAJOR > 2
41772 db_env_create( NULL, 0 );
41773 #elif DB_VERSION_MAJOR > 1
41774 db_appexit( NULL );
41776 (void) dbopen( NULL, 0, 0, 0, NULL);
41783 rm -f conftest.$ac_objext conftest$ac_exeext
41784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41785 (eval $ac_link) 2>conftest.er1
41787 grep -v '^ *+' conftest.er1 >conftest.err
41789 cat conftest.err >&5
41790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791 (exit $ac_status); } &&
41792 { ac_try='test -z "$ac_c_werror_flag"
41793 || test ! -s conftest.err'
41794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41795 (eval $ac_try) 2>&5
41797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798 (exit $ac_status); }; } &&
41799 { ac_try='test -s conftest$ac_exeext'
41800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41801 (eval $ac_try) 2>&5
41803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41804 (exit $ac_status); }; }; then
41807 echo "$as_me: failed program was:" >&5
41808 sed 's/^/| /' conftest.$ac_ext >&5
41812 rm -f conftest.err conftest.$ac_objext \
41813 conftest$ac_exeext conftest.$ac_ext
41818 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41819 echo "${ECHO_T}$ol_cv_db_db4" >&6
41821 if test $ol_cv_db_db4 = yes ; then
41826 if test $ol_cv_lib_db = no ; then
41827 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41828 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41829 if test "${ol_cv_db_db+set}" = set; then
41830 echo $ECHO_N "(cached) $ECHO_C" >&6
41835 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41837 cat >conftest.$ac_ext <<_ACEOF
41840 cat confdefs.h >>conftest.$ac_ext
41841 cat >>conftest.$ac_ext <<_ACEOF
41842 /* end confdefs.h. */
41844 #ifdef HAVE_DB_185_H
41845 # include <db_185.h>
41850 #ifndef DB_VERSION_MAJOR
41851 # define DB_VERSION_MAJOR 1
41855 #define NULL ((void*)0)
41862 #if DB_VERSION_MAJOR > 1
41865 int major, minor, patch;
41867 version = db_version( &major, &minor, &patch );
41869 if( major != DB_VERSION_MAJOR ||
41870 minor < DB_VERSION_MINOR )
41872 printf("Berkeley DB version mismatch\n"
41873 "\theader: %s\n\tlibrary: %s\n",
41874 DB_VERSION_STRING, version);
41880 #if DB_VERSION_MAJOR > 2
41881 db_env_create( NULL, 0 );
41882 #elif DB_VERSION_MAJOR > 1
41883 db_appexit( NULL );
41885 (void) dbopen( NULL, 0, 0, 0, NULL);
41892 rm -f conftest.$ac_objext conftest$ac_exeext
41893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41894 (eval $ac_link) 2>conftest.er1
41896 grep -v '^ *+' conftest.er1 >conftest.err
41898 cat conftest.err >&5
41899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41900 (exit $ac_status); } &&
41901 { ac_try='test -z "$ac_c_werror_flag"
41902 || test ! -s conftest.err'
41903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41904 (eval $ac_try) 2>&5
41906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41907 (exit $ac_status); }; } &&
41908 { ac_try='test -s conftest$ac_exeext'
41909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41910 (eval $ac_try) 2>&5
41912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41913 (exit $ac_status); }; }; then
41916 echo "$as_me: failed program was:" >&5
41917 sed 's/^/| /' conftest.$ac_ext >&5
41921 rm -f conftest.err conftest.$ac_objext \
41922 conftest$ac_exeext conftest.$ac_ext
41927 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41928 echo "${ECHO_T}$ol_cv_db_db" >&6
41930 if test $ol_cv_db_db = yes ; then
41935 if test $ol_cv_lib_db = no ; then
41936 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41937 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41938 if test "${ol_cv_db_db41+set}" = set; then
41939 echo $ECHO_N "(cached) $ECHO_C" >&6
41944 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41946 cat >conftest.$ac_ext <<_ACEOF
41949 cat confdefs.h >>conftest.$ac_ext
41950 cat >>conftest.$ac_ext <<_ACEOF
41951 /* end confdefs.h. */
41953 #ifdef HAVE_DB_185_H
41954 # include <db_185.h>
41959 #ifndef DB_VERSION_MAJOR
41960 # define DB_VERSION_MAJOR 1
41964 #define NULL ((void*)0)
41971 #if DB_VERSION_MAJOR > 1
41974 int major, minor, patch;
41976 version = db_version( &major, &minor, &patch );
41978 if( major != DB_VERSION_MAJOR ||
41979 minor < DB_VERSION_MINOR )
41981 printf("Berkeley DB version mismatch\n"
41982 "\theader: %s\n\tlibrary: %s\n",
41983 DB_VERSION_STRING, version);
41989 #if DB_VERSION_MAJOR > 2
41990 db_env_create( NULL, 0 );
41991 #elif DB_VERSION_MAJOR > 1
41992 db_appexit( NULL );
41994 (void) dbopen( NULL, 0, 0, 0, NULL);
42001 rm -f conftest.$ac_objext conftest$ac_exeext
42002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42003 (eval $ac_link) 2>conftest.er1
42005 grep -v '^ *+' conftest.er1 >conftest.err
42007 cat conftest.err >&5
42008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42009 (exit $ac_status); } &&
42010 { ac_try='test -z "$ac_c_werror_flag"
42011 || test ! -s conftest.err'
42012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013 (eval $ac_try) 2>&5
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); }; } &&
42017 { ac_try='test -s conftest$ac_exeext'
42018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42019 (eval $ac_try) 2>&5
42021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42022 (exit $ac_status); }; }; then
42025 echo "$as_me: failed program was:" >&5
42026 sed 's/^/| /' conftest.$ac_ext >&5
42030 rm -f conftest.err conftest.$ac_objext \
42031 conftest$ac_exeext conftest.$ac_ext
42036 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42037 echo "${ECHO_T}$ol_cv_db_db41" >&6
42039 if test $ol_cv_db_db41 = yes ; then
42040 ol_cv_lib_db=-ldb41
42044 if test $ol_cv_lib_db = no ; then
42045 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42046 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42047 if test "${ol_cv_db_db_41+set}" = set; then
42048 echo $ECHO_N "(cached) $ECHO_C" >&6
42053 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42055 cat >conftest.$ac_ext <<_ACEOF
42058 cat confdefs.h >>conftest.$ac_ext
42059 cat >>conftest.$ac_ext <<_ACEOF
42060 /* end confdefs.h. */
42062 #ifdef HAVE_DB_185_H
42063 # include <db_185.h>
42068 #ifndef DB_VERSION_MAJOR
42069 # define DB_VERSION_MAJOR 1
42073 #define NULL ((void*)0)
42080 #if DB_VERSION_MAJOR > 1
42083 int major, minor, patch;
42085 version = db_version( &major, &minor, &patch );
42087 if( major != DB_VERSION_MAJOR ||
42088 minor < DB_VERSION_MINOR )
42090 printf("Berkeley DB version mismatch\n"
42091 "\theader: %s\n\tlibrary: %s\n",
42092 DB_VERSION_STRING, version);
42098 #if DB_VERSION_MAJOR > 2
42099 db_env_create( NULL, 0 );
42100 #elif DB_VERSION_MAJOR > 1
42101 db_appexit( NULL );
42103 (void) dbopen( NULL, 0, 0, 0, NULL);
42110 rm -f conftest.$ac_objext conftest$ac_exeext
42111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42112 (eval $ac_link) 2>conftest.er1
42114 grep -v '^ *+' conftest.er1 >conftest.err
42116 cat conftest.err >&5
42117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42118 (exit $ac_status); } &&
42119 { ac_try='test -z "$ac_c_werror_flag"
42120 || test ! -s conftest.err'
42121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42122 (eval $ac_try) 2>&5
42124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42125 (exit $ac_status); }; } &&
42126 { ac_try='test -s conftest$ac_exeext'
42127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42128 (eval $ac_try) 2>&5
42130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42131 (exit $ac_status); }; }; then
42134 echo "$as_me: failed program was:" >&5
42135 sed 's/^/| /' conftest.$ac_ext >&5
42139 rm -f conftest.err conftest.$ac_objext \
42140 conftest$ac_exeext conftest.$ac_ext
42145 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42146 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42148 if test $ol_cv_db_db_41 = yes ; then
42149 ol_cv_lib_db=-ldb-41
42153 if test $ol_cv_lib_db = no ; then
42154 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42155 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42156 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42157 echo $ECHO_N "(cached) $ECHO_C" >&6
42162 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42164 cat >conftest.$ac_ext <<_ACEOF
42167 cat confdefs.h >>conftest.$ac_ext
42168 cat >>conftest.$ac_ext <<_ACEOF
42169 /* end confdefs.h. */
42171 #ifdef HAVE_DB_185_H
42172 # include <db_185.h>
42177 #ifndef DB_VERSION_MAJOR
42178 # define DB_VERSION_MAJOR 1
42182 #define NULL ((void*)0)
42189 #if DB_VERSION_MAJOR > 1
42192 int major, minor, patch;
42194 version = db_version( &major, &minor, &patch );
42196 if( major != DB_VERSION_MAJOR ||
42197 minor < DB_VERSION_MINOR )
42199 printf("Berkeley DB version mismatch\n"
42200 "\theader: %s\n\tlibrary: %s\n",
42201 DB_VERSION_STRING, version);
42207 #if DB_VERSION_MAJOR > 2
42208 db_env_create( NULL, 0 );
42209 #elif DB_VERSION_MAJOR > 1
42210 db_appexit( NULL );
42212 (void) dbopen( NULL, 0, 0, 0, NULL);
42219 rm -f conftest.$ac_objext conftest$ac_exeext
42220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42221 (eval $ac_link) 2>conftest.er1
42223 grep -v '^ *+' conftest.er1 >conftest.err
42225 cat conftest.err >&5
42226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42227 (exit $ac_status); } &&
42228 { ac_try='test -z "$ac_c_werror_flag"
42229 || test ! -s conftest.err'
42230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42231 (eval $ac_try) 2>&5
42233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42234 (exit $ac_status); }; } &&
42235 { ac_try='test -s conftest$ac_exeext'
42236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42237 (eval $ac_try) 2>&5
42239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240 (exit $ac_status); }; }; then
42241 ol_cv_db_db_4_dot_1=yes
42243 echo "$as_me: failed program was:" >&5
42244 sed 's/^/| /' conftest.$ac_ext >&5
42246 ol_cv_db_db_4_dot_1=no
42248 rm -f conftest.err conftest.$ac_objext \
42249 conftest$ac_exeext conftest.$ac_ext
42254 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42255 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42257 if test $ol_cv_db_db_4_dot_1 = yes ; then
42258 ol_cv_lib_db=-ldb-4.1
42262 if test $ol_cv_lib_db = no ; then
42263 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42264 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42265 if test "${ol_cv_db_db_4_1+set}" = set; then
42266 echo $ECHO_N "(cached) $ECHO_C" >&6
42271 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42273 cat >conftest.$ac_ext <<_ACEOF
42276 cat confdefs.h >>conftest.$ac_ext
42277 cat >>conftest.$ac_ext <<_ACEOF
42278 /* end confdefs.h. */
42280 #ifdef HAVE_DB_185_H
42281 # include <db_185.h>
42286 #ifndef DB_VERSION_MAJOR
42287 # define DB_VERSION_MAJOR 1
42291 #define NULL ((void*)0)
42298 #if DB_VERSION_MAJOR > 1
42301 int major, minor, patch;
42303 version = db_version( &major, &minor, &patch );
42305 if( major != DB_VERSION_MAJOR ||
42306 minor < DB_VERSION_MINOR )
42308 printf("Berkeley DB version mismatch\n"
42309 "\theader: %s\n\tlibrary: %s\n",
42310 DB_VERSION_STRING, version);
42316 #if DB_VERSION_MAJOR > 2
42317 db_env_create( NULL, 0 );
42318 #elif DB_VERSION_MAJOR > 1
42319 db_appexit( NULL );
42321 (void) dbopen( NULL, 0, 0, 0, NULL);
42328 rm -f conftest.$ac_objext conftest$ac_exeext
42329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42330 (eval $ac_link) 2>conftest.er1
42332 grep -v '^ *+' conftest.er1 >conftest.err
42334 cat conftest.err >&5
42335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336 (exit $ac_status); } &&
42337 { ac_try='test -z "$ac_c_werror_flag"
42338 || test ! -s conftest.err'
42339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42340 (eval $ac_try) 2>&5
42342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343 (exit $ac_status); }; } &&
42344 { ac_try='test -s conftest$ac_exeext'
42345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42346 (eval $ac_try) 2>&5
42348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42349 (exit $ac_status); }; }; then
42350 ol_cv_db_db_4_1=yes
42352 echo "$as_me: failed program was:" >&5
42353 sed 's/^/| /' conftest.$ac_ext >&5
42357 rm -f conftest.err conftest.$ac_objext \
42358 conftest$ac_exeext conftest.$ac_ext
42363 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42364 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42366 if test $ol_cv_db_db_4_1 = yes ; then
42367 ol_cv_lib_db=-ldb-4-1
42371 if test $ol_cv_lib_db = no ; then
42372 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42373 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42374 if test "${ol_cv_db_db3+set}" = set; then
42375 echo $ECHO_N "(cached) $ECHO_C" >&6
42380 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42382 cat >conftest.$ac_ext <<_ACEOF
42385 cat confdefs.h >>conftest.$ac_ext
42386 cat >>conftest.$ac_ext <<_ACEOF
42387 /* end confdefs.h. */
42389 #ifdef HAVE_DB_185_H
42390 # include <db_185.h>
42395 #ifndef DB_VERSION_MAJOR
42396 # define DB_VERSION_MAJOR 1
42400 #define NULL ((void*)0)
42407 #if DB_VERSION_MAJOR > 1
42410 int major, minor, patch;
42412 version = db_version( &major, &minor, &patch );
42414 if( major != DB_VERSION_MAJOR ||
42415 minor < DB_VERSION_MINOR )
42417 printf("Berkeley DB version mismatch\n"
42418 "\theader: %s\n\tlibrary: %s\n",
42419 DB_VERSION_STRING, version);
42425 #if DB_VERSION_MAJOR > 2
42426 db_env_create( NULL, 0 );
42427 #elif DB_VERSION_MAJOR > 1
42428 db_appexit( NULL );
42430 (void) dbopen( NULL, 0, 0, 0, NULL);
42437 rm -f conftest.$ac_objext conftest$ac_exeext
42438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42439 (eval $ac_link) 2>conftest.er1
42441 grep -v '^ *+' conftest.er1 >conftest.err
42443 cat conftest.err >&5
42444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445 (exit $ac_status); } &&
42446 { ac_try='test -z "$ac_c_werror_flag"
42447 || test ! -s conftest.err'
42448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42449 (eval $ac_try) 2>&5
42451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42452 (exit $ac_status); }; } &&
42453 { ac_try='test -s conftest$ac_exeext'
42454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42455 (eval $ac_try) 2>&5
42457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42458 (exit $ac_status); }; }; then
42461 echo "$as_me: failed program was:" >&5
42462 sed 's/^/| /' conftest.$ac_ext >&5
42466 rm -f conftest.err conftest.$ac_objext \
42467 conftest$ac_exeext conftest.$ac_ext
42472 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42473 echo "${ECHO_T}$ol_cv_db_db3" >&6
42475 if test $ol_cv_db_db3 = yes ; then
42480 if test $ol_cv_lib_db = no ; then
42481 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42482 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42483 if test "${ol_cv_db_db_3+set}" = set; then
42484 echo $ECHO_N "(cached) $ECHO_C" >&6
42489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42491 cat >conftest.$ac_ext <<_ACEOF
42494 cat confdefs.h >>conftest.$ac_ext
42495 cat >>conftest.$ac_ext <<_ACEOF
42496 /* end confdefs.h. */
42498 #ifdef HAVE_DB_185_H
42499 # include <db_185.h>
42504 #ifndef DB_VERSION_MAJOR
42505 # define DB_VERSION_MAJOR 1
42509 #define NULL ((void*)0)
42516 #if DB_VERSION_MAJOR > 1
42519 int major, minor, patch;
42521 version = db_version( &major, &minor, &patch );
42523 if( major != DB_VERSION_MAJOR ||
42524 minor < DB_VERSION_MINOR )
42526 printf("Berkeley DB version mismatch\n"
42527 "\theader: %s\n\tlibrary: %s\n",
42528 DB_VERSION_STRING, version);
42534 #if DB_VERSION_MAJOR > 2
42535 db_env_create( NULL, 0 );
42536 #elif DB_VERSION_MAJOR > 1
42537 db_appexit( NULL );
42539 (void) dbopen( NULL, 0, 0, 0, NULL);
42546 rm -f conftest.$ac_objext conftest$ac_exeext
42547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42548 (eval $ac_link) 2>conftest.er1
42550 grep -v '^ *+' conftest.er1 >conftest.err
42552 cat conftest.err >&5
42553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42554 (exit $ac_status); } &&
42555 { ac_try='test -z "$ac_c_werror_flag"
42556 || test ! -s conftest.err'
42557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42558 (eval $ac_try) 2>&5
42560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42561 (exit $ac_status); }; } &&
42562 { ac_try='test -s conftest$ac_exeext'
42563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42564 (eval $ac_try) 2>&5
42566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42567 (exit $ac_status); }; }; then
42570 echo "$as_me: failed program was:" >&5
42571 sed 's/^/| /' conftest.$ac_ext >&5
42575 rm -f conftest.err conftest.$ac_objext \
42576 conftest$ac_exeext conftest.$ac_ext
42581 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42582 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42584 if test $ol_cv_db_db_3 = yes ; then
42585 ol_cv_lib_db=-ldb-3
42589 if test $ol_cv_lib_db = no ; then
42590 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42591 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42592 if test "${ol_cv_db_db2+set}" = set; then
42593 echo $ECHO_N "(cached) $ECHO_C" >&6
42598 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42600 cat >conftest.$ac_ext <<_ACEOF
42603 cat confdefs.h >>conftest.$ac_ext
42604 cat >>conftest.$ac_ext <<_ACEOF
42605 /* end confdefs.h. */
42607 #ifdef HAVE_DB_185_H
42608 # include <db_185.h>
42613 #ifndef DB_VERSION_MAJOR
42614 # define DB_VERSION_MAJOR 1
42618 #define NULL ((void*)0)
42625 #if DB_VERSION_MAJOR > 1
42628 int major, minor, patch;
42630 version = db_version( &major, &minor, &patch );
42632 if( major != DB_VERSION_MAJOR ||
42633 minor < DB_VERSION_MINOR )
42635 printf("Berkeley DB version mismatch\n"
42636 "\theader: %s\n\tlibrary: %s\n",
42637 DB_VERSION_STRING, version);
42643 #if DB_VERSION_MAJOR > 2
42644 db_env_create( NULL, 0 );
42645 #elif DB_VERSION_MAJOR > 1
42646 db_appexit( NULL );
42648 (void) dbopen( NULL, 0, 0, 0, NULL);
42655 rm -f conftest.$ac_objext conftest$ac_exeext
42656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42657 (eval $ac_link) 2>conftest.er1
42659 grep -v '^ *+' conftest.er1 >conftest.err
42661 cat conftest.err >&5
42662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42663 (exit $ac_status); } &&
42664 { ac_try='test -z "$ac_c_werror_flag"
42665 || test ! -s conftest.err'
42666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42667 (eval $ac_try) 2>&5
42669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42670 (exit $ac_status); }; } &&
42671 { ac_try='test -s conftest$ac_exeext'
42672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42673 (eval $ac_try) 2>&5
42675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42676 (exit $ac_status); }; }; then
42679 echo "$as_me: failed program was:" >&5
42680 sed 's/^/| /' conftest.$ac_ext >&5
42684 rm -f conftest.err conftest.$ac_objext \
42685 conftest$ac_exeext conftest.$ac_ext
42690 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42691 echo "${ECHO_T}$ol_cv_db_db2" >&6
42693 if test $ol_cv_db_db2 = yes ; then
42698 if test $ol_cv_lib_db = no ; then
42699 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42700 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42701 if test "${ol_cv_db_db_2+set}" = set; then
42702 echo $ECHO_N "(cached) $ECHO_C" >&6
42707 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42709 cat >conftest.$ac_ext <<_ACEOF
42712 cat confdefs.h >>conftest.$ac_ext
42713 cat >>conftest.$ac_ext <<_ACEOF
42714 /* end confdefs.h. */
42716 #ifdef HAVE_DB_185_H
42717 # include <db_185.h>
42722 #ifndef DB_VERSION_MAJOR
42723 # define DB_VERSION_MAJOR 1
42727 #define NULL ((void*)0)
42734 #if DB_VERSION_MAJOR > 1
42737 int major, minor, patch;
42739 version = db_version( &major, &minor, &patch );
42741 if( major != DB_VERSION_MAJOR ||
42742 minor < DB_VERSION_MINOR )
42744 printf("Berkeley DB version mismatch\n"
42745 "\theader: %s\n\tlibrary: %s\n",
42746 DB_VERSION_STRING, version);
42752 #if DB_VERSION_MAJOR > 2
42753 db_env_create( NULL, 0 );
42754 #elif DB_VERSION_MAJOR > 1
42755 db_appexit( NULL );
42757 (void) dbopen( NULL, 0, 0, 0, NULL);
42764 rm -f conftest.$ac_objext conftest$ac_exeext
42765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42766 (eval $ac_link) 2>conftest.er1
42768 grep -v '^ *+' conftest.er1 >conftest.err
42770 cat conftest.err >&5
42771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42772 (exit $ac_status); } &&
42773 { ac_try='test -z "$ac_c_werror_flag"
42774 || test ! -s conftest.err'
42775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42776 (eval $ac_try) 2>&5
42778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42779 (exit $ac_status); }; } &&
42780 { ac_try='test -s conftest$ac_exeext'
42781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42782 (eval $ac_try) 2>&5
42784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42785 (exit $ac_status); }; }; then
42788 echo "$as_me: failed program was:" >&5
42789 sed 's/^/| /' conftest.$ac_ext >&5
42793 rm -f conftest.err conftest.$ac_objext \
42794 conftest$ac_exeext conftest.$ac_ext
42799 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42800 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42802 if test $ol_cv_db_db_2 = yes ; then
42803 ol_cv_lib_db=-ldb-2
42807 if test $ol_cv_lib_db = no ; then
42808 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42809 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42810 if test "${ol_cv_db_db1+set}" = set; then
42811 echo $ECHO_N "(cached) $ECHO_C" >&6
42816 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42818 cat >conftest.$ac_ext <<_ACEOF
42821 cat confdefs.h >>conftest.$ac_ext
42822 cat >>conftest.$ac_ext <<_ACEOF
42823 /* end confdefs.h. */
42825 #ifdef HAVE_DB_185_H
42826 # include <db_185.h>
42831 #ifndef DB_VERSION_MAJOR
42832 # define DB_VERSION_MAJOR 1
42836 #define NULL ((void*)0)
42843 #if DB_VERSION_MAJOR > 1
42846 int major, minor, patch;
42848 version = db_version( &major, &minor, &patch );
42850 if( major != DB_VERSION_MAJOR ||
42851 minor < DB_VERSION_MINOR )
42853 printf("Berkeley DB version mismatch\n"
42854 "\theader: %s\n\tlibrary: %s\n",
42855 DB_VERSION_STRING, version);
42861 #if DB_VERSION_MAJOR > 2
42862 db_env_create( NULL, 0 );
42863 #elif DB_VERSION_MAJOR > 1
42864 db_appexit( NULL );
42866 (void) dbopen( NULL, 0, 0, 0, NULL);
42873 rm -f conftest.$ac_objext conftest$ac_exeext
42874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42875 (eval $ac_link) 2>conftest.er1
42877 grep -v '^ *+' conftest.er1 >conftest.err
42879 cat conftest.err >&5
42880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881 (exit $ac_status); } &&
42882 { ac_try='test -z "$ac_c_werror_flag"
42883 || test ! -s conftest.err'
42884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42885 (eval $ac_try) 2>&5
42887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42888 (exit $ac_status); }; } &&
42889 { ac_try='test -s conftest$ac_exeext'
42890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42891 (eval $ac_try) 2>&5
42893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42894 (exit $ac_status); }; }; then
42897 echo "$as_me: failed program was:" >&5
42898 sed 's/^/| /' conftest.$ac_ext >&5
42902 rm -f conftest.err conftest.$ac_objext \
42903 conftest$ac_exeext conftest.$ac_ext
42908 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42909 echo "${ECHO_T}$ol_cv_db_db1" >&6
42911 if test $ol_cv_db_db1 = yes ; then
42916 if test $ol_cv_lib_db = no ; then
42917 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42918 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42919 if test "${ol_cv_db_db_1+set}" = set; then
42920 echo $ECHO_N "(cached) $ECHO_C" >&6
42925 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42927 cat >conftest.$ac_ext <<_ACEOF
42930 cat confdefs.h >>conftest.$ac_ext
42931 cat >>conftest.$ac_ext <<_ACEOF
42932 /* end confdefs.h. */
42934 #ifdef HAVE_DB_185_H
42935 # include <db_185.h>
42940 #ifndef DB_VERSION_MAJOR
42941 # define DB_VERSION_MAJOR 1
42945 #define NULL ((void*)0)
42952 #if DB_VERSION_MAJOR > 1
42955 int major, minor, patch;
42957 version = db_version( &major, &minor, &patch );
42959 if( major != DB_VERSION_MAJOR ||
42960 minor < DB_VERSION_MINOR )
42962 printf("Berkeley DB version mismatch\n"
42963 "\theader: %s\n\tlibrary: %s\n",
42964 DB_VERSION_STRING, version);
42970 #if DB_VERSION_MAJOR > 2
42971 db_env_create( NULL, 0 );
42972 #elif DB_VERSION_MAJOR > 1
42973 db_appexit( NULL );
42975 (void) dbopen( NULL, 0, 0, 0, NULL);
42982 rm -f conftest.$ac_objext conftest$ac_exeext
42983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42984 (eval $ac_link) 2>conftest.er1
42986 grep -v '^ *+' conftest.er1 >conftest.err
42988 cat conftest.err >&5
42989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42990 (exit $ac_status); } &&
42991 { ac_try='test -z "$ac_c_werror_flag"
42992 || test ! -s conftest.err'
42993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42994 (eval $ac_try) 2>&5
42996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42997 (exit $ac_status); }; } &&
42998 { ac_try='test -s conftest$ac_exeext'
42999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43000 (eval $ac_try) 2>&5
43002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43003 (exit $ac_status); }; }; then
43006 echo "$as_me: failed program was:" >&5
43007 sed 's/^/| /' conftest.$ac_ext >&5
43011 rm -f conftest.err conftest.$ac_objext \
43012 conftest$ac_exeext conftest.$ac_ext
43017 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43018 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43020 if test $ol_cv_db_db_1 = yes ; then
43021 ol_cv_lib_db=-ldb-1
43026 if test "$ol_cv_lib_db" != no ; then
43027 ol_cv_berkeley_db=yes
43028 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43029 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43030 if test "${ol_cv_berkeley_db_version+set}" = set; then
43031 echo $ECHO_N "(cached) $ECHO_C" >&6
43035 LIBS="$LTHREAD_LIBS $LIBS"
43036 if test $ol_cv_lib_db != yes ; then
43037 LIBS="$ol_cv_lib_db $LIBS"
43040 if test "$cross_compiling" = yes; then
43041 ol_cv_berkeley_db_version=cross
43043 cat >conftest.$ac_ext <<_ACEOF
43046 cat confdefs.h >>conftest.$ac_ext
43047 cat >>conftest.$ac_ext <<_ACEOF
43048 /* end confdefs.h. */
43050 #ifdef HAVE_DB_185_H
43055 #ifndef DB_VERSION_MAJOR
43056 # define DB_VERSION_MAJOR 1
43059 #define NULL ((void *)0)
43063 #if DB_VERSION_MAJOR > 1
43065 int major, minor, patch;
43067 version = db_version( &major, &minor, &patch );
43069 if( major != DB_VERSION_MAJOR ||
43070 minor != DB_VERSION_MINOR ||
43071 patch != DB_VERSION_PATCH )
43073 printf("Berkeley DB version mismatch\n"
43074 "\theader: %s\n\tlibrary: %s\n",
43075 DB_VERSION_STRING, version);
43083 rm -f conftest$ac_exeext
43084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43085 (eval $ac_link) 2>&5
43087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43090 (eval $ac_try) 2>&5
43092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43093 (exit $ac_status); }; }; then
43094 ol_cv_berkeley_db_version=yes
43096 echo "$as_me: program exited with status $ac_status" >&5
43097 echo "$as_me: failed program was:" >&5
43098 sed 's/^/| /' conftest.$ac_ext >&5
43100 ( exit $ac_status )
43101 ol_cv_berkeley_db_version=no
43103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43109 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43110 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43112 if test $ol_cv_berkeley_db_version = no ; then
43113 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43114 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43115 { (exit 1); exit 1; }; }
43118 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43119 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43120 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43121 echo $ECHO_N "(cached) $ECHO_C" >&6
43125 LIBS="$LTHREAD_LIBS $LIBS"
43126 if test $ol_cv_lib_db != yes ; then
43127 LIBS="$ol_cv_lib_db $LIBS"
43130 if test "$cross_compiling" = yes; then
43131 ol_cv_berkeley_db_thread=cross
43133 cat >conftest.$ac_ext <<_ACEOF
43136 cat confdefs.h >>conftest.$ac_ext
43137 cat >>conftest.$ac_ext <<_ACEOF
43138 /* end confdefs.h. */
43140 #ifdef HAVE_DB_185_H
43146 #define NULL ((void *)0)
43151 u_int32_t flags = DB_CREATE |
43157 #if DB_VERSION_MAJOR > 2
43158 DB_ENV *env = NULL;
43160 rc = db_env_create( &env, 0 );
43162 flags |= DB_INIT_MPOOL;
43163 #ifdef DB_MPOOL_PRIVATE
43164 flags |= DB_MPOOL_PRIVATE;
43168 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43172 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43173 rc = env->open( env, NULL, flags, 0 );
43175 rc = env->open( env, NULL, NULL, flags, 0 );
43179 rc = env->close( env, 0 );
43183 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43189 memset( &env, '\0', sizeof(env) );
43191 rc = db_appinit( NULL, NULL, &env, flags );
43194 db_appexit( &env );
43197 unlink("__db_mpool.share");
43198 unlink("__db_lock.share");
43204 rm -f conftest$ac_exeext
43205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43206 (eval $ac_link) 2>&5
43208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43211 (eval $ac_try) 2>&5
43213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214 (exit $ac_status); }; }; then
43215 ol_cv_berkeley_db_thread=yes
43217 echo "$as_me: program exited with status $ac_status" >&5
43218 echo "$as_me: failed program was:" >&5
43219 sed 's/^/| /' conftest.$ac_ext >&5
43221 ( exit $ac_status )
43222 ol_cv_berkeley_db_thread=no
43224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43230 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43231 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43233 if test $ol_cv_berkeley_db_thread != no ; then
43235 cat >>confdefs.h <<\_ACEOF
43236 #define HAVE_BERKELEY_DB_THREAD 1
43246 if test $ol_cv_berkeley_db != no ; then
43248 cat >>confdefs.h <<\_ACEOF
43249 #define HAVE_BERKELEY_DB 1
43253 ol_link_ldbm=berkeley
43254 ol_with_ldbm_api=berkeley
43256 if test $ol_with_ldbm_type = hash ; then
43258 cat >>confdefs.h <<\_ACEOF
43259 #define LDBM_USE_DBHASH 1
43264 cat >>confdefs.h <<\_ACEOF
43265 #define LDBM_USE_DBBTREE 1
43270 if test $ol_cv_lib_db != yes ; then
43271 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43276 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43277 if test $ol_link_ldbm != berkeley ; then
43278 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43279 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43280 { (exit 1); exit 1; }; }
43282 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43283 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43284 if test "${ol_cv_bdb_compat+set}" = set; then
43285 echo $ECHO_N "(cached) $ECHO_C" >&6
43288 cat >conftest.$ac_ext <<_ACEOF
43291 cat confdefs.h >>conftest.$ac_ext
43292 cat >>conftest.$ac_ext <<_ACEOF
43293 /* end confdefs.h. */
43297 /* this check could be improved */
43298 #ifndef DB_VERSION_MAJOR
43299 # define DB_VERSION_MAJOR 1
43301 #ifndef DB_VERSION_MINOR
43302 # define DB_VERSION_MINOR 0
43305 /* require 4.2 or later */
43306 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43307 __db_version_compat
43311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43312 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43313 ol_cv_bdb_compat=yes
43315 ol_cv_bdb_compat=no
43320 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43321 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43324 if test $ol_cv_bdb_compat != yes ; then
43325 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43326 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43327 { (exit 1); exit 1; }; }
43332 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43333 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43334 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43335 ol_with_ldbm_api=none
43338 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43339 echo "$as_me:$LINENO: checking for MDBM library" >&5
43340 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43341 if test "${ol_cv_lib_mdbm+set}" = set; then
43342 echo $ECHO_N "(cached) $ECHO_C" >&6
43345 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43346 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43347 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43348 echo $ECHO_N "(cached) $ECHO_C" >&6
43350 cat >conftest.$ac_ext <<_ACEOF
43353 cat confdefs.h >>conftest.$ac_ext
43354 cat >>conftest.$ac_ext <<_ACEOF
43355 /* end confdefs.h. */
43356 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43358 #define mdbm_set_chain innocuous_mdbm_set_chain
43360 /* System header to define __stub macros and hopefully few prototypes,
43361 which can conflict with char mdbm_set_chain (); below.
43362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43363 <limits.h> exists even on freestanding compilers. */
43366 # include <limits.h>
43368 # include <assert.h>
43371 #undef mdbm_set_chain
43373 /* Override any gcc2 internal prototype to avoid an error. */
43378 /* We use char because int might match the return type of a gcc2
43379 builtin and then its argument prototype would still apply. */
43380 char mdbm_set_chain ();
43381 /* The GNU C library defines this for functions which it implements
43382 to always fail with ENOSYS. Some functions are actually named
43383 something starting with __ and the normal name is an alias. */
43384 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43387 char (*f) () = mdbm_set_chain;
43396 return f != mdbm_set_chain;
43401 rm -f conftest.$ac_objext conftest$ac_exeext
43402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43403 (eval $ac_link) 2>conftest.er1
43405 grep -v '^ *+' conftest.er1 >conftest.err
43407 cat conftest.err >&5
43408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43409 (exit $ac_status); } &&
43410 { ac_try='test -z "$ac_c_werror_flag"
43411 || test ! -s conftest.err'
43412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43413 (eval $ac_try) 2>&5
43415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416 (exit $ac_status); }; } &&
43417 { ac_try='test -s conftest$ac_exeext'
43418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43419 (eval $ac_try) 2>&5
43421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422 (exit $ac_status); }; }; then
43423 ac_cv_func_mdbm_set_chain=yes
43425 echo "$as_me: failed program was:" >&5
43426 sed 's/^/| /' conftest.$ac_ext >&5
43428 ac_cv_func_mdbm_set_chain=no
43430 rm -f conftest.err conftest.$ac_objext \
43431 conftest$ac_exeext conftest.$ac_ext
43433 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43434 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43435 if test $ac_cv_func_mdbm_set_chain = yes; then
43439 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43440 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43441 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43442 echo $ECHO_N "(cached) $ECHO_C" >&6
43444 ac_check_lib_save_LIBS=$LIBS
43445 LIBS="-lmdbm $LIBS"
43446 cat >conftest.$ac_ext <<_ACEOF
43449 cat confdefs.h >>conftest.$ac_ext
43450 cat >>conftest.$ac_ext <<_ACEOF
43451 /* end confdefs.h. */
43453 /* Override any gcc2 internal prototype to avoid an error. */
43457 /* We use char because int might match the return type of a gcc2
43458 builtin and then its argument prototype would still apply. */
43459 char mdbm_set_chain ();
43468 rm -f conftest.$ac_objext conftest$ac_exeext
43469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43470 (eval $ac_link) 2>conftest.er1
43472 grep -v '^ *+' conftest.er1 >conftest.err
43474 cat conftest.err >&5
43475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43476 (exit $ac_status); } &&
43477 { ac_try='test -z "$ac_c_werror_flag"
43478 || test ! -s conftest.err'
43479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43480 (eval $ac_try) 2>&5
43482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43483 (exit $ac_status); }; } &&
43484 { ac_try='test -s conftest$ac_exeext'
43485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43486 (eval $ac_try) 2>&5
43488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43489 (exit $ac_status); }; }; then
43490 ac_cv_lib_mdbm_mdbm_set_chain=yes
43492 echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43495 ac_cv_lib_mdbm_mdbm_set_chain=no
43497 rm -f conftest.err conftest.$ac_objext \
43498 conftest$ac_exeext conftest.$ac_ext
43499 LIBS=$ac_check_lib_save_LIBS
43501 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43502 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43503 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43504 ol_cv_lib_mdbm=-lmdbm
43515 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43516 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43520 for ac_header in mdbm.h
43522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43524 echo "$as_me:$LINENO: checking for $ac_header" >&5
43525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43527 echo $ECHO_N "(cached) $ECHO_C" >&6
43529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43532 # Is the header compilable?
43533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43535 cat >conftest.$ac_ext <<_ACEOF
43538 cat confdefs.h >>conftest.$ac_ext
43539 cat >>conftest.$ac_ext <<_ACEOF
43540 /* end confdefs.h. */
43541 $ac_includes_default
43542 #include <$ac_header>
43544 rm -f conftest.$ac_objext
43545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43546 (eval $ac_compile) 2>conftest.er1
43548 grep -v '^ *+' conftest.er1 >conftest.err
43550 cat conftest.err >&5
43551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43552 (exit $ac_status); } &&
43553 { ac_try='test -z "$ac_c_werror_flag"
43554 || test ! -s conftest.err'
43555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43556 (eval $ac_try) 2>&5
43558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559 (exit $ac_status); }; } &&
43560 { ac_try='test -s conftest.$ac_objext'
43561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43562 (eval $ac_try) 2>&5
43564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43565 (exit $ac_status); }; }; then
43566 ac_header_compiler=yes
43568 echo "$as_me: failed program was:" >&5
43569 sed 's/^/| /' conftest.$ac_ext >&5
43571 ac_header_compiler=no
43573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43575 echo "${ECHO_T}$ac_header_compiler" >&6
43577 # Is the header present?
43578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43580 cat >conftest.$ac_ext <<_ACEOF
43583 cat confdefs.h >>conftest.$ac_ext
43584 cat >>conftest.$ac_ext <<_ACEOF
43585 /* end confdefs.h. */
43586 #include <$ac_header>
43588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43591 grep -v '^ *+' conftest.er1 >conftest.err
43593 cat conftest.err >&5
43594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595 (exit $ac_status); } >/dev/null; then
43596 if test -s conftest.err; then
43597 ac_cpp_err=$ac_c_preproc_warn_flag
43598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43605 if test -z "$ac_cpp_err"; then
43606 ac_header_preproc=yes
43608 echo "$as_me: failed program was:" >&5
43609 sed 's/^/| /' conftest.$ac_ext >&5
43611 ac_header_preproc=no
43613 rm -f conftest.err conftest.$ac_ext
43614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43615 echo "${ECHO_T}$ac_header_preproc" >&6
43617 # So? What about this header?
43618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43624 ac_header_preproc=yes
43627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43641 ## ------------------------------------------ ##
43642 ## Report this to the AC_PACKAGE_NAME lists. ##
43643 ## ------------------------------------------ ##
43646 sed "s/^/$as_me: WARNING: /" >&2
43649 echo "$as_me:$LINENO: checking for $ac_header" >&5
43650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43652 echo $ECHO_N "(cached) $ECHO_C" >&6
43654 eval "$as_ac_Header=\$ac_header_preproc"
43656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43661 cat >>confdefs.h <<_ACEOF
43662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43669 echo "$as_me:$LINENO: checking for db" >&5
43670 echo $ECHO_N "checking for db... $ECHO_C" >&6
43671 if test "${ol_cv_mdbm+set}" = set; then
43672 echo $ECHO_N "(cached) $ECHO_C" >&6
43675 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43682 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43683 echo "${ECHO_T}$ol_cv_mdbm" >&6
43684 if test $ol_cv_mdbm = yes ; then
43686 cat >>confdefs.h <<\_ACEOF
43687 #define HAVE_MDBM 1
43693 if test $ol_cv_mdbm = yes ; then
43695 ol_with_ldbm_api=mdbm
43696 if test $ol_cv_lib_mdbm != yes ; then
43697 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43702 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43703 echo "$as_me:$LINENO: checking for GDBM library" >&5
43704 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43705 if test "${ol_cv_lib_gdbm+set}" = set; then
43706 echo $ECHO_N "(cached) $ECHO_C" >&6
43709 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43710 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43711 if test "${ac_cv_func_gdbm_open+set}" = set; then
43712 echo $ECHO_N "(cached) $ECHO_C" >&6
43714 cat >conftest.$ac_ext <<_ACEOF
43717 cat confdefs.h >>conftest.$ac_ext
43718 cat >>conftest.$ac_ext <<_ACEOF
43719 /* end confdefs.h. */
43720 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43722 #define gdbm_open innocuous_gdbm_open
43724 /* System header to define __stub macros and hopefully few prototypes,
43725 which can conflict with char gdbm_open (); below.
43726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43727 <limits.h> exists even on freestanding compilers. */
43730 # include <limits.h>
43732 # include <assert.h>
43737 /* Override any gcc2 internal prototype to avoid an error. */
43742 /* We use char because int might match the return type of a gcc2
43743 builtin and then its argument prototype would still apply. */
43745 /* The GNU C library defines this for functions which it implements
43746 to always fail with ENOSYS. Some functions are actually named
43747 something starting with __ and the normal name is an alias. */
43748 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43751 char (*f) () = gdbm_open;
43760 return f != gdbm_open;
43765 rm -f conftest.$ac_objext conftest$ac_exeext
43766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43767 (eval $ac_link) 2>conftest.er1
43769 grep -v '^ *+' conftest.er1 >conftest.err
43771 cat conftest.err >&5
43772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43773 (exit $ac_status); } &&
43774 { ac_try='test -z "$ac_c_werror_flag"
43775 || test ! -s conftest.err'
43776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43777 (eval $ac_try) 2>&5
43779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43780 (exit $ac_status); }; } &&
43781 { ac_try='test -s conftest$ac_exeext'
43782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43783 (eval $ac_try) 2>&5
43785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43786 (exit $ac_status); }; }; then
43787 ac_cv_func_gdbm_open=yes
43789 echo "$as_me: failed program was:" >&5
43790 sed 's/^/| /' conftest.$ac_ext >&5
43792 ac_cv_func_gdbm_open=no
43794 rm -f conftest.err conftest.$ac_objext \
43795 conftest$ac_exeext conftest.$ac_ext
43797 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43798 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43799 if test $ac_cv_func_gdbm_open = yes; then
43803 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43804 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43805 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43806 echo $ECHO_N "(cached) $ECHO_C" >&6
43808 ac_check_lib_save_LIBS=$LIBS
43809 LIBS="-lgdbm $LIBS"
43810 cat >conftest.$ac_ext <<_ACEOF
43813 cat confdefs.h >>conftest.$ac_ext
43814 cat >>conftest.$ac_ext <<_ACEOF
43815 /* end confdefs.h. */
43817 /* Override any gcc2 internal prototype to avoid an error. */
43821 /* We use char because int might match the return type of a gcc2
43822 builtin and then its argument prototype would still apply. */
43832 rm -f conftest.$ac_objext conftest$ac_exeext
43833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43834 (eval $ac_link) 2>conftest.er1
43836 grep -v '^ *+' conftest.er1 >conftest.err
43838 cat conftest.err >&5
43839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43840 (exit $ac_status); } &&
43841 { ac_try='test -z "$ac_c_werror_flag"
43842 || test ! -s conftest.err'
43843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43844 (eval $ac_try) 2>&5
43846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847 (exit $ac_status); }; } &&
43848 { ac_try='test -s conftest$ac_exeext'
43849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43850 (eval $ac_try) 2>&5
43852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43853 (exit $ac_status); }; }; then
43854 ac_cv_lib_gdbm_gdbm_open=yes
43856 echo "$as_me: failed program was:" >&5
43857 sed 's/^/| /' conftest.$ac_ext >&5
43859 ac_cv_lib_gdbm_gdbm_open=no
43861 rm -f conftest.err conftest.$ac_objext \
43862 conftest$ac_exeext conftest.$ac_ext
43863 LIBS=$ac_check_lib_save_LIBS
43865 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43866 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43867 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43868 ol_cv_lib_gdbm=-lgdbm
43879 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43880 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43884 for ac_header in gdbm.h
43886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43888 echo "$as_me:$LINENO: checking for $ac_header" >&5
43889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43891 echo $ECHO_N "(cached) $ECHO_C" >&6
43893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43896 # Is the header compilable?
43897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43899 cat >conftest.$ac_ext <<_ACEOF
43902 cat confdefs.h >>conftest.$ac_ext
43903 cat >>conftest.$ac_ext <<_ACEOF
43904 /* end confdefs.h. */
43905 $ac_includes_default
43906 #include <$ac_header>
43908 rm -f conftest.$ac_objext
43909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43910 (eval $ac_compile) 2>conftest.er1
43912 grep -v '^ *+' conftest.er1 >conftest.err
43914 cat conftest.err >&5
43915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43916 (exit $ac_status); } &&
43917 { ac_try='test -z "$ac_c_werror_flag"
43918 || test ! -s conftest.err'
43919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43920 (eval $ac_try) 2>&5
43922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923 (exit $ac_status); }; } &&
43924 { ac_try='test -s conftest.$ac_objext'
43925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43926 (eval $ac_try) 2>&5
43928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929 (exit $ac_status); }; }; then
43930 ac_header_compiler=yes
43932 echo "$as_me: failed program was:" >&5
43933 sed 's/^/| /' conftest.$ac_ext >&5
43935 ac_header_compiler=no
43937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43939 echo "${ECHO_T}$ac_header_compiler" >&6
43941 # Is the header present?
43942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43944 cat >conftest.$ac_ext <<_ACEOF
43947 cat confdefs.h >>conftest.$ac_ext
43948 cat >>conftest.$ac_ext <<_ACEOF
43949 /* end confdefs.h. */
43950 #include <$ac_header>
43952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43955 grep -v '^ *+' conftest.er1 >conftest.err
43957 cat conftest.err >&5
43958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43959 (exit $ac_status); } >/dev/null; then
43960 if test -s conftest.err; then
43961 ac_cpp_err=$ac_c_preproc_warn_flag
43962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43969 if test -z "$ac_cpp_err"; then
43970 ac_header_preproc=yes
43972 echo "$as_me: failed program was:" >&5
43973 sed 's/^/| /' conftest.$ac_ext >&5
43975 ac_header_preproc=no
43977 rm -f conftest.err conftest.$ac_ext
43978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43979 echo "${ECHO_T}$ac_header_preproc" >&6
43981 # So? What about this header?
43982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43988 ac_header_preproc=yes
43991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44005 ## ------------------------------------------ ##
44006 ## Report this to the AC_PACKAGE_NAME lists. ##
44007 ## ------------------------------------------ ##
44010 sed "s/^/$as_me: WARNING: /" >&2
44013 echo "$as_me:$LINENO: checking for $ac_header" >&5
44014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44016 echo $ECHO_N "(cached) $ECHO_C" >&6
44018 eval "$as_ac_Header=\$ac_header_preproc"
44020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44025 cat >>confdefs.h <<_ACEOF
44026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44033 echo "$as_me:$LINENO: checking for db" >&5
44034 echo $ECHO_N "checking for db... $ECHO_C" >&6
44035 if test "${ol_cv_gdbm+set}" = set; then
44036 echo $ECHO_N "(cached) $ECHO_C" >&6
44039 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44046 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44047 echo "${ECHO_T}$ol_cv_gdbm" >&6
44048 if test $ol_cv_gdbm = yes ; then
44050 cat >>confdefs.h <<\_ACEOF
44051 #define HAVE_GDBM 1
44057 if test $ol_cv_gdbm = yes ; then
44059 ol_with_ldbm_api=gdbm
44061 if test $ol_cv_lib_gdbm != yes ; then
44062 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44067 if test $ol_with_ldbm_api = ndbm ; then
44068 echo "$as_me:$LINENO: checking for NDBM library" >&5
44069 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44070 if test "${ol_cv_lib_ndbm+set}" = set; then
44071 echo $ECHO_N "(cached) $ECHO_C" >&6
44074 echo "$as_me:$LINENO: checking for dbm_open" >&5
44075 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44076 if test "${ac_cv_func_dbm_open+set}" = set; then
44077 echo $ECHO_N "(cached) $ECHO_C" >&6
44079 cat >conftest.$ac_ext <<_ACEOF
44082 cat confdefs.h >>conftest.$ac_ext
44083 cat >>conftest.$ac_ext <<_ACEOF
44084 /* end confdefs.h. */
44085 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44087 #define dbm_open innocuous_dbm_open
44089 /* System header to define __stub macros and hopefully few prototypes,
44090 which can conflict with char dbm_open (); below.
44091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44092 <limits.h> exists even on freestanding compilers. */
44095 # include <limits.h>
44097 # include <assert.h>
44102 /* Override any gcc2 internal prototype to avoid an error. */
44107 /* We use char because int might match the return type of a gcc2
44108 builtin and then its argument prototype would still apply. */
44110 /* The GNU C library defines this for functions which it implements
44111 to always fail with ENOSYS. Some functions are actually named
44112 something starting with __ and the normal name is an alias. */
44113 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44116 char (*f) () = dbm_open;
44125 return f != dbm_open;
44130 rm -f conftest.$ac_objext conftest$ac_exeext
44131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44132 (eval $ac_link) 2>conftest.er1
44134 grep -v '^ *+' conftest.er1 >conftest.err
44136 cat conftest.err >&5
44137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44138 (exit $ac_status); } &&
44139 { ac_try='test -z "$ac_c_werror_flag"
44140 || test ! -s conftest.err'
44141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44142 (eval $ac_try) 2>&5
44144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44145 (exit $ac_status); }; } &&
44146 { ac_try='test -s conftest$ac_exeext'
44147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44148 (eval $ac_try) 2>&5
44150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44151 (exit $ac_status); }; }; then
44152 ac_cv_func_dbm_open=yes
44154 echo "$as_me: failed program was:" >&5
44155 sed 's/^/| /' conftest.$ac_ext >&5
44157 ac_cv_func_dbm_open=no
44159 rm -f conftest.err conftest.$ac_objext \
44160 conftest$ac_exeext conftest.$ac_ext
44162 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44163 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44164 if test $ac_cv_func_dbm_open = yes; then
44168 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44169 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44170 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44171 echo $ECHO_N "(cached) $ECHO_C" >&6
44173 ac_check_lib_save_LIBS=$LIBS
44174 LIBS="-lndbm $LIBS"
44175 cat >conftest.$ac_ext <<_ACEOF
44178 cat confdefs.h >>conftest.$ac_ext
44179 cat >>conftest.$ac_ext <<_ACEOF
44180 /* end confdefs.h. */
44182 /* Override any gcc2 internal prototype to avoid an error. */
44186 /* We use char because int might match the return type of a gcc2
44187 builtin and then its argument prototype would still apply. */
44197 rm -f conftest.$ac_objext conftest$ac_exeext
44198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44199 (eval $ac_link) 2>conftest.er1
44201 grep -v '^ *+' conftest.er1 >conftest.err
44203 cat conftest.err >&5
44204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205 (exit $ac_status); } &&
44206 { ac_try='test -z "$ac_c_werror_flag"
44207 || test ! -s conftest.err'
44208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44209 (eval $ac_try) 2>&5
44211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44212 (exit $ac_status); }; } &&
44213 { ac_try='test -s conftest$ac_exeext'
44214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44215 (eval $ac_try) 2>&5
44217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44218 (exit $ac_status); }; }; then
44219 ac_cv_lib_ndbm_dbm_open=yes
44221 echo "$as_me: failed program was:" >&5
44222 sed 's/^/| /' conftest.$ac_ext >&5
44224 ac_cv_lib_ndbm_dbm_open=no
44226 rm -f conftest.err conftest.$ac_objext \
44227 conftest$ac_exeext conftest.$ac_ext
44228 LIBS=$ac_check_lib_save_LIBS
44230 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44231 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44232 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44233 ol_cv_lib_ndbm=-lndbm
44236 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44237 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44238 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44239 echo $ECHO_N "(cached) $ECHO_C" >&6
44241 ac_check_lib_save_LIBS=$LIBS
44243 cat >conftest.$ac_ext <<_ACEOF
44246 cat confdefs.h >>conftest.$ac_ext
44247 cat >>conftest.$ac_ext <<_ACEOF
44248 /* end confdefs.h. */
44250 /* Override any gcc2 internal prototype to avoid an error. */
44254 /* We use char because int might match the return type of a gcc2
44255 builtin and then its argument prototype would still apply. */
44265 rm -f conftest.$ac_objext conftest$ac_exeext
44266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44267 (eval $ac_link) 2>conftest.er1
44269 grep -v '^ *+' conftest.er1 >conftest.err
44271 cat conftest.err >&5
44272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44273 (exit $ac_status); } &&
44274 { ac_try='test -z "$ac_c_werror_flag"
44275 || test ! -s conftest.err'
44276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44277 (eval $ac_try) 2>&5
44279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44280 (exit $ac_status); }; } &&
44281 { ac_try='test -s conftest$ac_exeext'
44282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44283 (eval $ac_try) 2>&5
44285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44286 (exit $ac_status); }; }; then
44287 ac_cv_lib_dbm_dbm_open=yes
44289 echo "$as_me: failed program was:" >&5
44290 sed 's/^/| /' conftest.$ac_ext >&5
44292 ac_cv_lib_dbm_dbm_open=no
44294 rm -f conftest.err conftest.$ac_objext \
44295 conftest$ac_exeext conftest.$ac_ext
44296 LIBS=$ac_check_lib_save_LIBS
44298 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44299 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44300 if test $ac_cv_lib_dbm_dbm_open = yes; then
44301 ol_cv_lib_ndbm=-ldbm
44314 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44315 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44319 for ac_header in ndbm.h
44321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44323 echo "$as_me:$LINENO: checking for $ac_header" >&5
44324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44326 echo $ECHO_N "(cached) $ECHO_C" >&6
44328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44331 # Is the header compilable?
44332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44334 cat >conftest.$ac_ext <<_ACEOF
44337 cat confdefs.h >>conftest.$ac_ext
44338 cat >>conftest.$ac_ext <<_ACEOF
44339 /* end confdefs.h. */
44340 $ac_includes_default
44341 #include <$ac_header>
44343 rm -f conftest.$ac_objext
44344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44345 (eval $ac_compile) 2>conftest.er1
44347 grep -v '^ *+' conftest.er1 >conftest.err
44349 cat conftest.err >&5
44350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44351 (exit $ac_status); } &&
44352 { ac_try='test -z "$ac_c_werror_flag"
44353 || test ! -s conftest.err'
44354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44355 (eval $ac_try) 2>&5
44357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44358 (exit $ac_status); }; } &&
44359 { ac_try='test -s conftest.$ac_objext'
44360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44361 (eval $ac_try) 2>&5
44363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44364 (exit $ac_status); }; }; then
44365 ac_header_compiler=yes
44367 echo "$as_me: failed program was:" >&5
44368 sed 's/^/| /' conftest.$ac_ext >&5
44370 ac_header_compiler=no
44372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44374 echo "${ECHO_T}$ac_header_compiler" >&6
44376 # Is the header present?
44377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44379 cat >conftest.$ac_ext <<_ACEOF
44382 cat confdefs.h >>conftest.$ac_ext
44383 cat >>conftest.$ac_ext <<_ACEOF
44384 /* end confdefs.h. */
44385 #include <$ac_header>
44387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44390 grep -v '^ *+' conftest.er1 >conftest.err
44392 cat conftest.err >&5
44393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394 (exit $ac_status); } >/dev/null; then
44395 if test -s conftest.err; then
44396 ac_cpp_err=$ac_c_preproc_warn_flag
44397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44404 if test -z "$ac_cpp_err"; then
44405 ac_header_preproc=yes
44407 echo "$as_me: failed program was:" >&5
44408 sed 's/^/| /' conftest.$ac_ext >&5
44410 ac_header_preproc=no
44412 rm -f conftest.err conftest.$ac_ext
44413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44414 echo "${ECHO_T}$ac_header_preproc" >&6
44416 # So? What about this header?
44417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44423 ac_header_preproc=yes
44426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44440 ## ------------------------------------------ ##
44441 ## Report this to the AC_PACKAGE_NAME lists. ##
44442 ## ------------------------------------------ ##
44445 sed "s/^/$as_me: WARNING: /" >&2
44448 echo "$as_me:$LINENO: checking for $ac_header" >&5
44449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44451 echo $ECHO_N "(cached) $ECHO_C" >&6
44453 eval "$as_ac_Header=\$ac_header_preproc"
44455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44460 cat >>confdefs.h <<_ACEOF
44461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44468 echo "$as_me:$LINENO: checking for db" >&5
44469 echo $ECHO_N "checking for db... $ECHO_C" >&6
44470 if test "${ol_cv_ndbm+set}" = set; then
44471 echo $ECHO_N "(cached) $ECHO_C" >&6
44474 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44481 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44482 echo "${ECHO_T}$ol_cv_ndbm" >&6
44483 if test $ol_cv_ndbm = yes ; then
44485 cat >>confdefs.h <<\_ACEOF
44486 #define HAVE_NDBM 1
44492 if test $ol_cv_ndbm = yes ; then
44494 ol_with_ldbm_api=ndbm
44496 if test $ol_cv_lib_ndbm != yes ; then
44497 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44502 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44503 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44504 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44505 { (exit 1); exit 1; }; }
44508 if test $ol_enable_bdb = yes -o \
44509 $ol_enable_hdb = yes -o \
44510 $ol_enable_ldbm = yes ; then
44511 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44515 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44516 BUILD_LIBS_DYNAMIC=shared
44518 cat >>confdefs.h <<\_ACEOF
44519 #define LDAP_LIBS_DYNAMIC 1
44524 BUILD_LIBS_DYNAMIC=static
44528 if test $ol_enable_wrappers != no ; then
44530 for ac_header in tcpd.h
44532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44534 echo "$as_me:$LINENO: checking for $ac_header" >&5
44535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44537 echo $ECHO_N "(cached) $ECHO_C" >&6
44539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44542 # Is the header compilable?
44543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44545 cat >conftest.$ac_ext <<_ACEOF
44548 cat confdefs.h >>conftest.$ac_ext
44549 cat >>conftest.$ac_ext <<_ACEOF
44550 /* end confdefs.h. */
44551 $ac_includes_default
44552 #include <$ac_header>
44554 rm -f conftest.$ac_objext
44555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44556 (eval $ac_compile) 2>conftest.er1
44558 grep -v '^ *+' conftest.er1 >conftest.err
44560 cat conftest.err >&5
44561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44562 (exit $ac_status); } &&
44563 { ac_try='test -z "$ac_c_werror_flag"
44564 || test ! -s conftest.err'
44565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44566 (eval $ac_try) 2>&5
44568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44569 (exit $ac_status); }; } &&
44570 { ac_try='test -s conftest.$ac_objext'
44571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44572 (eval $ac_try) 2>&5
44574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44575 (exit $ac_status); }; }; then
44576 ac_header_compiler=yes
44578 echo "$as_me: failed program was:" >&5
44579 sed 's/^/| /' conftest.$ac_ext >&5
44581 ac_header_compiler=no
44583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44585 echo "${ECHO_T}$ac_header_compiler" >&6
44587 # Is the header present?
44588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44590 cat >conftest.$ac_ext <<_ACEOF
44593 cat confdefs.h >>conftest.$ac_ext
44594 cat >>conftest.$ac_ext <<_ACEOF
44595 /* end confdefs.h. */
44596 #include <$ac_header>
44598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44601 grep -v '^ *+' conftest.er1 >conftest.err
44603 cat conftest.err >&5
44604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605 (exit $ac_status); } >/dev/null; then
44606 if test -s conftest.err; then
44607 ac_cpp_err=$ac_c_preproc_warn_flag
44608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44615 if test -z "$ac_cpp_err"; then
44616 ac_header_preproc=yes
44618 echo "$as_me: failed program was:" >&5
44619 sed 's/^/| /' conftest.$ac_ext >&5
44621 ac_header_preproc=no
44623 rm -f conftest.err conftest.$ac_ext
44624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44625 echo "${ECHO_T}$ac_header_preproc" >&6
44627 # So? What about this header?
44628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44634 ac_header_preproc=yes
44637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44651 ## ------------------------------------------ ##
44652 ## Report this to the AC_PACKAGE_NAME lists. ##
44653 ## ------------------------------------------ ##
44656 sed "s/^/$as_me: WARNING: /" >&2
44659 echo "$as_me:$LINENO: checking for $ac_header" >&5
44660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44662 echo $ECHO_N "(cached) $ECHO_C" >&6
44664 eval "$as_ac_Header=\$ac_header_preproc"
44666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44671 cat >>confdefs.h <<_ACEOF
44672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44675 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44676 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44678 LIBS="$LIBS -lwrap"
44679 cat >conftest.$ac_ext <<_ACEOF
44682 cat confdefs.h >>conftest.$ac_ext
44683 cat >>conftest.$ac_ext <<_ACEOF
44684 /* end confdefs.h. */
44687 int allow_severity = 0;
44688 int deny_severity = 0;
44690 struct request_info *req;
44702 rm -f conftest.$ac_objext conftest$ac_exeext
44703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44704 (eval $ac_link) 2>conftest.er1
44706 grep -v '^ *+' conftest.er1 >conftest.err
44708 cat conftest.err >&5
44709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710 (exit $ac_status); } &&
44711 { ac_try='test -z "$ac_c_werror_flag"
44712 || test ! -s conftest.err'
44713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44714 (eval $ac_try) 2>&5
44716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717 (exit $ac_status); }; } &&
44718 { ac_try='test -s conftest$ac_exeext'
44719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44720 (eval $ac_try) 2>&5
44722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44723 (exit $ac_status); }; }; then
44724 echo "$as_me:$LINENO: result: -lwrap" >&5
44725 echo "${ECHO_T}-lwrap" >&6
44729 echo "$as_me: failed program was:" >&5
44730 sed 's/^/| /' conftest.$ac_ext >&5
44734 cat >conftest.$ac_ext <<_ACEOF
44737 cat confdefs.h >>conftest.$ac_ext
44738 cat >>conftest.$ac_ext <<_ACEOF
44739 /* end confdefs.h. */
44742 int allow_severity = 0;
44743 int deny_severity = 0;
44745 struct request_info *req;
44757 rm -f conftest.$ac_objext conftest$ac_exeext
44758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44759 (eval $ac_link) 2>conftest.er1
44761 grep -v '^ *+' conftest.er1 >conftest.err
44763 cat conftest.err >&5
44764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44765 (exit $ac_status); } &&
44766 { ac_try='test -z "$ac_c_werror_flag"
44767 || test ! -s conftest.err'
44768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44769 (eval $ac_try) 2>&5
44771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44772 (exit $ac_status); }; } &&
44773 { ac_try='test -s conftest$ac_exeext'
44774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44775 (eval $ac_try) 2>&5
44777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44778 (exit $ac_status); }; }; then
44779 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44780 echo "${ECHO_T}-lwrap -lnsl" >&6
44782 LIBS="$save_LIBS -lnsl"
44784 echo "$as_me: failed program was:" >&5
44785 sed 's/^/| /' conftest.$ac_ext >&5
44788 echo "$as_me:$LINENO: result: no" >&5
44789 echo "${ECHO_T}no" >&6
44793 rm -f conftest.err conftest.$ac_objext \
44794 conftest$ac_exeext conftest.$ac_ext
44796 rm -f conftest.err conftest.$ac_objext \
44797 conftest$ac_exeext conftest.$ac_ext
44805 if test $have_wrappers = yes ; then
44807 cat >>confdefs.h <<\_ACEOF
44808 #define HAVE_TCPD 1
44812 elif test $ol_enable_wrappers = yes ; then
44813 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44814 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44815 { (exit 1); exit 1; }; }
44817 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44818 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44823 if test $ol_enable_syslog != no ; then
44824 echo "$as_me:$LINENO: checking for openlog" >&5
44825 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44826 if test "${ac_cv_func_openlog+set}" = set; then
44827 echo $ECHO_N "(cached) $ECHO_C" >&6
44829 cat >conftest.$ac_ext <<_ACEOF
44832 cat confdefs.h >>conftest.$ac_ext
44833 cat >>conftest.$ac_ext <<_ACEOF
44834 /* end confdefs.h. */
44835 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44837 #define openlog innocuous_openlog
44839 /* System header to define __stub macros and hopefully few prototypes,
44840 which can conflict with char openlog (); below.
44841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44842 <limits.h> exists even on freestanding compilers. */
44845 # include <limits.h>
44847 # include <assert.h>
44852 /* Override any gcc2 internal prototype to avoid an error. */
44857 /* We use char because int might match the return type of a gcc2
44858 builtin and then its argument prototype would still apply. */
44860 /* The GNU C library defines this for functions which it implements
44861 to always fail with ENOSYS. Some functions are actually named
44862 something starting with __ and the normal name is an alias. */
44863 #if defined (__stub_openlog) || defined (__stub___openlog)
44866 char (*f) () = openlog;
44875 return f != openlog;
44880 rm -f conftest.$ac_objext conftest$ac_exeext
44881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44882 (eval $ac_link) 2>conftest.er1
44884 grep -v '^ *+' conftest.er1 >conftest.err
44886 cat conftest.err >&5
44887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44888 (exit $ac_status); } &&
44889 { ac_try='test -z "$ac_c_werror_flag"
44890 || test ! -s conftest.err'
44891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44892 (eval $ac_try) 2>&5
44894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44895 (exit $ac_status); }; } &&
44896 { ac_try='test -s conftest$ac_exeext'
44897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44898 (eval $ac_try) 2>&5
44900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44901 (exit $ac_status); }; }; then
44902 ac_cv_func_openlog=yes
44904 echo "$as_me: failed program was:" >&5
44905 sed 's/^/| /' conftest.$ac_ext >&5
44907 ac_cv_func_openlog=no
44909 rm -f conftest.err conftest.$ac_objext \
44910 conftest$ac_exeext conftest.$ac_ext
44912 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44913 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44915 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44916 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44917 echo "$as_me: error: could not find syslog" >&2;}
44918 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44920 ol_enable_syslog=$ac_cv_func_openlog
44924 if test $ol_enable_sql != no ; then
44927 for ac_header in sql.h sqlext.h
44929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44931 echo "$as_me:$LINENO: checking for $ac_header" >&5
44932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44934 echo $ECHO_N "(cached) $ECHO_C" >&6
44936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44939 # Is the header compilable?
44940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44942 cat >conftest.$ac_ext <<_ACEOF
44945 cat confdefs.h >>conftest.$ac_ext
44946 cat >>conftest.$ac_ext <<_ACEOF
44947 /* end confdefs.h. */
44948 $ac_includes_default
44949 #include <$ac_header>
44951 rm -f conftest.$ac_objext
44952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44953 (eval $ac_compile) 2>conftest.er1
44955 grep -v '^ *+' conftest.er1 >conftest.err
44957 cat conftest.err >&5
44958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44959 (exit $ac_status); } &&
44960 { ac_try='test -z "$ac_c_werror_flag"
44961 || test ! -s conftest.err'
44962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44963 (eval $ac_try) 2>&5
44965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44966 (exit $ac_status); }; } &&
44967 { ac_try='test -s conftest.$ac_objext'
44968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44969 (eval $ac_try) 2>&5
44971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44972 (exit $ac_status); }; }; then
44973 ac_header_compiler=yes
44975 echo "$as_me: failed program was:" >&5
44976 sed 's/^/| /' conftest.$ac_ext >&5
44978 ac_header_compiler=no
44980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44982 echo "${ECHO_T}$ac_header_compiler" >&6
44984 # Is the header present?
44985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44987 cat >conftest.$ac_ext <<_ACEOF
44990 cat confdefs.h >>conftest.$ac_ext
44991 cat >>conftest.$ac_ext <<_ACEOF
44992 /* end confdefs.h. */
44993 #include <$ac_header>
44995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44998 grep -v '^ *+' conftest.er1 >conftest.err
45000 cat conftest.err >&5
45001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45002 (exit $ac_status); } >/dev/null; then
45003 if test -s conftest.err; then
45004 ac_cpp_err=$ac_c_preproc_warn_flag
45005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45012 if test -z "$ac_cpp_err"; then
45013 ac_header_preproc=yes
45015 echo "$as_me: failed program was:" >&5
45016 sed 's/^/| /' conftest.$ac_ext >&5
45018 ac_header_preproc=no
45020 rm -f conftest.err conftest.$ac_ext
45021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45022 echo "${ECHO_T}$ac_header_preproc" >&6
45024 # So? What about this header?
45025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45031 ac_header_preproc=yes
45034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45048 ## ------------------------------------------ ##
45049 ## Report this to the AC_PACKAGE_NAME lists. ##
45050 ## ------------------------------------------ ##
45053 sed "s/^/$as_me: WARNING: /" >&2
45056 echo "$as_me:$LINENO: checking for $ac_header" >&5
45057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45059 echo $ECHO_N "(cached) $ECHO_C" >&6
45061 eval "$as_ac_Header=\$ac_header_preproc"
45063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45068 cat >>confdefs.h <<_ACEOF
45069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45074 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45075 echo "$as_me: error: could not locate SQL headers" >&2;}
45076 { (exit 1); exit 1; }; }
45084 LIBS="$LTHREAD_LIBS"
45086 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45087 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45088 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45089 echo $ECHO_N "(cached) $ECHO_C" >&6
45091 ac_check_lib_save_LIBS=$LIBS
45092 LIBS="-liodbc $LIBS"
45093 cat >conftest.$ac_ext <<_ACEOF
45096 cat confdefs.h >>conftest.$ac_ext
45097 cat >>conftest.$ac_ext <<_ACEOF
45098 /* end confdefs.h. */
45100 /* Override any gcc2 internal prototype to avoid an error. */
45104 /* We use char because int might match the return type of a gcc2
45105 builtin and then its argument prototype would still apply. */
45106 char SQLDriverConnect ();
45110 SQLDriverConnect ();
45115 rm -f conftest.$ac_objext conftest$ac_exeext
45116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45117 (eval $ac_link) 2>conftest.er1
45119 grep -v '^ *+' conftest.er1 >conftest.err
45121 cat conftest.err >&5
45122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45123 (exit $ac_status); } &&
45124 { ac_try='test -z "$ac_c_werror_flag"
45125 || test ! -s conftest.err'
45126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45127 (eval $ac_try) 2>&5
45129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45130 (exit $ac_status); }; } &&
45131 { ac_try='test -s conftest$ac_exeext'
45132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45133 (eval $ac_try) 2>&5
45135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45136 (exit $ac_status); }; }; then
45137 ac_cv_lib_iodbc_SQLDriverConnect=yes
45139 echo "$as_me: failed program was:" >&5
45140 sed 's/^/| /' conftest.$ac_ext >&5
45142 ac_cv_lib_iodbc_SQLDriverConnect=no
45144 rm -f conftest.err conftest.$ac_objext \
45145 conftest$ac_exeext conftest.$ac_ext
45146 LIBS=$ac_check_lib_save_LIBS
45148 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45149 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45150 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45156 if test $have_iodbc = yes ; then
45157 ol_link_sql="-liodbc"
45159 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45160 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45161 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45162 echo $ECHO_N "(cached) $ECHO_C" >&6
45164 ac_check_lib_save_LIBS=$LIBS
45165 LIBS="-lodbc $LIBS"
45166 cat >conftest.$ac_ext <<_ACEOF
45169 cat confdefs.h >>conftest.$ac_ext
45170 cat >>conftest.$ac_ext <<_ACEOF
45171 /* end confdefs.h. */
45173 /* Override any gcc2 internal prototype to avoid an error. */
45177 /* We use char because int might match the return type of a gcc2
45178 builtin and then its argument prototype would still apply. */
45179 char SQLDriverConnect ();
45183 SQLDriverConnect ();
45188 rm -f conftest.$ac_objext conftest$ac_exeext
45189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45190 (eval $ac_link) 2>conftest.er1
45192 grep -v '^ *+' conftest.er1 >conftest.err
45194 cat conftest.err >&5
45195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45196 (exit $ac_status); } &&
45197 { ac_try='test -z "$ac_c_werror_flag"
45198 || test ! -s conftest.err'
45199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45200 (eval $ac_try) 2>&5
45202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45203 (exit $ac_status); }; } &&
45204 { ac_try='test -s conftest$ac_exeext'
45205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45206 (eval $ac_try) 2>&5
45208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45209 (exit $ac_status); }; }; then
45210 ac_cv_lib_odbc_SQLDriverConnect=yes
45212 echo "$as_me: failed program was:" >&5
45213 sed 's/^/| /' conftest.$ac_ext >&5
45215 ac_cv_lib_odbc_SQLDriverConnect=no
45217 rm -f conftest.err conftest.$ac_objext \
45218 conftest$ac_exeext conftest.$ac_ext
45219 LIBS=$ac_check_lib_save_LIBS
45221 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45222 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45223 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45229 if test $have_odbc = yes ; then
45230 ol_link_sql="-lodbc"
45236 if test $ol_link_sql != no ; then
45237 SLAPD_SQL_LIBS="$ol_link_sql"
45239 elif test $ol_enable_sql != auto ; then
45240 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45241 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45242 { (exit 1); exit 1; }; }
45249 if test $ol_with_cyrus_sasl != no ; then
45252 for ac_header in sasl/sasl.h sasl.h
45254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45256 echo "$as_me:$LINENO: checking for $ac_header" >&5
45257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45259 echo $ECHO_N "(cached) $ECHO_C" >&6
45261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45264 # Is the header compilable?
45265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45267 cat >conftest.$ac_ext <<_ACEOF
45270 cat confdefs.h >>conftest.$ac_ext
45271 cat >>conftest.$ac_ext <<_ACEOF
45272 /* end confdefs.h. */
45273 $ac_includes_default
45274 #include <$ac_header>
45276 rm -f conftest.$ac_objext
45277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45278 (eval $ac_compile) 2>conftest.er1
45280 grep -v '^ *+' conftest.er1 >conftest.err
45282 cat conftest.err >&5
45283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45284 (exit $ac_status); } &&
45285 { ac_try='test -z "$ac_c_werror_flag"
45286 || test ! -s conftest.err'
45287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45288 (eval $ac_try) 2>&5
45290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45291 (exit $ac_status); }; } &&
45292 { ac_try='test -s conftest.$ac_objext'
45293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45294 (eval $ac_try) 2>&5
45296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45297 (exit $ac_status); }; }; then
45298 ac_header_compiler=yes
45300 echo "$as_me: failed program was:" >&5
45301 sed 's/^/| /' conftest.$ac_ext >&5
45303 ac_header_compiler=no
45305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45307 echo "${ECHO_T}$ac_header_compiler" >&6
45309 # Is the header present?
45310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45312 cat >conftest.$ac_ext <<_ACEOF
45315 cat confdefs.h >>conftest.$ac_ext
45316 cat >>conftest.$ac_ext <<_ACEOF
45317 /* end confdefs.h. */
45318 #include <$ac_header>
45320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45323 grep -v '^ *+' conftest.er1 >conftest.err
45325 cat conftest.err >&5
45326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45327 (exit $ac_status); } >/dev/null; then
45328 if test -s conftest.err; then
45329 ac_cpp_err=$ac_c_preproc_warn_flag
45330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45337 if test -z "$ac_cpp_err"; then
45338 ac_header_preproc=yes
45340 echo "$as_me: failed program was:" >&5
45341 sed 's/^/| /' conftest.$ac_ext >&5
45343 ac_header_preproc=no
45345 rm -f conftest.err conftest.$ac_ext
45346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45347 echo "${ECHO_T}$ac_header_preproc" >&6
45349 # So? What about this header?
45350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45356 ac_header_preproc=yes
45359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45373 ## ------------------------------------------ ##
45374 ## Report this to the AC_PACKAGE_NAME lists. ##
45375 ## ------------------------------------------ ##
45378 sed "s/^/$as_me: WARNING: /" >&2
45381 echo "$as_me:$LINENO: checking for $ac_header" >&5
45382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45384 echo $ECHO_N "(cached) $ECHO_C" >&6
45386 eval "$as_ac_Header=\$ac_header_preproc"
45388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45393 cat >>confdefs.h <<_ACEOF
45394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45402 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45403 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45404 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45405 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45406 echo $ECHO_N "(cached) $ECHO_C" >&6
45408 ac_check_lib_save_LIBS=$LIBS
45409 LIBS="-lsasl2 $LIBS"
45410 cat >conftest.$ac_ext <<_ACEOF
45413 cat confdefs.h >>conftest.$ac_ext
45414 cat >>conftest.$ac_ext <<_ACEOF
45415 /* end confdefs.h. */
45417 /* Override any gcc2 internal prototype to avoid an error. */
45421 /* We use char because int might match the return type of a gcc2
45422 builtin and then its argument prototype would still apply. */
45423 char sasl_client_init ();
45427 sasl_client_init ();
45432 rm -f conftest.$ac_objext conftest$ac_exeext
45433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45434 (eval $ac_link) 2>conftest.er1
45436 grep -v '^ *+' conftest.er1 >conftest.err
45438 cat conftest.err >&5
45439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45440 (exit $ac_status); } &&
45441 { ac_try='test -z "$ac_c_werror_flag"
45442 || test ! -s conftest.err'
45443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45444 (eval $ac_try) 2>&5
45446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45447 (exit $ac_status); }; } &&
45448 { ac_try='test -s conftest$ac_exeext'
45449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45450 (eval $ac_try) 2>&5
45452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45453 (exit $ac_status); }; }; then
45454 ac_cv_lib_sasl2_sasl_client_init=yes
45456 echo "$as_me: failed program was:" >&5
45457 sed 's/^/| /' conftest.$ac_ext >&5
45459 ac_cv_lib_sasl2_sasl_client_init=no
45461 rm -f conftest.err conftest.$ac_objext \
45462 conftest$ac_exeext conftest.$ac_ext
45463 LIBS=$ac_check_lib_save_LIBS
45465 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45466 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45467 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45468 ol_link_sasl="-lsasl2"
45470 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45471 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45472 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45473 echo $ECHO_N "(cached) $ECHO_C" >&6
45475 ac_check_lib_save_LIBS=$LIBS
45476 LIBS="-lsasl $LIBS"
45477 cat >conftest.$ac_ext <<_ACEOF
45480 cat confdefs.h >>conftest.$ac_ext
45481 cat >>conftest.$ac_ext <<_ACEOF
45482 /* end confdefs.h. */
45484 /* Override any gcc2 internal prototype to avoid an error. */
45488 /* We use char because int might match the return type of a gcc2
45489 builtin and then its argument prototype would still apply. */
45490 char sasl_client_init ();
45494 sasl_client_init ();
45499 rm -f conftest.$ac_objext conftest$ac_exeext
45500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45501 (eval $ac_link) 2>conftest.er1
45503 grep -v '^ *+' conftest.er1 >conftest.err
45505 cat conftest.err >&5
45506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45507 (exit $ac_status); } &&
45508 { ac_try='test -z "$ac_c_werror_flag"
45509 || test ! -s conftest.err'
45510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45511 (eval $ac_try) 2>&5
45513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45514 (exit $ac_status); }; } &&
45515 { ac_try='test -s conftest$ac_exeext'
45516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45517 (eval $ac_try) 2>&5
45519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45520 (exit $ac_status); }; }; then
45521 ac_cv_lib_sasl_sasl_client_init=yes
45523 echo "$as_me: failed program was:" >&5
45524 sed 's/^/| /' conftest.$ac_ext >&5
45526 ac_cv_lib_sasl_sasl_client_init=no
45528 rm -f conftest.err conftest.$ac_objext \
45529 conftest$ac_exeext conftest.$ac_ext
45530 LIBS=$ac_check_lib_save_LIBS
45532 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45533 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45534 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45535 ol_link_sasl="-lsasl"
45542 if test $ol_link_sasl = no ; then
45543 if test $ol_with_cyrus_sasl != auto ; then
45544 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45545 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45546 { (exit 1); exit 1; }; }
45548 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45549 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45550 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45551 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45552 if test $ol_link_tls = no ; then
45553 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45554 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45558 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45559 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45560 if test "${ol_cv_sasl_compat+set}" = set; then
45561 echo $ECHO_N "(cached) $ECHO_C" >&6
45564 cat >conftest.$ac_ext <<_ACEOF
45567 cat confdefs.h >>conftest.$ac_ext
45568 cat >>conftest.$ac_ext <<_ACEOF
45569 /* end confdefs.h. */
45571 #ifdef HAVE_SASL_SASL_H
45572 #include <sasl/sasl.h>
45577 /* Require 2.1.15+ */
45578 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45579 char *__sasl_compat = "2.2+ or better okay (we guess)";
45580 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45581 && SASL_VERSION_STEP >=15
45582 char *__sasl_compat = "2.1.15+ or better okay";
45586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45587 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45588 ol_cv_sasl_compat=yes
45590 ol_cv_sasl_compat=no
45595 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45596 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45598 if test $ol_cv_sasl_compat = no ; then
45600 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45601 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45602 { (exit 1); exit 1; }; }
45606 cat >>confdefs.h <<\_ACEOF
45607 #define HAVE_CYRUS_SASL 1
45610 SASL_LIBS="$ol_link_sasl"
45611 if test $ol_enable_spasswd != no ; then
45612 ol_link_spasswd=yes
45615 ac_save_LIBS="$LIBS"
45616 LIBS="$LIBS $ol_link_sasl"
45617 echo "$as_me:$LINENO: checking for sasl_version" >&5
45618 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45619 if test "${ac_cv_func_sasl_version+set}" = set; then
45620 echo $ECHO_N "(cached) $ECHO_C" >&6
45622 cat >conftest.$ac_ext <<_ACEOF
45625 cat confdefs.h >>conftest.$ac_ext
45626 cat >>conftest.$ac_ext <<_ACEOF
45627 /* end confdefs.h. */
45628 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45630 #define sasl_version innocuous_sasl_version
45632 /* System header to define __stub macros and hopefully few prototypes,
45633 which can conflict with char sasl_version (); below.
45634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45635 <limits.h> exists even on freestanding compilers. */
45638 # include <limits.h>
45640 # include <assert.h>
45643 #undef sasl_version
45645 /* Override any gcc2 internal prototype to avoid an error. */
45650 /* We use char because int might match the return type of a gcc2
45651 builtin and then its argument prototype would still apply. */
45652 char sasl_version ();
45653 /* The GNU C library defines this for functions which it implements
45654 to always fail with ENOSYS. Some functions are actually named
45655 something starting with __ and the normal name is an alias. */
45656 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45659 char (*f) () = sasl_version;
45668 return f != sasl_version;
45673 rm -f conftest.$ac_objext conftest$ac_exeext
45674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45675 (eval $ac_link) 2>conftest.er1
45677 grep -v '^ *+' conftest.er1 >conftest.err
45679 cat conftest.err >&5
45680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45681 (exit $ac_status); } &&
45682 { ac_try='test -z "$ac_c_werror_flag"
45683 || test ! -s conftest.err'
45684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45685 (eval $ac_try) 2>&5
45687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45688 (exit $ac_status); }; } &&
45689 { ac_try='test -s conftest$ac_exeext'
45690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45691 (eval $ac_try) 2>&5
45693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45694 (exit $ac_status); }; }; then
45695 ac_cv_func_sasl_version=yes
45697 echo "$as_me: failed program was:" >&5
45698 sed 's/^/| /' conftest.$ac_ext >&5
45700 ac_cv_func_sasl_version=no
45702 rm -f conftest.err conftest.$ac_objext \
45703 conftest$ac_exeext conftest.$ac_ext
45705 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45706 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45707 if test $ac_cv_func_sasl_version = yes; then
45709 cat >>confdefs.h <<\_ACEOF
45710 #define HAVE_SASL_VERSION 1
45715 LIBS="$ac_save_LIBS"
45721 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45722 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45723 if test $ol_link_tls = no ; then
45724 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45725 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45729 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45731 if test -r /dev/urandom ; then
45732 dev="/dev/urandom";
45733 elif test -r /idev/urandom ; then
45734 dev="/idev/urandom";
45735 elif test -r /dev/srandom ; then
45736 dev="/dev/srandom";
45737 elif test -r /dev/random ; then
45739 elif test -r /idev/random ; then
45740 dev="/idev/random";
45743 if test $dev != no ; then
45745 cat >>confdefs.h <<_ACEOF
45746 #define URANDOM_DEVICE "$dev"
45753 if test $ol_with_fetch != no ; then
45755 LIBS="-lfetch -lcom_err $LIBS"
45756 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45757 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45758 if test "${ol_cv_lib_fetch+set}" = set; then
45759 echo $ECHO_N "(cached) $ECHO_C" >&6
45762 cat >conftest.$ac_ext <<_ACEOF
45765 cat confdefs.h >>conftest.$ac_ext
45766 cat >>conftest.$ac_ext <<_ACEOF
45767 /* end confdefs.h. */
45769 #include <sys/param.h>
45775 struct url *u = fetchParseURL("file:///");
45780 rm -f conftest.$ac_objext conftest$ac_exeext
45781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45782 (eval $ac_link) 2>conftest.er1
45784 grep -v '^ *+' conftest.er1 >conftest.err
45786 cat conftest.err >&5
45787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45788 (exit $ac_status); } &&
45789 { ac_try='test -z "$ac_c_werror_flag"
45790 || test ! -s conftest.err'
45791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45792 (eval $ac_try) 2>&5
45794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45795 (exit $ac_status); }; } &&
45796 { ac_try='test -s conftest$ac_exeext'
45797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45798 (eval $ac_try) 2>&5
45800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45801 (exit $ac_status); }; }; then
45802 ol_cv_lib_fetch=yes
45804 echo "$as_me: failed program was:" >&5
45805 sed 's/^/| /' conftest.$ac_ext >&5
45809 rm -f conftest.err conftest.$ac_objext \
45810 conftest$ac_exeext conftest.$ac_ext
45812 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45813 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45815 if test $ol_cv_lib_fetch != no ; then
45816 ol_link_fetch="-lfetch -lcom_err"
45818 cat >>confdefs.h <<\_ACEOF
45819 #define HAVE_FETCH 1
45825 if test $ol_cv_lib_fetch != no ; then
45826 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45827 ol_link_fetch=freebsd
45829 elif test $ol_with_fetch != auto ; then
45830 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45831 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45832 { (exit 1); exit 1; }; }
45836 if test $ol_enable_crypt != no ; then
45838 LIBS="$TLS_LIBS $LIBS"
45840 echo "$as_me:$LINENO: checking for crypt" >&5
45841 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45842 if test "${ac_cv_func_crypt+set}" = set; then
45843 echo $ECHO_N "(cached) $ECHO_C" >&6
45845 cat >conftest.$ac_ext <<_ACEOF
45848 cat confdefs.h >>conftest.$ac_ext
45849 cat >>conftest.$ac_ext <<_ACEOF
45850 /* end confdefs.h. */
45851 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45853 #define crypt innocuous_crypt
45855 /* System header to define __stub macros and hopefully few prototypes,
45856 which can conflict with char crypt (); below.
45857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45858 <limits.h> exists even on freestanding compilers. */
45861 # include <limits.h>
45863 # include <assert.h>
45868 /* Override any gcc2 internal prototype to avoid an error. */
45873 /* We use char because int might match the return type of a gcc2
45874 builtin and then its argument prototype would still apply. */
45876 /* The GNU C library defines this for functions which it implements
45877 to always fail with ENOSYS. Some functions are actually named
45878 something starting with __ and the normal name is an alias. */
45879 #if defined (__stub_crypt) || defined (__stub___crypt)
45882 char (*f) () = crypt;
45896 rm -f conftest.$ac_objext conftest$ac_exeext
45897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45898 (eval $ac_link) 2>conftest.er1
45900 grep -v '^ *+' conftest.er1 >conftest.err
45902 cat conftest.err >&5
45903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45904 (exit $ac_status); } &&
45905 { ac_try='test -z "$ac_c_werror_flag"
45906 || test ! -s conftest.err'
45907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45908 (eval $ac_try) 2>&5
45910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45911 (exit $ac_status); }; } &&
45912 { ac_try='test -s conftest$ac_exeext'
45913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45914 (eval $ac_try) 2>&5
45916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45917 (exit $ac_status); }; }; then
45918 ac_cv_func_crypt=yes
45920 echo "$as_me: failed program was:" >&5
45921 sed 's/^/| /' conftest.$ac_ext >&5
45923 ac_cv_func_crypt=no
45925 rm -f conftest.err conftest.$ac_objext \
45926 conftest$ac_exeext conftest.$ac_ext
45928 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45929 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45930 if test $ac_cv_func_crypt = yes; then
45935 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45936 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45937 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45938 echo $ECHO_N "(cached) $ECHO_C" >&6
45940 ac_check_lib_save_LIBS=$LIBS
45941 LIBS="-lcrypt $LIBS"
45942 cat >conftest.$ac_ext <<_ACEOF
45945 cat confdefs.h >>conftest.$ac_ext
45946 cat >>conftest.$ac_ext <<_ACEOF
45947 /* end confdefs.h. */
45949 /* Override any gcc2 internal prototype to avoid an error. */
45953 /* We use char because int might match the return type of a gcc2
45954 builtin and then its argument prototype would still apply. */
45964 rm -f conftest.$ac_objext conftest$ac_exeext
45965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45966 (eval $ac_link) 2>conftest.er1
45968 grep -v '^ *+' conftest.er1 >conftest.err
45970 cat conftest.err >&5
45971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45972 (exit $ac_status); } &&
45973 { ac_try='test -z "$ac_c_werror_flag"
45974 || test ! -s conftest.err'
45975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45976 (eval $ac_try) 2>&5
45978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45979 (exit $ac_status); }; } &&
45980 { ac_try='test -s conftest$ac_exeext'
45981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45982 (eval $ac_try) 2>&5
45984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45985 (exit $ac_status); }; }; then
45986 ac_cv_lib_crypt_crypt=yes
45988 echo "$as_me: failed program was:" >&5
45989 sed 's/^/| /' conftest.$ac_ext >&5
45991 ac_cv_lib_crypt_crypt=no
45993 rm -f conftest.err conftest.$ac_objext \
45994 conftest$ac_exeext conftest.$ac_ext
45995 LIBS=$ac_check_lib_save_LIBS
45997 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45998 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45999 if test $ac_cv_lib_crypt_crypt = yes; then
46000 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46011 if test $have_crypt = yes ; then
46013 cat >>confdefs.h <<\_ACEOF
46014 #define HAVE_CRYPT 1
46018 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46019 echo "$as_me: WARNING: could not find crypt" >&2;}
46020 if test $ol_enable_crypt = yes ; then
46021 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46022 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46023 { (exit 1); exit 1; }; }
46026 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46027 echo "$as_me: WARNING: disabling crypt support" >&2;}
46032 if test $ol_enable_proctitle != no ; then
46033 echo "$as_me:$LINENO: checking for setproctitle" >&5
46034 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46035 if test "${ac_cv_func_setproctitle+set}" = set; then
46036 echo $ECHO_N "(cached) $ECHO_C" >&6
46038 cat >conftest.$ac_ext <<_ACEOF
46041 cat confdefs.h >>conftest.$ac_ext
46042 cat >>conftest.$ac_ext <<_ACEOF
46043 /* end confdefs.h. */
46044 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46046 #define setproctitle innocuous_setproctitle
46048 /* System header to define __stub macros and hopefully few prototypes,
46049 which can conflict with char setproctitle (); below.
46050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46051 <limits.h> exists even on freestanding compilers. */
46054 # include <limits.h>
46056 # include <assert.h>
46059 #undef setproctitle
46061 /* Override any gcc2 internal prototype to avoid an error. */
46066 /* We use char because int might match the return type of a gcc2
46067 builtin and then its argument prototype would still apply. */
46068 char setproctitle ();
46069 /* The GNU C library defines this for functions which it implements
46070 to always fail with ENOSYS. Some functions are actually named
46071 something starting with __ and the normal name is an alias. */
46072 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46075 char (*f) () = setproctitle;
46084 return f != setproctitle;
46089 rm -f conftest.$ac_objext conftest$ac_exeext
46090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46091 (eval $ac_link) 2>conftest.er1
46093 grep -v '^ *+' conftest.er1 >conftest.err
46095 cat conftest.err >&5
46096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46097 (exit $ac_status); } &&
46098 { ac_try='test -z "$ac_c_werror_flag"
46099 || test ! -s conftest.err'
46100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46101 (eval $ac_try) 2>&5
46103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46104 (exit $ac_status); }; } &&
46105 { ac_try='test -s conftest$ac_exeext'
46106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46107 (eval $ac_try) 2>&5
46109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46110 (exit $ac_status); }; }; then
46111 ac_cv_func_setproctitle=yes
46113 echo "$as_me: failed program was:" >&5
46114 sed 's/^/| /' conftest.$ac_ext >&5
46116 ac_cv_func_setproctitle=no
46118 rm -f conftest.err conftest.$ac_objext \
46119 conftest$ac_exeext conftest.$ac_ext
46121 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46122 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46123 if test $ac_cv_func_setproctitle = yes; then
46124 have_setproctitle=yes
46127 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46128 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46129 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46130 echo $ECHO_N "(cached) $ECHO_C" >&6
46132 ac_check_lib_save_LIBS=$LIBS
46133 LIBS="-lutil $LIBS"
46134 cat >conftest.$ac_ext <<_ACEOF
46137 cat confdefs.h >>conftest.$ac_ext
46138 cat >>conftest.$ac_ext <<_ACEOF
46139 /* end confdefs.h. */
46141 /* Override any gcc2 internal prototype to avoid an error. */
46145 /* We use char because int might match the return type of a gcc2
46146 builtin and then its argument prototype would still apply. */
46147 char setproctitle ();
46156 rm -f conftest.$ac_objext conftest$ac_exeext
46157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46158 (eval $ac_link) 2>conftest.er1
46160 grep -v '^ *+' conftest.er1 >conftest.err
46162 cat conftest.err >&5
46163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46164 (exit $ac_status); } &&
46165 { ac_try='test -z "$ac_c_werror_flag"
46166 || test ! -s conftest.err'
46167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46168 (eval $ac_try) 2>&5
46170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46171 (exit $ac_status); }; } &&
46172 { ac_try='test -s conftest$ac_exeext'
46173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46174 (eval $ac_try) 2>&5
46176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46177 (exit $ac_status); }; }; then
46178 ac_cv_lib_util_setproctitle=yes
46180 echo "$as_me: failed program was:" >&5
46181 sed 's/^/| /' conftest.$ac_ext >&5
46183 ac_cv_lib_util_setproctitle=no
46185 rm -f conftest.err conftest.$ac_objext \
46186 conftest$ac_exeext conftest.$ac_ext
46187 LIBS=$ac_check_lib_save_LIBS
46189 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46190 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46191 if test $ac_cv_lib_util_setproctitle = yes; then
46192 have_setproctitle=yes
46193 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46195 have_setproctitle=no
46197 "setproctitle.$ac_objext" | \
46198 *" setproctitle.$ac_objext" | \
46199 "setproctitle.$ac_objext "* | \
46200 *" setproctitle.$ac_objext "* ) ;;
46201 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46204 LIBSRCS="$LIBSRCS setproctitle.c"
46210 if test $have_setproctitle = yes ; then
46212 cat >>confdefs.h <<\_ACEOF
46213 #define HAVE_SETPROCTITLE 1
46219 if test $ol_enable_slp != no ; then
46221 for ac_header in slp.h
46223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46225 echo "$as_me:$LINENO: checking for $ac_header" >&5
46226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46228 echo $ECHO_N "(cached) $ECHO_C" >&6
46230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46233 # Is the header compilable?
46234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46236 cat >conftest.$ac_ext <<_ACEOF
46239 cat confdefs.h >>conftest.$ac_ext
46240 cat >>conftest.$ac_ext <<_ACEOF
46241 /* end confdefs.h. */
46242 $ac_includes_default
46243 #include <$ac_header>
46245 rm -f conftest.$ac_objext
46246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46247 (eval $ac_compile) 2>conftest.er1
46249 grep -v '^ *+' conftest.er1 >conftest.err
46251 cat conftest.err >&5
46252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46253 (exit $ac_status); } &&
46254 { ac_try='test -z "$ac_c_werror_flag"
46255 || test ! -s conftest.err'
46256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46257 (eval $ac_try) 2>&5
46259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46260 (exit $ac_status); }; } &&
46261 { ac_try='test -s conftest.$ac_objext'
46262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46263 (eval $ac_try) 2>&5
46265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46266 (exit $ac_status); }; }; then
46267 ac_header_compiler=yes
46269 echo "$as_me: failed program was:" >&5
46270 sed 's/^/| /' conftest.$ac_ext >&5
46272 ac_header_compiler=no
46274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46276 echo "${ECHO_T}$ac_header_compiler" >&6
46278 # Is the header present?
46279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46281 cat >conftest.$ac_ext <<_ACEOF
46284 cat confdefs.h >>conftest.$ac_ext
46285 cat >>conftest.$ac_ext <<_ACEOF
46286 /* end confdefs.h. */
46287 #include <$ac_header>
46289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46292 grep -v '^ *+' conftest.er1 >conftest.err
46294 cat conftest.err >&5
46295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46296 (exit $ac_status); } >/dev/null; then
46297 if test -s conftest.err; then
46298 ac_cpp_err=$ac_c_preproc_warn_flag
46299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46306 if test -z "$ac_cpp_err"; then
46307 ac_header_preproc=yes
46309 echo "$as_me: failed program was:" >&5
46310 sed 's/^/| /' conftest.$ac_ext >&5
46312 ac_header_preproc=no
46314 rm -f conftest.err conftest.$ac_ext
46315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46316 echo "${ECHO_T}$ac_header_preproc" >&6
46318 # So? What about this header?
46319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46325 ac_header_preproc=yes
46328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46342 ## ------------------------------------------ ##
46343 ## Report this to the AC_PACKAGE_NAME lists. ##
46344 ## ------------------------------------------ ##
46347 sed "s/^/$as_me: WARNING: /" >&2
46350 echo "$as_me:$LINENO: checking for $ac_header" >&5
46351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46353 echo $ECHO_N "(cached) $ECHO_C" >&6
46355 eval "$as_ac_Header=\$ac_header_preproc"
46357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46362 cat >>confdefs.h <<_ACEOF
46363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46371 if test $ac_cv_header_slp_h = yes ; then
46372 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46373 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46374 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46375 echo $ECHO_N "(cached) $ECHO_C" >&6
46377 ac_check_lib_save_LIBS=$LIBS
46379 cat >conftest.$ac_ext <<_ACEOF
46382 cat confdefs.h >>conftest.$ac_ext
46383 cat >>conftest.$ac_ext <<_ACEOF
46384 /* end confdefs.h. */
46386 /* Override any gcc2 internal prototype to avoid an error. */
46390 /* We use char because int might match the return type of a gcc2
46391 builtin and then its argument prototype would still apply. */
46401 rm -f conftest.$ac_objext conftest$ac_exeext
46402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46403 (eval $ac_link) 2>conftest.er1
46405 grep -v '^ *+' conftest.er1 >conftest.err
46407 cat conftest.err >&5
46408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46409 (exit $ac_status); } &&
46410 { ac_try='test -z "$ac_c_werror_flag"
46411 || test ! -s conftest.err'
46412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46413 (eval $ac_try) 2>&5
46415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46416 (exit $ac_status); }; } &&
46417 { ac_try='test -s conftest$ac_exeext'
46418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46419 (eval $ac_try) 2>&5
46421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46422 (exit $ac_status); }; }; then
46423 ac_cv_lib_slp_SLPOpen=yes
46425 echo "$as_me: failed program was:" >&5
46426 sed 's/^/| /' conftest.$ac_ext >&5
46428 ac_cv_lib_slp_SLPOpen=no
46430 rm -f conftest.err conftest.$ac_objext \
46431 conftest$ac_exeext conftest.$ac_ext
46432 LIBS=$ac_check_lib_save_LIBS
46434 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46435 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46436 if test $ac_cv_lib_slp_SLPOpen = yes; then
46442 if test $have_slp = yes ; then
46444 cat >>confdefs.h <<\_ACEOF
46448 SLAPD_SLP_LIBS=-lslp
46451 elif test $ol_enable_slp = yes ; then
46452 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46453 echo "$as_me: error: SLP not found" >&2;}
46454 { (exit 1); exit 1; }; }
46458 if test "$ol_with_multiple_precision" != "no" ; then
46464 for ac_header in openssl/bn.h bn.h
46466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46468 echo "$as_me:$LINENO: checking for $ac_header" >&5
46469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46471 echo $ECHO_N "(cached) $ECHO_C" >&6
46473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46476 # Is the header compilable?
46477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46479 cat >conftest.$ac_ext <<_ACEOF
46482 cat confdefs.h >>conftest.$ac_ext
46483 cat >>conftest.$ac_ext <<_ACEOF
46484 /* end confdefs.h. */
46485 $ac_includes_default
46486 #include <$ac_header>
46488 rm -f conftest.$ac_objext
46489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46490 (eval $ac_compile) 2>conftest.er1
46492 grep -v '^ *+' conftest.er1 >conftest.err
46494 cat conftest.err >&5
46495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46496 (exit $ac_status); } &&
46497 { ac_try='test -z "$ac_c_werror_flag"
46498 || test ! -s conftest.err'
46499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46500 (eval $ac_try) 2>&5
46502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46503 (exit $ac_status); }; } &&
46504 { ac_try='test -s conftest.$ac_objext'
46505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46506 (eval $ac_try) 2>&5
46508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46509 (exit $ac_status); }; }; then
46510 ac_header_compiler=yes
46512 echo "$as_me: failed program was:" >&5
46513 sed 's/^/| /' conftest.$ac_ext >&5
46515 ac_header_compiler=no
46517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46519 echo "${ECHO_T}$ac_header_compiler" >&6
46521 # Is the header present?
46522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46524 cat >conftest.$ac_ext <<_ACEOF
46527 cat confdefs.h >>conftest.$ac_ext
46528 cat >>conftest.$ac_ext <<_ACEOF
46529 /* end confdefs.h. */
46530 #include <$ac_header>
46532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46535 grep -v '^ *+' conftest.er1 >conftest.err
46537 cat conftest.err >&5
46538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46539 (exit $ac_status); } >/dev/null; then
46540 if test -s conftest.err; then
46541 ac_cpp_err=$ac_c_preproc_warn_flag
46542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46549 if test -z "$ac_cpp_err"; then
46550 ac_header_preproc=yes
46552 echo "$as_me: failed program was:" >&5
46553 sed 's/^/| /' conftest.$ac_ext >&5
46555 ac_header_preproc=no
46557 rm -f conftest.err conftest.$ac_ext
46558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46559 echo "${ECHO_T}$ac_header_preproc" >&6
46561 # So? What about this header?
46562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46568 ac_header_preproc=yes
46571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46585 ## ------------------------------------------ ##
46586 ## Report this to the AC_PACKAGE_NAME lists. ##
46587 ## ------------------------------------------ ##
46590 sed "s/^/$as_me: WARNING: /" >&2
46593 echo "$as_me:$LINENO: checking for $ac_header" >&5
46594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46596 echo $ECHO_N "(cached) $ECHO_C" >&6
46598 eval "$as_ac_Header=\$ac_header_preproc"
46600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46605 cat >>confdefs.h <<_ACEOF
46606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46615 for ac_header in openssl/crypto.h crypto.h
46617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46619 echo "$as_me:$LINENO: checking for $ac_header" >&5
46620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46622 echo $ECHO_N "(cached) $ECHO_C" >&6
46624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46627 # Is the header compilable?
46628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46630 cat >conftest.$ac_ext <<_ACEOF
46633 cat confdefs.h >>conftest.$ac_ext
46634 cat >>conftest.$ac_ext <<_ACEOF
46635 /* end confdefs.h. */
46636 $ac_includes_default
46637 #include <$ac_header>
46639 rm -f conftest.$ac_objext
46640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46641 (eval $ac_compile) 2>conftest.er1
46643 grep -v '^ *+' conftest.er1 >conftest.err
46645 cat conftest.err >&5
46646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46647 (exit $ac_status); } &&
46648 { ac_try='test -z "$ac_c_werror_flag"
46649 || test ! -s conftest.err'
46650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46651 (eval $ac_try) 2>&5
46653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46654 (exit $ac_status); }; } &&
46655 { ac_try='test -s conftest.$ac_objext'
46656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46657 (eval $ac_try) 2>&5
46659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660 (exit $ac_status); }; }; then
46661 ac_header_compiler=yes
46663 echo "$as_me: failed program was:" >&5
46664 sed 's/^/| /' conftest.$ac_ext >&5
46666 ac_header_compiler=no
46668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46670 echo "${ECHO_T}$ac_header_compiler" >&6
46672 # Is the header present?
46673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46675 cat >conftest.$ac_ext <<_ACEOF
46678 cat confdefs.h >>conftest.$ac_ext
46679 cat >>conftest.$ac_ext <<_ACEOF
46680 /* end confdefs.h. */
46681 #include <$ac_header>
46683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46686 grep -v '^ *+' conftest.er1 >conftest.err
46688 cat conftest.err >&5
46689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46690 (exit $ac_status); } >/dev/null; then
46691 if test -s conftest.err; then
46692 ac_cpp_err=$ac_c_preproc_warn_flag
46693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46700 if test -z "$ac_cpp_err"; then
46701 ac_header_preproc=yes
46703 echo "$as_me: failed program was:" >&5
46704 sed 's/^/| /' conftest.$ac_ext >&5
46706 ac_header_preproc=no
46708 rm -f conftest.err conftest.$ac_ext
46709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46710 echo "${ECHO_T}$ac_header_preproc" >&6
46712 # So? What about this header?
46713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46719 ac_header_preproc=yes
46722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46736 ## ------------------------------------------ ##
46737 ## Report this to the AC_PACKAGE_NAME lists. ##
46738 ## ------------------------------------------ ##
46741 sed "s/^/$as_me: WARNING: /" >&2
46744 echo "$as_me:$LINENO: checking for $ac_header" >&5
46745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46747 echo $ECHO_N "(cached) $ECHO_C" >&6
46749 eval "$as_ac_Header=\$ac_header_preproc"
46751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46756 cat >>confdefs.h <<_ACEOF
46757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46765 for ac_header in gmp.h
46767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46769 echo "$as_me:$LINENO: checking for $ac_header" >&5
46770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46772 echo $ECHO_N "(cached) $ECHO_C" >&6
46774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46777 # Is the header compilable?
46778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46780 cat >conftest.$ac_ext <<_ACEOF
46783 cat confdefs.h >>conftest.$ac_ext
46784 cat >>conftest.$ac_ext <<_ACEOF
46785 /* end confdefs.h. */
46786 $ac_includes_default
46787 #include <$ac_header>
46789 rm -f conftest.$ac_objext
46790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46791 (eval $ac_compile) 2>conftest.er1
46793 grep -v '^ *+' conftest.er1 >conftest.err
46795 cat conftest.err >&5
46796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46797 (exit $ac_status); } &&
46798 { ac_try='test -z "$ac_c_werror_flag"
46799 || test ! -s conftest.err'
46800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46801 (eval $ac_try) 2>&5
46803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46804 (exit $ac_status); }; } &&
46805 { ac_try='test -s conftest.$ac_objext'
46806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46807 (eval $ac_try) 2>&5
46809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46810 (exit $ac_status); }; }; then
46811 ac_header_compiler=yes
46813 echo "$as_me: failed program was:" >&5
46814 sed 's/^/| /' conftest.$ac_ext >&5
46816 ac_header_compiler=no
46818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46820 echo "${ECHO_T}$ac_header_compiler" >&6
46822 # Is the header present?
46823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46825 cat >conftest.$ac_ext <<_ACEOF
46828 cat confdefs.h >>conftest.$ac_ext
46829 cat >>conftest.$ac_ext <<_ACEOF
46830 /* end confdefs.h. */
46831 #include <$ac_header>
46833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46836 grep -v '^ *+' conftest.er1 >conftest.err
46838 cat conftest.err >&5
46839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46840 (exit $ac_status); } >/dev/null; then
46841 if test -s conftest.err; then
46842 ac_cpp_err=$ac_c_preproc_warn_flag
46843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46850 if test -z "$ac_cpp_err"; then
46851 ac_header_preproc=yes
46853 echo "$as_me: failed program was:" >&5
46854 sed 's/^/| /' conftest.$ac_ext >&5
46856 ac_header_preproc=no
46858 rm -f conftest.err conftest.$ac_ext
46859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46860 echo "${ECHO_T}$ac_header_preproc" >&6
46862 # So? What about this header?
46863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46869 ac_header_preproc=yes
46872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46886 ## ------------------------------------------ ##
46887 ## Report this to the AC_PACKAGE_NAME lists. ##
46888 ## ------------------------------------------ ##
46891 sed "s/^/$as_me: WARNING: /" >&2
46894 echo "$as_me:$LINENO: checking for $ac_header" >&5
46895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46897 echo $ECHO_N "(cached) $ECHO_C" >&6
46899 eval "$as_ac_Header=\$ac_header_preproc"
46901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46906 cat >>confdefs.h <<_ACEOF
46907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46915 if test "$ol_with_tls" = "found" ; then
46917 ol_have_crypto_h=no
46919 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46920 -o "$ac_cv_header_bn_h" = "yes" ; then
46924 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46925 -o "$ac_cv_header_crypto_h" = "yes" ; then
46926 ol_have_crypto_h=yes
46929 if test "$ol_have_bn_h" = "yes" \
46930 -a "$ol_have_crypto_h" = "yes" ; then
46935 if test $ac_cv_header_gmp_h = yes ; then
46936 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46937 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46938 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46939 echo $ECHO_N "(cached) $ECHO_C" >&6
46941 ac_check_lib_save_LIBS=$LIBS
46943 cat >conftest.$ac_ext <<_ACEOF
46946 cat confdefs.h >>conftest.$ac_ext
46947 cat >>conftest.$ac_ext <<_ACEOF
46948 /* end confdefs.h. */
46950 /* Override any gcc2 internal prototype to avoid an error. */
46954 /* We use char because int might match the return type of a gcc2
46955 builtin and then its argument prototype would still apply. */
46956 char __gmpz_add_ui ();
46965 rm -f conftest.$ac_objext conftest$ac_exeext
46966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46967 (eval $ac_link) 2>conftest.er1
46969 grep -v '^ *+' conftest.er1 >conftest.err
46971 cat conftest.err >&5
46972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46973 (exit $ac_status); } &&
46974 { ac_try='test -z "$ac_c_werror_flag"
46975 || test ! -s conftest.err'
46976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46977 (eval $ac_try) 2>&5
46979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980 (exit $ac_status); }; } &&
46981 { ac_try='test -s conftest$ac_exeext'
46982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46983 (eval $ac_try) 2>&5
46985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46986 (exit $ac_status); }; }; then
46987 ac_cv_lib_gmp___gmpz_add_ui=yes
46989 echo "$as_me: failed program was:" >&5
46990 sed 's/^/| /' conftest.$ac_ext >&5
46992 ac_cv_lib_gmp___gmpz_add_ui=no
46994 rm -f conftest.err conftest.$ac_objext \
46995 conftest$ac_exeext conftest.$ac_ext
46996 LIBS=$ac_check_lib_save_LIBS
46998 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46999 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47000 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47006 if test $have_gmp = yes ; then
47011 echo "$as_me:$LINENO: checking for multiple precision support" >&5
47012 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47014 ol_mp_support="none"
47015 case "$ol_with_multiple_precision" in
47017 if test "$ol_have_bignum" = "yes" ; then
47018 ol_mp_support="bignum"
47020 if test "$ol_have_gmp" = "yes" ; then
47021 ol_mp_support="gmp"
47026 if test "$ol_have_bignum" != "yes" ; then
47027 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47028 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47029 { (exit 1); exit 1; }; }
47031 ol_mp_support="bignum"
47034 if test "$ol_have_gmp" != "yes" ; then
47035 { { echo "$as_me:$LINENO: error: GMP not available" >&5
47036 echo "$as_me: error: GMP not available" >&2;}
47037 { (exit 1); exit 1; }; }
47039 ol_mp_support="gmp"
47042 if test "$ol_have_bignum" = "yes" ; then
47043 ol_mp_support="bignum"
47044 elif test "$ol_have_gmp" = "yes" ; then
47045 ol_mp_support="gmp"
47047 { { echo "$as_me:$LINENO: error: not available" >&5
47048 echo "$as_me: error: not available" >&2;}
47049 { (exit 1); exit 1; }; }
47054 case "$ol_mp_support" in
47057 cat >>confdefs.h <<\_ACEOF
47058 #define HAVE_BIGNUM 1
47064 cat >>confdefs.h <<\_ACEOF
47068 SLAPD_GMP_LIBS=-lgmp
47074 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47075 echo "${ECHO_T}$ol_mp_support" >&6
47079 echo "$as_me:$LINENO: checking for mode_t" >&5
47080 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47081 if test "${ac_cv_type_mode_t+set}" = set; then
47082 echo $ECHO_N "(cached) $ECHO_C" >&6
47084 cat >conftest.$ac_ext <<_ACEOF
47087 cat confdefs.h >>conftest.$ac_ext
47088 cat >>conftest.$ac_ext <<_ACEOF
47089 /* end confdefs.h. */
47090 $ac_includes_default
47096 if (sizeof (mode_t))
47102 rm -f conftest.$ac_objext
47103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47104 (eval $ac_compile) 2>conftest.er1
47106 grep -v '^ *+' conftest.er1 >conftest.err
47108 cat conftest.err >&5
47109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47110 (exit $ac_status); } &&
47111 { ac_try='test -z "$ac_c_werror_flag"
47112 || test ! -s conftest.err'
47113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47114 (eval $ac_try) 2>&5
47116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47117 (exit $ac_status); }; } &&
47118 { ac_try='test -s conftest.$ac_objext'
47119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47120 (eval $ac_try) 2>&5
47122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47123 (exit $ac_status); }; }; then
47124 ac_cv_type_mode_t=yes
47126 echo "$as_me: failed program was:" >&5
47127 sed 's/^/| /' conftest.$ac_ext >&5
47129 ac_cv_type_mode_t=no
47131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47133 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47134 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47135 if test $ac_cv_type_mode_t = yes; then
47139 cat >>confdefs.h <<_ACEOF
47145 echo "$as_me:$LINENO: checking for off_t" >&5
47146 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47147 if test "${ac_cv_type_off_t+set}" = set; then
47148 echo $ECHO_N "(cached) $ECHO_C" >&6
47150 cat >conftest.$ac_ext <<_ACEOF
47153 cat confdefs.h >>conftest.$ac_ext
47154 cat >>conftest.$ac_ext <<_ACEOF
47155 /* end confdefs.h. */
47156 $ac_includes_default
47162 if (sizeof (off_t))
47168 rm -f conftest.$ac_objext
47169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47170 (eval $ac_compile) 2>conftest.er1
47172 grep -v '^ *+' conftest.er1 >conftest.err
47174 cat conftest.err >&5
47175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47176 (exit $ac_status); } &&
47177 { ac_try='test -z "$ac_c_werror_flag"
47178 || test ! -s conftest.err'
47179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47180 (eval $ac_try) 2>&5
47182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47183 (exit $ac_status); }; } &&
47184 { ac_try='test -s conftest.$ac_objext'
47185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47186 (eval $ac_try) 2>&5
47188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47189 (exit $ac_status); }; }; then
47190 ac_cv_type_off_t=yes
47192 echo "$as_me: failed program was:" >&5
47193 sed 's/^/| /' conftest.$ac_ext >&5
47195 ac_cv_type_off_t=no
47197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47199 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47200 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47201 if test $ac_cv_type_off_t = yes; then
47205 cat >>confdefs.h <<_ACEOF
47211 echo "$as_me:$LINENO: checking for pid_t" >&5
47212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47213 if test "${ac_cv_type_pid_t+set}" = set; then
47214 echo $ECHO_N "(cached) $ECHO_C" >&6
47216 cat >conftest.$ac_ext <<_ACEOF
47219 cat confdefs.h >>conftest.$ac_ext
47220 cat >>conftest.$ac_ext <<_ACEOF
47221 /* end confdefs.h. */
47222 $ac_includes_default
47228 if (sizeof (pid_t))
47234 rm -f conftest.$ac_objext
47235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47236 (eval $ac_compile) 2>conftest.er1
47238 grep -v '^ *+' conftest.er1 >conftest.err
47240 cat conftest.err >&5
47241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47242 (exit $ac_status); } &&
47243 { ac_try='test -z "$ac_c_werror_flag"
47244 || test ! -s conftest.err'
47245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47246 (eval $ac_try) 2>&5
47248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47249 (exit $ac_status); }; } &&
47250 { ac_try='test -s conftest.$ac_objext'
47251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47252 (eval $ac_try) 2>&5
47254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47255 (exit $ac_status); }; }; then
47256 ac_cv_type_pid_t=yes
47258 echo "$as_me: failed program was:" >&5
47259 sed 's/^/| /' conftest.$ac_ext >&5
47261 ac_cv_type_pid_t=no
47263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47265 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47267 if test $ac_cv_type_pid_t = yes; then
47271 cat >>confdefs.h <<_ACEOF
47277 echo "$as_me:$LINENO: checking for ssize_t" >&5
47278 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47279 if test "${ac_cv_type_ssize_t+set}" = set; then
47280 echo $ECHO_N "(cached) $ECHO_C" >&6
47282 cat >conftest.$ac_ext <<_ACEOF
47285 cat confdefs.h >>conftest.$ac_ext
47286 cat >>conftest.$ac_ext <<_ACEOF
47287 /* end confdefs.h. */
47288 $ac_includes_default
47294 if (sizeof (ssize_t))
47300 rm -f conftest.$ac_objext
47301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47302 (eval $ac_compile) 2>conftest.er1
47304 grep -v '^ *+' conftest.er1 >conftest.err
47306 cat conftest.err >&5
47307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47308 (exit $ac_status); } &&
47309 { ac_try='test -z "$ac_c_werror_flag"
47310 || test ! -s conftest.err'
47311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47312 (eval $ac_try) 2>&5
47314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47315 (exit $ac_status); }; } &&
47316 { ac_try='test -s conftest.$ac_objext'
47317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47318 (eval $ac_try) 2>&5
47320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47321 (exit $ac_status); }; }; then
47322 ac_cv_type_ssize_t=yes
47324 echo "$as_me: failed program was:" >&5
47325 sed 's/^/| /' conftest.$ac_ext >&5
47327 ac_cv_type_ssize_t=no
47329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47331 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47332 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47333 if test $ac_cv_type_ssize_t = yes; then
47337 cat >>confdefs.h <<_ACEOF
47338 #define ssize_t signed int
47343 echo "$as_me:$LINENO: checking for caddr_t" >&5
47344 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47345 if test "${ac_cv_type_caddr_t+set}" = set; then
47346 echo $ECHO_N "(cached) $ECHO_C" >&6
47348 cat >conftest.$ac_ext <<_ACEOF
47351 cat confdefs.h >>conftest.$ac_ext
47352 cat >>conftest.$ac_ext <<_ACEOF
47353 /* end confdefs.h. */
47354 $ac_includes_default
47360 if (sizeof (caddr_t))
47366 rm -f conftest.$ac_objext
47367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47368 (eval $ac_compile) 2>conftest.er1
47370 grep -v '^ *+' conftest.er1 >conftest.err
47372 cat conftest.err >&5
47373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47374 (exit $ac_status); } &&
47375 { ac_try='test -z "$ac_c_werror_flag"
47376 || test ! -s conftest.err'
47377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47378 (eval $ac_try) 2>&5
47380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47381 (exit $ac_status); }; } &&
47382 { ac_try='test -s conftest.$ac_objext'
47383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47384 (eval $ac_try) 2>&5
47386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47387 (exit $ac_status); }; }; then
47388 ac_cv_type_caddr_t=yes
47390 echo "$as_me: failed program was:" >&5
47391 sed 's/^/| /' conftest.$ac_ext >&5
47393 ac_cv_type_caddr_t=no
47395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47397 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47398 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47399 if test $ac_cv_type_caddr_t = yes; then
47403 cat >>confdefs.h <<_ACEOF
47404 #define caddr_t char *
47409 echo "$as_me:$LINENO: checking for size_t" >&5
47410 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47411 if test "${ac_cv_type_size_t+set}" = set; then
47412 echo $ECHO_N "(cached) $ECHO_C" >&6
47414 cat >conftest.$ac_ext <<_ACEOF
47417 cat confdefs.h >>conftest.$ac_ext
47418 cat >>conftest.$ac_ext <<_ACEOF
47419 /* end confdefs.h. */
47420 $ac_includes_default
47426 if (sizeof (size_t))
47432 rm -f conftest.$ac_objext
47433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47434 (eval $ac_compile) 2>conftest.er1
47436 grep -v '^ *+' conftest.er1 >conftest.err
47438 cat conftest.err >&5
47439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47440 (exit $ac_status); } &&
47441 { ac_try='test -z "$ac_c_werror_flag"
47442 || test ! -s conftest.err'
47443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47444 (eval $ac_try) 2>&5
47446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47447 (exit $ac_status); }; } &&
47448 { ac_try='test -s conftest.$ac_objext'
47449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47450 (eval $ac_try) 2>&5
47452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47453 (exit $ac_status); }; }; then
47454 ac_cv_type_size_t=yes
47456 echo "$as_me: failed program was:" >&5
47457 sed 's/^/| /' conftest.$ac_ext >&5
47459 ac_cv_type_size_t=no
47461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47463 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47464 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47465 if test $ac_cv_type_size_t = yes; then
47469 cat >>confdefs.h <<_ACEOF
47470 #define size_t unsigned
47476 echo "$as_me:$LINENO: checking for long long" >&5
47477 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47478 if test "${ac_cv_type_long_long+set}" = set; then
47479 echo $ECHO_N "(cached) $ECHO_C" >&6
47481 cat >conftest.$ac_ext <<_ACEOF
47484 cat confdefs.h >>conftest.$ac_ext
47485 cat >>conftest.$ac_ext <<_ACEOF
47486 /* end confdefs.h. */
47487 $ac_includes_default
47491 if ((long long *) 0)
47493 if (sizeof (long long))
47499 rm -f conftest.$ac_objext
47500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47501 (eval $ac_compile) 2>conftest.er1
47503 grep -v '^ *+' conftest.er1 >conftest.err
47505 cat conftest.err >&5
47506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47507 (exit $ac_status); } &&
47508 { ac_try='test -z "$ac_c_werror_flag"
47509 || test ! -s conftest.err'
47510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47511 (eval $ac_try) 2>&5
47513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47514 (exit $ac_status); }; } &&
47515 { ac_try='test -s conftest.$ac_objext'
47516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47517 (eval $ac_try) 2>&5
47519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520 (exit $ac_status); }; }; then
47521 ac_cv_type_long_long=yes
47523 echo "$as_me: failed program was:" >&5
47524 sed 's/^/| /' conftest.$ac_ext >&5
47526 ac_cv_type_long_long=no
47528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47530 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47531 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47532 if test $ac_cv_type_long_long = yes; then
47534 cat >>confdefs.h <<_ACEOF
47535 #define HAVE_LONG_LONG 1
47541 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47542 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47543 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47544 echo $ECHO_N "(cached) $ECHO_C" >&6
47546 cat >conftest.$ac_ext <<_ACEOF
47549 cat confdefs.h >>conftest.$ac_ext
47550 cat >>conftest.$ac_ext <<_ACEOF
47551 /* end confdefs.h. */
47552 $ac_includes_default
47556 if ((ptrdiff_t *) 0)
47558 if (sizeof (ptrdiff_t))
47564 rm -f conftest.$ac_objext
47565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47566 (eval $ac_compile) 2>conftest.er1
47568 grep -v '^ *+' conftest.er1 >conftest.err
47570 cat conftest.err >&5
47571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47572 (exit $ac_status); } &&
47573 { ac_try='test -z "$ac_c_werror_flag"
47574 || test ! -s conftest.err'
47575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47576 (eval $ac_try) 2>&5
47578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47579 (exit $ac_status); }; } &&
47580 { ac_try='test -s conftest.$ac_objext'
47581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47582 (eval $ac_try) 2>&5
47584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47585 (exit $ac_status); }; }; then
47586 ac_cv_type_ptrdiff_t=yes
47588 echo "$as_me: failed program was:" >&5
47589 sed 's/^/| /' conftest.$ac_ext >&5
47591 ac_cv_type_ptrdiff_t=no
47593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47595 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47596 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47597 if test $ac_cv_type_ptrdiff_t = yes; then
47599 cat >>confdefs.h <<_ACEOF
47600 #define HAVE_PTRDIFF_T 1
47607 echo "$as_me:$LINENO: checking for socklen_t" >&5
47608 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47609 if test "${ac_cv_type_socklen_t+set}" = set; then
47610 echo $ECHO_N "(cached) $ECHO_C" >&6
47612 cat >conftest.$ac_ext <<_ACEOF
47615 cat confdefs.h >>conftest.$ac_ext
47616 cat >>conftest.$ac_ext <<_ACEOF
47617 /* end confdefs.h. */
47618 $ac_includes_default
47619 #ifdef HAVE_SYS_SOCKET_H
47620 #include <sys/socket.h>
47627 if ((socklen_t *) 0)
47629 if (sizeof (socklen_t))
47635 rm -f conftest.$ac_objext
47636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47637 (eval $ac_compile) 2>conftest.er1
47639 grep -v '^ *+' conftest.er1 >conftest.err
47641 cat conftest.err >&5
47642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47643 (exit $ac_status); } &&
47644 { ac_try='test -z "$ac_c_werror_flag"
47645 || test ! -s conftest.err'
47646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47647 (eval $ac_try) 2>&5
47649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47650 (exit $ac_status); }; } &&
47651 { ac_try='test -s conftest.$ac_objext'
47652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47653 (eval $ac_try) 2>&5
47655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47656 (exit $ac_status); }; }; then
47657 ac_cv_type_socklen_t=yes
47659 echo "$as_me: failed program was:" >&5
47660 sed 's/^/| /' conftest.$ac_ext >&5
47662 ac_cv_type_socklen_t=no
47664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47666 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47667 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47668 if test $ac_cv_type_socklen_t = yes; then
47672 cat >>confdefs.h <<_ACEOF
47673 #define socklen_t int
47679 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47680 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47681 if test "${ac_cv_type_signal+set}" = set; then
47682 echo $ECHO_N "(cached) $ECHO_C" >&6
47684 cat >conftest.$ac_ext <<_ACEOF
47687 cat confdefs.h >>conftest.$ac_ext
47688 cat >>conftest.$ac_ext <<_ACEOF
47689 /* end confdefs.h. */
47690 #include <sys/types.h>
47691 #include <signal.h>
47696 extern "C" void (*signal (int, void (*)(int)))(int);
47698 void (*signal ()) ();
47709 rm -f conftest.$ac_objext
47710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47711 (eval $ac_compile) 2>conftest.er1
47713 grep -v '^ *+' conftest.er1 >conftest.err
47715 cat conftest.err >&5
47716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47717 (exit $ac_status); } &&
47718 { ac_try='test -z "$ac_c_werror_flag"
47719 || test ! -s conftest.err'
47720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47721 (eval $ac_try) 2>&5
47723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724 (exit $ac_status); }; } &&
47725 { ac_try='test -s conftest.$ac_objext'
47726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47727 (eval $ac_try) 2>&5
47729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47730 (exit $ac_status); }; }; then
47731 ac_cv_type_signal=void
47733 echo "$as_me: failed program was:" >&5
47734 sed 's/^/| /' conftest.$ac_ext >&5
47736 ac_cv_type_signal=int
47738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47740 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47741 echo "${ECHO_T}$ac_cv_type_signal" >&6
47743 cat >>confdefs.h <<_ACEOF
47744 #define RETSIGTYPE $ac_cv_type_signal
47749 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47750 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47751 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47752 echo $ECHO_N "(cached) $ECHO_C" >&6
47754 cat >conftest.$ac_ext <<_ACEOF
47757 cat confdefs.h >>conftest.$ac_ext
47758 cat >>conftest.$ac_ext <<_ACEOF
47759 /* end confdefs.h. */
47760 $ac_includes_default
47761 #include <signal.h>
47767 if ((sig_atomic_t *) 0)
47769 if (sizeof (sig_atomic_t))
47775 rm -f conftest.$ac_objext
47776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47777 (eval $ac_compile) 2>conftest.er1
47779 grep -v '^ *+' conftest.er1 >conftest.err
47781 cat conftest.err >&5
47782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47783 (exit $ac_status); } &&
47784 { ac_try='test -z "$ac_c_werror_flag"
47785 || test ! -s conftest.err'
47786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47787 (eval $ac_try) 2>&5
47789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47790 (exit $ac_status); }; } &&
47791 { ac_try='test -s conftest.$ac_objext'
47792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47793 (eval $ac_try) 2>&5
47795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47796 (exit $ac_status); }; }; then
47797 ac_cv_type_sig_atomic_t=yes
47799 echo "$as_me: failed program was:" >&5
47800 sed 's/^/| /' conftest.$ac_ext >&5
47802 ac_cv_type_sig_atomic_t=no
47804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47806 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47807 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47808 if test $ac_cv_type_sig_atomic_t = yes; then
47812 cat >>confdefs.h <<_ACEOF
47813 #define sig_atomic_t int
47819 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47820 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47821 if test "${ac_cv_type_uid_t+set}" = set; then
47822 echo $ECHO_N "(cached) $ECHO_C" >&6
47824 cat >conftest.$ac_ext <<_ACEOF
47827 cat confdefs.h >>conftest.$ac_ext
47828 cat >>conftest.$ac_ext <<_ACEOF
47829 /* end confdefs.h. */
47830 #include <sys/types.h>
47833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47834 $EGREP "uid_t" >/dev/null 2>&1; then
47835 ac_cv_type_uid_t=yes
47837 ac_cv_type_uid_t=no
47842 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47843 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47844 if test $ac_cv_type_uid_t = no; then
47846 cat >>confdefs.h <<\_ACEOF
47851 cat >>confdefs.h <<\_ACEOF
47858 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47859 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47860 if test "${ac_cv_header_time+set}" = set; then
47861 echo $ECHO_N "(cached) $ECHO_C" >&6
47863 cat >conftest.$ac_ext <<_ACEOF
47866 cat confdefs.h >>conftest.$ac_ext
47867 cat >>conftest.$ac_ext <<_ACEOF
47868 /* end confdefs.h. */
47869 #include <sys/types.h>
47870 #include <sys/time.h>
47876 if ((struct tm *) 0)
47882 rm -f conftest.$ac_objext
47883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47884 (eval $ac_compile) 2>conftest.er1
47886 grep -v '^ *+' conftest.er1 >conftest.err
47888 cat conftest.err >&5
47889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47890 (exit $ac_status); } &&
47891 { ac_try='test -z "$ac_c_werror_flag"
47892 || test ! -s conftest.err'
47893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47894 (eval $ac_try) 2>&5
47896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47897 (exit $ac_status); }; } &&
47898 { ac_try='test -s conftest.$ac_objext'
47899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47900 (eval $ac_try) 2>&5
47902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47903 (exit $ac_status); }; }; then
47904 ac_cv_header_time=yes
47906 echo "$as_me: failed program was:" >&5
47907 sed 's/^/| /' conftest.$ac_ext >&5
47909 ac_cv_header_time=no
47911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47913 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47914 echo "${ECHO_T}$ac_cv_header_time" >&6
47915 if test $ac_cv_header_time = yes; then
47917 cat >>confdefs.h <<\_ACEOF
47918 #define TIME_WITH_SYS_TIME 1
47923 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47924 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47925 if test "${ac_cv_struct_tm+set}" = set; then
47926 echo $ECHO_N "(cached) $ECHO_C" >&6
47928 cat >conftest.$ac_ext <<_ACEOF
47931 cat confdefs.h >>conftest.$ac_ext
47932 cat >>conftest.$ac_ext <<_ACEOF
47933 /* end confdefs.h. */
47934 #include <sys/types.h>
47940 struct tm *tp; tp->tm_sec;
47945 rm -f conftest.$ac_objext
47946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47947 (eval $ac_compile) 2>conftest.er1
47949 grep -v '^ *+' conftest.er1 >conftest.err
47951 cat conftest.err >&5
47952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47953 (exit $ac_status); } &&
47954 { ac_try='test -z "$ac_c_werror_flag"
47955 || test ! -s conftest.err'
47956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47957 (eval $ac_try) 2>&5
47959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47960 (exit $ac_status); }; } &&
47961 { ac_try='test -s conftest.$ac_objext'
47962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47963 (eval $ac_try) 2>&5
47965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966 (exit $ac_status); }; }; then
47967 ac_cv_struct_tm=time.h
47969 echo "$as_me: failed program was:" >&5
47970 sed 's/^/| /' conftest.$ac_ext >&5
47972 ac_cv_struct_tm=sys/time.h
47974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47976 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47977 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47978 if test $ac_cv_struct_tm = sys/time.h; then
47980 cat >>confdefs.h <<\_ACEOF
47981 #define TM_IN_SYS_TIME 1
47986 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47987 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47988 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47989 echo $ECHO_N "(cached) $ECHO_C" >&6
47991 cat >conftest.$ac_ext <<_ACEOF
47994 cat confdefs.h >>conftest.$ac_ext
47995 cat >>conftest.$ac_ext <<_ACEOF
47996 /* end confdefs.h. */
47997 $ac_includes_default
48001 static struct stat ac_aggr;
48002 if (ac_aggr.st_blksize)
48008 rm -f conftest.$ac_objext
48009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48010 (eval $ac_compile) 2>conftest.er1
48012 grep -v '^ *+' conftest.er1 >conftest.err
48014 cat conftest.err >&5
48015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48016 (exit $ac_status); } &&
48017 { ac_try='test -z "$ac_c_werror_flag"
48018 || test ! -s conftest.err'
48019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48020 (eval $ac_try) 2>&5
48022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48023 (exit $ac_status); }; } &&
48024 { ac_try='test -s conftest.$ac_objext'
48025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48026 (eval $ac_try) 2>&5
48028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48029 (exit $ac_status); }; }; then
48030 ac_cv_member_struct_stat_st_blksize=yes
48032 echo "$as_me: failed program was:" >&5
48033 sed 's/^/| /' conftest.$ac_ext >&5
48035 cat >conftest.$ac_ext <<_ACEOF
48038 cat confdefs.h >>conftest.$ac_ext
48039 cat >>conftest.$ac_ext <<_ACEOF
48040 /* end confdefs.h. */
48041 $ac_includes_default
48045 static struct stat ac_aggr;
48046 if (sizeof ac_aggr.st_blksize)
48052 rm -f conftest.$ac_objext
48053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48054 (eval $ac_compile) 2>conftest.er1
48056 grep -v '^ *+' conftest.er1 >conftest.err
48058 cat conftest.err >&5
48059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48060 (exit $ac_status); } &&
48061 { ac_try='test -z "$ac_c_werror_flag"
48062 || test ! -s conftest.err'
48063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48064 (eval $ac_try) 2>&5
48066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48067 (exit $ac_status); }; } &&
48068 { ac_try='test -s conftest.$ac_objext'
48069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48070 (eval $ac_try) 2>&5
48072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48073 (exit $ac_status); }; }; then
48074 ac_cv_member_struct_stat_st_blksize=yes
48076 echo "$as_me: failed program was:" >&5
48077 sed 's/^/| /' conftest.$ac_ext >&5
48079 ac_cv_member_struct_stat_st_blksize=no
48081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48086 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48087 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48089 cat >>confdefs.h <<_ACEOF
48090 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48096 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48097 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48098 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48099 echo $ECHO_N "(cached) $ECHO_C" >&6
48101 cat >conftest.$ac_ext <<_ACEOF
48104 cat confdefs.h >>conftest.$ac_ext
48105 cat >>conftest.$ac_ext <<_ACEOF
48106 /* end confdefs.h. */
48107 $ac_includes_default
48113 static struct passwd ac_aggr;
48114 if (ac_aggr.pw_gecos)
48120 rm -f conftest.$ac_objext
48121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48122 (eval $ac_compile) 2>conftest.er1
48124 grep -v '^ *+' conftest.er1 >conftest.err
48126 cat conftest.err >&5
48127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48128 (exit $ac_status); } &&
48129 { ac_try='test -z "$ac_c_werror_flag"
48130 || test ! -s conftest.err'
48131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48132 (eval $ac_try) 2>&5
48134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48135 (exit $ac_status); }; } &&
48136 { ac_try='test -s conftest.$ac_objext'
48137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48138 (eval $ac_try) 2>&5
48140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48141 (exit $ac_status); }; }; then
48142 ac_cv_member_struct_passwd_pw_gecos=yes
48144 echo "$as_me: failed program was:" >&5
48145 sed 's/^/| /' conftest.$ac_ext >&5
48147 cat >conftest.$ac_ext <<_ACEOF
48150 cat confdefs.h >>conftest.$ac_ext
48151 cat >>conftest.$ac_ext <<_ACEOF
48152 /* end confdefs.h. */
48153 $ac_includes_default
48159 static struct passwd ac_aggr;
48160 if (sizeof ac_aggr.pw_gecos)
48166 rm -f conftest.$ac_objext
48167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48168 (eval $ac_compile) 2>conftest.er1
48170 grep -v '^ *+' conftest.er1 >conftest.err
48172 cat conftest.err >&5
48173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48174 (exit $ac_status); } &&
48175 { ac_try='test -z "$ac_c_werror_flag"
48176 || test ! -s conftest.err'
48177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48178 (eval $ac_try) 2>&5
48180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48181 (exit $ac_status); }; } &&
48182 { ac_try='test -s conftest.$ac_objext'
48183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184 (eval $ac_try) 2>&5
48186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187 (exit $ac_status); }; }; then
48188 ac_cv_member_struct_passwd_pw_gecos=yes
48190 echo "$as_me: failed program was:" >&5
48191 sed 's/^/| /' conftest.$ac_ext >&5
48193 ac_cv_member_struct_passwd_pw_gecos=no
48195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48200 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48201 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48203 cat >>confdefs.h <<_ACEOF
48204 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48210 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48211 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48212 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48213 echo $ECHO_N "(cached) $ECHO_C" >&6
48215 cat >conftest.$ac_ext <<_ACEOF
48218 cat confdefs.h >>conftest.$ac_ext
48219 cat >>conftest.$ac_ext <<_ACEOF
48220 /* end confdefs.h. */
48221 $ac_includes_default
48227 static struct passwd ac_aggr;
48228 if (ac_aggr.pw_passwd)
48234 rm -f conftest.$ac_objext
48235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48236 (eval $ac_compile) 2>conftest.er1
48238 grep -v '^ *+' conftest.er1 >conftest.err
48240 cat conftest.err >&5
48241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48242 (exit $ac_status); } &&
48243 { ac_try='test -z "$ac_c_werror_flag"
48244 || test ! -s conftest.err'
48245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48246 (eval $ac_try) 2>&5
48248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48249 (exit $ac_status); }; } &&
48250 { ac_try='test -s conftest.$ac_objext'
48251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48252 (eval $ac_try) 2>&5
48254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48255 (exit $ac_status); }; }; then
48256 ac_cv_member_struct_passwd_pw_passwd=yes
48258 echo "$as_me: failed program was:" >&5
48259 sed 's/^/| /' conftest.$ac_ext >&5
48261 cat >conftest.$ac_ext <<_ACEOF
48264 cat confdefs.h >>conftest.$ac_ext
48265 cat >>conftest.$ac_ext <<_ACEOF
48266 /* end confdefs.h. */
48267 $ac_includes_default
48273 static struct passwd ac_aggr;
48274 if (sizeof ac_aggr.pw_passwd)
48280 rm -f conftest.$ac_objext
48281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48282 (eval $ac_compile) 2>conftest.er1
48284 grep -v '^ *+' conftest.er1 >conftest.err
48286 cat conftest.err >&5
48287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48288 (exit $ac_status); } &&
48289 { ac_try='test -z "$ac_c_werror_flag"
48290 || test ! -s conftest.err'
48291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48292 (eval $ac_try) 2>&5
48294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48295 (exit $ac_status); }; } &&
48296 { ac_try='test -s conftest.$ac_objext'
48297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48298 (eval $ac_try) 2>&5
48300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48301 (exit $ac_status); }; }; then
48302 ac_cv_member_struct_passwd_pw_passwd=yes
48304 echo "$as_me: failed program was:" >&5
48305 sed 's/^/| /' conftest.$ac_ext >&5
48307 ac_cv_member_struct_passwd_pw_passwd=no
48309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48313 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48314 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48315 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48317 cat >>confdefs.h <<_ACEOF
48318 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48325 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48326 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48327 if test "${ol_cv_c_upper_lower+set}" = set; then
48328 echo $ECHO_N "(cached) $ECHO_C" >&6
48331 if test "$cross_compiling" = yes; then
48332 ol_cv_c_upper_lower=safe
48334 cat >conftest.$ac_ext <<_ACEOF
48337 cat confdefs.h >>conftest.$ac_ext
48338 cat >>conftest.$ac_ext <<_ACEOF
48339 /* end confdefs.h. */
48344 if ('C' == toupper('C'))
48350 rm -f conftest$ac_exeext
48351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48352 (eval $ac_link) 2>&5
48354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48357 (eval $ac_try) 2>&5
48359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48360 (exit $ac_status); }; }; then
48361 ol_cv_c_upper_lower=no
48363 echo "$as_me: program exited with status $ac_status" >&5
48364 echo "$as_me: failed program was:" >&5
48365 sed 's/^/| /' conftest.$ac_ext >&5
48367 ( exit $ac_status )
48368 ol_cv_c_upper_lower=yes
48370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48373 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48374 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48375 if test $ol_cv_c_upper_lower != no ; then
48377 cat >>confdefs.h <<\_ACEOF
48378 #define C_UPPER_LOWER 1
48383 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48384 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48385 if test "${ac_cv_c_const+set}" = set; then
48386 echo $ECHO_N "(cached) $ECHO_C" >&6
48388 cat >conftest.$ac_ext <<_ACEOF
48391 cat confdefs.h >>conftest.$ac_ext
48392 cat >>conftest.$ac_ext <<_ACEOF
48393 /* end confdefs.h. */
48398 /* FIXME: Include the comments suggested by Paul. */
48399 #ifndef __cplusplus
48400 /* Ultrix mips cc rejects this. */
48401 typedef int charset[2];
48403 /* SunOS 4.1.1 cc rejects this. */
48404 char const *const *ccp;
48406 /* NEC SVR4.0.2 mips cc rejects this. */
48407 struct point {int x, y;};
48408 static struct point const zero = {0,0};
48409 /* AIX XL C 1.02.0.0 rejects this.
48410 It does not let you subtract one const X* pointer from another in
48411 an arm of an if-expression whose if-part is not a constant
48413 const char *g = "string";
48414 ccp = &g + (g ? g-g : 0);
48415 /* HPUX 7.0 cc rejects these. */
48418 ccp = (char const *const *) p;
48419 { /* SCO 3.2v4 cc rejects this. */
48421 char const *s = 0 ? (char *) 0 : (char const *) 0;
48425 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48426 int x[] = {25, 17};
48427 const int *foo = &x[0];
48430 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48431 typedef const int *iptr;
48435 { /* AIX XL C 1.02.0.0 rejects this saying
48436 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48437 struct s { int j; const int *ap[3]; };
48438 struct s *b; b->j = 5;
48440 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48441 const int foo = 10;
48449 rm -f conftest.$ac_objext
48450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48451 (eval $ac_compile) 2>conftest.er1
48453 grep -v '^ *+' conftest.er1 >conftest.err
48455 cat conftest.err >&5
48456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48457 (exit $ac_status); } &&
48458 { ac_try='test -z "$ac_c_werror_flag"
48459 || test ! -s conftest.err'
48460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48461 (eval $ac_try) 2>&5
48463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48464 (exit $ac_status); }; } &&
48465 { ac_try='test -s conftest.$ac_objext'
48466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48467 (eval $ac_try) 2>&5
48469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48470 (exit $ac_status); }; }; then
48473 echo "$as_me: failed program was:" >&5
48474 sed 's/^/| /' conftest.$ac_ext >&5
48478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48480 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48481 echo "${ECHO_T}$ac_cv_c_const" >&6
48482 if test $ac_cv_c_const = no; then
48484 cat >>confdefs.h <<\_ACEOF
48490 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48491 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48492 if test "${ol_cv_c_volatile+set}" = set; then
48493 echo $ECHO_N "(cached) $ECHO_C" >&6
48495 cat >conftest.$ac_ext <<_ACEOF
48498 cat confdefs.h >>conftest.$ac_ext
48499 cat >>conftest.$ac_ext <<_ACEOF
48500 /* end confdefs.h. */
48505 volatile int a; int * volatile b = x ? &y : &z;
48506 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48512 rm -f conftest.$ac_objext
48513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48514 (eval $ac_compile) 2>conftest.er1
48516 grep -v '^ *+' conftest.er1 >conftest.err
48518 cat conftest.err >&5
48519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48520 (exit $ac_status); } &&
48521 { ac_try='test -z "$ac_c_werror_flag"
48522 || test ! -s conftest.err'
48523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48524 (eval $ac_try) 2>&5
48526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48527 (exit $ac_status); }; } &&
48528 { ac_try='test -s conftest.$ac_objext'
48529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48530 (eval $ac_try) 2>&5
48532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48533 (exit $ac_status); }; }; then
48534 ol_cv_c_volatile=yes
48536 echo "$as_me: failed program was:" >&5
48537 sed 's/^/| /' conftest.$ac_ext >&5
48539 ol_cv_c_volatile=no
48541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48543 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48544 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48545 if test $ol_cv_c_volatile = yes; then
48549 cat >>confdefs.h <<\_ACEOF
48556 if test $cross_compiling = yes ; then
48557 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48558 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48560 cat >>confdefs.h <<\_ACEOF
48561 #define CROSS_COMPILING 1
48565 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48566 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48567 if test "${ac_cv_c_bigendian+set}" = set; then
48568 echo $ECHO_N "(cached) $ECHO_C" >&6
48570 # See if sys/param.h defines the BYTE_ORDER macro.
48571 cat >conftest.$ac_ext <<_ACEOF
48574 cat confdefs.h >>conftest.$ac_ext
48575 cat >>conftest.$ac_ext <<_ACEOF
48576 /* end confdefs.h. */
48577 #include <sys/types.h>
48578 #include <sys/param.h>
48583 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48584 bogus endian macros
48591 rm -f conftest.$ac_objext
48592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48593 (eval $ac_compile) 2>conftest.er1
48595 grep -v '^ *+' conftest.er1 >conftest.err
48597 cat conftest.err >&5
48598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48599 (exit $ac_status); } &&
48600 { ac_try='test -z "$ac_c_werror_flag"
48601 || test ! -s conftest.err'
48602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48603 (eval $ac_try) 2>&5
48605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48606 (exit $ac_status); }; } &&
48607 { ac_try='test -s conftest.$ac_objext'
48608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48609 (eval $ac_try) 2>&5
48611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48612 (exit $ac_status); }; }; then
48613 # It does; now see whether it defined to BIG_ENDIAN or not.
48614 cat >conftest.$ac_ext <<_ACEOF
48617 cat confdefs.h >>conftest.$ac_ext
48618 cat >>conftest.$ac_ext <<_ACEOF
48619 /* end confdefs.h. */
48620 #include <sys/types.h>
48621 #include <sys/param.h>
48626 #if BYTE_ORDER != BIG_ENDIAN
48634 rm -f conftest.$ac_objext
48635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48636 (eval $ac_compile) 2>conftest.er1
48638 grep -v '^ *+' conftest.er1 >conftest.err
48640 cat conftest.err >&5
48641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48642 (exit $ac_status); } &&
48643 { ac_try='test -z "$ac_c_werror_flag"
48644 || test ! -s conftest.err'
48645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48646 (eval $ac_try) 2>&5
48648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48649 (exit $ac_status); }; } &&
48650 { ac_try='test -s conftest.$ac_objext'
48651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48652 (eval $ac_try) 2>&5
48654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48655 (exit $ac_status); }; }; then
48656 ac_cv_c_bigendian=yes
48658 echo "$as_me: failed program was:" >&5
48659 sed 's/^/| /' conftest.$ac_ext >&5
48661 ac_cv_c_bigendian=no
48663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48665 echo "$as_me: failed program was:" >&5
48666 sed 's/^/| /' conftest.$ac_ext >&5
48668 # It does not; compile a test program.
48669 if test "$cross_compiling" = yes; then
48670 # try to guess the endianness by grepping values into an object file
48671 ac_cv_c_bigendian=unknown
48672 cat >conftest.$ac_ext <<_ACEOF
48675 cat confdefs.h >>conftest.$ac_ext
48676 cat >>conftest.$ac_ext <<_ACEOF
48677 /* end confdefs.h. */
48678 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48679 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48680 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48681 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48682 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48683 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48687 _ascii (); _ebcdic ();
48692 rm -f conftest.$ac_objext
48693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48694 (eval $ac_compile) 2>conftest.er1
48696 grep -v '^ *+' conftest.er1 >conftest.err
48698 cat conftest.err >&5
48699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48700 (exit $ac_status); } &&
48701 { ac_try='test -z "$ac_c_werror_flag"
48702 || test ! -s conftest.err'
48703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48704 (eval $ac_try) 2>&5
48706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48707 (exit $ac_status); }; } &&
48708 { ac_try='test -s conftest.$ac_objext'
48709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48710 (eval $ac_try) 2>&5
48712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48713 (exit $ac_status); }; }; then
48714 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48715 ac_cv_c_bigendian=yes
48717 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48718 if test "$ac_cv_c_bigendian" = unknown; then
48719 ac_cv_c_bigendian=no
48721 # finding both strings is unlikely to happen, but who knows?
48722 ac_cv_c_bigendian=unknown
48726 echo "$as_me: failed program was:" >&5
48727 sed 's/^/| /' conftest.$ac_ext >&5
48730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48732 cat >conftest.$ac_ext <<_ACEOF
48735 cat confdefs.h >>conftest.$ac_ext
48736 cat >>conftest.$ac_ext <<_ACEOF
48737 /* end confdefs.h. */
48741 /* Are we little or big endian? From Harbison&Steele. */
48745 char c[sizeof (long)];
48748 exit (u.c[sizeof (long) - 1] == 1);
48751 rm -f conftest$ac_exeext
48752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48753 (eval $ac_link) 2>&5
48755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48758 (eval $ac_try) 2>&5
48760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48761 (exit $ac_status); }; }; then
48762 ac_cv_c_bigendian=no
48764 echo "$as_me: program exited with status $ac_status" >&5
48765 echo "$as_me: failed program was:" >&5
48766 sed 's/^/| /' conftest.$ac_ext >&5
48768 ( exit $ac_status )
48769 ac_cv_c_bigendian=yes
48771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48776 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48777 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48778 case $ac_cv_c_bigendian in
48781 cat >>confdefs.h <<\_ACEOF
48782 #define WORDS_BIGENDIAN 1
48788 { { echo "$as_me:$LINENO: error: unknown endianness
48789 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48790 echo "$as_me: error: unknown endianness
48791 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48792 { (exit 1); exit 1; }; } ;;
48797 echo "$as_me:$LINENO: checking for short" >&5
48798 echo $ECHO_N "checking for short... $ECHO_C" >&6
48799 if test "${ac_cv_type_short+set}" = set; then
48800 echo $ECHO_N "(cached) $ECHO_C" >&6
48802 cat >conftest.$ac_ext <<_ACEOF
48805 cat confdefs.h >>conftest.$ac_ext
48806 cat >>conftest.$ac_ext <<_ACEOF
48807 /* end confdefs.h. */
48808 $ac_includes_default
48814 if (sizeof (short))
48820 rm -f conftest.$ac_objext
48821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48822 (eval $ac_compile) 2>conftest.er1
48824 grep -v '^ *+' conftest.er1 >conftest.err
48826 cat conftest.err >&5
48827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48828 (exit $ac_status); } &&
48829 { ac_try='test -z "$ac_c_werror_flag"
48830 || test ! -s conftest.err'
48831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48832 (eval $ac_try) 2>&5
48834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48835 (exit $ac_status); }; } &&
48836 { ac_try='test -s conftest.$ac_objext'
48837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48838 (eval $ac_try) 2>&5
48840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48841 (exit $ac_status); }; }; then
48842 ac_cv_type_short=yes
48844 echo "$as_me: failed program was:" >&5
48845 sed 's/^/| /' conftest.$ac_ext >&5
48847 ac_cv_type_short=no
48849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48851 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48852 echo "${ECHO_T}$ac_cv_type_short" >&6
48854 echo "$as_me:$LINENO: checking size of short" >&5
48855 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48856 if test "${ac_cv_sizeof_short+set}" = set; then
48857 echo $ECHO_N "(cached) $ECHO_C" >&6
48859 if test "$ac_cv_type_short" = yes; then
48860 # The cast to unsigned long works around a bug in the HP C Compiler
48861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48863 # This bug is HP SR number 8606223364.
48864 if test "$cross_compiling" = yes; then
48865 # Depending upon the size, compute the lo and hi bounds.
48866 cat >conftest.$ac_ext <<_ACEOF
48869 cat confdefs.h >>conftest.$ac_ext
48870 cat >>conftest.$ac_ext <<_ACEOF
48871 /* end confdefs.h. */
48872 $ac_includes_default
48876 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48883 rm -f conftest.$ac_objext
48884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48885 (eval $ac_compile) 2>conftest.er1
48887 grep -v '^ *+' conftest.er1 >conftest.err
48889 cat conftest.err >&5
48890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891 (exit $ac_status); } &&
48892 { ac_try='test -z "$ac_c_werror_flag"
48893 || test ! -s conftest.err'
48894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48895 (eval $ac_try) 2>&5
48897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48898 (exit $ac_status); }; } &&
48899 { ac_try='test -s conftest.$ac_objext'
48900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48901 (eval $ac_try) 2>&5
48903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48904 (exit $ac_status); }; }; then
48907 cat >conftest.$ac_ext <<_ACEOF
48910 cat confdefs.h >>conftest.$ac_ext
48911 cat >>conftest.$ac_ext <<_ACEOF
48912 /* end confdefs.h. */
48913 $ac_includes_default
48917 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48924 rm -f conftest.$ac_objext
48925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48926 (eval $ac_compile) 2>conftest.er1
48928 grep -v '^ *+' conftest.er1 >conftest.err
48930 cat conftest.err >&5
48931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48932 (exit $ac_status); } &&
48933 { ac_try='test -z "$ac_c_werror_flag"
48934 || test ! -s conftest.err'
48935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48936 (eval $ac_try) 2>&5
48938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48939 (exit $ac_status); }; } &&
48940 { ac_try='test -s conftest.$ac_objext'
48941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48942 (eval $ac_try) 2>&5
48944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945 (exit $ac_status); }; }; then
48946 ac_hi=$ac_mid; break
48948 echo "$as_me: failed program was:" >&5
48949 sed 's/^/| /' conftest.$ac_ext >&5
48951 ac_lo=`expr $ac_mid + 1`
48952 if test $ac_lo -le $ac_mid; then
48956 ac_mid=`expr 2 '*' $ac_mid + 1`
48958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48961 echo "$as_me: failed program was:" >&5
48962 sed 's/^/| /' conftest.$ac_ext >&5
48964 cat >conftest.$ac_ext <<_ACEOF
48967 cat confdefs.h >>conftest.$ac_ext
48968 cat >>conftest.$ac_ext <<_ACEOF
48969 /* end confdefs.h. */
48970 $ac_includes_default
48974 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
48981 rm -f conftest.$ac_objext
48982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48983 (eval $ac_compile) 2>conftest.er1
48985 grep -v '^ *+' conftest.er1 >conftest.err
48987 cat conftest.err >&5
48988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48989 (exit $ac_status); } &&
48990 { ac_try='test -z "$ac_c_werror_flag"
48991 || test ! -s conftest.err'
48992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48993 (eval $ac_try) 2>&5
48995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48996 (exit $ac_status); }; } &&
48997 { ac_try='test -s conftest.$ac_objext'
48998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48999 (eval $ac_try) 2>&5
49001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49002 (exit $ac_status); }; }; then
49005 cat >conftest.$ac_ext <<_ACEOF
49008 cat confdefs.h >>conftest.$ac_ext
49009 cat >>conftest.$ac_ext <<_ACEOF
49010 /* end confdefs.h. */
49011 $ac_includes_default
49015 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49022 rm -f conftest.$ac_objext
49023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49024 (eval $ac_compile) 2>conftest.er1
49026 grep -v '^ *+' conftest.er1 >conftest.err
49028 cat conftest.err >&5
49029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49030 (exit $ac_status); } &&
49031 { ac_try='test -z "$ac_c_werror_flag"
49032 || test ! -s conftest.err'
49033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49034 (eval $ac_try) 2>&5
49036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49037 (exit $ac_status); }; } &&
49038 { ac_try='test -s conftest.$ac_objext'
49039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49040 (eval $ac_try) 2>&5
49042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49043 (exit $ac_status); }; }; then
49044 ac_lo=$ac_mid; break
49046 echo "$as_me: failed program was:" >&5
49047 sed 's/^/| /' conftest.$ac_ext >&5
49049 ac_hi=`expr '(' $ac_mid ')' - 1`
49050 if test $ac_mid -le $ac_hi; then
49054 ac_mid=`expr 2 '*' $ac_mid`
49056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49059 echo "$as_me: failed program was:" >&5
49060 sed 's/^/| /' conftest.$ac_ext >&5
49064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49067 # Binary search between lo and hi bounds.
49068 while test "x$ac_lo" != "x$ac_hi"; do
49069 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49070 cat >conftest.$ac_ext <<_ACEOF
49073 cat confdefs.h >>conftest.$ac_ext
49074 cat >>conftest.$ac_ext <<_ACEOF
49075 /* end confdefs.h. */
49076 $ac_includes_default
49080 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49087 rm -f conftest.$ac_objext
49088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49089 (eval $ac_compile) 2>conftest.er1
49091 grep -v '^ *+' conftest.er1 >conftest.err
49093 cat conftest.err >&5
49094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49095 (exit $ac_status); } &&
49096 { ac_try='test -z "$ac_c_werror_flag"
49097 || test ! -s conftest.err'
49098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49099 (eval $ac_try) 2>&5
49101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49102 (exit $ac_status); }; } &&
49103 { ac_try='test -s conftest.$ac_objext'
49104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49105 (eval $ac_try) 2>&5
49107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49108 (exit $ac_status); }; }; then
49111 echo "$as_me: failed program was:" >&5
49112 sed 's/^/| /' conftest.$ac_ext >&5
49114 ac_lo=`expr '(' $ac_mid ')' + 1`
49116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49119 ?*) ac_cv_sizeof_short=$ac_lo;;
49120 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49121 See \`config.log' for more details." >&5
49122 echo "$as_me: error: cannot compute sizeof (short), 77
49123 See \`config.log' for more details." >&2;}
49124 { (exit 1); exit 1; }; } ;;
49127 if test "$cross_compiling" = yes; then
49128 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49129 See \`config.log' for more details." >&5
49130 echo "$as_me: error: cannot run test program while cross compiling
49131 See \`config.log' for more details." >&2;}
49132 { (exit 1); exit 1; }; }
49134 cat >conftest.$ac_ext <<_ACEOF
49137 cat confdefs.h >>conftest.$ac_ext
49138 cat >>conftest.$ac_ext <<_ACEOF
49139 /* end confdefs.h. */
49140 $ac_includes_default
49141 long longval () { return (long) (sizeof (short)); }
49142 unsigned long ulongval () { return (long) (sizeof (short)); }
49144 #include <stdlib.h>
49149 FILE *f = fopen ("conftest.val", "w");
49152 if (((long) (sizeof (short))) < 0)
49154 long i = longval ();
49155 if (i != ((long) (sizeof (short))))
49157 fprintf (f, "%ld\n", i);
49161 unsigned long i = ulongval ();
49162 if (i != ((long) (sizeof (short))))
49164 fprintf (f, "%lu\n", i);
49166 exit (ferror (f) || fclose (f) != 0);
49172 rm -f conftest$ac_exeext
49173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49174 (eval $ac_link) 2>&5
49176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49179 (eval $ac_try) 2>&5
49181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49182 (exit $ac_status); }; }; then
49183 ac_cv_sizeof_short=`cat conftest.val`
49185 echo "$as_me: program exited with status $ac_status" >&5
49186 echo "$as_me: failed program was:" >&5
49187 sed 's/^/| /' conftest.$ac_ext >&5
49189 ( exit $ac_status )
49190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49191 See \`config.log' for more details." >&5
49192 echo "$as_me: error: cannot compute sizeof (short), 77
49193 See \`config.log' for more details." >&2;}
49194 { (exit 1); exit 1; }; }
49196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49201 ac_cv_sizeof_short=0
49204 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49205 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49206 cat >>confdefs.h <<_ACEOF
49207 #define SIZEOF_SHORT $ac_cv_sizeof_short
49211 echo "$as_me:$LINENO: checking for int" >&5
49212 echo $ECHO_N "checking for int... $ECHO_C" >&6
49213 if test "${ac_cv_type_int+set}" = set; then
49214 echo $ECHO_N "(cached) $ECHO_C" >&6
49216 cat >conftest.$ac_ext <<_ACEOF
49219 cat confdefs.h >>conftest.$ac_ext
49220 cat >>conftest.$ac_ext <<_ACEOF
49221 /* end confdefs.h. */
49222 $ac_includes_default
49234 rm -f conftest.$ac_objext
49235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49236 (eval $ac_compile) 2>conftest.er1
49238 grep -v '^ *+' conftest.er1 >conftest.err
49240 cat conftest.err >&5
49241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49242 (exit $ac_status); } &&
49243 { ac_try='test -z "$ac_c_werror_flag"
49244 || test ! -s conftest.err'
49245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49246 (eval $ac_try) 2>&5
49248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49249 (exit $ac_status); }; } &&
49250 { ac_try='test -s conftest.$ac_objext'
49251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49252 (eval $ac_try) 2>&5
49254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49255 (exit $ac_status); }; }; then
49258 echo "$as_me: failed program was:" >&5
49259 sed 's/^/| /' conftest.$ac_ext >&5
49263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49265 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49266 echo "${ECHO_T}$ac_cv_type_int" >&6
49268 echo "$as_me:$LINENO: checking size of int" >&5
49269 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49270 if test "${ac_cv_sizeof_int+set}" = set; then
49271 echo $ECHO_N "(cached) $ECHO_C" >&6
49273 if test "$ac_cv_type_int" = yes; then
49274 # The cast to unsigned long works around a bug in the HP C Compiler
49275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49277 # This bug is HP SR number 8606223364.
49278 if test "$cross_compiling" = yes; then
49279 # Depending upon the size, compute the lo and hi bounds.
49280 cat >conftest.$ac_ext <<_ACEOF
49283 cat confdefs.h >>conftest.$ac_ext
49284 cat >>conftest.$ac_ext <<_ACEOF
49285 /* end confdefs.h. */
49286 $ac_includes_default
49290 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49297 rm -f conftest.$ac_objext
49298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49299 (eval $ac_compile) 2>conftest.er1
49301 grep -v '^ *+' conftest.er1 >conftest.err
49303 cat conftest.err >&5
49304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49305 (exit $ac_status); } &&
49306 { ac_try='test -z "$ac_c_werror_flag"
49307 || test ! -s conftest.err'
49308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49309 (eval $ac_try) 2>&5
49311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49312 (exit $ac_status); }; } &&
49313 { ac_try='test -s conftest.$ac_objext'
49314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49315 (eval $ac_try) 2>&5
49317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49318 (exit $ac_status); }; }; then
49321 cat >conftest.$ac_ext <<_ACEOF
49324 cat confdefs.h >>conftest.$ac_ext
49325 cat >>conftest.$ac_ext <<_ACEOF
49326 /* end confdefs.h. */
49327 $ac_includes_default
49331 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49338 rm -f conftest.$ac_objext
49339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49340 (eval $ac_compile) 2>conftest.er1
49342 grep -v '^ *+' conftest.er1 >conftest.err
49344 cat conftest.err >&5
49345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49346 (exit $ac_status); } &&
49347 { ac_try='test -z "$ac_c_werror_flag"
49348 || test ! -s conftest.err'
49349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49350 (eval $ac_try) 2>&5
49352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49353 (exit $ac_status); }; } &&
49354 { ac_try='test -s conftest.$ac_objext'
49355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49356 (eval $ac_try) 2>&5
49358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49359 (exit $ac_status); }; }; then
49360 ac_hi=$ac_mid; break
49362 echo "$as_me: failed program was:" >&5
49363 sed 's/^/| /' conftest.$ac_ext >&5
49365 ac_lo=`expr $ac_mid + 1`
49366 if test $ac_lo -le $ac_mid; then
49370 ac_mid=`expr 2 '*' $ac_mid + 1`
49372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49375 echo "$as_me: failed program was:" >&5
49376 sed 's/^/| /' conftest.$ac_ext >&5
49378 cat >conftest.$ac_ext <<_ACEOF
49381 cat confdefs.h >>conftest.$ac_ext
49382 cat >>conftest.$ac_ext <<_ACEOF
49383 /* end confdefs.h. */
49384 $ac_includes_default
49388 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49395 rm -f conftest.$ac_objext
49396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49397 (eval $ac_compile) 2>conftest.er1
49399 grep -v '^ *+' conftest.er1 >conftest.err
49401 cat conftest.err >&5
49402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49403 (exit $ac_status); } &&
49404 { ac_try='test -z "$ac_c_werror_flag"
49405 || test ! -s conftest.err'
49406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49407 (eval $ac_try) 2>&5
49409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49410 (exit $ac_status); }; } &&
49411 { ac_try='test -s conftest.$ac_objext'
49412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49413 (eval $ac_try) 2>&5
49415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49416 (exit $ac_status); }; }; then
49419 cat >conftest.$ac_ext <<_ACEOF
49422 cat confdefs.h >>conftest.$ac_ext
49423 cat >>conftest.$ac_ext <<_ACEOF
49424 /* end confdefs.h. */
49425 $ac_includes_default
49429 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49436 rm -f conftest.$ac_objext
49437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49438 (eval $ac_compile) 2>conftest.er1
49440 grep -v '^ *+' conftest.er1 >conftest.err
49442 cat conftest.err >&5
49443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49444 (exit $ac_status); } &&
49445 { ac_try='test -z "$ac_c_werror_flag"
49446 || test ! -s conftest.err'
49447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49448 (eval $ac_try) 2>&5
49450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49451 (exit $ac_status); }; } &&
49452 { ac_try='test -s conftest.$ac_objext'
49453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49454 (eval $ac_try) 2>&5
49456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49457 (exit $ac_status); }; }; then
49458 ac_lo=$ac_mid; break
49460 echo "$as_me: failed program was:" >&5
49461 sed 's/^/| /' conftest.$ac_ext >&5
49463 ac_hi=`expr '(' $ac_mid ')' - 1`
49464 if test $ac_mid -le $ac_hi; then
49468 ac_mid=`expr 2 '*' $ac_mid`
49470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49473 echo "$as_me: failed program was:" >&5
49474 sed 's/^/| /' conftest.$ac_ext >&5
49478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49481 # Binary search between lo and hi bounds.
49482 while test "x$ac_lo" != "x$ac_hi"; do
49483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49484 cat >conftest.$ac_ext <<_ACEOF
49487 cat confdefs.h >>conftest.$ac_ext
49488 cat >>conftest.$ac_ext <<_ACEOF
49489 /* end confdefs.h. */
49490 $ac_includes_default
49494 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49501 rm -f conftest.$ac_objext
49502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49503 (eval $ac_compile) 2>conftest.er1
49505 grep -v '^ *+' conftest.er1 >conftest.err
49507 cat conftest.err >&5
49508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49509 (exit $ac_status); } &&
49510 { ac_try='test -z "$ac_c_werror_flag"
49511 || test ! -s conftest.err'
49512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49513 (eval $ac_try) 2>&5
49515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49516 (exit $ac_status); }; } &&
49517 { ac_try='test -s conftest.$ac_objext'
49518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49519 (eval $ac_try) 2>&5
49521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49522 (exit $ac_status); }; }; then
49525 echo "$as_me: failed program was:" >&5
49526 sed 's/^/| /' conftest.$ac_ext >&5
49528 ac_lo=`expr '(' $ac_mid ')' + 1`
49530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49533 ?*) ac_cv_sizeof_int=$ac_lo;;
49534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49535 See \`config.log' for more details." >&5
49536 echo "$as_me: error: cannot compute sizeof (int), 77
49537 See \`config.log' for more details." >&2;}
49538 { (exit 1); exit 1; }; } ;;
49541 if test "$cross_compiling" = yes; then
49542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49543 See \`config.log' for more details." >&5
49544 echo "$as_me: error: cannot run test program while cross compiling
49545 See \`config.log' for more details." >&2;}
49546 { (exit 1); exit 1; }; }
49548 cat >conftest.$ac_ext <<_ACEOF
49551 cat confdefs.h >>conftest.$ac_ext
49552 cat >>conftest.$ac_ext <<_ACEOF
49553 /* end confdefs.h. */
49554 $ac_includes_default
49555 long longval () { return (long) (sizeof (int)); }
49556 unsigned long ulongval () { return (long) (sizeof (int)); }
49558 #include <stdlib.h>
49563 FILE *f = fopen ("conftest.val", "w");
49566 if (((long) (sizeof (int))) < 0)
49568 long i = longval ();
49569 if (i != ((long) (sizeof (int))))
49571 fprintf (f, "%ld\n", i);
49575 unsigned long i = ulongval ();
49576 if (i != ((long) (sizeof (int))))
49578 fprintf (f, "%lu\n", i);
49580 exit (ferror (f) || fclose (f) != 0);
49586 rm -f conftest$ac_exeext
49587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49588 (eval $ac_link) 2>&5
49590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49593 (eval $ac_try) 2>&5
49595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49596 (exit $ac_status); }; }; then
49597 ac_cv_sizeof_int=`cat conftest.val`
49599 echo "$as_me: program exited with status $ac_status" >&5
49600 echo "$as_me: failed program was:" >&5
49601 sed 's/^/| /' conftest.$ac_ext >&5
49603 ( exit $ac_status )
49604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49605 See \`config.log' for more details." >&5
49606 echo "$as_me: error: cannot compute sizeof (int), 77
49607 See \`config.log' for more details." >&2;}
49608 { (exit 1); exit 1; }; }
49610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49619 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49620 cat >>confdefs.h <<_ACEOF
49621 #define SIZEOF_INT $ac_cv_sizeof_int
49625 echo "$as_me:$LINENO: checking for long" >&5
49626 echo $ECHO_N "checking for long... $ECHO_C" >&6
49627 if test "${ac_cv_type_long+set}" = set; then
49628 echo $ECHO_N "(cached) $ECHO_C" >&6
49630 cat >conftest.$ac_ext <<_ACEOF
49633 cat confdefs.h >>conftest.$ac_ext
49634 cat >>conftest.$ac_ext <<_ACEOF
49635 /* end confdefs.h. */
49636 $ac_includes_default
49648 rm -f conftest.$ac_objext
49649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49650 (eval $ac_compile) 2>conftest.er1
49652 grep -v '^ *+' conftest.er1 >conftest.err
49654 cat conftest.err >&5
49655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656 (exit $ac_status); } &&
49657 { ac_try='test -z "$ac_c_werror_flag"
49658 || test ! -s conftest.err'
49659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49660 (eval $ac_try) 2>&5
49662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49663 (exit $ac_status); }; } &&
49664 { ac_try='test -s conftest.$ac_objext'
49665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49666 (eval $ac_try) 2>&5
49668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49669 (exit $ac_status); }; }; then
49670 ac_cv_type_long=yes
49672 echo "$as_me: failed program was:" >&5
49673 sed 's/^/| /' conftest.$ac_ext >&5
49677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49679 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49680 echo "${ECHO_T}$ac_cv_type_long" >&6
49682 echo "$as_me:$LINENO: checking size of long" >&5
49683 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49684 if test "${ac_cv_sizeof_long+set}" = set; then
49685 echo $ECHO_N "(cached) $ECHO_C" >&6
49687 if test "$ac_cv_type_long" = yes; then
49688 # The cast to unsigned long works around a bug in the HP C Compiler
49689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49691 # This bug is HP SR number 8606223364.
49692 if test "$cross_compiling" = yes; then
49693 # Depending upon the size, compute the lo and hi bounds.
49694 cat >conftest.$ac_ext <<_ACEOF
49697 cat confdefs.h >>conftest.$ac_ext
49698 cat >>conftest.$ac_ext <<_ACEOF
49699 /* end confdefs.h. */
49700 $ac_includes_default
49704 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49711 rm -f conftest.$ac_objext
49712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49713 (eval $ac_compile) 2>conftest.er1
49715 grep -v '^ *+' conftest.er1 >conftest.err
49717 cat conftest.err >&5
49718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49719 (exit $ac_status); } &&
49720 { ac_try='test -z "$ac_c_werror_flag"
49721 || test ! -s conftest.err'
49722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49723 (eval $ac_try) 2>&5
49725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49726 (exit $ac_status); }; } &&
49727 { ac_try='test -s conftest.$ac_objext'
49728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49729 (eval $ac_try) 2>&5
49731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49732 (exit $ac_status); }; }; then
49735 cat >conftest.$ac_ext <<_ACEOF
49738 cat confdefs.h >>conftest.$ac_ext
49739 cat >>conftest.$ac_ext <<_ACEOF
49740 /* end confdefs.h. */
49741 $ac_includes_default
49745 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49752 rm -f conftest.$ac_objext
49753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49754 (eval $ac_compile) 2>conftest.er1
49756 grep -v '^ *+' conftest.er1 >conftest.err
49758 cat conftest.err >&5
49759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49760 (exit $ac_status); } &&
49761 { ac_try='test -z "$ac_c_werror_flag"
49762 || test ! -s conftest.err'
49763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49764 (eval $ac_try) 2>&5
49766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49767 (exit $ac_status); }; } &&
49768 { ac_try='test -s conftest.$ac_objext'
49769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49770 (eval $ac_try) 2>&5
49772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49773 (exit $ac_status); }; }; then
49774 ac_hi=$ac_mid; break
49776 echo "$as_me: failed program was:" >&5
49777 sed 's/^/| /' conftest.$ac_ext >&5
49779 ac_lo=`expr $ac_mid + 1`
49780 if test $ac_lo -le $ac_mid; then
49784 ac_mid=`expr 2 '*' $ac_mid + 1`
49786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49789 echo "$as_me: failed program was:" >&5
49790 sed 's/^/| /' conftest.$ac_ext >&5
49792 cat >conftest.$ac_ext <<_ACEOF
49795 cat confdefs.h >>conftest.$ac_ext
49796 cat >>conftest.$ac_ext <<_ACEOF
49797 /* end confdefs.h. */
49798 $ac_includes_default
49802 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49809 rm -f conftest.$ac_objext
49810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49811 (eval $ac_compile) 2>conftest.er1
49813 grep -v '^ *+' conftest.er1 >conftest.err
49815 cat conftest.err >&5
49816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49817 (exit $ac_status); } &&
49818 { ac_try='test -z "$ac_c_werror_flag"
49819 || test ! -s conftest.err'
49820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49821 (eval $ac_try) 2>&5
49823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49824 (exit $ac_status); }; } &&
49825 { ac_try='test -s conftest.$ac_objext'
49826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49827 (eval $ac_try) 2>&5
49829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49830 (exit $ac_status); }; }; then
49833 cat >conftest.$ac_ext <<_ACEOF
49836 cat confdefs.h >>conftest.$ac_ext
49837 cat >>conftest.$ac_ext <<_ACEOF
49838 /* end confdefs.h. */
49839 $ac_includes_default
49843 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49850 rm -f conftest.$ac_objext
49851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49852 (eval $ac_compile) 2>conftest.er1
49854 grep -v '^ *+' conftest.er1 >conftest.err
49856 cat conftest.err >&5
49857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49858 (exit $ac_status); } &&
49859 { ac_try='test -z "$ac_c_werror_flag"
49860 || test ! -s conftest.err'
49861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49862 (eval $ac_try) 2>&5
49864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49865 (exit $ac_status); }; } &&
49866 { ac_try='test -s conftest.$ac_objext'
49867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49868 (eval $ac_try) 2>&5
49870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49871 (exit $ac_status); }; }; then
49872 ac_lo=$ac_mid; break
49874 echo "$as_me: failed program was:" >&5
49875 sed 's/^/| /' conftest.$ac_ext >&5
49877 ac_hi=`expr '(' $ac_mid ')' - 1`
49878 if test $ac_mid -le $ac_hi; then
49882 ac_mid=`expr 2 '*' $ac_mid`
49884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49887 echo "$as_me: failed program was:" >&5
49888 sed 's/^/| /' conftest.$ac_ext >&5
49892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49895 # Binary search between lo and hi bounds.
49896 while test "x$ac_lo" != "x$ac_hi"; do
49897 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49898 cat >conftest.$ac_ext <<_ACEOF
49901 cat confdefs.h >>conftest.$ac_ext
49902 cat >>conftest.$ac_ext <<_ACEOF
49903 /* end confdefs.h. */
49904 $ac_includes_default
49908 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49915 rm -f conftest.$ac_objext
49916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49917 (eval $ac_compile) 2>conftest.er1
49919 grep -v '^ *+' conftest.er1 >conftest.err
49921 cat conftest.err >&5
49922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49923 (exit $ac_status); } &&
49924 { ac_try='test -z "$ac_c_werror_flag"
49925 || test ! -s conftest.err'
49926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49927 (eval $ac_try) 2>&5
49929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49930 (exit $ac_status); }; } &&
49931 { ac_try='test -s conftest.$ac_objext'
49932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49933 (eval $ac_try) 2>&5
49935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49936 (exit $ac_status); }; }; then
49939 echo "$as_me: failed program was:" >&5
49940 sed 's/^/| /' conftest.$ac_ext >&5
49942 ac_lo=`expr '(' $ac_mid ')' + 1`
49944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49947 ?*) ac_cv_sizeof_long=$ac_lo;;
49948 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49949 See \`config.log' for more details." >&5
49950 echo "$as_me: error: cannot compute sizeof (long), 77
49951 See \`config.log' for more details." >&2;}
49952 { (exit 1); exit 1; }; } ;;
49955 if test "$cross_compiling" = yes; then
49956 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49957 See \`config.log' for more details." >&5
49958 echo "$as_me: error: cannot run test program while cross compiling
49959 See \`config.log' for more details." >&2;}
49960 { (exit 1); exit 1; }; }
49962 cat >conftest.$ac_ext <<_ACEOF
49965 cat confdefs.h >>conftest.$ac_ext
49966 cat >>conftest.$ac_ext <<_ACEOF
49967 /* end confdefs.h. */
49968 $ac_includes_default
49969 long longval () { return (long) (sizeof (long)); }
49970 unsigned long ulongval () { return (long) (sizeof (long)); }
49972 #include <stdlib.h>
49977 FILE *f = fopen ("conftest.val", "w");
49980 if (((long) (sizeof (long))) < 0)
49982 long i = longval ();
49983 if (i != ((long) (sizeof (long))))
49985 fprintf (f, "%ld\n", i);
49989 unsigned long i = ulongval ();
49990 if (i != ((long) (sizeof (long))))
49992 fprintf (f, "%lu\n", i);
49994 exit (ferror (f) || fclose (f) != 0);
50000 rm -f conftest$ac_exeext
50001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50002 (eval $ac_link) 2>&5
50004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50007 (eval $ac_try) 2>&5
50009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50010 (exit $ac_status); }; }; then
50011 ac_cv_sizeof_long=`cat conftest.val`
50013 echo "$as_me: program exited with status $ac_status" >&5
50014 echo "$as_me: failed program was:" >&5
50015 sed 's/^/| /' conftest.$ac_ext >&5
50017 ( exit $ac_status )
50018 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50019 See \`config.log' for more details." >&5
50020 echo "$as_me: error: cannot compute sizeof (long), 77
50021 See \`config.log' for more details." >&2;}
50022 { (exit 1); exit 1; }; }
50024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50029 ac_cv_sizeof_long=0
50032 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50033 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50034 cat >>confdefs.h <<_ACEOF
50035 #define SIZEOF_LONG $ac_cv_sizeof_long
50039 echo "$as_me:$LINENO: checking for wchar_t" >&5
50040 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50041 if test "${ac_cv_type_wchar_t+set}" = set; then
50042 echo $ECHO_N "(cached) $ECHO_C" >&6
50044 cat >conftest.$ac_ext <<_ACEOF
50047 cat confdefs.h >>conftest.$ac_ext
50048 cat >>conftest.$ac_ext <<_ACEOF
50049 /* end confdefs.h. */
50050 $ac_includes_default
50056 if (sizeof (wchar_t))
50062 rm -f conftest.$ac_objext
50063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50064 (eval $ac_compile) 2>conftest.er1
50066 grep -v '^ *+' conftest.er1 >conftest.err
50068 cat conftest.err >&5
50069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50070 (exit $ac_status); } &&
50071 { ac_try='test -z "$ac_c_werror_flag"
50072 || test ! -s conftest.err'
50073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50074 (eval $ac_try) 2>&5
50076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50077 (exit $ac_status); }; } &&
50078 { ac_try='test -s conftest.$ac_objext'
50079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50080 (eval $ac_try) 2>&5
50082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50083 (exit $ac_status); }; }; then
50084 ac_cv_type_wchar_t=yes
50086 echo "$as_me: failed program was:" >&5
50087 sed 's/^/| /' conftest.$ac_ext >&5
50089 ac_cv_type_wchar_t=no
50091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50093 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50094 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50096 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50097 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50098 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50099 echo $ECHO_N "(cached) $ECHO_C" >&6
50101 if test "$ac_cv_type_wchar_t" = yes; then
50102 # The cast to unsigned long works around a bug in the HP C Compiler
50103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50105 # This bug is HP SR number 8606223364.
50106 if test "$cross_compiling" = yes; then
50107 # Depending upon the size, compute the lo and hi bounds.
50108 cat >conftest.$ac_ext <<_ACEOF
50111 cat confdefs.h >>conftest.$ac_ext
50112 cat >>conftest.$ac_ext <<_ACEOF
50113 /* end confdefs.h. */
50114 $ac_includes_default
50118 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50125 rm -f conftest.$ac_objext
50126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50127 (eval $ac_compile) 2>conftest.er1
50129 grep -v '^ *+' conftest.er1 >conftest.err
50131 cat conftest.err >&5
50132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50133 (exit $ac_status); } &&
50134 { ac_try='test -z "$ac_c_werror_flag"
50135 || test ! -s conftest.err'
50136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50137 (eval $ac_try) 2>&5
50139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50140 (exit $ac_status); }; } &&
50141 { ac_try='test -s conftest.$ac_objext'
50142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50143 (eval $ac_try) 2>&5
50145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50146 (exit $ac_status); }; }; then
50149 cat >conftest.$ac_ext <<_ACEOF
50152 cat confdefs.h >>conftest.$ac_ext
50153 cat >>conftest.$ac_ext <<_ACEOF
50154 /* end confdefs.h. */
50155 $ac_includes_default
50159 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50166 rm -f conftest.$ac_objext
50167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50168 (eval $ac_compile) 2>conftest.er1
50170 grep -v '^ *+' conftest.er1 >conftest.err
50172 cat conftest.err >&5
50173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50174 (exit $ac_status); } &&
50175 { ac_try='test -z "$ac_c_werror_flag"
50176 || test ! -s conftest.err'
50177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50178 (eval $ac_try) 2>&5
50180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50181 (exit $ac_status); }; } &&
50182 { ac_try='test -s conftest.$ac_objext'
50183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50184 (eval $ac_try) 2>&5
50186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50187 (exit $ac_status); }; }; then
50188 ac_hi=$ac_mid; break
50190 echo "$as_me: failed program was:" >&5
50191 sed 's/^/| /' conftest.$ac_ext >&5
50193 ac_lo=`expr $ac_mid + 1`
50194 if test $ac_lo -le $ac_mid; then
50198 ac_mid=`expr 2 '*' $ac_mid + 1`
50200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50203 echo "$as_me: failed program was:" >&5
50204 sed 's/^/| /' conftest.$ac_ext >&5
50206 cat >conftest.$ac_ext <<_ACEOF
50209 cat confdefs.h >>conftest.$ac_ext
50210 cat >>conftest.$ac_ext <<_ACEOF
50211 /* end confdefs.h. */
50212 $ac_includes_default
50216 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50223 rm -f conftest.$ac_objext
50224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50225 (eval $ac_compile) 2>conftest.er1
50227 grep -v '^ *+' conftest.er1 >conftest.err
50229 cat conftest.err >&5
50230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50231 (exit $ac_status); } &&
50232 { ac_try='test -z "$ac_c_werror_flag"
50233 || test ! -s conftest.err'
50234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50235 (eval $ac_try) 2>&5
50237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50238 (exit $ac_status); }; } &&
50239 { ac_try='test -s conftest.$ac_objext'
50240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50241 (eval $ac_try) 2>&5
50243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50244 (exit $ac_status); }; }; then
50247 cat >conftest.$ac_ext <<_ACEOF
50250 cat confdefs.h >>conftest.$ac_ext
50251 cat >>conftest.$ac_ext <<_ACEOF
50252 /* end confdefs.h. */
50253 $ac_includes_default
50257 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50264 rm -f conftest.$ac_objext
50265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50266 (eval $ac_compile) 2>conftest.er1
50268 grep -v '^ *+' conftest.er1 >conftest.err
50270 cat conftest.err >&5
50271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50272 (exit $ac_status); } &&
50273 { ac_try='test -z "$ac_c_werror_flag"
50274 || test ! -s conftest.err'
50275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50276 (eval $ac_try) 2>&5
50278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50279 (exit $ac_status); }; } &&
50280 { ac_try='test -s conftest.$ac_objext'
50281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50282 (eval $ac_try) 2>&5
50284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50285 (exit $ac_status); }; }; then
50286 ac_lo=$ac_mid; break
50288 echo "$as_me: failed program was:" >&5
50289 sed 's/^/| /' conftest.$ac_ext >&5
50291 ac_hi=`expr '(' $ac_mid ')' - 1`
50292 if test $ac_mid -le $ac_hi; then
50296 ac_mid=`expr 2 '*' $ac_mid`
50298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50301 echo "$as_me: failed program was:" >&5
50302 sed 's/^/| /' conftest.$ac_ext >&5
50306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50309 # Binary search between lo and hi bounds.
50310 while test "x$ac_lo" != "x$ac_hi"; do
50311 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50312 cat >conftest.$ac_ext <<_ACEOF
50315 cat confdefs.h >>conftest.$ac_ext
50316 cat >>conftest.$ac_ext <<_ACEOF
50317 /* end confdefs.h. */
50318 $ac_includes_default
50322 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50329 rm -f conftest.$ac_objext
50330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50331 (eval $ac_compile) 2>conftest.er1
50333 grep -v '^ *+' conftest.er1 >conftest.err
50335 cat conftest.err >&5
50336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50337 (exit $ac_status); } &&
50338 { ac_try='test -z "$ac_c_werror_flag"
50339 || test ! -s conftest.err'
50340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50341 (eval $ac_try) 2>&5
50343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50344 (exit $ac_status); }; } &&
50345 { ac_try='test -s conftest.$ac_objext'
50346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50347 (eval $ac_try) 2>&5
50349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50350 (exit $ac_status); }; }; then
50353 echo "$as_me: failed program was:" >&5
50354 sed 's/^/| /' conftest.$ac_ext >&5
50356 ac_lo=`expr '(' $ac_mid ')' + 1`
50358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50361 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50362 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50363 See \`config.log' for more details." >&5
50364 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50365 See \`config.log' for more details." >&2;}
50366 { (exit 1); exit 1; }; } ;;
50369 if test "$cross_compiling" = yes; then
50370 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50371 See \`config.log' for more details." >&5
50372 echo "$as_me: error: cannot run test program while cross compiling
50373 See \`config.log' for more details." >&2;}
50374 { (exit 1); exit 1; }; }
50376 cat >conftest.$ac_ext <<_ACEOF
50379 cat confdefs.h >>conftest.$ac_ext
50380 cat >>conftest.$ac_ext <<_ACEOF
50381 /* end confdefs.h. */
50382 $ac_includes_default
50383 long longval () { return (long) (sizeof (wchar_t)); }
50384 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50386 #include <stdlib.h>
50391 FILE *f = fopen ("conftest.val", "w");
50394 if (((long) (sizeof (wchar_t))) < 0)
50396 long i = longval ();
50397 if (i != ((long) (sizeof (wchar_t))))
50399 fprintf (f, "%ld\n", i);
50403 unsigned long i = ulongval ();
50404 if (i != ((long) (sizeof (wchar_t))))
50406 fprintf (f, "%lu\n", i);
50408 exit (ferror (f) || fclose (f) != 0);
50414 rm -f conftest$ac_exeext
50415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50416 (eval $ac_link) 2>&5
50418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50421 (eval $ac_try) 2>&5
50423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50424 (exit $ac_status); }; }; then
50425 ac_cv_sizeof_wchar_t=`cat conftest.val`
50427 echo "$as_me: program exited with status $ac_status" >&5
50428 echo "$as_me: failed program was:" >&5
50429 sed 's/^/| /' conftest.$ac_ext >&5
50431 ( exit $ac_status )
50432 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50433 See \`config.log' for more details." >&5
50434 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50435 See \`config.log' for more details." >&2;}
50436 { (exit 1); exit 1; }; }
50438 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50443 ac_cv_sizeof_wchar_t=0
50446 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50447 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50448 cat >>confdefs.h <<_ACEOF
50449 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50454 if test "$ac_cv_sizeof_int" -lt 4 ; then
50455 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50456 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50459 cat >>confdefs.h <<\_ACEOF
50460 #define LBER_INT_T long
50465 cat >>confdefs.h <<\_ACEOF
50466 #define LBER_INT_T int
50472 cat >>confdefs.h <<\_ACEOF
50473 #define LBER_LEN_T long
50477 cat >>confdefs.h <<\_ACEOF
50478 #define LBER_SOCKET_T int
50482 cat >>confdefs.h <<\_ACEOF
50483 #define LBER_TAG_T long
50487 echo "$as_me:$LINENO: checking for working memcmp" >&5
50488 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50489 if test "${ac_cv_func_memcmp_working+set}" = set; then
50490 echo $ECHO_N "(cached) $ECHO_C" >&6
50492 if test "$cross_compiling" = yes; then
50493 ac_cv_func_memcmp_working=no
50495 cat >conftest.$ac_ext <<_ACEOF
50498 cat confdefs.h >>conftest.$ac_ext
50499 cat >>conftest.$ac_ext <<_ACEOF
50500 /* end confdefs.h. */
50501 $ac_includes_default
50506 /* Some versions of memcmp are not 8-bit clean. */
50507 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50508 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50511 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50512 or more and with at least one buffer not starting on a 4-byte boundary.
50513 William Lewis provided this test program. */
50518 for (i = 0; i < 4; i++)
50522 strcpy (a, "--------01111111");
50523 strcpy (b, "--------10000000");
50524 if (memcmp (a, b, 16) >= 0)
50534 rm -f conftest$ac_exeext
50535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50536 (eval $ac_link) 2>&5
50538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50541 (eval $ac_try) 2>&5
50543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50544 (exit $ac_status); }; }; then
50545 ac_cv_func_memcmp_working=yes
50547 echo "$as_me: program exited with status $ac_status" >&5
50548 echo "$as_me: failed program was:" >&5
50549 sed 's/^/| /' conftest.$ac_ext >&5
50551 ( exit $ac_status )
50552 ac_cv_func_memcmp_working=no
50554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50557 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50558 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50559 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50560 "memcmp.$ac_objext" | \
50561 *" memcmp.$ac_objext" | \
50562 "memcmp.$ac_objext "* | \
50563 *" memcmp.$ac_objext "* ) ;;
50564 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50569 if test $ac_cv_func_memcmp_working = no ; then
50571 cat >>confdefs.h <<\_ACEOF
50572 #define NEED_MEMCMP_REPLACEMENT 1
50578 for ac_func in strftime
50580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50581 echo "$as_me:$LINENO: checking for $ac_func" >&5
50582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50583 if eval "test \"\${$as_ac_var+set}\" = set"; then
50584 echo $ECHO_N "(cached) $ECHO_C" >&6
50586 cat >conftest.$ac_ext <<_ACEOF
50589 cat confdefs.h >>conftest.$ac_ext
50590 cat >>conftest.$ac_ext <<_ACEOF
50591 /* end confdefs.h. */
50592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50594 #define $ac_func innocuous_$ac_func
50596 /* System header to define __stub macros and hopefully few prototypes,
50597 which can conflict with char $ac_func (); below.
50598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50599 <limits.h> exists even on freestanding compilers. */
50602 # include <limits.h>
50604 # include <assert.h>
50609 /* Override any gcc2 internal prototype to avoid an error. */
50614 /* We use char because int might match the return type of a gcc2
50615 builtin and then its argument prototype would still apply. */
50617 /* The GNU C library defines this for functions which it implements
50618 to always fail with ENOSYS. Some functions are actually named
50619 something starting with __ and the normal name is an alias. */
50620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50623 char (*f) () = $ac_func;
50632 return f != $ac_func;
50637 rm -f conftest.$ac_objext conftest$ac_exeext
50638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50639 (eval $ac_link) 2>conftest.er1
50641 grep -v '^ *+' conftest.er1 >conftest.err
50643 cat conftest.err >&5
50644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50645 (exit $ac_status); } &&
50646 { ac_try='test -z "$ac_c_werror_flag"
50647 || test ! -s conftest.err'
50648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50649 (eval $ac_try) 2>&5
50651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50652 (exit $ac_status); }; } &&
50653 { ac_try='test -s conftest$ac_exeext'
50654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50655 (eval $ac_try) 2>&5
50657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50658 (exit $ac_status); }; }; then
50659 eval "$as_ac_var=yes"
50661 echo "$as_me: failed program was:" >&5
50662 sed 's/^/| /' conftest.$ac_ext >&5
50664 eval "$as_ac_var=no"
50666 rm -f conftest.err conftest.$ac_objext \
50667 conftest$ac_exeext conftest.$ac_ext
50669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50671 if test `eval echo '${'$as_ac_var'}'` = yes; then
50672 cat >>confdefs.h <<_ACEOF
50673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50677 # strftime is in -lintl on SCO UNIX.
50678 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50679 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50680 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50681 echo $ECHO_N "(cached) $ECHO_C" >&6
50683 ac_check_lib_save_LIBS=$LIBS
50684 LIBS="-lintl $LIBS"
50685 cat >conftest.$ac_ext <<_ACEOF
50688 cat confdefs.h >>conftest.$ac_ext
50689 cat >>conftest.$ac_ext <<_ACEOF
50690 /* end confdefs.h. */
50692 /* Override any gcc2 internal prototype to avoid an error. */
50696 /* We use char because int might match the return type of a gcc2
50697 builtin and then its argument prototype would still apply. */
50707 rm -f conftest.$ac_objext conftest$ac_exeext
50708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50709 (eval $ac_link) 2>conftest.er1
50711 grep -v '^ *+' conftest.er1 >conftest.err
50713 cat conftest.err >&5
50714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50715 (exit $ac_status); } &&
50716 { ac_try='test -z "$ac_c_werror_flag"
50717 || test ! -s conftest.err'
50718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50719 (eval $ac_try) 2>&5
50721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50722 (exit $ac_status); }; } &&
50723 { ac_try='test -s conftest$ac_exeext'
50724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50725 (eval $ac_try) 2>&5
50727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50728 (exit $ac_status); }; }; then
50729 ac_cv_lib_intl_strftime=yes
50731 echo "$as_me: failed program was:" >&5
50732 sed 's/^/| /' conftest.$ac_ext >&5
50734 ac_cv_lib_intl_strftime=no
50736 rm -f conftest.err conftest.$ac_objext \
50737 conftest$ac_exeext conftest.$ac_ext
50738 LIBS=$ac_check_lib_save_LIBS
50740 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50741 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50742 if test $ac_cv_lib_intl_strftime = yes; then
50743 cat >>confdefs.h <<\_ACEOF
50744 #define HAVE_STRFTIME 1
50747 LIBS="-lintl $LIBS"
50754 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50755 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50756 if test "${ol_cv_func_inet_aton+set}" = set; then
50757 echo $ECHO_N "(cached) $ECHO_C" >&6
50759 cat >conftest.$ac_ext <<_ACEOF
50762 cat confdefs.h >>conftest.$ac_ext
50763 cat >>conftest.$ac_ext <<_ACEOF
50764 /* end confdefs.h. */
50766 #ifdef HAVE_SYS_TYPES_H
50767 # include <sys/types.h>
50769 #ifdef HAVE_SYS_SOCKET_H
50770 # include <sys/socket.h>
50771 # ifdef HAVE_SYS_SELECT_H
50772 # include <sys/select.h>
50774 # include <netinet/in.h>
50775 # ifdef HAVE_ARPA_INET_H
50776 # include <arpa/inet.h>
50784 int rc = inet_aton( "255.255.255.255", &in );
50789 rm -f conftest.$ac_objext conftest$ac_exeext
50790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50791 (eval $ac_link) 2>conftest.er1
50793 grep -v '^ *+' conftest.er1 >conftest.err
50795 cat conftest.err >&5
50796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50797 (exit $ac_status); } &&
50798 { ac_try='test -z "$ac_c_werror_flag"
50799 || test ! -s conftest.err'
50800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50801 (eval $ac_try) 2>&5
50803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50804 (exit $ac_status); }; } &&
50805 { ac_try='test -s conftest$ac_exeext'
50806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50807 (eval $ac_try) 2>&5
50809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50810 (exit $ac_status); }; }; then
50811 ol_cv_func_inet_aton=yes
50813 echo "$as_me: failed program was:" >&5
50814 sed 's/^/| /' conftest.$ac_ext >&5
50816 ol_cv_func_inet_aton=no
50818 rm -f conftest.err conftest.$ac_objext \
50819 conftest$ac_exeext conftest.$ac_ext
50821 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50822 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50823 if test $ol_cv_func_inet_aton != no; then
50825 cat >>confdefs.h <<\_ACEOF
50826 #define HAVE_INET_ATON 1
50832 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50833 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50834 if test "${ac_cv_func__spawnlp+set}" = set; then
50835 echo $ECHO_N "(cached) $ECHO_C" >&6
50837 cat >conftest.$ac_ext <<_ACEOF
50840 cat confdefs.h >>conftest.$ac_ext
50841 cat >>conftest.$ac_ext <<_ACEOF
50842 /* end confdefs.h. */
50843 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50845 #define _spawnlp innocuous__spawnlp
50847 /* System header to define __stub macros and hopefully few prototypes,
50848 which can conflict with char _spawnlp (); below.
50849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50850 <limits.h> exists even on freestanding compilers. */
50853 # include <limits.h>
50855 # include <assert.h>
50860 /* Override any gcc2 internal prototype to avoid an error. */
50865 /* We use char because int might match the return type of a gcc2
50866 builtin and then its argument prototype would still apply. */
50868 /* The GNU C library defines this for functions which it implements
50869 to always fail with ENOSYS. Some functions are actually named
50870 something starting with __ and the normal name is an alias. */
50871 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50874 char (*f) () = _spawnlp;
50883 return f != _spawnlp;
50888 rm -f conftest.$ac_objext conftest$ac_exeext
50889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50890 (eval $ac_link) 2>conftest.er1
50892 grep -v '^ *+' conftest.er1 >conftest.err
50894 cat conftest.err >&5
50895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50896 (exit $ac_status); } &&
50897 { ac_try='test -z "$ac_c_werror_flag"
50898 || test ! -s conftest.err'
50899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50900 (eval $ac_try) 2>&5
50902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50903 (exit $ac_status); }; } &&
50904 { ac_try='test -s conftest$ac_exeext'
50905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50906 (eval $ac_try) 2>&5
50908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50909 (exit $ac_status); }; }; then
50910 ac_cv_func__spawnlp=yes
50912 echo "$as_me: failed program was:" >&5
50913 sed 's/^/| /' conftest.$ac_ext >&5
50915 ac_cv_func__spawnlp=no
50917 rm -f conftest.err conftest.$ac_objext \
50918 conftest$ac_exeext conftest.$ac_ext
50920 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
50921 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
50922 if test $ac_cv_func__spawnlp = yes; then
50924 cat >>confdefs.h <<\_ACEOF
50925 #define HAVE_SPAWNLP 1
50931 echo "$as_me:$LINENO: checking for _snprintf" >&5
50932 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
50933 if test "${ac_cv_func__snprintf+set}" = set; then
50934 echo $ECHO_N "(cached) $ECHO_C" >&6
50936 cat >conftest.$ac_ext <<_ACEOF
50939 cat confdefs.h >>conftest.$ac_ext
50940 cat >>conftest.$ac_ext <<_ACEOF
50941 /* end confdefs.h. */
50942 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
50943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50944 #define _snprintf innocuous__snprintf
50946 /* System header to define __stub macros and hopefully few prototypes,
50947 which can conflict with char _snprintf (); below.
50948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50949 <limits.h> exists even on freestanding compilers. */
50952 # include <limits.h>
50954 # include <assert.h>
50959 /* Override any gcc2 internal prototype to avoid an error. */
50964 /* We use char because int might match the return type of a gcc2
50965 builtin and then its argument prototype would still apply. */
50967 /* The GNU C library defines this for functions which it implements
50968 to always fail with ENOSYS. Some functions are actually named
50969 something starting with __ and the normal name is an alias. */
50970 #if defined (__stub__snprintf) || defined (__stub____snprintf)
50973 char (*f) () = _snprintf;
50982 return f != _snprintf;
50987 rm -f conftest.$ac_objext conftest$ac_exeext
50988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50989 (eval $ac_link) 2>conftest.er1
50991 grep -v '^ *+' conftest.er1 >conftest.err
50993 cat conftest.err >&5
50994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50995 (exit $ac_status); } &&
50996 { ac_try='test -z "$ac_c_werror_flag"
50997 || test ! -s conftest.err'
50998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50999 (eval $ac_try) 2>&5
51001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51002 (exit $ac_status); }; } &&
51003 { ac_try='test -s conftest$ac_exeext'
51004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51005 (eval $ac_try) 2>&5
51007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51008 (exit $ac_status); }; }; then
51009 ac_cv_func__snprintf=yes
51011 echo "$as_me: failed program was:" >&5
51012 sed 's/^/| /' conftest.$ac_ext >&5
51014 ac_cv_func__snprintf=no
51016 rm -f conftest.err conftest.$ac_objext \
51017 conftest$ac_exeext conftest.$ac_ext
51019 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51020 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51021 if test $ac_cv_func__snprintf = yes; then
51022 ac_cv_func_snprintf=yes
51024 cat >>confdefs.h <<\_ACEOF
51025 #define snprintf _snprintf
51032 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51033 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51034 if test "${ac_cv_func__vsnprintf+set}" = set; then
51035 echo $ECHO_N "(cached) $ECHO_C" >&6
51037 cat >conftest.$ac_ext <<_ACEOF
51040 cat confdefs.h >>conftest.$ac_ext
51041 cat >>conftest.$ac_ext <<_ACEOF
51042 /* end confdefs.h. */
51043 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51045 #define _vsnprintf innocuous__vsnprintf
51047 /* System header to define __stub macros and hopefully few prototypes,
51048 which can conflict with char _vsnprintf (); below.
51049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51050 <limits.h> exists even on freestanding compilers. */
51053 # include <limits.h>
51055 # include <assert.h>
51060 /* Override any gcc2 internal prototype to avoid an error. */
51065 /* We use char because int might match the return type of a gcc2
51066 builtin and then its argument prototype would still apply. */
51067 char _vsnprintf ();
51068 /* The GNU C library defines this for functions which it implements
51069 to always fail with ENOSYS. Some functions are actually named
51070 something starting with __ and the normal name is an alias. */
51071 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51074 char (*f) () = _vsnprintf;
51083 return f != _vsnprintf;
51088 rm -f conftest.$ac_objext conftest$ac_exeext
51089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51090 (eval $ac_link) 2>conftest.er1
51092 grep -v '^ *+' conftest.er1 >conftest.err
51094 cat conftest.err >&5
51095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51096 (exit $ac_status); } &&
51097 { ac_try='test -z "$ac_c_werror_flag"
51098 || test ! -s conftest.err'
51099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51100 (eval $ac_try) 2>&5
51102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51103 (exit $ac_status); }; } &&
51104 { ac_try='test -s conftest$ac_exeext'
51105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51106 (eval $ac_try) 2>&5
51108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51109 (exit $ac_status); }; }; then
51110 ac_cv_func__vsnprintf=yes
51112 echo "$as_me: failed program was:" >&5
51113 sed 's/^/| /' conftest.$ac_ext >&5
51115 ac_cv_func__vsnprintf=no
51117 rm -f conftest.err conftest.$ac_objext \
51118 conftest$ac_exeext conftest.$ac_ext
51120 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51121 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51122 if test $ac_cv_func__vsnprintf = yes; then
51123 ac_cv_func_vsnprintf=yes
51125 cat >>confdefs.h <<\_ACEOF
51126 #define vsnprintf _vsnprintf
51134 for ac_func in vprintf
51136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51137 echo "$as_me:$LINENO: checking for $ac_func" >&5
51138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51139 if eval "test \"\${$as_ac_var+set}\" = set"; then
51140 echo $ECHO_N "(cached) $ECHO_C" >&6
51142 cat >conftest.$ac_ext <<_ACEOF
51145 cat confdefs.h >>conftest.$ac_ext
51146 cat >>conftest.$ac_ext <<_ACEOF
51147 /* end confdefs.h. */
51148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51150 #define $ac_func innocuous_$ac_func
51152 /* System header to define __stub macros and hopefully few prototypes,
51153 which can conflict with char $ac_func (); below.
51154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51155 <limits.h> exists even on freestanding compilers. */
51158 # include <limits.h>
51160 # include <assert.h>
51165 /* Override any gcc2 internal prototype to avoid an error. */
51170 /* We use char because int might match the return type of a gcc2
51171 builtin and then its argument prototype would still apply. */
51173 /* The GNU C library defines this for functions which it implements
51174 to always fail with ENOSYS. Some functions are actually named
51175 something starting with __ and the normal name is an alias. */
51176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51179 char (*f) () = $ac_func;
51188 return f != $ac_func;
51193 rm -f conftest.$ac_objext conftest$ac_exeext
51194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51195 (eval $ac_link) 2>conftest.er1
51197 grep -v '^ *+' conftest.er1 >conftest.err
51199 cat conftest.err >&5
51200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51201 (exit $ac_status); } &&
51202 { ac_try='test -z "$ac_c_werror_flag"
51203 || test ! -s conftest.err'
51204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51205 (eval $ac_try) 2>&5
51207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51208 (exit $ac_status); }; } &&
51209 { ac_try='test -s conftest$ac_exeext'
51210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51211 (eval $ac_try) 2>&5
51213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51214 (exit $ac_status); }; }; then
51215 eval "$as_ac_var=yes"
51217 echo "$as_me: failed program was:" >&5
51218 sed 's/^/| /' conftest.$ac_ext >&5
51220 eval "$as_ac_var=no"
51222 rm -f conftest.err conftest.$ac_objext \
51223 conftest$ac_exeext conftest.$ac_ext
51225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51227 if test `eval echo '${'$as_ac_var'}'` = yes; then
51228 cat >>confdefs.h <<_ACEOF
51229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51232 echo "$as_me:$LINENO: checking for _doprnt" >&5
51233 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51234 if test "${ac_cv_func__doprnt+set}" = set; then
51235 echo $ECHO_N "(cached) $ECHO_C" >&6
51237 cat >conftest.$ac_ext <<_ACEOF
51240 cat confdefs.h >>conftest.$ac_ext
51241 cat >>conftest.$ac_ext <<_ACEOF
51242 /* end confdefs.h. */
51243 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51245 #define _doprnt innocuous__doprnt
51247 /* System header to define __stub macros and hopefully few prototypes,
51248 which can conflict with char _doprnt (); below.
51249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51250 <limits.h> exists even on freestanding compilers. */
51253 # include <limits.h>
51255 # include <assert.h>
51260 /* Override any gcc2 internal prototype to avoid an error. */
51265 /* We use char because int might match the return type of a gcc2
51266 builtin and then its argument prototype would still apply. */
51268 /* The GNU C library defines this for functions which it implements
51269 to always fail with ENOSYS. Some functions are actually named
51270 something starting with __ and the normal name is an alias. */
51271 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51274 char (*f) () = _doprnt;
51283 return f != _doprnt;
51288 rm -f conftest.$ac_objext conftest$ac_exeext
51289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51290 (eval $ac_link) 2>conftest.er1
51292 grep -v '^ *+' conftest.er1 >conftest.err
51294 cat conftest.err >&5
51295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51296 (exit $ac_status); } &&
51297 { ac_try='test -z "$ac_c_werror_flag"
51298 || test ! -s conftest.err'
51299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51300 (eval $ac_try) 2>&5
51302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51303 (exit $ac_status); }; } &&
51304 { ac_try='test -s conftest$ac_exeext'
51305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51306 (eval $ac_try) 2>&5
51308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51309 (exit $ac_status); }; }; then
51310 ac_cv_func__doprnt=yes
51312 echo "$as_me: failed program was:" >&5
51313 sed 's/^/| /' conftest.$ac_ext >&5
51315 ac_cv_func__doprnt=no
51317 rm -f conftest.err conftest.$ac_objext \
51318 conftest$ac_exeext conftest.$ac_ext
51320 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51321 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51322 if test $ac_cv_func__doprnt = yes; then
51324 cat >>confdefs.h <<\_ACEOF
51325 #define HAVE_DOPRNT 1
51335 if test $ac_cv_func_vprintf = yes ; then
51338 for ac_func in snprintf vsnprintf
51340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51341 echo "$as_me:$LINENO: checking for $ac_func" >&5
51342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51343 if eval "test \"\${$as_ac_var+set}\" = set"; then
51344 echo $ECHO_N "(cached) $ECHO_C" >&6
51346 cat >conftest.$ac_ext <<_ACEOF
51349 cat confdefs.h >>conftest.$ac_ext
51350 cat >>conftest.$ac_ext <<_ACEOF
51351 /* end confdefs.h. */
51352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51354 #define $ac_func innocuous_$ac_func
51356 /* System header to define __stub macros and hopefully few prototypes,
51357 which can conflict with char $ac_func (); below.
51358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51359 <limits.h> exists even on freestanding compilers. */
51362 # include <limits.h>
51364 # include <assert.h>
51369 /* Override any gcc2 internal prototype to avoid an error. */
51374 /* We use char because int might match the return type of a gcc2
51375 builtin and then its argument prototype would still apply. */
51377 /* The GNU C library defines this for functions which it implements
51378 to always fail with ENOSYS. Some functions are actually named
51379 something starting with __ and the normal name is an alias. */
51380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51383 char (*f) () = $ac_func;
51392 return f != $ac_func;
51397 rm -f conftest.$ac_objext conftest$ac_exeext
51398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51399 (eval $ac_link) 2>conftest.er1
51401 grep -v '^ *+' conftest.er1 >conftest.err
51403 cat conftest.err >&5
51404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51405 (exit $ac_status); } &&
51406 { ac_try='test -z "$ac_c_werror_flag"
51407 || test ! -s conftest.err'
51408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51409 (eval $ac_try) 2>&5
51411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51412 (exit $ac_status); }; } &&
51413 { ac_try='test -s conftest$ac_exeext'
51414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51415 (eval $ac_try) 2>&5
51417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51418 (exit $ac_status); }; }; then
51419 eval "$as_ac_var=yes"
51421 echo "$as_me: failed program was:" >&5
51422 sed 's/^/| /' conftest.$ac_ext >&5
51424 eval "$as_ac_var=no"
51426 rm -f conftest.err conftest.$ac_objext \
51427 conftest$ac_exeext conftest.$ac_ext
51429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51431 if test `eval echo '${'$as_ac_var'}'` = yes; then
51432 cat >>confdefs.h <<_ACEOF
51433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51551 echo "$as_me:$LINENO: checking for $ac_func" >&5
51552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51553 if eval "test \"\${$as_ac_var+set}\" = set"; then
51554 echo $ECHO_N "(cached) $ECHO_C" >&6
51556 cat >conftest.$ac_ext <<_ACEOF
51559 cat confdefs.h >>conftest.$ac_ext
51560 cat >>conftest.$ac_ext <<_ACEOF
51561 /* end confdefs.h. */
51562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51564 #define $ac_func innocuous_$ac_func
51566 /* System header to define __stub macros and hopefully few prototypes,
51567 which can conflict with char $ac_func (); below.
51568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51569 <limits.h> exists even on freestanding compilers. */
51572 # include <limits.h>
51574 # include <assert.h>
51579 /* Override any gcc2 internal prototype to avoid an error. */
51584 /* We use char because int might match the return type of a gcc2
51585 builtin and then its argument prototype would still apply. */
51587 /* The GNU C library defines this for functions which it implements
51588 to always fail with ENOSYS. Some functions are actually named
51589 something starting with __ and the normal name is an alias. */
51590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51593 char (*f) () = $ac_func;
51602 return f != $ac_func;
51607 rm -f conftest.$ac_objext conftest$ac_exeext
51608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51609 (eval $ac_link) 2>conftest.er1
51611 grep -v '^ *+' conftest.er1 >conftest.err
51613 cat conftest.err >&5
51614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51615 (exit $ac_status); } &&
51616 { ac_try='test -z "$ac_c_werror_flag"
51617 || test ! -s conftest.err'
51618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51619 (eval $ac_try) 2>&5
51621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51622 (exit $ac_status); }; } &&
51623 { ac_try='test -s conftest$ac_exeext'
51624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51625 (eval $ac_try) 2>&5
51627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51628 (exit $ac_status); }; }; then
51629 eval "$as_ac_var=yes"
51631 echo "$as_me: failed program was:" >&5
51632 sed 's/^/| /' conftest.$ac_ext >&5
51634 eval "$as_ac_var=no"
51636 rm -f conftest.err conftest.$ac_objext \
51637 conftest$ac_exeext conftest.$ac_ext
51639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51641 if test `eval echo '${'$as_ac_var'}'` = yes; then
51642 cat >>confdefs.h <<_ACEOF
51643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51652 for ac_func in getopt getpeereid
51654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51655 echo "$as_me:$LINENO: checking for $ac_func" >&5
51656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51657 if eval "test \"\${$as_ac_var+set}\" = set"; then
51658 echo $ECHO_N "(cached) $ECHO_C" >&6
51660 cat >conftest.$ac_ext <<_ACEOF
51663 cat confdefs.h >>conftest.$ac_ext
51664 cat >>conftest.$ac_ext <<_ACEOF
51665 /* end confdefs.h. */
51666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51668 #define $ac_func innocuous_$ac_func
51670 /* System header to define __stub macros and hopefully few prototypes,
51671 which can conflict with char $ac_func (); below.
51672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51673 <limits.h> exists even on freestanding compilers. */
51676 # include <limits.h>
51678 # include <assert.h>
51683 /* Override any gcc2 internal prototype to avoid an error. */
51688 /* We use char because int might match the return type of a gcc2
51689 builtin and then its argument prototype would still apply. */
51691 /* The GNU C library defines this for functions which it implements
51692 to always fail with ENOSYS. Some functions are actually named
51693 something starting with __ and the normal name is an alias. */
51694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51697 char (*f) () = $ac_func;
51706 return f != $ac_func;
51711 rm -f conftest.$ac_objext conftest$ac_exeext
51712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51713 (eval $ac_link) 2>conftest.er1
51715 grep -v '^ *+' conftest.er1 >conftest.err
51717 cat conftest.err >&5
51718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51719 (exit $ac_status); } &&
51720 { ac_try='test -z "$ac_c_werror_flag"
51721 || test ! -s conftest.err'
51722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51723 (eval $ac_try) 2>&5
51725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51726 (exit $ac_status); }; } &&
51727 { ac_try='test -s conftest$ac_exeext'
51728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51729 (eval $ac_try) 2>&5
51731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51732 (exit $ac_status); }; }; then
51733 eval "$as_ac_var=yes"
51735 echo "$as_me: failed program was:" >&5
51736 sed 's/^/| /' conftest.$ac_ext >&5
51738 eval "$as_ac_var=no"
51740 rm -f conftest.err conftest.$ac_objext \
51741 conftest$ac_exeext conftest.$ac_ext
51743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51745 if test `eval echo '${'$as_ac_var'}'` = yes; then
51746 cat >>confdefs.h <<_ACEOF
51747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51752 "$ac_func.$ac_objext" | \
51753 *" $ac_func.$ac_objext" | \
51754 "$ac_func.$ac_objext "* | \
51755 *" $ac_func.$ac_objext "* ) ;;
51756 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51764 if test "$ac_cv_func_getopt" != yes; then
51765 LIBSRCS="$LIBSRCS getopt.c"
51767 if test "$ac_cv_func_getpeereid" != yes; then
51768 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51769 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51770 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51771 echo $ECHO_N "(cached) $ECHO_C" >&6
51773 cat >conftest.$ac_ext <<_ACEOF
51776 cat confdefs.h >>conftest.$ac_ext
51777 cat >>conftest.$ac_ext <<_ACEOF
51778 /* end confdefs.h. */
51779 $ac_includes_default
51780 #ifdef HAVE_SYS_SOCKET_H
51781 #include <sys/socket.h>
51787 static struct msghdr ac_aggr;
51788 if (ac_aggr.msg_accrightslen)
51794 rm -f conftest.$ac_objext
51795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51796 (eval $ac_compile) 2>conftest.er1
51798 grep -v '^ *+' conftest.er1 >conftest.err
51800 cat conftest.err >&5
51801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51802 (exit $ac_status); } &&
51803 { ac_try='test -z "$ac_c_werror_flag"
51804 || test ! -s conftest.err'
51805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51806 (eval $ac_try) 2>&5
51808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51809 (exit $ac_status); }; } &&
51810 { ac_try='test -s conftest.$ac_objext'
51811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51812 (eval $ac_try) 2>&5
51814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51815 (exit $ac_status); }; }; then
51816 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51818 echo "$as_me: failed program was:" >&5
51819 sed 's/^/| /' conftest.$ac_ext >&5
51821 cat >conftest.$ac_ext <<_ACEOF
51824 cat confdefs.h >>conftest.$ac_ext
51825 cat >>conftest.$ac_ext <<_ACEOF
51826 /* end confdefs.h. */
51827 $ac_includes_default
51828 #ifdef HAVE_SYS_SOCKET_H
51829 #include <sys/socket.h>
51835 static struct msghdr ac_aggr;
51836 if (sizeof ac_aggr.msg_accrightslen)
51842 rm -f conftest.$ac_objext
51843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51844 (eval $ac_compile) 2>conftest.er1
51846 grep -v '^ *+' conftest.er1 >conftest.err
51848 cat conftest.err >&5
51849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51850 (exit $ac_status); } &&
51851 { ac_try='test -z "$ac_c_werror_flag"
51852 || test ! -s conftest.err'
51853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51854 (eval $ac_try) 2>&5
51856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51857 (exit $ac_status); }; } &&
51858 { ac_try='test -s conftest.$ac_objext'
51859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51860 (eval $ac_try) 2>&5
51862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51863 (exit $ac_status); }; }; then
51864 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51866 echo "$as_me: failed program was:" >&5
51867 sed 's/^/| /' conftest.$ac_ext >&5
51869 ac_cv_member_struct_msghdr_msg_accrightslen=no
51871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51875 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
51876 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
51877 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
51879 cat >>confdefs.h <<_ACEOF
51880 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
51886 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
51887 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
51888 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
51889 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
51890 echo $ECHO_N "(cached) $ECHO_C" >&6
51892 cat >conftest.$ac_ext <<_ACEOF
51895 cat confdefs.h >>conftest.$ac_ext
51896 cat >>conftest.$ac_ext <<_ACEOF
51897 /* end confdefs.h. */
51898 $ac_includes_default
51899 #ifdef HAVE_SYS_SOCKET_H
51900 #include <sys/socket.h>
51906 static struct msghdr ac_aggr;
51907 if (ac_aggr.msg_control)
51913 rm -f conftest.$ac_objext
51914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51915 (eval $ac_compile) 2>conftest.er1
51917 grep -v '^ *+' conftest.er1 >conftest.err
51919 cat conftest.err >&5
51920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51921 (exit $ac_status); } &&
51922 { ac_try='test -z "$ac_c_werror_flag"
51923 || test ! -s conftest.err'
51924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51925 (eval $ac_try) 2>&5
51927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51928 (exit $ac_status); }; } &&
51929 { ac_try='test -s conftest.$ac_objext'
51930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51931 (eval $ac_try) 2>&5
51933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51934 (exit $ac_status); }; }; then
51935 ac_cv_member_struct_msghdr_msg_control=yes
51937 echo "$as_me: failed program was:" >&5
51938 sed 's/^/| /' conftest.$ac_ext >&5
51940 cat >conftest.$ac_ext <<_ACEOF
51943 cat confdefs.h >>conftest.$ac_ext
51944 cat >>conftest.$ac_ext <<_ACEOF
51945 /* end confdefs.h. */
51946 $ac_includes_default
51947 #ifdef HAVE_SYS_SOCKET_H
51948 #include <sys/socket.h>
51954 static struct msghdr ac_aggr;
51955 if (sizeof ac_aggr.msg_control)
51961 rm -f conftest.$ac_objext
51962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51963 (eval $ac_compile) 2>conftest.er1
51965 grep -v '^ *+' conftest.er1 >conftest.err
51967 cat conftest.err >&5
51968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51969 (exit $ac_status); } &&
51970 { ac_try='test -z "$ac_c_werror_flag"
51971 || test ! -s conftest.err'
51972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51973 (eval $ac_try) 2>&5
51975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51976 (exit $ac_status); }; } &&
51977 { ac_try='test -s conftest.$ac_objext'
51978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51979 (eval $ac_try) 2>&5
51981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51982 (exit $ac_status); }; }; then
51983 ac_cv_member_struct_msghdr_msg_control=yes
51985 echo "$as_me: failed program was:" >&5
51986 sed 's/^/| /' conftest.$ac_ext >&5
51988 ac_cv_member_struct_msghdr_msg_control=no
51990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51994 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
51995 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
51996 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
51998 cat >>confdefs.h <<_ACEOF
51999 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52006 LIBSRCS="$LIBSRCS getpeereid.c"
52008 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52009 if test "$ac_cv_func_snprintf" != yes; then
52011 cat >>confdefs.h <<\_ACEOF
52012 #define snprintf ber_pvt_snprintf
52016 if test "$ac_cv_func_vsnprintf" != yes; then
52018 cat >>confdefs.h <<\_ACEOF
52019 #define vsnprintf ber_pvt_vsnprintf
52026 if test "$ol_enable_slapi" != no ; then
52028 for ac_header in ltdl.h
52030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52032 echo "$as_me:$LINENO: checking for $ac_header" >&5
52033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52035 echo $ECHO_N "(cached) $ECHO_C" >&6
52037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52040 # Is the header compilable?
52041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52043 cat >conftest.$ac_ext <<_ACEOF
52046 cat confdefs.h >>conftest.$ac_ext
52047 cat >>conftest.$ac_ext <<_ACEOF
52048 /* end confdefs.h. */
52049 $ac_includes_default
52050 #include <$ac_header>
52052 rm -f conftest.$ac_objext
52053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52054 (eval $ac_compile) 2>conftest.er1
52056 grep -v '^ *+' conftest.er1 >conftest.err
52058 cat conftest.err >&5
52059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52060 (exit $ac_status); } &&
52061 { ac_try='test -z "$ac_c_werror_flag"
52062 || test ! -s conftest.err'
52063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52064 (eval $ac_try) 2>&5
52066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52067 (exit $ac_status); }; } &&
52068 { ac_try='test -s conftest.$ac_objext'
52069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52070 (eval $ac_try) 2>&5
52072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52073 (exit $ac_status); }; }; then
52074 ac_header_compiler=yes
52076 echo "$as_me: failed program was:" >&5
52077 sed 's/^/| /' conftest.$ac_ext >&5
52079 ac_header_compiler=no
52081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52083 echo "${ECHO_T}$ac_header_compiler" >&6
52085 # Is the header present?
52086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52088 cat >conftest.$ac_ext <<_ACEOF
52091 cat confdefs.h >>conftest.$ac_ext
52092 cat >>conftest.$ac_ext <<_ACEOF
52093 /* end confdefs.h. */
52094 #include <$ac_header>
52096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52099 grep -v '^ *+' conftest.er1 >conftest.err
52101 cat conftest.err >&5
52102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52103 (exit $ac_status); } >/dev/null; then
52104 if test -s conftest.err; then
52105 ac_cpp_err=$ac_c_preproc_warn_flag
52106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52113 if test -z "$ac_cpp_err"; then
52114 ac_header_preproc=yes
52116 echo "$as_me: failed program was:" >&5
52117 sed 's/^/| /' conftest.$ac_ext >&5
52119 ac_header_preproc=no
52121 rm -f conftest.err conftest.$ac_ext
52122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52123 echo "${ECHO_T}$ac_header_preproc" >&6
52125 # So? What about this header?
52126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52132 ac_header_preproc=yes
52135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52149 ## ------------------------------------------ ##
52150 ## Report this to the AC_PACKAGE_NAME lists. ##
52151 ## ------------------------------------------ ##
52154 sed "s/^/$as_me: WARNING: /" >&2
52157 echo "$as_me:$LINENO: checking for $ac_header" >&5
52158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52160 echo $ECHO_N "(cached) $ECHO_C" >&6
52162 eval "$as_ac_Header=\$ac_header_preproc"
52164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52169 cat >>confdefs.h <<_ACEOF
52170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52178 if test $ac_cv_header_ltdl_h != yes ; then
52179 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52180 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52181 { (exit 1); exit 1; }; }
52183 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52184 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52185 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52186 echo $ECHO_N "(cached) $ECHO_C" >&6
52188 ac_check_lib_save_LIBS=$LIBS
52189 LIBS="-lltdl $LIBS"
52190 cat >conftest.$ac_ext <<_ACEOF
52193 cat confdefs.h >>conftest.$ac_ext
52194 cat >>conftest.$ac_ext <<_ACEOF
52195 /* end confdefs.h. */
52197 /* Override any gcc2 internal prototype to avoid an error. */
52201 /* We use char because int might match the return type of a gcc2
52202 builtin and then its argument prototype would still apply. */
52212 rm -f conftest.$ac_objext conftest$ac_exeext
52213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52214 (eval $ac_link) 2>conftest.er1
52216 grep -v '^ *+' conftest.er1 >conftest.err
52218 cat conftest.err >&5
52219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52220 (exit $ac_status); } &&
52221 { ac_try='test -z "$ac_c_werror_flag"
52222 || test ! -s conftest.err'
52223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52224 (eval $ac_try) 2>&5
52226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52227 (exit $ac_status); }; } &&
52228 { ac_try='test -s conftest$ac_exeext'
52229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52230 (eval $ac_try) 2>&5
52232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52233 (exit $ac_status); }; }; then
52234 ac_cv_lib_ltdl_lt_dlinit=yes
52236 echo "$as_me: failed program was:" >&5
52237 sed 's/^/| /' conftest.$ac_ext >&5
52239 ac_cv_lib_ltdl_lt_dlinit=no
52241 rm -f conftest.err conftest.$ac_objext \
52242 conftest$ac_exeext conftest.$ac_ext
52243 LIBS=$ac_check_lib_save_LIBS
52245 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52246 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52247 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52250 LIBSLAPI=libslapi.a
52251 LIBSLAPITOOLS=../libslapi.a
52253 cat >>confdefs.h <<\_ACEOF
52254 #define HAVE_LIBLTDL 1
52259 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52260 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52261 { (exit 1); exit 1; }; }
52266 cat >>confdefs.h <<\_ACEOF
52267 #define LDAP_SLAPI 1
52272 if test "$ol_enable_debug" != no ; then
52274 cat >>confdefs.h <<\_ACEOF
52275 #define LDAP_DEBUG 1
52279 if test "$ol_enable_syslog" = yes ; then
52281 cat >>confdefs.h <<\_ACEOF
52282 #define LDAP_SYSLOG 1
52286 if test "$ol_link_kbind" != no ; then
52288 cat >>confdefs.h <<\_ACEOF
52289 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52293 if test "$ol_enable_proctitle" != no ; then
52295 cat >>confdefs.h <<\_ACEOF
52296 #define LDAP_PROCTITLE 1
52300 if test "$ol_enable_referrals" != no ; then
52302 cat >>confdefs.h <<\_ACEOF
52303 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52307 if test "$ol_enable_local" != no; then
52309 cat >>confdefs.h <<\_ACEOF
52310 #define LDAP_PF_LOCAL 1
52314 if test "$ol_link_ipv6" != no; then
52316 cat >>confdefs.h <<\_ACEOF
52317 #define LDAP_PF_INET6 1
52321 if test "$ol_enable_cleartext" != no ; then
52323 cat >>confdefs.h <<\_ACEOF
52324 #define SLAPD_CLEARTEXT 1
52328 if test "$ol_enable_crypt" != no ; then
52330 cat >>confdefs.h <<\_ACEOF
52331 #define SLAPD_CRYPT 1
52335 if test "$ol_link_spasswd" != no ; then
52337 cat >>confdefs.h <<\_ACEOF
52338 #define SLAPD_SPASSWD 1
52342 if test "$ol_enable_multimaster" != no ; then
52344 cat >>confdefs.h <<\_ACEOF
52345 #define SLAPD_MULTIMASTER 1
52349 if test "$ol_enable_rlookups" != no ; then
52351 cat >>confdefs.h <<\_ACEOF
52352 #define SLAPD_RLOOKUPS 1
52356 if test "$ol_enable_aci" != no ; then
52358 cat >>confdefs.h <<\_ACEOF
52359 #define SLAPD_ACI_ENABLED 1
52364 if test "$ol_link_modules" != no ; then
52366 cat >>confdefs.h <<\_ACEOF
52367 #define SLAPD_MODULES 1
52371 SLAPD_MODULES_LDFLAGS="-dlopen self"
52375 cat >>confdefs.h <<\_ACEOF
52376 #define SLAPD_MOD_STATIC 1
52380 cat >>confdefs.h <<\_ACEOF
52381 #define SLAPD_MOD_DYNAMIC 2
52385 if test "$ol_enable_bdb" != no ; then
52387 BUILD_BDB=$ol_enable_bdb
52388 if test "$ol_enable_bdb" = mod ; then
52389 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52390 MFLAG=SLAPD_MOD_DYNAMIC
52392 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52393 MFLAG=SLAPD_MOD_STATIC
52396 cat >>confdefs.h <<_ACEOF
52397 #define SLAPD_BDB $MFLAG
52402 if test "$ol_enable_dnssrv" != no ; then
52404 BUILD_DNSSRV=$ol_enable_dnssrv
52405 if test "$ol_enable_dnssrv" = mod ; then
52406 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52407 MFLAG=SLAPD_MOD_DYNAMIC
52409 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52410 MFLAG=SLAPD_MOD_STATIC
52413 cat >>confdefs.h <<_ACEOF
52414 #define SLAPD_DNSSRV $MFLAG
52419 if test "$ol_enable_hdb" != no ; then
52421 BUILD_HDB=$ol_enable_hdb
52422 if test "$ol_enable_hdb" = mod ; then
52423 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52424 MFLAG=SLAPD_MOD_DYNAMIC
52426 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52427 MFLAG=SLAPD_MOD_STATIC
52430 cat >>confdefs.h <<_ACEOF
52431 #define SLAPD_HDB $MFLAG
52436 if test "$ol_enable_ldap" != no ; then
52438 BUILD_LDAP=$ol_enable_ldap
52439 if test "$ol_enable_ldap" = mod ; then
52440 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52441 MFLAG=SLAPD_MOD_DYNAMIC
52443 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52444 MFLAG=SLAPD_MOD_STATIC
52447 cat >>confdefs.h <<_ACEOF
52448 #define SLAPD_LDAP $MFLAG
52453 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52455 BUILD_LDBM=$ol_enable_ldbm
52456 if test "$ol_enable_ldbm" = mod ; then
52457 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52458 MFLAG=SLAPD_MOD_DYNAMIC
52460 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52461 MFLAG=SLAPD_MOD_STATIC
52464 cat >>confdefs.h <<_ACEOF
52465 #define SLAPD_LDBM $MFLAG
52470 if test "$ol_enable_meta" != no ; then
52472 BUILD_META=$ol_enable_meta
52474 if test "$ol_enable_meta" = mod ; then
52475 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52476 MFLAG=SLAPD_MOD_DYNAMIC
52478 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52479 MFLAG=SLAPD_MOD_STATIC
52482 cat >>confdefs.h <<_ACEOF
52483 #define SLAPD_META $MFLAG
52488 if test "$ol_enable_monitor" != no ; then
52490 BUILD_MONITOR=$ol_enable_monitor
52491 if test "$ol_enable_monitor" = mod ; then
52492 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52493 MFLAG=SLAPD_MOD_DYNAMIC
52495 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52496 MFLAG=SLAPD_MOD_STATIC
52499 cat >>confdefs.h <<_ACEOF
52500 #define SLAPD_MONITOR $MFLAG
52505 if test "$ol_enable_null" != no ; then
52507 BUILD_NULL=$ol_enable_null
52508 if test "$ol_enable_null" = mod ; then
52509 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52510 MFLAG=SLAPD_MOD_DYNAMIC
52512 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52513 MFLAG=SLAPD_MOD_STATIC
52516 cat >>confdefs.h <<_ACEOF
52517 #define SLAPD_NULL $MFLAG
52522 if test "$ol_enable_passwd" != no ; then
52524 BUILD_PASSWD=$ol_enable_passwd
52525 if test "$ol_enable_passwd" = mod ; then
52526 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52527 MFLAG=SLAPD_MOD_DYNAMIC
52529 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52530 MFLAG=SLAPD_MOD_STATIC
52533 cat >>confdefs.h <<_ACEOF
52534 #define SLAPD_PASSWD $MFLAG
52539 if test "$ol_link_perl" != no ; then
52541 BUILD_PERL=$ol_enable_perl
52542 if test "$ol_enable_perl" = mod ; then
52543 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52544 MFLAG=SLAPD_MOD_DYNAMIC
52546 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52547 MFLAG=SLAPD_MOD_STATIC
52550 cat >>confdefs.h <<_ACEOF
52551 #define SLAPD_PERL $MFLAG
52556 if test "$ol_enable_relay" != no ; then
52558 BUILD_RELAY=$ol_enable_relay
52559 if test "$ol_enable_relay" = mod ; then
52560 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52561 MFLAG=SLAPD_MOD_DYNAMIC
52563 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52564 MFLAG=SLAPD_MOD_STATIC
52567 cat >>confdefs.h <<_ACEOF
52568 #define SLAPD_RELAY $MFLAG
52573 if test "$ol_enable_shell" != no ; then
52574 if test "$ol_link_thread" != no ; then
52575 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52576 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52579 BUILD_SHELL=$ol_enable_shell
52580 if test "$ol_enable_shell" = mod ; then
52581 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52582 MFLAG=SLAPD_MOD_DYNAMIC
52584 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52585 MFLAG=SLAPD_MOD_STATIC
52588 cat >>confdefs.h <<_ACEOF
52589 #define SLAPD_SHELL $MFLAG
52594 if test "$ol_link_sql" != no ; then
52596 BUILD_SQL=$ol_enable_sql
52597 if test "$ol_enable_sql" = mod; then
52598 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52599 MFLAG=SLAPD_MOD_DYNAMIC
52601 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52602 MFLAG=SLAPD_MOD_STATIC
52605 cat >>confdefs.h <<_ACEOF
52606 #define SLAPD_SQL $MFLAG
52611 if test "$ol_enable_accesslog" != no ; then
52612 BUILD_ACCESSLOG=$ol_enable_accesslog
52613 if test "$ol_enable_accesslog" = mod ; then
52614 MFLAG=SLAPD_MOD_DYNAMIC
52615 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52617 MFLAG=SLAPD_MOD_STATIC
52618 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52621 cat >>confdefs.h <<_ACEOF
52622 #define SLAPD_OVER_ACCESSLOG $MFLAG
52627 if test "$ol_enable_denyop" != no ; then
52628 BUILD_DENYOP=$ol_enable_denyop
52629 if test "$ol_enable_denyop" = mod ; then
52630 MFLAG=SLAPD_MOD_DYNAMIC
52631 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52633 MFLAG=SLAPD_MOD_STATIC
52634 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52637 cat >>confdefs.h <<_ACEOF
52638 #define SLAPD_OVER_DENYOP $MFLAG
52643 if test "$ol_enable_dyngroup" != no ; then
52644 BUILD_DYNGROUP=$ol_enable_dyngroup
52645 if test "$ol_enable_dyngroup" = mod ; then
52646 MFLAG=SLAPD_MOD_DYNAMIC
52647 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52649 MFLAG=SLAPD_MOD_STATIC
52650 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52653 cat >>confdefs.h <<_ACEOF
52654 #define SLAPD_OVER_DYNGROUP $MFLAG
52659 if test "$ol_enable_dynlist" != no ; then
52660 BUILD_DYNLIST=$ol_enable_dynlist
52661 if test "$ol_enable_dynlist" = mod ; then
52662 MFLAG=SLAPD_MOD_DYNAMIC
52663 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52665 MFLAG=SLAPD_MOD_STATIC
52666 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52669 cat >>confdefs.h <<_ACEOF
52670 #define SLAPD_OVER_DYNLIST $MFLAG
52675 if test "$ol_enable_glue" != no ; then
52676 BUILD_GLUE=$ol_enable_glue
52677 if test "$ol_enable_glue" = mod ; then
52678 MFLAG=SLAPD_MOD_DYNAMIC
52679 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52681 MFLAG=SLAPD_MOD_STATIC
52682 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52685 cat >>confdefs.h <<_ACEOF
52686 #define SLAPD_OVER_GLUE $MFLAG
52691 if test "$ol_enable_lastmod" != no ; then
52692 BUILD_LASTMOD=$ol_enable_lastmod
52693 if test "$ol_enable_lastmod" = mod ; then
52694 MFLAG=SLAPD_MOD_DYNAMIC
52695 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52697 MFLAG=SLAPD_MOD_STATIC
52698 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52701 cat >>confdefs.h <<_ACEOF
52702 #define SLAPD_OVER_LASTMOD $MFLAG
52707 if test "$ol_enable_ppolicy" != no ; then
52708 BUILD_PPOLICY=$ol_enable_ppolicy
52709 if test "$ol_enable_ppolicy" = mod ; then
52710 MFLAG=SLAPD_MOD_DYNAMIC
52711 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52713 MFLAG=SLAPD_MOD_STATIC
52714 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52717 cat >>confdefs.h <<_ACEOF
52718 #define SLAPD_OVER_PPOLICY $MFLAG
52723 if test "$ol_enable_proxycache" != no ; then
52724 BUILD_PROXYCACHE=$ol_enable_proxycache
52725 if test "$ol_enable_proxycache" = mod ; then
52726 MFLAG=SLAPD_MOD_DYNAMIC
52727 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52729 MFLAG=SLAPD_MOD_STATIC
52730 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52733 cat >>confdefs.h <<_ACEOF
52734 #define SLAPD_OVER_PROXYCACHE $MFLAG
52739 if test "$ol_enable_refint" != no ; then
52740 BUILD_REFINT=$ol_enable_refint
52741 if test "$ol_enable_refint" = mod ; then
52742 MFLAG=SLAPD_MOD_DYNAMIC
52743 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52745 MFLAG=SLAPD_MOD_STATIC
52746 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52749 cat >>confdefs.h <<_ACEOF
52750 #define SLAPD_OVER_REFINT $MFLAG
52755 if test "$ol_enable_retcode" != no ; then
52756 BUILD_RETCODE=$ol_enable_retcode
52757 if test "$ol_enable_retcode" = mod ; then
52758 MFLAG=SLAPD_MOD_DYNAMIC
52759 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52761 MFLAG=SLAPD_MOD_STATIC
52762 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52765 cat >>confdefs.h <<_ACEOF
52766 #define SLAPD_OVER_RETCODE $MFLAG
52771 if test "$ol_enable_rwm" != no ; then
52773 BUILD_RWM=$ol_enable_rwm
52774 if test "$ol_enable_rwm" = mod ; then
52775 MFLAG=SLAPD_MOD_DYNAMIC
52776 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52778 MFLAG=SLAPD_MOD_STATIC
52779 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52782 cat >>confdefs.h <<_ACEOF
52783 #define SLAPD_OVER_RWM $MFLAG
52788 if test "$ol_enable_syncprov" != no ; then
52789 BUILD_SYNCPROV=$ol_enable_syncprov
52790 if test "$ol_enable_syncprov" = mod ; then
52791 MFLAG=SLAPD_MOD_DYNAMIC
52792 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52794 MFLAG=SLAPD_MOD_STATIC
52795 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52798 cat >>confdefs.h <<_ACEOF
52799 #define SLAPD_OVER_SYNCPROV $MFLAG
52804 if test "$ol_enable_translucent" != no ; then
52805 BUILD_TRANSLUCENT=$ol_enable_translucent
52806 if test "$ol_enable_translucent" = mod ; then
52807 MFLAG=SLAPD_MOD_DYNAMIC
52808 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52810 MFLAG=SLAPD_MOD_STATIC
52811 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52814 cat >>confdefs.h <<_ACEOF
52815 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52820 if test "$ol_enable_unique" != no ; then
52821 BUILD_UNIQUE=$ol_enable_unique
52822 if test "$ol_enable_unique" = mod ; then
52823 MFLAG=SLAPD_MOD_DYNAMIC
52824 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52826 MFLAG=SLAPD_MOD_STATIC
52827 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52830 cat >>confdefs.h <<_ACEOF
52831 #define SLAPD_OVER_UNIQUE $MFLAG
52836 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52837 $BUILD_SLAPD = yes ; then
52841 if test "$ol_enable_rewrite" != no ; then
52843 cat >>confdefs.h <<\_ACEOF
52844 #define ENABLE_REWRITE 1
52850 if test "$ol_enable_slapi" != no ; then
52852 cat >>confdefs.h <<\_ACEOF
52853 #define ENABLE_SLAPI 1
52857 SLAPD_SLAPI_DEPEND=libslapi.a
52862 if test "$ac_cv_mingw32" = yes ; then
52864 SLAPD_MODULES_LDFLAGS=
52947 # Check whether --with-xxinstall or --without-xxinstall was given.
52948 if test "${with_xxinstall+set}" = set; then
52949 withval="$with_xxinstall"
52954 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
52957 ac_config_commands="$ac_config_commands default"
52961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52962 # Let make expand exec_prefix.
52963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52965 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52966 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52967 # trailing colons and then remove the whole line if VPATH becomes empty
52968 # (actually we leave an empty line to preserve line numbers).
52969 if test "x$srcdir" = x.; then
52970 ac_vpsub='/^[ ]*VPATH[ ]*=/{
52971 s/:*\$(srcdir):*/:/;
52972 s/:*\${srcdir}:*/:/;
52974 s/^\([^=]*=[ ]*\):*/\1/;
52980 DEFS=-DHAVE_CONFIG_H
52984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52985 # 1. Remove the extension, and $U if already installed.
52986 ac_i=`echo "$ac_i" |
52987 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
52989 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
52990 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
52992 LIBOBJS=$ac_libobjs
52994 LTLIBOBJS=$ac_ltlibobjs
52997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52998 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52999 Usually this means the macro was only invoked conditionally." >&5
53000 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53001 Usually this means the macro was only invoked conditionally." >&2;}
53002 { (exit 1); exit 1; }; }
53004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53005 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53006 Usually this means the macro was only invoked conditionally." >&5
53007 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53008 Usually this means the macro was only invoked conditionally." >&2;}
53009 { (exit 1); exit 1; }; }
53011 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53012 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53013 Usually this means the macro was only invoked conditionally." >&5
53014 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53015 Usually this means the macro was only invoked conditionally." >&2;}
53016 { (exit 1); exit 1; }; }
53018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53019 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53020 Usually this means the macro was only invoked conditionally." >&5
53021 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53022 Usually this means the macro was only invoked conditionally." >&2;}
53023 { (exit 1); exit 1; }; }
53026 : ${CONFIG_STATUS=./config.status}
53027 ac_clean_files_save=$ac_clean_files
53028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53029 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53030 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53031 cat >$CONFIG_STATUS <<_ACEOF
53033 # Generated by $as_me.
53034 # Run this file to recreate the current configuration.
53035 # Compiler output produced by configure, useful for debugging
53036 # configure, is in config.log if it exists.
53039 ac_cs_recheck=false
53041 SHELL=\${CONFIG_SHELL-$SHELL}
53044 cat >>$CONFIG_STATUS <<\_ACEOF
53045 ## --------------------- ##
53046 ## M4sh Initialization. ##
53047 ## --------------------- ##
53049 # Be Bourne compatible
53050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53053 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53054 # is contrary to our usage. Disable this feature.
53055 alias -g '${1+"$@"}'='"$@"'
53056 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53059 DUALCASE=1; export DUALCASE # for MKS sh
53061 # Support unset when possible.
53062 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53069 # Work around bugs in pre-3.0 UWIN ksh.
53070 $as_unset ENV MAIL MAILPATH
53077 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53078 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53079 LC_TELEPHONE LC_TIME
53081 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53082 eval $as_var=C; export $as_var
53088 # Required to use basename.
53089 if expr a : '\(a\)' >/dev/null 2>&1; then
53095 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53096 as_basename=basename
53102 # Name of the executable.
53103 as_me=`$as_basename "$0" ||
53104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53105 X"$0" : 'X\(//\)$' \| \
53106 X"$0" : 'X\(/\)$' \| \
53107 . : '\(.\)' 2>/dev/null ||
53109 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53110 /^X\/\(\/\/\)$/{ s//\1/; q; }
53111 /^X\/\(\/\).*/{ s//\1/; q; }
53115 # PATH needs CR, and LINENO needs CR and PATH.
53116 # Avoid depending upon Character Ranges.
53117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53120 as_cr_digits='0123456789'
53121 as_cr_alnum=$as_cr_Letters$as_cr_digits
53123 # The user is always right.
53124 if test "${PATH_SEPARATOR+set}" != set; then
53125 echo "#! /bin/sh" >conf$$.sh
53126 echo "exit 0" >>conf$$.sh
53128 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53137 as_lineno_1=$LINENO
53138 as_lineno_2=$LINENO
53139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53140 test "x$as_lineno_1" != "x$as_lineno_2" &&
53141 test "x$as_lineno_3" = "x$as_lineno_2" || {
53142 # Find who we are. Look in the path if we contain no path at all
53145 *[\\/]* ) as_myself=$0 ;;
53146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53147 for as_dir in $PATH
53150 test -z "$as_dir" && as_dir=.
53151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53156 # We did not find ourselves, most probably we were run as `sh COMMAND'
53157 # in which case we are not to be found in the path.
53158 if test "x$as_myself" = x; then
53161 if test ! -f "$as_myself"; then
53162 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53163 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53164 { (exit 1); exit 1; }; }
53166 case $CONFIG_SHELL in
53168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53169 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53172 test -z "$as_dir" && as_dir=.
53173 for as_base in sh bash ksh sh5; do
53176 if ("$as_dir/$as_base" -c '
53177 as_lineno_1=$LINENO
53178 as_lineno_2=$LINENO
53179 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53180 test "x$as_lineno_1" != "x$as_lineno_2" &&
53181 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
53182 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53183 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53184 CONFIG_SHELL=$as_dir/$as_base
53185 export CONFIG_SHELL
53186 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53194 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53195 # uniformly replaced by the line number. The first 'sed' inserts a
53196 # line-number line before each line; the second 'sed' does the real
53197 # work. The second script uses 'N' to pair each line-number line
53198 # with the numbered line, and appends trailing '-' during
53199 # substitution so that $LINENO is not a special case at line end.
53200 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53201 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
53202 sed '=' <$as_myself |
53207 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53210 s,^['$as_cr_digits']*\n,,
53211 ' >$as_me.lineno &&
53212 chmod +x $as_me.lineno ||
53213 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53214 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53215 { (exit 1); exit 1; }; }
53217 # Don't try to exec as it changes $[0], causing all sort of problems
53218 # (the dirname of $[0] is not the place where we might find the
53219 # original and so on. Autoconf is especially sensible to this).
53221 # Exit status is that of the last command.
53226 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53227 *c*,-n*) ECHO_N= ECHO_C='
53229 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53230 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
53233 if expr a : '\(a\)' >/dev/null 2>&1; then
53239 rm -f conf$$ conf$$.exe conf$$.file
53241 if ln -s conf$$.file conf$$ 2>/dev/null; then
53242 # We could just check for DJGPP; but this test a) works b) is more generic
53243 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53244 if test -f conf$$.exe; then
53245 # Don't use ln at all; we don't have any links
53250 elif ln conf$$.file conf$$ 2>/dev/null; then
53255 rm -f conf$$ conf$$.exe conf$$.file
53257 if mkdir -p . 2>/dev/null; then
53260 test -d ./-p && rmdir ./-p
53264 as_executable_p="test -f"
53266 # Sed expression to map a string onto a valid CPP name.
53267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53269 # Sed expression to map a string onto a valid variable name.
53270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53274 # We need space, tab and new line, in precisely that order.
53284 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53285 # report actual input values of CONFIG_FILES etc. instead of their
53286 # values after options handling. Logging --version etc. is OK.
53290 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53291 ## Running $as_me. ##
53296 This file was extended by $as_me, which was
53297 generated by GNU Autoconf 2.59. Invocation command line was
53299 CONFIG_FILES = $CONFIG_FILES
53300 CONFIG_HEADERS = $CONFIG_HEADERS
53301 CONFIG_LINKS = $CONFIG_LINKS
53302 CONFIG_COMMANDS = $CONFIG_COMMANDS
53306 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53310 # Files that config.status was made for.
53311 if test -n "$ac_config_files"; then
53312 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53315 if test -n "$ac_config_headers"; then
53316 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53319 if test -n "$ac_config_links"; then
53320 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53323 if test -n "$ac_config_commands"; then
53324 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53327 cat >>$CONFIG_STATUS <<\_ACEOF
53330 \`$as_me' instantiates files from templates according to the
53331 current configuration.
53333 Usage: $0 [OPTIONS] [FILE]...
53335 -h, --help print this help, then exit
53336 -V, --version print version number, then exit
53337 -q, --quiet do not print progress messages
53338 -d, --debug don't remove temporary files
53339 --recheck update $as_me by reconfiguring in the same conditions
53340 --file=FILE[:TEMPLATE]
53341 instantiate the configuration file FILE
53342 --header=FILE[:TEMPLATE]
53343 instantiate the configuration header FILE
53345 Configuration files:
53348 Configuration headers:
53351 Configuration commands:
53354 Report bugs to <bug-autoconf@gnu.org>."
53357 cat >>$CONFIG_STATUS <<_ACEOF
53360 configured by $0, generated by GNU Autoconf 2.59,
53361 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53363 Copyright (C) 2003 Free Software Foundation, Inc.
53364 This config.status script is free software; the Free Software Foundation
53365 gives unlimited permission to copy, distribute and modify it."
53370 cat >>$CONFIG_STATUS <<\_ACEOF
53371 # If no file are specified by the user, then we need to provide default
53372 # value. By we need to know if files were specified by the user.
53378 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53379 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53387 *) # This is not an option, so the user has probably given explicit
53390 ac_need_defaults=false;;
53394 # Handling of the options.
53396 cat >>$CONFIG_STATUS <<\_ACEOF
53397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53399 --version | --vers* | -V )
53400 echo "$ac_cs_version"; exit 0 ;;
53402 # Conflict between --help and --header
53403 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53404 Try \`$0 --help' for more information." >&5
53405 echo "$as_me: error: ambiguous option: $1
53406 Try \`$0 --help' for more information." >&2;}
53407 { (exit 1); exit 1; }; };;
53408 --help | --hel | -h )
53409 echo "$ac_cs_usage"; exit 0 ;;
53410 --debug | --d* | -d )
53412 --file | --fil | --fi | --f )
53414 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53415 ac_need_defaults=false;;
53416 --header | --heade | --head | --hea )
53418 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53419 ac_need_defaults=false;;
53420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53421 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53424 # This is an error.
53425 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53426 Try \`$0 --help' for more information." >&5
53427 echo "$as_me: error: unrecognized option: $1
53428 Try \`$0 --help' for more information." >&2;}
53429 { (exit 1); exit 1; }; } ;;
53431 *) ac_config_targets="$ac_config_targets $1" ;;
53437 ac_configure_extra_args=
53439 if $ac_cs_silent; then
53441 ac_configure_extra_args="$ac_configure_extra_args --silent"
53445 cat >>$CONFIG_STATUS <<_ACEOF
53446 if \$ac_cs_recheck; then
53447 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53448 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53453 cat >>$CONFIG_STATUS <<_ACEOF
53455 # INIT-COMMANDS section.
53458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53459 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53465 cat >>$CONFIG_STATUS <<\_ACEOF
53466 for ac_config_target in $ac_config_targets
53468 case "$ac_config_target" in
53469 # Handling of arguments.
53470 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53471 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53472 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53473 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53474 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53475 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53476 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53477 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53478 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53479 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53480 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53481 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53482 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53483 "libraries/libldap_r/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53484 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53485 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53486 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53487 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53488 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53489 "servers/slapd/back-bdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
53490 "servers/slapd/back-dnssrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
53491 "servers/slapd/back-hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
53492 "servers/slapd/back-ldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
53493 "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
53494 "servers/slapd/back-ldif/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
53495 "servers/slapd/back-meta/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
53496 "servers/slapd/back-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
53497 "servers/slapd/back-null/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
53498 "servers/slapd/back-passwd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
53499 "servers/slapd/back-perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
53500 "servers/slapd/back-relay/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
53501 "servers/slapd/back-shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
53502 "servers/slapd/back-sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
53503 "servers/slapd/shell-backends/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
53504 "servers/slapd/slapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53505 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53506 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53507 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53508 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53509 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53510 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53511 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53512 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53513 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53514 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53515 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53516 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53517 { (exit 1); exit 1; }; };;
53521 # If the user did not use the arguments to specify the items to instantiate,
53522 # then the envvar interface is used. Set only those that are not.
53523 # We use the long form for the default assignment because of an extremely
53524 # bizarre bug on SunOS 4.1.3.
53525 if $ac_need_defaults; then
53526 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53527 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53528 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53531 # Have a temporary directory for convenience. Make it in the build tree
53532 # simply because there is no reason to put it here, and in addition,
53533 # creating and moving files from /tmp can sometimes cause problems.
53534 # Create a temporary directory, and hook for its removal unless debugging.
53537 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53538 trap '{ (exit 1); exit 1; }' 1 2 13 15
53541 # Create a (secure) tmp directory for tmp files.
53544 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53545 test -n "$tmp" && test -d "$tmp"
53548 tmp=./confstat$$-$RANDOM
53549 (umask 077 && mkdir $tmp)
53552 echo "$me: cannot create a temporary directory in ." >&2
53553 { (exit 1); exit 1; }
53558 cat >>$CONFIG_STATUS <<_ACEOF
53561 # CONFIG_FILES section.
53564 # No need to generate the scripts if there are no CONFIG_FILES.
53565 # This happens for instance when ./config.status config.h
53566 if test -n "\$CONFIG_FILES"; then
53567 # Protect against being on the right side of a sed subst in config.status.
53568 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53569 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53570 s,@SHELL@,$SHELL,;t t
53571 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53572 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53573 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53574 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53575 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53576 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53577 s,@exec_prefix@,$exec_prefix,;t t
53578 s,@prefix@,$prefix,;t t
53579 s,@program_transform_name@,$program_transform_name,;t t
53580 s,@bindir@,$bindir,;t t
53581 s,@sbindir@,$sbindir,;t t
53582 s,@libexecdir@,$libexecdir,;t t
53583 s,@datadir@,$datadir,;t t
53584 s,@sysconfdir@,$sysconfdir,;t t
53585 s,@sharedstatedir@,$sharedstatedir,;t t
53586 s,@localstatedir@,$localstatedir,;t t
53587 s,@libdir@,$libdir,;t t
53588 s,@includedir@,$includedir,;t t
53589 s,@oldincludedir@,$oldincludedir,;t t
53590 s,@infodir@,$infodir,;t t
53591 s,@mandir@,$mandir,;t t
53592 s,@build_alias@,$build_alias,;t t
53593 s,@host_alias@,$host_alias,;t t
53594 s,@target_alias@,$target_alias,;t t
53595 s,@DEFS@,$DEFS,;t t
53596 s,@ECHO_C@,$ECHO_C,;t t
53597 s,@ECHO_N@,$ECHO_N,;t t
53598 s,@ECHO_T@,$ECHO_T,;t t
53599 s,@LIBS@,$LIBS,;t t
53600 s,@build@,$build,;t t
53601 s,@build_cpu@,$build_cpu,;t t
53602 s,@build_vendor@,$build_vendor,;t t
53603 s,@build_os@,$build_os,;t t
53604 s,@host@,$host,;t t
53605 s,@host_cpu@,$host_cpu,;t t
53606 s,@host_vendor@,$host_vendor,;t t
53607 s,@host_os@,$host_os,;t t
53608 s,@target@,$target,;t t
53609 s,@target_cpu@,$target_cpu,;t t
53610 s,@target_vendor@,$target_vendor,;t t
53611 s,@target_os@,$target_os,;t t
53612 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53613 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53614 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53615 s,@CYGPATH_W@,$CYGPATH_W,;t t
53616 s,@PACKAGE@,$PACKAGE,;t t
53617 s,@VERSION@,$VERSION,;t t
53618 s,@ACLOCAL@,$ACLOCAL,;t t
53619 s,@AUTOCONF@,$AUTOCONF,;t t
53620 s,@AUTOMAKE@,$AUTOMAKE,;t t
53621 s,@AUTOHEADER@,$AUTOHEADER,;t t
53622 s,@MAKEINFO@,$MAKEINFO,;t t
53623 s,@install_sh@,$install_sh,;t t
53624 s,@STRIP@,$STRIP,;t t
53625 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53626 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53627 s,@mkdir_p@,$mkdir_p,;t t
53629 s,@SET_MAKE@,$SET_MAKE,;t t
53630 s,@am__leading_dot@,$am__leading_dot,;t t
53631 s,@AMTAR@,$AMTAR,;t t
53632 s,@am__tar@,$am__tar,;t t
53633 s,@am__untar@,$am__untar,;t t
53634 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53635 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53636 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53637 s,@top_builddir@,$top_builddir,;t t
53638 s,@ldap_subdir@,$ldap_subdir,;t t
53641 s,@CFLAGS@,$CFLAGS,;t t
53642 s,@LDFLAGS@,$LDFLAGS,;t t
53643 s,@CPPFLAGS@,$CPPFLAGS,;t t
53644 s,@ac_ct_CC@,$ac_ct_CC,;t t
53645 s,@EXEEXT@,$EXEEXT,;t t
53646 s,@OBJEXT@,$OBJEXT,;t t
53647 s,@DEPDIR@,$DEPDIR,;t t
53648 s,@am__include@,$am__include,;t t
53649 s,@am__quote@,$am__quote,;t t
53650 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53651 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53652 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53653 s,@CCDEPMODE@,$CCDEPMODE,;t t
53654 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53655 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53656 s,@EGREP@,$EGREP,;t t
53657 s,@LN_S@,$LN_S,;t t
53658 s,@ECHO@,$ECHO,;t t
53659 s,@ac_ct_AR@,$ac_ct_AR,;t t
53660 s,@RANLIB@,$RANLIB,;t t
53661 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53662 s,@DLLTOOL@,$DLLTOOL,;t t
53663 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53665 s,@ac_ct_AS@,$ac_ct_AS,;t t
53666 s,@OBJDUMP@,$OBJDUMP,;t t
53667 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53670 s,@CXXFLAGS@,$CXXFLAGS,;t t
53671 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53672 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53673 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53674 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53675 s,@CXXCPP@,$CXXCPP,;t t
53677 s,@FFLAGS@,$FFLAGS,;t t
53678 s,@ac_ct_F77@,$ac_ct_F77,;t t
53679 s,@LIBTOOL@,$LIBTOOL,;t t
53680 s,@PERLBIN@,$PERLBIN,;t t
53681 s,@OL_MKDEP@,$OL_MKDEP,;t t
53682 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53683 s,@LTSTATIC@,$LTSTATIC,;t t
53684 s,@LIBOBJS@,$LIBOBJS,;t t
53685 s,@LIBSRCS@,$LIBSRCS,;t t
53686 s,@PLAT@,$PLAT,;t t
53687 s,@WITH_SASL@,$WITH_SASL,;t t
53688 s,@WITH_TLS@,$WITH_TLS,;t t
53689 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53690 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53691 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53692 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53693 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53694 s,@BUILD_BDB@,$BUILD_BDB,;t t
53695 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53696 s,@BUILD_HDB@,$BUILD_HDB,;t t
53697 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53698 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53699 s,@BUILD_META@,$BUILD_META,;t t
53700 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53701 s,@BUILD_NULL@,$BUILD_NULL,;t t
53702 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53703 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53704 s,@BUILD_PERL@,$BUILD_PERL,;t t
53705 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53706 s,@BUILD_SQL@,$BUILD_SQL,;t t
53707 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53708 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53709 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53710 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53711 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53712 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53713 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53714 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53715 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53716 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53717 s,@BUILD_RWM@,$BUILD_RWM,;t t
53718 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53719 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53720 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53721 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53722 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53723 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53724 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53725 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53726 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53727 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53728 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53729 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53730 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53731 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53732 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53733 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53734 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53735 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53736 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53737 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53738 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53739 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53740 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53741 s,@SASL_LIBS@,$SASL_LIBS,;t t
53742 s,@TLS_LIBS@,$TLS_LIBS,;t t
53743 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53744 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53745 s,@LIBSLAPI@,$LIBSLAPI,;t t
53746 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53747 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53748 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53749 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53750 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53751 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53752 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53753 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53758 cat >>$CONFIG_STATUS <<\_ACEOF
53759 # Split the substitutions into bite-sized pieces for seds with
53760 # small command number limits, like on Digital OSF/1 and HP-UX.
53761 ac_max_sed_lines=48
53762 ac_sed_frag=1 # Number of current file.
53763 ac_beg=1 # First line for current file.
53764 ac_end=$ac_max_sed_lines # Line after last line for current file.
53767 while $ac_more_lines; do
53768 if test $ac_beg -gt 1; then
53769 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53771 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53773 if test ! -s $tmp/subs.frag; then
53774 ac_more_lines=false
53776 # The purpose of the label and of the branching condition is to
53777 # speed up the sed processing (if there are no `@' at all, there
53778 # is no need to browse any of the substitutions).
53779 # These are the two extra sed commands mentioned above.
53781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53782 if test -z "$ac_sed_cmds"; then
53783 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53785 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53787 ac_sed_frag=`expr $ac_sed_frag + 1`
53789 ac_end=`expr $ac_end + $ac_max_sed_lines`
53792 if test -z "$ac_sed_cmds"; then
53795 fi # test -n "$CONFIG_FILES"
53798 cat >>$CONFIG_STATUS <<\_ACEOF
53799 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53802 - | *:- | *:-:* ) # input from stdin
53804 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53806 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53808 * ) ac_file_in=$ac_file.in ;;
53811 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53812 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53814 X"$ac_file" : 'X\(//\)[^/]' \| \
53815 X"$ac_file" : 'X\(//\)$' \| \
53816 X"$ac_file" : 'X\(/\)' \| \
53817 . : '\(.\)' 2>/dev/null ||
53819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53821 /^X\(\/\/\)$/{ s//\1/; q; }
53822 /^X\(\/\).*/{ s//\1/; q; }
53824 { if $as_mkdir_p; then
53829 while test ! -d "$as_dir"; do
53830 as_dirs="$as_dir $as_dirs"
53831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53833 X"$as_dir" : 'X\(//\)[^/]' \| \
53834 X"$as_dir" : 'X\(//\)$' \| \
53835 X"$as_dir" : 'X\(/\)' \| \
53836 . : '\(.\)' 2>/dev/null ||
53838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53840 /^X\(\/\/\)$/{ s//\1/; q; }
53841 /^X\(\/\).*/{ s//\1/; q; }
53844 test ! -n "$as_dirs" || mkdir $as_dirs
53845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53847 { (exit 1); exit 1; }; }; }
53851 if test "$ac_dir" != .; then
53852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53853 # A "../" for each directory in $ac_dir_suffix.
53854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53856 ac_dir_suffix= ac_top_builddir=
53860 .) # No --srcdir option. We are building in place.
53862 if test -z "$ac_top_builddir"; then
53865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53867 [\\/]* | ?:[\\/]* ) # Absolute path.
53868 ac_srcdir=$srcdir$ac_dir_suffix;
53869 ac_top_srcdir=$srcdir ;;
53870 *) # Relative path.
53871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
53875 # Do not use `cd foo && pwd` to compute absolute paths, because
53876 # the directories may not exist.
53878 .) ac_abs_builddir="$ac_dir";;
53881 .) ac_abs_builddir=`pwd`;;
53882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
53886 case $ac_abs_builddir in
53887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53889 case ${ac_top_builddir}. in
53890 .) ac_abs_top_builddir=$ac_abs_builddir;;
53891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53895 case $ac_abs_builddir in
53896 .) ac_abs_srcdir=$ac_srcdir;;
53899 .) ac_abs_srcdir=$ac_abs_builddir;;
53900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53904 case $ac_abs_builddir in
53905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53907 case $ac_top_srcdir in
53908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
53909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53917 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
53920 if test x"$ac_file" != x-; then
53921 { echo "$as_me:$LINENO: creating $ac_file" >&5
53922 echo "$as_me: creating $ac_file" >&6;}
53925 # Let's still pretend it is `configure' which instantiates (i.e., don't
53926 # use $as_me), people would be surprised to read:
53927 # /* config.h. Generated by config.status. */
53928 if test x"$ac_file" = x-; then
53931 configure_input="$ac_file. "
53933 configure_input=$configure_input"Generated from `echo $ac_file_in |
53934 sed 's,.*/,,'` by configure."
53936 # First look for the input files in the build tree, otherwise in the
53938 ac_file_inputs=`IFS=:
53939 for f in $ac_file_in; do
53941 -) echo $tmp/stdin ;;
53943 # Absolute (can't be DOS-style, as IFS=:)
53944 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53945 echo "$as_me: error: cannot find input file: $f" >&2;}
53946 { (exit 1); exit 1; }; }
53949 if test -f "$f"; then
53952 elif test -f "$srcdir/$f"; then
53957 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53958 echo "$as_me: error: cannot find input file: $f" >&2;}
53959 { (exit 1); exit 1; }; }
53962 done` || { (exit 1); exit 1; }
53964 cat >>$CONFIG_STATUS <<_ACEOF
53968 cat >>$CONFIG_STATUS <<\_ACEOF
53970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53971 s,@configure_input@,$configure_input,;t t
53972 s,@srcdir@,$ac_srcdir,;t t
53973 s,@abs_srcdir@,$ac_abs_srcdir,;t t
53974 s,@top_srcdir@,$ac_top_srcdir,;t t
53975 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
53976 s,@builddir@,$ac_builddir,;t t
53977 s,@abs_builddir@,$ac_abs_builddir,;t t
53978 s,@top_builddir@,$ac_top_builddir,;t t
53979 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
53980 s,@INSTALL@,$ac_INSTALL,;t t
53981 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
53983 if test x"$ac_file" != x-; then
53984 mv $tmp/out $ac_file
53992 cat >>$CONFIG_STATUS <<\_ACEOF
53995 # CONFIG_HEADER section.
53998 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
53999 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54001 # ac_d sets the value in "#define NAME VALUE" lines.
54002 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
54003 ac_dB='[ ].*$,\1#\2'
54006 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54007 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
54008 ac_uB='$,\1#\2define\3'
54012 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54015 - | *:- | *:-:* ) # input from stdin
54017 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54019 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54021 * ) ac_file_in=$ac_file.in ;;
54024 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54025 echo "$as_me: creating $ac_file" >&6;}
54027 # First look for the input files in the build tree, otherwise in the
54029 ac_file_inputs=`IFS=:
54030 for f in $ac_file_in; do
54032 -) echo $tmp/stdin ;;
54034 # Absolute (can't be DOS-style, as IFS=:)
54035 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54036 echo "$as_me: error: cannot find input file: $f" >&2;}
54037 { (exit 1); exit 1; }; }
54038 # Do quote $f, to prevent DOS paths from being IFS'd.
54041 if test -f "$f"; then
54044 elif test -f "$srcdir/$f"; then
54049 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54050 echo "$as_me: error: cannot find input file: $f" >&2;}
54051 { (exit 1); exit 1; }; }
54054 done` || { (exit 1); exit 1; }
54055 # Remove the trailing spaces.
54056 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
54060 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54061 # `conftest.undefs', that substitutes the proper values into
54062 # config.h.in to produce config.h. The first handles `#define'
54063 # templates, and the second `#undef' templates.
54064 # And first: Protect against being on the right side of a sed subst in
54065 # config.status. Protect against being in an unquoted here document
54066 # in config.status.
54067 rm -f conftest.defines conftest.undefs
54068 # Using a here document instead of a string reduces the quoting nightmare.
54069 # Putting comments in sed scripts is not portable.
54071 # `end' is used to avoid that the second main sed command (meant for
54072 # 0-ary CPP macros) applies to n-ary macro definitions.
54073 # See the Autoconf documentation for `clear'.
54074 cat >confdef2sed.sed <<\_ACEOF
54079 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54081 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54084 # If some macros were called several times there might be several times
54085 # the same #defines, which is useless. Nevertheless, we may not want to
54086 # sort them, since we want the *last* AC-DEFINE to be honored.
54087 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54088 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54089 rm -f confdef2sed.sed
54091 # This sed command replaces #undef with comments. This is necessary, for
54092 # example, in the case of _POSIX_SOURCE, which is predefined and required
54093 # on some systems where configure will not decide to define it.
54094 cat >>conftest.undefs <<\_ACEOF
54095 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54098 # Break up conftest.defines because some shells have a limit on the size
54099 # of here documents, and old seds have small limits too (100 cmds).
54100 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54101 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54102 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54103 echo ' :' >>$CONFIG_STATUS
54104 rm -f conftest.tail
54105 while grep . conftest.defines >/dev/null
54107 # Write a limited-size here document to $tmp/defines.sed.
54108 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54109 # Speed up: don't consider the non `#define' lines.
54110 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
54111 # Work around the forget-to-reset-the-flag bug.
54112 echo 't clr' >>$CONFIG_STATUS
54113 echo ': clr' >>$CONFIG_STATUS
54114 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54116 sed -f $tmp/defines.sed $tmp/in >$tmp/out
54118 mv $tmp/out $tmp/in
54120 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54121 rm -f conftest.defines
54122 mv conftest.tail conftest.defines
54124 rm -f conftest.defines
54125 echo ' fi # grep' >>$CONFIG_STATUS
54126 echo >>$CONFIG_STATUS
54128 # Break up conftest.undefs because some shells have a limit on the size
54129 # of here documents, and old seds have small limits too (100 cmds).
54130 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
54131 rm -f conftest.tail
54132 while grep . conftest.undefs >/dev/null
54134 # Write a limited-size here document to $tmp/undefs.sed.
54135 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54136 # Speed up: don't consider the non `#undef'
54137 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
54138 # Work around the forget-to-reset-the-flag bug.
54139 echo 't clr' >>$CONFIG_STATUS
54140 echo ': clr' >>$CONFIG_STATUS
54141 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54143 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54145 mv $tmp/out $tmp/in
54147 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54148 rm -f conftest.undefs
54149 mv conftest.tail conftest.undefs
54151 rm -f conftest.undefs
54153 cat >>$CONFIG_STATUS <<\_ACEOF
54154 # Let's still pretend it is `configure' which instantiates (i.e., don't
54155 # use $as_me), people would be surprised to read:
54156 # /* config.h. Generated by config.status. */
54157 if test x"$ac_file" = x-; then
54158 echo "/* Generated by configure. */" >$tmp/config.h
54160 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
54162 cat $tmp/in >>$tmp/config.h
54164 if test x"$ac_file" != x-; then
54165 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54166 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54167 echo "$as_me: $ac_file is unchanged" >&6;}
54169 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54171 X"$ac_file" : 'X\(//\)[^/]' \| \
54172 X"$ac_file" : 'X\(//\)$' \| \
54173 X"$ac_file" : 'X\(/\)' \| \
54174 . : '\(.\)' 2>/dev/null ||
54176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54178 /^X\(\/\/\)$/{ s//\1/; q; }
54179 /^X\(\/\).*/{ s//\1/; q; }
54181 { if $as_mkdir_p; then
54186 while test ! -d "$as_dir"; do
54187 as_dirs="$as_dir $as_dirs"
54188 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54190 X"$as_dir" : 'X\(//\)[^/]' \| \
54191 X"$as_dir" : 'X\(//\)$' \| \
54192 X"$as_dir" : 'X\(/\)' \| \
54193 . : '\(.\)' 2>/dev/null ||
54195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54197 /^X\(\/\/\)$/{ s//\1/; q; }
54198 /^X\(\/\).*/{ s//\1/; q; }
54201 test ! -n "$as_dirs" || mkdir $as_dirs
54202 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54204 { (exit 1); exit 1; }; }; }
54207 mv $tmp/config.h $ac_file
54211 rm -f $tmp/config.h
54213 # Compute $ac_file's index in $config_headers.
54215 for _am_header in $config_headers :; do
54216 case $_am_header in
54217 $ac_file | $ac_file:* )
54220 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54223 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54224 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54225 X$ac_file : 'X\(//\)[^/]' \| \
54226 X$ac_file : 'X\(//\)$' \| \
54227 X$ac_file : 'X\(/\)' \| \
54228 . : '\(.\)' 2>/dev/null ||
54230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54232 /^X\(\/\/\)$/{ s//\1/; q; }
54233 /^X\(\/\).*/{ s//\1/; q; }
54234 s/.*/./; q'`/stamp-h$_am_stamp_count
54237 cat >>$CONFIG_STATUS <<\_ACEOF
54240 # CONFIG_COMMANDS section.
54242 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54243 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54244 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54245 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54246 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54247 X"$ac_dest" : 'X\(//\)[^/]' \| \
54248 X"$ac_dest" : 'X\(//\)$' \| \
54249 X"$ac_dest" : 'X\(/\)' \| \
54250 . : '\(.\)' 2>/dev/null ||
54252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54253 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54254 /^X\(\/\/\)$/{ s//\1/; q; }
54255 /^X\(\/\).*/{ s//\1/; q; }
54257 { if $as_mkdir_p; then
54262 while test ! -d "$as_dir"; do
54263 as_dirs="$as_dir $as_dirs"
54264 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54266 X"$as_dir" : 'X\(//\)[^/]' \| \
54267 X"$as_dir" : 'X\(//\)$' \| \
54268 X"$as_dir" : 'X\(/\)' \| \
54269 . : '\(.\)' 2>/dev/null ||
54271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54273 /^X\(\/\/\)$/{ s//\1/; q; }
54274 /^X\(\/\).*/{ s//\1/; q; }
54277 test ! -n "$as_dirs" || mkdir $as_dirs
54278 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54279 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54280 { (exit 1); exit 1; }; }; }
54284 if test "$ac_dir" != .; then
54285 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54286 # A "../" for each directory in $ac_dir_suffix.
54287 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54289 ac_dir_suffix= ac_top_builddir=
54293 .) # No --srcdir option. We are building in place.
54295 if test -z "$ac_top_builddir"; then
54298 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54300 [\\/]* | ?:[\\/]* ) # Absolute path.
54301 ac_srcdir=$srcdir$ac_dir_suffix;
54302 ac_top_srcdir=$srcdir ;;
54303 *) # Relative path.
54304 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54305 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54308 # Do not use `cd foo && pwd` to compute absolute paths, because
54309 # the directories may not exist.
54311 .) ac_abs_builddir="$ac_dir";;
54314 .) ac_abs_builddir=`pwd`;;
54315 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54316 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54319 case $ac_abs_builddir in
54320 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54322 case ${ac_top_builddir}. in
54323 .) ac_abs_top_builddir=$ac_abs_builddir;;
54324 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54325 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54328 case $ac_abs_builddir in
54329 .) ac_abs_srcdir=$ac_srcdir;;
54332 .) ac_abs_srcdir=$ac_abs_builddir;;
54333 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54334 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54337 case $ac_abs_builddir in
54338 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54340 case $ac_top_srcdir in
54341 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54342 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54343 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54348 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54349 echo "$as_me: executing $ac_dest commands" >&6;}
54351 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54352 # Strip MF so we end up with the name of the file.
54353 mf=`echo "$mf" | sed -e 's/:.*$//'`
54354 # Check whether this is an Automake generated Makefile or not.
54355 # We used to match only the files named `Makefile.in', but
54356 # some people rename them; so instead we look at the file content.
54357 # Grep'ing the first line is not enough: some people post-process
54358 # each Makefile.in and add a new line on top of each file to say so.
54359 # So let's grep whole file.
54360 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54361 dirpart=`(dirname "$mf") 2>/dev/null ||
54362 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54363 X"$mf" : 'X\(//\)[^/]' \| \
54364 X"$mf" : 'X\(//\)$' \| \
54365 X"$mf" : 'X\(/\)' \| \
54366 . : '\(.\)' 2>/dev/null ||
54368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54370 /^X\(\/\/\)$/{ s//\1/; q; }
54371 /^X\(\/\).*/{ s//\1/; q; }
54376 # Extract the definition of DEPDIR, am__include, and am__quote
54377 # from the Makefile without running `make'.
54378 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54379 test -z "$DEPDIR" && continue
54380 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54381 test -z "am__include" && continue
54382 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54383 # When using ansi2knr, U may be empty or an underscore; expand it
54384 U=`sed -n 's/^U = //p' < "$mf"`
54385 # Find all dependency output files, they are included files with
54386 # $(DEPDIR) in their names. We invoke sed twice because it is the
54387 # simplest approach to changing $(DEPDIR) to its actual value in the
54389 for file in `sed -n "
54390 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54391 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54392 # Make sure the directory exists.
54393 test -f "$dirpart/$file" && continue
54394 fdir=`(dirname "$file") 2>/dev/null ||
54395 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54396 X"$file" : 'X\(//\)[^/]' \| \
54397 X"$file" : 'X\(//\)$' \| \
54398 X"$file" : 'X\(/\)' \| \
54399 . : '\(.\)' 2>/dev/null ||
54401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54403 /^X\(\/\/\)$/{ s//\1/; q; }
54404 /^X\(\/\).*/{ s//\1/; q; }
54406 { if $as_mkdir_p; then
54407 mkdir -p $dirpart/$fdir
54409 as_dir=$dirpart/$fdir
54411 while test ! -d "$as_dir"; do
54412 as_dirs="$as_dir $as_dirs"
54413 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54415 X"$as_dir" : 'X\(//\)[^/]' \| \
54416 X"$as_dir" : 'X\(//\)$' \| \
54417 X"$as_dir" : 'X\(/\)' \| \
54418 . : '\(.\)' 2>/dev/null ||
54420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54422 /^X\(\/\/\)$/{ s//\1/; q; }
54423 /^X\(\/\).*/{ s//\1/; q; }
54426 test ! -n "$as_dirs" || mkdir $as_dirs
54427 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54428 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54429 { (exit 1); exit 1; }; }; }
54431 # echo "creating $dirpart/$file"
54432 echo '# dummy' > "$dirpart/$file"
54439 BACKENDSC="servers/slapd/backends.c"
54440 echo "Making $BACKENDSC"
54442 cat > $BACKENDSC << ENDX
54443 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54445 * Copyright 1998-2005 The OpenLDAP Foundation.
54446 * All rights reserved.
54448 * Redistribution and use in source and binary forms, with or without
54449 * modification, are permitted only as authorized by the OpenLDAP
54452 * A copy of this license is available in the file LICENSE in the
54453 * top-level directory of the distribution or, alternatively, at
54454 * <http://www.OpenLDAP.org/license.html>.
54456 /* This file is automatically generated by configure; please do not edit. */
54458 #include "portable.h"
54462 if test "${STATIC_BACKENDS}"; then
54463 for b in config ${STATIC_BACKENDS}; do
54464 bb=`echo "${b}" | sed -e 's/back-//'`
54465 cat >> $BACKENDSC << ENDX
54466 extern BI_init ${bb}_back_initialize;
54470 cat >> $BACKENDSC << ENDX
54472 BackendInfo slap_binfo[] = {
54475 for b in config ${STATIC_BACKENDS}; do
54476 bb=`echo "${b}" | sed -e 's/back-//'`
54477 echo " Add ${bb} ..."
54478 cat >> $BACKENDSC << ENDX
54479 { "${bb}", ${bb}_back_initialize },
54483 cat >> $BACKENDSC << ENDX
54487 /* end of generated file */
54491 echo Please run \"make depend\" to build dependencies
54497 cat >>$CONFIG_STATUS <<\_ACEOF
54499 { (exit 0); exit 0; }
54501 chmod +x $CONFIG_STATUS
54502 ac_clean_files=$ac_clean_files_save
54505 # configure is writing to config.log, and then calls config.status.
54506 # config.status does its own redirection, appending to config.log.
54507 # Unfortunately, on DOS this fails, as config.log is still kept open
54508 # by configure, so config.status won't be able to write to it; its
54509 # output is simply discarded. So we exec the FD to /dev/null,
54510 # effectively closing config.log, so it can be properly (re)opened and
54511 # appended to by config.status. When coming back to configure, we
54512 # need to make the FD available again.
54513 if test "$no_create" != yes; then
54515 ac_config_status_args=
54516 test "$silent" = yes &&
54517 ac_config_status_args="$ac_config_status_args --quiet"
54519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54522 # would make configure fail if this is the last instruction.
54523 $ac_cs_success || { (exit 1); exit 1; }