2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.586.2.21 2005/08/25 07:48:28 hyc 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]
1040 SLAPD (Standalone LDAP Daemon) Options:
1041 --enable-slapd enable building slapd [yes]
1042 --enable-aci enable per-object ACIs (experimental) [no]
1043 --enable-cleartext enable cleartext passwords [yes]
1044 --enable-crypt enable crypt(3) passwords [no]
1045 --enable-lmpasswd enable LAN Manager passwords [no]
1046 --enable-spasswd enable (Cyrus) SASL password verification [no]
1047 --enable-modules enable dynamic module support [no]
1048 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1049 --enable-rlookups enable reverse lookups of client hostnames [no]
1050 --enable-slapi enable SLAPI support (experimental) [no]
1051 --enable-slp enable SLPv2 support [no]
1052 --enable-wrappers enable tcp wrapper support [no]
1054 SLAPD Backend Options:
1055 --enable-backends enable all available backends no|yes|mod
1056 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1057 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1058 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1059 --enable-ldap enable ldap backend no|yes|mod [no]
1060 --enable-ldbm enable ldbm backend no|yes|mod [no]
1061 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1062 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1063 --enable-meta enable metadirectory backend no|yes|mod [no]
1064 --enable-monitor enable monitor backend no|yes|mod [yes]
1065 --enable-null enable null backend no|yes|mod [no]
1066 --enable-passwd enable passwd backend no|yes|mod [no]
1067 --enable-perl enable perl backend no|yes|mod [no]
1068 --enable-relay enable relay backend no|yes|mod [yes]
1069 --enable-shell enable shell backend no|yes|mod [no]
1070 --enable-sql enable sql backend no|yes|mod [no]
1072 SLAPD Overlay Options:
1073 --enable-overlays enable all available overlays no|yes|mod
1074 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1075 --enable-denyop Deny Operation overlay no|yes|mod [no]
1076 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1077 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1078 --enable-glue Backend Glue overlay no|yes|mod [yes]
1079 --enable-lastmod Last Modification overlay no|yes|mod [no]
1080 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1081 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1082 --enable-refint Referential Integrity overlay no|yes|mod [no]
1083 --enable-retcode Return Code testing overlay no|yes|mod [no]
1084 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1085 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1086 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1087 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1089 SLURPD (Replication Daemon) Options:
1090 --enable-slurpd enable building slurpd [auto]
1092 Library Generation & Linking Options
1093 --enable-static[=PKGS]
1094 build static libraries [default=yes]
1095 --enable-shared[=PKGS]
1096 build shared libraries [default=yes]
1097 --enable-fast-install[=PKGS]
1098 optimize for fast installation [default=yes]
1099 --disable-dependency-tracking speeds up one-time build
1100 --enable-dependency-tracking do not reject slow dependency extractors
1101 --disable-libtool-lock avoid locking (might break parallel builds)
1104 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1105 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1106 --with-subdir=DIR change default subdirectory used for installs
1107 --with-cyrus-sasl with Cyrus SASL support [auto]
1108 --with-fetch with fetch(3) URL support [auto]
1109 --with-threads with threads [auto]
1110 --with-tls with TLS/SSL support [auto]
1111 --with-yielding-select with implicitly yielding select [auto]
1112 --with-multiple-precision
1113 multiple precision support for statistics
1114 auto|bignum|gmp [auto]
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
2201 # Check whether --enable-debug or --disable-debug was given.
2202 if test "${enable_debug+set}" = set; then
2203 enableval="$enable_debug"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2213 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2214 { (exit 1); exit 1; }; }
2216 ol_enable_debug="$ol_arg"
2221 # end --enable-debug
2222 # OpenLDAP --enable-dynamic
2224 # Check whether --enable-dynamic or --disable-dynamic was given.
2225 if test "${enable_dynamic+set}" = set; then
2226 enableval="$enable_dynamic"
2229 for ol_val in auto yes no ; do
2230 if test "$enableval" = "$ol_val" ; then
2234 if test "$ol_arg" = "invalid" ; then
2235 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2236 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2237 { (exit 1); exit 1; }; }
2239 ol_enable_dynamic="$ol_arg"
2242 ol_enable_dynamic=no
2244 # end --enable-dynamic
2245 # OpenLDAP --enable-syslog
2247 # Check whether --enable-syslog or --disable-syslog was given.
2248 if test "${enable_syslog+set}" = set; then
2249 enableval="$enable_syslog"
2252 for ol_val in auto yes no ; do
2253 if test "$enableval" = "$ol_val" ; then
2257 if test "$ol_arg" = "invalid" ; then
2258 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2259 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2260 { (exit 1); exit 1; }; }
2262 ol_enable_syslog="$ol_arg"
2265 ol_enable_syslog=auto
2267 # end --enable-syslog
2268 # OpenLDAP --enable-proctitle
2270 # Check whether --enable-proctitle or --disable-proctitle was given.
2271 if test "${enable_proctitle+set}" = set; then
2272 enableval="$enable_proctitle"
2275 for ol_val in auto yes no ; do
2276 if test "$enableval" = "$ol_val" ; then
2280 if test "$ol_arg" = "invalid" ; then
2281 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2282 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2283 { (exit 1); exit 1; }; }
2285 ol_enable_proctitle="$ol_arg"
2288 ol_enable_proctitle=yes
2290 # end --enable-proctitle
2291 ol_enable_referrals=${ol_enable_referrals-no}
2292 ol_enable_kbind=${ol_enable_kbind-no}
2293 # OpenLDAP --enable-ipv6
2295 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2296 if test "${enable_ipv6+set}" = set; then
2297 enableval="$enable_ipv6"
2300 for ol_val in auto yes no ; do
2301 if test "$enableval" = "$ol_val" ; then
2305 if test "$ol_arg" = "invalid" ; then
2306 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2307 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2308 { (exit 1); exit 1; }; }
2310 ol_enable_ipv6="$ol_arg"
2316 # OpenLDAP --enable-local
2318 # Check whether --enable-local or --disable-local was given.
2319 if test "${enable_local+set}" = set; then
2320 enableval="$enable_local"
2323 for ol_val in auto yes no ; do
2324 if test "$enableval" = "$ol_val" ; then
2328 if test "$ol_arg" = "invalid" ; then
2329 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2330 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2331 { (exit 1); exit 1; }; }
2333 ol_enable_local="$ol_arg"
2336 ol_enable_local=auto
2338 # end --enable-local
2340 # OpenLDAP --with-cyrus_sasl
2342 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2343 if test "${with_cyrus_sasl+set}" = set; then
2344 withval="$with_cyrus_sasl"
2347 for ol_val in auto yes no ; do
2348 if test "$withval" = "$ol_val" ; then
2352 if test "$ol_arg" = "invalid" ; then
2353 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2354 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2355 { (exit 1); exit 1; }; }
2357 ol_with_cyrus_sasl="$ol_arg"
2360 ol_with_cyrus_sasl="auto"
2361 fi; # end --with-cyrus_sasl
2363 # OpenLDAP --with-fetch
2365 # Check whether --with-fetch or --without-fetch was given.
2366 if test "${with_fetch+set}" = set; then
2367 withval="$with_fetch"
2370 for ol_val in auto yes no ; do
2371 if test "$withval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2377 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2378 { (exit 1); exit 1; }; }
2380 ol_with_fetch="$ol_arg"
2383 ol_with_fetch="auto"
2384 fi; # end --with-fetch
2386 ol_with_kerberos=${ol_with_kerberos-auto}
2387 # OpenLDAP --with-threads
2389 # Check whether --with-threads or --without-threads was given.
2390 if test "${with_threads+set}" = set; then
2391 withval="$with_threads"
2394 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2395 if test "$withval" = "$ol_val" ; then
2399 if test "$ol_arg" = "invalid" ; then
2400 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2401 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2402 { (exit 1); exit 1; }; }
2404 ol_with_threads="$ol_arg"
2407 ol_with_threads="auto"
2408 fi; # end --with-threads
2410 # OpenLDAP --with-tls
2412 # Check whether --with-tls or --without-tls was given.
2413 if test "${with_tls+set}" = set; then
2417 for ol_val in auto ssleay openssl yes no ; do
2418 if test "$withval" = "$ol_val" ; then
2422 if test "$ol_arg" = "invalid" ; then
2423 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2424 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2425 { (exit 1); exit 1; }; }
2427 ol_with_tls="$ol_arg"
2431 fi; # end --with-tls
2433 # OpenLDAP --with-yielding_select
2435 # Check whether --with-yielding_select or --without-yielding_select was given.
2436 if test "${with_yielding_select+set}" = set; then
2437 withval="$with_yielding_select"
2440 for ol_val in auto yes no manual ; do
2441 if test "$withval" = "$ol_val" ; then
2445 if test "$ol_arg" = "invalid" ; then
2446 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2447 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2448 { (exit 1); exit 1; }; }
2450 ol_with_yielding_select="$ol_arg"
2453 ol_with_yielding_select="auto"
2454 fi; # end --with-yielding_select
2456 # OpenLDAP --with-multiple_precision
2458 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2459 if test "${with_multiple_precision+set}" = set; then
2460 withval="$with_multiple_precision"
2463 for ol_val in auto bignum gmp yes no ; do
2464 if test "$withval" = "$ol_val" ; then
2468 if test "$ol_arg" = "invalid" ; then
2469 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2470 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2471 { (exit 1); exit 1; }; }
2473 ol_with_multiple_precision="$ol_arg"
2476 ol_with_multiple_precision="auto"
2477 fi; # end --with-multiple_precision
2481 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2482 if test "${enable_xxslapdoptions+set}" = set; then
2483 enableval="$enable_xxslapdoptions"
2486 # OpenLDAP --enable-slapd
2488 # Check whether --enable-slapd or --disable-slapd was given.
2489 if test "${enable_slapd+set}" = set; then
2490 enableval="$enable_slapd"
2493 for ol_val in auto yes no ; do
2494 if test "$enableval" = "$ol_val" ; then
2498 if test "$ol_arg" = "invalid" ; then
2499 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2500 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2501 { (exit 1); exit 1; }; }
2503 ol_enable_slapd="$ol_arg"
2508 # end --enable-slapd
2509 # OpenLDAP --enable-aci
2511 # Check whether --enable-aci or --disable-aci was given.
2512 if test "${enable_aci+set}" = set; then
2513 enableval="$enable_aci"
2516 for ol_val in auto yes no ; do
2517 if test "$enableval" = "$ol_val" ; then
2521 if test "$ol_arg" = "invalid" ; then
2522 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2523 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2524 { (exit 1); exit 1; }; }
2526 ol_enable_aci="$ol_arg"
2532 # OpenLDAP --enable-cleartext
2534 # Check whether --enable-cleartext or --disable-cleartext was given.
2535 if test "${enable_cleartext+set}" = set; then
2536 enableval="$enable_cleartext"
2539 for ol_val in auto yes no ; do
2540 if test "$enableval" = "$ol_val" ; then
2544 if test "$ol_arg" = "invalid" ; then
2545 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2546 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2547 { (exit 1); exit 1; }; }
2549 ol_enable_cleartext="$ol_arg"
2552 ol_enable_cleartext=yes
2554 # end --enable-cleartext
2555 # OpenLDAP --enable-crypt
2557 # Check whether --enable-crypt or --disable-crypt was given.
2558 if test "${enable_crypt+set}" = set; then
2559 enableval="$enable_crypt"
2562 for ol_val in auto yes no ; do
2563 if test "$enableval" = "$ol_val" ; then
2567 if test "$ol_arg" = "invalid" ; then
2568 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2569 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2570 { (exit 1); exit 1; }; }
2572 ol_enable_crypt="$ol_arg"
2577 # end --enable-crypt
2578 # OpenLDAP --enable-lmpasswd
2580 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2581 if test "${enable_lmpasswd+set}" = set; then
2582 enableval="$enable_lmpasswd"
2585 for ol_val in auto yes no ; do
2586 if test "$enableval" = "$ol_val" ; then
2590 if test "$ol_arg" = "invalid" ; then
2591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2592 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2593 { (exit 1); exit 1; }; }
2595 ol_enable_lmpasswd="$ol_arg"
2598 ol_enable_lmpasswd=no
2600 # end --enable-lmpasswd
2601 # OpenLDAP --enable-spasswd
2603 # Check whether --enable-spasswd or --disable-spasswd was given.
2604 if test "${enable_spasswd+set}" = set; then
2605 enableval="$enable_spasswd"
2608 for ol_val in auto yes no ; do
2609 if test "$enableval" = "$ol_val" ; then
2613 if test "$ol_arg" = "invalid" ; then
2614 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2615 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2616 { (exit 1); exit 1; }; }
2618 ol_enable_spasswd="$ol_arg"
2621 ol_enable_spasswd=no
2623 # end --enable-spasswd
2624 # OpenLDAP --enable-modules
2626 # Check whether --enable-modules or --disable-modules was given.
2627 if test "${enable_modules+set}" = set; then
2628 enableval="$enable_modules"
2631 for ol_val in auto yes no ; do
2632 if test "$enableval" = "$ol_val" ; then
2636 if test "$ol_arg" = "invalid" ; then
2637 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2638 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2639 { (exit 1); exit 1; }; }
2641 ol_enable_modules="$ol_arg"
2644 ol_enable_modules=no
2646 # end --enable-modules
2647 ol_enable_multimaster=${ol_enable_multimaster-no}
2648 # OpenLDAP --enable-rewrite
2650 # Check whether --enable-rewrite or --disable-rewrite was given.
2651 if test "${enable_rewrite+set}" = set; then
2652 enableval="$enable_rewrite"
2655 for ol_val in auto yes no ; do
2656 if test "$enableval" = "$ol_val" ; then
2660 if test "$ol_arg" = "invalid" ; then
2661 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2662 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2663 { (exit 1); exit 1; }; }
2665 ol_enable_rewrite="$ol_arg"
2668 ol_enable_rewrite=auto
2670 # end --enable-rewrite
2671 # OpenLDAP --enable-rlookups
2673 # Check whether --enable-rlookups or --disable-rlookups was given.
2674 if test "${enable_rlookups+set}" = set; then
2675 enableval="$enable_rlookups"
2678 for ol_val in auto yes no ; do
2679 if test "$enableval" = "$ol_val" ; then
2683 if test "$ol_arg" = "invalid" ; then
2684 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2685 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2686 { (exit 1); exit 1; }; }
2688 ol_enable_rlookups="$ol_arg"
2691 ol_enable_rlookups=no
2693 # end --enable-rlookups
2694 # OpenLDAP --enable-slapi
2696 # Check whether --enable-slapi or --disable-slapi was given.
2697 if test "${enable_slapi+set}" = set; then
2698 enableval="$enable_slapi"
2701 for ol_val in auto yes no ; do
2702 if test "$enableval" = "$ol_val" ; then
2706 if test "$ol_arg" = "invalid" ; then
2707 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2708 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2709 { (exit 1); exit 1; }; }
2711 ol_enable_slapi="$ol_arg"
2716 # end --enable-slapi
2717 # OpenLDAP --enable-slp
2719 # Check whether --enable-slp or --disable-slp was given.
2720 if test "${enable_slp+set}" = set; then
2721 enableval="$enable_slp"
2724 for ol_val in auto yes no ; do
2725 if test "$enableval" = "$ol_val" ; then
2729 if test "$ol_arg" = "invalid" ; then
2730 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2731 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2732 { (exit 1); exit 1; }; }
2734 ol_enable_slp="$ol_arg"
2740 # OpenLDAP --enable-wrappers
2742 # Check whether --enable-wrappers or --disable-wrappers was given.
2743 if test "${enable_wrappers+set}" = set; then
2744 enableval="$enable_wrappers"
2747 for ol_val in auto yes no ; do
2748 if test "$enableval" = "$ol_val" ; then
2752 if test "$ol_arg" = "invalid" ; then
2753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2754 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2755 { (exit 1); exit 1; }; }
2757 ol_enable_wrappers="$ol_arg"
2760 ol_enable_wrappers=no
2762 # end --enable-wrappers
2764 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2765 passwd perl relay shell sql"
2767 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2768 if test "${enable_xxslapbackends+set}" = set; then
2769 enableval="$enable_xxslapbackends"
2773 # OpenLDAP --enable-backends
2775 # Check whether --enable-backends or --disable-backends was given.
2776 if test "${enable_backends+set}" = set; then
2777 enableval="$enable_backends"
2780 for ol_val in no yes mod ; do
2781 if test "$enableval" = "$ol_val" ; then
2785 if test "$ol_arg" = "invalid" ; then
2786 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2787 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2788 { (exit 1); exit 1; }; }
2790 ol_enable_backends="$ol_arg"
2793 # end --enable-backends
2794 # OpenLDAP --enable-bdb
2796 # Check whether --enable-bdb or --disable-bdb was given.
2797 if test "${enable_bdb+set}" = set; then
2798 enableval="$enable_bdb"
2801 for ol_val in no yes mod ; do
2802 if test "$enableval" = "$ol_val" ; then
2806 if test "$ol_arg" = "invalid" ; then
2807 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2808 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2809 { (exit 1); exit 1; }; }
2811 ol_enable_bdb="$ol_arg"
2814 ol_enable_bdb=${ol_enable_backends:-yes}
2817 # OpenLDAP --enable-dnssrv
2819 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2820 if test "${enable_dnssrv+set}" = set; then
2821 enableval="$enable_dnssrv"
2824 for ol_val in no yes mod ; do
2825 if test "$enableval" = "$ol_val" ; then
2829 if test "$ol_arg" = "invalid" ; then
2830 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2831 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2832 { (exit 1); exit 1; }; }
2834 ol_enable_dnssrv="$ol_arg"
2837 ol_enable_dnssrv=${ol_enable_backends:-no}
2839 # end --enable-dnssrv
2840 # OpenLDAP --enable-hdb
2842 # Check whether --enable-hdb or --disable-hdb was given.
2843 if test "${enable_hdb+set}" = set; then
2844 enableval="$enable_hdb"
2847 for ol_val in no yes mod ; do
2848 if test "$enableval" = "$ol_val" ; then
2852 if test "$ol_arg" = "invalid" ; then
2853 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2854 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2855 { (exit 1); exit 1; }; }
2857 ol_enable_hdb="$ol_arg"
2860 ol_enable_hdb=${ol_enable_backends:-yes}
2863 # OpenLDAP --enable-ldap
2865 # Check whether --enable-ldap or --disable-ldap was given.
2866 if test "${enable_ldap+set}" = set; then
2867 enableval="$enable_ldap"
2870 for ol_val in no yes mod ; do
2871 if test "$enableval" = "$ol_val" ; then
2875 if test "$ol_arg" = "invalid" ; then
2876 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2877 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2878 { (exit 1); exit 1; }; }
2880 ol_enable_ldap="$ol_arg"
2883 ol_enable_ldap=${ol_enable_backends:-no}
2886 # OpenLDAP --enable-ldbm
2888 # Check whether --enable-ldbm or --disable-ldbm was given.
2889 if test "${enable_ldbm+set}" = set; then
2890 enableval="$enable_ldbm"
2893 for ol_val in no yes mod ; do
2894 if test "$enableval" = "$ol_val" ; then
2898 if test "$ol_arg" = "invalid" ; then
2899 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2900 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2901 { (exit 1); exit 1; }; }
2903 ol_enable_ldbm="$ol_arg"
2906 ol_enable_ldbm=${ol_enable_backends:-no}
2909 # OpenLDAP --enable-ldbm_api
2911 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2912 if test "${enable_ldbm_api+set}" = set; then
2913 enableval="$enable_ldbm_api"
2916 for ol_val in auto berkeley bcompat mdbm gdbm ; 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-ldbm_api" >&5
2923 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2924 { (exit 1); exit 1; }; }
2926 ol_enable_ldbm_api="$ol_arg"
2929 ol_enable_ldbm_api=auto
2931 # end --enable-ldbm_api
2933 # OpenLDAP --enable-ldbm_type
2935 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2936 if test "${enable_ldbm_type+set}" = set; then
2937 enableval="$enable_ldbm_type"
2940 for ol_val in auto btree hash ; do
2941 if test "$enableval" = "$ol_val" ; then
2945 if test "$ol_arg" = "invalid" ; then
2946 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2947 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2948 { (exit 1); exit 1; }; }
2950 ol_enable_ldbm_type="$ol_arg"
2953 ol_enable_ldbm_type=auto
2955 # end --enable-ldbm_type
2957 # OpenLDAP --enable-meta
2959 # Check whether --enable-meta or --disable-meta was given.
2960 if test "${enable_meta+set}" = set; then
2961 enableval="$enable_meta"
2964 for ol_val in no yes mod ; do
2965 if test "$enableval" = "$ol_val" ; then
2969 if test "$ol_arg" = "invalid" ; then
2970 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2971 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2972 { (exit 1); exit 1; }; }
2974 ol_enable_meta="$ol_arg"
2977 ol_enable_meta=${ol_enable_backends:-no}
2980 # OpenLDAP --enable-monitor
2982 # Check whether --enable-monitor or --disable-monitor was given.
2983 if test "${enable_monitor+set}" = set; then
2984 enableval="$enable_monitor"
2987 for ol_val in no yes mod ; do
2988 if test "$enableval" = "$ol_val" ; then
2992 if test "$ol_arg" = "invalid" ; then
2993 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2994 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2995 { (exit 1); exit 1; }; }
2997 ol_enable_monitor="$ol_arg"
3000 ol_enable_monitor=${ol_enable_backends:-yes}
3002 # end --enable-monitor
3003 # OpenLDAP --enable-null
3005 # Check whether --enable-null or --disable-null was given.
3006 if test "${enable_null+set}" = set; then
3007 enableval="$enable_null"
3010 for ol_val in no yes mod ; do
3011 if test "$enableval" = "$ol_val" ; then
3015 if test "$ol_arg" = "invalid" ; then
3016 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3017 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3018 { (exit 1); exit 1; }; }
3020 ol_enable_null="$ol_arg"
3023 ol_enable_null=${ol_enable_backends:-no}
3026 # OpenLDAP --enable-passwd
3028 # Check whether --enable-passwd or --disable-passwd was given.
3029 if test "${enable_passwd+set}" = set; then
3030 enableval="$enable_passwd"
3033 for ol_val in no yes mod ; do
3034 if test "$enableval" = "$ol_val" ; then
3038 if test "$ol_arg" = "invalid" ; then
3039 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3041 { (exit 1); exit 1; }; }
3043 ol_enable_passwd="$ol_arg"
3046 ol_enable_passwd=${ol_enable_backends:-no}
3048 # end --enable-passwd
3049 # OpenLDAP --enable-perl
3051 # Check whether --enable-perl or --disable-perl was given.
3052 if test "${enable_perl+set}" = set; then
3053 enableval="$enable_perl"
3056 for ol_val in no yes mod ; do
3057 if test "$enableval" = "$ol_val" ; then
3061 if test "$ol_arg" = "invalid" ; then
3062 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3063 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3064 { (exit 1); exit 1; }; }
3066 ol_enable_perl="$ol_arg"
3069 ol_enable_perl=${ol_enable_backends:-no}
3072 # OpenLDAP --enable-relay
3074 # Check whether --enable-relay or --disable-relay was given.
3075 if test "${enable_relay+set}" = set; then
3076 enableval="$enable_relay"
3079 for ol_val in no yes mod ; do
3080 if test "$enableval" = "$ol_val" ; then
3084 if test "$ol_arg" = "invalid" ; then
3085 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3086 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3087 { (exit 1); exit 1; }; }
3089 ol_enable_relay="$ol_arg"
3092 ol_enable_relay=${ol_enable_backends:-yes}
3094 # end --enable-relay
3095 # OpenLDAP --enable-shell
3097 # Check whether --enable-shell or --disable-shell was given.
3098 if test "${enable_shell+set}" = set; then
3099 enableval="$enable_shell"
3102 for ol_val in no yes mod ; do
3103 if test "$enableval" = "$ol_val" ; then
3107 if test "$ol_arg" = "invalid" ; then
3108 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3109 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3110 { (exit 1); exit 1; }; }
3112 ol_enable_shell="$ol_arg"
3115 ol_enable_shell=${ol_enable_backends:-no}
3117 # end --enable-shell
3118 # OpenLDAP --enable-sql
3120 # Check whether --enable-sql or --disable-sql was given.
3121 if test "${enable_sql+set}" = set; then
3122 enableval="$enable_sql"
3125 for ol_val in no yes mod ; do
3126 if test "$enableval" = "$ol_val" ; then
3130 if test "$ol_arg" = "invalid" ; then
3131 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3132 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3133 { (exit 1); exit 1; }; }
3135 ol_enable_sql="$ol_arg"
3138 ol_enable_sql=${ol_enable_backends:-no}
3142 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3143 refint retcode rwm syncprov translucent unique"
3145 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3146 if test "${enable_xxslapoverlays+set}" = set; then
3147 enableval="$enable_xxslapoverlays"
3151 # OpenLDAP --enable-overlays
3153 # Check whether --enable-overlays or --disable-overlays was given.
3154 if test "${enable_overlays+set}" = set; then
3155 enableval="$enable_overlays"
3158 for ol_val in no yes mod ; do
3159 if test "$enableval" = "$ol_val" ; then
3163 if test "$ol_arg" = "invalid" ; then
3164 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3165 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3166 { (exit 1); exit 1; }; }
3168 ol_enable_overlays="$ol_arg"
3171 # end --enable-overlays
3172 # OpenLDAP --enable-accesslog
3174 # Check whether --enable-accesslog or --disable-accesslog was given.
3175 if test "${enable_accesslog+set}" = set; then
3176 enableval="$enable_accesslog"
3179 for ol_val in no yes mod ; do
3180 if test "$enableval" = "$ol_val" ; then
3184 if test "$ol_arg" = "invalid" ; then
3185 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3186 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3187 { (exit 1); exit 1; }; }
3189 ol_enable_accesslog="$ol_arg"
3192 ol_enable_accesslog=${ol_enable_overlays:-no}
3194 # end --enable-accesslog
3196 # OpenLDAP --enable-denyop
3198 # Check whether --enable-denyop or --disable-denyop was given.
3199 if test "${enable_denyop+set}" = set; then
3200 enableval="$enable_denyop"
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-denyop" >&5
3210 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3211 { (exit 1); exit 1; }; }
3213 ol_enable_denyop="$ol_arg"
3216 ol_enable_denyop=${ol_enable_overlays:-no}
3218 # end --enable-denyop
3220 # OpenLDAP --enable-dyngroup
3222 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3223 if test "${enable_dyngroup+set}" = set; then
3224 enableval="$enable_dyngroup"
3227 for ol_val in no yes mod ; do
3228 if test "$enableval" = "$ol_val" ; then
3232 if test "$ol_arg" = "invalid" ; then
3233 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3234 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3235 { (exit 1); exit 1; }; }
3237 ol_enable_dyngroup="$ol_arg"
3240 ol_enable_dyngroup=${ol_enable_overlays:-no}
3242 # end --enable-dyngroup
3244 # OpenLDAP --enable-dynlist
3246 # Check whether --enable-dynlist or --disable-dynlist was given.
3247 if test "${enable_dynlist+set}" = set; then
3248 enableval="$enable_dynlist"
3251 for ol_val in no yes mod ; do
3252 if test "$enableval" = "$ol_val" ; then
3256 if test "$ol_arg" = "invalid" ; then
3257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3258 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3259 { (exit 1); exit 1; }; }
3261 ol_enable_dynlist="$ol_arg"
3264 ol_enable_dynlist=${ol_enable_overlays:-no}
3266 # end --enable-dynlist
3268 # OpenLDAP --enable-glue
3270 # Check whether --enable-glue or --disable-glue was given.
3271 if test "${enable_glue+set}" = set; then
3272 enableval="$enable_glue"
3275 for ol_val in no yes mod ; do
3276 if test "$enableval" = "$ol_val" ; then
3280 if test "$ol_arg" = "invalid" ; then
3281 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3282 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3283 { (exit 1); exit 1; }; }
3285 ol_enable_glue="$ol_arg"
3288 ol_enable_glue=${ol_enable_overlays:-yes}
3292 # OpenLDAP --enable-lastmod
3294 # Check whether --enable-lastmod or --disable-lastmod was given.
3295 if test "${enable_lastmod+set}" = set; then
3296 enableval="$enable_lastmod"
3299 for ol_val in no yes mod ; do
3300 if test "$enableval" = "$ol_val" ; then
3304 if test "$ol_arg" = "invalid" ; then
3305 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3306 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3307 { (exit 1); exit 1; }; }
3309 ol_enable_lastmod="$ol_arg"
3312 ol_enable_lastmod=${ol_enable_overlays:-no}
3314 # end --enable-lastmod
3316 # OpenLDAP --enable-ppolicy
3318 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3319 if test "${enable_ppolicy+set}" = set; then
3320 enableval="$enable_ppolicy"
3323 for ol_val in no yes mod ; do
3324 if test "$enableval" = "$ol_val" ; then
3328 if test "$ol_arg" = "invalid" ; then
3329 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3330 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3331 { (exit 1); exit 1; }; }
3333 ol_enable_ppolicy="$ol_arg"
3336 ol_enable_ppolicy=${ol_enable_overlays:-no}
3338 # end --enable-ppolicy
3340 # OpenLDAP --enable-proxycache
3342 # Check whether --enable-proxycache or --disable-proxycache was given.
3343 if test "${enable_proxycache+set}" = set; then
3344 enableval="$enable_proxycache"
3347 for ol_val in no yes mod ; do
3348 if test "$enableval" = "$ol_val" ; then
3352 if test "$ol_arg" = "invalid" ; then
3353 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3354 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3355 { (exit 1); exit 1; }; }
3357 ol_enable_proxycache="$ol_arg"
3360 ol_enable_proxycache=${ol_enable_overlays:-no}
3362 # end --enable-proxycache
3364 # OpenLDAP --enable-refint
3366 # Check whether --enable-refint or --disable-refint was given.
3367 if test "${enable_refint+set}" = set; then
3368 enableval="$enable_refint"
3371 for ol_val in no yes mod ; do
3372 if test "$enableval" = "$ol_val" ; then
3376 if test "$ol_arg" = "invalid" ; then
3377 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3378 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3379 { (exit 1); exit 1; }; }
3381 ol_enable_refint="$ol_arg"
3384 ol_enable_refint=${ol_enable_overlays:-no}
3386 # end --enable-refint
3388 # OpenLDAP --enable-retcode
3390 # Check whether --enable-retcode or --disable-retcode was given.
3391 if test "${enable_retcode+set}" = set; then
3392 enableval="$enable_retcode"
3395 for ol_val in no yes mod ; do
3396 if test "$enableval" = "$ol_val" ; then
3400 if test "$ol_arg" = "invalid" ; then
3401 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3402 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3403 { (exit 1); exit 1; }; }
3405 ol_enable_retcode="$ol_arg"
3408 ol_enable_retcode=${ol_enable_overlays:-no}
3410 # end --enable-retcode
3412 # OpenLDAP --enable-rwm
3414 # Check whether --enable-rwm or --disable-rwm was given.
3415 if test "${enable_rwm+set}" = set; then
3416 enableval="$enable_rwm"
3419 for ol_val in no yes mod ; do
3420 if test "$enableval" = "$ol_val" ; then
3424 if test "$ol_arg" = "invalid" ; then
3425 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3426 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3427 { (exit 1); exit 1; }; }
3429 ol_enable_rwm="$ol_arg"
3432 ol_enable_rwm=${ol_enable_overlays:-no}
3436 # OpenLDAP --enable-syncprov
3438 # Check whether --enable-syncprov or --disable-syncprov was given.
3439 if test "${enable_syncprov+set}" = set; then
3440 enableval="$enable_syncprov"
3443 for ol_val in no yes mod ; do
3444 if test "$enableval" = "$ol_val" ; then
3448 if test "$ol_arg" = "invalid" ; then
3449 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3450 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3451 { (exit 1); exit 1; }; }
3453 ol_enable_syncprov="$ol_arg"
3456 ol_enable_syncprov=${ol_enable_overlays:-yes}
3458 # end --enable-syncprov
3460 # OpenLDAP --enable-translucent
3462 # Check whether --enable-translucent or --disable-translucent was given.
3463 if test "${enable_translucent+set}" = set; then
3464 enableval="$enable_translucent"
3467 for ol_val in no yes mod ; do
3468 if test "$enableval" = "$ol_val" ; then
3472 if test "$ol_arg" = "invalid" ; then
3473 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3474 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3475 { (exit 1); exit 1; }; }
3477 ol_enable_translucent="$ol_arg"
3480 ol_enable_translucent=${ol_enable_overlays:-no}
3482 # end --enable-translucent
3484 # OpenLDAP --enable-unique
3486 # Check whether --enable-unique or --disable-unique was given.
3487 if test "${enable_unique+set}" = set; then
3488 enableval="$enable_unique"
3491 for ol_val in no yes mod ; do
3492 if test "$enableval" = "$ol_val" ; then
3496 if test "$ol_arg" = "invalid" ; then
3497 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3498 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3499 { (exit 1); exit 1; }; }
3501 ol_enable_unique="$ol_arg"
3504 ol_enable_unique=${ol_enable_overlays:-no}
3506 # end --enable-unique
3509 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3510 if test "${enable_xxslurpdoptions+set}" = set; then
3511 enableval="$enable_xxslurpdoptions"
3514 # OpenLDAP --enable-slurpd
3516 # Check whether --enable-slurpd or --disable-slurpd was given.
3517 if test "${enable_slurpd+set}" = set; then
3518 enableval="$enable_slurpd"
3521 for ol_val in auto yes no ; do
3522 if test "$enableval" = "$ol_val" ; then
3526 if test "$ol_arg" = "invalid" ; then
3527 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3528 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3529 { (exit 1); exit 1; }; }
3531 ol_enable_slurpd="$ol_arg"
3534 ol_enable_slurpd=auto
3536 # end --enable-slurpd
3538 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3539 if test "${enable_xxliboptions+set}" = set; then
3540 enableval="$enable_xxliboptions"
3543 # Check whether --enable-static or --disable-static was given.
3544 if test "${enable_static+set}" = set; then
3545 enableval="$enable_static"
3546 p=${PACKAGE-default}
3548 yes) enable_static=yes ;;
3549 no) enable_static=no ;;
3552 # Look at the argument we got. We use all the common list separators.
3553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3554 for pkg in $enableval; do
3556 if test "X$pkg" = "X$p"; then
3567 # Check whether --enable-shared or --disable-shared was given.
3568 if test "${enable_shared+set}" = set; then
3569 enableval="$enable_shared"
3570 p=${PACKAGE-default}
3572 yes) enable_shared=yes ;;
3573 no) enable_shared=no ;;
3576 # Look at the argument we got. We use all the common list separators.
3577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3578 for pkg in $enableval; do
3580 if test "X$pkg" = "X$p"; then
3594 if test $ol_enable_slapd = no ; then
3595 if test $ol_enable_slapi = yes ; then
3596 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3597 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3599 case "$ol_enable_backends" in yes | mod)
3600 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3601 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3603 for i in $Backends; do
3604 eval "ol_tmp=\$ol_enable_$i"
3605 if test $ol_tmp != no ; then
3606 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3607 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3608 eval "ol_enable_$i=no"
3611 if test $ol_enable_modules = yes ; then
3612 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3613 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3615 if test $ol_enable_multimaster = yes ; then
3616 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3617 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3619 if test $ol_enable_wrappers = yes ; then
3620 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3621 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3623 if test $ol_enable_rlookups = yes ; then
3624 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3625 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3627 if test $ol_enable_aci = yes ; then
3628 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3629 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3631 if test $ol_enable_ldbm_api != auto ; then
3632 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3633 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3635 if test $ol_enable_ldbm_type != auto ; then
3636 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3637 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3639 if test $ol_enable_slurpd = yes ; then
3640 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3641 echo "$as_me: error: slurpd requires slapd" >&2;}
3642 { (exit 1); exit 1; }; }
3644 if test $ol_enable_rewrite = yes ; then
3645 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3648 case "$ol_enable_overlays" in yes | mod)
3649 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3652 for i in $Overlays; do
3653 eval "ol_tmp=\$ol_enable_$i"
3654 if test $ol_tmp != no ; then
3655 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3657 eval "ol_enable_$i=no"
3661 # force settings to no
3666 ol_enable_modules=no
3667 ol_enable_multimaster=no
3668 ol_enable_rlookups=no
3670 ol_enable_wrappers=no
3672 ol_enable_ldbm_api=no
3673 ol_enable_ldbm_type=no
3677 ol_enable_rewrite=no
3679 elif test $ol_enable_ldbm = no ; then
3681 if test $ol_enable_ldbm_api != auto ; then
3682 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3683 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3686 if test $ol_enable_ldbm_type != auto ; then
3687 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3688 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3691 if test $ol_enable_modules != yes -a \
3692 $ol_enable_bdb = no -a \
3693 $ol_enable_dnssrv = no -a \
3694 $ol_enable_hdb = no -a \
3695 $ol_enable_ldap = no -a \
3696 $ol_enable_meta = no -a \
3697 $ol_enable_monitor = no -a \
3698 $ol_enable_null = no -a \
3699 $ol_enable_passwd = no -a \
3700 $ol_enable_perl = no -a \
3701 $ol_enable_relay = no -a \
3702 $ol_enable_shell = no -a \
3703 $ol_enable_sql = no ; then
3705 if test $ol_enable_slapd = yes ; then
3706 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3707 echo "$as_me: error: slapd requires a backend" >&2;}
3708 { (exit 1); exit 1; }; }
3710 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3711 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3716 ol_enable_ldbm_api=no
3717 ol_enable_ldbm_type=no
3719 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3720 ol_enable_ldbm_api=berkeley
3724 if test $ol_enable_ldbm_api = gdbm -a \
3725 $ol_enable_ldbm_type = btree ; then
3726 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3727 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3728 { (exit 1); exit 1; }; }
3730 if test $ol_enable_ldbm_api = mdbm -a \
3731 $ol_enable_ldbm_type = btree ; then
3732 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3733 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3734 { (exit 1); exit 1; }; }
3736 if test $ol_enable_ldbm_api = ndbm -a \
3737 $ol_enable_ldbm_type = btree ; then
3738 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3739 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3740 { (exit 1); exit 1; }; }
3743 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3744 if test $ol_enable_ldbm_api = auto ; then
3745 ol_enable_ldbm_api=berkeley
3746 elif test $ol_enable_ldbm_api != berkeley ; then
3747 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3748 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3749 { (exit 1); exit 1; }; }
3754 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3755 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3756 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3757 { (exit 1); exit 1; }; }
3760 if test $ol_enable_slurpd = yes ; then
3761 if test $ol_with_threads = no ; then
3762 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3763 echo "$as_me: error: slurpd requires threads" >&2;}
3764 { (exit 1); exit 1; }; }
3768 if test $ol_enable_lmpasswd = yes ; then
3769 if test $ol_with_tls = no ; then
3770 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3771 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3772 { (exit 1); exit 1; }; }
3776 if test $ol_enable_kbind = yes ; then
3777 if test $ol_with_kerberos = no ; then
3778 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3779 echo "$as_me: error: options require --with-kerberos" >&2;}
3780 { (exit 1); exit 1; }; }
3781 elif test $ol_with_kerberos = auto ; then
3782 ol_with_kerberos=yes
3785 elif test $ol_enable_kbind = no ; then
3786 if test $ol_with_kerberos = auto ; then
3788 elif test $ol_with_kerberos != no ; then
3789 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3790 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3795 if test $ol_enable_spasswd = yes ; then
3796 if test $ol_with_cyrus_sasl = no ; then
3797 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3798 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3799 { (exit 1); exit 1; }; }
3801 ol_with_cyrus_sasl=yes
3804 echo "$as_me:$LINENO: result: done" >&5
3805 echo "${ECHO_T}done" >&6
3849 BUILD_TRANSLUCENT=no
3852 SLAPD_STATIC_OVERLAYS=
3853 SLAPD_DYNAMIC_OVERLAYS=
3855 SLAPD_MODULES_LDFLAGS=
3856 SLAPD_MODULES_CPPFLAGS=
3858 SLAPD_STATIC_BACKENDS=back-ldif
3859 SLAPD_DYNAMIC_BACKENDS=
3884 cat >>confdefs.h <<\_ACEOF
3885 #define HAVE_MKVERSION 1
3893 *-*-aix*) if test -z "$CC" ; then
3894 case "$ol_with_threads" in
3895 auto | yes | posix) ol_aix_threads=yes ;;
3901 if test $ol_aix_threads = yes ; then
3902 if test -z "${CC}" ; then
3903 for ac_prog in cc_r xlc_r cc
3905 # Extract the first word of "$ac_prog", so it can be a program name with args.
3906 set dummy $ac_prog; ac_word=$2
3907 echo "$as_me:$LINENO: checking for $ac_word" >&5
3908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3909 if test "${ac_cv_prog_CC+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_CC="$ac_prog"
3923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 if test -n "$CC"; then
3933 echo "$as_me:$LINENO: result: $CC" >&5
3934 echo "${ECHO_T}$CC" >&6
3936 echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3940 test -n "$CC" && break
3944 if test "$CC" = cc ; then
3945 if test $ol_with_threads != auto ; then
3946 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3947 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3948 { (exit 1); exit 1; }; }
3950 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3951 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3957 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3958 ol_with_threads=posix
3959 ol_cv_pthread_create=yes
3963 if test -z "${CC}"; then
3964 for ac_prog in cc gcc
3966 # Extract the first word of "$ac_prog", so it can be a program name with args.
3967 set dummy $ac_prog; ac_word=$2
3968 echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3970 if test "${ac_cv_prog_CC+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 if test -n "$CC"; then
3974 ac_cv_prog_CC="$CC" # Let the user override the test.
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983 ac_cv_prog_CC="$ac_prog"
3984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 if test -n "$CC"; then
3994 echo "$as_me:$LINENO: result: $CC" >&5
3995 echo "${ECHO_T}$CC" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 test -n "$CC" && break
4003 test -n "$CC" || CC="missing"
4006 if test "${CC}" = "missing" ; then
4007 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4008 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4009 { (exit 1); exit 1; }; }
4013 if test -z "${AR}"; then
4014 for ac_prog in ar gar
4016 # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_prog_AR+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 if test -n "$AR"; then
4024 ac_cv_prog_AR="$AR" # Let the user override the test.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033 ac_cv_prog_AR="$ac_prog"
4034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 if test -n "$AR"; then
4044 echo "$as_me:$LINENO: result: $AR" >&5
4045 echo "${ECHO_T}$AR" >&6
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4051 test -n "$AR" && break
4053 test -n "$AR" || AR="missing"
4056 if test "${AR}" = "missing" ; then
4057 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4058 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4059 { (exit 1); exit 1; }; }
4067 # Check whether --enable-fast-install or --disable-fast-install was given.
4068 if test "${enable_fast_install+set}" = set; then
4069 enableval="$enable_fast_install"
4070 p=${PACKAGE-default}
4072 yes) enable_fast_install=yes ;;
4073 no) enable_fast_install=no ;;
4075 enable_fast_install=no
4076 # Look at the argument we got. We use all the common list separators.
4077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4078 for pkg in $enableval; do
4080 if test "X$pkg" = "X$p"; then
4081 enable_fast_install=yes
4088 enable_fast_install=yes
4091 DEPDIR="${am__leading_dot}deps"
4093 ac_config_commands="$ac_config_commands depfiles"
4096 am_make=${MAKE-make}
4097 cat > confinc << 'END'
4102 # If we don't find an include directive, just comment out the code.
4103 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4104 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4108 # First try GNU make style include.
4109 echo "include confinc" > confmf
4110 # We grep out `Entering directory' and `Leaving directory'
4111 # messages which can occur if `w' ends up in MAKEFLAGS.
4112 # In particular we don't look at `^make:' because GNU make might
4113 # be invoked under some other name (usually "gmake"), in which
4114 # case it prints its new name instead of `make'.
4115 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4120 # Now try BSD make style include.
4121 if test "$am__include" = "#"; then
4122 echo '.include "confinc"' > confmf
4123 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4124 am__include=.include
4131 echo "$as_me:$LINENO: result: $_am_result" >&5
4132 echo "${ECHO_T}$_am_result" >&6
4133 rm -f confinc confmf
4135 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4136 if test "${enable_dependency_tracking+set}" = set; then
4137 enableval="$enable_dependency_tracking"
4140 if test "x$enable_dependency_tracking" != xno; then
4141 am_depcomp="$ac_aux_dir/depcomp"
4146 if test "x$enable_dependency_tracking" != xno; then
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_CC+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -n "$CC"; then
4170 ac_cv_prog_CC="$CC" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 if test -n "$CC"; then
4190 echo "$as_me:$LINENO: result: $CC" >&5
4191 echo "${ECHO_T}$CC" >&6
4193 echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4198 if test -z "$ac_cv_prog_CC"; then
4200 # Extract the first word of "gcc", so it can be a program name with args.
4201 set dummy gcc; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 if test -n "$ac_ct_CC"; then
4208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_CC="gcc"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4229 echo "${ECHO_T}$ac_ct_CC" >&6
4231 echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4240 if test -z "$CC"; then
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}cc; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_CC+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if test -n "$CC"; then
4250 ac_cv_prog_CC="$CC" # Let the user override the test.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_CC="${ac_tool_prefix}cc"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 if test -n "$CC"; then
4270 echo "$as_me:$LINENO: result: $CC" >&5
4271 echo "${ECHO_T}$CC" >&6
4273 echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4278 if test -z "$ac_cv_prog_CC"; then
4280 # Extract the first word of "cc", so it can be a program name with args.
4281 set dummy cc; ac_word=$2
4282 echo "$as_me:$LINENO: checking for $ac_word" >&5
4283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 if test -n "$ac_ct_CC"; then
4288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4297 ac_cv_prog_ac_ct_CC="cc"
4298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4307 if test -n "$ac_ct_CC"; then
4308 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4309 echo "${ECHO_T}$ac_ct_CC" >&6
4311 echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4321 if test -z "$CC"; then
4322 # Extract the first word of "cc", so it can be a program name with args.
4323 set dummy cc; ac_word=$2
4324 echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326 if test "${ac_cv_prog_CC+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 if test -n "$CC"; then
4330 ac_cv_prog_CC="$CC" # Let the user override the test.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4341 ac_prog_rejected=yes
4345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 if test $ac_prog_rejected = yes; then
4352 # We found a bogon in the path, so make sure we never use it.
4353 set dummy $ac_cv_prog_CC
4355 if test $# != 0; then
4356 # We chose a different compiler from the bogus one.
4357 # However, it has the same basename, so the bogon will be chosen
4358 # first if we set CC to just the basename; use the full file name.
4360 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4366 if test -n "$CC"; then
4367 echo "$as_me:$LINENO: result: $CC" >&5
4368 echo "${ECHO_T}$CC" >&6
4370 echo "$as_me:$LINENO: result: no" >&5
4371 echo "${ECHO_T}no" >&6
4375 if test -z "$CC"; then
4376 if test -n "$ac_tool_prefix"; then
4379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_CC+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test -n "$CC"; then
4387 ac_cv_prog_CC="$CC" # Let the user override the test.
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 if test -n "$CC"; then
4407 echo "$as_me:$LINENO: result: $CC" >&5
4408 echo "${ECHO_T}$CC" >&6
4410 echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6
4414 test -n "$CC" && break
4417 if test -z "$CC"; then
4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 if test -n "$ac_ct_CC"; then
4429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_ac_ct_CC="$ac_prog"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4448 if test -n "$ac_ct_CC"; then
4449 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4450 echo "${ECHO_T}$ac_ct_CC" >&6
4452 echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4456 test -n "$ac_ct_CC" && break
4465 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4466 See \`config.log' for more details." >&5
4467 echo "$as_me: error: no acceptable C compiler found in \$PATH
4468 See \`config.log' for more details." >&2;}
4469 { (exit 1); exit 1; }; }
4471 # Provide some information about the compiler.
4472 echo "$as_me:$LINENO:" \
4473 "checking for C compiler version" >&5
4474 ac_compiler=`set X $ac_compile; echo $2`
4475 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4476 (eval $ac_compiler --version </dev/null >&5) 2>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }
4480 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4481 (eval $ac_compiler -v </dev/null >&5) 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }
4485 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4486 (eval $ac_compiler -V </dev/null >&5) 2>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4506 ac_clean_files_save=$ac_clean_files
4507 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4508 # Try to create an executable without -o first, disregard a.out.
4509 # It will help us diagnose broken compilers, and finding out an intuition
4511 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4512 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4513 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4514 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4515 (eval $ac_link_default) 2>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; then
4519 # Find the output, starting from the most likely. This scheme is
4520 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4523 # Be careful to initialize this variable, since it used to be cached.
4524 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4526 # b.out is created by i960 compilers.
4527 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4529 test -f "$ac_file" || continue
4531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4534 # This is the source file.
4537 # We found the default executable, but exeext='' is most
4541 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4542 # FIXME: I believe we export ac_cv_exeext for Libtool,
4543 # but it would be cool to find out if it's true. Does anybody
4544 # maintain Libtool? --akim.
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4556 See \`config.log' for more details." >&5
4557 echo "$as_me: error: C compiler cannot create executables
4558 See \`config.log' for more details." >&2;}
4559 { (exit 77); exit 77; }; }
4562 ac_exeext=$ac_cv_exeext
4563 echo "$as_me:$LINENO: result: $ac_file" >&5
4564 echo "${ECHO_T}$ac_file" >&6
4566 # Check the compiler produces executables we can run. If not, either
4567 # the compiler is broken, or we cross compile.
4568 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4569 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4570 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4571 # If not cross compiling, check that we can run a simple program.
4572 if test "$cross_compiling" != yes; then
4573 if { ac_try='./$ac_file'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4581 if test "$cross_compiling" = maybe; then
4584 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4585 If you meant to cross compile, use \`--host'.
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: cannot run C compiled programs.
4588 If you meant to cross compile, use \`--host'.
4589 See \`config.log' for more details." >&2;}
4590 { (exit 1); exit 1; }; }
4594 echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6
4597 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4598 ac_clean_files=$ac_clean_files_save
4599 # Check the compiler produces executables we can run. If not, either
4600 # the compiler is broken, or we cross compile.
4601 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4602 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4603 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4604 echo "${ECHO_T}$cross_compiling" >&6
4606 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4607 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4609 (eval $ac_link) 2>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; then
4613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4614 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4615 # work properly (i.e., refer to `conftest.exe'), while it won't with
4617 for ac_file in conftest.exe conftest conftest.*; do
4618 test -f "$ac_file" || continue
4620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4628 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4629 See \`config.log' for more details." >&5
4630 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4631 See \`config.log' for more details." >&2;}
4632 { (exit 1); exit 1; }; }
4635 rm -f conftest$ac_cv_exeext
4636 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4637 echo "${ECHO_T}$ac_cv_exeext" >&6
4639 rm -f conftest.$ac_ext
4640 EXEEXT=$ac_cv_exeext
4642 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4643 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4644 if test "${ac_cv_objext+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4662 rm -f conftest.o conftest.obj
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; then
4668 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4671 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4680 See \`config.log' for more details." >&5
4681 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4682 See \`config.log' for more details." >&2;}
4683 { (exit 1); exit 1; }; }
4686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4688 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4689 echo "${ECHO_T}$ac_cv_objext" >&6
4690 OBJEXT=$ac_cv_objext
4692 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4693 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4694 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 cat >conftest.$ac_ext <<_ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717 (eval $ac_compile) 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_c_werror_flag"
4725 || test ! -s conftest.err'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; } &&
4731 { ac_try='test -s conftest.$ac_objext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4748 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4749 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4750 GCC=`test $ac_compiler_gnu = yes && echo yes`
4751 ac_test_CFLAGS=${CFLAGS+set}
4752 ac_save_CFLAGS=$CFLAGS
4754 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4756 if test "${ac_cv_prog_cc_g+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4774 rm -f conftest.$ac_objext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776 (eval $ac_compile) 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -z "$ac_c_werror_flag"
4784 || test ! -s conftest.err'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try='test -s conftest.$ac_objext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4807 if test "$ac_test_CFLAGS" = set; then
4808 CFLAGS=$ac_save_CFLAGS
4809 elif test $ac_cv_prog_cc_g = yes; then
4810 if test "$GCC" = yes; then
4816 if test "$GCC" = yes; then
4822 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4823 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4824 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 ac_cv_prog_cc_stdc=no
4829 cat >conftest.$ac_ext <<_ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4837 #include <sys/types.h>
4838 #include <sys/stat.h>
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4853 s = g (p, va_arg (v,int));
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
4861 as 'x'. The following induces an error, until -std1 is added to get
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
4864 that's true only with -std1. */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4867 int test (int i, double x);
4868 struct s1 {int (*f) (int a);};
4869 struct s2 {int (*f) (double a);};
4870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4881 # Don't try gcc -ansi; that turns off useful extensions and
4882 # breaks some systems' header files.
4883 # AIX -qlanglvl=ansi
4884 # Ultrix and OSF/1 -std1
4885 # HP-UX 10.20 and later -Ae
4886 # HP-UX older versions -Aa -D_HPUX_SOURCE
4887 # SVR4 -Xc -D__EXTENSIONS__
4888 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4890 CC="$ac_save_CC $ac_arg"
4891 rm -f conftest.$ac_objext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>conftest.er1
4895 grep -v '^ *+' conftest.er1 >conftest.err
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } &&
4900 { ac_try='test -z "$ac_c_werror_flag"
4901 || test ! -s conftest.err'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; } &&
4907 { ac_try='test -s conftest.$ac_objext'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 ac_cv_prog_cc_stdc=$ac_arg
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4920 rm -f conftest.err conftest.$ac_objext
4922 rm -f conftest.$ac_ext conftest.$ac_objext
4927 case "x$ac_cv_prog_cc_stdc" in
4929 echo "$as_me:$LINENO: result: none needed" >&5
4930 echo "${ECHO_T}none needed" >&6 ;;
4932 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4933 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4934 CC="$CC $ac_cv_prog_cc_stdc" ;;
4937 # Some people use a C++ compiler to compile C. Since we use `exit',
4938 # in C++ we need to declare it. In case someone uses the same compiler
4939 # for both compiling C and C++ we need to have the C++ compiler decide
4940 # the declaration of exit, since it's the most demanding environment.
4941 cat >conftest.$ac_ext <<_ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>conftest.er1
4950 grep -v '^ *+' conftest.er1 >conftest.err
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest.$ac_objext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 for ac_declaration in \
4970 'extern "C" void std::exit (int) throw (); using std::exit;' \
4971 'extern "C" void std::exit (int); using std::exit;' \
4972 'extern "C" void exit (int) throw ();' \
4973 'extern "C" void exit (int);' \
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022 cat >conftest.$ac_ext <<_ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>conftest.er1
5041 grep -v '^ *+' conftest.er1 >conftest.err
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -z "$ac_c_werror_flag"
5047 || test ! -s conftest.err'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; } &&
5053 { ac_try='test -s conftest.$ac_objext'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 if test -n "$ac_declaration"; then
5069 echo '#ifdef __cplusplus' >>confdefs.h
5070 echo $ac_declaration >>confdefs.h
5071 echo '#endif' >>confdefs.h
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086 depcc="$CC" am_compiler_list=
5088 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5089 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5090 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5094 # We make a subdir and do the tests there. Otherwise we can end up
5095 # making bogus files that we don't know about and never remove. For
5096 # instance it was reported that on HP-UX the gcc test will end up
5097 # making a dummy file named `D' -- because `-MD' means `put the output
5100 # Copy depcomp to subdir because otherwise we won't find it if we're
5101 # using a relative directory.
5102 cp "$am_depcomp" conftest.dir
5104 # We will build objects and dependencies in a subdirectory because
5105 # it helps to detect inapplicable dependency modes. For instance
5106 # both Tru64's cc and ICC support -MD to output dependencies as a
5107 # side effect of compilation, but ICC will put the dependencies in
5108 # the current directory while Tru64 will put them in the object
5112 am_cv_CC_dependencies_compiler_type=none
5113 if test "$am_compiler_list" = ""; then
5114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5116 for depmode in $am_compiler_list; do
5117 # Setup a source with many dependencies, because some compilers
5118 # like to wrap large dependency lists on column 80 (with \), and
5119 # we should not choose a depcomp mode which is confused by this.
5121 # We need to recreate these files for each test, as the compiler may
5122 # overwrite some of them when testing with obscure command lines.
5123 # This happens at least with the AIX C compiler.
5125 for i in 1 2 3 4 5 6; do
5126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5127 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5128 # Solaris 8's {/usr,}/bin/sh.
5129 touch sub/conftst$i.h
5131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5135 # after this tag, mechanisms are not by side-effect, so they'll
5136 # only be used when explicitly requested
5137 if test "x$enable_dependency_tracking" = xyes; then
5145 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5146 # mode. It turns out that the SunPro C++ compiler does not properly
5147 # handle `-M -o', and we need to detect this.
5148 if depmode=$depmode \
5149 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5150 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5151 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5152 >/dev/null 2>conftest.err &&
5153 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5154 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5155 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5156 # icc doesn't choke on unknown options, it will just issue warnings
5157 # or remarks (even with -Werror). So we grep stderr for any message
5158 # that says an option was ignored or not supported.
5159 # When given -MP, icc 7.0 and 7.1 complain thusly:
5160 # icc: Command line warning: ignoring option '-M'; no argument required
5161 # The diagnosis changed in icc 8.0:
5162 # icc: Command line remark: option '-MP' not supported
5163 if (grep 'ignoring option' conftest.err ||
5164 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5165 am_cv_CC_dependencies_compiler_type=$depmode
5174 am_cv_CC_dependencies_compiler_type=none
5178 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5179 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5180 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5185 test "x$enable_dependency_tracking" != xno \
5186 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5188 am__fastdepCC_FALSE='#'
5190 am__fastdepCC_TRUE='#'
5191 am__fastdepCC_FALSE=
5195 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5196 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5197 if test "${lt_cv_path_SED+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 # Loop through the user's path and test for sed and gsed.
5201 # Then use that list of sed's as ones to test for truncation.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for lt_ac_prog in sed gsed; do
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5210 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5217 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5218 # along with /bin/sed that truncates output.
5219 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5220 test ! -f $lt_ac_sed && continue
5221 cat /dev/null > conftest.in
5223 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5224 # Check for GNU sed and select it if it is found.
5225 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5226 lt_cv_path_SED=$lt_ac_sed
5230 cat conftest.in conftest.in >conftest.tmp
5231 mv conftest.tmp conftest.in
5232 cp conftest.in conftest.nl
5234 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5235 cmp -s conftest.out conftest.nl || break
5236 # 10000 chars as input seems more than enough
5237 test $lt_ac_count -gt 10 && break
5238 lt_ac_count=`expr $lt_ac_count + 1`
5239 if test $lt_ac_count -gt $lt_ac_max; then
5240 lt_ac_max=$lt_ac_count
5241 lt_cv_path_SED=$lt_ac_sed
5249 echo "$as_me:$LINENO: result: $SED" >&5
5250 echo "${ECHO_T}$SED" >&6
5252 echo "$as_me:$LINENO: checking for egrep" >&5
5253 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5254 if test "${ac_cv_prog_egrep+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5258 then ac_cv_prog_egrep='grep -E'
5259 else ac_cv_prog_egrep='egrep'
5262 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5263 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5264 EGREP=$ac_cv_prog_egrep
5268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5269 if test "${with_gnu_ld+set}" = set; then
5270 withval="$with_gnu_ld"
5271 test "$withval" = no || with_gnu_ld=yes
5276 if test "$GCC" = yes; then
5277 # Check if gcc -print-prog-name=ld gives a path.
5278 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5282 # gcc leaves a trailing carriage return which upsets mingw
5283 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5285 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5288 # Accept absolute paths.
5290 re_direlt='/[^/][^/]*/\.\./'
5291 # Canonicalize the pathname of ld
5292 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5293 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5294 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5296 test -z "$LD" && LD="$ac_prog"
5299 # If it fails, then pretend we aren't using GCC.
5303 # If it is relative, then search for the first ld in PATH.
5307 elif test "$with_gnu_ld" = yes; then
5308 echo "$as_me:$LINENO: checking for GNU ld" >&5
5309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5311 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5314 if test "${lt_cv_path_LD+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 if test -z "$LD"; then
5318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5319 for ac_dir in $PATH; do
5321 test -z "$ac_dir" && ac_dir=.
5322 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5323 lt_cv_path_LD="$ac_dir/$ac_prog"
5324 # Check to see if the program is GNU ld. I'd rather use --version,
5325 # but apparently some GNU ld's only accept -v.
5326 # Break only if it was the GNU/non-GNU ld that we prefer.
5327 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5328 *GNU* | *'with BFD'*)
5329 test "$with_gnu_ld" != no && break
5332 test "$with_gnu_ld" != yes && break
5339 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5344 if test -n "$LD"; then
5345 echo "$as_me:$LINENO: result: $LD" >&5
5346 echo "${ECHO_T}$LD" >&6
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5353 { (exit 1); exit 1; }; }
5354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5360 case `$LD -v 2>&1 </dev/null` in
5361 *GNU* | *'with BFD'*)
5362 lt_cv_prog_gnu_ld=yes
5365 lt_cv_prog_gnu_ld=no
5369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5371 with_gnu_ld=$lt_cv_prog_gnu_ld
5374 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5375 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5376 if test "${lt_cv_ld_reload_flag+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 lt_cv_ld_reload_flag='-r'
5381 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5382 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5383 reload_flag=$lt_cv_ld_reload_flag
5384 case $reload_flag in
5386 *) reload_flag=" $reload_flag" ;;
5388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5391 if test "$GCC" = yes; then
5392 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5399 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5400 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5401 if test "${lt_cv_path_NM+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 if test -n "$NM"; then
5405 # Let the user override the test.
5408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5409 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5411 test -z "$ac_dir" && ac_dir=.
5412 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5413 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5414 # Check to see if the nm accepts a BSD-compat flag.
5415 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5416 # nm: unknown option "B" ignored
5417 # Tru64's nm complains that /dev/null is an invalid object file
5418 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5419 */dev/null* | *'Invalid file or object type'*)
5420 lt_cv_path_NM="$tmp_nm -B"
5424 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5426 lt_cv_path_NM="$tmp_nm -p"
5430 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5431 continue # so that we can try to find one that supports BSD flags
5438 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5441 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5442 echo "${ECHO_T}$lt_cv_path_NM" >&6
5445 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5446 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5448 if test "$LN_S" = "ln -s"; then
5449 echo "$as_me:$LINENO: result: yes" >&5
5450 echo "${ECHO_T}yes" >&6
5452 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5453 echo "${ECHO_T}no, using $LN_S" >&6
5456 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5457 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5458 if test "${lt_cv_deplibs_check_method+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 lt_cv_file_magic_cmd='$MAGIC_CMD'
5462 lt_cv_file_magic_test_file=
5463 lt_cv_deplibs_check_method='unknown'
5464 # Need to set the preceding variable on all platforms that support
5465 # interlibrary dependencies.
5466 # 'none' -- dependencies not supported.
5467 # `unknown' -- same as none, but documents that we really don't know.
5468 # 'pass_all' -- all dependencies passed with no checks.
5469 # 'test_compile' -- check by making test program.
5470 # 'file_magic [[regex]]' -- check by looking for files in library path
5471 # which responds to the $file_magic_cmd with a given extended regex.
5472 # If you have `file' or equivalent on your system and you're not sure
5473 # whether `pass_all' will *always* work, you probably want this one.
5477 lt_cv_deplibs_check_method=pass_all
5481 lt_cv_deplibs_check_method=pass_all
5485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5486 lt_cv_file_magic_cmd='/usr/bin/file -L'
5487 lt_cv_file_magic_test_file=/shlib/libc.so
5491 # func_win32_libid is a shell function defined in ltmain.sh
5492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5493 lt_cv_file_magic_cmd='func_win32_libid'
5497 # Base MSYS/MinGW do not provide the 'file' command needed by
5498 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5499 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5500 lt_cv_file_magic_cmd='$OBJDUMP -f'
5503 darwin* | rhapsody*)
5504 lt_cv_deplibs_check_method=pass_all
5507 freebsd* | kfreebsd*-gnu | dragonfly*)
5508 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5511 # Not sure whether the presence of OpenBSD here was a mistake.
5512 # Let's accept both of them until this is cleared up.
5513 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5514 lt_cv_file_magic_cmd=/usr/bin/file
5515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5519 lt_cv_deplibs_check_method=pass_all
5524 lt_cv_deplibs_check_method=pass_all
5527 hpux10.20* | hpux11*)
5528 lt_cv_file_magic_cmd=/usr/bin/file
5531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5532 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5535 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]'
5536 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5540 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5545 irix5* | irix6* | nonstopux*)
5547 *-32|*"-32 ") libmagic=32-bit;;
5548 *-n32|*"-n32 ") libmagic=N32;;
5549 *-64|*"-64 ") libmagic=64-bit;;
5550 *) libmagic=never-match;;
5552 lt_cv_deplibs_check_method=pass_all
5555 # This must be Linux ELF.
5557 lt_cv_deplibs_check_method=pass_all
5561 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5570 lt_cv_file_magic_cmd=/usr/bin/file
5571 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5575 lt_cv_deplibs_check_method=unknown
5579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5586 osf3* | osf4* | osf5*)
5587 lt_cv_deplibs_check_method=pass_all
5591 lt_cv_deplibs_check_method=pass_all
5595 lt_cv_deplibs_check_method=pass_all
5598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5599 case $host_vendor in
5601 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]'
5602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5605 lt_cv_deplibs_check_method=pass_all
5608 lt_cv_file_magic_cmd='/bin/file'
5609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5612 lt_cv_file_magic_cmd='/bin/file'
5613 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5614 lt_cv_file_magic_test_file=/lib/libc.so
5617 lt_cv_deplibs_check_method=pass_all
5622 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5623 lt_cv_deplibs_check_method=pass_all
5628 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5629 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5630 file_magic_cmd=$lt_cv_file_magic_cmd
5631 deplibs_check_method=$lt_cv_deplibs_check_method
5632 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5637 # If no C compiler was specified, use CC.
5640 # Allow CC to be a program name with arguments.
5644 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5645 if test "${enable_libtool_lock+set}" = set; then
5646 enableval="$enable_libtool_lock"
5649 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5651 # Some flags need to be propagated to the compiler or linker for good
5655 # Find out which ABI we are using.
5656 echo 'int i;' > conftest.$ac_ext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658 (eval $ac_compile) 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; then
5662 case `/usr/bin/file conftest.$ac_objext` in
5674 # Find out which ABI we are using.
5675 echo '#line 5675 "configure"' > conftest.$ac_ext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; then
5681 if test "$lt_cv_prog_gnu_ld" = yes; then
5682 case `/usr/bin/file conftest.$ac_objext` in
5684 LD="${LD-ld} -melf32bsmip"
5687 LD="${LD-ld} -melf32bmipn32"
5690 LD="${LD-ld} -melf64bmip"
5694 case `/usr/bin/file conftest.$ac_objext` in
5710 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5711 # Find out which ABI we are using.
5712 echo 'int i;' > conftest.$ac_ext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; then
5718 case "`/usr/bin/file conftest.o`" in
5722 LD="${LD-ld} -m elf_i386"
5724 ppc64-*linux*|powerpc64-*linux*)
5725 LD="${LD-ld} -m elf32ppclinux"
5728 LD="${LD-ld} -m elf_s390"
5731 LD="${LD-ld} -m elf32_sparc"
5738 LD="${LD-ld} -m elf_x86_64"
5740 ppc*-*linux*|powerpc*-*linux*)
5741 LD="${LD-ld} -m elf64ppc"
5744 LD="${LD-ld} -m elf64_s390"
5747 LD="${LD-ld} -m elf64_sparc"
5757 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5758 SAVE_CFLAGS="$CFLAGS"
5759 CFLAGS="$CFLAGS -belf"
5760 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5761 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5762 if test "${lt_cv_cc_needs_belf+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 ac_cpp='$CPP $CPPFLAGS'
5767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 lt_cv_cc_needs_belf=yes
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 lt_cv_cc_needs_belf=no
5815 rm -f conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5825 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5826 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5827 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5828 CFLAGS="$SAVE_CFLAGS"
5831 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5832 if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5835 echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 if test -n "$DLLTOOL"; then
5841 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 DLLTOOL=$ac_cv_prog_DLLTOOL
5860 if test -n "$DLLTOOL"; then
5861 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5862 echo "${ECHO_T}$DLLTOOL" >&6
5864 echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5869 if test -z "$ac_cv_prog_DLLTOOL"; then
5870 ac_ct_DLLTOOL=$DLLTOOL
5871 # Extract the first word of "dlltool", so it can be a program name with args.
5872 set dummy dlltool; ac_word=$2
5873 echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 if test -n "$ac_ct_DLLTOOL"; then
5879 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5898 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5899 if test -n "$ac_ct_DLLTOOL"; then
5900 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5901 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5903 echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5907 DLLTOOL=$ac_ct_DLLTOOL
5909 DLLTOOL="$ac_cv_prog_DLLTOOL"
5912 if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}as; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_AS+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 if test -n "$AS"; then
5921 ac_cv_prog_AS="$AS" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_AS="${ac_tool_prefix}as"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 if test -n "$AS"; then
5941 echo "$as_me:$LINENO: result: $AS" >&5
5942 echo "${ECHO_T}$AS" >&6
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5949 if test -z "$ac_cv_prog_AS"; then
5951 # Extract the first word of "as", so it can be a program name with args.
5952 set dummy as; ac_word=$2
5953 echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 if test -n "$ac_ct_AS"; then
5959 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_ac_ct_AS="as"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5978 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5979 if test -n "$ac_ct_AS"; then
5980 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5981 echo "${ECHO_T}$ac_ct_AS" >&6
5983 echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5992 if test -n "$ac_tool_prefix"; then
5993 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5994 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5995 echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5997 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 if test -n "$OBJDUMP"; then
6001 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 OBJDUMP=$ac_cv_prog_OBJDUMP
6020 if test -n "$OBJDUMP"; then
6021 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6022 echo "${ECHO_T}$OBJDUMP" >&6
6024 echo "$as_me:$LINENO: result: no" >&5
6025 echo "${ECHO_T}no" >&6
6029 if test -z "$ac_cv_prog_OBJDUMP"; then
6030 ac_ct_OBJDUMP=$OBJDUMP
6031 # Extract the first word of "objdump", so it can be a program name with args.
6032 set dummy objdump; ac_word=$2
6033 echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6035 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 if test -n "$ac_ct_OBJDUMP"; then
6039 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6058 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6059 if test -n "$ac_ct_OBJDUMP"; then
6060 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6061 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6063 echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6
6067 OBJDUMP=$ac_ct_OBJDUMP
6069 OBJDUMP="$ac_cv_prog_OBJDUMP"
6076 need_locks="$enable_libtool_lock"
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6084 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6085 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6086 # On Suns, sometimes $CPP names a directory.
6087 if test -n "$CPP" && test -d "$CPP"; then
6090 if test -z "$CPP"; then
6091 if test "${ac_cv_prog_CPP+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 # Double quotes because CPP needs to be expanded
6095 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6098 for ac_c_preproc_warn_flag in '' yes
6100 # Use a header file that comes with gcc, so configuring glibc
6101 # with a fresh cross-compiler works.
6102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6103 # <limits.h> exists even on freestanding compilers.
6104 # On the NeXT, cc -E runs the code through the compiler's parser,
6105 # not just through cpp. "Syntax error" is here to catch this case.
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 # include <limits.h>
6115 # include <assert.h>
6119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6122 grep -v '^ *+' conftest.er1 >conftest.err
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } >/dev/null; then
6127 if test -s conftest.err; then
6128 ac_cpp_err=$ac_c_preproc_warn_flag
6129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6136 if test -z "$ac_cpp_err"; then
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 # Broken: fails on valid input.
6145 rm -f conftest.err conftest.$ac_ext
6147 # OK, works on sane cases. Now check whether non-existent headers
6148 # can be detected and how.
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <ac_nonexistent.h>
6157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6160 grep -v '^ *+' conftest.er1 >conftest.err
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } >/dev/null; then
6165 if test -s conftest.err; then
6166 ac_cpp_err=$ac_c_preproc_warn_flag
6167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6174 if test -z "$ac_cpp_err"; then
6175 # Broken: success on invalid input.
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 # Passes both tests.
6185 rm -f conftest.err conftest.$ac_ext
6188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6189 rm -f conftest.err conftest.$ac_ext
6190 if $ac_preproc_ok; then
6202 echo "$as_me:$LINENO: result: $CPP" >&5
6203 echo "${ECHO_T}$CPP" >&6
6205 for ac_c_preproc_warn_flag in '' yes
6207 # Use a header file that comes with gcc, so configuring glibc
6208 # with a fresh cross-compiler works.
6209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6210 # <limits.h> exists even on freestanding compilers.
6211 # On the NeXT, cc -E runs the code through the compiler's parser,
6212 # not just through cpp. "Syntax error" is here to catch this case.
6213 cat >conftest.$ac_ext <<_ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6220 # include <limits.h>
6222 # include <assert.h>
6226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6229 grep -v '^ *+' conftest.er1 >conftest.err
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } >/dev/null; then
6234 if test -s conftest.err; then
6235 ac_cpp_err=$ac_c_preproc_warn_flag
6236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6243 if test -z "$ac_cpp_err"; then
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 # Broken: fails on valid input.
6252 rm -f conftest.err conftest.$ac_ext
6254 # OK, works on sane cases. Now check whether non-existent headers
6255 # can be detected and how.
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <ac_nonexistent.h>
6264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6267 grep -v '^ *+' conftest.er1 >conftest.err
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } >/dev/null; then
6272 if test -s conftest.err; then
6273 ac_cpp_err=$ac_c_preproc_warn_flag
6274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6281 if test -z "$ac_cpp_err"; then
6282 # Broken: success on invalid input.
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 # Passes both tests.
6292 rm -f conftest.err conftest.$ac_ext
6295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6296 rm -f conftest.err conftest.$ac_ext
6297 if $ac_preproc_ok; then
6300 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6301 See \`config.log' for more details." >&5
6302 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6303 See \`config.log' for more details." >&2;}
6304 { (exit 1); exit 1; }; }
6308 ac_cpp='$CPP $CPPFLAGS'
6309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6316 if test "${ac_cv_header_stdc+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6342 grep -v '^ *+' conftest.er1 >conftest.err
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_cv_header_stdc=yes
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_cv_header_stdc=no
6367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6369 if test $ac_cv_header_stdc = yes; then
6370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6371 cat >conftest.$ac_ext <<_ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6381 $EGREP "memchr" >/dev/null 2>&1; then
6384 ac_cv_header_stdc=no
6390 if test $ac_cv_header_stdc = yes; then
6391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6402 $EGREP "free" >/dev/null 2>&1; then
6405 ac_cv_header_stdc=no
6411 if test $ac_cv_header_stdc = yes; then
6412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6413 if test "$cross_compiling" = yes; then
6416 cat >conftest.$ac_ext <<_ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6423 #if ((' ' & 0x0FF) == 0x020)
6424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6427 # define ISLOWER(c) \
6428 (('a' <= (c) && (c) <= 'i') \
6429 || ('j' <= (c) && (c) <= 'r') \
6430 || ('s' <= (c) && (c) <= 'z'))
6431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6439 for (i = 0; i < 256; i++)
6440 if (XOR (islower (i), ISLOWER (i))
6441 || toupper (i) != TOUPPER (i))
6446 rm -f conftest$ac_exeext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448 (eval $ac_link) 2>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6459 echo "$as_me: program exited with status $ac_status" >&5
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6464 ac_cv_header_stdc=no
6466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6472 if test $ac_cv_header_stdc = yes; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define STDC_HEADERS 1
6480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6491 inttypes.h stdint.h unistd.h
6493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 $ac_includes_default
6507 #include <$ac_header>
6509 rm -f conftest.$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 eval "$as_ac_Header=yes"
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 eval "$as_ac_Header=no"
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6543 cat >>confdefs.h <<_ACEOF
6544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553 for ac_header in dlfcn.h
6555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557 echo "$as_me:$LINENO: checking for $ac_header" >&5
6558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6565 # Is the header compilable?
6566 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 $ac_includes_default
6575 #include <$ac_header>
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579 (eval $ac_compile) 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -z "$ac_c_werror_flag"
6587 || test ! -s conftest.err'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; } &&
6593 { ac_try='test -s conftest.$ac_objext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 ac_header_compiler=yes
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 ac_header_compiler=no
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6608 echo "${ECHO_T}$ac_header_compiler" >&6
6610 # Is the header present?
6611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6613 cat >conftest.$ac_ext <<_ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #include <$ac_header>
6621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6624 grep -v '^ *+' conftest.er1 >conftest.err
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } >/dev/null; then
6629 if test -s conftest.err; then
6630 ac_cpp_err=$ac_c_preproc_warn_flag
6631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6638 if test -z "$ac_cpp_err"; then
6639 ac_header_preproc=yes
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 ac_header_preproc=no
6646 rm -f conftest.err conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6648 echo "${ECHO_T}$ac_header_preproc" >&6
6650 # So? What about this header?
6651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6657 ac_header_preproc=yes
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6674 ## ------------------------------------------ ##
6675 ## Report this to the AC_PACKAGE_NAME lists. ##
6676 ## ------------------------------------------ ##
6679 sed "s/^/$as_me: WARNING: /" >&2
6682 echo "$as_me:$LINENO: checking for $ac_header" >&5
6683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 eval "$as_ac_Header=\$ac_header_preproc"
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6694 cat >>confdefs.h <<_ACEOF
6695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6703 ac_cpp='$CXXCPP $CPPFLAGS'
6704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6707 if test -n "$ac_tool_prefix"; then
6708 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6712 echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6714 if test "${ac_cv_prog_CXX+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 if test -n "$CXX"; then
6718 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 if test -n "$CXX"; then
6738 echo "$as_me:$LINENO: result: $CXX" >&5
6739 echo "${ECHO_T}$CXX" >&6
6741 echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6
6745 test -n "$CXX" && break
6748 if test -z "$CXX"; then
6750 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6752 # Extract the first word of "$ac_prog", so it can be a program name with args.
6753 set dummy $ac_prog; ac_word=$2
6754 echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6756 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 if test -n "$ac_ct_CXX"; then
6760 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_ac_ct_CXX="$ac_prog"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6779 if test -n "$ac_ct_CXX"; then
6780 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6781 echo "${ECHO_T}$ac_ct_CXX" >&6
6783 echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6
6787 test -n "$ac_ct_CXX" && break
6789 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6795 # Provide some information about the compiler.
6796 echo "$as_me:$LINENO:" \
6797 "checking for C++ compiler version" >&5
6798 ac_compiler=`set X $ac_compile; echo $2`
6799 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6800 (eval $ac_compiler --version </dev/null >&5) 2>&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }
6804 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6805 (eval $ac_compiler -v </dev/null >&5) 2>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }
6809 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6810 (eval $ac_compiler -V </dev/null >&5) 2>&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }
6815 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6816 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6817 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6838 rm -f conftest.$ac_objext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6840 (eval $ac_compile) 2>conftest.er1
6842 grep -v '^ *+' conftest.er1 >conftest.err
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -z "$ac_cxx_werror_flag"
6848 || test ! -s conftest.err'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; } &&
6854 { ac_try='test -s conftest.$ac_objext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6868 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6871 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6872 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6873 GXX=`test $ac_compiler_gnu = yes && echo yes`
6874 ac_test_CXXFLAGS=${CXXFLAGS+set}
6875 ac_save_CXXFLAGS=$CXXFLAGS
6877 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6878 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6879 if test "${ac_cv_prog_cxx_g+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 cat >conftest.$ac_ext <<_ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>conftest.er1
6901 grep -v '^ *+' conftest.er1 >conftest.err
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -z "$ac_cxx_werror_flag"
6907 || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_prog_cxx_g=yes
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6928 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6929 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6930 if test "$ac_test_CXXFLAGS" = set; then
6931 CXXFLAGS=$ac_save_CXXFLAGS
6932 elif test $ac_cv_prog_cxx_g = yes; then
6933 if test "$GXX" = yes; then
6939 if test "$GXX" = yes; then
6945 for ac_declaration in \
6947 'extern "C" void std::exit (int) throw (); using std::exit;' \
6948 'extern "C" void std::exit (int); using std::exit;' \
6949 'extern "C" void exit (int) throw ();' \
6950 'extern "C" void exit (int);' \
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>conftest.er1
6973 grep -v '^ *+' conftest.er1 >conftest.err
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_cxx_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999 cat >conftest.$ac_ext <<_ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7014 rm -f conftest.$ac_objext
7015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016 (eval $ac_compile) 2>conftest.er1
7018 grep -v '^ *+' conftest.er1 >conftest.err
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } &&
7023 { ac_try='test -z "$ac_cxx_werror_flag"
7024 || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest.$ac_objext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7045 if test -n "$ac_declaration"; then
7046 echo '#ifdef __cplusplus' >>confdefs.h
7047 echo $ac_declaration >>confdefs.h
7048 echo '#endif' >>confdefs.h
7052 ac_cpp='$CXXCPP $CPPFLAGS'
7053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7057 depcc="$CXX" am_compiler_list=
7059 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7060 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7061 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7065 # We make a subdir and do the tests there. Otherwise we can end up
7066 # making bogus files that we don't know about and never remove. For
7067 # instance it was reported that on HP-UX the gcc test will end up
7068 # making a dummy file named `D' -- because `-MD' means `put the output
7071 # Copy depcomp to subdir because otherwise we won't find it if we're
7072 # using a relative directory.
7073 cp "$am_depcomp" conftest.dir
7075 # We will build objects and dependencies in a subdirectory because
7076 # it helps to detect inapplicable dependency modes. For instance
7077 # both Tru64's cc and ICC support -MD to output dependencies as a
7078 # side effect of compilation, but ICC will put the dependencies in
7079 # the current directory while Tru64 will put them in the object
7083 am_cv_CXX_dependencies_compiler_type=none
7084 if test "$am_compiler_list" = ""; then
7085 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7087 for depmode in $am_compiler_list; do
7088 # Setup a source with many dependencies, because some compilers
7089 # like to wrap large dependency lists on column 80 (with \), and
7090 # we should not choose a depcomp mode which is confused by this.
7092 # We need to recreate these files for each test, as the compiler may
7093 # overwrite some of them when testing with obscure command lines.
7094 # This happens at least with the AIX C compiler.
7096 for i in 1 2 3 4 5 6; do
7097 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7098 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7099 # Solaris 8's {/usr,}/bin/sh.
7100 touch sub/conftst$i.h
7102 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7106 # after this tag, mechanisms are not by side-effect, so they'll
7107 # only be used when explicitly requested
7108 if test "x$enable_dependency_tracking" = xyes; then
7116 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7117 # mode. It turns out that the SunPro C++ compiler does not properly
7118 # handle `-M -o', and we need to detect this.
7119 if depmode=$depmode \
7120 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7122 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7123 >/dev/null 2>conftest.err &&
7124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7125 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7127 # icc doesn't choke on unknown options, it will just issue warnings
7128 # or remarks (even with -Werror). So we grep stderr for any message
7129 # that says an option was ignored or not supported.
7130 # When given -MP, icc 7.0 and 7.1 complain thusly:
7131 # icc: Command line warning: ignoring option '-M'; no argument required
7132 # The diagnosis changed in icc 8.0:
7133 # icc: Command line remark: option '-MP' not supported
7134 if (grep 'ignoring option' conftest.err ||
7135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7136 am_cv_CXX_dependencies_compiler_type=$depmode
7145 am_cv_CXX_dependencies_compiler_type=none
7149 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7150 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7151 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7156 test "x$enable_dependency_tracking" != xno \
7157 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7158 am__fastdepCXX_TRUE=
7159 am__fastdepCXX_FALSE='#'
7161 am__fastdepCXX_TRUE='#'
7162 am__fastdepCXX_FALSE=
7168 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7169 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7170 (test "X$CXX" != "Xg++"))) ; then
7172 ac_cpp='$CXXCPP $CPPFLAGS'
7173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7176 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7177 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7178 if test -z "$CXXCPP"; then
7179 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 # Double quotes because CXXCPP needs to be expanded
7183 for CXXCPP in "$CXX -E" "/lib/cpp"
7186 for ac_cxx_preproc_warn_flag in '' yes
7188 # Use a header file that comes with gcc, so configuring glibc
7189 # with a fresh cross-compiler works.
7190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7191 # <limits.h> exists even on freestanding compilers.
7192 # On the NeXT, cc -E runs the code through the compiler's parser,
7193 # not just through cpp. "Syntax error" is here to catch this case.
7194 cat >conftest.$ac_ext <<_ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7201 # include <limits.h>
7203 # include <assert.h>
7207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7210 grep -v '^ *+' conftest.er1 >conftest.err
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } >/dev/null; then
7215 if test -s conftest.err; then
7216 ac_cpp_err=$ac_cxx_preproc_warn_flag
7217 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7224 if test -z "$ac_cpp_err"; then
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7230 # Broken: fails on valid input.
7233 rm -f conftest.err conftest.$ac_ext
7235 # OK, works on sane cases. Now check whether non-existent headers
7236 # can be detected and how.
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 #include <ac_nonexistent.h>
7245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7248 grep -v '^ *+' conftest.er1 >conftest.err
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } >/dev/null; then
7253 if test -s conftest.err; then
7254 ac_cpp_err=$ac_cxx_preproc_warn_flag
7255 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7262 if test -z "$ac_cpp_err"; then
7263 # Broken: success on invalid input.
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 # Passes both tests.
7273 rm -f conftest.err conftest.$ac_ext
7276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7277 rm -f conftest.err conftest.$ac_ext
7278 if $ac_preproc_ok; then
7283 ac_cv_prog_CXXCPP=$CXXCPP
7286 CXXCPP=$ac_cv_prog_CXXCPP
7288 ac_cv_prog_CXXCPP=$CXXCPP
7290 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7291 echo "${ECHO_T}$CXXCPP" >&6
7293 for ac_cxx_preproc_warn_flag in '' yes
7295 # Use a header file that comes with gcc, so configuring glibc
7296 # with a fresh cross-compiler works.
7297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7298 # <limits.h> exists even on freestanding compilers.
7299 # On the NeXT, cc -E runs the code through the compiler's parser,
7300 # not just through cpp. "Syntax error" is here to catch this case.
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7308 # include <limits.h>
7310 # include <assert.h>
7314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } >/dev/null; then
7322 if test -s conftest.err; then
7323 ac_cpp_err=$ac_cxx_preproc_warn_flag
7324 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7331 if test -z "$ac_cpp_err"; then
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 # Broken: fails on valid input.
7340 rm -f conftest.err conftest.$ac_ext
7342 # OK, works on sane cases. Now check whether non-existent headers
7343 # can be detected and how.
7344 cat >conftest.$ac_ext <<_ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 #include <ac_nonexistent.h>
7352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7355 grep -v '^ *+' conftest.er1 >conftest.err
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } >/dev/null; then
7360 if test -s conftest.err; then
7361 ac_cpp_err=$ac_cxx_preproc_warn_flag
7362 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7369 if test -z "$ac_cpp_err"; then
7370 # Broken: success on invalid input.
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 # Passes both tests.
7380 rm -f conftest.err conftest.$ac_ext
7383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7384 rm -f conftest.err conftest.$ac_ext
7385 if $ac_preproc_ok; then
7388 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7389 See \`config.log' for more details." >&5
7390 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7391 See \`config.log' for more details." >&2;}
7392 { (exit 1); exit 1; }; }
7396 ac_cpp='$CXXCPP $CPPFLAGS'
7397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7405 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7406 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7408 if test -n "$ac_tool_prefix"; then
7409 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7413 echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7415 if test "${ac_cv_prog_F77+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 if test -n "$F77"; then
7419 ac_cv_prog_F77="$F77" # Let the user override the test.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 if test -n "$F77"; then
7439 echo "$as_me:$LINENO: result: $F77" >&5
7440 echo "${ECHO_T}$F77" >&6
7442 echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7446 test -n "$F77" && break
7449 if test -z "$F77"; then
7451 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7453 # Extract the first word of "$ac_prog", so it can be a program name with args.
7454 set dummy $ac_prog; ac_word=$2
7455 echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7457 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 if test -n "$ac_ct_F77"; then
7461 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470 ac_cv_prog_ac_ct_F77="$ac_prog"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7480 if test -n "$ac_ct_F77"; then
7481 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7482 echo "${ECHO_T}$ac_ct_F77" >&6
7484 echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6
7488 test -n "$ac_ct_F77" && break
7495 # Provide some information about the compiler.
7496 echo "$as_me:7496:" \
7497 "checking for Fortran 77 compiler version" >&5
7498 ac_compiler=`set X $ac_compile; echo $2`
7499 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7500 (eval $ac_compiler --version </dev/null >&5) 2>&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }
7504 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7505 (eval $ac_compiler -v </dev/null >&5) 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }
7509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7510 (eval $ac_compiler -V </dev/null >&5) 2>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }
7516 # If we don't use `.F' as extension, the preprocessor is not run on the
7517 # input file. (Note that this only needs to work for GNU compilers.)
7520 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7521 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7522 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>conftest.er1
7537 grep -v '^ *+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } &&
7542 { ac_try='test -z "$ac_f77_werror_flag"
7543 || test ! -s conftest.err'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; } &&
7549 { ac_try='test -s conftest.$ac_objext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7563 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7566 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7567 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7569 ac_test_FFLAGS=${FFLAGS+set}
7570 ac_save_FFLAGS=$FFLAGS
7572 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7573 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7574 if test "${ac_cv_prog_f77_g+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 cat >conftest.$ac_ext <<_ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>conftest.er1
7587 grep -v '^ *+' conftest.er1 >conftest.err
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_f77_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_cv_prog_f77_g=yes
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7615 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7616 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7617 if test "$ac_test_FFLAGS" = set; then
7618 FFLAGS=$ac_save_FFLAGS
7619 elif test $ac_cv_prog_f77_g = yes; then
7620 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7626 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7633 G77=`test $ac_compiler_gnu = yes && echo yes`
7635 ac_cpp='$CPP $CPPFLAGS'
7636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7642 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7644 # find the maximum length of command line arguments
7645 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7646 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7647 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 # On DJGPP, this test can blow up pretty badly due to problems in libc
7656 # (any single argument exceeding 2000 bytes causes a buffer overrun
7657 # during glob expansion). Even if it were fixed, the result of this
7658 # check would be larger than it should be.
7659 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7663 # Under GNU Hurd, this test is not required because there is
7664 # no limit to the length of command line arguments.
7665 # Libtool will interpret -1 as no limit whatsoever
7666 lt_cv_sys_max_cmd_len=-1;
7670 # On Win9x/ME, this test blows up -- it succeeds, but takes
7671 # about 5 minutes as the teststring grows exponentially.
7672 # Worse, since 9x/ME are not pre-emptively multitasking,
7673 # you end up with a "frozen" computer, even though with patience
7674 # the test eventually succeeds (with a max line length of 256k).
7675 # Instead, let's just punt: use the minimum linelength reported by
7676 # all of the supported platforms: 8192 (on NT/2K/XP).
7677 lt_cv_sys_max_cmd_len=8192;
7681 # On AmigaOS with pdksh, this test takes hours, literally.
7682 # So we just punt and use a minimum line length of 8192.
7683 lt_cv_sys_max_cmd_len=8192;
7686 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7687 # This has been around since 386BSD, at least. Likely further.
7688 if test -x /sbin/sysctl; then
7689 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7690 elif test -x /usr/sbin/sysctl; then
7691 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7693 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7695 # And add a safety zone
7696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7700 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7701 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7702 # nice to cause kernel panics so lets avoid the loop below.
7703 # First set a reasonable default.
7704 lt_cv_sys_max_cmd_len=16384
7706 if test -x /sbin/sysconfig; then
7707 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7708 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7713 # If test is not a shell built-in, we'll probably end up computing a
7714 # maximum length that is only half of the actual maximum length, but
7716 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7717 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7718 = "XX$teststring") >/dev/null 2>&1 &&
7719 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7720 lt_cv_sys_max_cmd_len=$new_result &&
7721 test $i != 17 # 1/2 MB should be enough
7724 teststring=$teststring$teststring
7727 # Add a significant safety factor because C++ compilers can tack on massive
7728 # amounts of additional arguments before passing them to the linker.
7729 # It appears as though 1/2 is a usable value.
7730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7736 if test -n $lt_cv_sys_max_cmd_len ; then
7737 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7738 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7740 echo "$as_me:$LINENO: result: none" >&5
7741 echo "${ECHO_T}none" >&6
7747 # Check for command to grab the raw symbol name followed by C symbol from nm.
7748 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7749 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7750 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 # These are sane defaults that work on at least a few old systems.
7755 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7757 # Character class describing NM global symbol codes.
7758 symcode='[BCDEGRST]'
7760 # Regexp to match symbols that can be accessed directly from C.
7761 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7763 # Transform an extracted symbol line into a proper C declaration
7764 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7766 # Transform an extracted symbol line into symbol name and symbol address
7767 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'"
7769 # Define system-specific variables.
7774 cygwin* | mingw* | pw32*)
7775 symcode='[ABCDGISTW]'
7777 hpux*) # Its linker distinguishes data from code symbols
7778 if test "$host_cpu" = ia64; then
7779 symcode='[ABCDEGRST]'
7781 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7782 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'"
7785 if test "$host_cpu" = ia64; then
7786 symcode='[ABCDGIRSTW]'
7787 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7788 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'"
7792 symcode='[BCDEGRST]'
7795 symcode='[BCDEGQRST]'
7805 # Handle CRLF in mingw tool chain
7809 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7813 # If we're using GNU nm, then use its standard symbol codes.
7814 case `$NM -V 2>&1` in
7815 *GNU* | *'with BFD'*)
7816 symcode='[ABCDGIRSTW]' ;;
7819 # Try without a prefix undercore, then with it.
7820 for ac_symprfx in "" "_"; do
7822 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7823 symxfrm="\\1 $ac_symprfx\\2 \\2"
7825 # Write the raw and C identifiers.
7826 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7828 # Check to see that the pipe works correctly.
7832 cat > conftest.$ac_ext <<EOF
7837 void nm_test_func(){}
7841 int main(){nm_test_var='a';nm_test_func();return(0);}
7844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7845 (eval $ac_compile) 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; then
7849 # Now try to grab the symbols.
7851 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7852 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } && test -s "$nlist"; then
7856 # Try sorting and uniquifying the output.
7857 if sort "$nlist" | uniq > "$nlist"T; then
7858 mv -f "$nlist"T "$nlist"
7863 # Make sure that we snagged all the symbols we need.
7864 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7865 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7866 cat <<EOF > conftest.$ac_ext
7872 # Now generate the symbol file.
7873 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7875 cat <<EOF >> conftest.$ac_ext
7876 #if defined (__STDC__) && __STDC__
7877 # define lt_ptr_t void *
7879 # define lt_ptr_t char *
7883 /* The mapping between symbol names and symbols. */
7888 lt_preloaded_symbols[] =
7891 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7892 cat <<\EOF >> conftest.$ac_ext
7900 # Now try linking the two files.
7901 mv conftest.$ac_objext conftstm.$ac_objext
7902 lt_save_LIBS="$LIBS"
7903 lt_save_CFLAGS="$CFLAGS"
7904 LIBS="conftstm.$ac_objext"
7905 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7913 LIBS="$lt_save_LIBS"
7914 CFLAGS="$lt_save_CFLAGS"
7916 echo "cannot find nm_test_func in $nlist" >&5
7919 echo "cannot find nm_test_var in $nlist" >&5
7922 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7925 echo "$progname: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 rm -f conftest* conftst*
7930 # Do not use the global_symbol_pipe unless it works.
7931 if test "$pipe_works" = yes; then
7934 lt_cv_sys_global_symbol_pipe=
7940 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7941 lt_cv_sys_global_symbol_to_cdecl=
7943 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7944 echo "$as_me:$LINENO: result: failed" >&5
7945 echo "${ECHO_T}failed" >&6
7947 echo "$as_me:$LINENO: result: ok" >&5
7948 echo "${ECHO_T}ok" >&6
7951 echo "$as_me:$LINENO: checking for objdir" >&5
7952 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7953 if test "${lt_cv_objdir+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 rm -f .libs 2>/dev/null
7957 mkdir .libs 2>/dev/null
7958 if test -d .libs; then
7961 # MS-DOS does not allow filenames that begin with a dot.
7964 rmdir .libs 2>/dev/null
7966 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7967 echo "${ECHO_T}$lt_cv_objdir" >&6
7968 objdir=$lt_cv_objdir
7976 # AIX sometimes has problems with the GCC collect2 program. For some
7977 # reason, if we set the COLLECT_NAMES environment variable, the problems
7978 # vanish in a puff of smoke.
7979 if test "X${COLLECT_NAMES+set}" != Xset; then
7981 export COLLECT_NAMES
7986 # Sed substitution that helps us do robust quoting. It backslashifies
7987 # metacharacters that are still active within double-quoted strings.
7988 Xsed='sed -e 1s/^X//'
7989 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7991 # Same as above, but do not quote variable references.
7992 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7994 # Sed substitution to delay expansion of an escaped shell variable in a
7995 # double_quote_subst'ed string.
7996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7998 # Sed substitution to avoid accidental globbing in evaled expressions
7999 no_glob_subst='s/\*/\\\*/g'
8005 default_ofile=libtool
8006 can_build_shared=yes
8008 # All known linkers require a `.a' archive for static linking (except M$VC,
8009 # which needs '.lib').
8011 ltmain="$ac_aux_dir/ltmain.sh"
8012 ofile="$default_ofile"
8013 with_gnu_ld="$lt_cv_prog_gnu_ld"
8015 if test -n "$ac_tool_prefix"; then
8016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8017 set dummy ${ac_tool_prefix}ar; ac_word=$2
8018 echo "$as_me:$LINENO: checking for $ac_word" >&5
8019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8020 if test "${ac_cv_prog_AR+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 if test -n "$AR"; then
8024 ac_cv_prog_AR="$AR" # Let the user override the test.
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033 ac_cv_prog_AR="${ac_tool_prefix}ar"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 if test -n "$AR"; then
8044 echo "$as_me:$LINENO: result: $AR" >&5
8045 echo "${ECHO_T}$AR" >&6
8047 echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8052 if test -z "$ac_cv_prog_AR"; then
8054 # Extract the first word of "ar", so it can be a program name with args.
8055 set dummy ar; ac_word=$2
8056 echo "$as_me:$LINENO: checking for $ac_word" >&5
8057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8058 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 if test -n "$ac_ct_AR"; then
8062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_ac_ct_AR="ar"
8072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8081 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8082 if test -n "$ac_ct_AR"; then
8083 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8084 echo "${ECHO_T}$ac_ct_AR" >&6
8086 echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8095 if test -n "$ac_tool_prefix"; then
8096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8098 echo "$as_me:$LINENO: checking for $ac_word" >&5
8099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8100 if test "${ac_cv_prog_RANLIB+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 if test -n "$RANLIB"; then
8104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 RANLIB=$ac_cv_prog_RANLIB
8123 if test -n "$RANLIB"; then
8124 echo "$as_me:$LINENO: result: $RANLIB" >&5
8125 echo "${ECHO_T}$RANLIB" >&6
8127 echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8132 if test -z "$ac_cv_prog_RANLIB"; then
8133 ac_ct_RANLIB=$RANLIB
8134 # Extract the first word of "ranlib", so it can be a program name with args.
8135 set dummy ranlib; ac_word=$2
8136 echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 if test -n "$ac_ct_RANLIB"; then
8142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_ac_ct_RANLIB="ranlib"
8152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8162 if test -n "$ac_ct_RANLIB"; then
8163 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8164 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8166 echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8170 RANLIB=$ac_ct_RANLIB
8172 RANLIB="$ac_cv_prog_RANLIB"
8175 if test -n "$ac_tool_prefix"; then
8176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}strip; ac_word=$2
8178 echo "$as_me:$LINENO: checking for $ac_word" >&5
8179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8180 if test "${ac_cv_prog_STRIP+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 if test -n "$STRIP"; then
8184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 STRIP=$ac_cv_prog_STRIP
8203 if test -n "$STRIP"; then
8204 echo "$as_me:$LINENO: result: $STRIP" >&5
8205 echo "${ECHO_T}$STRIP" >&6
8207 echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6
8212 if test -z "$ac_cv_prog_STRIP"; then
8214 # Extract the first word of "strip", so it can be a program name with args.
8215 set dummy strip; ac_word=$2
8216 echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8218 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 if test -n "$ac_ct_STRIP"; then
8222 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_ac_ct_STRIP="strip"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8242 if test -n "$ac_ct_STRIP"; then
8243 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8244 echo "${ECHO_T}$ac_ct_STRIP" >&6
8246 echo "$as_me:$LINENO: result: no" >&5
8247 echo "${ECHO_T}no" >&6
8252 STRIP="$ac_cv_prog_STRIP"
8257 old_CFLAGS="$CFLAGS"
8259 # Set sane defaults for various variables
8260 test -z "$AR" && AR=ar
8261 test -z "$AR_FLAGS" && AR_FLAGS=cru
8262 test -z "$AS" && AS=as
8263 test -z "$CC" && CC=cc
8264 test -z "$LTCC" && LTCC=$CC
8265 test -z "$DLLTOOL" && DLLTOOL=dlltool
8266 test -z "$LD" && LD=ld
8267 test -z "$LN_S" && LN_S="ln -s"
8268 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8269 test -z "$NM" && NM=nm
8270 test -z "$SED" && SED=sed
8271 test -z "$OBJDUMP" && OBJDUMP=objdump
8272 test -z "$RANLIB" && RANLIB=:
8273 test -z "$STRIP" && STRIP=:
8274 test -z "$ac_objext" && ac_objext=o
8276 # Determine commands to create old-style static archives.
8277 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8278 old_postinstall_cmds='chmod 644 $oldlib'
8279 old_postuninstall_cmds=
8281 if test -n "$RANLIB"; then
8284 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8287 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8290 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8293 for cc_temp in $compiler""; do
8295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8304 # Only perform the check for file, if the check method requires it
8305 case $deplibs_check_method in
8307 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8308 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8309 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8318 lt_save_MAGIC_CMD="$MAGIC_CMD"
8319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8321 for ac_dir in $ac_dummy; do
8323 test -z "$ac_dir" && ac_dir=.
8324 if test -f $ac_dir/${ac_tool_prefix}file; then
8325 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8326 if test -n "$file_magic_test_file"; then
8327 case $deplibs_check_method in
8329 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8332 $EGREP "$file_magic_regex" > /dev/null; then
8337 *** Warning: the command libtool uses to detect shared libraries,
8338 *** $file_magic_cmd, produces output that libtool cannot recognize.
8339 *** The result is that libtool may fail to recognize shared libraries
8340 *** as such. This will affect the creation of libtool libraries that
8341 *** depend on shared libraries, but programs linked with such libtool
8342 *** libraries will work regardless of this problem. Nevertheless, you
8343 *** may want to report the problem to your system manager and/or to
8344 *** bug-libtool@gnu.org
8354 MAGIC_CMD="$lt_save_MAGIC_CMD"
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if test -n "$MAGIC_CMD"; then
8361 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8362 echo "${ECHO_T}$MAGIC_CMD" >&6
8364 echo "$as_me:$LINENO: result: no" >&5
8365 echo "${ECHO_T}no" >&6
8368 if test -z "$lt_cv_path_MAGIC_CMD"; then
8369 if test -n "$ac_tool_prefix"; then
8370 echo "$as_me:$LINENO: checking for file" >&5
8371 echo $ECHO_N "checking for file... $ECHO_C" >&6
8372 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8380 lt_save_MAGIC_CMD="$MAGIC_CMD"
8381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8383 for ac_dir in $ac_dummy; do
8385 test -z "$ac_dir" && ac_dir=.
8386 if test -f $ac_dir/file; then
8387 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8388 if test -n "$file_magic_test_file"; then
8389 case $deplibs_check_method in
8391 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8394 $EGREP "$file_magic_regex" > /dev/null; then
8399 *** Warning: the command libtool uses to detect shared libraries,
8400 *** $file_magic_cmd, produces output that libtool cannot recognize.
8401 *** The result is that libtool may fail to recognize shared libraries
8402 *** as such. This will affect the creation of libtool libraries that
8403 *** depend on shared libraries, but programs linked with such libtool
8404 *** libraries will work regardless of this problem. Nevertheless, you
8405 *** may want to report the problem to your system manager and/or to
8406 *** bug-libtool@gnu.org
8416 MAGIC_CMD="$lt_save_MAGIC_CMD"
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422 if test -n "$MAGIC_CMD"; then
8423 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8424 echo "${ECHO_T}$MAGIC_CMD" >&6
8426 echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6
8440 enable_win32_dll=yes
8442 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8443 if test "${enable_libtool_lock+set}" = set; then
8444 enableval="$enable_libtool_lock"
8447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8450 # Check whether --with-pic or --without-pic was given.
8451 if test "${with_pic+set}" = set; then
8457 test -z "$pic_mode" && pic_mode=default
8459 # Use C for the default configuration in the libtool script
8463 ac_cpp='$CPP $CPPFLAGS'
8464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8469 # Source file extension for C test sources.
8472 # Object file extension for compiled C test sources.
8476 # Code to be used in simple compile tests
8477 lt_simple_compile_test_code="int some_variable = 0;\n"
8479 # Code to be used in simple link tests
8480 lt_simple_link_test_code='int main(){return(0);}\n'
8483 # If no C compiler was specified, use CC.
8486 # Allow CC to be a program name with arguments.
8490 # save warnings/boilerplate of simple test code
8491 ac_outfile=conftest.$ac_objext
8492 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8494 _lt_compiler_boilerplate=`cat conftest.err`
8497 ac_outfile=conftest.$ac_objext
8498 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8500 _lt_linker_boilerplate=`cat conftest.err`
8505 # Check for any special shared library compilation flags.
8508 if test "$GCC" = no; then
8511 lt_prog_cc_shlib='-belf'
8515 if test -n "$lt_prog_cc_shlib"; then
8516 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8517 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8518 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8520 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8521 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8522 lt_cv_prog_cc_can_build_shared=no
8528 # Check to make sure the static flag actually works.
8530 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8531 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8532 if test "${lt_prog_compiler_static_works+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 lt_prog_compiler_static_works=no
8536 save_LDFLAGS="$LDFLAGS"
8537 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8538 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8540 # The compiler can only warn and ignore the option if not recognized
8541 # So say no if there are warnings
8542 if test -s conftest.err; then
8543 # Append any errors to the config.log.
8544 cat conftest.err 1>&5
8545 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8546 $SED '/^$/d' conftest.err >conftest.er2
8547 if diff conftest.exp conftest.er2 >/dev/null; then
8548 lt_prog_compiler_static_works=yes
8551 lt_prog_compiler_static_works=yes
8555 LDFLAGS="$save_LDFLAGS"
8558 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8559 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8561 if test x"$lt_prog_compiler_static_works" = xyes; then
8564 lt_prog_compiler_static=
8570 lt_prog_compiler_no_builtin_flag=
8572 if test "$GCC" = yes; then
8573 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8576 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8577 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8578 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 lt_cv_prog_compiler_rtti_exceptions=no
8582 ac_outfile=conftest.$ac_objext
8583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8584 lt_compiler_flag="-fno-rtti -fno-exceptions"
8585 # Insert the option either (1) after the last *FLAGS variable, or
8586 # (2) before a word containing "conftest.", or (3) at the end.
8587 # Note that $ac_compile itself does not contain backslashes and begins
8588 # with a dollar sign (not a hyphen), so the echo should work correctly.
8589 # The option is referenced via a variable to avoid confusing sed.
8590 lt_compile=`echo "$ac_compile" | $SED \
8591 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593 -e 's:$: $lt_compiler_flag:'`
8594 (eval echo "\"\$as_me:8594: $lt_compile\"" >&5)
8595 (eval "$lt_compile" 2>conftest.err)
8597 cat conftest.err >&5
8598 echo "$as_me:8598: \$? = $ac_status" >&5
8599 if (exit $ac_status) && test -s "$ac_outfile"; then
8600 # The compiler can only warn and ignore the option if not recognized
8601 # So say no if there are warnings other than the usual output.
8602 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8603 $SED '/^$/d' conftest.err >conftest.er2
8604 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8605 lt_cv_prog_compiler_rtti_exceptions=yes
8611 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8612 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8614 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8615 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8622 lt_prog_compiler_wl=
8623 lt_prog_compiler_pic=
8624 lt_prog_compiler_static=
8626 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8627 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8629 if test "$GCC" = yes; then
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_static='-static'
8635 # All AIX code is PIC.
8636 if test "$host_cpu" = ia64; then
8637 # AIX 5 now supports IA64 processor
8638 lt_prog_compiler_static='-Bstatic'
8643 # FIXME: we need at least 68020 code to build shared libraries, but
8644 # adding the `-m68020' flag to GCC prevents building anything better,
8646 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8649 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8650 # PIC is the default for these OSes.
8653 mingw* | pw32* | os2*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 lt_prog_compiler_pic='-DDLL_EXPORT'
8659 darwin* | rhapsody*)
8660 # PIC is the default on this platform
8661 # Common symbols not allowed in MH_DYLIB files
8662 lt_prog_compiler_pic='-fno-common'
8666 # Just because we use GCC doesn't mean we suddenly get shared libraries
8667 # on systems that don't support them.
8668 lt_prog_compiler_can_build_shared=no
8673 if test -d /usr/nec; then
8674 lt_prog_compiler_pic=-Kconform_pic
8679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8686 lt_prog_compiler_pic='-fPIC'
8692 lt_prog_compiler_pic='-fPIC'
8696 # PORTME Check for flag to pass linker flags through the system compiler.
8699 lt_prog_compiler_wl='-Wl,'
8700 if test "$host_cpu" = ia64; then
8701 # AIX 5 now supports IA64 processor
8702 lt_prog_compiler_static='-Bstatic'
8704 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8708 # PIC is the default on this platform
8709 # Common symbols not allowed in MH_DYLIB files
8710 case $cc_basename in
8712 lt_prog_compiler_pic='-qnocommon'
8713 lt_prog_compiler_wl='-Wl,'
8718 mingw* | pw32* | os2*)
8719 # This hack is so that the source file can tell whether it is being
8720 # built for inclusion in a dll (and should export symbols for example).
8721 lt_prog_compiler_pic='-DDLL_EXPORT'
8724 hpux9* | hpux10* | hpux11*)
8725 lt_prog_compiler_wl='-Wl,'
8726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8733 lt_prog_compiler_pic='+Z'
8736 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737 lt_prog_compiler_static='${wl}-a ${wl}archive'
8740 irix5* | irix6* | nonstopux*)
8741 lt_prog_compiler_wl='-Wl,'
8742 # PIC (with -KPIC) is the default.
8743 lt_prog_compiler_static='-non_shared'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8752 case $cc_basename in
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-static'
8758 pgcc* | pgf77* | pgf90*)
8759 # Portland Group compilers (*not* the Pentium gcc compiler,
8760 # which looks to be a dead project)
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='-fpic'
8763 lt_prog_compiler_static='-static'
8766 lt_prog_compiler_wl='-Wl,'
8767 # All Alpha code is PIC.
8768 lt_prog_compiler_static='-non_shared'
8773 osf3* | osf4* | osf5*)
8774 lt_prog_compiler_wl='-Wl,'
8775 # All OSF/1 code is PIC.
8776 lt_prog_compiler_static='-non_shared'
8780 lt_prog_compiler_pic='-Kpic'
8781 lt_prog_compiler_static='-dn'
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8787 case $cc_basename in
8789 lt_prog_compiler_wl='-Qoption ld ';;
8791 lt_prog_compiler_wl='-Wl,';;
8796 lt_prog_compiler_wl='-Qoption ld '
8797 lt_prog_compiler_pic='-PIC'
8798 lt_prog_compiler_static='-Bstatic'
8801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8802 lt_prog_compiler_wl='-Wl,'
8803 lt_prog_compiler_pic='-KPIC'
8804 lt_prog_compiler_static='-Bstatic'
8808 if test -d /usr/nec ;then
8809 lt_prog_compiler_pic='-Kconform_pic'
8810 lt_prog_compiler_static='-Bstatic'
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_can_build_shared=no
8820 lt_prog_compiler_pic='-pic'
8821 lt_prog_compiler_static='-Bstatic'
8825 lt_prog_compiler_can_build_shared=no
8830 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8831 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8834 # Check to make sure the PIC flag actually works.
8836 if test -n "$lt_prog_compiler_pic"; then
8838 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8839 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8840 if test "${lt_prog_compiler_pic_works+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 lt_prog_compiler_pic_works=no
8844 ac_outfile=conftest.$ac_objext
8845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8846 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8847 # Insert the option either (1) after the last *FLAGS variable, or
8848 # (2) before a word containing "conftest.", or (3) at the end.
8849 # Note that $ac_compile itself does not contain backslashes and begins
8850 # with a dollar sign (not a hyphen), so the echo should work correctly.
8851 # The option is referenced via a variable to avoid confusing sed.
8852 lt_compile=`echo "$ac_compile" | $SED \
8853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855 -e 's:$: $lt_compiler_flag:'`
8856 (eval echo "\"\$as_me:8856: $lt_compile\"" >&5)
8857 (eval "$lt_compile" 2>conftest.err)
8859 cat conftest.err >&5
8860 echo "$as_me:8860: \$? = $ac_status" >&5
8861 if (exit $ac_status) && test -s "$ac_outfile"; then
8862 # The compiler can only warn and ignore the option if not recognized
8863 # So say no if there are warnings other than the usual output.
8864 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8865 $SED '/^$/d' conftest.err >conftest.er2
8866 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_prog_compiler_pic_works=yes
8873 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8874 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8876 if test x"$lt_prog_compiler_pic_works" = xyes; then
8877 case $lt_prog_compiler_pic in
8879 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8882 lt_prog_compiler_pic=
8883 lt_prog_compiler_can_build_shared=no
8888 # For platforms which do not support PIC, -DPIC is meaningless:
8890 lt_prog_compiler_pic=
8893 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8897 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8899 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 lt_cv_prog_compiler_c_o=no
8903 $rm -r conftest 2>/dev/null
8907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8909 lt_compiler_flag="-o out/conftest2.$ac_objext"
8910 # Insert the option either (1) after the last *FLAGS variable, or
8911 # (2) before a word containing "conftest.", or (3) at the end.
8912 # Note that $ac_compile itself does not contain backslashes and begins
8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
8914 lt_compile=`echo "$ac_compile" | $SED \
8915 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917 -e 's:$: $lt_compiler_flag:'`
8918 (eval echo "\"\$as_me:8918: $lt_compile\"" >&5)
8919 (eval "$lt_compile" 2>out/conftest.err)
8921 cat out/conftest.err >&5
8922 echo "$as_me:8922: \$? = $ac_status" >&5
8923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8925 # The compiler can only warn and ignore the option if not recognized
8926 # So say no if there are warnings
8927 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8928 $SED '/^$/d' out/conftest.err >out/conftest.er2
8929 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8930 lt_cv_prog_compiler_c_o=yes
8935 # SGI C++ compiler will create directory out/ii_files/ for
8936 # template instantiation
8937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8938 $rm out/* && rmdir out
8944 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8948 hard_links="nottested"
8949 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8950 # do not overwrite the value of need_locks provided by the user
8951 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8957 ln conftest.a conftest.b 2>&5 || hard_links=no
8958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959 echo "$as_me:$LINENO: result: $hard_links" >&5
8960 echo "${ECHO_T}$hard_links" >&6
8961 if test "$hard_links" = no; then
8962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8970 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8974 allow_undefined_flag=
8975 enable_shared_with_static_runtimes=no
8977 archive_expsym_cmds=
8978 old_archive_From_new_cmds=
8979 old_archive_from_expsyms_cmds=
8980 export_dynamic_flag_spec=
8981 whole_archive_flag_spec=
8982 thread_safe_flag_spec=
8983 hardcode_libdir_flag_spec=
8984 hardcode_libdir_flag_spec_ld=
8985 hardcode_libdir_separator=
8988 hardcode_shlibpath_var=unsupported
8989 link_all_deplibs=unknown
8990 hardcode_automatic=no
8993 always_export_symbols=no
8994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8995 # include_expsyms should be a list of space-separated symbols to be *always*
8996 # included in the symbol list
8998 # exclude_expsyms can be an extended regexp of symbols to exclude
8999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9001 # as well as any symbol that contains `d'.
9002 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9004 # platforms (ab)use it in PIC code, but their linkers get confused if
9005 # the symbol is explicitly referenced. Since portable code cannot
9006 # rely on this symbol name, it's probably fine to never include it in
9007 # preloaded symbol tables.
9008 extract_expsyms_cmds=
9009 # Just being paranoid about ensuring that cc_basename is set.
9010 for cc_temp in $compiler""; do
9012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9021 cygwin* | mingw* | pw32*)
9022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9023 # When not using gcc, we currently assume that we are using
9024 # Microsoft Visual C++.
9025 if test "$GCC" != yes; then
9035 if test "$with_gnu_ld" = yes; then
9036 # If archive_cmds runs LD, not CC, wlarc should be empty
9039 # Set some defaults for GNU ld with shared library support. These
9040 # are reset later if shared libraries are not supported. Putting them
9041 # here allows them to be overridden if necessary.
9042 runpath_var=LD_RUN_PATH
9043 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9044 export_dynamic_flag_spec='${wl}--export-dynamic'
9045 # ancient GNU ld didn't support --whole-archive et. al.
9046 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9047 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9049 whole_archive_flag_spec=
9051 supports_anon_versioning=no
9052 case `$LD -v 2>/dev/null` in
9053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9056 *\ 2.11.*) ;; # other 2.11 versions
9057 *) supports_anon_versioning=yes ;;
9060 # See if GNU ld supports shared libraries.
9062 aix3* | aix4* | aix5*)
9063 # On AIX/PPC, the GNU linker is very broken
9064 if test "$host_cpu" != ia64; then
9068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9069 *** to be unable to reliably create shared libraries on AIX.
9070 *** Therefore, libtool is disabling shared libraries support. If you
9071 *** really care for shared libraries, you may want to modify your PATH
9072 *** so that a non-GNU linker is found, and then restart.
9079 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)'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_minus_L=yes
9083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9084 # that the semantics of dynamic libraries on AmigaOS, at least up
9085 # to version 4, is to share data among multiple programs linked
9086 # with the same dynamic library. Since this doesn't match the
9087 # behavior of shared libraries on other platforms, we can't use
9093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9094 allow_undefined_flag=unsupported
9095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9096 # support --undefined. This deserves some investigation. FIXME
9097 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103 cygwin* | mingw* | pw32*)
9104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9105 # as there is no search path for DLLs.
9106 hardcode_libdir_flag_spec='-L$libdir'
9107 allow_undefined_flag=unsupported
9108 always_export_symbols=no
9109 enable_shared_with_static_runtimes=yes
9110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9114 # If the export-symbols file already is a .def file (1st line
9115 # is EXPORTS), use it as is; otherwise, prepend...
9116 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9117 cp $export_symbols $output_objdir/$soname.def;
9119 echo EXPORTS > $output_objdir/$soname.def;
9120 cat $export_symbols >> $output_objdir/$soname.def;
9122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9131 case $cc_basename,$host_cpu in
9132 pgcc*) # Portland Group C compiler
9133 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'
9134 tmp_addflag=' $pic_flag'
9136 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9137 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'
9138 tmp_addflag=' $pic_flag -Mnomain' ;;
9139 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9140 tmp_addflag=' -i_dynamic' ;;
9141 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9142 tmp_addflag=' -i_dynamic -nofor_main' ;;
9143 ifc* | ifort*) # Intel Fortran compiler
9144 tmp_addflag=' -nofor_main' ;;
9146 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9148 if test $supports_anon_versioning = yes; then
9149 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9151 $echo "local: *; };" >> $output_objdir/$libname.ver~
9152 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9161 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9170 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9175 *** create shared libraries on Solaris systems. Therefore, libtool
9176 *** is disabling shared libraries support. We urge you to upgrade GNU
9177 *** binutils to release 2.9.1 or newer. Another option is to modify
9178 *** your PATH or compiler configuration so that the native linker is
9179 *** used, and then restart.
9182 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9191 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9194 hardcode_shlibpath_var=no
9198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9207 if test "$ld_shlibs" = no; then
9209 hardcode_libdir_flag_spec=
9210 export_dynamic_flag_spec=
9211 whole_archive_flag_spec=
9214 # PORTME fill in a description of your system's linker (not GNU ld)
9217 allow_undefined_flag=unsupported
9218 always_export_symbols=yes
9219 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'
9220 # Note: this linker hardcodes the directories in LIBPATH if there
9221 # are no directories specified by -L.
9222 hardcode_minus_L=yes
9223 if test "$GCC" = yes && test -z "$link_static_flag"; then
9224 # Neither direct hardcoding nor static linking is supported with a
9226 hardcode_direct=unsupported
9231 if test "$host_cpu" = ia64; then
9232 # On IA64, the linker does run time linking by default, so we don't
9233 # have to do anything special.
9234 aix_use_runtimelinking=no
9235 exp_sym_flag='-Bexport'
9238 # If we're using GNU nm, then we don't want the "-C" option.
9239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9240 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9241 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'
9243 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'
9245 aix_use_runtimelinking=no
9247 # Test if we are trying to use run time linking or normal
9248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9249 # need to do runtime linking.
9250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9251 for ld_flag in $LDFLAGS; do
9252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9253 aix_use_runtimelinking=yes
9259 exp_sym_flag='-bexport'
9260 no_entry_flag='-bnoentry'
9263 # When large executables or shared objects are built, AIX ld can
9264 # have problems creating the table of contents. If linking a library
9265 # or program results in "error TOC overflow" add -mminimal-toc to
9266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9271 hardcode_libdir_separator=':'
9272 link_all_deplibs=yes
9274 if test "$GCC" = yes; then
9275 case $host_os in aix4.[012]|aix4.[012].*)
9276 # We only want to do this on AIX 4.2 and lower, the check
9277 # below for broken collect2 doesn't work under 4.3+
9278 collect2name=`${CC} -print-prog-name=collect2`
9279 if test -f "$collect2name" && \
9280 strings "$collect2name" | grep resolve_lib_name >/dev/null
9282 # We have reworked collect2
9285 # We have old collect2
9286 hardcode_direct=unsupported
9287 # It fails to find uninstalled libraries when the uninstalled
9288 # path is not listed in the libpath. Setting hardcode_minus_L
9289 # to unsupported forces relinking
9290 hardcode_minus_L=yes
9291 hardcode_libdir_flag_spec='-L$libdir'
9292 hardcode_libdir_separator=
9295 shared_flag='-shared'
9296 if test "$aix_use_runtimelinking" = yes; then
9297 shared_flag="$shared_flag "'${wl}-G'
9301 if test "$host_cpu" = ia64; then
9302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9303 # chokes on -Wl,-G. The following line is correct:
9306 if test "$aix_use_runtimelinking" = yes; then
9307 shared_flag='${wl}-G'
9309 shared_flag='${wl}-bM:SRE'
9314 # It seems that -bexpall does not export symbols beginning with
9315 # underscore (_), so it is better to generate a list of symbols to export.
9316 always_export_symbols=yes
9317 if test "$aix_use_runtimelinking" = yes; then
9318 # Warning - without using the other runtime loading flags (-brtl),
9319 # -berok will link without error, but may produce a broken library.
9320 allow_undefined_flag='-berok'
9321 # Determine the default libpath from the value encoded in an empty executable.
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>conftest.er1
9341 grep -v '^ *+' conftest.er1 >conftest.err
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -z "$ac_c_werror_flag"
9347 || test ! -s conftest.err'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; } &&
9353 { ac_try='test -s conftest$ac_exeext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9362 # Check for a 64-bit object if we didn't find anything.
9363 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; }
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9370 rm -f conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9374 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9375 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"
9377 if test "$host_cpu" = ia64; then
9378 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9379 allow_undefined_flag="-z nodefs"
9380 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"
9382 # Determine the default libpath from the value encoded in an empty executable.
9383 cat >conftest.$ac_ext <<_ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400 (eval $ac_link) 2>conftest.er1
9402 grep -v '^ *+' conftest.er1 >conftest.err
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -z "$ac_c_werror_flag"
9408 || test ! -s conftest.err'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; } &&
9414 { ac_try='test -s conftest$ac_exeext'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9423 # Check for a 64-bit object if we didn't find anything.
9424 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; }
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9431 rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9436 # Warning - without using the other run time loading flags,
9437 # -berok will link without error, but may produce a broken library.
9438 no_undefined_flag=' ${wl}-bernotok'
9439 allow_undefined_flag=' ${wl}-berok'
9440 # -bexpall does not export symbols beginning with underscore (_)
9441 always_export_symbols=yes
9442 # Exported symbols can be pulled into shared objects from archives
9443 whole_archive_flag_spec=' '
9444 archive_cmds_need_lc=yes
9445 # This is similar to how AIX traditionally builds it's shared libraries.
9446 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'
9452 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)'
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_minus_L=yes
9455 # see comment about different semantics on the GNU ld section
9460 export_dynamic_flag_spec=-rdynamic
9463 cygwin* | mingw* | pw32*)
9464 # When not using gcc, we currently assume that we are using
9465 # Microsoft Visual C++.
9466 # hardcode_libdir_flag_spec is actually meaningless, as there is
9467 # no search path for DLLs.
9468 hardcode_libdir_flag_spec=' '
9469 allow_undefined_flag=unsupported
9470 # Tell ltmain to make .lib files, not .a files.
9472 # Tell ltmain to make .dll files, not .so files.
9474 # FIXME: Setting linknames here is a bad hack.
9475 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9476 # The linker will automatically build a .lib file if we build a DLL.
9477 old_archive_From_new_cmds='true'
9478 # FIXME: Should let the user specify the lib program.
9479 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9480 fix_srcfile_path='`cygpath -w "$srcfile"`'
9481 enable_shared_with_static_runtimes=yes
9484 darwin* | rhapsody*)
9486 rhapsody* | darwin1.[012])
9487 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9490 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9491 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9493 case ${MACOSX_DEPLOYMENT_TARGET} in
9495 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9498 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9504 archive_cmds_need_lc=no
9506 hardcode_automatic=yes
9507 hardcode_shlibpath_var=unsupported
9508 whole_archive_flag_spec=''
9509 link_all_deplibs=yes
9510 if test "$GCC" = yes ; then
9511 output_verbose_link_cmd='echo'
9512 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9513 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9514 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9515 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}'
9516 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}'
9518 case $cc_basename in
9520 output_verbose_link_cmd='echo'
9521 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9522 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9523 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9524 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}'
9525 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}'
9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_libdir_flag_spec='-L$libdir'
9537 hardcode_shlibpath_var=no
9544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9545 # support. Future versions do this automatically, but an explicit c++rt0.o
9546 # does not break anything, and helps significantly (at the cost of a little
9549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9550 hardcode_libdir_flag_spec='-R$libdir'
9552 hardcode_shlibpath_var=no
9555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_minus_L=yes
9560 hardcode_shlibpath_var=no
9563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9564 freebsd* | kfreebsd*-gnu | dragonfly*)
9565 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9566 hardcode_libdir_flag_spec='-R$libdir'
9568 hardcode_shlibpath_var=no
9572 if test "$GCC" = yes; then
9573 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'
9575 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'
9577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9578 hardcode_libdir_separator=:
9581 # hardcode_minus_L: Not really in the search PATH,
9582 # but as the default location of the library.
9583 hardcode_minus_L=yes
9584 export_dynamic_flag_spec='${wl}-E'
9588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9591 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9594 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9600 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9603 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9607 if test "$with_gnu_ld" = no; then
9610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9611 hardcode_libdir_flag_spec_ld='+b $libdir'
9612 hardcode_libdir_separator=:
9614 hardcode_shlibpath_var=no
9617 hardcode_libdir_flag_spec='-L$libdir'
9619 hardcode_shlibpath_var=no
9621 # hardcode_minus_L: Not really in the search PATH,
9622 # but as the default location of the library.
9623 hardcode_minus_L=yes
9626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9627 hardcode_libdir_separator=:
9629 export_dynamic_flag_spec='${wl}-E'
9631 # hardcode_minus_L: Not really in the search PATH,
9632 # but as the default location of the library.
9633 hardcode_minus_L=yes
9639 irix5* | irix6* | nonstopux*)
9640 if test "$GCC" = yes; then
9641 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'
9643 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'
9644 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647 hardcode_libdir_separator=:
9648 link_all_deplibs=yes
9652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9655 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9657 hardcode_libdir_flag_spec='-R$libdir'
9659 hardcode_shlibpath_var=no
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9666 hardcode_libdir_separator=:
9667 hardcode_shlibpath_var=no
9672 hardcode_shlibpath_var=no
9673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9675 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9677 export_dynamic_flag_spec='${wl}-E'
9680 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_libdir_flag_spec='-R$libdir'
9685 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9693 hardcode_libdir_flag_spec='-L$libdir'
9694 hardcode_minus_L=yes
9695 allow_undefined_flag=unsupported
9696 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'
9697 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9701 if test "$GCC" = yes; then
9702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9703 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'
9705 allow_undefined_flag=' -expect_unresolved \*'
9706 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'
9708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709 hardcode_libdir_separator=:
9712 osf4* | osf5*) # as osf3* with the addition of -msym flag
9713 if test "$GCC" = yes; then
9714 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9715 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'
9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9718 allow_undefined_flag=' -expect_unresolved \*'
9719 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'
9720 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9721 $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'
9723 # Both c and cxx compiler support -rpath directly
9724 hardcode_libdir_flag_spec='-rpath $libdir'
9726 hardcode_libdir_separator=:
9730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_shlibpath_var=no
9732 export_dynamic_flag_spec='${wl}-Bexport'
9733 runpath_var=LD_RUN_PATH
9734 hardcode_runpath_var=yes
9738 no_undefined_flag=' -z text'
9739 if test "$GCC" = yes; then
9741 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9743 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9746 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9750 hardcode_libdir_flag_spec='-R$libdir'
9751 hardcode_shlibpath_var=no
9753 solaris2.[0-5] | solaris2.[0-5].*) ;;
9755 # The compiler driver will combine linker options so we
9756 # cannot just pass the convience library names through
9757 # without $wl, iff we do not link with $LD.
9758 # Luckily, gcc supports the same syntax we need for Sun Studio.
9759 # Supported since Solaris 2.6 (maybe 2.5.1?)
9762 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9764 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' ;;
9767 link_all_deplibs=yes
9771 if test "x$host_vendor" = xsequent; then
9772 # Use $CC to link under sequent, because it throws in some extra .o
9773 # files that make .init and .fini sections work.
9774 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_libdir_flag_spec='-L$libdir'
9780 hardcode_minus_L=yes
9781 hardcode_shlibpath_var=no
9785 case $host_vendor in
9787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788 hardcode_direct=yes # is this really true???
9791 ## LD is ld it makes a PLAMLIB
9792 ## CC just makes a GrossModule.
9793 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9794 reload_cmds='$CC -r -o $output$reload_objs'
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9802 runpath_var='LD_RUN_PATH'
9803 hardcode_shlibpath_var=no
9807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808 hardcode_shlibpath_var=no
9809 export_dynamic_flag_spec='-Bexport'
9813 if test -d /usr/nec; then
9814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815 hardcode_shlibpath_var=no
9816 runpath_var=LD_RUN_PATH
9817 hardcode_runpath_var=yes
9823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_shlibpath_var=no
9827 hardcode_runpath_var=yes
9828 runpath_var=LD_RUN_PATH
9831 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9832 no_undefined_flag='${wl}-z ${wl}text'
9833 if test "$GCC" = yes; then
9834 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 runpath_var='LD_RUN_PATH'
9839 hardcode_shlibpath_var=no
9843 no_undefined_flag=' -z text'
9844 # $CC -shared without GNU ld will not create a library from C++
9845 # object files and a static libstdc++, better avoid it by now
9846 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9848 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9849 hardcode_libdir_flag_spec=
9850 hardcode_shlibpath_var=no
9851 runpath_var='LD_RUN_PATH'
9855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856 hardcode_libdir_flag_spec='-L$libdir'
9857 hardcode_shlibpath_var=no
9866 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9867 echo "${ECHO_T}$ld_shlibs" >&6
9868 test "$ld_shlibs" = no && can_build_shared=no
9870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9871 if test "$GCC" = yes; then
9872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9876 # Do we need to explicitly link libc?
9878 case "x$archive_cmds_need_lc" in
9880 # Assume -lc should be added
9881 archive_cmds_need_lc=yes
9883 if test "$enable_shared" = yes && test "$GCC" = yes; then
9884 case $archive_cmds in
9886 # FIXME: we may have to deal with multi-command sequences.
9889 # Test whether the compiler implicitly links with -lc since on some
9890 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9891 # to ld, don't add -lc before -lgcc.
9892 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9893 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9895 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9898 (eval $ac_compile) 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } 2>conftest.err; then
9904 libobjs=conftest.$ac_objext
9906 wl=$lt_prog_compiler_wl
9912 lt_save_allow_undefined_flag=$allow_undefined_flag
9913 allow_undefined_flag=
9914 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9915 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }
9920 archive_cmds_need_lc=no
9922 archive_cmds_need_lc=yes
9924 allow_undefined_flag=$lt_save_allow_undefined_flag
9926 cat conftest.err 1>&5
9929 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9930 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9937 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9940 libname_spec='lib$name'
9948 shlibpath_overrides_runpath=unknown
9950 dynamic_linker="$host_os ld.so"
9951 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9952 if test "$GCC" = yes; then
9953 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9954 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9955 # if the path contains ";" then we assume it to be the separator
9956 # otherwise default to the standard path separator (i.e. ":") - it is
9957 # assumed that no part of a normal pathname contains ";" but that should
9958 # okay in the real world where ";" in dirpaths is itself problematic.
9959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9964 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9966 need_lib_prefix=unknown
9967 hardcode_into_libs=no
9969 # when you set need_version to no, make sure it does not cause -set_version
9970 # flags to be left without arguments
9971 need_version=unknown
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9977 shlibpath_var=LIBPATH
9979 # AIX 3 has no versioning support, so we append a major version to the name.
9980 soname_spec='${libname}${release}${shared_ext}$major'
9987 hardcode_into_libs=yes
9988 if test "$host_cpu" = ia64; then
9989 # AIX 5 supports IA64
9990 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9991 shlibpath_var=LD_LIBRARY_PATH
9993 # With GCC up to 2.95.x, collect2 would create an import file
9994 # for dependence libraries. The import file would start with
9995 # the line `#! .'. This would cause the generated library to
9996 # depend on `.', always an invalid library. This was fixed in
9997 # development snapshots of GCC prior to 3.0.
9999 aix4 | aix4.[01] | aix4.[01].*)
10000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10002 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10005 can_build_shared=no
10009 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10010 # soname into executable. Probably we can add versioning support to
10011 # collect2, so additional links can be useful in future.
10012 if test "$aix_use_runtimelinking" = yes; then
10013 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10014 # instead of lib<name>.a to let people know that these are not
10015 # typical AIX shared libraries.
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 # We preserve .a as extension for shared libraries through AIX4.2
10019 # and later when we are not doing run time linking.
10020 library_names_spec='${libname}${release}.a $libname.a'
10021 soname_spec='${libname}${release}${shared_ext}$major'
10023 shlibpath_var=LIBPATH
10028 library_names_spec='$libname.ixlibrary $libname.a'
10029 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10030 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'
10034 library_names_spec='${libname}${shared_ext}'
10035 dynamic_linker="$host_os ld.so"
10036 shlibpath_var=LIBRARY_PATH
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10047 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10048 # the default ld.so.conf also contains /usr/contrib/lib and
10049 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10050 # libtool to hard-code these into programs
10053 cygwin* | mingw* | pw32*)
10054 version_type=windows
10059 case $GCC,$host_os in
10060 yes,cygwin* | yes,mingw* | yes,pw32*)
10061 library_names_spec='$libname.dll.a'
10062 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10063 postinstall_cmds='base_file=`basename \${file}`~
10064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10065 dldir=$destdir/`dirname \$dlpath`~
10066 test -d \$dldir || mkdir -p \$dldir~
10067 $install_prog $dir/$dlname \$dldir/$dlname'
10068 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10069 dlpath=$dir/\$dldll~
10071 shlibpath_overrides_runpath=yes
10075 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10076 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10077 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10080 # MinGW DLLs use traditional 'lib' prefix
10081 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10083 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10084 # It is most probably a Windows format PATH printed by
10085 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10086 # path with ; separators, and with drive letters. We can handle the
10087 # drive letters (cygwin fileutils understands them), so leave them,
10088 # especially as we might pass files found there to a mingw objdump,
10089 # which wouldn't understand a cygwinified path. Ahh.
10090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10096 # pw32 DLLs use 'pw' prefix rather than 'lib'
10097 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10103 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10106 dynamic_linker='Win32 ld.exe'
10107 # FIXME: first we should search . and the directory the executable is in
10111 darwin* | rhapsody*)
10112 dynamic_linker="$host_os dyld"
10113 version_type=darwin
10116 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10117 soname_spec='${libname}${release}${major}$shared_ext'
10118 shlibpath_overrides_runpath=yes
10119 shlibpath_var=DYLD_LIBRARY_PATH
10120 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10121 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10122 if test "$GCC" = yes; then
10123 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"`
10125 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10127 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LD_LIBRARY_PATH
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=no
10151 hardcode_into_libs=yes
10152 dynamic_linker='GNU ld.so'
10155 freebsd* | dragonfly*)
10156 # DragonFly does not have aout. When/if they implement a new
10157 # versioning mechanism, adjust this.
10158 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10159 version_type=freebsd-$objformat
10160 case $version_type in
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10171 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10176 freebsd3.[01]* | freebsdelf3.[01]*)
10177 shlibpath_overrides_runpath=yes
10178 hardcode_into_libs=yes
10181 shlibpath_overrides_runpath=no
10182 hardcode_into_libs=yes
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 hardcode_into_libs=yes
10197 hpux9* | hpux10* | hpux11*)
10198 # Give a soname corresponding to the major version so that dld.sl refuses to
10199 # link against other versions.
10203 case "$host_cpu" in
10206 hardcode_into_libs=yes
10207 dynamic_linker="$host_os dld.so"
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 if test "X$HPUX_IA64_MODE" = X32; then
10213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10221 hardcode_into_libs=yes
10222 dynamic_linker="$host_os dld.sl"
10223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10232 dynamic_linker="$host_os dld.sl"
10233 shlibpath_var=SHLIB_PATH
10234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10239 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10240 postinstall_cmds='chmod 555 $lib'
10243 irix5* | irix6* | nonstopux*)
10245 nonstopux*) version_type=nonstopux ;;
10247 if test "$lt_cv_prog_gnu_ld" = yes; then
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10258 irix5* | nonstopux*)
10259 libsuff= shlibsuff=
10262 case $LD in # libtool.m4 will add one of these switches to LD
10263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10264 libsuff= shlibsuff= libmagic=32-bit;;
10265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10266 libsuff=32 shlibsuff=N32 libmagic=N32;;
10267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10269 *) libsuff= shlibsuff= libmagic=never-match;;
10273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10274 shlibpath_overrides_runpath=no
10275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10277 hardcode_into_libs=yes
10280 # No shared lib support for Linux oldld, aout, or coff.
10281 linux*oldld* | linux*aout* | linux*coff*)
10285 # This must be Linux ELF.
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=no
10295 # This implies no fast_install, which is unacceptable.
10296 # Some rework will be needed to allow for fast_install
10297 # before this can be enabled.
10298 hardcode_into_libs=yes
10300 # Append ld.so.conf contents to the search path
10301 if test -f /etc/ld.so.conf; then
10302 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' ' '`
10303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10306 # We used to test for /lib/ld.so.1 and disable shared libraries on
10307 # powerpc, because MkLinux only supported shared libraries with the
10308 # GNU dynamic linker. Since this was broken with cross compilers,
10309 # most powerpc-linux boxes support dynamic linking these days and
10310 # people can always --disable-shared, the test was removed, and we
10311 # assume the GNU/Linux dynamic linker is in use.
10312 dynamic_linker='GNU/Linux ld.so'
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 shlibpath_var=LD_LIBRARY_PATH
10322 shlibpath_overrides_runpath=no
10323 hardcode_into_libs=yes
10324 dynamic_linker='GNU ld.so'
10331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10334 dynamic_linker='NetBSD (a.out) ld.so'
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 dynamic_linker='NetBSD ld.elf_so'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes
10342 hardcode_into_libs=yes
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 shlibpath_overrides_runpath=yes
10365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10367 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10368 *) need_version=no ;;
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10375 openbsd2.[89] | openbsd2.[89].*)
10376 shlibpath_overrides_runpath=no
10379 shlibpath_overrides_runpath=yes
10383 shlibpath_overrides_runpath=yes
10388 libname_spec='$name'
10391 library_names_spec='$libname${shared_ext} $libname.a'
10392 dynamic_linker='OS/2 ld.exe'
10393 shlibpath_var=LIBPATH
10396 osf3* | osf4* | osf5*)
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411 shlibpath_var=LD_LIBRARY_PATH
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=yes
10422 hardcode_into_libs=yes
10423 # ldd complains unless libraries are executable
10424 postinstall_cmds='chmod +x $lib'
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 shlibpath_overrides_runpath=yes
10433 if test "$with_gnu_ld" = yes; then
10439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 case $host_vendor in
10446 shlibpath_overrides_runpath=no
10448 export_dynamic_flag_spec='${wl}-Blargedynsym'
10449 runpath_var=LD_RUN_PATH
10457 shlibpath_overrides_runpath=no
10458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10464 if test -d /usr/nec ;then
10466 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10467 soname_spec='$libname${shared_ext}.$major'
10468 shlibpath_var=LD_LIBRARY_PATH
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10483 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10484 echo "${ECHO_T}$dynamic_linker" >&6
10485 test "$dynamic_linker" = no && can_build_shared=no
10487 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10490 if test -n "$hardcode_libdir_flag_spec" || \
10491 test -n "$runpath_var" || \
10492 test "X$hardcode_automatic" = "Xyes" ; then
10494 # We can hardcode non-existant directories.
10495 if test "$hardcode_direct" != no &&
10496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10497 # have to relink, otherwise we might link with an installed library
10498 # when we should be linking with a yet-to-be-installed one
10499 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10500 test "$hardcode_minus_L" != no; then
10501 # Linking always hardcodes the temporary library directory.
10502 hardcode_action=relink
10504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10505 hardcode_action=immediate
10508 # We cannot hardcode anything, or else we can only hardcode existing
10510 hardcode_action=unsupported
10512 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10513 echo "${ECHO_T}$hardcode_action" >&6
10515 if test "$hardcode_action" = relink; then
10516 # Fast installation is not supported
10517 enable_fast_install=no
10518 elif test "$shlibpath_overrides_runpath" = yes ||
10519 test "$enable_shared" = no; then
10520 # Fast installation is not necessary
10521 enable_fast_install=needless
10526 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10527 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10528 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10529 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10530 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10531 echo "$as_me:$LINENO: result: yes" >&5
10532 echo "${ECHO_T}yes" >&6
10534 # FIXME - insert some real tests, host_os isn't really good enough
10537 if test -n "$STRIP" ; then
10538 striplib="$STRIP -x"
10539 echo "$as_me:$LINENO: result: yes" >&5
10540 echo "${ECHO_T}yes" >&6
10542 echo "$as_me:$LINENO: result: no" >&5
10543 echo "${ECHO_T}no" >&6
10547 echo "$as_me:$LINENO: result: no" >&5
10548 echo "${ECHO_T}no" >&6
10553 if test "x$enable_dlopen" != xyes; then
10554 enable_dlopen=unknown
10555 enable_dlopen_self=unknown
10556 enable_dlopen_self_static=unknown
10563 lt_cv_dlopen="load_add_on"
10565 lt_cv_dlopen_self=yes
10569 lt_cv_dlopen="LoadLibrary"
10574 lt_cv_dlopen="dlopen"
10579 # if libdl is installed we need to link against it
10580 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 ac_check_lib_save_LIBS=$LIBS
10587 cat >conftest.$ac_ext <<_ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10594 /* Override any gcc2 internal prototype to avoid an error. */
10598 /* We use char because int might match the return type of a gcc2
10599 builtin and then its argument prototype would still apply. */
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>conftest.er1
10613 grep -v '^ *+' conftest.er1 >conftest.err
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
10618 { ac_try='test -z "$ac_c_werror_flag"
10619 || test ! -s conftest.err'
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest$ac_exeext'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_cv_lib_dl_dlopen=yes
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_cv_lib_dl_dlopen=no
10638 rm -f conftest.err conftest.$ac_objext \
10639 conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10642 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10643 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10644 if test $ac_cv_lib_dl_dlopen = yes; then
10645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10648 lt_cv_dlopen="dyld"
10650 lt_cv_dlopen_self=yes
10657 echo "$as_me:$LINENO: checking for shl_load" >&5
10658 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10659 if test "${ac_cv_func_shl_load+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 cat >conftest.$ac_ext <<_ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10668 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10670 #define shl_load innocuous_shl_load
10672 /* System header to define __stub macros and hopefully few prototypes,
10673 which can conflict with char shl_load (); below.
10674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10675 <limits.h> exists even on freestanding compilers. */
10678 # include <limits.h>
10680 # include <assert.h>
10685 /* Override any gcc2 internal prototype to avoid an error. */
10690 /* We use char because int might match the return type of a gcc2
10691 builtin and then its argument prototype would still apply. */
10693 /* The GNU C library defines this for functions which it implements
10694 to always fail with ENOSYS. Some functions are actually named
10695 something starting with __ and the normal name is an alias. */
10696 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10699 char (*f) () = shl_load;
10708 return f != shl_load;
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10715 (eval $ac_link) 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try='test -z "$ac_c_werror_flag"
10723 || test ! -s conftest.err'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_func_shl_load=yes
10737 echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10740 ac_cv_func_shl_load=no
10742 rm -f conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10745 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10746 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10747 if test $ac_cv_func_shl_load = yes; then
10748 lt_cv_dlopen="shl_load"
10750 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10751 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10752 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 ac_check_lib_save_LIBS=$LIBS
10757 cat >conftest.$ac_ext <<_ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10764 /* Override any gcc2 internal prototype to avoid an error. */
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>conftest.er1
10783 grep -v '^ *+' conftest.er1 >conftest.err
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag"
10789 || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try='test -s conftest$ac_exeext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 ac_cv_lib_dld_shl_load=yes
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ac_cv_lib_dld_shl_load=no
10808 rm -f conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10813 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10814 if test $ac_cv_lib_dld_shl_load = yes; then
10815 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10817 echo "$as_me:$LINENO: checking for dlopen" >&5
10818 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10819 if test "${ac_cv_func_dlopen+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 cat >conftest.$ac_ext <<_ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10828 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10830 #define dlopen innocuous_dlopen
10832 /* System header to define __stub macros and hopefully few prototypes,
10833 which can conflict with char dlopen (); below.
10834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10835 <limits.h> exists even on freestanding compilers. */
10838 # include <limits.h>
10840 # include <assert.h>
10845 /* Override any gcc2 internal prototype to avoid an error. */
10850 /* We use char because int might match the return type of a gcc2
10851 builtin and then its argument prototype would still apply. */
10853 /* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
10856 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10859 char (*f) () = dlopen;
10868 return f != dlopen;
10873 rm -f conftest.$ac_objext conftest$ac_exeext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10875 (eval $ac_link) 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag"
10883 || test ! -s conftest.err'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest$ac_exeext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 ac_cv_func_dlopen=yes
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10900 ac_cv_func_dlopen=no
10902 rm -f conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10905 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10906 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10907 if test $ac_cv_func_dlopen = yes; then
10908 lt_cv_dlopen="dlopen"
10910 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10911 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10912 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 ac_check_lib_save_LIBS=$LIBS
10917 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10924 /* Override any gcc2 internal prototype to avoid an error. */
10928 /* We use char because int might match the return type of a gcc2
10929 builtin and then its argument prototype would still apply. */
10939 rm -f conftest.$ac_objext conftest$ac_exeext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10941 (eval $ac_link) 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag"
10949 || test ! -s conftest.err'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest$ac_exeext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_cv_lib_dl_dlopen=yes
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_cv_lib_dl_dlopen=no
10968 rm -f conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10972 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10973 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10974 if test $ac_cv_lib_dl_dlopen = yes; then
10975 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10977 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10978 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10979 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-lsvld $LIBS"
10984 cat >conftest.$ac_ext <<_ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10991 /* Override any gcc2 internal prototype to avoid an error. */
10995 /* We use char because int might match the return type of a gcc2
10996 builtin and then its argument prototype would still apply. */
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11008 (eval $ac_link) 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag"
11016 || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest$ac_exeext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 ac_cv_lib_svld_dlopen=yes
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 ac_cv_lib_svld_dlopen=no
11035 rm -f conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11039 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11040 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11041 if test $ac_cv_lib_svld_dlopen = yes; then
11042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11044 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11045 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11046 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 ac_check_lib_save_LIBS=$LIBS
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11058 /* Override any gcc2 internal prototype to avoid an error. */
11062 /* We use char because int might match the return type of a gcc2
11063 builtin and then its argument prototype would still apply. */
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest$ac_exeext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_cv_lib_dld_dld_link=yes
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 ac_cv_lib_dld_dld_link=no
11102 rm -f conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11106 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11107 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11108 if test $ac_cv_lib_dld_dld_link = yes; then
11109 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11130 if test "x$lt_cv_dlopen" != xno; then
11136 case $lt_cv_dlopen in
11138 save_CPPFLAGS="$CPPFLAGS"
11139 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11141 save_LDFLAGS="$LDFLAGS"
11142 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11145 LIBS="$lt_cv_dlopen_libs $LIBS"
11147 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11148 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11149 if test "${lt_cv_dlopen_self+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 if test "$cross_compiling" = yes; then :
11153 lt_cv_dlopen_self=cross
11155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11156 lt_status=$lt_dlunknown
11157 cat > conftest.$ac_ext <<EOF
11158 #line 11158 "configure"
11159 #include "confdefs.h"
11168 # define LT_DLGLOBAL RTLD_GLOBAL
11171 # define LT_DLGLOBAL DL_GLOBAL
11173 # define LT_DLGLOBAL 0
11177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11178 find out it does not work in some platform. */
11179 #ifndef LT_DLLAZY_OR_NOW
11181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11184 # define LT_DLLAZY_OR_NOW DL_LAZY
11187 # define LT_DLLAZY_OR_NOW RTLD_NOW
11190 # define LT_DLLAZY_OR_NOW DL_NOW
11192 # define LT_DLLAZY_OR_NOW 0
11200 extern "C" void exit (int);
11203 void fnord() { int i=42;}
11206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11207 int status = $lt_dlunknown;
11211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11212 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11213 /* dlclose (self); */
11219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11220 (eval $ac_link) 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11224 (./conftest; exit; ) 2>/dev/null
11226 case x$lt_status in
11227 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11228 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11229 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11232 # compilation failed
11233 lt_cv_dlopen_self=no
11240 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11241 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11243 if test "x$lt_cv_dlopen_self" = xyes; then
11244 LDFLAGS="$LDFLAGS $link_static_flag"
11245 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11246 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11247 if test "${lt_cv_dlopen_self_static+set}" = set; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 if test "$cross_compiling" = yes; then :
11251 lt_cv_dlopen_self_static=cross
11253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11254 lt_status=$lt_dlunknown
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11256 "configure"
11257 #include "confdefs.h"
11266 # define LT_DLGLOBAL RTLD_GLOBAL
11269 # define LT_DLGLOBAL DL_GLOBAL
11271 # define LT_DLGLOBAL 0
11275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11276 find out it does not work in some platform. */
11277 #ifndef LT_DLLAZY_OR_NOW
11279 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11282 # define LT_DLLAZY_OR_NOW DL_LAZY
11285 # define LT_DLLAZY_OR_NOW RTLD_NOW
11288 # define LT_DLLAZY_OR_NOW DL_NOW
11290 # define LT_DLLAZY_OR_NOW 0
11298 extern "C" void exit (int);
11301 void fnord() { int i=42;}
11304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11305 int status = $lt_dlunknown;
11309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11310 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11311 /* dlclose (self); */
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11322 (./conftest; exit; ) 2>/dev/null
11324 case x$lt_status in
11325 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11326 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11327 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11330 # compilation failed
11331 lt_cv_dlopen_self_static=no
11338 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11339 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11342 CPPFLAGS="$save_CPPFLAGS"
11343 LDFLAGS="$save_LDFLAGS"
11348 case $lt_cv_dlopen_self in
11349 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11350 *) enable_dlopen_self=unknown ;;
11353 case $lt_cv_dlopen_self_static in
11354 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11355 *) enable_dlopen_self_static=unknown ;;
11360 # Report which librarie types wil actually be built
11361 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11362 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11363 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11364 echo "${ECHO_T}$can_build_shared" >&6
11366 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11367 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11368 test "$can_build_shared" = "no" && enable_shared=no
11370 # On AIX, shared libraries and static libraries use the same namespace, and
11371 # are all built from PIC.
11374 test "$enable_shared" = yes && enable_static=no
11375 if test -n "$RANLIB"; then
11376 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11377 postinstall_cmds='$RANLIB $lib'
11382 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11383 test "$enable_shared" = yes && enable_static=no
11387 echo "$as_me:$LINENO: result: $enable_shared" >&5
11388 echo "${ECHO_T}$enable_shared" >&6
11390 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11391 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11392 # Make sure either enable_shared or enable_static is yes.
11393 test "$enable_shared" = yes || enable_static=yes
11394 echo "$as_me:$LINENO: result: $enable_static" >&5
11395 echo "${ECHO_T}$enable_static" >&6
11397 # The else clause should only fire when bootstrapping the
11398 # libtool distribution, otherwise you forgot to ship ltmain.sh
11399 # with your package, and you will get complaints that there are
11400 # no rules to generate ltmain.sh.
11401 if test -f "$ltmain"; then
11402 # See if we are running on zsh, and set the options which allow our commands through
11403 # without removal of \ escapes.
11404 if test -n "${ZSH_VERSION+set}" ; then
11405 setopt NO_GLOB_SUBST
11407 # Now quote all the things that may contain metacharacters while being
11408 # careful not to overquote the AC_SUBSTed values. We take copies of the
11409 # variables and quote the copies for generation of the libtool script.
11410 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11412 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11413 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11414 deplibs_check_method reload_flag reload_cmds need_locks \
11415 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11416 lt_cv_sys_global_symbol_to_c_name_address \
11417 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11418 old_postinstall_cmds old_postuninstall_cmds \
11422 lt_prog_compiler_wl \
11423 lt_prog_compiler_pic \
11424 lt_prog_compiler_static \
11425 lt_prog_compiler_no_builtin_flag \
11426 export_dynamic_flag_spec \
11427 thread_safe_flag_spec \
11428 whole_archive_flag_spec \
11429 enable_shared_with_static_runtimes \
11431 old_archive_from_new_cmds \
11436 compiler_lib_search_path \
11438 archive_expsym_cmds \
11440 postuninstall_cmds \
11441 old_archive_from_expsyms_cmds \
11442 allow_undefined_flag \
11443 no_undefined_flag \
11444 export_symbols_cmds \
11445 hardcode_libdir_flag_spec \
11446 hardcode_libdir_flag_spec_ld \
11447 hardcode_libdir_separator \
11448 hardcode_automatic \
11450 module_expsym_cmds \
11451 lt_cv_prog_compiler_c_o \
11453 include_expsyms; do
11456 old_archive_cmds | \
11457 old_archive_from_new_cmds | \
11459 archive_expsym_cmds | \
11461 module_expsym_cmds | \
11462 old_archive_from_expsyms_cmds | \
11463 export_symbols_cmds | \
11464 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11465 postinstall_cmds | postuninstall_cmds | \
11466 old_postinstall_cmds | old_postuninstall_cmds | \
11467 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11468 # Double-quote double-evaled strings.
11469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11478 *'\$0 --fallback-echo"')
11479 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11483 cfgfile="${ofile}T"
11484 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11486 { echo "$as_me:$LINENO: creating $ofile" >&5
11487 echo "$as_me: creating $ofile" >&6;}
11489 cat <<__EOF__ >> "$cfgfile"
11492 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11493 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11494 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11496 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11497 # Free Software Foundation, Inc.
11499 # This file is part of GNU Libtool:
11500 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11502 # This program is free software; you can redistribute it and/or modify
11503 # it under the terms of the GNU General Public License as published by
11504 # the Free Software Foundation; either version 2 of the License, or
11505 # (at your option) any later version.
11507 # This program is distributed in the hope that it will be useful, but
11508 # WITHOUT ANY WARRANTY; without even the implied warranty of
11509 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11510 # General Public License for more details.
11512 # You should have received a copy of the GNU General Public License
11513 # along with this program; if not, write to the Free Software
11514 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11516 # As a special exception to the GNU General Public License, if you
11517 # distribute this file as part of a program that contains a
11518 # configuration script generated by Autoconf, you may include it under
11519 # the same distribution terms that you use for the rest of that program.
11521 # A sed program that does not truncate output.
11524 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11525 Xsed="$SED -e 1s/^X//"
11527 # The HP-UX ksh and POSIX shell print the target directory to stdout
11528 # if CDPATH is set.
11529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11531 # The names of the tagged configurations supported by this script.
11534 # ### BEGIN LIBTOOL CONFIG
11536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11538 # Shell to use when invoking shell scripts.
11541 # Whether or not to build shared libraries.
11542 build_libtool_libs=$enable_shared
11544 # Whether or not to build static libraries.
11545 build_old_libs=$enable_static
11547 # Whether or not to add -lc for building shared libraries.
11548 build_libtool_need_lc=$archive_cmds_need_lc
11550 # Whether or not to disallow shared libs when runtime libs are static
11551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11553 # Whether or not to optimize for fast installation.
11554 fast_install=$enable_fast_install
11557 host_alias=$host_alias
11561 # The build system.
11562 build_alias=$build_alias
11566 # An echo program that does not interpret backslashes.
11571 AR_FLAGS=$lt_AR_FLAGS
11576 # A language-specific compiler.
11579 # Is the compiler the GNU C compiler?
11585 # The linker used to build libraries.
11588 # Whether we need hard or soft links.
11591 # A BSD-compatible nm program.
11594 # A symbol stripping program
11597 # Used to examine libraries when file_magic_cmd begins "file"
11598 MAGIC_CMD=$MAGIC_CMD
11600 # Used on cygwin: DLL creation program.
11603 # Used on cygwin: object dumper.
11606 # Used on cygwin: assembler.
11609 # The name of the directory that contains temporary libtool files.
11612 # How to create reloadable object files.
11613 reload_flag=$lt_reload_flag
11614 reload_cmds=$lt_reload_cmds
11616 # How to pass a linker flag through the compiler.
11617 wl=$lt_lt_prog_compiler_wl
11619 # Object file suffix (normally "o").
11620 objext="$ac_objext"
11622 # Old archive suffix (normally "a").
11625 # Shared library suffix (normally ".so").
11626 shrext_cmds='$shrext_cmds'
11628 # Executable file suffix (normally "").
11631 # Additional compiler flags for building library objects.
11632 pic_flag=$lt_lt_prog_compiler_pic
11635 # What is the maximum length of a command?
11636 max_cmd_len=$lt_cv_sys_max_cmd_len
11638 # Does compiler simultaneously support -c and -o options?
11639 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11641 # Must we lock files when doing compilation?
11642 need_locks=$lt_need_locks
11644 # Do we need the lib prefix for modules?
11645 need_lib_prefix=$need_lib_prefix
11647 # Do we need a version for libraries?
11648 need_version=$need_version
11650 # Whether dlopen is supported.
11651 dlopen_support=$enable_dlopen
11653 # Whether dlopen of programs is supported.
11654 dlopen_self=$enable_dlopen_self
11656 # Whether dlopen of statically linked programs is supported.
11657 dlopen_self_static=$enable_dlopen_self_static
11659 # Compiler flag to prevent dynamic linking.
11660 link_static_flag=$lt_lt_prog_compiler_static
11662 # Compiler flag to turn off builtin functions.
11663 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11665 # Compiler flag to allow reflexive dlopens.
11666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11668 # Compiler flag to generate shared objects directly from archives.
11669 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11671 # Compiler flag to generate thread-safe objects.
11672 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11674 # Library versioning type.
11675 version_type=$version_type
11677 # Format of library name prefix.
11678 libname_spec=$lt_libname_spec
11680 # List of archive names. First name is the real one, the rest are links.
11681 # The last name is the one that the linker finds with -lNAME.
11682 library_names_spec=$lt_library_names_spec
11684 # The coded name of the library, if different from the real name.
11685 soname_spec=$lt_soname_spec
11687 # Commands used to build and install an old-style archive.
11689 old_archive_cmds=$lt_old_archive_cmds
11690 old_postinstall_cmds=$lt_old_postinstall_cmds
11691 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11693 # Create an old-style archive from a shared archive.
11694 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11696 # Create a temporary old-style archive to link instead of a shared archive.
11697 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11699 # Commands used to build and install a shared archive.
11700 archive_cmds=$lt_archive_cmds
11701 archive_expsym_cmds=$lt_archive_expsym_cmds
11702 postinstall_cmds=$lt_postinstall_cmds
11703 postuninstall_cmds=$lt_postuninstall_cmds
11705 # Commands used to build a loadable module (assumed same as above if empty)
11706 module_cmds=$lt_module_cmds
11707 module_expsym_cmds=$lt_module_expsym_cmds
11709 # Commands to strip libraries.
11710 old_striplib=$lt_old_striplib
11711 striplib=$lt_striplib
11713 # Dependencies to place before the objects being linked to create a
11715 predep_objects=$lt_predep_objects
11717 # Dependencies to place after the objects being linked to create a
11719 postdep_objects=$lt_postdep_objects
11721 # Dependencies to place before the objects being linked to create a
11723 predeps=$lt_predeps
11725 # Dependencies to place after the objects being linked to create a
11727 postdeps=$lt_postdeps
11729 # The library search path used internally by the compiler when linking
11730 # a shared library.
11731 compiler_lib_search_path=$lt_compiler_lib_search_path
11733 # Method to check whether dependent libraries are shared objects.
11734 deplibs_check_method=$lt_deplibs_check_method
11736 # Command to use when deplibs_check_method == file_magic.
11737 file_magic_cmd=$lt_file_magic_cmd
11739 # Flag that allows shared libraries with undefined symbols to be built.
11740 allow_undefined_flag=$lt_allow_undefined_flag
11742 # Flag that forces no undefined symbols.
11743 no_undefined_flag=$lt_no_undefined_flag
11745 # Commands used to finish a libtool library installation in a directory.
11746 finish_cmds=$lt_finish_cmds
11748 # Same as above, but a single script fragment to be evaled but not shown.
11749 finish_eval=$lt_finish_eval
11751 # Take the output of nm and produce a listing of raw symbols and C names.
11752 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11754 # Transform the output of nm in a proper C declaration
11755 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11757 # Transform the output of nm in a C name address pair
11758 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11760 # This is the shared library runtime path variable.
11761 runpath_var=$runpath_var
11763 # This is the shared library path variable.
11764 shlibpath_var=$shlibpath_var
11766 # Is shlibpath searched before the hard-coded library search path?
11767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11769 # How to hardcode a shared library path into an executable.
11770 hardcode_action=$hardcode_action
11772 # Whether we should hardcode library paths into libraries.
11773 hardcode_into_libs=$hardcode_into_libs
11775 # Flag to hardcode \$libdir into a binary during linking.
11776 # This must work even if \$libdir does not exist.
11777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11779 # If ld is used when linking, flag to hardcode \$libdir into
11780 # a binary during linking. This must work even if \$libdir does
11782 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11784 # Whether we need a single -rpath flag with a separated argument.
11785 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11787 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11788 # resulting binary.
11789 hardcode_direct=$hardcode_direct
11791 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11792 # resulting binary.
11793 hardcode_minus_L=$hardcode_minus_L
11795 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11796 # the resulting binary.
11797 hardcode_shlibpath_var=$hardcode_shlibpath_var
11799 # Set to yes if building a shared library automatically hardcodes DIR into the library
11800 # and all subsequent libraries and executables linked against it.
11801 hardcode_automatic=$hardcode_automatic
11803 # Variables whose values should be saved in libtool wrapper scripts and
11804 # restored at relink time.
11805 variables_saved_for_relink="$variables_saved_for_relink"
11807 # Whether libtool must link a program against all its dependency libraries.
11808 link_all_deplibs=$link_all_deplibs
11810 # Compile-time system search path for libraries
11811 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11813 # Run-time system search path for libraries
11814 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11816 # Fix the shell variable \$srcfile for the compiler.
11817 fix_srcfile_path="$fix_srcfile_path"
11819 # Set to yes if exported symbols are required.
11820 always_export_symbols=$always_export_symbols
11822 # The commands to list exported symbols.
11823 export_symbols_cmds=$lt_export_symbols_cmds
11825 # The commands to extract the exported symbol list from a shared archive.
11826 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11828 # Symbols that should not be listed in the preloaded symbols.
11829 exclude_expsyms=$lt_exclude_expsyms
11831 # Symbols that must always be exported.
11832 include_expsyms=$lt_include_expsyms
11834 # ### END LIBTOOL CONFIG
11841 cat <<\EOF >> "$cfgfile"
11843 # AIX sometimes has problems with the GCC collect2 program. For some
11844 # reason, if we set the COLLECT_NAMES environment variable, the problems
11845 # vanish in a puff of smoke.
11846 if test "X${COLLECT_NAMES+set}" != Xset; then
11848 export COLLECT_NAMES
11854 # We use sed instead of cat because bash on DJGPP gets confused if
11855 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11856 # text mode, it properly converts lines to CR/LF. This bash problem
11857 # is reportedly fixed, but why not run on old versions too?
11858 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11860 mv -f "$cfgfile" "$ofile" || \
11861 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11865 # If there is no Makefile yet, we rely on a make rule to execute
11866 # `config.status --recheck' to rerun these tests and create the
11867 # libtool script then.
11868 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11869 if test -f "$ltmain_in"; then
11870 test -f Makefile && make "$ltmain"
11876 ac_cpp='$CPP $CPPFLAGS'
11877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11884 # Check whether --with-tags or --without-tags was given.
11885 if test "${with_tags+set}" = set; then
11886 withval="$with_tags"
11887 tagnames="$withval"
11890 if test -f "$ltmain" && test -n "$tagnames"; then
11891 if test ! -f "${ofile}"; then
11892 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11893 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11896 if test -z "$LTCC"; then
11897 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11898 if test -z "$LTCC"; then
11899 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11900 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11903 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11907 # Extract list of available tagged configurations in $ofile.
11908 # Note that this assumes the entire list is on one line.
11909 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11911 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11912 for tagname in $tagnames; do
11914 # Check whether tagname contains only valid characters
11915 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11917 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11918 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11919 { (exit 1); exit 1; }; }
11923 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11925 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11926 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11927 { (exit 1); exit 1; }; }
11930 # Update the list of available tags.
11931 if test -n "$tagname"; then
11932 echo appending configuration tag \"$tagname\" to $ofile
11936 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11937 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11938 (test "X$CXX" != "Xg++"))) ; then
11940 ac_cpp='$CXXCPP $CPPFLAGS'
11941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11948 archive_cmds_need_lc_CXX=no
11949 allow_undefined_flag_CXX=
11950 always_export_symbols_CXX=no
11951 archive_expsym_cmds_CXX=
11952 export_dynamic_flag_spec_CXX=
11953 hardcode_direct_CXX=no
11954 hardcode_libdir_flag_spec_CXX=
11955 hardcode_libdir_flag_spec_ld_CXX=
11956 hardcode_libdir_separator_CXX=
11957 hardcode_minus_L_CXX=no
11958 hardcode_automatic_CXX=no
11960 module_expsym_cmds_CXX=
11961 link_all_deplibs_CXX=unknown
11962 old_archive_cmds_CXX=$old_archive_cmds
11963 no_undefined_flag_CXX=
11964 whole_archive_flag_spec_CXX=
11965 enable_shared_with_static_runtimes_CXX=no
11967 # Dependencies to place before and after the object being linked:
11968 predep_objects_CXX=
11969 postdep_objects_CXX=
11972 compiler_lib_search_path_CXX=
11974 # Source file extension for C++ test sources.
11977 # Object file extension for compiled C++ test sources.
11981 # Code to be used in simple compile tests
11982 lt_simple_compile_test_code="int some_variable = 0;\n"
11984 # Code to be used in simple link tests
11985 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11989 # If no C compiler was specified, use CC.
11992 # Allow CC to be a program name with arguments.
11996 # save warnings/boilerplate of simple test code
11997 ac_outfile=conftest.$ac_objext
11998 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11999 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12000 _lt_compiler_boilerplate=`cat conftest.err`
12003 ac_outfile=conftest.$ac_objext
12004 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12005 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12006 _lt_linker_boilerplate=`cat conftest.err`
12010 # Allow CC to be a program name with arguments.
12015 lt_save_with_gnu_ld=$with_gnu_ld
12016 lt_save_path_LD=$lt_cv_path_LD
12017 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12018 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12020 unset lt_cv_prog_gnu_ld
12022 if test -n "${lt_cv_path_LDCXX+set}"; then
12023 lt_cv_path_LD=$lt_cv_path_LDCXX
12025 unset lt_cv_path_LD
12027 test -z "${LDCXX+set}" || LD=$LDCXX
12031 for cc_temp in $compiler""; do
12033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12042 # We don't want -fno-exception wen compiling C++ code, so set the
12043 # no_builtin_flag separately
12044 if test "$GXX" = yes; then
12045 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12047 lt_prog_compiler_no_builtin_flag_CXX=
12050 if test "$GXX" = yes; then
12051 # Set up default GNU C++ configuration
12054 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12055 if test "${with_gnu_ld+set}" = set; then
12056 withval="$with_gnu_ld"
12057 test "$withval" = no || with_gnu_ld=yes
12062 if test "$GCC" = yes; then
12063 # Check if gcc -print-prog-name=ld gives a path.
12064 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12065 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12068 # gcc leaves a trailing carriage return which upsets mingw
12069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12074 # Accept absolute paths.
12076 re_direlt='/[^/][^/]*/\.\./'
12077 # Canonicalize the pathname of ld
12078 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12079 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12080 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12082 test -z "$LD" && LD="$ac_prog"
12085 # If it fails, then pretend we aren't using GCC.
12089 # If it is relative, then search for the first ld in PATH.
12090 with_gnu_ld=unknown
12093 elif test "$with_gnu_ld" = yes; then
12094 echo "$as_me:$LINENO: checking for GNU ld" >&5
12095 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12097 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12098 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12100 if test "${lt_cv_path_LD+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 if test -z "$LD"; then
12104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12105 for ac_dir in $PATH; do
12107 test -z "$ac_dir" && ac_dir=.
12108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12109 lt_cv_path_LD="$ac_dir/$ac_prog"
12110 # Check to see if the program is GNU ld. I'd rather use --version,
12111 # but apparently some GNU ld's only accept -v.
12112 # Break only if it was the GNU/non-GNU ld that we prefer.
12113 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12114 *GNU* | *'with BFD'*)
12115 test "$with_gnu_ld" != no && break
12118 test "$with_gnu_ld" != yes && break
12125 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12129 LD="$lt_cv_path_LD"
12130 if test -n "$LD"; then
12131 echo "$as_me:$LINENO: result: $LD" >&5
12132 echo "${ECHO_T}$LD" >&6
12134 echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12137 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12138 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12139 { (exit 1); exit 1; }; }
12140 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12141 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12142 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12146 case `$LD -v 2>&1 </dev/null` in
12147 *GNU* | *'with BFD'*)
12148 lt_cv_prog_gnu_ld=yes
12151 lt_cv_prog_gnu_ld=no
12155 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12156 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12157 with_gnu_ld=$lt_cv_prog_gnu_ld
12161 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12162 # archiving commands below assume that GNU ld is being used.
12163 if test "$with_gnu_ld" = yes; then
12164 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12165 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'
12167 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12168 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12170 # If archive_cmds runs LD, not CC, wlarc should be empty
12171 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12172 # investigate it a little bit more. (MM)
12175 # ancient GNU ld didn't support --whole-archive et. al.
12176 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12177 grep 'no-whole-archive' > /dev/null; then
12178 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12180 whole_archive_flag_spec_CXX=
12186 # A generic and very simple default shared library creation
12187 # command for GNU C++ for the case where it uses the native
12188 # linker, instead of GNU ld. If possible, this setting should
12189 # overridden to take advantage of the native linker features on
12190 # the platform it is being used on.
12191 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12194 # Commands to make compiler produce verbose output that lists
12195 # what "hidden" libraries, object files and flags are used when
12196 # linking a shared library.
12197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12205 # PORTME: fill in a description of your system's C++ link characteristics
12206 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12207 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12211 # FIXME: insert proper C++ library support
12215 if test "$host_cpu" = ia64; then
12216 # On IA64, the linker does run time linking by default, so we don't
12217 # have to do anything special.
12218 aix_use_runtimelinking=no
12219 exp_sym_flag='-Bexport'
12222 aix_use_runtimelinking=no
12224 # Test if we are trying to use run time linking or normal
12225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12226 # need to do runtime linking.
12227 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12228 for ld_flag in $LDFLAGS; do
12231 aix_use_runtimelinking=yes
12238 exp_sym_flag='-bexport'
12239 no_entry_flag='-bnoentry'
12242 # When large executables or shared objects are built, AIX ld can
12243 # have problems creating the table of contents. If linking a library
12244 # or program results in "error TOC overflow" add -mminimal-toc to
12245 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12246 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12248 archive_cmds_CXX=''
12249 hardcode_direct_CXX=yes
12250 hardcode_libdir_separator_CXX=':'
12251 link_all_deplibs_CXX=yes
12253 if test "$GXX" = yes; then
12254 case $host_os in aix4.[012]|aix4.[012].*)
12255 # We only want to do this on AIX 4.2 and lower, the check
12256 # below for broken collect2 doesn't work under 4.3+
12257 collect2name=`${CC} -print-prog-name=collect2`
12258 if test -f "$collect2name" && \
12259 strings "$collect2name" | grep resolve_lib_name >/dev/null
12261 # We have reworked collect2
12262 hardcode_direct_CXX=yes
12264 # We have old collect2
12265 hardcode_direct_CXX=unsupported
12266 # It fails to find uninstalled libraries when the uninstalled
12267 # path is not listed in the libpath. Setting hardcode_minus_L
12268 # to unsupported forces relinking
12269 hardcode_minus_L_CXX=yes
12270 hardcode_libdir_flag_spec_CXX='-L$libdir'
12271 hardcode_libdir_separator_CXX=
12274 shared_flag='-shared'
12275 if test "$aix_use_runtimelinking" = yes; then
12276 shared_flag="$shared_flag "'${wl}-G'
12280 if test "$host_cpu" = ia64; then
12281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12282 # chokes on -Wl,-G. The following line is correct:
12285 if test "$aix_use_runtimelinking" = yes; then
12286 shared_flag='${wl}-G'
12288 shared_flag='${wl}-bM:SRE'
12293 # It seems that -bexpall does not export symbols beginning with
12294 # underscore (_), so it is better to generate a list of symbols to export.
12295 always_export_symbols_CXX=yes
12296 if test "$aix_use_runtimelinking" = yes; then
12297 # Warning - without using the other runtime loading flags (-brtl),
12298 # -berok will link without error, but may produce a broken library.
12299 allow_undefined_flag_CXX='-berok'
12300 # Determine the default libpath from the value encoded in an empty executable.
12301 cat >conftest.$ac_ext <<_ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318 (eval $ac_link) 2>conftest.er1
12320 grep -v '^ *+' conftest.er1 >conftest.err
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_cxx_werror_flag"
12326 || test ! -s conftest.err'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest$ac_exeext'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12341 # Check for a 64-bit object if we didn't find anything.
12342 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; }
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12349 rm -f conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext conftest.$ac_ext
12351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12353 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12355 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"
12357 if test "$host_cpu" = ia64; then
12358 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12359 allow_undefined_flag_CXX="-z nodefs"
12360 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"
12362 # Determine the default libpath from the value encoded in an empty executable.
12363 cat >conftest.$ac_ext <<_ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>conftest.er1
12382 grep -v '^ *+' conftest.er1 >conftest.err
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_cxx_werror_flag"
12388 || test ! -s conftest.err'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest$ac_exeext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12403 # Check for a 64-bit object if we didn't find anything.
12404 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; }
12407 echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12411 rm -f conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12415 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12416 # Warning - without using the other run time loading flags,
12417 # -berok will link without error, but may produce a broken library.
12418 no_undefined_flag_CXX=' ${wl}-bernotok'
12419 allow_undefined_flag_CXX=' ${wl}-berok'
12420 # -bexpall does not export symbols beginning with underscore (_)
12421 always_export_symbols_CXX=yes
12422 # Exported symbols can be pulled into shared objects from archives
12423 whole_archive_flag_spec_CXX=' '
12424 archive_cmds_need_lc_CXX=yes
12425 # This is similar to how AIX traditionally builds it's shared libraries.
12426 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'
12431 case $cc_basename in
12433 # FIXME: insert proper C++ library support
12440 cygwin* | mingw* | pw32*)
12441 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12442 # as there is no search path for DLLs.
12443 hardcode_libdir_flag_spec_CXX='-L$libdir'
12444 allow_undefined_flag_CXX=unsupported
12445 always_export_symbols_CXX=no
12446 enable_shared_with_static_runtimes_CXX=yes
12448 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12449 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'
12450 # If the export-symbols file already is a .def file (1st line
12451 # is EXPORTS), use it as is; otherwise, prepend...
12452 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12453 cp $export_symbols $output_objdir/$soname.def;
12455 echo EXPORTS > $output_objdir/$soname.def;
12456 cat $export_symbols >> $output_objdir/$soname.def;
12458 $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'
12463 darwin* | rhapsody*)
12465 rhapsody* | darwin1.[012])
12466 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12470 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12472 case ${MACOSX_DEPLOYMENT_TARGET} in
12474 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12477 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12483 archive_cmds_need_lc_CXX=no
12484 hardcode_direct_CXX=no
12485 hardcode_automatic_CXX=yes
12486 hardcode_shlibpath_var_CXX=unsupported
12487 whole_archive_flag_spec_CXX=''
12488 link_all_deplibs_CXX=yes
12490 if test "$GXX" = yes ; then
12491 lt_int_apple_cc_single_mod=no
12492 output_verbose_link_cmd='echo'
12493 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12494 lt_int_apple_cc_single_mod=yes
12496 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12497 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12499 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'
12501 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12504 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}'
12506 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}'
12508 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}'
12510 case $cc_basename in
12512 output_verbose_link_cmd='echo'
12513 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'
12514 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12516 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}'
12517 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}'
12527 case $cc_basename in
12529 # FIXME: insert proper C++ library support
12533 # Green Hills C++ Compiler
12534 # FIXME: insert proper C++ library support
12538 # FIXME: insert proper C++ library support
12544 # C++ shared libraries reported to be fairly broken before switch to ELF
12548 archive_cmds_need_lc_CXX=no
12550 freebsd* | kfreebsd*-gnu | dragonfly*)
12551 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12559 hardcode_libdir_separator_CXX=:
12560 export_dynamic_flag_spec_CXX='${wl}-E'
12561 hardcode_direct_CXX=yes
12562 hardcode_minus_L_CXX=yes # Not in the search PATH,
12563 # but as the default
12564 # location of the library.
12566 case $cc_basename in
12568 # FIXME: insert proper C++ library support
12572 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'
12573 # Commands to make compiler produce verbose output that lists
12574 # what "hidden" libraries, object files and flags are used when
12575 # linking a shared library.
12577 # There doesn't appear to be a way to prevent this compiler from
12578 # explicitly linking system object files so we need to strip them
12579 # from the output so that they don't get included in the library
12581 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'
12584 if test "$GXX" = yes; then
12585 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'
12587 # FIXME: insert proper C++ library support
12594 if test $with_gnu_ld = no; then
12595 case "$host_cpu" in
12597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12598 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12599 hardcode_libdir_separator_CXX=:
12602 hardcode_libdir_flag_spec_CXX='-L$libdir'
12605 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12606 hardcode_libdir_separator_CXX=:
12607 export_dynamic_flag_spec_CXX='${wl}-E'
12611 case "$host_cpu" in
12613 hardcode_direct_CXX=no
12614 hardcode_shlibpath_var_CXX=no
12617 hardcode_direct_CXX=no
12618 hardcode_shlibpath_var_CXX=no
12619 hardcode_minus_L_CXX=yes # Not in the search PATH,
12620 # but as the default
12621 # location of the library.
12624 hardcode_direct_CXX=yes
12625 hardcode_minus_L_CXX=yes # Not in the search PATH,
12626 # but as the default
12627 # location of the library.
12631 case $cc_basename in
12633 # FIXME: insert proper C++ library support
12637 case "$host_cpu" in
12639 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12642 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12645 # Commands to make compiler produce verbose output that lists
12646 # what "hidden" libraries, object files and flags are used when
12647 # linking a shared library.
12649 # There doesn't appear to be a way to prevent this compiler from
12650 # explicitly linking system object files so we need to strip them
12651 # from the output so that they don't get included in the library
12653 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'
12656 if test "$GXX" = yes; then
12657 if test $with_gnu_ld = no; then
12658 case "$host_cpu" in
12660 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12663 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'
12668 # FIXME: insert proper C++ library support
12675 case $cc_basename in
12678 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'
12680 # Archives containing C++ object files must be created using
12681 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12682 # necessary to make sure instantiated templates are included
12684 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12687 if test "$GXX" = yes; then
12688 if test "$with_gnu_ld" = no; then
12689 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'
12691 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'
12694 link_all_deplibs_CXX=yes
12697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12698 hardcode_libdir_separator_CXX=:
12701 case $cc_basename in
12703 # Kuck and Associates, Inc. (KAI) C++ Compiler
12705 # KCC will only create a shared library if the output file
12706 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12707 # to its proper name (with version) after linking.
12708 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'
12709 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'
12710 # Commands to make compiler produce verbose output that lists
12711 # what "hidden" libraries, object files and flags are used when
12712 # linking a shared library.
12714 # There doesn't appear to be a way to prevent this compiler from
12715 # explicitly linking system object files so we need to strip them
12716 # from the output so that they don't get included in the library
12718 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'
12720 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12723 # Archives containing C++ object files must be created using
12724 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12725 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12730 # version 8.0 and above of icpc choke on multiply defined symbols
12731 # if we add $predep_objects and $postdep_objects, however 7.1 and
12732 # earlier do not add the objects themselves.
12733 case `$CC -V 2>&1` in
12735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12736 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'
12738 *) # Version 8.0 or newer
12741 ia64*) tmp_idyn=' -i_dynamic';;
12743 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12744 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'
12747 archive_cmds_need_lc_CXX=no
12748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12749 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12750 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12753 # Portland Group C++ compiler
12754 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12755 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'
12757 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12759 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'
12763 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12764 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'
12766 runpath_var=LD_RUN_PATH
12767 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12768 hardcode_libdir_separator_CXX=:
12770 # Commands to make compiler produce verbose output that lists
12771 # what "hidden" libraries, object files and flags are used when
12772 # linking a shared library.
12774 # There doesn't appear to be a way to prevent this compiler from
12775 # explicitly linking system object files so we need to strip them
12776 # from the output so that they don't get included in the library
12778 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'
12783 # FIXME: insert proper C++ library support
12787 # FIXME: insert proper C++ library support
12791 case $cc_basename in
12793 # FIXME: insert proper C++ library support
12797 # FIXME: insert proper C++ library support
12803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12804 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12806 hardcode_libdir_flag_spec_CXX='-R$libdir'
12807 hardcode_direct_CXX=yes
12808 hardcode_shlibpath_var_CXX=no
12810 # Workaround some broken pre-1.5 toolchains
12811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12814 # C++ shared libraries are fairly broken
12818 hardcode_direct_CXX=yes
12819 hardcode_shlibpath_var_CXX=no
12820 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12823 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12824 export_dynamic_flag_spec_CXX='${wl}-E'
12825 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12827 output_verbose_link_cmd='echo'
12830 case $cc_basename in
12832 # Kuck and Associates, Inc. (KAI) C++ Compiler
12834 # KCC will only create a shared library if the output file
12835 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12836 # to its proper name (with version) after linking.
12837 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'
12839 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12840 hardcode_libdir_separator_CXX=:
12842 # Archives containing C++ object files must be created using
12843 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12844 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12848 # Rational C++ 2.4.1
12849 # FIXME: insert proper C++ library support
12853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12854 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'
12856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12857 hardcode_libdir_separator_CXX=:
12859 # Commands to make compiler produce verbose output that lists
12860 # what "hidden" libraries, object files and flags are used when
12861 # linking a shared library.
12863 # There doesn't appear to be a way to prevent this compiler from
12864 # explicitly linking system object files so we need to strip them
12865 # from the output so that they don't get included in the library
12867 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'
12870 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12871 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12872 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'
12874 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12875 hardcode_libdir_separator_CXX=:
12877 # Commands to make compiler produce verbose output that lists
12878 # what "hidden" libraries, object files and flags are used when
12879 # linking a shared library.
12880 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12883 # FIXME: insert proper C++ library support
12890 case $cc_basename in
12892 # Kuck and Associates, Inc. (KAI) C++ Compiler
12894 # KCC will only create a shared library if the output file
12895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12896 # to its proper name (with version) after linking.
12897 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'
12899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12900 hardcode_libdir_separator_CXX=:
12902 # Archives containing C++ object files must be created using
12903 # the KAI C++ compiler.
12904 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12907 # Rational C++ 2.4.1
12908 # FIXME: insert proper C++ library support
12912 allow_undefined_flag_CXX=' -expect_unresolved \*'
12913 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'
12914 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12915 echo "-hidden">> $lib.exp~
12916 $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~
12919 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12920 hardcode_libdir_separator_CXX=:
12922 # Commands to make compiler produce verbose output that lists
12923 # what "hidden" libraries, object files and flags are used when
12924 # linking a shared library.
12926 # There doesn't appear to be a way to prevent this compiler from
12927 # explicitly linking system object files so we need to strip them
12928 # from the output so that they don't get included in the library
12930 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'
12933 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12934 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12935 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'
12937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938 hardcode_libdir_separator_CXX=:
12940 # Commands to make compiler produce verbose output that lists
12941 # what "hidden" libraries, object files and flags are used when
12942 # linking a shared library.
12943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12946 # FIXME: insert proper C++ library support
12953 # FIXME: insert proper C++ library support
12957 archive_cmds_need_lc_CXX=no
12958 case $cc_basename in
12960 # FIXME: insert proper C++ library support
12964 # FIXME: insert proper C++ library support
12970 case $cc_basename in
12973 # FIXME: insert proper C++ library support
12978 # FIXME: insert proper C++ library support
12982 # FIXME: insert proper C++ library support
12988 case $cc_basename in
12990 # Sun C++ 4.2, 5.x and Centerline C++
12991 no_undefined_flag_CXX=' -zdefs'
12992 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12994 $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'
12996 hardcode_libdir_flag_spec_CXX='-R$libdir'
12997 hardcode_shlibpath_var_CXX=no
12999 solaris2.[0-5] | solaris2.[0-5].*) ;;
13001 # The C++ compiler is used as linker so we must use $wl
13002 # flag to pass the commands to the underlying system
13003 # linker. We must also pass each convience library through
13004 # to the system linker between allextract/defaultextract.
13005 # The C++ compiler will combine linker options so we
13006 # cannot just pass the convience library names through
13008 # Supported since Solaris 2.6 (maybe 2.5.1?)
13009 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'
13012 link_all_deplibs_CXX=yes
13014 # Commands to make compiler produce verbose output that lists
13015 # what "hidden" libraries, object files and flags are used when
13016 # linking a shared library.
13018 # There doesn't appear to be a way to prevent this compiler from
13019 # explicitly linking system object files so we need to strip them
13020 # from the output so that they don't get included in the library
13022 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'
13024 # Archives containing C++ object files must be created using
13025 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13026 # necessary to make sure instantiated templates are included
13028 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13031 # Green Hills C++ Compiler
13032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13034 # The C++ compiler must be used to create the archive.
13035 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13038 # GNU C++ compiler with Solaris linker
13039 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13040 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13041 if $CC --version | grep -v '^2\.7' > /dev/null; then
13042 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13043 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13044 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13046 # Commands to make compiler produce verbose output that lists
13047 # what "hidden" libraries, object files and flags are used when
13048 # linking a shared library.
13049 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13051 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13053 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13054 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13055 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13057 # Commands to make compiler produce verbose output that lists
13058 # what "hidden" libraries, object files and flags are used when
13059 # linking a shared library.
13060 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13063 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13068 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13069 archive_cmds_need_lc_CXX=no
13072 case $cc_basename in
13074 # NonStop-UX NCC 3.20
13075 # FIXME: insert proper C++ library support
13079 # FIXME: insert proper C++ library support
13085 # FIXME: insert proper C++ library support
13089 # FIXME: insert proper C++ library support
13093 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13094 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13095 test "$ld_shlibs_CXX" = no && can_build_shared=no
13101 cat > conftest.$ac_ext <<EOF
13105 Foo (void) { a = 0; }
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112 (eval $ac_compile) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; then
13116 # Parse the compiler output and extract the necessary
13117 # objects, libraries and library flags.
13119 # Sentinel used to keep track of whether or not we are before
13120 # the conftest object file.
13121 pre_test_object_deps_done=no
13123 # The `*' in the case matches for architectures that use `case' in
13124 # $output_verbose_cmd can trigger glob expansion during the loop
13125 # eval without this substitution.
13126 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13128 for p in `eval $output_verbose_link_cmd`; do
13132 # Some compilers place space between "-{L,R}" and the path.
13133 # Remove the space.
13134 if test $p = "-L" \
13135 || test $p = "-R"; then
13142 if test "$pre_test_object_deps_done" = no; then
13145 # Internal compiler library paths should come after those
13146 # provided the user. The postdeps already come after the
13147 # user supplied libs so there is no need to process them.
13148 if test -z "$compiler_lib_search_path_CXX"; then
13149 compiler_lib_search_path_CXX="${prev}${p}"
13151 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13154 # The "-l" case would never come before the object being
13155 # linked, so don't bother handling this case.
13158 if test -z "$postdeps_CXX"; then
13159 postdeps_CXX="${prev}${p}"
13161 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13167 # This assumes that the test object file only shows up
13168 # once in the compiler output.
13169 if test "$p" = "conftest.$objext"; then
13170 pre_test_object_deps_done=yes
13174 if test "$pre_test_object_deps_done" = no; then
13175 if test -z "$predep_objects_CXX"; then
13176 predep_objects_CXX="$p"
13178 predep_objects_CXX="$predep_objects_CXX $p"
13181 if test -z "$postdep_objects_CXX"; then
13182 postdep_objects_CXX="$p"
13184 postdep_objects_CXX="$postdep_objects_CXX $p"
13189 *) ;; # Ignore the rest.
13197 echo "libtool.m4: error: problem compiling CXX test program"
13200 $rm -f confest.$objext
13202 case " $postdeps_CXX " in
13203 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13206 lt_prog_compiler_wl_CXX=
13207 lt_prog_compiler_pic_CXX=
13208 lt_prog_compiler_static_CXX=
13210 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13211 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13213 # C++ specific cases for pic, static, wl, etc.
13214 if test "$GXX" = yes; then
13215 lt_prog_compiler_wl_CXX='-Wl,'
13216 lt_prog_compiler_static_CXX='-static'
13220 # All AIX code is PIC.
13221 if test "$host_cpu" = ia64; then
13222 # AIX 5 now supports IA64 processor
13223 lt_prog_compiler_static_CXX='-Bstatic'
13227 # FIXME: we need at least 68020 code to build shared libraries, but
13228 # adding the `-m68020' flag to GCC prevents building anything better,
13230 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13233 # PIC is the default for these OSes.
13235 mingw* | os2* | pw32*)
13236 # This hack is so that the source file can tell whether it is being
13237 # built for inclusion in a dll (and should export symbols for example).
13238 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13240 darwin* | rhapsody*)
13241 # PIC is the default on this platform
13242 # Common symbols not allowed in MH_DYLIB files
13243 lt_prog_compiler_pic_CXX='-fno-common'
13246 # DJGPP does not support shared libraries at all
13247 lt_prog_compiler_pic_CXX=
13250 if test -d /usr/nec; then
13251 lt_prog_compiler_pic_CXX=-Kconform_pic
13255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13256 # not for PA HP-UX.
13257 case "$host_cpu" in
13261 lt_prog_compiler_pic_CXX='-fPIC'
13266 lt_prog_compiler_pic_CXX='-fPIC'
13272 # All AIX code is PIC.
13273 if test "$host_cpu" = ia64; then
13274 # AIX 5 now supports IA64 processor
13275 lt_prog_compiler_static_CXX='-Bstatic'
13277 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13281 case $cc_basename in
13283 # Green Hills C++ Compiler
13284 # _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"
13289 # PIC is the default on this platform
13290 # Common symbols not allowed in MH_DYLIB files
13291 case $cc_basename in
13293 lt_prog_compiler_pic_CXX='-qnocommon'
13294 lt_prog_compiler_wl_CXX='-Wl,'
13299 case $cc_basename in
13301 lt_prog_compiler_pic_CXX='-KPIC'
13304 # Green Hills C++ Compiler
13305 lt_prog_compiler_pic_CXX='-pic'
13311 freebsd* | kfreebsd*-gnu | dragonfly*)
13312 # FreeBSD uses GNU C++
13314 hpux9* | hpux10* | hpux11*)
13315 case $cc_basename in
13317 lt_prog_compiler_wl_CXX='-Wl,'
13318 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13319 if test "$host_cpu" != ia64; then
13320 lt_prog_compiler_pic_CXX='+Z'
13324 lt_prog_compiler_wl_CXX='-Wl,'
13325 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13326 case "$host_cpu" in
13331 lt_prog_compiler_pic_CXX='+Z'
13339 irix5* | irix6* | nonstopux*)
13340 case $cc_basename in
13342 lt_prog_compiler_wl_CXX='-Wl,'
13343 lt_prog_compiler_static_CXX='-non_shared'
13344 # CC pic flag -KPIC is the default.
13351 case $cc_basename in
13354 lt_prog_compiler_wl_CXX='--backend -Wl,'
13355 lt_prog_compiler_pic_CXX='-fPIC'
13359 lt_prog_compiler_wl_CXX='-Wl,'
13360 lt_prog_compiler_pic_CXX='-KPIC'
13361 lt_prog_compiler_static_CXX='-static'
13364 # Portland Group C++ compiler.
13365 lt_prog_compiler_wl_CXX='-Wl,'
13366 lt_prog_compiler_pic_CXX='-fpic'
13367 lt_prog_compiler_static_CXX='-static'
13371 # Make sure the PIC flag is empty. It appears that all Alpha
13372 # Linux and Compaq Tru64 Unix objects are PIC.
13373 lt_prog_compiler_pic_CXX=
13374 lt_prog_compiler_static_CXX='-non_shared'
13385 case $cc_basename in
13387 lt_prog_compiler_pic_CXX='-W c,exportall'
13395 osf3* | osf4* | osf5*)
13396 case $cc_basename in
13398 lt_prog_compiler_wl_CXX='--backend -Wl,'
13401 # Rational C++ 2.4.1
13402 lt_prog_compiler_pic_CXX='-pic'
13405 # Digital/Compaq C++
13406 lt_prog_compiler_wl_CXX='-Wl,'
13407 # Make sure the PIC flag is empty. It appears that all Alpha
13408 # Linux and Compaq Tru64 Unix objects are PIC.
13409 lt_prog_compiler_pic_CXX=
13410 lt_prog_compiler_static_CXX='-non_shared'
13419 case $cc_basename in
13421 lt_prog_compiler_pic_CXX='-fPIC'
13428 case $cc_basename in
13430 # Sun C++ 4.2, 5.x and Centerline C++
13431 lt_prog_compiler_pic_CXX='-KPIC'
13432 lt_prog_compiler_static_CXX='-Bstatic'
13433 lt_prog_compiler_wl_CXX='-Qoption ld '
13436 # Green Hills C++ Compiler
13437 lt_prog_compiler_pic_CXX='-PIC'
13444 case $cc_basename in
13447 lt_prog_compiler_pic_CXX='-pic'
13448 lt_prog_compiler_static_CXX='-Bstatic'
13452 lt_prog_compiler_pic_CXX='-pic'
13459 case $cc_basename in
13461 # NonStop-UX NCC 3.20
13462 lt_prog_compiler_pic_CXX='-KPIC'
13473 lt_prog_compiler_can_build_shared_CXX=no
13478 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13479 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13482 # Check to make sure the PIC flag actually works.
13484 if test -n "$lt_prog_compiler_pic_CXX"; then
13486 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13487 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13488 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 lt_prog_compiler_pic_works_CXX=no
13492 ac_outfile=conftest.$ac_objext
13493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13494 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13495 # Insert the option either (1) after the last *FLAGS variable, or
13496 # (2) before a word containing "conftest.", or (3) at the end.
13497 # Note that $ac_compile itself does not contain backslashes and begins
13498 # with a dollar sign (not a hyphen), so the echo should work correctly.
13499 # The option is referenced via a variable to avoid confusing sed.
13500 lt_compile=`echo "$ac_compile" | $SED \
13501 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13503 -e 's:$: $lt_compiler_flag:'`
13504 (eval echo "\"\$as_me:13504: $lt_compile\"" >&5)
13505 (eval "$lt_compile" 2>conftest.err)
13507 cat conftest.err >&5
13508 echo "$as_me:13508: \$? = $ac_status" >&5
13509 if (exit $ac_status) && test -s "$ac_outfile"; then
13510 # The compiler can only warn and ignore the option if not recognized
13511 # So say no if there are warnings other than the usual output.
13512 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13513 $SED '/^$/d' conftest.err >conftest.er2
13514 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13515 lt_prog_compiler_pic_works_CXX=yes
13521 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13522 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13524 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13525 case $lt_prog_compiler_pic_CXX in
13527 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13530 lt_prog_compiler_pic_CXX=
13531 lt_prog_compiler_can_build_shared_CXX=no
13536 # For platforms which do not support PIC, -DPIC is meaningless:
13538 lt_prog_compiler_pic_CXX=
13541 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13545 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13547 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 lt_cv_prog_compiler_c_o_CXX=no
13551 $rm -r conftest 2>/dev/null
13555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13557 lt_compiler_flag="-o out/conftest2.$ac_objext"
13558 # Insert the option either (1) after the last *FLAGS variable, or
13559 # (2) before a word containing "conftest.", or (3) at the end.
13560 # Note that $ac_compile itself does not contain backslashes and begins
13561 # with a dollar sign (not a hyphen), so the echo should work correctly.
13562 lt_compile=`echo "$ac_compile" | $SED \
13563 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13565 -e 's:$: $lt_compiler_flag:'`
13566 (eval echo "\"\$as_me:13566: $lt_compile\"" >&5)
13567 (eval "$lt_compile" 2>out/conftest.err)
13569 cat out/conftest.err >&5
13570 echo "$as_me:13570: \$? = $ac_status" >&5
13571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13573 # The compiler can only warn and ignore the option if not recognized
13574 # So say no if there are warnings
13575 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13576 $SED '/^$/d' out/conftest.err >out/conftest.er2
13577 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13578 lt_cv_prog_compiler_c_o_CXX=yes
13583 # SGI C++ compiler will create directory out/ii_files/ for
13584 # template instantiation
13585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13586 $rm out/* && rmdir out
13592 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13596 hard_links="nottested"
13597 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13598 # do not overwrite the value of need_locks provided by the user
13599 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13605 ln conftest.a conftest.b 2>&5 || hard_links=no
13606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13607 echo "$as_me:$LINENO: result: $hard_links" >&5
13608 echo "${ECHO_T}$hard_links" >&6
13609 if test "$hard_links" = no; then
13610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13618 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13621 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13624 # If we're using GNU nm, then we don't want the "-C" option.
13625 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13626 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13627 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'
13629 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'
13633 export_symbols_cmds_CXX="$ltdll_cmds"
13636 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'
13639 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13643 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13644 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13645 test "$ld_shlibs_CXX" = no && can_build_shared=no
13647 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13648 if test "$GCC" = yes; then
13649 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13653 # Do we need to explicitly link libc?
13655 case "x$archive_cmds_need_lc_CXX" in
13657 # Assume -lc should be added
13658 archive_cmds_need_lc_CXX=yes
13660 if test "$enable_shared" = yes && test "$GCC" = yes; then
13661 case $archive_cmds_CXX in
13663 # FIXME: we may have to deal with multi-command sequences.
13666 # Test whether the compiler implicitly links with -lc since on some
13667 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13668 # to ld, don't add -lc before -lgcc.
13669 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13670 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } 2>conftest.err; then
13681 libobjs=conftest.$ac_objext
13683 wl=$lt_prog_compiler_wl_CXX
13689 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13690 allow_undefined_flag_CXX=
13691 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13692 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }
13697 archive_cmds_need_lc_CXX=no
13699 archive_cmds_need_lc_CXX=yes
13701 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13703 cat conftest.err 1>&5
13706 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13707 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13714 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13715 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13716 library_names_spec=
13717 libname_spec='lib$name'
13721 postuninstall_cmds=
13725 shlibpath_overrides_runpath=unknown
13727 dynamic_linker="$host_os ld.so"
13728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13729 if test "$GCC" = yes; then
13730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13731 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13732 # if the path contains ";" then we assume it to be the separator
13733 # otherwise default to the standard path separator (i.e. ":") - it is
13734 # assumed that no part of a normal pathname contains ";" but that should
13735 # okay in the real world where ";" in dirpaths is itself problematic.
13736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13743 need_lib_prefix=unknown
13744 hardcode_into_libs=no
13746 # when you set need_version to no, make sure it does not cause -set_version
13747 # flags to be left without arguments
13748 need_version=unknown
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13754 shlibpath_var=LIBPATH
13756 # AIX 3 has no versioning support, so we append a major version to the name.
13757 soname_spec='${libname}${release}${shared_ext}$major'
13764 hardcode_into_libs=yes
13765 if test "$host_cpu" = ia64; then
13766 # AIX 5 supports IA64
13767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13768 shlibpath_var=LD_LIBRARY_PATH
13770 # With GCC up to 2.95.x, collect2 would create an import file
13771 # for dependence libraries. The import file would start with
13772 # the line `#! .'. This would cause the generated library to
13773 # depend on `.', always an invalid library. This was fixed in
13774 # development snapshots of GCC prior to 3.0.
13776 aix4 | aix4.[01] | aix4.[01].*)
13777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13779 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13782 can_build_shared=no
13786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13787 # soname into executable. Probably we can add versioning support to
13788 # collect2, so additional links can be useful in future.
13789 if test "$aix_use_runtimelinking" = yes; then
13790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13791 # instead of lib<name>.a to let people know that these are not
13792 # typical AIX shared libraries.
13793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13795 # We preserve .a as extension for shared libraries through AIX4.2
13796 # and later when we are not doing run time linking.
13797 library_names_spec='${libname}${release}.a $libname.a'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13800 shlibpath_var=LIBPATH
13805 library_names_spec='$libname.ixlibrary $libname.a'
13806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13807 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'
13811 library_names_spec='${libname}${shared_ext}'
13812 dynamic_linker="$host_os ld.so"
13813 shlibpath_var=LIBRARY_PATH
13819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13820 soname_spec='${libname}${release}${shared_ext}$major'
13821 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13822 shlibpath_var=LD_LIBRARY_PATH
13823 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13824 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13825 # the default ld.so.conf also contains /usr/contrib/lib and
13826 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13827 # libtool to hard-code these into programs
13830 cygwin* | mingw* | pw32*)
13831 version_type=windows
13836 case $GCC,$host_os in
13837 yes,cygwin* | yes,mingw* | yes,pw32*)
13838 library_names_spec='$libname.dll.a'
13839 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13840 postinstall_cmds='base_file=`basename \${file}`~
13841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13842 dldir=$destdir/`dirname \$dlpath`~
13843 test -d \$dldir || mkdir -p \$dldir~
13844 $install_prog $dir/$dlname \$dldir/$dlname'
13845 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13846 dlpath=$dir/\$dldll~
13848 shlibpath_overrides_runpath=yes
13852 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13853 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13854 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13857 # MinGW DLLs use traditional 'lib' prefix
13858 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13859 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13860 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13861 # It is most probably a Windows format PATH printed by
13862 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13863 # path with ; separators, and with drive letters. We can handle the
13864 # drive letters (cygwin fileutils understands them), so leave them,
13865 # especially as we might pass files found there to a mingw objdump,
13866 # which wouldn't understand a cygwinified path. Ahh.
13867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13873 # pw32 DLLs use 'pw' prefix rather than 'lib'
13874 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13880 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13883 dynamic_linker='Win32 ld.exe'
13884 # FIXME: first we should search . and the directory the executable is in
13888 darwin* | rhapsody*)
13889 dynamic_linker="$host_os dyld"
13890 version_type=darwin
13893 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13894 soname_spec='${libname}${release}${major}$shared_ext'
13895 shlibpath_overrides_runpath=yes
13896 shlibpath_var=DYLD_LIBRARY_PATH
13897 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13898 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13899 if test "$GCC" = yes; then
13900 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"`
13902 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13904 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13912 soname_spec='${libname}${release}${shared_ext}$major'
13913 shlibpath_var=LD_LIBRARY_PATH
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 shlibpath_var=LD_LIBRARY_PATH
13927 shlibpath_overrides_runpath=no
13928 hardcode_into_libs=yes
13929 dynamic_linker='GNU ld.so'
13932 freebsd* | dragonfly*)
13933 # DragonFly does not have aout. When/if they implement a new
13934 # versioning mechanism, adjust this.
13935 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13936 version_type=freebsd-$objformat
13937 case $version_type in
13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13948 shlibpath_var=LD_LIBRARY_PATH
13951 shlibpath_overrides_runpath=yes
13953 freebsd3.[01]* | freebsdelf3.[01]*)
13954 shlibpath_overrides_runpath=yes
13955 hardcode_into_libs=yes
13958 shlibpath_overrides_runpath=no
13959 hardcode_into_libs=yes
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13969 soname_spec='${libname}${release}${shared_ext}$major'
13970 shlibpath_var=LD_LIBRARY_PATH
13971 hardcode_into_libs=yes
13974 hpux9* | hpux10* | hpux11*)
13975 # Give a soname corresponding to the major version so that dld.sl refuses to
13976 # link against other versions.
13980 case "$host_cpu" in
13983 hardcode_into_libs=yes
13984 dynamic_linker="$host_os dld.so"
13985 shlibpath_var=LD_LIBRARY_PATH
13986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 if test "X$HPUX_IA64_MODE" = X32; then
13990 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13992 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13998 hardcode_into_libs=yes
13999 dynamic_linker="$host_os dld.sl"
14000 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14003 soname_spec='${libname}${release}${shared_ext}$major'
14004 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14009 dynamic_linker="$host_os dld.sl"
14010 shlibpath_var=SHLIB_PATH
14011 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14016 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14017 postinstall_cmds='chmod 555 $lib'
14020 irix5* | irix6* | nonstopux*)
14022 nonstopux*) version_type=nonstopux ;;
14024 if test "$lt_cv_prog_gnu_ld" = yes; then
14032 soname_spec='${libname}${release}${shared_ext}$major'
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14035 irix5* | nonstopux*)
14036 libsuff= shlibsuff=
14039 case $LD in # libtool.m4 will add one of these switches to LD
14040 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14041 libsuff= shlibsuff= libmagic=32-bit;;
14042 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14043 libsuff=32 shlibsuff=N32 libmagic=N32;;
14044 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14045 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14046 *) libsuff= shlibsuff= libmagic=never-match;;
14050 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14051 shlibpath_overrides_runpath=no
14052 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14053 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14054 hardcode_into_libs=yes
14057 # No shared lib support for Linux oldld, aout, or coff.
14058 linux*oldld* | linux*aout* | linux*coff*)
14062 # This must be Linux ELF.
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14070 shlibpath_var=LD_LIBRARY_PATH
14071 shlibpath_overrides_runpath=no
14072 # This implies no fast_install, which is unacceptable.
14073 # Some rework will be needed to allow for fast_install
14074 # before this can be enabled.
14075 hardcode_into_libs=yes
14077 # Append ld.so.conf contents to the search path
14078 if test -f /etc/ld.so.conf; then
14079 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' ' '`
14080 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14083 # We used to test for /lib/ld.so.1 and disable shared libraries on
14084 # powerpc, because MkLinux only supported shared libraries with the
14085 # GNU dynamic linker. Since this was broken with cross compilers,
14086 # most powerpc-linux boxes support dynamic linking these days and
14087 # people can always --disable-shared, the test was removed, and we
14088 # assume the GNU/Linux dynamic linker is in use.
14089 dynamic_linker='GNU/Linux ld.so'
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14097 soname_spec='${libname}${release}${shared_ext}$major'
14098 shlibpath_var=LD_LIBRARY_PATH
14099 shlibpath_overrides_runpath=no
14100 hardcode_into_libs=yes
14101 dynamic_linker='GNU ld.so'
14108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14111 dynamic_linker='NetBSD (a.out) ld.so'
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14114 soname_spec='${libname}${release}${shared_ext}$major'
14115 dynamic_linker='NetBSD ld.elf_so'
14117 shlibpath_var=LD_LIBRARY_PATH
14118 shlibpath_overrides_runpath=yes
14119 hardcode_into_libs=yes
14124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 shlibpath_overrides_runpath=yes
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 soname_spec='${libname}${release}${shared_ext}$major'
14135 shlibpath_var=LD_LIBRARY_PATH
14136 shlibpath_overrides_runpath=yes
14142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14144 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14145 *) need_version=no ;;
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14149 shlibpath_var=LD_LIBRARY_PATH
14150 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14152 openbsd2.[89] | openbsd2.[89].*)
14153 shlibpath_overrides_runpath=no
14156 shlibpath_overrides_runpath=yes
14160 shlibpath_overrides_runpath=yes
14165 libname_spec='$name'
14168 library_names_spec='$libname${shared_ext} $libname.a'
14169 dynamic_linker='OS/2 ld.exe'
14170 shlibpath_var=LIBPATH
14173 osf3* | osf4* | osf5*)
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 shlibpath_var=LD_LIBRARY_PATH
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 soname_spec='${libname}${release}${shared_ext}$major'
14197 shlibpath_var=LD_LIBRARY_PATH
14198 shlibpath_overrides_runpath=yes
14199 hardcode_into_libs=yes
14200 # ldd complains unless libraries are executable
14201 postinstall_cmds='chmod +x $lib'
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14208 shlibpath_var=LD_LIBRARY_PATH
14209 shlibpath_overrides_runpath=yes
14210 if test "$with_gnu_ld" = yes; then
14216 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219 soname_spec='${libname}${release}${shared_ext}$major'
14220 shlibpath_var=LD_LIBRARY_PATH
14221 case $host_vendor in
14223 shlibpath_overrides_runpath=no
14225 export_dynamic_flag_spec='${wl}-Blargedynsym'
14226 runpath_var=LD_RUN_PATH
14234 shlibpath_overrides_runpath=no
14235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14241 if test -d /usr/nec ;then
14243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14244 soname_spec='$libname${shared_ext}.$major'
14245 shlibpath_var=LD_LIBRARY_PATH
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 shlibpath_var=LD_LIBRARY_PATH
14260 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14261 echo "${ECHO_T}$dynamic_linker" >&6
14262 test "$dynamic_linker" = no && can_build_shared=no
14264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14266 hardcode_action_CXX=
14267 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14268 test -n "$runpath_var_CXX" || \
14269 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14271 # We can hardcode non-existant directories.
14272 if test "$hardcode_direct_CXX" != no &&
14273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14274 # have to relink, otherwise we might link with an installed library
14275 # when we should be linking with a yet-to-be-installed one
14276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14277 test "$hardcode_minus_L_CXX" != no; then
14278 # Linking always hardcodes the temporary library directory.
14279 hardcode_action_CXX=relink
14281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14282 hardcode_action_CXX=immediate
14285 # We cannot hardcode anything, or else we can only hardcode existing
14287 hardcode_action_CXX=unsupported
14289 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14290 echo "${ECHO_T}$hardcode_action_CXX" >&6
14292 if test "$hardcode_action_CXX" = relink; then
14293 # Fast installation is not supported
14294 enable_fast_install=no
14295 elif test "$shlibpath_overrides_runpath" = yes ||
14296 test "$enable_shared" = no; then
14297 # Fast installation is not necessary
14298 enable_fast_install=needless
14303 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14304 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14305 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14306 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14307 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14308 echo "$as_me:$LINENO: result: yes" >&5
14309 echo "${ECHO_T}yes" >&6
14311 # FIXME - insert some real tests, host_os isn't really good enough
14314 if test -n "$STRIP" ; then
14315 striplib="$STRIP -x"
14316 echo "$as_me:$LINENO: result: yes" >&5
14317 echo "${ECHO_T}yes" >&6
14319 echo "$as_me:$LINENO: result: no" >&5
14320 echo "${ECHO_T}no" >&6
14324 echo "$as_me:$LINENO: result: no" >&5
14325 echo "${ECHO_T}no" >&6
14330 if test "x$enable_dlopen" != xyes; then
14331 enable_dlopen=unknown
14332 enable_dlopen_self=unknown
14333 enable_dlopen_self_static=unknown
14340 lt_cv_dlopen="load_add_on"
14342 lt_cv_dlopen_self=yes
14346 lt_cv_dlopen="LoadLibrary"
14351 lt_cv_dlopen="dlopen"
14356 # if libdl is installed we need to link against it
14357 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 ac_check_lib_save_LIBS=$LIBS
14364 cat >conftest.$ac_ext <<_ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14371 /* Override any gcc2 internal prototype to avoid an error. */
14375 /* We use char because int might match the return type of a gcc2
14376 builtin and then its argument prototype would still apply. */
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388 (eval $ac_link) 2>conftest.er1
14390 grep -v '^ *+' conftest.er1 >conftest.err
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -z "$ac_cxx_werror_flag"
14396 || test ! -s conftest.err'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try='test -s conftest$ac_exeext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14408 ac_cv_lib_dl_dlopen=yes
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 ac_cv_lib_dl_dlopen=no
14415 rm -f conftest.err conftest.$ac_objext \
14416 conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_check_lib_save_LIBS
14419 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14420 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14421 if test $ac_cv_lib_dl_dlopen = yes; then
14422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14425 lt_cv_dlopen="dyld"
14427 lt_cv_dlopen_self=yes
14434 echo "$as_me:$LINENO: checking for shl_load" >&5
14435 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14436 if test "${ac_cv_func_shl_load+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14447 #define shl_load innocuous_shl_load
14449 /* System header to define __stub macros and hopefully few prototypes,
14450 which can conflict with char shl_load (); below.
14451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14452 <limits.h> exists even on freestanding compilers. */
14455 # include <limits.h>
14457 # include <assert.h>
14462 /* Override any gcc2 internal prototype to avoid an error. */
14467 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14470 /* The GNU C library defines this for functions which it implements
14471 to always fail with ENOSYS. Some functions are actually named
14472 something starting with __ and the normal name is an alias. */
14473 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14476 char (*f) () = shl_load;
14485 return f != shl_load;
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14492 (eval $ac_link) 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -z "$ac_cxx_werror_flag"
14500 || test ! -s conftest.err'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest$ac_exeext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_func_shl_load=yes
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 ac_cv_func_shl_load=no
14519 rm -f conftest.err conftest.$ac_objext \
14520 conftest$ac_exeext conftest.$ac_ext
14522 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14523 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14524 if test $ac_cv_func_shl_load = yes; then
14525 lt_cv_dlopen="shl_load"
14527 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14528 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14529 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 ac_check_lib_save_LIBS=$LIBS
14534 cat >conftest.$ac_ext <<_ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14541 /* Override any gcc2 internal prototype to avoid an error. */
14545 /* We use char because int might match the return type of a gcc2
14546 builtin and then its argument prototype would still apply. */
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558 (eval $ac_link) 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
14565 { ac_try='test -z "$ac_cxx_werror_flag"
14566 || test ! -s conftest.err'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest$ac_exeext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_lib_dld_shl_load=yes
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 ac_cv_lib_dld_shl_load=no
14585 rm -f conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14587 LIBS=$ac_check_lib_save_LIBS
14589 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14590 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14591 if test $ac_cv_lib_dld_shl_load = yes; then
14592 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14594 echo "$as_me:$LINENO: checking for dlopen" >&5
14595 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14596 if test "${ac_cv_func_dlopen+set}" = set; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 cat >conftest.$ac_ext <<_ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14607 #define dlopen innocuous_dlopen
14609 /* System header to define __stub macros and hopefully few prototypes,
14610 which can conflict with char dlopen (); below.
14611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14612 <limits.h> exists even on freestanding compilers. */
14615 # include <limits.h>
14617 # include <assert.h>
14622 /* Override any gcc2 internal prototype to avoid an error. */
14627 /* We use char because int might match the return type of a gcc2
14628 builtin and then its argument prototype would still apply. */
14630 /* The GNU C library defines this for functions which it implements
14631 to always fail with ENOSYS. Some functions are actually named
14632 something starting with __ and the normal name is an alias. */
14633 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14636 char (*f) () = dlopen;
14645 return f != dlopen;
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652 (eval $ac_link) 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_cxx_werror_flag"
14660 || test ! -s conftest.err'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest$ac_exeext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_cv_func_dlopen=yes
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14677 ac_cv_func_dlopen=no
14679 rm -f conftest.err conftest.$ac_objext \
14680 conftest$ac_exeext conftest.$ac_ext
14682 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14683 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14684 if test $ac_cv_func_dlopen = yes; then
14685 lt_cv_dlopen="dlopen"
14687 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14688 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14689 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 ac_check_lib_save_LIBS=$LIBS
14694 cat >conftest.$ac_ext <<_ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14701 /* Override any gcc2 internal prototype to avoid an error. */
14705 /* We use char because int might match the return type of a gcc2
14706 builtin and then its argument prototype would still apply. */
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14718 (eval $ac_link) 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_cxx_werror_flag"
14726 || test ! -s conftest.err'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_lib_dl_dlopen=yes
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14743 ac_cv_lib_dl_dlopen=no
14745 rm -f conftest.err conftest.$ac_objext \
14746 conftest$ac_exeext conftest.$ac_ext
14747 LIBS=$ac_check_lib_save_LIBS
14749 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14750 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14751 if test $ac_cv_lib_dl_dlopen = yes; then
14752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14754 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14755 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14756 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-lsvld $LIBS"
14761 cat >conftest.$ac_ext <<_ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14768 /* Override any gcc2 internal prototype to avoid an error. */
14772 /* We use char because int might match the return type of a gcc2
14773 builtin and then its argument prototype would still apply. */
14783 rm -f conftest.$ac_objext conftest$ac_exeext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14785 (eval $ac_link) 2>conftest.er1
14787 grep -v '^ *+' conftest.er1 >conftest.err
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_cxx_werror_flag"
14793 || test ! -s conftest.err'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; } &&
14799 { ac_try='test -s conftest$ac_exeext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_cv_lib_svld_dlopen=yes
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 ac_cv_lib_svld_dlopen=no
14812 rm -f conftest.err conftest.$ac_objext \
14813 conftest$ac_exeext conftest.$ac_ext
14814 LIBS=$ac_check_lib_save_LIBS
14816 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14817 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14818 if test $ac_cv_lib_svld_dlopen = yes; then
14819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14821 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14822 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14823 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 ac_check_lib_save_LIBS=$LIBS
14828 cat >conftest.$ac_ext <<_ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14835 /* Override any gcc2 internal prototype to avoid an error. */
14839 /* We use char because int might match the return type of a gcc2
14840 builtin and then its argument prototype would still apply. */
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 (eval $ac_link) 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_cxx_werror_flag"
14860 || test ! -s conftest.err'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest$ac_exeext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_cv_lib_dld_dld_link=yes
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 ac_cv_lib_dld_dld_link=no
14879 rm -f conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS
14883 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14884 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14885 if test $ac_cv_lib_dld_dld_link = yes; then
14886 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14907 if test "x$lt_cv_dlopen" != xno; then
14913 case $lt_cv_dlopen in
14915 save_CPPFLAGS="$CPPFLAGS"
14916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14918 save_LDFLAGS="$LDFLAGS"
14919 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14922 LIBS="$lt_cv_dlopen_libs $LIBS"
14924 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14925 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14926 if test "${lt_cv_dlopen_self+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 if test "$cross_compiling" = yes; then :
14930 lt_cv_dlopen_self=cross
14932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14933 lt_status=$lt_dlunknown
14934 cat > conftest.$ac_ext <<EOF
14935 #line 14935 "configure"
14936 #include "confdefs.h"
14945 # define LT_DLGLOBAL RTLD_GLOBAL
14948 # define LT_DLGLOBAL DL_GLOBAL
14950 # define LT_DLGLOBAL 0
14954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14955 find out it does not work in some platform. */
14956 #ifndef LT_DLLAZY_OR_NOW
14958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14961 # define LT_DLLAZY_OR_NOW DL_LAZY
14964 # define LT_DLLAZY_OR_NOW RTLD_NOW
14967 # define LT_DLLAZY_OR_NOW DL_NOW
14969 # define LT_DLLAZY_OR_NOW 0
14977 extern "C" void exit (int);
14980 void fnord() { int i=42;}
14983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14984 int status = $lt_dlunknown;
14988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14989 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14990 /* dlclose (self); */
14996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14997 (eval $ac_link) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15001 (./conftest; exit; ) 2>/dev/null
15003 case x$lt_status in
15004 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15005 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15006 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15009 # compilation failed
15010 lt_cv_dlopen_self=no
15017 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15018 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15020 if test "x$lt_cv_dlopen_self" = xyes; then
15021 LDFLAGS="$LDFLAGS $link_static_flag"
15022 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15023 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15024 if test "${lt_cv_dlopen_self_static+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 if test "$cross_compiling" = yes; then :
15028 lt_cv_dlopen_self_static=cross
15030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15031 lt_status=$lt_dlunknown
15032 cat > conftest.$ac_ext <<EOF
15033 #line 15033 "configure"
15034 #include "confdefs.h"
15043 # define LT_DLGLOBAL RTLD_GLOBAL
15046 # define LT_DLGLOBAL DL_GLOBAL
15048 # define LT_DLGLOBAL 0
15052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15053 find out it does not work in some platform. */
15054 #ifndef LT_DLLAZY_OR_NOW
15056 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15059 # define LT_DLLAZY_OR_NOW DL_LAZY
15062 # define LT_DLLAZY_OR_NOW RTLD_NOW
15065 # define LT_DLLAZY_OR_NOW DL_NOW
15067 # define LT_DLLAZY_OR_NOW 0
15075 extern "C" void exit (int);
15078 void fnord() { int i=42;}
15081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15082 int status = $lt_dlunknown;
15086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15087 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15088 /* dlclose (self); */
15094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095 (eval $ac_link) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15099 (./conftest; exit; ) 2>/dev/null
15101 case x$lt_status in
15102 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15103 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15104 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15107 # compilation failed
15108 lt_cv_dlopen_self_static=no
15115 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15116 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15119 CPPFLAGS="$save_CPPFLAGS"
15120 LDFLAGS="$save_LDFLAGS"
15125 case $lt_cv_dlopen_self in
15126 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15127 *) enable_dlopen_self=unknown ;;
15130 case $lt_cv_dlopen_self_static in
15131 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15132 *) enable_dlopen_self_static=unknown ;;
15137 # The else clause should only fire when bootstrapping the
15138 # libtool distribution, otherwise you forgot to ship ltmain.sh
15139 # with your package, and you will get complaints that there are
15140 # no rules to generate ltmain.sh.
15141 if test -f "$ltmain"; then
15142 # See if we are running on zsh, and set the options which allow our commands through
15143 # without removal of \ escapes.
15144 if test -n "${ZSH_VERSION+set}" ; then
15145 setopt NO_GLOB_SUBST
15147 # Now quote all the things that may contain metacharacters while being
15148 # careful not to overquote the AC_SUBSTed values. We take copies of the
15149 # variables and quote the copies for generation of the libtool script.
15150 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15152 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15153 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15154 deplibs_check_method reload_flag reload_cmds need_locks \
15155 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15156 lt_cv_sys_global_symbol_to_c_name_address \
15157 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15158 old_postinstall_cmds old_postuninstall_cmds \
15162 lt_prog_compiler_wl_CXX \
15163 lt_prog_compiler_pic_CXX \
15164 lt_prog_compiler_static_CXX \
15165 lt_prog_compiler_no_builtin_flag_CXX \
15166 export_dynamic_flag_spec_CXX \
15167 thread_safe_flag_spec_CXX \
15168 whole_archive_flag_spec_CXX \
15169 enable_shared_with_static_runtimes_CXX \
15170 old_archive_cmds_CXX \
15171 old_archive_from_new_cmds_CXX \
15172 predep_objects_CXX \
15173 postdep_objects_CXX \
15176 compiler_lib_search_path_CXX \
15178 archive_expsym_cmds_CXX \
15179 postinstall_cmds_CXX \
15180 postuninstall_cmds_CXX \
15181 old_archive_from_expsyms_cmds_CXX \
15182 allow_undefined_flag_CXX \
15183 no_undefined_flag_CXX \
15184 export_symbols_cmds_CXX \
15185 hardcode_libdir_flag_spec_CXX \
15186 hardcode_libdir_flag_spec_ld_CXX \
15187 hardcode_libdir_separator_CXX \
15188 hardcode_automatic_CXX \
15190 module_expsym_cmds_CXX \
15191 lt_cv_prog_compiler_c_o_CXX \
15192 exclude_expsyms_CXX \
15193 include_expsyms_CXX; do
15196 old_archive_cmds_CXX | \
15197 old_archive_from_new_cmds_CXX | \
15198 archive_cmds_CXX | \
15199 archive_expsym_cmds_CXX | \
15200 module_cmds_CXX | \
15201 module_expsym_cmds_CXX | \
15202 old_archive_from_expsyms_cmds_CXX | \
15203 export_symbols_cmds_CXX | \
15204 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15205 postinstall_cmds | postuninstall_cmds | \
15206 old_postinstall_cmds | old_postuninstall_cmds | \
15207 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15208 # Double-quote double-evaled strings.
15209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15212 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15218 *'\$0 --fallback-echo"')
15219 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15225 cat <<__EOF__ >> "$cfgfile"
15226 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15228 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15230 # Shell to use when invoking shell scripts.
15233 # Whether or not to build shared libraries.
15234 build_libtool_libs=$enable_shared
15236 # Whether or not to build static libraries.
15237 build_old_libs=$enable_static
15239 # Whether or not to add -lc for building shared libraries.
15240 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15242 # Whether or not to disallow shared libs when runtime libs are static
15243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15245 # Whether or not to optimize for fast installation.
15246 fast_install=$enable_fast_install
15249 host_alias=$host_alias
15253 # The build system.
15254 build_alias=$build_alias
15258 # An echo program that does not interpret backslashes.
15263 AR_FLAGS=$lt_AR_FLAGS
15268 # A language-specific compiler.
15269 CC=$lt_compiler_CXX
15271 # Is the compiler the GNU C compiler?
15277 # The linker used to build libraries.
15280 # Whether we need hard or soft links.
15283 # A BSD-compatible nm program.
15286 # A symbol stripping program
15289 # Used to examine libraries when file_magic_cmd begins "file"
15290 MAGIC_CMD=$MAGIC_CMD
15292 # Used on cygwin: DLL creation program.
15295 # Used on cygwin: object dumper.
15298 # Used on cygwin: assembler.
15301 # The name of the directory that contains temporary libtool files.
15304 # How to create reloadable object files.
15305 reload_flag=$lt_reload_flag
15306 reload_cmds=$lt_reload_cmds
15308 # How to pass a linker flag through the compiler.
15309 wl=$lt_lt_prog_compiler_wl_CXX
15311 # Object file suffix (normally "o").
15312 objext="$ac_objext"
15314 # Old archive suffix (normally "a").
15317 # Shared library suffix (normally ".so").
15318 shrext_cmds='$shrext_cmds'
15320 # Executable file suffix (normally "").
15323 # Additional compiler flags for building library objects.
15324 pic_flag=$lt_lt_prog_compiler_pic_CXX
15327 # What is the maximum length of a command?
15328 max_cmd_len=$lt_cv_sys_max_cmd_len
15330 # Does compiler simultaneously support -c and -o options?
15331 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15333 # Must we lock files when doing compilation?
15334 need_locks=$lt_need_locks
15336 # Do we need the lib prefix for modules?
15337 need_lib_prefix=$need_lib_prefix
15339 # Do we need a version for libraries?
15340 need_version=$need_version
15342 # Whether dlopen is supported.
15343 dlopen_support=$enable_dlopen
15345 # Whether dlopen of programs is supported.
15346 dlopen_self=$enable_dlopen_self
15348 # Whether dlopen of statically linked programs is supported.
15349 dlopen_self_static=$enable_dlopen_self_static
15351 # Compiler flag to prevent dynamic linking.
15352 link_static_flag=$lt_lt_prog_compiler_static_CXX
15354 # Compiler flag to turn off builtin functions.
15355 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15357 # Compiler flag to allow reflexive dlopens.
15358 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15360 # Compiler flag to generate shared objects directly from archives.
15361 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15363 # Compiler flag to generate thread-safe objects.
15364 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15366 # Library versioning type.
15367 version_type=$version_type
15369 # Format of library name prefix.
15370 libname_spec=$lt_libname_spec
15372 # List of archive names. First name is the real one, the rest are links.
15373 # The last name is the one that the linker finds with -lNAME.
15374 library_names_spec=$lt_library_names_spec
15376 # The coded name of the library, if different from the real name.
15377 soname_spec=$lt_soname_spec
15379 # Commands used to build and install an old-style archive.
15381 old_archive_cmds=$lt_old_archive_cmds_CXX
15382 old_postinstall_cmds=$lt_old_postinstall_cmds
15383 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15385 # Create an old-style archive from a shared archive.
15386 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15388 # Create a temporary old-style archive to link instead of a shared archive.
15389 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15391 # Commands used to build and install a shared archive.
15392 archive_cmds=$lt_archive_cmds_CXX
15393 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15394 postinstall_cmds=$lt_postinstall_cmds
15395 postuninstall_cmds=$lt_postuninstall_cmds
15397 # Commands used to build a loadable module (assumed same as above if empty)
15398 module_cmds=$lt_module_cmds_CXX
15399 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15401 # Commands to strip libraries.
15402 old_striplib=$lt_old_striplib
15403 striplib=$lt_striplib
15405 # Dependencies to place before the objects being linked to create a
15407 predep_objects=$lt_predep_objects_CXX
15409 # Dependencies to place after the objects being linked to create a
15411 postdep_objects=$lt_postdep_objects_CXX
15413 # Dependencies to place before the objects being linked to create a
15415 predeps=$lt_predeps_CXX
15417 # Dependencies to place after the objects being linked to create a
15419 postdeps=$lt_postdeps_CXX
15421 # The library search path used internally by the compiler when linking
15422 # a shared library.
15423 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15425 # Method to check whether dependent libraries are shared objects.
15426 deplibs_check_method=$lt_deplibs_check_method
15428 # Command to use when deplibs_check_method == file_magic.
15429 file_magic_cmd=$lt_file_magic_cmd
15431 # Flag that allows shared libraries with undefined symbols to be built.
15432 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15434 # Flag that forces no undefined symbols.
15435 no_undefined_flag=$lt_no_undefined_flag_CXX
15437 # Commands used to finish a libtool library installation in a directory.
15438 finish_cmds=$lt_finish_cmds
15440 # Same as above, but a single script fragment to be evaled but not shown.
15441 finish_eval=$lt_finish_eval
15443 # Take the output of nm and produce a listing of raw symbols and C names.
15444 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15446 # Transform the output of nm in a proper C declaration
15447 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15449 # Transform the output of nm in a C name address pair
15450 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15452 # This is the shared library runtime path variable.
15453 runpath_var=$runpath_var
15455 # This is the shared library path variable.
15456 shlibpath_var=$shlibpath_var
15458 # Is shlibpath searched before the hard-coded library search path?
15459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15461 # How to hardcode a shared library path into an executable.
15462 hardcode_action=$hardcode_action_CXX
15464 # Whether we should hardcode library paths into libraries.
15465 hardcode_into_libs=$hardcode_into_libs
15467 # Flag to hardcode \$libdir into a binary during linking.
15468 # This must work even if \$libdir does not exist.
15469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15471 # If ld is used when linking, flag to hardcode \$libdir into
15472 # a binary during linking. This must work even if \$libdir does
15474 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15476 # Whether we need a single -rpath flag with a separated argument.
15477 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15479 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15480 # resulting binary.
15481 hardcode_direct=$hardcode_direct_CXX
15483 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15484 # resulting binary.
15485 hardcode_minus_L=$hardcode_minus_L_CXX
15487 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15488 # the resulting binary.
15489 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15491 # Set to yes if building a shared library automatically hardcodes DIR into the library
15492 # and all subsequent libraries and executables linked against it.
15493 hardcode_automatic=$hardcode_automatic_CXX
15495 # Variables whose values should be saved in libtool wrapper scripts and
15496 # restored at relink time.
15497 variables_saved_for_relink="$variables_saved_for_relink"
15499 # Whether libtool must link a program against all its dependency libraries.
15500 link_all_deplibs=$link_all_deplibs_CXX
15502 # Compile-time system search path for libraries
15503 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15505 # Run-time system search path for libraries
15506 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15508 # Fix the shell variable \$srcfile for the compiler.
15509 fix_srcfile_path="$fix_srcfile_path_CXX"
15511 # Set to yes if exported symbols are required.
15512 always_export_symbols=$always_export_symbols_CXX
15514 # The commands to list exported symbols.
15515 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15517 # The commands to extract the exported symbol list from a shared archive.
15518 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15520 # Symbols that should not be listed in the preloaded symbols.
15521 exclude_expsyms=$lt_exclude_expsyms_CXX
15523 # Symbols that must always be exported.
15524 include_expsyms=$lt_include_expsyms_CXX
15526 # ### END LIBTOOL TAG CONFIG: $tagname
15532 # If there is no Makefile yet, we rely on a make rule to execute
15533 # `config.status --recheck' to rerun these tests and create the
15534 # libtool script then.
15535 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15536 if test -f "$ltmain_in"; then
15537 test -f Makefile && make "$ltmain"
15543 ac_cpp='$CPP $CPPFLAGS'
15544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15552 with_gnu_ldcxx=$with_gnu_ld
15553 with_gnu_ld=$lt_save_with_gnu_ld
15554 lt_cv_path_LDCXX=$lt_cv_path_LD
15555 lt_cv_path_LD=$lt_save_path_LD
15556 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15557 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15565 if test -n "$F77" && test "X$F77" != "Xno"; then
15568 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15569 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15570 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15573 archive_cmds_need_lc_F77=no
15574 allow_undefined_flag_F77=
15575 always_export_symbols_F77=no
15576 archive_expsym_cmds_F77=
15577 export_dynamic_flag_spec_F77=
15578 hardcode_direct_F77=no
15579 hardcode_libdir_flag_spec_F77=
15580 hardcode_libdir_flag_spec_ld_F77=
15581 hardcode_libdir_separator_F77=
15582 hardcode_minus_L_F77=no
15583 hardcode_automatic_F77=no
15585 module_expsym_cmds_F77=
15586 link_all_deplibs_F77=unknown
15587 old_archive_cmds_F77=$old_archive_cmds
15588 no_undefined_flag_F77=
15589 whole_archive_flag_spec_F77=
15590 enable_shared_with_static_runtimes_F77=no
15592 # Source file extension for f77 test sources.
15595 # Object file extension for compiled f77 test sources.
15599 # Code to be used in simple compile tests
15600 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15602 # Code to be used in simple link tests
15603 lt_simple_link_test_code=" program t\n end\n"
15605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15607 # If no C compiler was specified, use CC.
15610 # Allow CC to be a program name with arguments.
15614 # save warnings/boilerplate of simple test code
15615 ac_outfile=conftest.$ac_objext
15616 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15618 _lt_compiler_boilerplate=`cat conftest.err`
15621 ac_outfile=conftest.$ac_objext
15622 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15624 _lt_linker_boilerplate=`cat conftest.err`
15628 # Allow CC to be a program name with arguments.
15633 for cc_temp in $compiler""; do
15635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15644 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15645 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15646 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15647 echo "${ECHO_T}$can_build_shared" >&6
15649 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15650 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15651 test "$can_build_shared" = "no" && enable_shared=no
15653 # On AIX, shared libraries and static libraries use the same namespace, and
15654 # are all built from PIC.
15657 test "$enable_shared" = yes && enable_static=no
15658 if test -n "$RANLIB"; then
15659 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15660 postinstall_cmds='$RANLIB $lib'
15664 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15665 test "$enable_shared" = yes && enable_static=no
15669 echo "$as_me:$LINENO: result: $enable_shared" >&5
15670 echo "${ECHO_T}$enable_shared" >&6
15672 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15673 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15674 # Make sure either enable_shared or enable_static is yes.
15675 test "$enable_shared" = yes || enable_static=yes
15676 echo "$as_me:$LINENO: result: $enable_static" >&5
15677 echo "${ECHO_T}$enable_static" >&6
15679 test "$ld_shlibs_F77" = no && can_build_shared=no
15684 lt_prog_compiler_wl_F77=
15685 lt_prog_compiler_pic_F77=
15686 lt_prog_compiler_static_F77=
15688 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15689 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15691 if test "$GCC" = yes; then
15692 lt_prog_compiler_wl_F77='-Wl,'
15693 lt_prog_compiler_static_F77='-static'
15697 # All AIX code is PIC.
15698 if test "$host_cpu" = ia64; then
15699 # AIX 5 now supports IA64 processor
15700 lt_prog_compiler_static_F77='-Bstatic'
15705 # FIXME: we need at least 68020 code to build shared libraries, but
15706 # adding the `-m68020' flag to GCC prevents building anything better,
15708 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15711 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15712 # PIC is the default for these OSes.
15715 mingw* | pw32* | os2*)
15716 # This hack is so that the source file can tell whether it is being
15717 # built for inclusion in a dll (and should export symbols for example).
15718 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15721 darwin* | rhapsody*)
15722 # PIC is the default on this platform
15723 # Common symbols not allowed in MH_DYLIB files
15724 lt_prog_compiler_pic_F77='-fno-common'
15728 # Just because we use GCC doesn't mean we suddenly get shared libraries
15729 # on systems that don't support them.
15730 lt_prog_compiler_can_build_shared_F77=no
15735 if test -d /usr/nec; then
15736 lt_prog_compiler_pic_F77=-Kconform_pic
15741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15742 # not for PA HP-UX.
15743 case "$host_cpu" in
15748 lt_prog_compiler_pic_F77='-fPIC'
15754 lt_prog_compiler_pic_F77='-fPIC'
15758 # PORTME Check for flag to pass linker flags through the system compiler.
15761 lt_prog_compiler_wl_F77='-Wl,'
15762 if test "$host_cpu" = ia64; then
15763 # AIX 5 now supports IA64 processor
15764 lt_prog_compiler_static_F77='-Bstatic'
15766 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15770 # PIC is the default on this platform
15771 # Common symbols not allowed in MH_DYLIB files
15772 case $cc_basename in
15774 lt_prog_compiler_pic_F77='-qnocommon'
15775 lt_prog_compiler_wl_F77='-Wl,'
15780 mingw* | pw32* | os2*)
15781 # This hack is so that the source file can tell whether it is being
15782 # built for inclusion in a dll (and should export symbols for example).
15783 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15786 hpux9* | hpux10* | hpux11*)
15787 lt_prog_compiler_wl_F77='-Wl,'
15788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15789 # not for PA HP-UX.
15790 case "$host_cpu" in
15795 lt_prog_compiler_pic_F77='+Z'
15798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15799 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15802 irix5* | irix6* | nonstopux*)
15803 lt_prog_compiler_wl_F77='-Wl,'
15804 # PIC (with -KPIC) is the default.
15805 lt_prog_compiler_static_F77='-non_shared'
15809 lt_prog_compiler_pic_F77='-KPIC'
15810 lt_prog_compiler_static_F77='-Bstatic'
15814 case $cc_basename in
15816 lt_prog_compiler_wl_F77='-Wl,'
15817 lt_prog_compiler_pic_F77='-KPIC'
15818 lt_prog_compiler_static_F77='-static'
15820 pgcc* | pgf77* | pgf90*)
15821 # Portland Group compilers (*not* the Pentium gcc compiler,
15822 # which looks to be a dead project)
15823 lt_prog_compiler_wl_F77='-Wl,'
15824 lt_prog_compiler_pic_F77='-fpic'
15825 lt_prog_compiler_static_F77='-static'
15828 lt_prog_compiler_wl_F77='-Wl,'
15829 # All Alpha code is PIC.
15830 lt_prog_compiler_static_F77='-non_shared'
15835 osf3* | osf4* | osf5*)
15836 lt_prog_compiler_wl_F77='-Wl,'
15837 # All OSF/1 code is PIC.
15838 lt_prog_compiler_static_F77='-non_shared'
15842 lt_prog_compiler_pic_F77='-Kpic'
15843 lt_prog_compiler_static_F77='-dn'
15847 lt_prog_compiler_pic_F77='-KPIC'
15848 lt_prog_compiler_static_F77='-Bstatic'
15849 case $cc_basename in
15850 f77* | f90* | f95*)
15851 lt_prog_compiler_wl_F77='-Qoption ld ';;
15853 lt_prog_compiler_wl_F77='-Wl,';;
15858 lt_prog_compiler_wl_F77='-Qoption ld '
15859 lt_prog_compiler_pic_F77='-PIC'
15860 lt_prog_compiler_static_F77='-Bstatic'
15863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15864 lt_prog_compiler_wl_F77='-Wl,'
15865 lt_prog_compiler_pic_F77='-KPIC'
15866 lt_prog_compiler_static_F77='-Bstatic'
15870 if test -d /usr/nec ;then
15871 lt_prog_compiler_pic_F77='-Kconform_pic'
15872 lt_prog_compiler_static_F77='-Bstatic'
15877 lt_prog_compiler_wl_F77='-Wl,'
15878 lt_prog_compiler_can_build_shared_F77=no
15882 lt_prog_compiler_pic_F77='-pic'
15883 lt_prog_compiler_static_F77='-Bstatic'
15887 lt_prog_compiler_can_build_shared_F77=no
15892 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15893 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15896 # Check to make sure the PIC flag actually works.
15898 if test -n "$lt_prog_compiler_pic_F77"; then
15900 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15901 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15902 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 lt_prog_compiler_pic_works_F77=no
15906 ac_outfile=conftest.$ac_objext
15907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15908 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15909 # Insert the option either (1) after the last *FLAGS variable, or
15910 # (2) before a word containing "conftest.", or (3) at the end.
15911 # Note that $ac_compile itself does not contain backslashes and begins
15912 # with a dollar sign (not a hyphen), so the echo should work correctly.
15913 # The option is referenced via a variable to avoid confusing sed.
15914 lt_compile=`echo "$ac_compile" | $SED \
15915 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15917 -e 's:$: $lt_compiler_flag:'`
15918 (eval echo "\"\$as_me:15918: $lt_compile\"" >&5)
15919 (eval "$lt_compile" 2>conftest.err)
15921 cat conftest.err >&5
15922 echo "$as_me:15922: \$? = $ac_status" >&5
15923 if (exit $ac_status) && test -s "$ac_outfile"; then
15924 # The compiler can only warn and ignore the option if not recognized
15925 # So say no if there are warnings other than the usual output.
15926 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15927 $SED '/^$/d' conftest.err >conftest.er2
15928 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15929 lt_prog_compiler_pic_works_F77=yes
15935 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15936 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15938 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15939 case $lt_prog_compiler_pic_F77 in
15941 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15944 lt_prog_compiler_pic_F77=
15945 lt_prog_compiler_can_build_shared_F77=no
15950 # For platforms which do not support PIC, -DPIC is meaningless:
15952 lt_prog_compiler_pic_F77=
15955 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15959 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15960 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15961 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 lt_cv_prog_compiler_c_o_F77=no
15965 $rm -r conftest 2>/dev/null
15969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15971 lt_compiler_flag="-o out/conftest2.$ac_objext"
15972 # Insert the option either (1) after the last *FLAGS variable, or
15973 # (2) before a word containing "conftest.", or (3) at the end.
15974 # Note that $ac_compile itself does not contain backslashes and begins
15975 # with a dollar sign (not a hyphen), so the echo should work correctly.
15976 lt_compile=`echo "$ac_compile" | $SED \
15977 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15979 -e 's:$: $lt_compiler_flag:'`
15980 (eval echo "\"\$as_me:15980: $lt_compile\"" >&5)
15981 (eval "$lt_compile" 2>out/conftest.err)
15983 cat out/conftest.err >&5
15984 echo "$as_me:15984: \$? = $ac_status" >&5
15985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15987 # The compiler can only warn and ignore the option if not recognized
15988 # So say no if there are warnings
15989 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15990 $SED '/^$/d' out/conftest.err >out/conftest.er2
15991 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15992 lt_cv_prog_compiler_c_o_F77=yes
15997 # SGI C++ compiler will create directory out/ii_files/ for
15998 # template instantiation
15999 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16000 $rm out/* && rmdir out
16006 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16007 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16010 hard_links="nottested"
16011 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16012 # do not overwrite the value of need_locks provided by the user
16013 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16014 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16019 ln conftest.a conftest.b 2>&5 || hard_links=no
16020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16021 echo "$as_me:$LINENO: result: $hard_links" >&5
16022 echo "${ECHO_T}$hard_links" >&6
16023 if test "$hard_links" = no; then
16024 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16025 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16032 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16033 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16036 allow_undefined_flag_F77=
16037 enable_shared_with_static_runtimes_F77=no
16039 archive_expsym_cmds_F77=
16040 old_archive_From_new_cmds_F77=
16041 old_archive_from_expsyms_cmds_F77=
16042 export_dynamic_flag_spec_F77=
16043 whole_archive_flag_spec_F77=
16044 thread_safe_flag_spec_F77=
16045 hardcode_libdir_flag_spec_F77=
16046 hardcode_libdir_flag_spec_ld_F77=
16047 hardcode_libdir_separator_F77=
16048 hardcode_direct_F77=no
16049 hardcode_minus_L_F77=no
16050 hardcode_shlibpath_var_F77=unsupported
16051 link_all_deplibs_F77=unknown
16052 hardcode_automatic_F77=no
16054 module_expsym_cmds_F77=
16055 always_export_symbols_F77=no
16056 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16057 # include_expsyms should be a list of space-separated symbols to be *always*
16058 # included in the symbol list
16059 include_expsyms_F77=
16060 # exclude_expsyms can be an extended regexp of symbols to exclude
16061 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16062 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16063 # as well as any symbol that contains `d'.
16064 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16065 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16066 # platforms (ab)use it in PIC code, but their linkers get confused if
16067 # the symbol is explicitly referenced. Since portable code cannot
16068 # rely on this symbol name, it's probably fine to never include it in
16069 # preloaded symbol tables.
16070 extract_expsyms_cmds=
16071 # Just being paranoid about ensuring that cc_basename is set.
16072 for cc_temp in $compiler""; do
16074 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16075 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16080 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16083 cygwin* | mingw* | pw32*)
16084 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16085 # When not using gcc, we currently assume that we are using
16086 # Microsoft Visual C++.
16087 if test "$GCC" != yes; then
16097 if test "$with_gnu_ld" = yes; then
16098 # If archive_cmds runs LD, not CC, wlarc should be empty
16101 # Set some defaults for GNU ld with shared library support. These
16102 # are reset later if shared libraries are not supported. Putting them
16103 # here allows them to be overridden if necessary.
16104 runpath_var=LD_RUN_PATH
16105 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16106 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16107 # ancient GNU ld didn't support --whole-archive et. al.
16108 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16109 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16111 whole_archive_flag_spec_F77=
16113 supports_anon_versioning=no
16114 case `$LD -v 2>/dev/null` in
16115 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16116 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16117 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16118 *\ 2.11.*) ;; # other 2.11 versions
16119 *) supports_anon_versioning=yes ;;
16122 # See if GNU ld supports shared libraries.
16124 aix3* | aix4* | aix5*)
16125 # On AIX/PPC, the GNU linker is very broken
16126 if test "$host_cpu" != ia64; then
16130 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16131 *** to be unable to reliably create shared libraries on AIX.
16132 *** Therefore, libtool is disabling shared libraries support. If you
16133 *** really care for shared libraries, you may want to modify your PATH
16134 *** so that a non-GNU linker is found, and then restart.
16141 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)'
16142 hardcode_libdir_flag_spec_F77='-L$libdir'
16143 hardcode_minus_L_F77=yes
16145 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16146 # that the semantics of dynamic libraries on AmigaOS, at least up
16147 # to version 4, is to share data among multiple programs linked
16148 # with the same dynamic library. Since this doesn't match the
16149 # behavior of shared libraries on other platforms, we can't use
16155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16156 allow_undefined_flag_F77=unsupported
16157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16158 # support --undefined. This deserves some investigation. FIXME
16159 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165 cygwin* | mingw* | pw32*)
16166 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16167 # as there is no search path for DLLs.
16168 hardcode_libdir_flag_spec_F77='-L$libdir'
16169 allow_undefined_flag_F77=unsupported
16170 always_export_symbols_F77=no
16171 enable_shared_with_static_runtimes_F77=yes
16172 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16174 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16175 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16176 # If the export-symbols file already is a .def file (1st line
16177 # is EXPORTS), use it as is; otherwise, prepend...
16178 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16179 cp $export_symbols $output_objdir/$soname.def;
16181 echo EXPORTS > $output_objdir/$soname.def;
16182 cat $export_symbols >> $output_objdir/$soname.def;
16184 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16193 case $cc_basename,$host_cpu in
16194 pgcc*) # Portland Group C compiler
16195 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'
16196 tmp_addflag=' $pic_flag'
16198 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16199 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'
16200 tmp_addflag=' $pic_flag -Mnomain' ;;
16201 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16202 tmp_addflag=' -i_dynamic' ;;
16203 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16204 tmp_addflag=' -i_dynamic -nofor_main' ;;
16205 ifc* | ifort*) # Intel Fortran compiler
16206 tmp_addflag=' -nofor_main' ;;
16208 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16210 if test $supports_anon_versioning = yes; then
16211 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16213 $echo "local: *; };" >> $output_objdir/$libname.ver~
16214 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16222 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16223 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16226 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16227 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16232 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16236 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16237 *** create shared libraries on Solaris systems. Therefore, libtool
16238 *** is disabling shared libraries support. We urge you to upgrade GNU
16239 *** binutils to release 2.9.1 or newer. Another option is to modify
16240 *** your PATH or compiler configuration so that the native linker is
16241 *** used, and then restart.
16244 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16245 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16246 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16253 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16255 hardcode_direct_F77=yes
16256 hardcode_shlibpath_var_F77=no
16260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16261 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16262 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16269 if test "$ld_shlibs_F77" = no; then
16271 hardcode_libdir_flag_spec_F77=
16272 export_dynamic_flag_spec_F77=
16273 whole_archive_flag_spec_F77=
16276 # PORTME fill in a description of your system's linker (not GNU ld)
16279 allow_undefined_flag_F77=unsupported
16280 always_export_symbols_F77=yes
16281 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'
16282 # Note: this linker hardcodes the directories in LIBPATH if there
16283 # are no directories specified by -L.
16284 hardcode_minus_L_F77=yes
16285 if test "$GCC" = yes && test -z "$link_static_flag"; then
16286 # Neither direct hardcoding nor static linking is supported with a
16288 hardcode_direct_F77=unsupported
16293 if test "$host_cpu" = ia64; then
16294 # On IA64, the linker does run time linking by default, so we don't
16295 # have to do anything special.
16296 aix_use_runtimelinking=no
16297 exp_sym_flag='-Bexport'
16300 # If we're using GNU nm, then we don't want the "-C" option.
16301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16302 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16303 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'
16305 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'
16307 aix_use_runtimelinking=no
16309 # Test if we are trying to use run time linking or normal
16310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16311 # need to do runtime linking.
16312 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16313 for ld_flag in $LDFLAGS; do
16314 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16315 aix_use_runtimelinking=yes
16321 exp_sym_flag='-bexport'
16322 no_entry_flag='-bnoentry'
16325 # When large executables or shared objects are built, AIX ld can
16326 # have problems creating the table of contents. If linking a library
16327 # or program results in "error TOC overflow" add -mminimal-toc to
16328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16331 archive_cmds_F77=''
16332 hardcode_direct_F77=yes
16333 hardcode_libdir_separator_F77=':'
16334 link_all_deplibs_F77=yes
16336 if test "$GCC" = yes; then
16337 case $host_os in aix4.[012]|aix4.[012].*)
16338 # We only want to do this on AIX 4.2 and lower, the check
16339 # below for broken collect2 doesn't work under 4.3+
16340 collect2name=`${CC} -print-prog-name=collect2`
16341 if test -f "$collect2name" && \
16342 strings "$collect2name" | grep resolve_lib_name >/dev/null
16344 # We have reworked collect2
16345 hardcode_direct_F77=yes
16347 # We have old collect2
16348 hardcode_direct_F77=unsupported
16349 # It fails to find uninstalled libraries when the uninstalled
16350 # path is not listed in the libpath. Setting hardcode_minus_L
16351 # to unsupported forces relinking
16352 hardcode_minus_L_F77=yes
16353 hardcode_libdir_flag_spec_F77='-L$libdir'
16354 hardcode_libdir_separator_F77=
16357 shared_flag='-shared'
16358 if test "$aix_use_runtimelinking" = yes; then
16359 shared_flag="$shared_flag "'${wl}-G'
16363 if test "$host_cpu" = ia64; then
16364 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16365 # chokes on -Wl,-G. The following line is correct:
16368 if test "$aix_use_runtimelinking" = yes; then
16369 shared_flag='${wl}-G'
16371 shared_flag='${wl}-bM:SRE'
16376 # It seems that -bexpall does not export symbols beginning with
16377 # underscore (_), so it is better to generate a list of symbols to export.
16378 always_export_symbols_F77=yes
16379 if test "$aix_use_runtimelinking" = yes; then
16380 # Warning - without using the other runtime loading flags (-brtl),
16381 # -berok will link without error, but may produce a broken library.
16382 allow_undefined_flag_F77='-berok'
16383 # Determine the default libpath from the value encoded in an empty executable.
16384 cat >conftest.$ac_ext <<_ACEOF
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16391 (eval $ac_link) 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_f77_werror_flag"
16399 || test ! -s conftest.err'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest$ac_exeext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16414 # Check for a 64-bit object if we didn't find anything.
16415 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; }
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16422 rm -f conftest.err conftest.$ac_objext \
16423 conftest$ac_exeext conftest.$ac_ext
16424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16426 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16427 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"
16429 if test "$host_cpu" = ia64; then
16430 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16431 allow_undefined_flag_F77="-z nodefs"
16432 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"
16434 # Determine the default libpath from the value encoded in an empty executable.
16435 cat >conftest.$ac_ext <<_ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442 (eval $ac_link) 2>conftest.er1
16444 grep -v '^ *+' conftest.er1 >conftest.err
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
16449 { ac_try='test -z "$ac_f77_werror_flag"
16450 || test ! -s conftest.err'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } &&
16456 { ac_try='test -s conftest$ac_exeext'
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16465 # Check for a 64-bit object if we didn't find anything.
16466 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; }
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16473 rm -f conftest.err conftest.$ac_objext \
16474 conftest$ac_exeext conftest.$ac_ext
16475 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16477 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16478 # Warning - without using the other run time loading flags,
16479 # -berok will link without error, but may produce a broken library.
16480 no_undefined_flag_F77=' ${wl}-bernotok'
16481 allow_undefined_flag_F77=' ${wl}-berok'
16482 # -bexpall does not export symbols beginning with underscore (_)
16483 always_export_symbols_F77=yes
16484 # Exported symbols can be pulled into shared objects from archives
16485 whole_archive_flag_spec_F77=' '
16486 archive_cmds_need_lc_F77=yes
16487 # This is similar to how AIX traditionally builds it's shared libraries.
16488 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'
16494 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)'
16495 hardcode_libdir_flag_spec_F77='-L$libdir'
16496 hardcode_minus_L_F77=yes
16497 # see comment about different semantics on the GNU ld section
16502 export_dynamic_flag_spec_F77=-rdynamic
16505 cygwin* | mingw* | pw32*)
16506 # When not using gcc, we currently assume that we are using
16507 # Microsoft Visual C++.
16508 # hardcode_libdir_flag_spec is actually meaningless, as there is
16509 # no search path for DLLs.
16510 hardcode_libdir_flag_spec_F77=' '
16511 allow_undefined_flag_F77=unsupported
16512 # Tell ltmain to make .lib files, not .a files.
16514 # Tell ltmain to make .dll files, not .so files.
16516 # FIXME: Setting linknames here is a bad hack.
16517 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16518 # The linker will automatically build a .lib file if we build a DLL.
16519 old_archive_From_new_cmds_F77='true'
16520 # FIXME: Should let the user specify the lib program.
16521 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16522 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16523 enable_shared_with_static_runtimes_F77=yes
16526 darwin* | rhapsody*)
16528 rhapsody* | darwin1.[012])
16529 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16533 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16535 case ${MACOSX_DEPLOYMENT_TARGET} in
16537 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16540 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16546 archive_cmds_need_lc_F77=no
16547 hardcode_direct_F77=no
16548 hardcode_automatic_F77=yes
16549 hardcode_shlibpath_var_F77=unsupported
16550 whole_archive_flag_spec_F77=''
16551 link_all_deplibs_F77=yes
16552 if test "$GCC" = yes ; then
16553 output_verbose_link_cmd='echo'
16554 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16555 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16556 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16557 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}'
16558 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}'
16560 case $cc_basename in
16562 output_verbose_link_cmd='echo'
16563 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16564 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16566 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}'
16567 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}'
16577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_libdir_flag_spec_F77='-L$libdir'
16579 hardcode_shlibpath_var_F77=no
16586 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16587 # support. Future versions do this automatically, but an explicit c++rt0.o
16588 # does not break anything, and helps significantly (at the cost of a little
16591 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16592 hardcode_libdir_flag_spec_F77='-R$libdir'
16593 hardcode_direct_F77=yes
16594 hardcode_shlibpath_var_F77=no
16597 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16599 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16600 hardcode_direct_F77=yes
16601 hardcode_minus_L_F77=yes
16602 hardcode_shlibpath_var_F77=no
16605 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16606 freebsd* | kfreebsd*-gnu | dragonfly*)
16607 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16608 hardcode_libdir_flag_spec_F77='-R$libdir'
16609 hardcode_direct_F77=yes
16610 hardcode_shlibpath_var_F77=no
16614 if test "$GCC" = yes; then
16615 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'
16617 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'
16619 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16620 hardcode_libdir_separator_F77=:
16621 hardcode_direct_F77=yes
16623 # hardcode_minus_L: Not really in the search PATH,
16624 # but as the default location of the library.
16625 hardcode_minus_L_F77=yes
16626 export_dynamic_flag_spec_F77='${wl}-E'
16630 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16631 case "$host_cpu" in
16633 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16636 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16640 case "$host_cpu" in
16642 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16645 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16649 if test "$with_gnu_ld" = no; then
16650 case "$host_cpu" in
16652 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16653 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16654 hardcode_libdir_separator_F77=:
16655 hardcode_direct_F77=no
16656 hardcode_shlibpath_var_F77=no
16659 hardcode_libdir_flag_spec_F77='-L$libdir'
16660 hardcode_direct_F77=no
16661 hardcode_shlibpath_var_F77=no
16663 # hardcode_minus_L: Not really in the search PATH,
16664 # but as the default location of the library.
16665 hardcode_minus_L_F77=yes
16668 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16669 hardcode_libdir_separator_F77=:
16670 hardcode_direct_F77=yes
16671 export_dynamic_flag_spec_F77='${wl}-E'
16673 # hardcode_minus_L: Not really in the search PATH,
16674 # but as the default location of the library.
16675 hardcode_minus_L_F77=yes
16681 irix5* | irix6* | nonstopux*)
16682 if test "$GCC" = yes; then
16683 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'
16685 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'
16686 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16688 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16689 hardcode_libdir_separator_F77=:
16690 link_all_deplibs_F77=yes
16694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16695 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16697 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16699 hardcode_libdir_flag_spec_F77='-R$libdir'
16700 hardcode_direct_F77=yes
16701 hardcode_shlibpath_var_F77=no
16705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16706 hardcode_direct_F77=yes
16707 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16708 hardcode_libdir_separator_F77=:
16709 hardcode_shlibpath_var_F77=no
16713 hardcode_direct_F77=yes
16714 hardcode_shlibpath_var_F77=no
16715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16716 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16717 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16718 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16719 export_dynamic_flag_spec_F77='${wl}-E'
16722 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16723 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16724 hardcode_libdir_flag_spec_F77='-R$libdir'
16727 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16728 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16735 hardcode_libdir_flag_spec_F77='-L$libdir'
16736 hardcode_minus_L_F77=yes
16737 allow_undefined_flag_F77=unsupported
16738 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'
16739 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16743 if test "$GCC" = yes; then
16744 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16745 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'
16747 allow_undefined_flag_F77=' -expect_unresolved \*'
16748 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'
16750 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16751 hardcode_libdir_separator_F77=:
16754 osf4* | osf5*) # as osf3* with the addition of -msym flag
16755 if test "$GCC" = yes; then
16756 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16757 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'
16758 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16760 allow_undefined_flag_F77=' -expect_unresolved \*'
16761 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'
16762 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~
16763 $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'
16765 # Both c and cxx compiler support -rpath directly
16766 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16768 hardcode_libdir_separator_F77=:
16772 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16773 hardcode_shlibpath_var_F77=no
16774 export_dynamic_flag_spec_F77='${wl}-Bexport'
16775 runpath_var=LD_RUN_PATH
16776 hardcode_runpath_var=yes
16780 no_undefined_flag_F77=' -z text'
16781 if test "$GCC" = yes; then
16783 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16784 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16785 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16788 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16792 hardcode_libdir_flag_spec_F77='-R$libdir'
16793 hardcode_shlibpath_var_F77=no
16795 solaris2.[0-5] | solaris2.[0-5].*) ;;
16797 # The compiler driver will combine linker options so we
16798 # cannot just pass the convience library names through
16799 # without $wl, iff we do not link with $LD.
16800 # Luckily, gcc supports the same syntax we need for Sun Studio.
16801 # Supported since Solaris 2.6 (maybe 2.5.1?)
16804 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16806 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' ;;
16809 link_all_deplibs_F77=yes
16813 if test "x$host_vendor" = xsequent; then
16814 # Use $CC to link under sequent, because it throws in some extra .o
16815 # files that make .init and .fini sections work.
16816 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16818 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16820 hardcode_libdir_flag_spec_F77='-L$libdir'
16821 hardcode_direct_F77=yes
16822 hardcode_minus_L_F77=yes
16823 hardcode_shlibpath_var_F77=no
16827 case $host_vendor in
16829 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16830 hardcode_direct_F77=yes # is this really true???
16833 ## LD is ld it makes a PLAMLIB
16834 ## CC just makes a GrossModule.
16835 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16836 reload_cmds_F77='$CC -r -o $output$reload_objs'
16837 hardcode_direct_F77=no
16840 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16841 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16844 runpath_var='LD_RUN_PATH'
16845 hardcode_shlibpath_var_F77=no
16849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850 hardcode_shlibpath_var_F77=no
16851 export_dynamic_flag_spec_F77='-Bexport'
16855 if test -d /usr/nec; then
16856 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16857 hardcode_shlibpath_var_F77=no
16858 runpath_var=LD_RUN_PATH
16859 hardcode_runpath_var=yes
16865 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16866 hardcode_direct_F77=yes
16867 hardcode_minus_L_F77=no
16868 hardcode_shlibpath_var_F77=no
16869 hardcode_runpath_var=yes
16870 runpath_var=LD_RUN_PATH
16873 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16874 no_undefined_flag_F77='${wl}-z ${wl}text'
16875 if test "$GCC" = yes; then
16876 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16878 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16880 runpath_var='LD_RUN_PATH'
16881 hardcode_shlibpath_var_F77=no
16885 no_undefined_flag_F77=' -z text'
16886 # $CC -shared without GNU ld will not create a library from C++
16887 # object files and a static libstdc++, better avoid it by now
16888 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16889 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16890 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16891 hardcode_libdir_flag_spec_F77=
16892 hardcode_shlibpath_var_F77=no
16893 runpath_var='LD_RUN_PATH'
16897 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898 hardcode_libdir_flag_spec_F77='-L$libdir'
16899 hardcode_shlibpath_var_F77=no
16908 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16909 echo "${ECHO_T}$ld_shlibs_F77" >&6
16910 test "$ld_shlibs_F77" = no && can_build_shared=no
16912 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16913 if test "$GCC" = yes; then
16914 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16918 # Do we need to explicitly link libc?
16920 case "x$archive_cmds_need_lc_F77" in
16922 # Assume -lc should be added
16923 archive_cmds_need_lc_F77=yes
16925 if test "$enable_shared" = yes && test "$GCC" = yes; then
16926 case $archive_cmds_F77 in
16928 # FIXME: we may have to deal with multi-command sequences.
16931 # Test whether the compiler implicitly links with -lc since on some
16932 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16933 # to ld, don't add -lc before -lgcc.
16934 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16935 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16940 (eval $ac_compile) 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } 2>conftest.err; then
16946 libobjs=conftest.$ac_objext
16948 wl=$lt_prog_compiler_wl_F77
16954 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16955 allow_undefined_flag_F77=
16956 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16957 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }
16962 archive_cmds_need_lc_F77=no
16964 archive_cmds_need_lc_F77=yes
16966 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16968 cat conftest.err 1>&5
16971 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16972 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16979 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16980 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16981 library_names_spec=
16982 libname_spec='lib$name'
16986 postuninstall_cmds=
16990 shlibpath_overrides_runpath=unknown
16992 dynamic_linker="$host_os ld.so"
16993 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16994 if test "$GCC" = yes; then
16995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16996 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16997 # if the path contains ";" then we assume it to be the separator
16998 # otherwise default to the standard path separator (i.e. ":") - it is
16999 # assumed that no part of a normal pathname contains ";" but that should
17000 # okay in the real world where ";" in dirpaths is itself problematic.
17001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17006 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17008 need_lib_prefix=unknown
17009 hardcode_into_libs=no
17011 # when you set need_version to no, make sure it does not cause -set_version
17012 # flags to be left without arguments
17013 need_version=unknown
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17019 shlibpath_var=LIBPATH
17021 # AIX 3 has no versioning support, so we append a major version to the name.
17022 soname_spec='${libname}${release}${shared_ext}$major'
17029 hardcode_into_libs=yes
17030 if test "$host_cpu" = ia64; then
17031 # AIX 5 supports IA64
17032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17033 shlibpath_var=LD_LIBRARY_PATH
17035 # With GCC up to 2.95.x, collect2 would create an import file
17036 # for dependence libraries. The import file would start with
17037 # the line `#! .'. This would cause the generated library to
17038 # depend on `.', always an invalid library. This was fixed in
17039 # development snapshots of GCC prior to 3.0.
17041 aix4 | aix4.[01] | aix4.[01].*)
17042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17044 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17047 can_build_shared=no
17051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17052 # soname into executable. Probably we can add versioning support to
17053 # collect2, so additional links can be useful in future.
17054 if test "$aix_use_runtimelinking" = yes; then
17055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17056 # instead of lib<name>.a to let people know that these are not
17057 # typical AIX shared libraries.
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060 # We preserve .a as extension for shared libraries through AIX4.2
17061 # and later when we are not doing run time linking.
17062 library_names_spec='${libname}${release}.a $libname.a'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17065 shlibpath_var=LIBPATH
17070 library_names_spec='$libname.ixlibrary $libname.a'
17071 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17072 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'
17076 library_names_spec='${libname}${shared_ext}'
17077 dynamic_linker="$host_os ld.so"
17078 shlibpath_var=LIBRARY_PATH
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17085 soname_spec='${libname}${release}${shared_ext}$major'
17086 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17087 shlibpath_var=LD_LIBRARY_PATH
17088 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17089 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17090 # the default ld.so.conf also contains /usr/contrib/lib and
17091 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17092 # libtool to hard-code these into programs
17095 cygwin* | mingw* | pw32*)
17096 version_type=windows
17101 case $GCC,$host_os in
17102 yes,cygwin* | yes,mingw* | yes,pw32*)
17103 library_names_spec='$libname.dll.a'
17104 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17105 postinstall_cmds='base_file=`basename \${file}`~
17106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17107 dldir=$destdir/`dirname \$dlpath`~
17108 test -d \$dldir || mkdir -p \$dldir~
17109 $install_prog $dir/$dlname \$dldir/$dlname'
17110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17111 dlpath=$dir/\$dldll~
17113 shlibpath_overrides_runpath=yes
17117 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17118 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17119 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17122 # MinGW DLLs use traditional 'lib' prefix
17123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17124 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17125 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17126 # It is most probably a Windows format PATH printed by
17127 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17128 # path with ; separators, and with drive letters. We can handle the
17129 # drive letters (cygwin fileutils understands them), so leave them,
17130 # especially as we might pass files found there to a mingw objdump,
17131 # which wouldn't understand a cygwinified path. Ahh.
17132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17138 # pw32 DLLs use 'pw' prefix rather than 'lib'
17139 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17148 dynamic_linker='Win32 ld.exe'
17149 # FIXME: first we should search . and the directory the executable is in
17153 darwin* | rhapsody*)
17154 dynamic_linker="$host_os dyld"
17155 version_type=darwin
17158 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17159 soname_spec='${libname}${release}${major}$shared_ext'
17160 shlibpath_overrides_runpath=yes
17161 shlibpath_var=DYLD_LIBRARY_PATH
17162 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17163 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17164 if test "$GCC" = yes; then
17165 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"`
17167 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 shlibpath_var=LD_LIBRARY_PATH
17189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17191 shlibpath_var=LD_LIBRARY_PATH
17192 shlibpath_overrides_runpath=no
17193 hardcode_into_libs=yes
17194 dynamic_linker='GNU ld.so'
17197 freebsd* | dragonfly*)
17198 # DragonFly does not have aout. When/if they implement a new
17199 # versioning mechanism, adjust this.
17200 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17201 version_type=freebsd-$objformat
17202 case $version_type in
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17213 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=yes
17218 freebsd3.[01]* | freebsdelf3.[01]*)
17219 shlibpath_overrides_runpath=yes
17220 hardcode_into_libs=yes
17223 shlibpath_overrides_runpath=no
17224 hardcode_into_libs=yes
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 shlibpath_var=LD_LIBRARY_PATH
17236 hardcode_into_libs=yes
17239 hpux9* | hpux10* | hpux11*)
17240 # Give a soname corresponding to the major version so that dld.sl refuses to
17241 # link against other versions.
17245 case "$host_cpu" in
17248 hardcode_into_libs=yes
17249 dynamic_linker="$host_os dld.so"
17250 shlibpath_var=LD_LIBRARY_PATH
17251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 if test "X$HPUX_IA64_MODE" = X32; then
17255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17263 hardcode_into_libs=yes
17264 dynamic_linker="$host_os dld.sl"
17265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17274 dynamic_linker="$host_os dld.sl"
17275 shlibpath_var=SHLIB_PATH
17276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17281 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17282 postinstall_cmds='chmod 555 $lib'
17285 irix5* | irix6* | nonstopux*)
17287 nonstopux*) version_type=nonstopux ;;
17289 if test "$lt_cv_prog_gnu_ld" = yes; then
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17300 irix5* | nonstopux*)
17301 libsuff= shlibsuff=
17304 case $LD in # libtool.m4 will add one of these switches to LD
17305 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17306 libsuff= shlibsuff= libmagic=32-bit;;
17307 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17308 libsuff=32 shlibsuff=N32 libmagic=N32;;
17309 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17310 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17311 *) libsuff= shlibsuff= libmagic=never-match;;
17315 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17316 shlibpath_overrides_runpath=no
17317 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17318 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17319 hardcode_into_libs=yes
17322 # No shared lib support for Linux oldld, aout, or coff.
17323 linux*oldld* | linux*aout* | linux*coff*)
17327 # This must be Linux ELF.
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333 soname_spec='${libname}${release}${shared_ext}$major'
17334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 shlibpath_overrides_runpath=no
17337 # This implies no fast_install, which is unacceptable.
17338 # Some rework will be needed to allow for fast_install
17339 # before this can be enabled.
17340 hardcode_into_libs=yes
17342 # Append ld.so.conf contents to the search path
17343 if test -f /etc/ld.so.conf; then
17344 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' ' '`
17345 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17348 # We used to test for /lib/ld.so.1 and disable shared libraries on
17349 # powerpc, because MkLinux only supported shared libraries with the
17350 # GNU dynamic linker. Since this was broken with cross compilers,
17351 # most powerpc-linux boxes support dynamic linking these days and
17352 # people can always --disable-shared, the test was removed, and we
17353 # assume the GNU/Linux dynamic linker is in use.
17354 dynamic_linker='GNU/Linux ld.so'
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17362 soname_spec='${libname}${release}${shared_ext}$major'
17363 shlibpath_var=LD_LIBRARY_PATH
17364 shlibpath_overrides_runpath=no
17365 hardcode_into_libs=yes
17366 dynamic_linker='GNU ld.so'
17373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17376 dynamic_linker='NetBSD (a.out) ld.so'
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 dynamic_linker='NetBSD ld.elf_so'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 shlibpath_overrides_runpath=yes
17384 hardcode_into_libs=yes
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 shlibpath_overrides_runpath=yes
17398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399 soname_spec='${libname}${release}${shared_ext}$major'
17400 shlibpath_var=LD_LIBRARY_PATH
17401 shlibpath_overrides_runpath=yes
17407 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17409 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17410 *) need_version=no ;;
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17417 openbsd2.[89] | openbsd2.[89].*)
17418 shlibpath_overrides_runpath=no
17421 shlibpath_overrides_runpath=yes
17425 shlibpath_overrides_runpath=yes
17430 libname_spec='$name'
17433 library_names_spec='$libname${shared_ext} $libname.a'
17434 dynamic_linker='OS/2 ld.exe'
17435 shlibpath_var=LIBPATH
17438 osf3* | osf4* | osf5*)
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17446 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17451 soname_spec='${libname}${release}${shared_ext}$major'
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453 shlibpath_var=LD_LIBRARY_PATH
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 shlibpath_overrides_runpath=yes
17464 hardcode_into_libs=yes
17465 # ldd complains unless libraries are executable
17466 postinstall_cmds='chmod +x $lib'
17471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17473 shlibpath_var=LD_LIBRARY_PATH
17474 shlibpath_overrides_runpath=yes
17475 if test "$with_gnu_ld" = yes; then
17481 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484 soname_spec='${libname}${release}${shared_ext}$major'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 case $host_vendor in
17488 shlibpath_overrides_runpath=no
17490 export_dynamic_flag_spec='${wl}-Blargedynsym'
17491 runpath_var=LD_RUN_PATH
17499 shlibpath_overrides_runpath=no
17500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17506 if test -d /usr/nec ;then
17508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17509 soname_spec='$libname${shared_ext}.$major'
17510 shlibpath_var=LD_LIBRARY_PATH
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517 soname_spec='${libname}${release}${shared_ext}$major'
17518 shlibpath_var=LD_LIBRARY_PATH
17525 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17526 echo "${ECHO_T}$dynamic_linker" >&6
17527 test "$dynamic_linker" = no && can_build_shared=no
17529 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17530 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17531 hardcode_action_F77=
17532 if test -n "$hardcode_libdir_flag_spec_F77" || \
17533 test -n "$runpath_var_F77" || \
17534 test "X$hardcode_automatic_F77" = "Xyes" ; then
17536 # We can hardcode non-existant directories.
17537 if test "$hardcode_direct_F77" != no &&
17538 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17539 # have to relink, otherwise we might link with an installed library
17540 # when we should be linking with a yet-to-be-installed one
17541 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17542 test "$hardcode_minus_L_F77" != no; then
17543 # Linking always hardcodes the temporary library directory.
17544 hardcode_action_F77=relink
17546 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17547 hardcode_action_F77=immediate
17550 # We cannot hardcode anything, or else we can only hardcode existing
17552 hardcode_action_F77=unsupported
17554 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17555 echo "${ECHO_T}$hardcode_action_F77" >&6
17557 if test "$hardcode_action_F77" = relink; then
17558 # Fast installation is not supported
17559 enable_fast_install=no
17560 elif test "$shlibpath_overrides_runpath" = yes ||
17561 test "$enable_shared" = no; then
17562 # Fast installation is not necessary
17563 enable_fast_install=needless
17568 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17569 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17570 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17571 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17572 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17573 echo "$as_me:$LINENO: result: yes" >&5
17574 echo "${ECHO_T}yes" >&6
17576 # FIXME - insert some real tests, host_os isn't really good enough
17579 if test -n "$STRIP" ; then
17580 striplib="$STRIP -x"
17581 echo "$as_me:$LINENO: result: yes" >&5
17582 echo "${ECHO_T}yes" >&6
17584 echo "$as_me:$LINENO: result: no" >&5
17585 echo "${ECHO_T}no" >&6
17589 echo "$as_me:$LINENO: result: no" >&5
17590 echo "${ECHO_T}no" >&6
17597 # The else clause should only fire when bootstrapping the
17598 # libtool distribution, otherwise you forgot to ship ltmain.sh
17599 # with your package, and you will get complaints that there are
17600 # no rules to generate ltmain.sh.
17601 if test -f "$ltmain"; then
17602 # See if we are running on zsh, and set the options which allow our commands through
17603 # without removal of \ escapes.
17604 if test -n "${ZSH_VERSION+set}" ; then
17605 setopt NO_GLOB_SUBST
17607 # Now quote all the things that may contain metacharacters while being
17608 # careful not to overquote the AC_SUBSTed values. We take copies of the
17609 # variables and quote the copies for generation of the libtool script.
17610 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17612 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17613 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17614 deplibs_check_method reload_flag reload_cmds need_locks \
17615 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17616 lt_cv_sys_global_symbol_to_c_name_address \
17617 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17618 old_postinstall_cmds old_postuninstall_cmds \
17622 lt_prog_compiler_wl_F77 \
17623 lt_prog_compiler_pic_F77 \
17624 lt_prog_compiler_static_F77 \
17625 lt_prog_compiler_no_builtin_flag_F77 \
17626 export_dynamic_flag_spec_F77 \
17627 thread_safe_flag_spec_F77 \
17628 whole_archive_flag_spec_F77 \
17629 enable_shared_with_static_runtimes_F77 \
17630 old_archive_cmds_F77 \
17631 old_archive_from_new_cmds_F77 \
17632 predep_objects_F77 \
17633 postdep_objects_F77 \
17636 compiler_lib_search_path_F77 \
17638 archive_expsym_cmds_F77 \
17639 postinstall_cmds_F77 \
17640 postuninstall_cmds_F77 \
17641 old_archive_from_expsyms_cmds_F77 \
17642 allow_undefined_flag_F77 \
17643 no_undefined_flag_F77 \
17644 export_symbols_cmds_F77 \
17645 hardcode_libdir_flag_spec_F77 \
17646 hardcode_libdir_flag_spec_ld_F77 \
17647 hardcode_libdir_separator_F77 \
17648 hardcode_automatic_F77 \
17650 module_expsym_cmds_F77 \
17651 lt_cv_prog_compiler_c_o_F77 \
17652 exclude_expsyms_F77 \
17653 include_expsyms_F77; do
17656 old_archive_cmds_F77 | \
17657 old_archive_from_new_cmds_F77 | \
17658 archive_cmds_F77 | \
17659 archive_expsym_cmds_F77 | \
17660 module_cmds_F77 | \
17661 module_expsym_cmds_F77 | \
17662 old_archive_from_expsyms_cmds_F77 | \
17663 export_symbols_cmds_F77 | \
17664 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17665 postinstall_cmds | postuninstall_cmds | \
17666 old_postinstall_cmds | old_postuninstall_cmds | \
17667 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17668 # Double-quote double-evaled strings.
17669 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17678 *'\$0 --fallback-echo"')
17679 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17685 cat <<__EOF__ >> "$cfgfile"
17686 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17690 # Shell to use when invoking shell scripts.
17693 # Whether or not to build shared libraries.
17694 build_libtool_libs=$enable_shared
17696 # Whether or not to build static libraries.
17697 build_old_libs=$enable_static
17699 # Whether or not to add -lc for building shared libraries.
17700 build_libtool_need_lc=$archive_cmds_need_lc_F77
17702 # Whether or not to disallow shared libs when runtime libs are static
17703 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17705 # Whether or not to optimize for fast installation.
17706 fast_install=$enable_fast_install
17709 host_alias=$host_alias
17713 # The build system.
17714 build_alias=$build_alias
17718 # An echo program that does not interpret backslashes.
17723 AR_FLAGS=$lt_AR_FLAGS
17728 # A language-specific compiler.
17729 CC=$lt_compiler_F77
17731 # Is the compiler the GNU C compiler?
17737 # The linker used to build libraries.
17740 # Whether we need hard or soft links.
17743 # A BSD-compatible nm program.
17746 # A symbol stripping program
17749 # Used to examine libraries when file_magic_cmd begins "file"
17750 MAGIC_CMD=$MAGIC_CMD
17752 # Used on cygwin: DLL creation program.
17755 # Used on cygwin: object dumper.
17758 # Used on cygwin: assembler.
17761 # The name of the directory that contains temporary libtool files.
17764 # How to create reloadable object files.
17765 reload_flag=$lt_reload_flag
17766 reload_cmds=$lt_reload_cmds
17768 # How to pass a linker flag through the compiler.
17769 wl=$lt_lt_prog_compiler_wl_F77
17771 # Object file suffix (normally "o").
17772 objext="$ac_objext"
17774 # Old archive suffix (normally "a").
17777 # Shared library suffix (normally ".so").
17778 shrext_cmds='$shrext_cmds'
17780 # Executable file suffix (normally "").
17783 # Additional compiler flags for building library objects.
17784 pic_flag=$lt_lt_prog_compiler_pic_F77
17787 # What is the maximum length of a command?
17788 max_cmd_len=$lt_cv_sys_max_cmd_len
17790 # Does compiler simultaneously support -c and -o options?
17791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17793 # Must we lock files when doing compilation?
17794 need_locks=$lt_need_locks
17796 # Do we need the lib prefix for modules?
17797 need_lib_prefix=$need_lib_prefix
17799 # Do we need a version for libraries?
17800 need_version=$need_version
17802 # Whether dlopen is supported.
17803 dlopen_support=$enable_dlopen
17805 # Whether dlopen of programs is supported.
17806 dlopen_self=$enable_dlopen_self
17808 # Whether dlopen of statically linked programs is supported.
17809 dlopen_self_static=$enable_dlopen_self_static
17811 # Compiler flag to prevent dynamic linking.
17812 link_static_flag=$lt_lt_prog_compiler_static_F77
17814 # Compiler flag to turn off builtin functions.
17815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17817 # Compiler flag to allow reflexive dlopens.
17818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17820 # Compiler flag to generate shared objects directly from archives.
17821 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17823 # Compiler flag to generate thread-safe objects.
17824 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17826 # Library versioning type.
17827 version_type=$version_type
17829 # Format of library name prefix.
17830 libname_spec=$lt_libname_spec
17832 # List of archive names. First name is the real one, the rest are links.
17833 # The last name is the one that the linker finds with -lNAME.
17834 library_names_spec=$lt_library_names_spec
17836 # The coded name of the library, if different from the real name.
17837 soname_spec=$lt_soname_spec
17839 # Commands used to build and install an old-style archive.
17841 old_archive_cmds=$lt_old_archive_cmds_F77
17842 old_postinstall_cmds=$lt_old_postinstall_cmds
17843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17845 # Create an old-style archive from a shared archive.
17846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17848 # Create a temporary old-style archive to link instead of a shared archive.
17849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17851 # Commands used to build and install a shared archive.
17852 archive_cmds=$lt_archive_cmds_F77
17853 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17854 postinstall_cmds=$lt_postinstall_cmds
17855 postuninstall_cmds=$lt_postuninstall_cmds
17857 # Commands used to build a loadable module (assumed same as above if empty)
17858 module_cmds=$lt_module_cmds_F77
17859 module_expsym_cmds=$lt_module_expsym_cmds_F77
17861 # Commands to strip libraries.
17862 old_striplib=$lt_old_striplib
17863 striplib=$lt_striplib
17865 # Dependencies to place before the objects being linked to create a
17867 predep_objects=$lt_predep_objects_F77
17869 # Dependencies to place after the objects being linked to create a
17871 postdep_objects=$lt_postdep_objects_F77
17873 # Dependencies to place before the objects being linked to create a
17875 predeps=$lt_predeps_F77
17877 # Dependencies to place after the objects being linked to create a
17879 postdeps=$lt_postdeps_F77
17881 # The library search path used internally by the compiler when linking
17882 # a shared library.
17883 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17885 # Method to check whether dependent libraries are shared objects.
17886 deplibs_check_method=$lt_deplibs_check_method
17888 # Command to use when deplibs_check_method == file_magic.
17889 file_magic_cmd=$lt_file_magic_cmd
17891 # Flag that allows shared libraries with undefined symbols to be built.
17892 allow_undefined_flag=$lt_allow_undefined_flag_F77
17894 # Flag that forces no undefined symbols.
17895 no_undefined_flag=$lt_no_undefined_flag_F77
17897 # Commands used to finish a libtool library installation in a directory.
17898 finish_cmds=$lt_finish_cmds
17900 # Same as above, but a single script fragment to be evaled but not shown.
17901 finish_eval=$lt_finish_eval
17903 # Take the output of nm and produce a listing of raw symbols and C names.
17904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17906 # Transform the output of nm in a proper C declaration
17907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17909 # Transform the output of nm in a C name address pair
17910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17912 # This is the shared library runtime path variable.
17913 runpath_var=$runpath_var
17915 # This is the shared library path variable.
17916 shlibpath_var=$shlibpath_var
17918 # Is shlibpath searched before the hard-coded library search path?
17919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17921 # How to hardcode a shared library path into an executable.
17922 hardcode_action=$hardcode_action_F77
17924 # Whether we should hardcode library paths into libraries.
17925 hardcode_into_libs=$hardcode_into_libs
17927 # Flag to hardcode \$libdir into a binary during linking.
17928 # This must work even if \$libdir does not exist.
17929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17931 # If ld is used when linking, flag to hardcode \$libdir into
17932 # a binary during linking. This must work even if \$libdir does
17934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17936 # Whether we need a single -rpath flag with a separated argument.
17937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17939 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17940 # resulting binary.
17941 hardcode_direct=$hardcode_direct_F77
17943 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17944 # resulting binary.
17945 hardcode_minus_L=$hardcode_minus_L_F77
17947 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17948 # the resulting binary.
17949 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17951 # Set to yes if building a shared library automatically hardcodes DIR into the library
17952 # and all subsequent libraries and executables linked against it.
17953 hardcode_automatic=$hardcode_automatic_F77
17955 # Variables whose values should be saved in libtool wrapper scripts and
17956 # restored at relink time.
17957 variables_saved_for_relink="$variables_saved_for_relink"
17959 # Whether libtool must link a program against all its dependency libraries.
17960 link_all_deplibs=$link_all_deplibs_F77
17962 # Compile-time system search path for libraries
17963 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17965 # Run-time system search path for libraries
17966 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17968 # Fix the shell variable \$srcfile for the compiler.
17969 fix_srcfile_path="$fix_srcfile_path_F77"
17971 # Set to yes if exported symbols are required.
17972 always_export_symbols=$always_export_symbols_F77
17974 # The commands to list exported symbols.
17975 export_symbols_cmds=$lt_export_symbols_cmds_F77
17977 # The commands to extract the exported symbol list from a shared archive.
17978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17980 # Symbols that should not be listed in the preloaded symbols.
17981 exclude_expsyms=$lt_exclude_expsyms_F77
17983 # Symbols that must always be exported.
17984 include_expsyms=$lt_include_expsyms_F77
17986 # ### END LIBTOOL TAG CONFIG: $tagname
17992 # If there is no Makefile yet, we rely on a make rule to execute
17993 # `config.status --recheck' to rerun these tests and create the
17994 # libtool script then.
17995 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17996 if test -f "$ltmain_in"; then
17997 test -f Makefile && make "$ltmain"
18003 ac_cpp='$CPP $CPPFLAGS'
18004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18016 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18020 # Source file extension for Java test sources.
18023 # Object file extension for compiled Java test sources.
18027 # Code to be used in simple compile tests
18028 lt_simple_compile_test_code="class foo {}\n"
18030 # Code to be used in simple link tests
18031 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18033 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18035 # If no C compiler was specified, use CC.
18038 # Allow CC to be a program name with arguments.
18042 # save warnings/boilerplate of simple test code
18043 ac_outfile=conftest.$ac_objext
18044 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18046 _lt_compiler_boilerplate=`cat conftest.err`
18049 ac_outfile=conftest.$ac_objext
18050 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18052 _lt_linker_boilerplate=`cat conftest.err`
18056 # Allow CC to be a program name with arguments.
18061 for cc_temp in $compiler""; do
18063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18069 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18072 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18073 archive_cmds_need_lc_GCJ=no
18075 old_archive_cmds_GCJ=$old_archive_cmds
18078 lt_prog_compiler_no_builtin_flag_GCJ=
18080 if test "$GCC" = yes; then
18081 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18084 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18085 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18086 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 lt_cv_prog_compiler_rtti_exceptions=no
18090 ac_outfile=conftest.$ac_objext
18091 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18092 lt_compiler_flag="-fno-rtti -fno-exceptions"
18093 # Insert the option either (1) after the last *FLAGS variable, or
18094 # (2) before a word containing "conftest.", or (3) at the end.
18095 # Note that $ac_compile itself does not contain backslashes and begins
18096 # with a dollar sign (not a hyphen), so the echo should work correctly.
18097 # The option is referenced via a variable to avoid confusing sed.
18098 lt_compile=`echo "$ac_compile" | $SED \
18099 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18101 -e 's:$: $lt_compiler_flag:'`
18102 (eval echo "\"\$as_me:18102: $lt_compile\"" >&5)
18103 (eval "$lt_compile" 2>conftest.err)
18105 cat conftest.err >&5
18106 echo "$as_me:18106: \$? = $ac_status" >&5
18107 if (exit $ac_status) && test -s "$ac_outfile"; then
18108 # The compiler can only warn and ignore the option if not recognized
18109 # So say no if there are warnings other than the usual output.
18110 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18111 $SED '/^$/d' conftest.err >conftest.er2
18112 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18113 lt_cv_prog_compiler_rtti_exceptions=yes
18119 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18120 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18122 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18123 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18130 lt_prog_compiler_wl_GCJ=
18131 lt_prog_compiler_pic_GCJ=
18132 lt_prog_compiler_static_GCJ=
18134 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18135 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18137 if test "$GCC" = yes; then
18138 lt_prog_compiler_wl_GCJ='-Wl,'
18139 lt_prog_compiler_static_GCJ='-static'
18143 # All AIX code is PIC.
18144 if test "$host_cpu" = ia64; then
18145 # AIX 5 now supports IA64 processor
18146 lt_prog_compiler_static_GCJ='-Bstatic'
18151 # FIXME: we need at least 68020 code to build shared libraries, but
18152 # adding the `-m68020' flag to GCC prevents building anything better,
18154 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18157 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18158 # PIC is the default for these OSes.
18161 mingw* | pw32* | os2*)
18162 # This hack is so that the source file can tell whether it is being
18163 # built for inclusion in a dll (and should export symbols for example).
18164 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18167 darwin* | rhapsody*)
18168 # PIC is the default on this platform
18169 # Common symbols not allowed in MH_DYLIB files
18170 lt_prog_compiler_pic_GCJ='-fno-common'
18174 # Just because we use GCC doesn't mean we suddenly get shared libraries
18175 # on systems that don't support them.
18176 lt_prog_compiler_can_build_shared_GCJ=no
18181 if test -d /usr/nec; then
18182 lt_prog_compiler_pic_GCJ=-Kconform_pic
18187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18188 # not for PA HP-UX.
18189 case "$host_cpu" in
18194 lt_prog_compiler_pic_GCJ='-fPIC'
18200 lt_prog_compiler_pic_GCJ='-fPIC'
18204 # PORTME Check for flag to pass linker flags through the system compiler.
18207 lt_prog_compiler_wl_GCJ='-Wl,'
18208 if test "$host_cpu" = ia64; then
18209 # AIX 5 now supports IA64 processor
18210 lt_prog_compiler_static_GCJ='-Bstatic'
18212 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18216 # PIC is the default on this platform
18217 # Common symbols not allowed in MH_DYLIB files
18218 case $cc_basename in
18220 lt_prog_compiler_pic_GCJ='-qnocommon'
18221 lt_prog_compiler_wl_GCJ='-Wl,'
18226 mingw* | pw32* | os2*)
18227 # This hack is so that the source file can tell whether it is being
18228 # built for inclusion in a dll (and should export symbols for example).
18229 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18232 hpux9* | hpux10* | hpux11*)
18233 lt_prog_compiler_wl_GCJ='-Wl,'
18234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18235 # not for PA HP-UX.
18236 case "$host_cpu" in
18241 lt_prog_compiler_pic_GCJ='+Z'
18244 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18245 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18248 irix5* | irix6* | nonstopux*)
18249 lt_prog_compiler_wl_GCJ='-Wl,'
18250 # PIC (with -KPIC) is the default.
18251 lt_prog_compiler_static_GCJ='-non_shared'
18255 lt_prog_compiler_pic_GCJ='-KPIC'
18256 lt_prog_compiler_static_GCJ='-Bstatic'
18260 case $cc_basename in
18262 lt_prog_compiler_wl_GCJ='-Wl,'
18263 lt_prog_compiler_pic_GCJ='-KPIC'
18264 lt_prog_compiler_static_GCJ='-static'
18266 pgcc* | pgf77* | pgf90*)
18267 # Portland Group compilers (*not* the Pentium gcc compiler,
18268 # which looks to be a dead project)
18269 lt_prog_compiler_wl_GCJ='-Wl,'
18270 lt_prog_compiler_pic_GCJ='-fpic'
18271 lt_prog_compiler_static_GCJ='-static'
18274 lt_prog_compiler_wl_GCJ='-Wl,'
18275 # All Alpha code is PIC.
18276 lt_prog_compiler_static_GCJ='-non_shared'
18281 osf3* | osf4* | osf5*)
18282 lt_prog_compiler_wl_GCJ='-Wl,'
18283 # All OSF/1 code is PIC.
18284 lt_prog_compiler_static_GCJ='-non_shared'
18288 lt_prog_compiler_pic_GCJ='-Kpic'
18289 lt_prog_compiler_static_GCJ='-dn'
18293 lt_prog_compiler_pic_GCJ='-KPIC'
18294 lt_prog_compiler_static_GCJ='-Bstatic'
18295 case $cc_basename in
18296 f77* | f90* | f95*)
18297 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18299 lt_prog_compiler_wl_GCJ='-Wl,';;
18304 lt_prog_compiler_wl_GCJ='-Qoption ld '
18305 lt_prog_compiler_pic_GCJ='-PIC'
18306 lt_prog_compiler_static_GCJ='-Bstatic'
18309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18310 lt_prog_compiler_wl_GCJ='-Wl,'
18311 lt_prog_compiler_pic_GCJ='-KPIC'
18312 lt_prog_compiler_static_GCJ='-Bstatic'
18316 if test -d /usr/nec ;then
18317 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18318 lt_prog_compiler_static_GCJ='-Bstatic'
18323 lt_prog_compiler_wl_GCJ='-Wl,'
18324 lt_prog_compiler_can_build_shared_GCJ=no
18328 lt_prog_compiler_pic_GCJ='-pic'
18329 lt_prog_compiler_static_GCJ='-Bstatic'
18333 lt_prog_compiler_can_build_shared_GCJ=no
18338 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18339 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18342 # Check to make sure the PIC flag actually works.
18344 if test -n "$lt_prog_compiler_pic_GCJ"; then
18346 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18347 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18348 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 lt_prog_compiler_pic_works_GCJ=no
18352 ac_outfile=conftest.$ac_objext
18353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18354 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18355 # Insert the option either (1) after the last *FLAGS variable, or
18356 # (2) before a word containing "conftest.", or (3) at the end.
18357 # Note that $ac_compile itself does not contain backslashes and begins
18358 # with a dollar sign (not a hyphen), so the echo should work correctly.
18359 # The option is referenced via a variable to avoid confusing sed.
18360 lt_compile=`echo "$ac_compile" | $SED \
18361 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18363 -e 's:$: $lt_compiler_flag:'`
18364 (eval echo "\"\$as_me:18364: $lt_compile\"" >&5)
18365 (eval "$lt_compile" 2>conftest.err)
18367 cat conftest.err >&5
18368 echo "$as_me:18368: \$? = $ac_status" >&5
18369 if (exit $ac_status) && test -s "$ac_outfile"; then
18370 # The compiler can only warn and ignore the option if not recognized
18371 # So say no if there are warnings other than the usual output.
18372 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18373 $SED '/^$/d' conftest.err >conftest.er2
18374 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18375 lt_prog_compiler_pic_works_GCJ=yes
18381 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18382 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18384 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18385 case $lt_prog_compiler_pic_GCJ in
18387 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18390 lt_prog_compiler_pic_GCJ=
18391 lt_prog_compiler_can_build_shared_GCJ=no
18396 # For platforms which do not support PIC, -DPIC is meaningless:
18398 lt_prog_compiler_pic_GCJ=
18401 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18405 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18406 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18407 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 lt_cv_prog_compiler_c_o_GCJ=no
18411 $rm -r conftest 2>/dev/null
18415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18417 lt_compiler_flag="-o out/conftest2.$ac_objext"
18418 # Insert the option either (1) after the last *FLAGS variable, or
18419 # (2) before a word containing "conftest.", or (3) at the end.
18420 # Note that $ac_compile itself does not contain backslashes and begins
18421 # with a dollar sign (not a hyphen), so the echo should work correctly.
18422 lt_compile=`echo "$ac_compile" | $SED \
18423 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18425 -e 's:$: $lt_compiler_flag:'`
18426 (eval echo "\"\$as_me:18426: $lt_compile\"" >&5)
18427 (eval "$lt_compile" 2>out/conftest.err)
18429 cat out/conftest.err >&5
18430 echo "$as_me:18430: \$? = $ac_status" >&5
18431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18433 # The compiler can only warn and ignore the option if not recognized
18434 # So say no if there are warnings
18435 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18436 $SED '/^$/d' out/conftest.err >out/conftest.er2
18437 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18438 lt_cv_prog_compiler_c_o_GCJ=yes
18443 # SGI C++ compiler will create directory out/ii_files/ for
18444 # template instantiation
18445 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18446 $rm out/* && rmdir out
18452 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18453 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18456 hard_links="nottested"
18457 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18458 # do not overwrite the value of need_locks provided by the user
18459 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18460 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18465 ln conftest.a conftest.b 2>&5 || hard_links=no
18466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18467 echo "$as_me:$LINENO: result: $hard_links" >&5
18468 echo "${ECHO_T}$hard_links" >&6
18469 if test "$hard_links" = no; then
18470 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18471 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18478 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18479 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18482 allow_undefined_flag_GCJ=
18483 enable_shared_with_static_runtimes_GCJ=no
18485 archive_expsym_cmds_GCJ=
18486 old_archive_From_new_cmds_GCJ=
18487 old_archive_from_expsyms_cmds_GCJ=
18488 export_dynamic_flag_spec_GCJ=
18489 whole_archive_flag_spec_GCJ=
18490 thread_safe_flag_spec_GCJ=
18491 hardcode_libdir_flag_spec_GCJ=
18492 hardcode_libdir_flag_spec_ld_GCJ=
18493 hardcode_libdir_separator_GCJ=
18494 hardcode_direct_GCJ=no
18495 hardcode_minus_L_GCJ=no
18496 hardcode_shlibpath_var_GCJ=unsupported
18497 link_all_deplibs_GCJ=unknown
18498 hardcode_automatic_GCJ=no
18500 module_expsym_cmds_GCJ=
18501 always_export_symbols_GCJ=no
18502 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18503 # include_expsyms should be a list of space-separated symbols to be *always*
18504 # included in the symbol list
18505 include_expsyms_GCJ=
18506 # exclude_expsyms can be an extended regexp of symbols to exclude
18507 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18508 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18509 # as well as any symbol that contains `d'.
18510 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18512 # platforms (ab)use it in PIC code, but their linkers get confused if
18513 # the symbol is explicitly referenced. Since portable code cannot
18514 # rely on this symbol name, it's probably fine to never include it in
18515 # preloaded symbol tables.
18516 extract_expsyms_cmds=
18517 # Just being paranoid about ensuring that cc_basename is set.
18518 for cc_temp in $compiler""; do
18520 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18521 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18526 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18529 cygwin* | mingw* | pw32*)
18530 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18531 # When not using gcc, we currently assume that we are using
18532 # Microsoft Visual C++.
18533 if test "$GCC" != yes; then
18543 if test "$with_gnu_ld" = yes; then
18544 # If archive_cmds runs LD, not CC, wlarc should be empty
18547 # Set some defaults for GNU ld with shared library support. These
18548 # are reset later if shared libraries are not supported. Putting them
18549 # here allows them to be overridden if necessary.
18550 runpath_var=LD_RUN_PATH
18551 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18552 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18553 # ancient GNU ld didn't support --whole-archive et. al.
18554 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18555 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18557 whole_archive_flag_spec_GCJ=
18559 supports_anon_versioning=no
18560 case `$LD -v 2>/dev/null` in
18561 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18562 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18563 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18564 *\ 2.11.*) ;; # other 2.11 versions
18565 *) supports_anon_versioning=yes ;;
18568 # See if GNU ld supports shared libraries.
18570 aix3* | aix4* | aix5*)
18571 # On AIX/PPC, the GNU linker is very broken
18572 if test "$host_cpu" != ia64; then
18576 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18577 *** to be unable to reliably create shared libraries on AIX.
18578 *** Therefore, libtool is disabling shared libraries support. If you
18579 *** really care for shared libraries, you may want to modify your PATH
18580 *** so that a non-GNU linker is found, and then restart.
18587 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)'
18588 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18589 hardcode_minus_L_GCJ=yes
18591 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18592 # that the semantics of dynamic libraries on AmigaOS, at least up
18593 # to version 4, is to share data among multiple programs linked
18594 # with the same dynamic library. Since this doesn't match the
18595 # behavior of shared libraries on other platforms, we can't use
18601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18602 allow_undefined_flag_GCJ=unsupported
18603 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18604 # support --undefined. This deserves some investigation. FIXME
18605 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18611 cygwin* | mingw* | pw32*)
18612 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18613 # as there is no search path for DLLs.
18614 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18615 allow_undefined_flag_GCJ=unsupported
18616 always_export_symbols_GCJ=no
18617 enable_shared_with_static_runtimes_GCJ=yes
18618 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18620 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18621 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18622 # If the export-symbols file already is a .def file (1st line
18623 # is EXPORTS), use it as is; otherwise, prepend...
18624 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18625 cp $export_symbols $output_objdir/$soname.def;
18627 echo EXPORTS > $output_objdir/$soname.def;
18628 cat $export_symbols >> $output_objdir/$soname.def;
18630 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18637 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18639 case $cc_basename,$host_cpu in
18640 pgcc*) # Portland Group C compiler
18641 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'
18642 tmp_addflag=' $pic_flag'
18644 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18645 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'
18646 tmp_addflag=' $pic_flag -Mnomain' ;;
18647 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18648 tmp_addflag=' -i_dynamic' ;;
18649 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18650 tmp_addflag=' -i_dynamic -nofor_main' ;;
18651 ifc* | ifort*) # Intel Fortran compiler
18652 tmp_addflag=' -nofor_main' ;;
18654 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656 if test $supports_anon_versioning = yes; then
18657 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18659 $echo "local: *; };" >> $output_objdir/$libname.ver~
18660 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18669 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18672 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18673 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18678 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18683 *** create shared libraries on Solaris systems. Therefore, libtool
18684 *** is disabling shared libraries support. We urge you to upgrade GNU
18685 *** binutils to release 2.9.1 or newer. Another option is to modify
18686 *** your PATH or compiler configuration so that the native linker is
18687 *** used, and then restart.
18690 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18692 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18699 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18701 hardcode_direct_GCJ=yes
18702 hardcode_shlibpath_var_GCJ=no
18706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18707 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18708 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18715 if test "$ld_shlibs_GCJ" = no; then
18717 hardcode_libdir_flag_spec_GCJ=
18718 export_dynamic_flag_spec_GCJ=
18719 whole_archive_flag_spec_GCJ=
18722 # PORTME fill in a description of your system's linker (not GNU ld)
18725 allow_undefined_flag_GCJ=unsupported
18726 always_export_symbols_GCJ=yes
18727 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'
18728 # Note: this linker hardcodes the directories in LIBPATH if there
18729 # are no directories specified by -L.
18730 hardcode_minus_L_GCJ=yes
18731 if test "$GCC" = yes && test -z "$link_static_flag"; then
18732 # Neither direct hardcoding nor static linking is supported with a
18734 hardcode_direct_GCJ=unsupported
18739 if test "$host_cpu" = ia64; then
18740 # On IA64, the linker does run time linking by default, so we don't
18741 # have to do anything special.
18742 aix_use_runtimelinking=no
18743 exp_sym_flag='-Bexport'
18746 # If we're using GNU nm, then we don't want the "-C" option.
18747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18748 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18749 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'
18751 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'
18753 aix_use_runtimelinking=no
18755 # Test if we are trying to use run time linking or normal
18756 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18757 # need to do runtime linking.
18758 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18759 for ld_flag in $LDFLAGS; do
18760 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18761 aix_use_runtimelinking=yes
18767 exp_sym_flag='-bexport'
18768 no_entry_flag='-bnoentry'
18771 # When large executables or shared objects are built, AIX ld can
18772 # have problems creating the table of contents. If linking a library
18773 # or program results in "error TOC overflow" add -mminimal-toc to
18774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18777 archive_cmds_GCJ=''
18778 hardcode_direct_GCJ=yes
18779 hardcode_libdir_separator_GCJ=':'
18780 link_all_deplibs_GCJ=yes
18782 if test "$GCC" = yes; then
18783 case $host_os in aix4.[012]|aix4.[012].*)
18784 # We only want to do this on AIX 4.2 and lower, the check
18785 # below for broken collect2 doesn't work under 4.3+
18786 collect2name=`${CC} -print-prog-name=collect2`
18787 if test -f "$collect2name" && \
18788 strings "$collect2name" | grep resolve_lib_name >/dev/null
18790 # We have reworked collect2
18791 hardcode_direct_GCJ=yes
18793 # We have old collect2
18794 hardcode_direct_GCJ=unsupported
18795 # It fails to find uninstalled libraries when the uninstalled
18796 # path is not listed in the libpath. Setting hardcode_minus_L
18797 # to unsupported forces relinking
18798 hardcode_minus_L_GCJ=yes
18799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18800 hardcode_libdir_separator_GCJ=
18803 shared_flag='-shared'
18804 if test "$aix_use_runtimelinking" = yes; then
18805 shared_flag="$shared_flag "'${wl}-G'
18809 if test "$host_cpu" = ia64; then
18810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18811 # chokes on -Wl,-G. The following line is correct:
18814 if test "$aix_use_runtimelinking" = yes; then
18815 shared_flag='${wl}-G'
18817 shared_flag='${wl}-bM:SRE'
18822 # It seems that -bexpall does not export symbols beginning with
18823 # underscore (_), so it is better to generate a list of symbols to export.
18824 always_export_symbols_GCJ=yes
18825 if test "$aix_use_runtimelinking" = yes; then
18826 # Warning - without using the other runtime loading flags (-brtl),
18827 # -berok will link without error, but may produce a broken library.
18828 allow_undefined_flag_GCJ='-berok'
18829 # Determine the default libpath from the value encoded in an empty executable.
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18845 rm -f conftest.$ac_objext conftest$ac_exeext
18846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18847 (eval $ac_link) 2>conftest.er1
18849 grep -v '^ *+' conftest.er1 >conftest.err
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } &&
18854 { ac_try='test -z "$ac_c_werror_flag"
18855 || test ! -s conftest.err'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; } &&
18861 { ac_try='test -s conftest$ac_exeext'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18870 # Check for a 64-bit object if we didn't find anything.
18871 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; }
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18878 rm -f conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
18880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18882 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18883 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"
18885 if test "$host_cpu" = ia64; then
18886 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18887 allow_undefined_flag_GCJ="-z nodefs"
18888 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"
18890 # Determine the default libpath from the value encoded in an empty executable.
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18906 rm -f conftest.$ac_objext conftest$ac_exeext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18908 (eval $ac_link) 2>conftest.er1
18910 grep -v '^ *+' conftest.er1 >conftest.err
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -z "$ac_c_werror_flag"
18916 || test ! -s conftest.err'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18931 # Check for a 64-bit object if we didn't find anything.
18932 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; }
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18939 rm -f conftest.err conftest.$ac_objext \
18940 conftest$ac_exeext conftest.$ac_ext
18941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18943 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18944 # Warning - without using the other run time loading flags,
18945 # -berok will link without error, but may produce a broken library.
18946 no_undefined_flag_GCJ=' ${wl}-bernotok'
18947 allow_undefined_flag_GCJ=' ${wl}-berok'
18948 # -bexpall does not export symbols beginning with underscore (_)
18949 always_export_symbols_GCJ=yes
18950 # Exported symbols can be pulled into shared objects from archives
18951 whole_archive_flag_spec_GCJ=' '
18952 archive_cmds_need_lc_GCJ=yes
18953 # This is similar to how AIX traditionally builds it's shared libraries.
18954 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'
18960 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)'
18961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18962 hardcode_minus_L_GCJ=yes
18963 # see comment about different semantics on the GNU ld section
18968 export_dynamic_flag_spec_GCJ=-rdynamic
18971 cygwin* | mingw* | pw32*)
18972 # When not using gcc, we currently assume that we are using
18973 # Microsoft Visual C++.
18974 # hardcode_libdir_flag_spec is actually meaningless, as there is
18975 # no search path for DLLs.
18976 hardcode_libdir_flag_spec_GCJ=' '
18977 allow_undefined_flag_GCJ=unsupported
18978 # Tell ltmain to make .lib files, not .a files.
18980 # Tell ltmain to make .dll files, not .so files.
18982 # FIXME: Setting linknames here is a bad hack.
18983 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18984 # The linker will automatically build a .lib file if we build a DLL.
18985 old_archive_From_new_cmds_GCJ='true'
18986 # FIXME: Should let the user specify the lib program.
18987 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18988 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18989 enable_shared_with_static_runtimes_GCJ=yes
18992 darwin* | rhapsody*)
18994 rhapsody* | darwin1.[012])
18995 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18998 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18999 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19001 case ${MACOSX_DEPLOYMENT_TARGET} in
19003 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19006 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19012 archive_cmds_need_lc_GCJ=no
19013 hardcode_direct_GCJ=no
19014 hardcode_automatic_GCJ=yes
19015 hardcode_shlibpath_var_GCJ=unsupported
19016 whole_archive_flag_spec_GCJ=''
19017 link_all_deplibs_GCJ=yes
19018 if test "$GCC" = yes ; then
19019 output_verbose_link_cmd='echo'
19020 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19021 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19022 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19023 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}'
19024 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}'
19026 case $cc_basename in
19028 output_verbose_link_cmd='echo'
19029 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19030 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19031 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19032 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}'
19033 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}'
19043 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19044 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19045 hardcode_shlibpath_var_GCJ=no
19052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19053 # support. Future versions do this automatically, but an explicit c++rt0.o
19054 # does not break anything, and helps significantly (at the cost of a little
19057 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19058 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19059 hardcode_direct_GCJ=yes
19060 hardcode_shlibpath_var_GCJ=no
19063 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19065 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19066 hardcode_direct_GCJ=yes
19067 hardcode_minus_L_GCJ=yes
19068 hardcode_shlibpath_var_GCJ=no
19071 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19072 freebsd* | kfreebsd*-gnu | dragonfly*)
19073 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19074 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19075 hardcode_direct_GCJ=yes
19076 hardcode_shlibpath_var_GCJ=no
19080 if test "$GCC" = yes; then
19081 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'
19083 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'
19085 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19086 hardcode_libdir_separator_GCJ=:
19087 hardcode_direct_GCJ=yes
19089 # hardcode_minus_L: Not really in the search PATH,
19090 # but as the default location of the library.
19091 hardcode_minus_L_GCJ=yes
19092 export_dynamic_flag_spec_GCJ='${wl}-E'
19096 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19097 case "$host_cpu" in
19099 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19102 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19106 case "$host_cpu" in
19108 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19111 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19115 if test "$with_gnu_ld" = no; then
19116 case "$host_cpu" in
19118 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19119 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19120 hardcode_libdir_separator_GCJ=:
19121 hardcode_direct_GCJ=no
19122 hardcode_shlibpath_var_GCJ=no
19125 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19126 hardcode_direct_GCJ=no
19127 hardcode_shlibpath_var_GCJ=no
19129 # hardcode_minus_L: Not really in the search PATH,
19130 # but as the default location of the library.
19131 hardcode_minus_L_GCJ=yes
19134 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19135 hardcode_libdir_separator_GCJ=:
19136 hardcode_direct_GCJ=yes
19137 export_dynamic_flag_spec_GCJ='${wl}-E'
19139 # hardcode_minus_L: Not really in the search PATH,
19140 # but as the default location of the library.
19141 hardcode_minus_L_GCJ=yes
19147 irix5* | irix6* | nonstopux*)
19148 if test "$GCC" = yes; then
19149 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'
19151 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'
19152 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19154 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19155 hardcode_libdir_separator_GCJ=:
19156 link_all_deplibs_GCJ=yes
19160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19161 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19163 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19165 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19166 hardcode_direct_GCJ=yes
19167 hardcode_shlibpath_var_GCJ=no
19171 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19172 hardcode_direct_GCJ=yes
19173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19174 hardcode_libdir_separator_GCJ=:
19175 hardcode_shlibpath_var_GCJ=no
19179 hardcode_direct_GCJ=yes
19180 hardcode_shlibpath_var_GCJ=no
19181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19182 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19183 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19184 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19185 export_dynamic_flag_spec_GCJ='${wl}-E'
19188 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19189 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19190 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19193 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19194 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19201 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19202 hardcode_minus_L_GCJ=yes
19203 allow_undefined_flag_GCJ=unsupported
19204 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'
19205 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19209 if test "$GCC" = yes; then
19210 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19211 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'
19213 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19214 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'
19216 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19217 hardcode_libdir_separator_GCJ=:
19220 osf4* | osf5*) # as osf3* with the addition of -msym flag
19221 if test "$GCC" = yes; then
19222 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19223 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'
19224 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19226 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19227 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'
19228 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~
19229 $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'
19231 # Both c and cxx compiler support -rpath directly
19232 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19234 hardcode_libdir_separator_GCJ=:
19238 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19239 hardcode_shlibpath_var_GCJ=no
19240 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19241 runpath_var=LD_RUN_PATH
19242 hardcode_runpath_var=yes
19246 no_undefined_flag_GCJ=' -z text'
19247 if test "$GCC" = yes; then
19249 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19250 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19251 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19254 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19255 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19256 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19258 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19259 hardcode_shlibpath_var_GCJ=no
19261 solaris2.[0-5] | solaris2.[0-5].*) ;;
19263 # The compiler driver will combine linker options so we
19264 # cannot just pass the convience library names through
19265 # without $wl, iff we do not link with $LD.
19266 # Luckily, gcc supports the same syntax we need for Sun Studio.
19267 # Supported since Solaris 2.6 (maybe 2.5.1?)
19270 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19272 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' ;;
19275 link_all_deplibs_GCJ=yes
19279 if test "x$host_vendor" = xsequent; then
19280 # Use $CC to link under sequent, because it throws in some extra .o
19281 # files that make .init and .fini sections work.
19282 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19284 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19287 hardcode_direct_GCJ=yes
19288 hardcode_minus_L_GCJ=yes
19289 hardcode_shlibpath_var_GCJ=no
19293 case $host_vendor in
19295 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19296 hardcode_direct_GCJ=yes # is this really true???
19299 ## LD is ld it makes a PLAMLIB
19300 ## CC just makes a GrossModule.
19301 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19302 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19303 hardcode_direct_GCJ=no
19306 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19307 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19310 runpath_var='LD_RUN_PATH'
19311 hardcode_shlibpath_var_GCJ=no
19315 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19316 hardcode_shlibpath_var_GCJ=no
19317 export_dynamic_flag_spec_GCJ='-Bexport'
19321 if test -d /usr/nec; then
19322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19323 hardcode_shlibpath_var_GCJ=no
19324 runpath_var=LD_RUN_PATH
19325 hardcode_runpath_var=yes
19331 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19332 hardcode_direct_GCJ=yes
19333 hardcode_minus_L_GCJ=no
19334 hardcode_shlibpath_var_GCJ=no
19335 hardcode_runpath_var=yes
19336 runpath_var=LD_RUN_PATH
19339 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19340 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19341 if test "$GCC" = yes; then
19342 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19344 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19346 runpath_var='LD_RUN_PATH'
19347 hardcode_shlibpath_var_GCJ=no
19351 no_undefined_flag_GCJ=' -z text'
19352 # $CC -shared without GNU ld will not create a library from C++
19353 # object files and a static libstdc++, better avoid it by now
19354 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19355 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19356 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19357 hardcode_libdir_flag_spec_GCJ=
19358 hardcode_shlibpath_var_GCJ=no
19359 runpath_var='LD_RUN_PATH'
19363 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19365 hardcode_shlibpath_var_GCJ=no
19374 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19375 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19376 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19379 if test "$GCC" = yes; then
19380 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19384 # Do we need to explicitly link libc?
19386 case "x$archive_cmds_need_lc_GCJ" in
19388 # Assume -lc should be added
19389 archive_cmds_need_lc_GCJ=yes
19391 if test "$enable_shared" = yes && test "$GCC" = yes; then
19392 case $archive_cmds_GCJ in
19394 # FIXME: we may have to deal with multi-command sequences.
19397 # Test whether the compiler implicitly links with -lc since on some
19398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19399 # to ld, don't add -lc before -lgcc.
19400 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19401 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19406 (eval $ac_compile) 2>&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } 2>conftest.err; then
19412 libobjs=conftest.$ac_objext
19414 wl=$lt_prog_compiler_wl_GCJ
19420 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19421 allow_undefined_flag_GCJ=
19422 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19423 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }
19428 archive_cmds_need_lc_GCJ=no
19430 archive_cmds_need_lc_GCJ=yes
19432 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19434 cat conftest.err 1>&5
19437 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19438 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19445 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19446 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19447 library_names_spec=
19448 libname_spec='lib$name'
19452 postuninstall_cmds=
19456 shlibpath_overrides_runpath=unknown
19458 dynamic_linker="$host_os ld.so"
19459 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19460 if test "$GCC" = yes; then
19461 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19462 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19463 # if the path contains ";" then we assume it to be the separator
19464 # otherwise default to the standard path separator (i.e. ":") - it is
19465 # assumed that no part of a normal pathname contains ";" but that should
19466 # okay in the real world where ";" in dirpaths is itself problematic.
19467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19472 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19474 need_lib_prefix=unknown
19475 hardcode_into_libs=no
19477 # when you set need_version to no, make sure it does not cause -set_version
19478 # flags to be left without arguments
19479 need_version=unknown
19484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19485 shlibpath_var=LIBPATH
19487 # AIX 3 has no versioning support, so we append a major version to the name.
19488 soname_spec='${libname}${release}${shared_ext}$major'
19495 hardcode_into_libs=yes
19496 if test "$host_cpu" = ia64; then
19497 # AIX 5 supports IA64
19498 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19499 shlibpath_var=LD_LIBRARY_PATH
19501 # With GCC up to 2.95.x, collect2 would create an import file
19502 # for dependence libraries. The import file would start with
19503 # the line `#! .'. This would cause the generated library to
19504 # depend on `.', always an invalid library. This was fixed in
19505 # development snapshots of GCC prior to 3.0.
19507 aix4 | aix4.[01] | aix4.[01].*)
19508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19510 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19513 can_build_shared=no
19517 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19518 # soname into executable. Probably we can add versioning support to
19519 # collect2, so additional links can be useful in future.
19520 if test "$aix_use_runtimelinking" = yes; then
19521 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19522 # instead of lib<name>.a to let people know that these are not
19523 # typical AIX shared libraries.
19524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19526 # We preserve .a as extension for shared libraries through AIX4.2
19527 # and later when we are not doing run time linking.
19528 library_names_spec='${libname}${release}.a $libname.a'
19529 soname_spec='${libname}${release}${shared_ext}$major'
19531 shlibpath_var=LIBPATH
19536 library_names_spec='$libname.ixlibrary $libname.a'
19537 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19538 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'
19542 library_names_spec='${libname}${shared_ext}'
19543 dynamic_linker="$host_os ld.so"
19544 shlibpath_var=LIBRARY_PATH
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551 soname_spec='${libname}${release}${shared_ext}$major'
19552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19553 shlibpath_var=LD_LIBRARY_PATH
19554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19556 # the default ld.so.conf also contains /usr/contrib/lib and
19557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19558 # libtool to hard-code these into programs
19561 cygwin* | mingw* | pw32*)
19562 version_type=windows
19567 case $GCC,$host_os in
19568 yes,cygwin* | yes,mingw* | yes,pw32*)
19569 library_names_spec='$libname.dll.a'
19570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19571 postinstall_cmds='base_file=`basename \${file}`~
19572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19573 dldir=$destdir/`dirname \$dlpath`~
19574 test -d \$dldir || mkdir -p \$dldir~
19575 $install_prog $dir/$dlname \$dldir/$dlname'
19576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19577 dlpath=$dir/\$dldll~
19579 shlibpath_overrides_runpath=yes
19583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19585 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19588 # MinGW DLLs use traditional 'lib' prefix
19589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19591 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19592 # It is most probably a Windows format PATH printed by
19593 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19594 # path with ; separators, and with drive letters. We can handle the
19595 # drive letters (cygwin fileutils understands them), so leave them,
19596 # especially as we might pass files found there to a mingw objdump,
19597 # which wouldn't understand a cygwinified path. Ahh.
19598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19604 # pw32 DLLs use 'pw' prefix rather than 'lib'
19605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19614 dynamic_linker='Win32 ld.exe'
19615 # FIXME: first we should search . and the directory the executable is in
19619 darwin* | rhapsody*)
19620 dynamic_linker="$host_os dyld"
19621 version_type=darwin
19624 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19625 soname_spec='${libname}${release}${major}$shared_ext'
19626 shlibpath_overrides_runpath=yes
19627 shlibpath_var=DYLD_LIBRARY_PATH
19628 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19629 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19630 if test "$GCC" = yes; then
19631 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"`
19633 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19635 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19643 soname_spec='${libname}${release}${shared_ext}$major'
19644 shlibpath_var=LD_LIBRARY_PATH
19655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19656 soname_spec='${libname}${release}${shared_ext}$major'
19657 shlibpath_var=LD_LIBRARY_PATH
19658 shlibpath_overrides_runpath=no
19659 hardcode_into_libs=yes
19660 dynamic_linker='GNU ld.so'
19663 freebsd* | dragonfly*)
19664 # DragonFly does not have aout. When/if they implement a new
19665 # versioning mechanism, adjust this.
19666 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19667 version_type=freebsd-$objformat
19668 case $version_type in
19670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19679 shlibpath_var=LD_LIBRARY_PATH
19682 shlibpath_overrides_runpath=yes
19684 freebsd3.[01]* | freebsdelf3.[01]*)
19685 shlibpath_overrides_runpath=yes
19686 hardcode_into_libs=yes
19689 shlibpath_overrides_runpath=no
19690 hardcode_into_libs=yes
19699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19700 soname_spec='${libname}${release}${shared_ext}$major'
19701 shlibpath_var=LD_LIBRARY_PATH
19702 hardcode_into_libs=yes
19705 hpux9* | hpux10* | hpux11*)
19706 # Give a soname corresponding to the major version so that dld.sl refuses to
19707 # link against other versions.
19711 case "$host_cpu" in
19714 hardcode_into_libs=yes
19715 dynamic_linker="$host_os dld.so"
19716 shlibpath_var=LD_LIBRARY_PATH
19717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19719 soname_spec='${libname}${release}${shared_ext}$major'
19720 if test "X$HPUX_IA64_MODE" = X32; then
19721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19729 hardcode_into_libs=yes
19730 dynamic_linker="$host_os dld.sl"
19731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734 soname_spec='${libname}${release}${shared_ext}$major'
19735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19740 dynamic_linker="$host_os dld.sl"
19741 shlibpath_var=SHLIB_PATH
19742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19744 soname_spec='${libname}${release}${shared_ext}$major'
19747 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19748 postinstall_cmds='chmod 555 $lib'
19751 irix5* | irix6* | nonstopux*)
19753 nonstopux*) version_type=nonstopux ;;
19755 if test "$lt_cv_prog_gnu_ld" = yes; then
19763 soname_spec='${libname}${release}${shared_ext}$major'
19764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19766 irix5* | nonstopux*)
19767 libsuff= shlibsuff=
19770 case $LD in # libtool.m4 will add one of these switches to LD
19771 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19772 libsuff= shlibsuff= libmagic=32-bit;;
19773 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19774 libsuff=32 shlibsuff=N32 libmagic=N32;;
19775 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19776 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19777 *) libsuff= shlibsuff= libmagic=never-match;;
19781 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19782 shlibpath_overrides_runpath=no
19783 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19784 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19785 hardcode_into_libs=yes
19788 # No shared lib support for Linux oldld, aout, or coff.
19789 linux*oldld* | linux*aout* | linux*coff*)
19793 # This must be Linux ELF.
19798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19799 soname_spec='${libname}${release}${shared_ext}$major'
19800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19801 shlibpath_var=LD_LIBRARY_PATH
19802 shlibpath_overrides_runpath=no
19803 # This implies no fast_install, which is unacceptable.
19804 # Some rework will be needed to allow for fast_install
19805 # before this can be enabled.
19806 hardcode_into_libs=yes
19808 # Append ld.so.conf contents to the search path
19809 if test -f /etc/ld.so.conf; then
19810 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' ' '`
19811 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19814 # We used to test for /lib/ld.so.1 and disable shared libraries on
19815 # powerpc, because MkLinux only supported shared libraries with the
19816 # GNU dynamic linker. Since this was broken with cross compilers,
19817 # most powerpc-linux boxes support dynamic linking these days and
19818 # people can always --disable-shared, the test was removed, and we
19819 # assume the GNU/Linux dynamic linker is in use.
19820 dynamic_linker='GNU/Linux ld.so'
19827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19828 soname_spec='${libname}${release}${shared_ext}$major'
19829 shlibpath_var=LD_LIBRARY_PATH
19830 shlibpath_overrides_runpath=no
19831 hardcode_into_libs=yes
19832 dynamic_linker='GNU ld.so'
19839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19842 dynamic_linker='NetBSD (a.out) ld.so'
19844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19845 soname_spec='${libname}${release}${shared_ext}$major'
19846 dynamic_linker='NetBSD ld.elf_so'
19848 shlibpath_var=LD_LIBRARY_PATH
19849 shlibpath_overrides_runpath=yes
19850 hardcode_into_libs=yes
19855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19856 shlibpath_var=LD_LIBRARY_PATH
19857 shlibpath_overrides_runpath=yes
19864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19865 soname_spec='${libname}${release}${shared_ext}$major'
19866 shlibpath_var=LD_LIBRARY_PATH
19867 shlibpath_overrides_runpath=yes
19873 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19875 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19876 *) need_version=no ;;
19878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19880 shlibpath_var=LD_LIBRARY_PATH
19881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19883 openbsd2.[89] | openbsd2.[89].*)
19884 shlibpath_overrides_runpath=no
19887 shlibpath_overrides_runpath=yes
19891 shlibpath_overrides_runpath=yes
19896 libname_spec='$name'
19899 library_names_spec='$libname${shared_ext} $libname.a'
19900 dynamic_linker='OS/2 ld.exe'
19901 shlibpath_var=LIBPATH
19904 osf3* | osf4* | osf5*)
19908 soname_spec='${libname}${release}${shared_ext}$major'
19909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19910 shlibpath_var=LD_LIBRARY_PATH
19911 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19912 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19917 soname_spec='${libname}${release}${shared_ext}$major'
19918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19919 shlibpath_var=LD_LIBRARY_PATH
19926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19927 soname_spec='${libname}${release}${shared_ext}$major'
19928 shlibpath_var=LD_LIBRARY_PATH
19929 shlibpath_overrides_runpath=yes
19930 hardcode_into_libs=yes
19931 # ldd complains unless libraries are executable
19932 postinstall_cmds='chmod +x $lib'
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19939 shlibpath_var=LD_LIBRARY_PATH
19940 shlibpath_overrides_runpath=yes
19941 if test "$with_gnu_ld" = yes; then
19947 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19950 soname_spec='${libname}${release}${shared_ext}$major'
19951 shlibpath_var=LD_LIBRARY_PATH
19952 case $host_vendor in
19954 shlibpath_overrides_runpath=no
19956 export_dynamic_flag_spec='${wl}-Blargedynsym'
19957 runpath_var=LD_RUN_PATH
19965 shlibpath_overrides_runpath=no
19966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19972 if test -d /usr/nec ;then
19974 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19975 soname_spec='$libname${shared_ext}.$major'
19976 shlibpath_var=LD_LIBRARY_PATH
19982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19983 soname_spec='${libname}${release}${shared_ext}$major'
19984 shlibpath_var=LD_LIBRARY_PATH
19991 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19992 echo "${ECHO_T}$dynamic_linker" >&6
19993 test "$dynamic_linker" = no && can_build_shared=no
19995 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19996 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19997 hardcode_action_GCJ=
19998 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19999 test -n "$runpath_var_GCJ" || \
20000 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20002 # We can hardcode non-existant directories.
20003 if test "$hardcode_direct_GCJ" != no &&
20004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20005 # have to relink, otherwise we might link with an installed library
20006 # when we should be linking with a yet-to-be-installed one
20007 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20008 test "$hardcode_minus_L_GCJ" != no; then
20009 # Linking always hardcodes the temporary library directory.
20010 hardcode_action_GCJ=relink
20012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20013 hardcode_action_GCJ=immediate
20016 # We cannot hardcode anything, or else we can only hardcode existing
20018 hardcode_action_GCJ=unsupported
20020 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20021 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20023 if test "$hardcode_action_GCJ" = relink; then
20024 # Fast installation is not supported
20025 enable_fast_install=no
20026 elif test "$shlibpath_overrides_runpath" = yes ||
20027 test "$enable_shared" = no; then
20028 # Fast installation is not necessary
20029 enable_fast_install=needless
20034 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20035 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20036 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20037 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20038 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20039 echo "$as_me:$LINENO: result: yes" >&5
20040 echo "${ECHO_T}yes" >&6
20042 # FIXME - insert some real tests, host_os isn't really good enough
20045 if test -n "$STRIP" ; then
20046 striplib="$STRIP -x"
20047 echo "$as_me:$LINENO: result: yes" >&5
20048 echo "${ECHO_T}yes" >&6
20050 echo "$as_me:$LINENO: result: no" >&5
20051 echo "${ECHO_T}no" >&6
20055 echo "$as_me:$LINENO: result: no" >&5
20056 echo "${ECHO_T}no" >&6
20061 if test "x$enable_dlopen" != xyes; then
20062 enable_dlopen=unknown
20063 enable_dlopen_self=unknown
20064 enable_dlopen_self_static=unknown
20071 lt_cv_dlopen="load_add_on"
20073 lt_cv_dlopen_self=yes
20077 lt_cv_dlopen="LoadLibrary"
20082 lt_cv_dlopen="dlopen"
20087 # if libdl is installed we need to link against it
20088 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20089 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 ac_check_lib_save_LIBS=$LIBS
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20102 /* Override any gcc2 internal prototype to avoid an error. */
20106 /* We use char because int might match the return type of a gcc2
20107 builtin and then its argument prototype would still apply. */
20117 rm -f conftest.$ac_objext conftest$ac_exeext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20119 (eval $ac_link) 2>conftest.er1
20121 grep -v '^ *+' conftest.er1 >conftest.err
20123 cat conftest.err >&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } &&
20126 { ac_try='test -z "$ac_c_werror_flag"
20127 || test ! -s conftest.err'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest$ac_exeext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 ac_cv_lib_dl_dlopen=yes
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_cv_lib_dl_dlopen=no
20146 rm -f conftest.err conftest.$ac_objext \
20147 conftest$ac_exeext conftest.$ac_ext
20148 LIBS=$ac_check_lib_save_LIBS
20150 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20151 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20152 if test $ac_cv_lib_dl_dlopen = yes; then
20153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20156 lt_cv_dlopen="dyld"
20158 lt_cv_dlopen_self=yes
20165 echo "$as_me:$LINENO: checking for shl_load" >&5
20166 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20167 if test "${ac_cv_func_shl_load+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 cat >conftest.$ac_ext <<_ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20176 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20178 #define shl_load innocuous_shl_load
20180 /* System header to define __stub macros and hopefully few prototypes,
20181 which can conflict with char shl_load (); below.
20182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20183 <limits.h> exists even on freestanding compilers. */
20186 # include <limits.h>
20188 # include <assert.h>
20193 /* Override any gcc2 internal prototype to avoid an error. */
20198 /* We use char because int might match the return type of a gcc2
20199 builtin and then its argument prototype would still apply. */
20201 /* The GNU C library defines this for functions which it implements
20202 to always fail with ENOSYS. Some functions are actually named
20203 something starting with __ and the normal name is an alias. */
20204 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20207 char (*f) () = shl_load;
20216 return f != shl_load;
20221 rm -f conftest.$ac_objext conftest$ac_exeext
20222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20223 (eval $ac_link) 2>conftest.er1
20225 grep -v '^ *+' conftest.er1 >conftest.err
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try='test -z "$ac_c_werror_flag"
20231 || test ! -s conftest.err'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest$ac_exeext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_func_shl_load=yes
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ac_cv_func_shl_load=no
20250 rm -f conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20253 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20254 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20255 if test $ac_cv_func_shl_load = yes; then
20256 lt_cv_dlopen="shl_load"
20258 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20259 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20260 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 ac_check_lib_save_LIBS=$LIBS
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20272 /* Override any gcc2 internal prototype to avoid an error. */
20276 /* We use char because int might match the return type of a gcc2
20277 builtin and then its argument prototype would still apply. */
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289 (eval $ac_link) 2>conftest.er1
20291 grep -v '^ *+' conftest.er1 >conftest.err
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest$ac_exeext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 ac_cv_lib_dld_shl_load=yes
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20314 ac_cv_lib_dld_shl_load=no
20316 rm -f conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
20318 LIBS=$ac_check_lib_save_LIBS
20320 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20321 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20322 if test $ac_cv_lib_dld_shl_load = yes; then
20323 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20325 echo "$as_me:$LINENO: checking for dlopen" >&5
20326 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20327 if test "${ac_cv_func_dlopen+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20336 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20338 #define dlopen innocuous_dlopen
20340 /* System header to define __stub macros and hopefully few prototypes,
20341 which can conflict with char dlopen (); below.
20342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20343 <limits.h> exists even on freestanding compilers. */
20346 # include <limits.h>
20348 # include <assert.h>
20353 /* Override any gcc2 internal prototype to avoid an error. */
20358 /* We use char because int might match the return type of a gcc2
20359 builtin and then its argument prototype would still apply. */
20361 /* The GNU C library defines this for functions which it implements
20362 to always fail with ENOSYS. Some functions are actually named
20363 something starting with __ and the normal name is an alias. */
20364 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20367 char (*f) () = dlopen;
20376 return f != dlopen;
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20383 (eval $ac_link) 2>conftest.er1
20385 grep -v '^ *+' conftest.er1 >conftest.err
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } &&
20390 { ac_try='test -z "$ac_c_werror_flag"
20391 || test ! -s conftest.err'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; } &&
20397 { ac_try='test -s conftest$ac_exeext'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }; then
20403 ac_cv_func_dlopen=yes
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20408 ac_cv_func_dlopen=no
20410 rm -f conftest.err conftest.$ac_objext \
20411 conftest$ac_exeext conftest.$ac_ext
20413 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20414 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20415 if test $ac_cv_func_dlopen = yes; then
20416 lt_cv_dlopen="dlopen"
20418 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20419 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20420 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 ac_check_lib_save_LIBS=$LIBS
20425 cat >conftest.$ac_ext <<_ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20432 /* Override any gcc2 internal prototype to avoid an error. */
20436 /* We use char because int might match the return type of a gcc2
20437 builtin and then its argument prototype would still apply. */
20447 rm -f conftest.$ac_objext conftest$ac_exeext
20448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20449 (eval $ac_link) 2>conftest.er1
20451 grep -v '^ *+' conftest.er1 >conftest.err
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } &&
20456 { ac_try='test -z "$ac_c_werror_flag"
20457 || test ! -s conftest.err'
20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 (eval $ac_try) 2>&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; } &&
20463 { ac_try='test -s conftest$ac_exeext'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
20469 ac_cv_lib_dl_dlopen=yes
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20474 ac_cv_lib_dl_dlopen=no
20476 rm -f conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20478 LIBS=$ac_check_lib_save_LIBS
20480 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20481 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20482 if test $ac_cv_lib_dl_dlopen = yes; then
20483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20485 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20486 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20487 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20488 echo $ECHO_N "(cached) $ECHO_C" >&6
20490 ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lsvld $LIBS"
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 /* Override any gcc2 internal prototype to avoid an error. */
20503 /* We use char because int might match the return type of a gcc2
20504 builtin and then its argument prototype would still apply. */
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20516 (eval $ac_link) 2>conftest.er1
20518 grep -v '^ *+' conftest.er1 >conftest.err
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
20523 { ac_try='test -z "$ac_c_werror_flag"
20524 || test ! -s conftest.err'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest$ac_exeext'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
20536 ac_cv_lib_svld_dlopen=yes
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20541 ac_cv_lib_svld_dlopen=no
20543 rm -f conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
20545 LIBS=$ac_check_lib_save_LIBS
20547 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20548 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20549 if test $ac_cv_lib_svld_dlopen = yes; then
20550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20552 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20553 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20554 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 ac_check_lib_save_LIBS=$LIBS
20559 cat >conftest.$ac_ext <<_ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20566 /* Override any gcc2 internal prototype to avoid an error. */
20570 /* We use char because int might match the return type of a gcc2
20571 builtin and then its argument prototype would still apply. */
20581 rm -f conftest.$ac_objext conftest$ac_exeext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20583 (eval $ac_link) 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -z "$ac_c_werror_flag"
20591 || test ! -s conftest.err'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; } &&
20597 { ac_try='test -s conftest$ac_exeext'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_cv_lib_dld_dld_link=yes
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 ac_cv_lib_dld_dld_link=no
20610 rm -f conftest.err conftest.$ac_objext \
20611 conftest$ac_exeext conftest.$ac_ext
20612 LIBS=$ac_check_lib_save_LIBS
20614 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20615 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20616 if test $ac_cv_lib_dld_dld_link = yes; then
20617 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20638 if test "x$lt_cv_dlopen" != xno; then
20644 case $lt_cv_dlopen in
20646 save_CPPFLAGS="$CPPFLAGS"
20647 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20649 save_LDFLAGS="$LDFLAGS"
20650 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20653 LIBS="$lt_cv_dlopen_libs $LIBS"
20655 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20656 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20657 if test "${lt_cv_dlopen_self+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 if test "$cross_compiling" = yes; then :
20661 lt_cv_dlopen_self=cross
20663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20664 lt_status=$lt_dlunknown
20665 cat > conftest.$ac_ext <<EOF
20666 #line 20666 "configure"
20667 #include "confdefs.h"
20676 # define LT_DLGLOBAL RTLD_GLOBAL
20679 # define LT_DLGLOBAL DL_GLOBAL
20681 # define LT_DLGLOBAL 0
20685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20686 find out it does not work in some platform. */
20687 #ifndef LT_DLLAZY_OR_NOW
20689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20692 # define LT_DLLAZY_OR_NOW DL_LAZY
20695 # define LT_DLLAZY_OR_NOW RTLD_NOW
20698 # define LT_DLLAZY_OR_NOW DL_NOW
20700 # define LT_DLLAZY_OR_NOW 0
20708 extern "C" void exit (int);
20711 void fnord() { int i=42;}
20714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20715 int status = $lt_dlunknown;
20719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20721 /* dlclose (self); */
20727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20728 (eval $ac_link) 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20732 (./conftest; exit; ) 2>/dev/null
20734 case x$lt_status in
20735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20737 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20740 # compilation failed
20741 lt_cv_dlopen_self=no
20748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20749 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20751 if test "x$lt_cv_dlopen_self" = xyes; then
20752 LDFLAGS="$LDFLAGS $link_static_flag"
20753 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20754 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20755 if test "${lt_cv_dlopen_self_static+set}" = set; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20758 if test "$cross_compiling" = yes; then :
20759 lt_cv_dlopen_self_static=cross
20761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20762 lt_status=$lt_dlunknown
20763 cat > conftest.$ac_ext <<EOF
20764 #line 20764 "configure"
20765 #include "confdefs.h"
20774 # define LT_DLGLOBAL RTLD_GLOBAL
20777 # define LT_DLGLOBAL DL_GLOBAL
20779 # define LT_DLGLOBAL 0
20783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20784 find out it does not work in some platform. */
20785 #ifndef LT_DLLAZY_OR_NOW
20787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20790 # define LT_DLLAZY_OR_NOW DL_LAZY
20793 # define LT_DLLAZY_OR_NOW RTLD_NOW
20796 # define LT_DLLAZY_OR_NOW DL_NOW
20798 # define LT_DLLAZY_OR_NOW 0
20806 extern "C" void exit (int);
20809 void fnord() { int i=42;}
20812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20813 int status = $lt_dlunknown;
20817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20819 /* dlclose (self); */
20825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20826 (eval $ac_link) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20830 (./conftest; exit; ) 2>/dev/null
20832 case x$lt_status in
20833 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20834 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20835 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20838 # compilation failed
20839 lt_cv_dlopen_self_static=no
20846 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20847 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20850 CPPFLAGS="$save_CPPFLAGS"
20851 LDFLAGS="$save_LDFLAGS"
20856 case $lt_cv_dlopen_self in
20857 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20858 *) enable_dlopen_self=unknown ;;
20861 case $lt_cv_dlopen_self_static in
20862 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20863 *) enable_dlopen_self_static=unknown ;;
20868 # The else clause should only fire when bootstrapping the
20869 # libtool distribution, otherwise you forgot to ship ltmain.sh
20870 # with your package, and you will get complaints that there are
20871 # no rules to generate ltmain.sh.
20872 if test -f "$ltmain"; then
20873 # See if we are running on zsh, and set the options which allow our commands through
20874 # without removal of \ escapes.
20875 if test -n "${ZSH_VERSION+set}" ; then
20876 setopt NO_GLOB_SUBST
20878 # Now quote all the things that may contain metacharacters while being
20879 # careful not to overquote the AC_SUBSTed values. We take copies of the
20880 # variables and quote the copies for generation of the libtool script.
20881 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20883 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20884 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20885 deplibs_check_method reload_flag reload_cmds need_locks \
20886 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20887 lt_cv_sys_global_symbol_to_c_name_address \
20888 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20889 old_postinstall_cmds old_postuninstall_cmds \
20893 lt_prog_compiler_wl_GCJ \
20894 lt_prog_compiler_pic_GCJ \
20895 lt_prog_compiler_static_GCJ \
20896 lt_prog_compiler_no_builtin_flag_GCJ \
20897 export_dynamic_flag_spec_GCJ \
20898 thread_safe_flag_spec_GCJ \
20899 whole_archive_flag_spec_GCJ \
20900 enable_shared_with_static_runtimes_GCJ \
20901 old_archive_cmds_GCJ \
20902 old_archive_from_new_cmds_GCJ \
20903 predep_objects_GCJ \
20904 postdep_objects_GCJ \
20907 compiler_lib_search_path_GCJ \
20909 archive_expsym_cmds_GCJ \
20910 postinstall_cmds_GCJ \
20911 postuninstall_cmds_GCJ \
20912 old_archive_from_expsyms_cmds_GCJ \
20913 allow_undefined_flag_GCJ \
20914 no_undefined_flag_GCJ \
20915 export_symbols_cmds_GCJ \
20916 hardcode_libdir_flag_spec_GCJ \
20917 hardcode_libdir_flag_spec_ld_GCJ \
20918 hardcode_libdir_separator_GCJ \
20919 hardcode_automatic_GCJ \
20921 module_expsym_cmds_GCJ \
20922 lt_cv_prog_compiler_c_o_GCJ \
20923 exclude_expsyms_GCJ \
20924 include_expsyms_GCJ; do
20927 old_archive_cmds_GCJ | \
20928 old_archive_from_new_cmds_GCJ | \
20929 archive_cmds_GCJ | \
20930 archive_expsym_cmds_GCJ | \
20931 module_cmds_GCJ | \
20932 module_expsym_cmds_GCJ | \
20933 old_archive_from_expsyms_cmds_GCJ | \
20934 export_symbols_cmds_GCJ | \
20935 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20936 postinstall_cmds | postuninstall_cmds | \
20937 old_postinstall_cmds | old_postuninstall_cmds | \
20938 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20939 # Double-quote double-evaled strings.
20940 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20943 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20949 *'\$0 --fallback-echo"')
20950 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20956 cat <<__EOF__ >> "$cfgfile"
20957 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20961 # Shell to use when invoking shell scripts.
20964 # Whether or not to build shared libraries.
20965 build_libtool_libs=$enable_shared
20967 # Whether or not to build static libraries.
20968 build_old_libs=$enable_static
20970 # Whether or not to add -lc for building shared libraries.
20971 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20973 # Whether or not to disallow shared libs when runtime libs are static
20974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20976 # Whether or not to optimize for fast installation.
20977 fast_install=$enable_fast_install
20980 host_alias=$host_alias
20984 # The build system.
20985 build_alias=$build_alias
20989 # An echo program that does not interpret backslashes.
20994 AR_FLAGS=$lt_AR_FLAGS
20999 # A language-specific compiler.
21000 CC=$lt_compiler_GCJ
21002 # Is the compiler the GNU C compiler?
21008 # The linker used to build libraries.
21011 # Whether we need hard or soft links.
21014 # A BSD-compatible nm program.
21017 # A symbol stripping program
21020 # Used to examine libraries when file_magic_cmd begins "file"
21021 MAGIC_CMD=$MAGIC_CMD
21023 # Used on cygwin: DLL creation program.
21026 # Used on cygwin: object dumper.
21029 # Used on cygwin: assembler.
21032 # The name of the directory that contains temporary libtool files.
21035 # How to create reloadable object files.
21036 reload_flag=$lt_reload_flag
21037 reload_cmds=$lt_reload_cmds
21039 # How to pass a linker flag through the compiler.
21040 wl=$lt_lt_prog_compiler_wl_GCJ
21042 # Object file suffix (normally "o").
21043 objext="$ac_objext"
21045 # Old archive suffix (normally "a").
21048 # Shared library suffix (normally ".so").
21049 shrext_cmds='$shrext_cmds'
21051 # Executable file suffix (normally "").
21054 # Additional compiler flags for building library objects.
21055 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21058 # What is the maximum length of a command?
21059 max_cmd_len=$lt_cv_sys_max_cmd_len
21061 # Does compiler simultaneously support -c and -o options?
21062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21064 # Must we lock files when doing compilation?
21065 need_locks=$lt_need_locks
21067 # Do we need the lib prefix for modules?
21068 need_lib_prefix=$need_lib_prefix
21070 # Do we need a version for libraries?
21071 need_version=$need_version
21073 # Whether dlopen is supported.
21074 dlopen_support=$enable_dlopen
21076 # Whether dlopen of programs is supported.
21077 dlopen_self=$enable_dlopen_self
21079 # Whether dlopen of statically linked programs is supported.
21080 dlopen_self_static=$enable_dlopen_self_static
21082 # Compiler flag to prevent dynamic linking.
21083 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21085 # Compiler flag to turn off builtin functions.
21086 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21088 # Compiler flag to allow reflexive dlopens.
21089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21091 # Compiler flag to generate shared objects directly from archives.
21092 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21094 # Compiler flag to generate thread-safe objects.
21095 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21097 # Library versioning type.
21098 version_type=$version_type
21100 # Format of library name prefix.
21101 libname_spec=$lt_libname_spec
21103 # List of archive names. First name is the real one, the rest are links.
21104 # The last name is the one that the linker finds with -lNAME.
21105 library_names_spec=$lt_library_names_spec
21107 # The coded name of the library, if different from the real name.
21108 soname_spec=$lt_soname_spec
21110 # Commands used to build and install an old-style archive.
21112 old_archive_cmds=$lt_old_archive_cmds_GCJ
21113 old_postinstall_cmds=$lt_old_postinstall_cmds
21114 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21116 # Create an old-style archive from a shared archive.
21117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21119 # Create a temporary old-style archive to link instead of a shared archive.
21120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21122 # Commands used to build and install a shared archive.
21123 archive_cmds=$lt_archive_cmds_GCJ
21124 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21125 postinstall_cmds=$lt_postinstall_cmds
21126 postuninstall_cmds=$lt_postuninstall_cmds
21128 # Commands used to build a loadable module (assumed same as above if empty)
21129 module_cmds=$lt_module_cmds_GCJ
21130 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21132 # Commands to strip libraries.
21133 old_striplib=$lt_old_striplib
21134 striplib=$lt_striplib
21136 # Dependencies to place before the objects being linked to create a
21138 predep_objects=$lt_predep_objects_GCJ
21140 # Dependencies to place after the objects being linked to create a
21142 postdep_objects=$lt_postdep_objects_GCJ
21144 # Dependencies to place before the objects being linked to create a
21146 predeps=$lt_predeps_GCJ
21148 # Dependencies to place after the objects being linked to create a
21150 postdeps=$lt_postdeps_GCJ
21152 # The library search path used internally by the compiler when linking
21153 # a shared library.
21154 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21156 # Method to check whether dependent libraries are shared objects.
21157 deplibs_check_method=$lt_deplibs_check_method
21159 # Command to use when deplibs_check_method == file_magic.
21160 file_magic_cmd=$lt_file_magic_cmd
21162 # Flag that allows shared libraries with undefined symbols to be built.
21163 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21165 # Flag that forces no undefined symbols.
21166 no_undefined_flag=$lt_no_undefined_flag_GCJ
21168 # Commands used to finish a libtool library installation in a directory.
21169 finish_cmds=$lt_finish_cmds
21171 # Same as above, but a single script fragment to be evaled but not shown.
21172 finish_eval=$lt_finish_eval
21174 # Take the output of nm and produce a listing of raw symbols and C names.
21175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21177 # Transform the output of nm in a proper C declaration
21178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21180 # Transform the output of nm in a C name address pair
21181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21183 # This is the shared library runtime path variable.
21184 runpath_var=$runpath_var
21186 # This is the shared library path variable.
21187 shlibpath_var=$shlibpath_var
21189 # Is shlibpath searched before the hard-coded library search path?
21190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21192 # How to hardcode a shared library path into an executable.
21193 hardcode_action=$hardcode_action_GCJ
21195 # Whether we should hardcode library paths into libraries.
21196 hardcode_into_libs=$hardcode_into_libs
21198 # Flag to hardcode \$libdir into a binary during linking.
21199 # This must work even if \$libdir does not exist.
21200 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21202 # If ld is used when linking, flag to hardcode \$libdir into
21203 # a binary during linking. This must work even if \$libdir does
21205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21207 # Whether we need a single -rpath flag with a separated argument.
21208 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21210 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21211 # resulting binary.
21212 hardcode_direct=$hardcode_direct_GCJ
21214 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21215 # resulting binary.
21216 hardcode_minus_L=$hardcode_minus_L_GCJ
21218 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21219 # the resulting binary.
21220 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21222 # Set to yes if building a shared library automatically hardcodes DIR into the library
21223 # and all subsequent libraries and executables linked against it.
21224 hardcode_automatic=$hardcode_automatic_GCJ
21226 # Variables whose values should be saved in libtool wrapper scripts and
21227 # restored at relink time.
21228 variables_saved_for_relink="$variables_saved_for_relink"
21230 # Whether libtool must link a program against all its dependency libraries.
21231 link_all_deplibs=$link_all_deplibs_GCJ
21233 # Compile-time system search path for libraries
21234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21236 # Run-time system search path for libraries
21237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21239 # Fix the shell variable \$srcfile for the compiler.
21240 fix_srcfile_path="$fix_srcfile_path_GCJ"
21242 # Set to yes if exported symbols are required.
21243 always_export_symbols=$always_export_symbols_GCJ
21245 # The commands to list exported symbols.
21246 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21248 # The commands to extract the exported symbol list from a shared archive.
21249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21251 # Symbols that should not be listed in the preloaded symbols.
21252 exclude_expsyms=$lt_exclude_expsyms_GCJ
21254 # Symbols that must always be exported.
21255 include_expsyms=$lt_include_expsyms_GCJ
21257 # ### END LIBTOOL TAG CONFIG: $tagname
21263 # If there is no Makefile yet, we rely on a make rule to execute
21264 # `config.status --recheck' to rerun these tests and create the
21265 # libtool script then.
21266 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21267 if test -f "$ltmain_in"; then
21268 test -f Makefile && make "$ltmain"
21274 ac_cpp='$CPP $CPPFLAGS'
21275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21290 # Source file extension for RC test sources.
21293 # Object file extension for compiled RC test sources.
21297 # Code to be used in simple compile tests
21298 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21300 # Code to be used in simple link tests
21301 lt_simple_link_test_code="$lt_simple_compile_test_code"
21303 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21305 # If no C compiler was specified, use CC.
21308 # Allow CC to be a program name with arguments.
21312 # save warnings/boilerplate of simple test code
21313 ac_outfile=conftest.$ac_objext
21314 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21315 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21316 _lt_compiler_boilerplate=`cat conftest.err`
21319 ac_outfile=conftest.$ac_objext
21320 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21321 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21322 _lt_linker_boilerplate=`cat conftest.err`
21326 # Allow CC to be a program name with arguments.
21331 for cc_temp in $compiler""; do
21333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21341 lt_cv_prog_compiler_c_o_RC=yes
21343 # The else clause should only fire when bootstrapping the
21344 # libtool distribution, otherwise you forgot to ship ltmain.sh
21345 # with your package, and you will get complaints that there are
21346 # no rules to generate ltmain.sh.
21347 if test -f "$ltmain"; then
21348 # See if we are running on zsh, and set the options which allow our commands through
21349 # without removal of \ escapes.
21350 if test -n "${ZSH_VERSION+set}" ; then
21351 setopt NO_GLOB_SUBST
21353 # Now quote all the things that may contain metacharacters while being
21354 # careful not to overquote the AC_SUBSTed values. We take copies of the
21355 # variables and quote the copies for generation of the libtool script.
21356 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21358 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21359 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21360 deplibs_check_method reload_flag reload_cmds need_locks \
21361 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21362 lt_cv_sys_global_symbol_to_c_name_address \
21363 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21364 old_postinstall_cmds old_postuninstall_cmds \
21368 lt_prog_compiler_wl_RC \
21369 lt_prog_compiler_pic_RC \
21370 lt_prog_compiler_static_RC \
21371 lt_prog_compiler_no_builtin_flag_RC \
21372 export_dynamic_flag_spec_RC \
21373 thread_safe_flag_spec_RC \
21374 whole_archive_flag_spec_RC \
21375 enable_shared_with_static_runtimes_RC \
21376 old_archive_cmds_RC \
21377 old_archive_from_new_cmds_RC \
21378 predep_objects_RC \
21379 postdep_objects_RC \
21382 compiler_lib_search_path_RC \
21384 archive_expsym_cmds_RC \
21385 postinstall_cmds_RC \
21386 postuninstall_cmds_RC \
21387 old_archive_from_expsyms_cmds_RC \
21388 allow_undefined_flag_RC \
21389 no_undefined_flag_RC \
21390 export_symbols_cmds_RC \
21391 hardcode_libdir_flag_spec_RC \
21392 hardcode_libdir_flag_spec_ld_RC \
21393 hardcode_libdir_separator_RC \
21394 hardcode_automatic_RC \
21396 module_expsym_cmds_RC \
21397 lt_cv_prog_compiler_c_o_RC \
21398 exclude_expsyms_RC \
21399 include_expsyms_RC; do
21402 old_archive_cmds_RC | \
21403 old_archive_from_new_cmds_RC | \
21404 archive_cmds_RC | \
21405 archive_expsym_cmds_RC | \
21407 module_expsym_cmds_RC | \
21408 old_archive_from_expsyms_cmds_RC | \
21409 export_symbols_cmds_RC | \
21410 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21411 postinstall_cmds | postuninstall_cmds | \
21412 old_postinstall_cmds | old_postuninstall_cmds | \
21413 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21414 # Double-quote double-evaled strings.
21415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21424 *'\$0 --fallback-echo"')
21425 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21431 cat <<__EOF__ >> "$cfgfile"
21432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21436 # Shell to use when invoking shell scripts.
21439 # Whether or not to build shared libraries.
21440 build_libtool_libs=$enable_shared
21442 # Whether or not to build static libraries.
21443 build_old_libs=$enable_static
21445 # Whether or not to add -lc for building shared libraries.
21446 build_libtool_need_lc=$archive_cmds_need_lc_RC
21448 # Whether or not to disallow shared libs when runtime libs are static
21449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21451 # Whether or not to optimize for fast installation.
21452 fast_install=$enable_fast_install
21455 host_alias=$host_alias
21459 # The build system.
21460 build_alias=$build_alias
21464 # An echo program that does not interpret backslashes.
21469 AR_FLAGS=$lt_AR_FLAGS
21474 # A language-specific compiler.
21477 # Is the compiler the GNU C compiler?
21483 # The linker used to build libraries.
21486 # Whether we need hard or soft links.
21489 # A BSD-compatible nm program.
21492 # A symbol stripping program
21495 # Used to examine libraries when file_magic_cmd begins "file"
21496 MAGIC_CMD=$MAGIC_CMD
21498 # Used on cygwin: DLL creation program.
21501 # Used on cygwin: object dumper.
21504 # Used on cygwin: assembler.
21507 # The name of the directory that contains temporary libtool files.
21510 # How to create reloadable object files.
21511 reload_flag=$lt_reload_flag
21512 reload_cmds=$lt_reload_cmds
21514 # How to pass a linker flag through the compiler.
21515 wl=$lt_lt_prog_compiler_wl_RC
21517 # Object file suffix (normally "o").
21518 objext="$ac_objext"
21520 # Old archive suffix (normally "a").
21523 # Shared library suffix (normally ".so").
21524 shrext_cmds='$shrext_cmds'
21526 # Executable file suffix (normally "").
21529 # Additional compiler flags for building library objects.
21530 pic_flag=$lt_lt_prog_compiler_pic_RC
21533 # What is the maximum length of a command?
21534 max_cmd_len=$lt_cv_sys_max_cmd_len
21536 # Does compiler simultaneously support -c and -o options?
21537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21539 # Must we lock files when doing compilation?
21540 need_locks=$lt_need_locks
21542 # Do we need the lib prefix for modules?
21543 need_lib_prefix=$need_lib_prefix
21545 # Do we need a version for libraries?
21546 need_version=$need_version
21548 # Whether dlopen is supported.
21549 dlopen_support=$enable_dlopen
21551 # Whether dlopen of programs is supported.
21552 dlopen_self=$enable_dlopen_self
21554 # Whether dlopen of statically linked programs is supported.
21555 dlopen_self_static=$enable_dlopen_self_static
21557 # Compiler flag to prevent dynamic linking.
21558 link_static_flag=$lt_lt_prog_compiler_static_RC
21560 # Compiler flag to turn off builtin functions.
21561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21563 # Compiler flag to allow reflexive dlopens.
21564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21566 # Compiler flag to generate shared objects directly from archives.
21567 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21569 # Compiler flag to generate thread-safe objects.
21570 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21572 # Library versioning type.
21573 version_type=$version_type
21575 # Format of library name prefix.
21576 libname_spec=$lt_libname_spec
21578 # List of archive names. First name is the real one, the rest are links.
21579 # The last name is the one that the linker finds with -lNAME.
21580 library_names_spec=$lt_library_names_spec
21582 # The coded name of the library, if different from the real name.
21583 soname_spec=$lt_soname_spec
21585 # Commands used to build and install an old-style archive.
21587 old_archive_cmds=$lt_old_archive_cmds_RC
21588 old_postinstall_cmds=$lt_old_postinstall_cmds
21589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21591 # Create an old-style archive from a shared archive.
21592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21594 # Create a temporary old-style archive to link instead of a shared archive.
21595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21597 # Commands used to build and install a shared archive.
21598 archive_cmds=$lt_archive_cmds_RC
21599 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21600 postinstall_cmds=$lt_postinstall_cmds
21601 postuninstall_cmds=$lt_postuninstall_cmds
21603 # Commands used to build a loadable module (assumed same as above if empty)
21604 module_cmds=$lt_module_cmds_RC
21605 module_expsym_cmds=$lt_module_expsym_cmds_RC
21607 # Commands to strip libraries.
21608 old_striplib=$lt_old_striplib
21609 striplib=$lt_striplib
21611 # Dependencies to place before the objects being linked to create a
21613 predep_objects=$lt_predep_objects_RC
21615 # Dependencies to place after the objects being linked to create a
21617 postdep_objects=$lt_postdep_objects_RC
21619 # Dependencies to place before the objects being linked to create a
21621 predeps=$lt_predeps_RC
21623 # Dependencies to place after the objects being linked to create a
21625 postdeps=$lt_postdeps_RC
21627 # The library search path used internally by the compiler when linking
21628 # a shared library.
21629 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21631 # Method to check whether dependent libraries are shared objects.
21632 deplibs_check_method=$lt_deplibs_check_method
21634 # Command to use when deplibs_check_method == file_magic.
21635 file_magic_cmd=$lt_file_magic_cmd
21637 # Flag that allows shared libraries with undefined symbols to be built.
21638 allow_undefined_flag=$lt_allow_undefined_flag_RC
21640 # Flag that forces no undefined symbols.
21641 no_undefined_flag=$lt_no_undefined_flag_RC
21643 # Commands used to finish a libtool library installation in a directory.
21644 finish_cmds=$lt_finish_cmds
21646 # Same as above, but a single script fragment to be evaled but not shown.
21647 finish_eval=$lt_finish_eval
21649 # Take the output of nm and produce a listing of raw symbols and C names.
21650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21652 # Transform the output of nm in a proper C declaration
21653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21655 # Transform the output of nm in a C name address pair
21656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21658 # This is the shared library runtime path variable.
21659 runpath_var=$runpath_var
21661 # This is the shared library path variable.
21662 shlibpath_var=$shlibpath_var
21664 # Is shlibpath searched before the hard-coded library search path?
21665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21667 # How to hardcode a shared library path into an executable.
21668 hardcode_action=$hardcode_action_RC
21670 # Whether we should hardcode library paths into libraries.
21671 hardcode_into_libs=$hardcode_into_libs
21673 # Flag to hardcode \$libdir into a binary during linking.
21674 # This must work even if \$libdir does not exist.
21675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21677 # If ld is used when linking, flag to hardcode \$libdir into
21678 # a binary during linking. This must work even if \$libdir does
21680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21682 # Whether we need a single -rpath flag with a separated argument.
21683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21686 # resulting binary.
21687 hardcode_direct=$hardcode_direct_RC
21689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21690 # resulting binary.
21691 hardcode_minus_L=$hardcode_minus_L_RC
21693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21694 # the resulting binary.
21695 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21697 # Set to yes if building a shared library automatically hardcodes DIR into the library
21698 # and all subsequent libraries and executables linked against it.
21699 hardcode_automatic=$hardcode_automatic_RC
21701 # Variables whose values should be saved in libtool wrapper scripts and
21702 # restored at relink time.
21703 variables_saved_for_relink="$variables_saved_for_relink"
21705 # Whether libtool must link a program against all its dependency libraries.
21706 link_all_deplibs=$link_all_deplibs_RC
21708 # Compile-time system search path for libraries
21709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21711 # Run-time system search path for libraries
21712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21714 # Fix the shell variable \$srcfile for the compiler.
21715 fix_srcfile_path="$fix_srcfile_path_RC"
21717 # Set to yes if exported symbols are required.
21718 always_export_symbols=$always_export_symbols_RC
21720 # The commands to list exported symbols.
21721 export_symbols_cmds=$lt_export_symbols_cmds_RC
21723 # The commands to extract the exported symbol list from a shared archive.
21724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21726 # Symbols that should not be listed in the preloaded symbols.
21727 exclude_expsyms=$lt_exclude_expsyms_RC
21729 # Symbols that must always be exported.
21730 include_expsyms=$lt_include_expsyms_RC
21732 # ### END LIBTOOL TAG CONFIG: $tagname
21738 # If there is no Makefile yet, we rely on a make rule to execute
21739 # `config.status --recheck' to rerun these tests and create the
21740 # libtool script then.
21741 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21742 if test -f "$ltmain_in"; then
21743 test -f Makefile && make "$ltmain"
21749 ac_cpp='$CPP $CPPFLAGS'
21750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21759 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21760 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21761 { (exit 1); exit 1; }; }
21765 # Append the new tag name to the list of available tags.
21766 if test -n "$tagname" ; then
21767 available_tags="$available_tags $tagname"
21773 # Now substitute the updated list of available tags.
21774 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21775 mv "${ofile}T" "$ofile"
21779 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21780 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21781 { (exit 1); exit 1; }; }
21787 # This can be used to rebuild libtool when needed
21788 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21790 # Always use our own libtool.
21791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21793 # Prevent multiple expansion
21816 if test $ol_enable_perl != no ; then
21817 # Extract the first word of "perl", so it can be a program name with args.
21818 set dummy perl; ac_word=$2
21819 echo "$as_me:$LINENO: checking for $ac_word" >&5
21820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21821 if test "${ac_cv_path_PERLBIN+set}" = set; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21830 for as_dir in $PATH
21833 test -z "$as_dir" && as_dir=.
21834 for ac_exec_ext in '' $ac_executable_extensions; do
21835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21836 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21843 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21847 PERLBIN=$ac_cv_path_PERLBIN
21849 if test -n "$PERLBIN"; then
21850 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21851 echo "${ECHO_T}$PERLBIN" >&6
21853 echo "$as_me:$LINENO: result: no" >&5
21854 echo "${ECHO_T}no" >&6
21858 if test "no$PERLBIN" = "no" ; then
21859 if test $ol_enable_perl = yes ; then
21860 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21861 echo "$as_me: error: could not locate perl" >&2;}
21862 { (exit 1); exit 1; }; }
21866 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21867 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21869 if test x"$ol_enable_perl" = "xyes" ; then
21870 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21872 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21879 ac_cpp='$CPP $CPPFLAGS'
21880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21883 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21884 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21885 # On Suns, sometimes $CPP names a directory.
21886 if test -n "$CPP" && test -d "$CPP"; then
21889 if test -z "$CPP"; then
21890 if test "${ac_cv_prog_CPP+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 # Double quotes because CPP needs to be expanded
21894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21896 ac_preproc_ok=false
21897 for ac_c_preproc_warn_flag in '' yes
21899 # Use a header file that comes with gcc, so configuring glibc
21900 # with a fresh cross-compiler works.
21901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21902 # <limits.h> exists even on freestanding compilers.
21903 # On the NeXT, cc -E runs the code through the compiler's parser,
21904 # not just through cpp. "Syntax error" is here to catch this case.
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21912 # include <limits.h>
21914 # include <assert.h>
21918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21921 grep -v '^ *+' conftest.er1 >conftest.err
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } >/dev/null; then
21926 if test -s conftest.err; then
21927 ac_cpp_err=$ac_c_preproc_warn_flag
21928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21935 if test -z "$ac_cpp_err"; then
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21941 # Broken: fails on valid input.
21944 rm -f conftest.err conftest.$ac_ext
21946 # OK, works on sane cases. Now check whether non-existent headers
21947 # can be detected and how.
21948 cat >conftest.$ac_ext <<_ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h. */
21954 #include <ac_nonexistent.h>
21956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21959 grep -v '^ *+' conftest.er1 >conftest.err
21961 cat conftest.err >&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } >/dev/null; then
21964 if test -s conftest.err; then
21965 ac_cpp_err=$ac_c_preproc_warn_flag
21966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21973 if test -z "$ac_cpp_err"; then
21974 # Broken: success on invalid input.
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 # Passes both tests.
21984 rm -f conftest.err conftest.$ac_ext
21987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21988 rm -f conftest.err conftest.$ac_ext
21989 if $ac_preproc_ok; then
21994 ac_cv_prog_CPP=$CPP
21997 CPP=$ac_cv_prog_CPP
21999 ac_cv_prog_CPP=$CPP
22001 echo "$as_me:$LINENO: result: $CPP" >&5
22002 echo "${ECHO_T}$CPP" >&6
22003 ac_preproc_ok=false
22004 for ac_c_preproc_warn_flag in '' yes
22006 # Use a header file that comes with gcc, so configuring glibc
22007 # with a fresh cross-compiler works.
22008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22009 # <limits.h> exists even on freestanding compilers.
22010 # On the NeXT, cc -E runs the code through the compiler's parser,
22011 # not just through cpp. "Syntax error" is here to catch this case.
22012 cat >conftest.$ac_ext <<_ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22019 # include <limits.h>
22021 # include <assert.h>
22025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22028 grep -v '^ *+' conftest.er1 >conftest.err
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } >/dev/null; then
22033 if test -s conftest.err; then
22034 ac_cpp_err=$ac_c_preproc_warn_flag
22035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22042 if test -z "$ac_cpp_err"; then
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 # Broken: fails on valid input.
22051 rm -f conftest.err conftest.$ac_ext
22053 # OK, works on sane cases. Now check whether non-existent headers
22054 # can be detected and how.
22055 cat >conftest.$ac_ext <<_ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22061 #include <ac_nonexistent.h>
22063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22066 grep -v '^ *+' conftest.er1 >conftest.err
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } >/dev/null; then
22071 if test -s conftest.err; then
22072 ac_cpp_err=$ac_c_preproc_warn_flag
22073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22080 if test -z "$ac_cpp_err"; then
22081 # Broken: success on invalid input.
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 # Passes both tests.
22091 rm -f conftest.err conftest.$ac_ext
22094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22095 rm -f conftest.err conftest.$ac_ext
22096 if $ac_preproc_ok; then
22099 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22100 See \`config.log' for more details." >&5
22101 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22102 See \`config.log' for more details." >&2;}
22103 { (exit 1); exit 1; }; }
22107 ac_cpp='$CPP $CPPFLAGS'
22108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22116 cat >>confdefs.h <<_ACEOF
22117 #define EXEEXT "${EXEEXT}"
22121 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22122 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22123 if test "${ac_cv_lib_be_be_app+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 ac_check_lib_save_LIBS=$LIBS
22127 LIBS="-lbe -lroot -lnet $LIBS"
22128 cat >conftest.$ac_ext <<_ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22135 /* Override any gcc2 internal prototype to avoid an error. */
22139 /* We use char because int might match the return type of a gcc2
22140 builtin and then its argument prototype would still apply. */
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152 (eval $ac_link) 2>conftest.er1
22154 grep -v '^ *+' conftest.er1 >conftest.err
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } &&
22159 { ac_try='test -z "$ac_c_werror_flag"
22160 || test ! -s conftest.err'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } &&
22166 { ac_try='test -s conftest$ac_exeext'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172 ac_cv_lib_be_be_app=yes
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22177 ac_cv_lib_be_be_app=no
22179 rm -f conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS
22183 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22184 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22185 if test $ac_cv_lib_be_be_app = yes; then
22186 LIBS="$LIBS -lbe -lroot -lnet"
22193 ac_cpp='$CPP $CPPFLAGS'
22194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22197 if test -n "$ac_tool_prefix"; then
22198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22200 echo "$as_me:$LINENO: checking for $ac_word" >&5
22201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22202 if test "${ac_cv_prog_CC+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22205 if test -n "$CC"; then
22206 ac_cv_prog_CC="$CC" # Let the user override the test.
22208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22209 for as_dir in $PATH
22212 test -z "$as_dir" && as_dir=.
22213 for ac_exec_ext in '' $ac_executable_extensions; do
22214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22225 if test -n "$CC"; then
22226 echo "$as_me:$LINENO: result: $CC" >&5
22227 echo "${ECHO_T}$CC" >&6
22229 echo "$as_me:$LINENO: result: no" >&5
22230 echo "${ECHO_T}no" >&6
22234 if test -z "$ac_cv_prog_CC"; then
22236 # Extract the first word of "gcc", so it can be a program name with args.
22237 set dummy gcc; ac_word=$2
22238 echo "$as_me:$LINENO: checking for $ac_word" >&5
22239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 if test -n "$ac_ct_CC"; then
22244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22247 for as_dir in $PATH
22250 test -z "$as_dir" && as_dir=.
22251 for ac_exec_ext in '' $ac_executable_extensions; do
22252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22253 ac_cv_prog_ac_ct_CC="gcc"
22254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22263 if test -n "$ac_ct_CC"; then
22264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22265 echo "${ECHO_T}$ac_ct_CC" >&6
22267 echo "$as_me:$LINENO: result: no" >&5
22268 echo "${ECHO_T}no" >&6
22273 CC="$ac_cv_prog_CC"
22276 if test -z "$CC"; then
22277 if test -n "$ac_tool_prefix"; then
22278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22279 set dummy ${ac_tool_prefix}cc; ac_word=$2
22280 echo "$as_me:$LINENO: checking for $ac_word" >&5
22281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22282 if test "${ac_cv_prog_CC+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 if test -n "$CC"; then
22286 ac_cv_prog_CC="$CC" # Let the user override the test.
22288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22289 for as_dir in $PATH
22292 test -z "$as_dir" && as_dir=.
22293 for ac_exec_ext in '' $ac_executable_extensions; do
22294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22295 ac_cv_prog_CC="${ac_tool_prefix}cc"
22296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22305 if test -n "$CC"; then
22306 echo "$as_me:$LINENO: result: $CC" >&5
22307 echo "${ECHO_T}$CC" >&6
22309 echo "$as_me:$LINENO: result: no" >&5
22310 echo "${ECHO_T}no" >&6
22314 if test -z "$ac_cv_prog_CC"; then
22316 # Extract the first word of "cc", so it can be a program name with args.
22317 set dummy cc; ac_word=$2
22318 echo "$as_me:$LINENO: checking for $ac_word" >&5
22319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 if test -n "$ac_ct_CC"; then
22324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22327 for as_dir in $PATH
22330 test -z "$as_dir" && as_dir=.
22331 for ac_exec_ext in '' $ac_executable_extensions; do
22332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22333 ac_cv_prog_ac_ct_CC="cc"
22334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22343 if test -n "$ac_ct_CC"; then
22344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22345 echo "${ECHO_T}$ac_ct_CC" >&6
22347 echo "$as_me:$LINENO: result: no" >&5
22348 echo "${ECHO_T}no" >&6
22353 CC="$ac_cv_prog_CC"
22357 if test -z "$CC"; then
22358 # Extract the first word of "cc", so it can be a program name with args.
22359 set dummy cc; ac_word=$2
22360 echo "$as_me:$LINENO: checking for $ac_word" >&5
22361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22362 if test "${ac_cv_prog_CC+set}" = set; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22365 if test -n "$CC"; then
22366 ac_cv_prog_CC="$CC" # Let the user override the test.
22368 ac_prog_rejected=no
22369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22370 for as_dir in $PATH
22373 test -z "$as_dir" && as_dir=.
22374 for ac_exec_ext in '' $ac_executable_extensions; do
22375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22377 ac_prog_rejected=yes
22381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22387 if test $ac_prog_rejected = yes; then
22388 # We found a bogon in the path, so make sure we never use it.
22389 set dummy $ac_cv_prog_CC
22391 if test $# != 0; then
22392 # We chose a different compiler from the bogus one.
22393 # However, it has the same basename, so the bogon will be chosen
22394 # first if we set CC to just the basename; use the full file name.
22396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22402 if test -n "$CC"; then
22403 echo "$as_me:$LINENO: result: $CC" >&5
22404 echo "${ECHO_T}$CC" >&6
22406 echo "$as_me:$LINENO: result: no" >&5
22407 echo "${ECHO_T}no" >&6
22411 if test -z "$CC"; then
22412 if test -n "$ac_tool_prefix"; then
22415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22417 echo "$as_me:$LINENO: checking for $ac_word" >&5
22418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22419 if test "${ac_cv_prog_CC+set}" = set; then
22420 echo $ECHO_N "(cached) $ECHO_C" >&6
22422 if test -n "$CC"; then
22423 ac_cv_prog_CC="$CC" # Let the user override the test.
22425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22426 for as_dir in $PATH
22429 test -z "$as_dir" && as_dir=.
22430 for ac_exec_ext in '' $ac_executable_extensions; do
22431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22442 if test -n "$CC"; then
22443 echo "$as_me:$LINENO: result: $CC" >&5
22444 echo "${ECHO_T}$CC" >&6
22446 echo "$as_me:$LINENO: result: no" >&5
22447 echo "${ECHO_T}no" >&6
22450 test -n "$CC" && break
22453 if test -z "$CC"; then
22457 # Extract the first word of "$ac_prog", so it can be a program name with args.
22458 set dummy $ac_prog; ac_word=$2
22459 echo "$as_me:$LINENO: checking for $ac_word" >&5
22460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 if test -n "$ac_ct_CC"; then
22465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22468 for as_dir in $PATH
22471 test -z "$as_dir" && as_dir=.
22472 for ac_exec_ext in '' $ac_executable_extensions; do
22473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22474 ac_cv_prog_ac_ct_CC="$ac_prog"
22475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22484 if test -n "$ac_ct_CC"; then
22485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22486 echo "${ECHO_T}$ac_ct_CC" >&6
22488 echo "$as_me:$LINENO: result: no" >&5
22489 echo "${ECHO_T}no" >&6
22492 test -n "$ac_ct_CC" && break
22501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22502 See \`config.log' for more details." >&5
22503 echo "$as_me: error: no acceptable C compiler found in \$PATH
22504 See \`config.log' for more details." >&2;}
22505 { (exit 1); exit 1; }; }
22507 # Provide some information about the compiler.
22508 echo "$as_me:$LINENO:" \
22509 "checking for C compiler version" >&5
22510 ac_compiler=`set X $ac_compile; echo $2`
22511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22512 (eval $ac_compiler --version </dev/null >&5) 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }
22516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22517 (eval $ac_compiler -v </dev/null >&5) 2>&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); }
22521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22522 (eval $ac_compiler -V </dev/null >&5) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }
22527 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22528 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 cat >conftest.$ac_ext <<_ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22550 rm -f conftest.$ac_objext
22551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22552 (eval $ac_compile) 2>conftest.er1
22554 grep -v '^ *+' conftest.er1 >conftest.err
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } &&
22559 { ac_try='test -z "$ac_c_werror_flag"
22560 || test ! -s conftest.err'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; } &&
22566 { ac_try='test -s conftest.$ac_objext'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; }; then
22572 ac_compiler_gnu=yes
22574 echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22583 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22584 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22585 GCC=`test $ac_compiler_gnu = yes && echo yes`
22586 ac_test_CFLAGS=${CFLAGS+set}
22587 ac_save_CFLAGS=$CFLAGS
22589 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22591 if test "${ac_cv_prog_cc_g+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22609 rm -f conftest.$ac_objext
22610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22611 (eval $ac_compile) 2>conftest.er1
22613 grep -v '^ *+' conftest.er1 >conftest.err
22615 cat conftest.err >&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } &&
22618 { ac_try='test -z "$ac_c_werror_flag"
22619 || test ! -s conftest.err'
22620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22621 (eval $ac_try) 2>&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); }; } &&
22625 { ac_try='test -s conftest.$ac_objext'
22626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627 (eval $ac_try) 2>&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }; }; then
22631 ac_cv_prog_cc_g=yes
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22640 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22641 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22642 if test "$ac_test_CFLAGS" = set; then
22643 CFLAGS=$ac_save_CFLAGS
22644 elif test $ac_cv_prog_cc_g = yes; then
22645 if test "$GCC" = yes; then
22651 if test "$GCC" = yes; then
22657 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22658 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22659 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 ac_cv_prog_cc_stdc=no
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 #include <stdarg.h>
22672 #include <sys/types.h>
22673 #include <sys/stat.h>
22674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22675 struct buf { int x; };
22676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22677 static char *e (p, i)
22683 static char *f (char * (*g) (char **, int), char **p, ...)
22688 s = g (p, va_arg (v,int));
22693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22694 function prototypes and stuff, but not '\xHH' hex character constants.
22695 These don't provoke an error unfortunately, instead are silently treated
22696 as 'x'. The following induces an error, until -std1 is added to get
22697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22698 array size at least. It's necessary to write '\x00'==0 to get something
22699 that's true only with -std1. */
22700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22702 int test (int i, double x);
22703 struct s1 {int (*f) (int a);};
22704 struct s2 {int (*f) (double a);};
22705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22716 # Don't try gcc -ansi; that turns off useful extensions and
22717 # breaks some systems' header files.
22718 # AIX -qlanglvl=ansi
22719 # Ultrix and OSF/1 -std1
22720 # HP-UX 10.20 and later -Ae
22721 # HP-UX older versions -Aa -D_HPUX_SOURCE
22722 # SVR4 -Xc -D__EXTENSIONS__
22723 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22725 CC="$ac_save_CC $ac_arg"
22726 rm -f conftest.$ac_objext
22727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22728 (eval $ac_compile) 2>conftest.er1
22730 grep -v '^ *+' conftest.er1 >conftest.err
22732 cat conftest.err >&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } &&
22735 { ac_try='test -z "$ac_c_werror_flag"
22736 || test ! -s conftest.err'
22737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738 (eval $ac_try) 2>&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); }; } &&
22742 { ac_try='test -s conftest.$ac_objext'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; }; then
22748 ac_cv_prog_cc_stdc=$ac_arg
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22755 rm -f conftest.err conftest.$ac_objext
22757 rm -f conftest.$ac_ext conftest.$ac_objext
22762 case "x$ac_cv_prog_cc_stdc" in
22764 echo "$as_me:$LINENO: result: none needed" >&5
22765 echo "${ECHO_T}none needed" >&6 ;;
22767 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22768 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22769 CC="$CC $ac_cv_prog_cc_stdc" ;;
22772 # Some people use a C++ compiler to compile C. Since we use `exit',
22773 # in C++ we need to declare it. In case someone uses the same compiler
22774 # for both compiling C and C++ we need to have the C++ compiler decide
22775 # the declaration of exit, since it's the most demanding environment.
22776 cat >conftest.$ac_ext <<_ACEOF
22777 #ifndef __cplusplus
22781 rm -f conftest.$ac_objext
22782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22783 (eval $ac_compile) 2>conftest.er1
22785 grep -v '^ *+' conftest.er1 >conftest.err
22787 cat conftest.err >&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } &&
22790 { ac_try='test -z "$ac_c_werror_flag"
22791 || test ! -s conftest.err'
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; } &&
22797 { ac_try='test -s conftest.$ac_objext'
22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799 (eval $ac_try) 2>&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; }; then
22803 for ac_declaration in \
22805 'extern "C" void std::exit (int) throw (); using std::exit;' \
22806 'extern "C" void std::exit (int); using std::exit;' \
22807 'extern "C" void exit (int) throw ();' \
22808 'extern "C" void exit (int);' \
22811 cat >conftest.$ac_ext <<_ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22818 #include <stdlib.h>
22827 rm -f conftest.$ac_objext
22828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22829 (eval $ac_compile) 2>conftest.er1
22831 grep -v '^ *+' conftest.er1 >conftest.err
22833 cat conftest.err >&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } &&
22836 { ac_try='test -z "$ac_c_werror_flag"
22837 || test ! -s conftest.err'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; } &&
22843 { ac_try='test -s conftest.$ac_objext'
22844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845 (eval $ac_try) 2>&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; }; then
22851 echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22872 rm -f conftest.$ac_objext
22873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22874 (eval $ac_compile) 2>conftest.er1
22876 grep -v '^ *+' conftest.er1 >conftest.err
22878 cat conftest.err >&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } &&
22881 { ac_try='test -z "$ac_c_werror_flag"
22882 || test ! -s conftest.err'
22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884 (eval $ac_try) 2>&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; } &&
22888 { ac_try='test -s conftest.$ac_objext'
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; }; then
22896 echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22903 if test -n "$ac_declaration"; then
22904 echo '#ifdef __cplusplus' >>confdefs.h
22905 echo $ac_declaration >>confdefs.h
22906 echo '#endif' >>confdefs.h
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22916 ac_cpp='$CPP $CPPFLAGS'
22917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22921 depcc="$CC" am_compiler_list=
22923 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22924 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22925 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22929 # We make a subdir and do the tests there. Otherwise we can end up
22930 # making bogus files that we don't know about and never remove. For
22931 # instance it was reported that on HP-UX the gcc test will end up
22932 # making a dummy file named `D' -- because `-MD' means `put the output
22935 # Copy depcomp to subdir because otherwise we won't find it if we're
22936 # using a relative directory.
22937 cp "$am_depcomp" conftest.dir
22939 # We will build objects and dependencies in a subdirectory because
22940 # it helps to detect inapplicable dependency modes. For instance
22941 # both Tru64's cc and ICC support -MD to output dependencies as a
22942 # side effect of compilation, but ICC will put the dependencies in
22943 # the current directory while Tru64 will put them in the object
22947 am_cv_CC_dependencies_compiler_type=none
22948 if test "$am_compiler_list" = ""; then
22949 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22951 for depmode in $am_compiler_list; do
22952 # Setup a source with many dependencies, because some compilers
22953 # like to wrap large dependency lists on column 80 (with \), and
22954 # we should not choose a depcomp mode which is confused by this.
22956 # We need to recreate these files for each test, as the compiler may
22957 # overwrite some of them when testing with obscure command lines.
22958 # This happens at least with the AIX C compiler.
22960 for i in 1 2 3 4 5 6; do
22961 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22962 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22963 # Solaris 8's {/usr,}/bin/sh.
22964 touch sub/conftst$i.h
22966 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22970 # after this tag, mechanisms are not by side-effect, so they'll
22971 # only be used when explicitly requested
22972 if test "x$enable_dependency_tracking" = xyes; then
22980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22981 # mode. It turns out that the SunPro C++ compiler does not properly
22982 # handle `-M -o', and we need to detect this.
22983 if depmode=$depmode \
22984 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22986 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22987 >/dev/null 2>conftest.err &&
22988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22989 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22991 # icc doesn't choke on unknown options, it will just issue warnings
22992 # or remarks (even with -Werror). So we grep stderr for any message
22993 # that says an option was ignored or not supported.
22994 # When given -MP, icc 7.0 and 7.1 complain thusly:
22995 # icc: Command line warning: ignoring option '-M'; no argument required
22996 # The diagnosis changed in icc 8.0:
22997 # icc: Command line remark: option '-MP' not supported
22998 if (grep 'ignoring option' conftest.err ||
22999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23000 am_cv_CC_dependencies_compiler_type=$depmode
23007 rm -rf conftest.dir
23009 am_cv_CC_dependencies_compiler_type=none
23013 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
23014 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
23015 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
23020 test "x$enable_dependency_tracking" != xno \
23021 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
23022 am__fastdepCC_TRUE=
23023 am__fastdepCC_FALSE='#'
23025 am__fastdepCC_TRUE='#'
23026 am__fastdepCC_FALSE=
23030 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
23031 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
23032 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
23033 { (exit 1); exit 1; }; }
23036 # test for make depend flag
23039 if test -z "${MKDEP}"; then
23040 OL_MKDEP="${CC-cc}"
23041 if test -z "${MKDEP_FLAGS}"; then
23042 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
23043 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
23044 if test "${ol_cv_mkdep+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23049 for flag in "-M" "-xM"; do
23050 cat > conftest.c <<EOF
23053 if { ac_try='$OL_MKDEP $flag conftest.c'
23054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055 (eval $ac_try) 2>&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); }; } \
23059 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
23061 if test ! -f conftest."${ac_object}" ; then
23063 OL_MKDEP_FLAGS="$flag"
23071 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
23072 echo "${ECHO_T}$ol_cv_mkdep" >&6
23075 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23079 OL_MKDEP="${MKDEP}"
23080 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23085 if test "${ol_cv_mkdep}" = no ; then
23086 # this will soon become an error
23087 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23088 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23091 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23092 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23093 if test "${ac_cv_lib_s_afopen+set}" = set; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 ac_check_lib_save_LIBS=$LIBS
23098 cat >conftest.$ac_ext <<_ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h. */
23105 /* Override any gcc2 internal prototype to avoid an error. */
23109 /* We use char because int might match the return type of a gcc2
23110 builtin and then its argument prototype would still apply. */
23120 rm -f conftest.$ac_objext conftest$ac_exeext
23121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23122 (eval $ac_link) 2>conftest.er1
23124 grep -v '^ *+' conftest.er1 >conftest.err
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } &&
23129 { ac_try='test -z "$ac_c_werror_flag"
23130 || test ! -s conftest.err'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest$ac_exeext'
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 ac_cv_lib_s_afopen=yes
23144 echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ac_cv_lib_s_afopen=no
23149 rm -f conftest.err conftest.$ac_objext \
23150 conftest$ac_exeext conftest.$ac_ext
23151 LIBS=$ac_check_lib_save_LIBS
23153 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23154 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23155 if test $ac_cv_lib_s_afopen = yes; then
23159 cat >>confdefs.h <<\_ACEOF
23160 #define HAVE_AIX_SECURITY 1
23169 ac_cv_func_getopt=no
23171 cat >>confdefs.h <<\_ACEOF
23172 #define BOTH_STRINGS_H 1
23179 WITH_MODULES_ENABLED=no
23180 if test $ol_enable_modules != no ; then
23182 for ac_header in ltdl.h
23184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23186 echo "$as_me:$LINENO: checking for $ac_header" >&5
23187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23194 # Is the header compilable?
23195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23197 cat >conftest.$ac_ext <<_ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 $ac_includes_default
23204 #include <$ac_header>
23206 rm -f conftest.$ac_objext
23207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23208 (eval $ac_compile) 2>conftest.er1
23210 grep -v '^ *+' conftest.er1 >conftest.err
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } &&
23215 { ac_try='test -z "$ac_c_werror_flag"
23216 || test ! -s conftest.err'
23217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218 (eval $ac_try) 2>&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); }; } &&
23222 { ac_try='test -s conftest.$ac_objext'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; }; then
23228 ac_header_compiler=yes
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_header_compiler=no
23235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23237 echo "${ECHO_T}$ac_header_compiler" >&6
23239 # Is the header present?
23240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 #include <$ac_header>
23250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23253 grep -v '^ *+' conftest.er1 >conftest.err
23255 cat conftest.err >&5
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); } >/dev/null; then
23258 if test -s conftest.err; then
23259 ac_cpp_err=$ac_c_preproc_warn_flag
23260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23267 if test -z "$ac_cpp_err"; then
23268 ac_header_preproc=yes
23270 echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23273 ac_header_preproc=no
23275 rm -f conftest.err conftest.$ac_ext
23276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23277 echo "${ECHO_T}$ac_header_preproc" >&6
23279 # So? What about this header?
23280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23286 ac_header_preproc=yes
23289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23303 ## ------------------------------------------ ##
23304 ## Report this to the AC_PACKAGE_NAME lists. ##
23305 ## ------------------------------------------ ##
23308 sed "s/^/$as_me: WARNING: /" >&2
23311 echo "$as_me:$LINENO: checking for $ac_header" >&5
23312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23314 echo $ECHO_N "(cached) $ECHO_C" >&6
23316 eval "$as_ac_Header=\$ac_header_preproc"
23318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23323 cat >>confdefs.h <<_ACEOF
23324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23332 if test $ac_cv_header_ltdl_h = no ; then
23333 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23334 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23335 { (exit 1); exit 1; }; }
23338 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23339 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23340 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23343 ac_check_lib_save_LIBS=$LIBS
23344 LIBS="-lltdl $LIBS"
23345 cat >conftest.$ac_ext <<_ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h. */
23352 /* Override any gcc2 internal prototype to avoid an error. */
23356 /* We use char because int might match the return type of a gcc2
23357 builtin and then its argument prototype would still apply. */
23367 rm -f conftest.$ac_objext conftest$ac_exeext
23368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23369 (eval $ac_link) 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } &&
23376 { ac_try='test -z "$ac_c_werror_flag"
23377 || test ! -s conftest.err'
23378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23379 (eval $ac_try) 2>&5
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); }; } &&
23383 { ac_try='test -s conftest$ac_exeext'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; }; then
23389 ac_cv_lib_ltdl_lt_dlinit=yes
23391 echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 ac_cv_lib_ltdl_lt_dlinit=no
23396 rm -f conftest.err conftest.$ac_objext \
23397 conftest$ac_exeext conftest.$ac_ext
23398 LIBS=$ac_check_lib_save_LIBS
23400 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23401 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23402 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23404 MODULES_LIBS=-lltdl
23406 cat >>confdefs.h <<\_ACEOF
23407 #define HAVE_LIBLTDL 1
23414 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23415 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23416 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23417 { (exit 1); exit 1; }; }
23419 ol_link_modules=yes
23420 WITH_MODULES_ENABLED=yes
23423 for i in $Backends; do
23424 eval "ol_tmp=\$ol_enable_$i"
23425 if test $ol_tmp = mod ; then
23426 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23427 echo "$as_me: WARNING: building static $i backend" >&2;}
23428 eval "ol_enable_$i=yes"
23431 for i in $Overlays; do
23432 eval "ol_tmp=\$ol_enable_$i"
23433 if test $ol_tmp = mod ; then
23434 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23435 echo "$as_me: WARNING: building static $i overlay" >&2;}
23436 eval "ol_enable_$i=yes"
23442 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23443 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23444 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 cat >conftest.$ac_ext <<_ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h. */
23456 #include <__ASCII__/generate_error.h>
23460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23463 grep -v '^ *+' conftest.er1 >conftest.err
23465 cat conftest.err >&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } >/dev/null; then
23468 if test -s conftest.err; then
23469 ac_cpp_err=$ac_c_preproc_warn_flag
23470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23477 if test -z "$ac_cpp_err"; then
23478 ol_cv_cpp_ebcdic=yes
23480 echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23483 ol_cv_cpp_ebcdic=no
23485 rm -f conftest.err conftest.$ac_ext
23487 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23488 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23489 if test $ol_cv_cpp_ebcdic = yes ; then
23491 cat >>confdefs.h <<\_ACEOF
23492 #define HAVE_EBCDIC 1
23497 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23499 if test "${ol_cv_header_stdc+set}" = set; then
23500 echo $ECHO_N "(cached) $ECHO_C" >&6
23502 cat >conftest.$ac_ext <<_ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 #include <stdlib.h>
23509 #include <stdarg.h>
23510 #include <string.h>
23513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23516 grep -v '^ *+' conftest.er1 >conftest.err
23518 cat conftest.err >&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } >/dev/null; then
23521 if test -s conftest.err; then
23522 ac_cpp_err=$ac_c_preproc_warn_flag
23523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23530 if test -z "$ac_cpp_err"; then
23531 ol_cv_header_stdc=yes
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23536 ol_cv_header_stdc=no
23538 rm -f conftest.err conftest.$ac_ext
23540 if test $ol_cv_header_stdc = yes; then
23541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23542 cat >conftest.$ac_ext <<_ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23548 #include <string.h>
23551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23552 $EGREP "memchr" >/dev/null 2>&1; then
23555 ol_cv_header_stdc=no
23561 if test $ol_cv_header_stdc = yes; then
23562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23563 cat >conftest.$ac_ext <<_ACEOF
23566 cat confdefs.h >>conftest.$ac_ext
23567 cat >>conftest.$ac_ext <<_ACEOF
23568 /* end confdefs.h. */
23569 #include <stdlib.h>
23572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23573 $EGREP "free" >/dev/null 2>&1; then
23576 ol_cv_header_stdc=no
23582 if test $ol_cv_header_stdc = yes; then
23583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23584 if test "$cross_compiling" = yes; then
23587 cat >conftest.$ac_ext <<_ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23594 #ifndef HAVE_EBCDIC
23595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23598 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23599 || ('j' <= (c) && (c) <= 'r') \
23600 || ('s' <= (c) && (c) <= 'z'))
23601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23604 int main () { int i; for (i = 0; i < 256; i++)
23605 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23609 rm -f conftest$ac_exeext
23610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23611 (eval $ac_link) 2>&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; }; then
23622 echo "$as_me: program exited with status $ac_status" >&5
23623 echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23626 ( exit $ac_status )
23627 ol_cv_header_stdc=no
23629 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23633 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23634 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23635 if test $ol_cv_header_stdc = yes; then
23636 cat >>confdefs.h <<\_ACEOF
23637 #define STDC_HEADERS 1
23641 ac_cv_header_stdc=disable
23644 if test $ol_cv_header_stdc != yes; then
23645 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23646 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23654 ac_header_dirent=no
23655 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23656 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23657 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23658 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23660 echo $ECHO_N "(cached) $ECHO_C" >&6
23662 cat >conftest.$ac_ext <<_ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23668 #include <sys/types.h>
23680 rm -f conftest.$ac_objext
23681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23682 (eval $ac_compile) 2>conftest.er1
23684 grep -v '^ *+' conftest.er1 >conftest.err
23686 cat conftest.err >&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } &&
23689 { ac_try='test -z "$ac_c_werror_flag"
23690 || test ! -s conftest.err'
23691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692 (eval $ac_try) 2>&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; } &&
23696 { ac_try='test -s conftest.$ac_objext'
23697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; }; then
23702 eval "$as_ac_Header=yes"
23704 echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 eval "$as_ac_Header=no"
23709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23714 cat >>confdefs.h <<_ACEOF
23715 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23718 ac_header_dirent=$ac_hdr; break
23722 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23723 if test $ac_header_dirent = dirent.h; then
23724 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23725 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23726 if test "${ac_cv_search_opendir+set}" = set; then
23727 echo $ECHO_N "(cached) $ECHO_C" >&6
23729 ac_func_search_save_LIBS=$LIBS
23730 ac_cv_search_opendir=no
23731 cat >conftest.$ac_ext <<_ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23738 /* Override any gcc2 internal prototype to avoid an error. */
23742 /* We use char because int might match the return type of a gcc2
23743 builtin and then its argument prototype would still apply. */
23753 rm -f conftest.$ac_objext conftest$ac_exeext
23754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23755 (eval $ac_link) 2>conftest.er1
23757 grep -v '^ *+' conftest.er1 >conftest.err
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } &&
23762 { ac_try='test -z "$ac_c_werror_flag"
23763 || test ! -s conftest.err'
23764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765 (eval $ac_try) 2>&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; } &&
23769 { ac_try='test -s conftest$ac_exeext'
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 ac_cv_search_opendir="none required"
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23781 rm -f conftest.err conftest.$ac_objext \
23782 conftest$ac_exeext conftest.$ac_ext
23783 if test "$ac_cv_search_opendir" = no; then
23784 for ac_lib in dir; do
23785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23786 cat >conftest.$ac_ext <<_ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h. */
23793 /* Override any gcc2 internal prototype to avoid an error. */
23797 /* We use char because int might match the return type of a gcc2
23798 builtin and then its argument prototype would still apply. */
23808 rm -f conftest.$ac_objext conftest$ac_exeext
23809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23810 (eval $ac_link) 2>conftest.er1
23812 grep -v '^ *+' conftest.er1 >conftest.err
23814 cat conftest.err >&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } &&
23817 { ac_try='test -z "$ac_c_werror_flag"
23818 || test ! -s conftest.err'
23819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23820 (eval $ac_try) 2>&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); }; } &&
23824 { ac_try='test -s conftest$ac_exeext'
23825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826 (eval $ac_try) 2>&5
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); }; }; then
23830 ac_cv_search_opendir="-l$ac_lib"
23833 echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23837 rm -f conftest.err conftest.$ac_objext \
23838 conftest$ac_exeext conftest.$ac_ext
23841 LIBS=$ac_func_search_save_LIBS
23843 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23844 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23845 if test "$ac_cv_search_opendir" != no; then
23846 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23851 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23852 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23853 if test "${ac_cv_search_opendir+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 ac_func_search_save_LIBS=$LIBS
23857 ac_cv_search_opendir=no
23858 cat >conftest.$ac_ext <<_ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23865 /* Override any gcc2 internal prototype to avoid an error. */
23869 /* We use char because int might match the return type of a gcc2
23870 builtin and then its argument prototype would still apply. */
23880 rm -f conftest.$ac_objext conftest$ac_exeext
23881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23882 (eval $ac_link) 2>conftest.er1
23884 grep -v '^ *+' conftest.er1 >conftest.err
23886 cat conftest.err >&5
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } &&
23889 { ac_try='test -z "$ac_c_werror_flag"
23890 || test ! -s conftest.err'
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; } &&
23896 { ac_try='test -s conftest$ac_exeext'
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; }; then
23902 ac_cv_search_opendir="none required"
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23908 rm -f conftest.err conftest.$ac_objext \
23909 conftest$ac_exeext conftest.$ac_ext
23910 if test "$ac_cv_search_opendir" = no; then
23911 for ac_lib in x; do
23912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23913 cat >conftest.$ac_ext <<_ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h. */
23920 /* Override any gcc2 internal prototype to avoid an error. */
23924 /* We use char because int might match the return type of a gcc2
23925 builtin and then its argument prototype would still apply. */
23935 rm -f conftest.$ac_objext conftest$ac_exeext
23936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23937 (eval $ac_link) 2>conftest.er1
23939 grep -v '^ *+' conftest.er1 >conftest.err
23941 cat conftest.err >&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } &&
23944 { ac_try='test -z "$ac_c_werror_flag"
23945 || test ! -s conftest.err'
23946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947 (eval $ac_try) 2>&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; } &&
23951 { ac_try='test -s conftest$ac_exeext'
23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 (eval $ac_try) 2>&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; }; then
23957 ac_cv_search_opendir="-l$ac_lib"
23960 echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23964 rm -f conftest.err conftest.$ac_objext \
23965 conftest$ac_exeext conftest.$ac_ext
23968 LIBS=$ac_func_search_save_LIBS
23970 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23971 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23972 if test "$ac_cv_search_opendir" != no; then
23973 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23979 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23980 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23981 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23982 echo $ECHO_N "(cached) $ECHO_C" >&6
23984 cat >conftest.$ac_ext <<_ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 #include <sys/types.h>
23991 #include <sys/wait.h>
23992 #ifndef WEXITSTATUS
23993 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23996 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24004 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24009 rm -f conftest.$ac_objext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24011 (eval $ac_compile) 2>conftest.er1
24013 grep -v '^ *+' conftest.er1 >conftest.err
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } &&
24018 { ac_try='test -z "$ac_c_werror_flag"
24019 || test ! -s conftest.err'
24020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021 (eval $ac_try) 2>&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); }; } &&
24025 { ac_try='test -s conftest.$ac_objext'
24026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027 (eval $ac_try) 2>&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); }; }; then
24031 ac_cv_header_sys_wait_h=yes
24033 echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24036 ac_cv_header_sys_wait_h=no
24038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24040 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24041 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
24042 if test $ac_cv_header_sys_wait_h = yes; then
24044 cat >>confdefs.h <<\_ACEOF
24045 #define HAVE_SYS_WAIT_H 1
24050 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
24051 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
24052 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24055 cat >conftest.$ac_ext <<_ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24061 #include <sys/types.h>
24062 #include <termios.h>
24068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24069 $EGREP "yes" >/dev/null 2>&1; then
24070 ac_cv_sys_tiocgwinsz_in_termios_h=yes
24072 ac_cv_sys_tiocgwinsz_in_termios_h=no
24077 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
24078 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24080 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24081 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24082 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24083 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24086 cat >conftest.$ac_ext <<_ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h. */
24092 #include <sys/types.h>
24093 #include <sys/ioctl.h>
24099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24100 $EGREP "yes" >/dev/null 2>&1; then
24101 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24103 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24108 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24109 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24111 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24113 cat >>confdefs.h <<\_ACEOF
24114 #define GWINSZ_IN_SYS_IOCTL 1
24218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24220 echo "$as_me:$LINENO: checking for $ac_header" >&5
24221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24223 echo $ECHO_N "(cached) $ECHO_C" >&6
24225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24228 # Is the header compilable?
24229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24231 cat >conftest.$ac_ext <<_ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h. */
24237 $ac_includes_default
24238 #include <$ac_header>
24240 rm -f conftest.$ac_objext
24241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24242 (eval $ac_compile) 2>conftest.er1
24244 grep -v '^ *+' conftest.er1 >conftest.err
24246 cat conftest.err >&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } &&
24249 { ac_try='test -z "$ac_c_werror_flag"
24250 || test ! -s conftest.err'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; } &&
24256 { ac_try='test -s conftest.$ac_objext'
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; }; then
24262 ac_header_compiler=yes
24264 echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 ac_header_compiler=no
24269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24271 echo "${ECHO_T}$ac_header_compiler" >&6
24273 # Is the header present?
24274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24282 #include <$ac_header>
24284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24287 grep -v '^ *+' conftest.er1 >conftest.err
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } >/dev/null; then
24292 if test -s conftest.err; then
24293 ac_cpp_err=$ac_c_preproc_warn_flag
24294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24301 if test -z "$ac_cpp_err"; then
24302 ac_header_preproc=yes
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24307 ac_header_preproc=no
24309 rm -f conftest.err conftest.$ac_ext
24310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24311 echo "${ECHO_T}$ac_header_preproc" >&6
24313 # So? What about this header?
24314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24320 ac_header_preproc=yes
24323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24337 ## ------------------------------------------ ##
24338 ## Report this to the AC_PACKAGE_NAME lists. ##
24339 ## ------------------------------------------ ##
24342 sed "s/^/$as_me: WARNING: /" >&2
24345 echo "$as_me:$LINENO: checking for $ac_header" >&5
24346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24348 echo $ECHO_N "(cached) $ECHO_C" >&6
24350 eval "$as_ac_Header=\$ac_header_preproc"
24352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24357 cat >>confdefs.h <<_ACEOF
24358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24367 for ac_header in resolv.h
24369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24370 echo "$as_me:$LINENO: checking for $ac_header" >&5
24371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24373 echo $ECHO_N "(cached) $ECHO_C" >&6
24375 cat >conftest.$ac_ext <<_ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 $ac_includes_default
24382 #include <netinet/in.h>
24385 #include <$ac_header>
24387 rm -f conftest.$ac_objext
24388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24389 (eval $ac_compile) 2>conftest.er1
24391 grep -v '^ *+' conftest.er1 >conftest.err
24393 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } &&
24396 { ac_try='test -z "$ac_c_werror_flag"
24397 || test ! -s conftest.err'
24398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24399 (eval $ac_try) 2>&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); }; } &&
24403 { ac_try='test -s conftest.$ac_objext'
24404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24405 (eval $ac_try) 2>&5
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); }; }; then
24409 eval "$as_ac_Header=yes"
24411 echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24414 eval "$as_ac_Header=no"
24416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24421 cat >>confdefs.h <<_ACEOF
24422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24431 for ac_header in sys/ucred.h
24433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24434 echo "$as_me:$LINENO: checking for $ac_header" >&5
24435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24439 cat >conftest.$ac_ext <<_ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24445 $ac_includes_default
24446 #ifdef HAVE_SYS_PARAM_H
24447 #include <sys/param.h>
24451 #include <$ac_header>
24453 rm -f conftest.$ac_objext
24454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24455 (eval $ac_compile) 2>conftest.er1
24457 grep -v '^ *+' conftest.er1 >conftest.err
24459 cat conftest.err >&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } &&
24462 { ac_try='test -z "$ac_c_werror_flag"
24463 || test ! -s conftest.err'
24464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465 (eval $ac_try) 2>&5
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); }; } &&
24469 { ac_try='test -s conftest.$ac_objext'
24470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471 (eval $ac_try) 2>&5
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); }; }; then
24475 eval "$as_ac_Header=yes"
24477 echo "$as_me: failed program was:" >&5
24478 sed 's/^/| /' conftest.$ac_ext >&5
24480 eval "$as_ac_Header=no"
24482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24487 cat >>confdefs.h <<_ACEOF
24488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24499 for ac_func in sigaction sigset
24501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24502 echo "$as_me:$LINENO: checking for $ac_func" >&5
24503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24504 if eval "test \"\${$as_ac_var+set}\" = set"; then
24505 echo $ECHO_N "(cached) $ECHO_C" >&6
24507 cat >conftest.$ac_ext <<_ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24515 #define $ac_func innocuous_$ac_func
24517 /* System header to define __stub macros and hopefully few prototypes,
24518 which can conflict with char $ac_func (); below.
24519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24520 <limits.h> exists even on freestanding compilers. */
24523 # include <limits.h>
24525 # include <assert.h>
24530 /* Override any gcc2 internal prototype to avoid an error. */
24535 /* We use char because int might match the return type of a gcc2
24536 builtin and then its argument prototype would still apply. */
24538 /* The GNU C library defines this for functions which it implements
24539 to always fail with ENOSYS. Some functions are actually named
24540 something starting with __ and the normal name is an alias. */
24541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24544 char (*f) () = $ac_func;
24553 return f != $ac_func;
24558 rm -f conftest.$ac_objext conftest$ac_exeext
24559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24560 (eval $ac_link) 2>conftest.er1
24562 grep -v '^ *+' conftest.er1 >conftest.err
24564 cat conftest.err >&5
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); } &&
24567 { ac_try='test -z "$ac_c_werror_flag"
24568 || test ! -s conftest.err'
24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); }; } &&
24574 { ac_try='test -s conftest$ac_exeext'
24575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576 (eval $ac_try) 2>&5
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); }; }; then
24580 eval "$as_ac_var=yes"
24582 echo "$as_me: failed program was:" >&5
24583 sed 's/^/| /' conftest.$ac_ext >&5
24585 eval "$as_ac_var=no"
24587 rm -f conftest.err conftest.$ac_objext \
24588 conftest$ac_exeext conftest.$ac_ext
24590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24592 if test `eval echo '${'$as_ac_var'}'` = yes; then
24593 cat >>confdefs.h <<_ACEOF
24594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24601 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24603 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24604 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24605 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24608 ac_check_lib_save_LIBS=$LIBS
24610 cat >conftest.$ac_ext <<_ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h. */
24617 /* Override any gcc2 internal prototype to avoid an error. */
24621 /* We use char because int might match the return type of a gcc2
24622 builtin and then its argument prototype would still apply. */
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24634 (eval $ac_link) 2>conftest.er1
24636 grep -v '^ *+' conftest.er1 >conftest.err
24638 cat conftest.err >&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); } &&
24641 { ac_try='test -z "$ac_c_werror_flag"
24642 || test ! -s conftest.err'
24643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24644 (eval $ac_try) 2>&5
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); }; } &&
24648 { ac_try='test -s conftest$ac_exeext'
24649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650 (eval $ac_try) 2>&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); }; }; then
24654 ac_cv_lib_V3_sigset=yes
24656 echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24659 ac_cv_lib_V3_sigset=no
24661 rm -f conftest.err conftest.$ac_objext \
24662 conftest$ac_exeext conftest.$ac_ext
24663 LIBS=$ac_check_lib_save_LIBS
24665 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24666 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24667 if test $ac_cv_lib_V3_sigset = yes; then
24668 cat >>confdefs.h <<_ACEOF
24669 #define HAVE_LIBV3 1
24678 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24679 echo "$as_me:$LINENO: checking for winsock" >&5
24680 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24681 if test "${ol_cv_winsock+set}" = set; then
24682 echo $ECHO_N "(cached) $ECHO_C" >&6
24685 for curlib in ws2_32 wsock32; do
24686 LIBS="$LIBS -l$curlib"
24687 cat >conftest.$ac_ext <<_ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h. */
24693 #include <winsock.h>
24700 select(0,NULL,NULL,NULL,NULL);
24702 gethostname(NULL,0);
24708 rm -f conftest.$ac_objext conftest$ac_exeext
24709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24710 (eval $ac_link) 2>conftest.er1
24712 grep -v '^ *+' conftest.er1 >conftest.err
24714 cat conftest.err >&5
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); } &&
24717 { ac_try='test -z "$ac_c_werror_flag"
24718 || test ! -s conftest.err'
24719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720 (eval $ac_try) 2>&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); }; } &&
24724 { ac_try='test -s conftest$ac_exeext'
24725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726 (eval $ac_try) 2>&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; }; then
24732 echo "$as_me: failed program was:" >&5
24733 sed 's/^/| /' conftest.$ac_ext >&5
24737 rm -f conftest.err conftest.$ac_objext \
24738 conftest$ac_exeext conftest.$ac_ext
24740 if test $ol_cv_winsock = yes; then
24742 cat >>confdefs.h <<\_ACEOF
24743 #define HAVE_WINSOCK 1
24746 ac_cv_func_socket=yes
24747 ac_cv_func_select=yes
24748 ac_cv_func_closesocket=yes
24749 ac_cv_func_gethostname=yes
24750 if test $curlib = ws2_32; then
24751 ol_cv_winsock=winsock2
24753 cat >>confdefs.h <<\_ACEOF
24754 #define HAVE_WINSOCK2 1
24763 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24764 echo "${ECHO_T}$ol_cv_winsock" >&6
24768 echo "$as_me:$LINENO: checking for socket" >&5
24769 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24770 if test "${ac_cv_func_socket+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 cat >conftest.$ac_ext <<_ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24779 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24781 #define socket innocuous_socket
24783 /* System header to define __stub macros and hopefully few prototypes,
24784 which can conflict with char socket (); below.
24785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24786 <limits.h> exists even on freestanding compilers. */
24789 # include <limits.h>
24791 # include <assert.h>
24796 /* Override any gcc2 internal prototype to avoid an error. */
24801 /* We use char because int might match the return type of a gcc2
24802 builtin and then its argument prototype would still apply. */
24804 /* The GNU C library defines this for functions which it implements
24805 to always fail with ENOSYS. Some functions are actually named
24806 something starting with __ and the normal name is an alias. */
24807 #if defined (__stub_socket) || defined (__stub___socket)
24810 char (*f) () = socket;
24819 return f != socket;
24824 rm -f conftest.$ac_objext conftest$ac_exeext
24825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24826 (eval $ac_link) 2>conftest.er1
24828 grep -v '^ *+' conftest.er1 >conftest.err
24830 cat conftest.err >&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } &&
24833 { ac_try='test -z "$ac_c_werror_flag"
24834 || test ! -s conftest.err'
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; } &&
24840 { ac_try='test -s conftest$ac_exeext'
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; }; then
24846 ac_cv_func_socket=yes
24848 echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24851 ac_cv_func_socket=no
24853 rm -f conftest.err conftest.$ac_objext \
24854 conftest$ac_exeext conftest.$ac_ext
24856 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24857 echo "${ECHO_T}$ac_cv_func_socket" >&6
24858 if test $ac_cv_func_socket = yes; then
24863 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24864 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24865 if test "${ac_cv_lib_socket_main+set}" = set; then
24866 echo $ECHO_N "(cached) $ECHO_C" >&6
24868 ac_check_lib_save_LIBS=$LIBS
24869 LIBS="-lsocket $LIBS"
24870 cat >conftest.$ac_ext <<_ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h. */
24886 rm -f conftest.$ac_objext conftest$ac_exeext
24887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24888 (eval $ac_link) 2>conftest.er1
24890 grep -v '^ *+' conftest.er1 >conftest.err
24892 cat conftest.err >&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); } &&
24895 { ac_try='test -z "$ac_c_werror_flag"
24896 || test ! -s conftest.err'
24897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898 (eval $ac_try) 2>&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; } &&
24902 { ac_try='test -s conftest$ac_exeext'
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; }; then
24908 ac_cv_lib_socket_main=yes
24910 echo "$as_me: failed program was:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24913 ac_cv_lib_socket_main=no
24915 rm -f conftest.err conftest.$ac_objext \
24916 conftest$ac_exeext conftest.$ac_ext
24917 LIBS=$ac_check_lib_save_LIBS
24919 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24920 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24921 if test $ac_cv_lib_socket_main = yes; then
24922 cat >>confdefs.h <<_ACEOF
24923 #define HAVE_LIBSOCKET 1
24926 LIBS="-lsocket $LIBS"
24931 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24932 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24933 if test "${ac_cv_lib_net_main+set}" = set; then
24934 echo $ECHO_N "(cached) $ECHO_C" >&6
24936 ac_check_lib_save_LIBS=$LIBS
24938 cat >conftest.$ac_ext <<_ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24954 rm -f conftest.$ac_objext conftest$ac_exeext
24955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24956 (eval $ac_link) 2>conftest.er1
24958 grep -v '^ *+' conftest.er1 >conftest.err
24960 cat conftest.err >&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); } &&
24963 { ac_try='test -z "$ac_c_werror_flag"
24964 || test ! -s conftest.err'
24965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24966 (eval $ac_try) 2>&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); }; } &&
24970 { ac_try='test -s conftest$ac_exeext'
24971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24972 (eval $ac_try) 2>&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); }; }; then
24976 ac_cv_lib_net_main=yes
24978 echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.$ac_ext >&5
24981 ac_cv_lib_net_main=no
24983 rm -f conftest.err conftest.$ac_objext \
24984 conftest$ac_exeext conftest.$ac_ext
24985 LIBS=$ac_check_lib_save_LIBS
24987 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24988 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24989 if test $ac_cv_lib_net_main = yes; then
24990 cat >>confdefs.h <<_ACEOF
24991 #define HAVE_LIBNET 1
24999 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
25000 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
25001 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
25002 echo $ECHO_N "(cached) $ECHO_C" >&6
25004 ac_check_lib_save_LIBS=$LIBS
25005 LIBS="-lnsl_s $LIBS"
25006 cat >conftest.$ac_ext <<_ACEOF
25009 cat confdefs.h >>conftest.$ac_ext
25010 cat >>conftest.$ac_ext <<_ACEOF
25011 /* end confdefs.h. */
25022 rm -f conftest.$ac_objext conftest$ac_exeext
25023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25024 (eval $ac_link) 2>conftest.er1
25026 grep -v '^ *+' conftest.er1 >conftest.err
25028 cat conftest.err >&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } &&
25031 { ac_try='test -z "$ac_c_werror_flag"
25032 || test ! -s conftest.err'
25033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25034 (eval $ac_try) 2>&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); }; } &&
25038 { ac_try='test -s conftest$ac_exeext'
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25044 ac_cv_lib_nsl_s_main=yes
25046 echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25049 ac_cv_lib_nsl_s_main=no
25051 rm -f conftest.err conftest.$ac_objext \
25052 conftest$ac_exeext conftest.$ac_ext
25053 LIBS=$ac_check_lib_save_LIBS
25055 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
25056 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
25057 if test $ac_cv_lib_nsl_s_main = yes; then
25058 cat >>confdefs.h <<_ACEOF
25059 #define HAVE_LIBNSL_S 1
25062 LIBS="-lnsl_s $LIBS"
25067 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
25068 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
25069 if test "${ac_cv_lib_nsl_main+set}" = set; then
25070 echo $ECHO_N "(cached) $ECHO_C" >&6
25072 ac_check_lib_save_LIBS=$LIBS
25074 cat >conftest.$ac_ext <<_ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h. */
25090 rm -f conftest.$ac_objext conftest$ac_exeext
25091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25092 (eval $ac_link) 2>conftest.er1
25094 grep -v '^ *+' conftest.er1 >conftest.err
25096 cat conftest.err >&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } &&
25099 { ac_try='test -z "$ac_c_werror_flag"
25100 || test ! -s conftest.err'
25101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102 (eval $ac_try) 2>&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; } &&
25106 { ac_try='test -s conftest$ac_exeext'
25107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
25112 ac_cv_lib_nsl_main=yes
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25117 ac_cv_lib_nsl_main=no
25119 rm -f conftest.err conftest.$ac_objext \
25120 conftest$ac_exeext conftest.$ac_ext
25121 LIBS=$ac_check_lib_save_LIBS
25123 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25124 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25125 if test $ac_cv_lib_nsl_main = yes; then
25126 cat >>confdefs.h <<_ACEOF
25127 #define HAVE_LIBNSL 1
25135 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25136 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25137 if test "${ac_cv_lib_inet_socket+set}" = set; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25140 ac_check_lib_save_LIBS=$LIBS
25141 LIBS="-linet $LIBS"
25142 cat >conftest.$ac_ext <<_ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h. */
25149 /* Override any gcc2 internal prototype to avoid an error. */
25153 /* We use char because int might match the return type of a gcc2
25154 builtin and then its argument prototype would still apply. */
25164 rm -f conftest.$ac_objext conftest$ac_exeext
25165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25166 (eval $ac_link) 2>conftest.er1
25168 grep -v '^ *+' conftest.er1 >conftest.err
25170 cat conftest.err >&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } &&
25173 { ac_try='test -z "$ac_c_werror_flag"
25174 || test ! -s conftest.err'
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; } &&
25180 { ac_try='test -s conftest$ac_exeext'
25181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182 (eval $ac_try) 2>&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); }; }; then
25186 ac_cv_lib_inet_socket=yes
25188 echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25191 ac_cv_lib_inet_socket=no
25193 rm -f conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
25195 LIBS=$ac_check_lib_save_LIBS
25197 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25198 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25199 if test $ac_cv_lib_inet_socket = yes; then
25200 cat >>confdefs.h <<_ACEOF
25201 #define HAVE_LIBINET 1
25204 LIBS="-linet $LIBS"
25209 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25210 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25211 if test "${ac_cv_lib_gen_main+set}" = set; then
25212 echo $ECHO_N "(cached) $ECHO_C" >&6
25214 ac_check_lib_save_LIBS=$LIBS
25216 cat >conftest.$ac_ext <<_ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h. */
25232 rm -f conftest.$ac_objext conftest$ac_exeext
25233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25234 (eval $ac_link) 2>conftest.er1
25236 grep -v '^ *+' conftest.er1 >conftest.err
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } &&
25241 { ac_try='test -z "$ac_c_werror_flag"
25242 || test ! -s conftest.err'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; } &&
25248 { ac_try='test -s conftest$ac_exeext'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; }; then
25254 ac_cv_lib_gen_main=yes
25256 echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25259 ac_cv_lib_gen_main=no
25261 rm -f conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
25263 LIBS=$ac_check_lib_save_LIBS
25265 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25266 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25267 if test $ac_cv_lib_gen_main = yes; then
25268 cat >>confdefs.h <<_ACEOF
25269 #define HAVE_LIBGEN 1
25280 echo "$as_me:$LINENO: checking for select" >&5
25281 echo $ECHO_N "checking for select... $ECHO_C" >&6
25282 if test "${ac_cv_func_select+set}" = set; then
25283 echo $ECHO_N "(cached) $ECHO_C" >&6
25285 cat >conftest.$ac_ext <<_ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h. */
25291 /* Define select to an innocuous variant, in case <limits.h> declares select.
25292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25293 #define select innocuous_select
25295 /* System header to define __stub macros and hopefully few prototypes,
25296 which can conflict with char select (); below.
25297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25298 <limits.h> exists even on freestanding compilers. */
25301 # include <limits.h>
25303 # include <assert.h>
25308 /* Override any gcc2 internal prototype to avoid an error. */
25313 /* We use char because int might match the return type of a gcc2
25314 builtin and then its argument prototype would still apply. */
25316 /* The GNU C library defines this for functions which it implements
25317 to always fail with ENOSYS. Some functions are actually named
25318 something starting with __ and the normal name is an alias. */
25319 #if defined (__stub_select) || defined (__stub___select)
25322 char (*f) () = select;
25331 return f != select;
25336 rm -f conftest.$ac_objext conftest$ac_exeext
25337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25338 (eval $ac_link) 2>conftest.er1
25340 grep -v '^ *+' conftest.er1 >conftest.err
25342 cat conftest.err >&5
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); } &&
25345 { ac_try='test -z "$ac_c_werror_flag"
25346 || test ! -s conftest.err'
25347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25348 (eval $ac_try) 2>&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); }; } &&
25352 { ac_try='test -s conftest$ac_exeext'
25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; }; then
25358 ac_cv_func_select=yes
25360 echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 ac_cv_func_select=no
25365 rm -f conftest.err conftest.$ac_objext \
25366 conftest$ac_exeext conftest.$ac_ext
25368 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25369 echo "${ECHO_T}$ac_cv_func_select" >&6
25370 if test $ac_cv_func_select = yes; then
25373 { { echo "$as_me:$LINENO: error: select() required." >&5
25374 echo "$as_me: error: select() required." >&2;}
25375 { (exit 1); exit 1; }; }
25379 if test "${ac_cv_header_winsock_h}" != yes; then
25382 for ac_header in sys/select.h sys/socket.h
25384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25386 echo "$as_me:$LINENO: checking for $ac_header" >&5
25387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25389 echo $ECHO_N "(cached) $ECHO_C" >&6
25391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25394 # Is the header compilable?
25395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25397 cat >conftest.$ac_ext <<_ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h. */
25403 $ac_includes_default
25404 #include <$ac_header>
25406 rm -f conftest.$ac_objext
25407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25408 (eval $ac_compile) 2>conftest.er1
25410 grep -v '^ *+' conftest.er1 >conftest.err
25412 cat conftest.err >&5
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } &&
25415 { ac_try='test -z "$ac_c_werror_flag"
25416 || test ! -s conftest.err'
25417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); }; } &&
25422 { ac_try='test -s conftest.$ac_objext'
25423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424 (eval $ac_try) 2>&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); }; }; then
25428 ac_header_compiler=yes
25430 echo "$as_me: failed program was:" >&5
25431 sed 's/^/| /' conftest.$ac_ext >&5
25433 ac_header_compiler=no
25435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25437 echo "${ECHO_T}$ac_header_compiler" >&6
25439 # Is the header present?
25440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25442 cat >conftest.$ac_ext <<_ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h. */
25448 #include <$ac_header>
25450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25453 grep -v '^ *+' conftest.er1 >conftest.err
25455 cat conftest.err >&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); } >/dev/null; then
25458 if test -s conftest.err; then
25459 ac_cpp_err=$ac_c_preproc_warn_flag
25460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25467 if test -z "$ac_cpp_err"; then
25468 ac_header_preproc=yes
25470 echo "$as_me: failed program was:" >&5
25471 sed 's/^/| /' conftest.$ac_ext >&5
25473 ac_header_preproc=no
25475 rm -f conftest.err conftest.$ac_ext
25476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25477 echo "${ECHO_T}$ac_header_preproc" >&6
25479 # So? What about this header?
25480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25486 ac_header_preproc=yes
25489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25503 ## ------------------------------------------ ##
25504 ## Report this to the AC_PACKAGE_NAME lists. ##
25505 ## ------------------------------------------ ##
25508 sed "s/^/$as_me: WARNING: /" >&2
25511 echo "$as_me:$LINENO: checking for $ac_header" >&5
25512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25514 echo $ECHO_N "(cached) $ECHO_C" >&6
25516 eval "$as_ac_Header=\$ac_header_preproc"
25518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25523 cat >>confdefs.h <<_ACEOF
25524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25531 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25532 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25533 if test "${ac_cv_func_select_args+set}" = set; then
25534 echo $ECHO_N "(cached) $ECHO_C" >&6
25536 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25537 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25538 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25539 cat >conftest.$ac_ext <<_ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25545 $ac_includes_default
25546 #if HAVE_SYS_SELECT_H
25547 # include <sys/select.h>
25549 #if HAVE_SYS_SOCKET_H
25550 # include <sys/socket.h>
25556 extern int select ($ac_arg1,
25557 $ac_arg234, $ac_arg234, $ac_arg234,
25563 rm -f conftest.$ac_objext
25564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25565 (eval $ac_compile) 2>conftest.er1
25567 grep -v '^ *+' conftest.er1 >conftest.err
25569 cat conftest.err >&5
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } &&
25572 { ac_try='test -z "$ac_c_werror_flag"
25573 || test ! -s conftest.err'
25574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575 (eval $ac_try) 2>&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; } &&
25579 { ac_try='test -s conftest.$ac_objext'
25580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581 (eval $ac_try) 2>&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; }; then
25585 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25587 echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25595 # Provide a safe default value.
25596 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25599 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25600 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25601 ac_save_IFS=$IFS; IFS=','
25602 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25606 cat >>confdefs.h <<_ACEOF
25607 #define SELECT_TYPE_ARG1 $1
25611 cat >>confdefs.h <<_ACEOF
25612 #define SELECT_TYPE_ARG234 ($2)
25616 cat >>confdefs.h <<_ACEOF
25617 #define SELECT_TYPE_ARG5 ($3)
25626 for ac_func in poll
25628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25629 echo "$as_me:$LINENO: checking for $ac_func" >&5
25630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25631 if eval "test \"\${$as_ac_var+set}\" = set"; then
25632 echo $ECHO_N "(cached) $ECHO_C" >&6
25634 cat >conftest.$ac_ext <<_ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h. */
25640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25642 #define $ac_func innocuous_$ac_func
25644 /* System header to define __stub macros and hopefully few prototypes,
25645 which can conflict with char $ac_func (); below.
25646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25647 <limits.h> exists even on freestanding compilers. */
25650 # include <limits.h>
25652 # include <assert.h>
25657 /* Override any gcc2 internal prototype to avoid an error. */
25662 /* We use char because int might match the return type of a gcc2
25663 builtin and then its argument prototype would still apply. */
25665 /* The GNU C library defines this for functions which it implements
25666 to always fail with ENOSYS. Some functions are actually named
25667 something starting with __ and the normal name is an alias. */
25668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25671 char (*f) () = $ac_func;
25680 return f != $ac_func;
25685 rm -f conftest.$ac_objext conftest$ac_exeext
25686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25687 (eval $ac_link) 2>conftest.er1
25689 grep -v '^ *+' conftest.er1 >conftest.err
25691 cat conftest.err >&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } &&
25694 { ac_try='test -z "$ac_c_werror_flag"
25695 || test ! -s conftest.err'
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; } &&
25701 { ac_try='test -s conftest$ac_exeext'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
25707 eval "$as_ac_var=yes"
25709 echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25712 eval "$as_ac_var=no"
25714 rm -f conftest.err conftest.$ac_objext \
25715 conftest$ac_exeext conftest.$ac_ext
25717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25719 if test `eval echo '${'$as_ac_var'}'` = yes; then
25720 cat >>confdefs.h <<_ACEOF
25721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25728 for ac_header in poll.h
25730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25732 echo "$as_me:$LINENO: checking for $ac_header" >&5
25733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25735 echo $ECHO_N "(cached) $ECHO_C" >&6
25737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25740 # Is the header compilable?
25741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25743 cat >conftest.$ac_ext <<_ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h. */
25749 $ac_includes_default
25750 #include <$ac_header>
25752 rm -f conftest.$ac_objext
25753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25754 (eval $ac_compile) 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } &&
25761 { ac_try='test -z "$ac_c_werror_flag"
25762 || test ! -s conftest.err'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; } &&
25768 { ac_try='test -s conftest.$ac_objext'
25769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 (eval $ac_try) 2>&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; }; then
25774 ac_header_compiler=yes
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 ac_header_compiler=no
25781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25783 echo "${ECHO_T}$ac_header_compiler" >&6
25785 # Is the header present?
25786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25788 cat >conftest.$ac_ext <<_ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h. */
25794 #include <$ac_header>
25796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25799 grep -v '^ *+' conftest.er1 >conftest.err
25801 cat conftest.err >&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); } >/dev/null; then
25804 if test -s conftest.err; then
25805 ac_cpp_err=$ac_c_preproc_warn_flag
25806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25813 if test -z "$ac_cpp_err"; then
25814 ac_header_preproc=yes
25816 echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25819 ac_header_preproc=no
25821 rm -f conftest.err conftest.$ac_ext
25822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25823 echo "${ECHO_T}$ac_header_preproc" >&6
25825 # So? What about this header?
25826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25832 ac_header_preproc=yes
25835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25849 ## ------------------------------------------ ##
25850 ## Report this to the AC_PACKAGE_NAME lists. ##
25851 ## ------------------------------------------ ##
25854 sed "s/^/$as_me: WARNING: /" >&2
25857 echo "$as_me:$LINENO: checking for $ac_header" >&5
25858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25860 echo $ECHO_N "(cached) $ECHO_C" >&6
25862 eval "$as_ac_Header=\$ac_header_preproc"
25864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25869 cat >>confdefs.h <<_ACEOF
25870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25879 for ac_header in sys/epoll.h
25881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25883 echo "$as_me:$LINENO: checking for $ac_header" >&5
25884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25891 # Is the header compilable?
25892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25894 cat >conftest.$ac_ext <<_ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h. */
25900 $ac_includes_default
25901 #include <$ac_header>
25903 rm -f conftest.$ac_objext
25904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25905 (eval $ac_compile) 2>conftest.er1
25907 grep -v '^ *+' conftest.er1 >conftest.err
25909 cat conftest.err >&5
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } &&
25912 { ac_try='test -z "$ac_c_werror_flag"
25913 || test ! -s conftest.err'
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; } &&
25919 { ac_try='test -s conftest.$ac_objext'
25920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25921 (eval $ac_try) 2>&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); }; }; then
25925 ac_header_compiler=yes
25927 echo "$as_me: failed program was:" >&5
25928 sed 's/^/| /' conftest.$ac_ext >&5
25930 ac_header_compiler=no
25932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25934 echo "${ECHO_T}$ac_header_compiler" >&6
25936 # Is the header present?
25937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25939 cat >conftest.$ac_ext <<_ACEOF
25942 cat confdefs.h >>conftest.$ac_ext
25943 cat >>conftest.$ac_ext <<_ACEOF
25944 /* end confdefs.h. */
25945 #include <$ac_header>
25947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25950 grep -v '^ *+' conftest.er1 >conftest.err
25952 cat conftest.err >&5
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } >/dev/null; then
25955 if test -s conftest.err; then
25956 ac_cpp_err=$ac_c_preproc_warn_flag
25957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25964 if test -z "$ac_cpp_err"; then
25965 ac_header_preproc=yes
25967 echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.$ac_ext >&5
25970 ac_header_preproc=no
25972 rm -f conftest.err conftest.$ac_ext
25973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25974 echo "${ECHO_T}$ac_header_preproc" >&6
25976 # So? What about this header?
25977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25983 ac_header_preproc=yes
25986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26000 ## ------------------------------------------ ##
26001 ## Report this to the AC_PACKAGE_NAME lists. ##
26002 ## ------------------------------------------ ##
26005 sed "s/^/$as_me: WARNING: /" >&2
26008 echo "$as_me:$LINENO: checking for $ac_header" >&5
26009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26011 echo $ECHO_N "(cached) $ECHO_C" >&6
26013 eval "$as_ac_Header=\$ac_header_preproc"
26015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26020 cat >>confdefs.h <<_ACEOF
26021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26028 if test "${ac_cv_header_sys_epoll_h}" = yes; then
26029 echo "$as_me:$LINENO: checking for epoll system call" >&5
26030 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
26031 if test "$cross_compiling" = yes; then
26032 echo "$as_me:$LINENO: result: no" >&5
26033 echo "${ECHO_T}no" >&6
26035 cat >conftest.$ac_ext <<_ACEOF
26038 cat confdefs.h >>conftest.$ac_ext
26039 cat >>conftest.$ac_ext <<_ACEOF
26040 /* end confdefs.h. */
26041 int main(int argc, char *argv)
26043 int epfd = epoll_create(256);
26044 exit (epfd == -1 ? 1 : 0);
26047 rm -f conftest$ac_exeext
26048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26049 (eval $ac_link) 2>&5
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; }; then
26058 echo "$as_me:$LINENO: result: yes" >&5
26059 echo "${ECHO_T}yes" >&6
26061 cat >>confdefs.h <<\_ACEOF
26062 #define HAVE_EPOLL 1
26066 echo "$as_me: program exited with status $ac_status" >&5
26067 echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26070 ( exit $ac_status )
26071 echo "$as_me:$LINENO: result: no" >&5
26072 echo "${ECHO_T}no" >&6
26074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26079 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26080 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26081 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26085 cat >conftest.$ac_ext <<_ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h. */
26093 #include <sys/types.h>
26096 #include <stdlib.h>
26101 char *c = (char *) *sys_errlist
26106 rm -f conftest.$ac_objext
26107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26108 (eval $ac_compile) 2>conftest.er1
26110 grep -v '^ *+' conftest.er1 >conftest.err
26112 cat conftest.err >&5
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } &&
26115 { ac_try='test -z "$ac_c_werror_flag"
26116 || test ! -s conftest.err'
26117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26118 (eval $ac_try) 2>&5
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); }; } &&
26122 { ac_try='test -s conftest.$ac_objext'
26123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124 (eval $ac_try) 2>&5
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); }; }; then
26128 ol_cv_dcl_sys_errlist=yes
26129 ol_cv_have_sys_errlist=yes
26131 echo "$as_me: failed program was:" >&5
26132 sed 's/^/| /' conftest.$ac_ext >&5
26134 ol_cv_dcl_sys_errlist=no
26136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26138 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26139 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26141 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26142 if test $ol_cv_dcl_sys_errlist = no ; then
26144 cat >>confdefs.h <<\_ACEOF
26145 #define DECL_SYS_ERRLIST 1
26149 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26150 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26151 if test "${ol_cv_have_sys_errlist+set}" = set; then
26152 echo $ECHO_N "(cached) $ECHO_C" >&6
26155 cat >conftest.$ac_ext <<_ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h. */
26165 char *c = (char *) *sys_errlist
26170 rm -f conftest.$ac_objext conftest$ac_exeext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26172 (eval $ac_link) 2>conftest.er1
26174 grep -v '^ *+' conftest.er1 >conftest.err
26176 cat conftest.err >&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } &&
26179 { ac_try='test -z "$ac_c_werror_flag"
26180 || test ! -s conftest.err'
26181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182 (eval $ac_try) 2>&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; } &&
26186 { ac_try='test -s conftest$ac_exeext'
26187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188 (eval $ac_try) 2>&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26192 ol_cv_have_sys_errlist=yes
26194 echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26197 ol_cv_have_sys_errlist=no
26199 rm -f conftest.err conftest.$ac_objext \
26200 conftest$ac_exeext conftest.$ac_ext
26202 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26203 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26205 if test $ol_cv_have_sys_errlist = yes ; then
26207 cat >>confdefs.h <<\_ACEOF
26208 #define HAVE_SYS_ERRLIST 1
26214 for ac_func in strerror strerror_r
26216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26217 echo "$as_me:$LINENO: checking for $ac_func" >&5
26218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26219 if eval "test \"\${$as_ac_var+set}\" = set"; then
26220 echo $ECHO_N "(cached) $ECHO_C" >&6
26222 cat >conftest.$ac_ext <<_ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26230 #define $ac_func innocuous_$ac_func
26232 /* System header to define __stub macros and hopefully few prototypes,
26233 which can conflict with char $ac_func (); below.
26234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26235 <limits.h> exists even on freestanding compilers. */
26238 # include <limits.h>
26240 # include <assert.h>
26245 /* Override any gcc2 internal prototype to avoid an error. */
26250 /* We use char because int might match the return type of a gcc2
26251 builtin and then its argument prototype would still apply. */
26253 /* The GNU C library defines this for functions which it implements
26254 to always fail with ENOSYS. Some functions are actually named
26255 something starting with __ and the normal name is an alias. */
26256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26259 char (*f) () = $ac_func;
26268 return f != $ac_func;
26273 rm -f conftest.$ac_objext conftest$ac_exeext
26274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26275 (eval $ac_link) 2>conftest.er1
26277 grep -v '^ *+' conftest.er1 >conftest.err
26279 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } &&
26282 { ac_try='test -z "$ac_c_werror_flag"
26283 || test ! -s conftest.err'
26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285 (eval $ac_try) 2>&5
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; } &&
26289 { ac_try='test -s conftest$ac_exeext'
26290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291 (eval $ac_try) 2>&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); }; }; then
26295 eval "$as_ac_var=yes"
26297 echo "$as_me: failed program was:" >&5
26298 sed 's/^/| /' conftest.$ac_ext >&5
26300 eval "$as_ac_var=no"
26302 rm -f conftest.err conftest.$ac_objext \
26303 conftest$ac_exeext conftest.$ac_ext
26305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26307 if test `eval echo '${'$as_ac_var'}'` = yes; then
26308 cat >>confdefs.h <<_ACEOF
26309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26315 ol_cv_func_strerror_r=no
26316 if test "${ac_cv_func_strerror_r}" = yes ; then
26317 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26318 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26319 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26320 echo $ECHO_N "(cached) $ECHO_C" >&6
26323 cat >conftest.$ac_ext <<_ACEOF
26326 cat confdefs.h >>conftest.$ac_ext
26327 cat >>conftest.$ac_ext <<_ACEOF
26328 /* end confdefs.h. */
26329 #include <string.h>
26331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26332 $EGREP "strerror_r" >/dev/null 2>&1; then
26333 ol_decl_strerror_r=yes
26335 ol_decl_strerror_r=no
26339 if test $ol_decl_strerror_r = yes ; then
26340 cat >conftest.$ac_ext <<_ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h. */
26346 #include <string.h>
26350 /* from autoconf 2.59 */
26352 char x = *strerror_r (0, buf, sizeof buf);
26353 char *p = strerror_r (0, buf, sizeof buf);
26359 rm -f conftest.$ac_objext
26360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26361 (eval $ac_compile) 2>conftest.er1
26363 grep -v '^ *+' conftest.er1 >conftest.err
26365 cat conftest.err >&5
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); } &&
26368 { ac_try='test -z "$ac_c_werror_flag"
26369 || test ! -s conftest.err'
26370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371 (eval $ac_try) 2>&5
26373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); }; } &&
26375 { ac_try='test -s conftest.$ac_objext'
26376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26377 (eval $ac_try) 2>&5
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); }; }; then
26381 ol_cv_nonposix_strerror_r=yes
26383 echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26386 ol_cv_nonposix_strerror_r=no
26388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26390 if test "$cross_compiling" = yes; then
26391 ol_cv_nonposix_strerror=no
26393 cat >conftest.$ac_ext <<_ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26403 strerror_r( 1, buf, sizeof buf );
26404 exit( buf[0] == 0 );
26408 rm -f conftest$ac_exeext
26409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26410 (eval $ac_link) 2>&5
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415 (eval $ac_try) 2>&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); }; }; then
26419 ol_cv_nonposix_strerror_r=yes
26421 echo "$as_me: program exited with status $ac_status" >&5
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26425 ( exit $ac_status )
26426 ol_cv_nonposix_strerror=no
26428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26433 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26434 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26435 if test $ol_cv_nonposix_strerror_r = yes ; then
26437 cat >>confdefs.h <<\_ACEOF
26438 #define HAVE_NONPOSIX_STRERROR_R 1
26443 elif test "${ac_cv_func_strerror}" = no ; then
26444 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26445 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26446 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26450 cat >conftest.$ac_ext <<_ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26458 #include <sys/types.h>
26461 #include <stdlib.h>
26466 char *c = (char *) *sys_errlist
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473 (eval $ac_compile) 2>conftest.er1
26475 grep -v '^ *+' conftest.er1 >conftest.err
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
26480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ol_cv_dcl_sys_errlist=yes
26494 ol_cv_have_sys_errlist=yes
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26499 ol_cv_dcl_sys_errlist=no
26501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26503 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26504 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26506 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26507 if test $ol_cv_dcl_sys_errlist = no ; then
26509 cat >>confdefs.h <<\_ACEOF
26510 #define DECL_SYS_ERRLIST 1
26514 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26515 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26516 if test "${ol_cv_have_sys_errlist+set}" = set; then
26517 echo $ECHO_N "(cached) $ECHO_C" >&6
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26530 char *c = (char *) *sys_errlist
26535 rm -f conftest.$ac_objext conftest$ac_exeext
26536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26537 (eval $ac_link) 2>conftest.er1
26539 grep -v '^ *+' conftest.er1 >conftest.err
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } &&
26544 { ac_try='test -z "$ac_c_werror_flag"
26545 || test ! -s conftest.err'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; } &&
26551 { ac_try='test -s conftest$ac_exeext'
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; }; then
26557 ol_cv_have_sys_errlist=yes
26559 echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26562 ol_cv_have_sys_errlist=no
26564 rm -f conftest.err conftest.$ac_objext \
26565 conftest$ac_exeext conftest.$ac_ext
26567 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26568 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26570 if test $ol_cv_have_sys_errlist = yes ; then
26572 cat >>confdefs.h <<\_ACEOF
26573 #define HAVE_SYS_ERRLIST 1
26582 for ac_header in regex.h
26584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26586 echo "$as_me:$LINENO: checking for $ac_header" >&5
26587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26594 # Is the header compilable?
26595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26597 cat >conftest.$ac_ext <<_ACEOF
26600 cat confdefs.h >>conftest.$ac_ext
26601 cat >>conftest.$ac_ext <<_ACEOF
26602 /* end confdefs.h. */
26603 $ac_includes_default
26604 #include <$ac_header>
26606 rm -f conftest.$ac_objext
26607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26608 (eval $ac_compile) 2>conftest.er1
26610 grep -v '^ *+' conftest.er1 >conftest.err
26612 cat conftest.err >&5
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); } &&
26615 { ac_try='test -z "$ac_c_werror_flag"
26616 || test ! -s conftest.err'
26617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618 (eval $ac_try) 2>&5
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); }; } &&
26622 { ac_try='test -s conftest.$ac_objext'
26623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624 (eval $ac_try) 2>&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); }; }; then
26628 ac_header_compiler=yes
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26633 ac_header_compiler=no
26635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26637 echo "${ECHO_T}$ac_header_compiler" >&6
26639 # Is the header present?
26640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26642 cat >conftest.$ac_ext <<_ACEOF
26645 cat confdefs.h >>conftest.$ac_ext
26646 cat >>conftest.$ac_ext <<_ACEOF
26647 /* end confdefs.h. */
26648 #include <$ac_header>
26650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26653 grep -v '^ *+' conftest.er1 >conftest.err
26655 cat conftest.err >&5
26656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); } >/dev/null; then
26658 if test -s conftest.err; then
26659 ac_cpp_err=$ac_c_preproc_warn_flag
26660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26667 if test -z "$ac_cpp_err"; then
26668 ac_header_preproc=yes
26670 echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26673 ac_header_preproc=no
26675 rm -f conftest.err conftest.$ac_ext
26676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26677 echo "${ECHO_T}$ac_header_preproc" >&6
26679 # So? What about this header?
26680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26686 ac_header_preproc=yes
26689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26703 ## ------------------------------------------ ##
26704 ## Report this to the AC_PACKAGE_NAME lists. ##
26705 ## ------------------------------------------ ##
26708 sed "s/^/$as_me: WARNING: /" >&2
26711 echo "$as_me:$LINENO: checking for $ac_header" >&5
26712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26714 echo $ECHO_N "(cached) $ECHO_C" >&6
26716 eval "$as_ac_Header=\$ac_header_preproc"
26718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26723 cat >>confdefs.h <<_ACEOF
26724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26731 if test "$ac_cv_header_regex_h" != yes ; then
26732 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26733 echo "$as_me: error: POSIX regex.h required." >&2;}
26734 { (exit 1); exit 1; }; }
26736 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26737 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26738 if test "${ac_cv_search_regfree+set}" = set; then
26739 echo $ECHO_N "(cached) $ECHO_C" >&6
26741 ac_func_search_save_LIBS=$LIBS
26742 ac_cv_search_regfree=no
26743 cat >conftest.$ac_ext <<_ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26750 /* Override any gcc2 internal prototype to avoid an error. */
26754 /* We use char because int might match the return type of a gcc2
26755 builtin and then its argument prototype would still apply. */
26765 rm -f conftest.$ac_objext conftest$ac_exeext
26766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26767 (eval $ac_link) 2>conftest.er1
26769 grep -v '^ *+' conftest.er1 >conftest.err
26771 cat conftest.err >&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } &&
26774 { ac_try='test -z "$ac_c_werror_flag"
26775 || test ! -s conftest.err'
26776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777 (eval $ac_try) 2>&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); }; } &&
26781 { ac_try='test -s conftest$ac_exeext'
26782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26783 (eval $ac_try) 2>&5
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); }; }; then
26787 ac_cv_search_regfree="none required"
26789 echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26793 rm -f conftest.err conftest.$ac_objext \
26794 conftest$ac_exeext conftest.$ac_ext
26795 if test "$ac_cv_search_regfree" = no; then
26796 for ac_lib in regex gnuregex; do
26797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26798 cat >conftest.$ac_ext <<_ACEOF
26801 cat confdefs.h >>conftest.$ac_ext
26802 cat >>conftest.$ac_ext <<_ACEOF
26803 /* end confdefs.h. */
26805 /* Override any gcc2 internal prototype to avoid an error. */
26809 /* We use char because int might match the return type of a gcc2
26810 builtin and then its argument prototype would still apply. */
26820 rm -f conftest.$ac_objext conftest$ac_exeext
26821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26822 (eval $ac_link) 2>conftest.er1
26824 grep -v '^ *+' conftest.er1 >conftest.err
26826 cat conftest.err >&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } &&
26829 { ac_try='test -z "$ac_c_werror_flag"
26830 || test ! -s conftest.err'
26831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26832 (eval $ac_try) 2>&5
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); }; } &&
26836 { ac_try='test -s conftest$ac_exeext'
26837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26838 (eval $ac_try) 2>&5
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); }; }; then
26842 ac_cv_search_regfree="-l$ac_lib"
26845 echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26849 rm -f conftest.err conftest.$ac_objext \
26850 conftest$ac_exeext conftest.$ac_ext
26853 LIBS=$ac_func_search_save_LIBS
26855 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26856 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26857 if test "$ac_cv_search_regfree" != no; then
26858 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26861 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26862 echo "$as_me: error: POSIX regex required." >&2;}
26863 { (exit 1); exit 1; }; }
26868 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26869 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26870 if test "${ol_cv_c_posix_regex+set}" = set; then
26871 echo $ECHO_N "(cached) $ECHO_C" >&6
26874 if test "$cross_compiling" = yes; then
26875 ol_cv_c_posix_regex=cross
26877 cat >conftest.$ac_ext <<_ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h. */
26884 #include <sys/types.h>
26886 static char *pattern, *string;
26894 if(regcomp(&re, pattern, 0)) {
26898 string = "ALL MATCH";
26900 rc = regexec(&re, string, 0, (void*)0, 0);
26907 rm -f conftest$ac_exeext
26908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26909 (eval $ac_link) 2>&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914 (eval $ac_try) 2>&5
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26918 ol_cv_c_posix_regex=yes
26920 echo "$as_me: program exited with status $ac_status" >&5
26921 echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26924 ( exit $ac_status )
26925 ol_cv_c_posix_regex=no
26927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26930 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26931 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26933 if test "$ol_cv_c_posix_regex" = no ; then
26934 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26935 echo "$as_me: error: broken POSIX regex!" >&2;}
26936 { (exit 1); exit 1; }; }
26942 for ac_header in sys/uuid.h
26944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26946 echo "$as_me:$LINENO: checking for $ac_header" >&5
26947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26949 echo $ECHO_N "(cached) $ECHO_C" >&6
26951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26954 # Is the header compilable?
26955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26957 cat >conftest.$ac_ext <<_ACEOF
26960 cat confdefs.h >>conftest.$ac_ext
26961 cat >>conftest.$ac_ext <<_ACEOF
26962 /* end confdefs.h. */
26963 $ac_includes_default
26964 #include <$ac_header>
26966 rm -f conftest.$ac_objext
26967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26968 (eval $ac_compile) 2>conftest.er1
26970 grep -v '^ *+' conftest.er1 >conftest.err
26972 cat conftest.err >&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } &&
26975 { ac_try='test -z "$ac_c_werror_flag"
26976 || test ! -s conftest.err'
26977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26978 (eval $ac_try) 2>&5
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); }; } &&
26982 { ac_try='test -s conftest.$ac_objext'
26983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984 (eval $ac_try) 2>&5
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); }; }; then
26988 ac_header_compiler=yes
26990 echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26993 ac_header_compiler=no
26995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26997 echo "${ECHO_T}$ac_header_compiler" >&6
26999 # Is the header present?
27000 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27002 cat >conftest.$ac_ext <<_ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h. */
27008 #include <$ac_header>
27010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27013 grep -v '^ *+' conftest.er1 >conftest.err
27015 cat conftest.err >&5
27016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017 (exit $ac_status); } >/dev/null; then
27018 if test -s conftest.err; then
27019 ac_cpp_err=$ac_c_preproc_warn_flag
27020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27027 if test -z "$ac_cpp_err"; then
27028 ac_header_preproc=yes
27030 echo "$as_me: failed program was:" >&5
27031 sed 's/^/| /' conftest.$ac_ext >&5
27033 ac_header_preproc=no
27035 rm -f conftest.err conftest.$ac_ext
27036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27037 echo "${ECHO_T}$ac_header_preproc" >&6
27039 # So? What about this header?
27040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27046 ac_header_preproc=yes
27049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27063 ## ------------------------------------------ ##
27064 ## Report this to the AC_PACKAGE_NAME lists. ##
27065 ## ------------------------------------------ ##
27068 sed "s/^/$as_me: WARNING: /" >&2
27071 echo "$as_me:$LINENO: checking for $ac_header" >&5
27072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27076 eval "$as_ac_Header=\$ac_header_preproc"
27078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27083 cat >>confdefs.h <<_ACEOF
27084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27091 if test $ac_cv_header_sys_uuid_h = yes ; then
27093 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27094 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27095 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27096 echo $ECHO_N "(cached) $ECHO_C" >&6
27098 ac_func_search_save_LIBS=$LIBS
27099 ac_cv_search_uuid_to_str=no
27100 cat >conftest.$ac_ext <<_ACEOF
27103 cat confdefs.h >>conftest.$ac_ext
27104 cat >>conftest.$ac_ext <<_ACEOF
27105 /* end confdefs.h. */
27107 /* Override any gcc2 internal prototype to avoid an error. */
27111 /* We use char because int might match the return type of a gcc2
27112 builtin and then its argument prototype would still apply. */
27113 char uuid_to_str ();
27122 rm -f conftest.$ac_objext conftest$ac_exeext
27123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27124 (eval $ac_link) 2>conftest.er1
27126 grep -v '^ *+' conftest.er1 >conftest.err
27128 cat conftest.err >&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } &&
27131 { ac_try='test -z "$ac_c_werror_flag"
27132 || test ! -s conftest.err'
27133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27134 (eval $ac_try) 2>&5
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; } &&
27138 { ac_try='test -s conftest$ac_exeext'
27139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140 (eval $ac_try) 2>&5
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; }; then
27144 ac_cv_search_uuid_to_str="none required"
27146 echo "$as_me: failed program was:" >&5
27147 sed 's/^/| /' conftest.$ac_ext >&5
27150 rm -f conftest.err conftest.$ac_objext \
27151 conftest$ac_exeext conftest.$ac_ext
27152 if test "$ac_cv_search_uuid_to_str" = no; then
27153 for ac_lib in uuid; do
27154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27155 cat >conftest.$ac_ext <<_ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h. */
27162 /* Override any gcc2 internal prototype to avoid an error. */
27166 /* We use char because int might match the return type of a gcc2
27167 builtin and then its argument prototype would still apply. */
27168 char uuid_to_str ();
27177 rm -f conftest.$ac_objext conftest$ac_exeext
27178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27179 (eval $ac_link) 2>conftest.er1
27181 grep -v '^ *+' conftest.er1 >conftest.err
27183 cat conftest.err >&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } &&
27186 { ac_try='test -z "$ac_c_werror_flag"
27187 || test ! -s conftest.err'
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); }; } &&
27193 { ac_try='test -s conftest$ac_exeext'
27194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195 (eval $ac_try) 2>&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; }; then
27199 ac_cv_search_uuid_to_str="-l$ac_lib"
27202 echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27206 rm -f conftest.err conftest.$ac_objext \
27207 conftest$ac_exeext conftest.$ac_ext
27210 LIBS=$ac_func_search_save_LIBS
27212 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27213 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27214 if test "$ac_cv_search_uuid_to_str" != no; then
27215 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27223 if test have_uuid = yes ; then
27225 cat >>confdefs.h <<\_ACEOF
27226 #define HAVE_UUID_TO_STR 1
27230 test "$ac_cv_search_uuid_to_str" = "none required" || \
27231 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27235 if test $have_uuid = no ; then
27236 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27237 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27239 LIBS="$LIBS -lrpcrt4"
27240 cat >conftest.$ac_ext <<_ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27247 int __stdcall UuidCreate(void *);
27248 int __stdcall UuidToStringA(void *,void **);
27255 UuidToStringA(0,0);
27261 rm -f conftest.$ac_objext conftest$ac_exeext
27262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27263 (eval $ac_link) 2>conftest.er1
27265 grep -v '^ *+' conftest.er1 >conftest.err
27267 cat conftest.err >&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } &&
27270 { ac_try='test -z "$ac_c_werror_flag"
27271 || test ! -s conftest.err'
27272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27273 (eval $ac_try) 2>&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; } &&
27277 { ac_try='test -s conftest$ac_exeext'
27278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27279 (eval $ac_try) 2>&5
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); }; }; then
27285 echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27290 rm -f conftest.err conftest.$ac_objext \
27291 conftest$ac_exeext conftest.$ac_ext
27292 if test $need_rpcrt = yes; then
27293 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27296 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27297 echo "${ECHO_T}$need_rpcrt" >&6
27300 ol_cv_lib_resolver=no
27301 if test $ol_cv_lib_resolver = no ; then
27302 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27303 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27304 if test "${ol_cv_resolver_none+set}" = set; then
27305 echo $ECHO_N "(cached) $ECHO_C" >&6
27310 LIBS="$ol_RESOLVER_LIB $LIBS"
27312 cat >conftest.$ac_ext <<_ACEOF
27315 cat confdefs.h >>conftest.$ac_ext
27316 cat >>conftest.$ac_ext <<_ACEOF
27317 /* end confdefs.h. */
27319 #ifdef HAVE_SYS_TYPES_H
27320 # include <sys/types.h>
27322 #include <netinet/in.h>
27323 #ifdef HAVE_ARPA_NAMESER_H
27324 # include <arpa/nameser.h>
27326 #ifdef HAVE_RESOLV_H
27327 # include <resolv.h>
27335 char *request = NULL;
27336 unsigned char reply[64*1024];
27337 unsigned char host[64*1024];
27341 /* Bind 8/9 interface */
27342 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27344 /* Bind 4 interface */
27348 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27352 /* Bind 8/9 interface */
27354 #elif defined(HFIXEDSZ)
27355 /* Bind 4 interface w/ HFIXEDSZ */
27358 /* Bind 4 interface w/o HFIXEDSZ */
27359 p += sizeof(HEADER);
27361 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27367 rm -f conftest.$ac_objext conftest$ac_exeext
27368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27369 (eval $ac_link) 2>conftest.er1
27371 grep -v '^ *+' conftest.er1 >conftest.err
27373 cat conftest.err >&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); } &&
27376 { ac_try='test -z "$ac_c_werror_flag"
27377 || test ! -s conftest.err'
27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379 (eval $ac_try) 2>&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; } &&
27383 { ac_try='test -s conftest$ac_exeext'
27384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385 (eval $ac_try) 2>&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); }; }; then
27389 ol_cv_resolver_none=yes
27391 echo "$as_me: failed program was:" >&5
27392 sed 's/^/| /' conftest.$ac_ext >&5
27394 ol_cv_resolver_none=no
27396 rm -f conftest.err conftest.$ac_objext \
27397 conftest$ac_exeext conftest.$ac_ext
27402 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27403 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27405 if test $ol_cv_resolver_none = yes ; then
27406 ol_cv_lib_resolver=yes
27410 if test $ol_cv_lib_resolver = no ; then
27411 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27412 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27413 if test "${ol_cv_resolver_resolv+set}" = set; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27417 ol_RESOLVER_LIB=-lresolv
27419 LIBS="$ol_RESOLVER_LIB $LIBS"
27421 cat >conftest.$ac_ext <<_ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h. */
27428 #ifdef HAVE_SYS_TYPES_H
27429 # include <sys/types.h>
27431 #include <netinet/in.h>
27432 #ifdef HAVE_ARPA_NAMESER_H
27433 # include <arpa/nameser.h>
27435 #ifdef HAVE_RESOLV_H
27436 # include <resolv.h>
27444 char *request = NULL;
27445 unsigned char reply[64*1024];
27446 unsigned char host[64*1024];
27450 /* Bind 8/9 interface */
27451 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27453 /* Bind 4 interface */
27457 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27461 /* Bind 8/9 interface */
27463 #elif defined(HFIXEDSZ)
27464 /* Bind 4 interface w/ HFIXEDSZ */
27467 /* Bind 4 interface w/o HFIXEDSZ */
27468 p += sizeof(HEADER);
27470 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27476 rm -f conftest.$ac_objext conftest$ac_exeext
27477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27478 (eval $ac_link) 2>conftest.er1
27480 grep -v '^ *+' conftest.er1 >conftest.err
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } &&
27485 { ac_try='test -z "$ac_c_werror_flag"
27486 || test ! -s conftest.err'
27487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488 (eval $ac_try) 2>&5
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); }; } &&
27492 { ac_try='test -s conftest$ac_exeext'
27493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494 (eval $ac_try) 2>&5
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; }; then
27498 ol_cv_resolver_resolv=yes
27500 echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27503 ol_cv_resolver_resolv=no
27505 rm -f conftest.err conftest.$ac_objext \
27506 conftest$ac_exeext conftest.$ac_ext
27511 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27512 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27514 if test $ol_cv_resolver_resolv = yes ; then
27515 ol_cv_lib_resolver=-lresolv
27519 if test $ol_cv_lib_resolver = no ; then
27520 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27521 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27522 if test "${ol_cv_resolver_bind+set}" = set; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27526 ol_RESOLVER_LIB=-lbind
27528 LIBS="$ol_RESOLVER_LIB $LIBS"
27530 cat >conftest.$ac_ext <<_ACEOF
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h. */
27537 #ifdef HAVE_SYS_TYPES_H
27538 # include <sys/types.h>
27540 #include <netinet/in.h>
27541 #ifdef HAVE_ARPA_NAMESER_H
27542 # include <arpa/nameser.h>
27544 #ifdef HAVE_RESOLV_H
27545 # include <resolv.h>
27553 char *request = NULL;
27554 unsigned char reply[64*1024];
27555 unsigned char host[64*1024];
27559 /* Bind 8/9 interface */
27560 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27562 /* Bind 4 interface */
27566 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27570 /* Bind 8/9 interface */
27572 #elif defined(HFIXEDSZ)
27573 /* Bind 4 interface w/ HFIXEDSZ */
27576 /* Bind 4 interface w/o HFIXEDSZ */
27577 p += sizeof(HEADER);
27579 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27585 rm -f conftest.$ac_objext conftest$ac_exeext
27586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27587 (eval $ac_link) 2>conftest.er1
27589 grep -v '^ *+' conftest.er1 >conftest.err
27591 cat conftest.err >&5
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); } &&
27594 { ac_try='test -z "$ac_c_werror_flag"
27595 || test ! -s conftest.err'
27596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597 (eval $ac_try) 2>&5
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; } &&
27601 { ac_try='test -s conftest$ac_exeext'
27602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603 (eval $ac_try) 2>&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; }; then
27607 ol_cv_resolver_bind=yes
27609 echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.$ac_ext >&5
27612 ol_cv_resolver_bind=no
27614 rm -f conftest.err conftest.$ac_objext \
27615 conftest$ac_exeext conftest.$ac_ext
27620 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27621 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27623 if test $ol_cv_resolver_bind = yes ; then
27624 ol_cv_lib_resolver=-lbind
27631 if test "$ol_cv_lib_resolver" != no ; then
27633 cat >>confdefs.h <<\_ACEOF
27634 #define HAVE_RES_QUERY 1
27638 if test "$ol_enable_dnssrv" != no ; then
27642 if test "$ol_cv_lib_resolver" != yes ; then
27643 LIBS="$ol_cv_lib_resolver $LIBS"
27647 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27648 if test "$ol_link_dnssrv" = no ; then
27649 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27650 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27651 { (exit 1); exit 1; }; }
27654 ol_enable_dnssrv=no
27658 for ac_func in hstrerror
27660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27661 echo "$as_me:$LINENO: checking for $ac_func" >&5
27662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27663 if eval "test \"\${$as_ac_var+set}\" = set"; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27666 cat >conftest.$ac_ext <<_ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h. */
27672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27674 #define $ac_func innocuous_$ac_func
27676 /* System header to define __stub macros and hopefully few prototypes,
27677 which can conflict with char $ac_func (); below.
27678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27679 <limits.h> exists even on freestanding compilers. */
27682 # include <limits.h>
27684 # include <assert.h>
27689 /* Override any gcc2 internal prototype to avoid an error. */
27694 /* We use char because int might match the return type of a gcc2
27695 builtin and then its argument prototype would still apply. */
27697 /* The GNU C library defines this for functions which it implements
27698 to always fail with ENOSYS. Some functions are actually named
27699 something starting with __ and the normal name is an alias. */
27700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27703 char (*f) () = $ac_func;
27712 return f != $ac_func;
27717 rm -f conftest.$ac_objext conftest$ac_exeext
27718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27719 (eval $ac_link) 2>conftest.er1
27721 grep -v '^ *+' conftest.er1 >conftest.err
27723 cat conftest.err >&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); } &&
27726 { ac_try='test -z "$ac_c_werror_flag"
27727 || test ! -s conftest.err'
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; } &&
27733 { ac_try='test -s conftest$ac_exeext'
27734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27735 (eval $ac_try) 2>&5
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); }; }; then
27739 eval "$as_ac_var=yes"
27741 echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27744 eval "$as_ac_var=no"
27746 rm -f conftest.err conftest.$ac_objext \
27747 conftest$ac_exeext conftest.$ac_ext
27749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27751 if test `eval echo '${'$as_ac_var'}'` = yes; then
27752 cat >>confdefs.h <<_ACEOF
27753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27764 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27767 echo "$as_me:$LINENO: checking for $ac_func" >&5
27768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27769 if eval "test \"\${$as_ac_var+set}\" = set"; then
27770 echo $ECHO_N "(cached) $ECHO_C" >&6
27772 cat >conftest.$ac_ext <<_ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h. */
27778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27780 #define $ac_func innocuous_$ac_func
27782 /* System header to define __stub macros and hopefully few prototypes,
27783 which can conflict with char $ac_func (); below.
27784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27785 <limits.h> exists even on freestanding compilers. */
27788 # include <limits.h>
27790 # include <assert.h>
27795 /* Override any gcc2 internal prototype to avoid an error. */
27800 /* We use char because int might match the return type of a gcc2
27801 builtin and then its argument prototype would still apply. */
27803 /* The GNU C library defines this for functions which it implements
27804 to always fail with ENOSYS. Some functions are actually named
27805 something starting with __ and the normal name is an alias. */
27806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27809 char (*f) () = $ac_func;
27818 return f != $ac_func;
27823 rm -f conftest.$ac_objext conftest$ac_exeext
27824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27825 (eval $ac_link) 2>conftest.er1
27827 grep -v '^ *+' conftest.er1 >conftest.err
27829 cat conftest.err >&5
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); } &&
27832 { ac_try='test -z "$ac_c_werror_flag"
27833 || test ! -s conftest.err'
27834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835 (eval $ac_try) 2>&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; } &&
27839 { ac_try='test -s conftest$ac_exeext'
27840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841 (eval $ac_try) 2>&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); }; }; then
27845 eval "$as_ac_var=yes"
27847 echo "$as_me: failed program was:" >&5
27848 sed 's/^/| /' conftest.$ac_ext >&5
27850 eval "$as_ac_var=no"
27852 rm -f conftest.err conftest.$ac_objext \
27853 conftest$ac_exeext conftest.$ac_ext
27855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27857 if test `eval echo '${'$as_ac_var'}'` = yes; then
27858 cat >>confdefs.h <<_ACEOF
27859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27867 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27868 if test $ol_enable_ipv6 = yes ; then
27869 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27870 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27871 { (exit 1); exit 1; }; }
27873 elif test $ol_enable_ipv6 != no ; then
27874 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27875 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27876 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27877 echo $ECHO_N "(cached) $ECHO_C" >&6
27880 cat >conftest.$ac_ext <<_ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h. */
27887 # include <netinet/in.h>
27888 # ifdef INET6_ADDRSTRLEN
27889 __has_inet6_addrstrlen__;
27893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27894 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27895 ol_cv_inet6_addrstrlen=yes
27897 ol_cv_inet6_addrstrlen=no
27902 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27903 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27906 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27907 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27908 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27909 echo $ECHO_N "(cached) $ECHO_C" >&6
27912 cat >conftest.$ac_ext <<_ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h. */
27919 #include <sys/types.h>
27920 #include <sys/socket.h>
27926 struct sockaddr_storage ss;
27932 rm -f conftest.$ac_objext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27934 (eval $ac_compile) 2>conftest.er1
27936 grep -v '^ *+' conftest.er1 >conftest.err
27938 cat conftest.err >&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
27941 { ac_try='test -z "$ac_c_werror_flag"
27942 || test ! -s conftest.err'
27943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944 (eval $ac_try) 2>&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); }; } &&
27948 { ac_try='test -s conftest.$ac_objext'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
27954 ol_cv_struct_sockaddr_storage=yes
27956 echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27959 ol_cv_struct_sockaddr_storage=no
27961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27963 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27964 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27966 if test $ol_cv_inet6_addrstrlen = yes \
27967 -a $ol_cv_struct_sockaddr_storage = yes ; then
27969 elif test $ol_enable_ipv6 = yes \
27970 -a $ol_cv_inet6_addrstrlen = no ; then
27971 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27972 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27973 { (exit 1); exit 1; }; }
27974 elif test $ol_enable_ipv6 = yes \
27975 -a $ol_cv_struct_sockaddr_storage = no ; then
27976 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27977 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27978 { (exit 1); exit 1; }; }
27982 if test $ol_enable_local != no ; then
27984 for ac_header in sys/un.h
27986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27988 echo "$as_me:$LINENO: checking for $ac_header" >&5
27989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27991 echo $ECHO_N "(cached) $ECHO_C" >&6
27993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27996 # Is the header compilable?
27997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27999 cat >conftest.$ac_ext <<_ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h. */
28005 $ac_includes_default
28006 #include <$ac_header>
28008 rm -f conftest.$ac_objext
28009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28010 (eval $ac_compile) 2>conftest.er1
28012 grep -v '^ *+' conftest.er1 >conftest.err
28014 cat conftest.err >&5
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); } &&
28017 { ac_try='test -z "$ac_c_werror_flag"
28018 || test ! -s conftest.err'
28019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020 (eval $ac_try) 2>&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); }; } &&
28024 { ac_try='test -s conftest.$ac_objext'
28025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28026 (eval $ac_try) 2>&5
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); }; }; then
28030 ac_header_compiler=yes
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28035 ac_header_compiler=no
28037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28039 echo "${ECHO_T}$ac_header_compiler" >&6
28041 # Is the header present?
28042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28044 cat >conftest.$ac_ext <<_ACEOF
28047 cat confdefs.h >>conftest.$ac_ext
28048 cat >>conftest.$ac_ext <<_ACEOF
28049 /* end confdefs.h. */
28050 #include <$ac_header>
28052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28055 grep -v '^ *+' conftest.er1 >conftest.err
28057 cat conftest.err >&5
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); } >/dev/null; then
28060 if test -s conftest.err; then
28061 ac_cpp_err=$ac_c_preproc_warn_flag
28062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28069 if test -z "$ac_cpp_err"; then
28070 ac_header_preproc=yes
28072 echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28075 ac_header_preproc=no
28077 rm -f conftest.err conftest.$ac_ext
28078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28079 echo "${ECHO_T}$ac_header_preproc" >&6
28081 # So? What about this header?
28082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28088 ac_header_preproc=yes
28091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28105 ## ------------------------------------------ ##
28106 ## Report this to the AC_PACKAGE_NAME lists. ##
28107 ## ------------------------------------------ ##
28110 sed "s/^/$as_me: WARNING: /" >&2
28113 echo "$as_me:$LINENO: checking for $ac_header" >&5
28114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28116 echo $ECHO_N "(cached) $ECHO_C" >&6
28118 eval "$as_ac_Header=\$ac_header_preproc"
28120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28125 cat >>confdefs.h <<_ACEOF
28126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28134 if test $ol_enable_local = auto ; then
28135 ol_enable_local=$ac_cv_header_sys_un_h
28136 elif test $ac_cv_header_sys_un_h = no ; then
28137 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28138 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28139 { (exit 1); exit 1; }; }
28147 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28148 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28149 -o $ol_with_kerberos = k425 ; then
28152 for ac_header in krb5.h
28154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28156 echo "$as_me:$LINENO: checking for $ac_header" >&5
28157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28159 echo $ECHO_N "(cached) $ECHO_C" >&6
28161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28164 # Is the header compilable?
28165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28167 cat >conftest.$ac_ext <<_ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h. */
28173 $ac_includes_default
28174 #include <$ac_header>
28176 rm -f conftest.$ac_objext
28177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28178 (eval $ac_compile) 2>conftest.er1
28180 grep -v '^ *+' conftest.er1 >conftest.err
28182 cat conftest.err >&5
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); } &&
28185 { ac_try='test -z "$ac_c_werror_flag"
28186 || test ! -s conftest.err'
28187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28188 (eval $ac_try) 2>&5
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; } &&
28192 { ac_try='test -s conftest.$ac_objext'
28193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194 (eval $ac_try) 2>&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; }; then
28198 ac_header_compiler=yes
28200 echo "$as_me: failed program was:" >&5
28201 sed 's/^/| /' conftest.$ac_ext >&5
28203 ac_header_compiler=no
28205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28207 echo "${ECHO_T}$ac_header_compiler" >&6
28209 # Is the header present?
28210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28212 cat >conftest.$ac_ext <<_ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h. */
28218 #include <$ac_header>
28220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28223 grep -v '^ *+' conftest.er1 >conftest.err
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } >/dev/null; then
28228 if test -s conftest.err; then
28229 ac_cpp_err=$ac_c_preproc_warn_flag
28230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28237 if test -z "$ac_cpp_err"; then
28238 ac_header_preproc=yes
28240 echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28243 ac_header_preproc=no
28245 rm -f conftest.err conftest.$ac_ext
28246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28247 echo "${ECHO_T}$ac_header_preproc" >&6
28249 # So? What about this header?
28250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28256 ac_header_preproc=yes
28259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28273 ## ------------------------------------------ ##
28274 ## Report this to the AC_PACKAGE_NAME lists. ##
28275 ## ------------------------------------------ ##
28278 sed "s/^/$as_me: WARNING: /" >&2
28281 echo "$as_me:$LINENO: checking for $ac_header" >&5
28282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28284 echo $ECHO_N "(cached) $ECHO_C" >&6
28286 eval "$as_ac_Header=\$ac_header_preproc"
28288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28293 cat >>confdefs.h <<_ACEOF
28294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28302 if test $ac_cv_header_krb5_h = yes ; then
28304 for ac_header in heim_err.h
28306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28308 echo "$as_me:$LINENO: checking for $ac_header" >&5
28309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28316 # Is the header compilable?
28317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28319 cat >conftest.$ac_ext <<_ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h. */
28325 $ac_includes_default
28326 #include <$ac_header>
28328 rm -f conftest.$ac_objext
28329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28330 (eval $ac_compile) 2>conftest.er1
28332 grep -v '^ *+' conftest.er1 >conftest.err
28334 cat conftest.err >&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } &&
28337 { ac_try='test -z "$ac_c_werror_flag"
28338 || test ! -s conftest.err'
28339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28340 (eval $ac_try) 2>&5
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); }; } &&
28344 { ac_try='test -s conftest.$ac_objext'
28345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28346 (eval $ac_try) 2>&5
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); }; }; then
28350 ac_header_compiler=yes
28352 echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28355 ac_header_compiler=no
28357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28359 echo "${ECHO_T}$ac_header_compiler" >&6
28361 # Is the header present?
28362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28364 cat >conftest.$ac_ext <<_ACEOF
28367 cat confdefs.h >>conftest.$ac_ext
28368 cat >>conftest.$ac_ext <<_ACEOF
28369 /* end confdefs.h. */
28370 #include <$ac_header>
28372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28375 grep -v '^ *+' conftest.er1 >conftest.err
28377 cat conftest.err >&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } >/dev/null; then
28380 if test -s conftest.err; then
28381 ac_cpp_err=$ac_c_preproc_warn_flag
28382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28389 if test -z "$ac_cpp_err"; then
28390 ac_header_preproc=yes
28392 echo "$as_me: failed program was:" >&5
28393 sed 's/^/| /' conftest.$ac_ext >&5
28395 ac_header_preproc=no
28397 rm -f conftest.err conftest.$ac_ext
28398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28399 echo "${ECHO_T}$ac_header_preproc" >&6
28401 # So? What about this header?
28402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28408 ac_header_preproc=yes
28411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28425 ## ------------------------------------------ ##
28426 ## Report this to the AC_PACKAGE_NAME lists. ##
28427 ## ------------------------------------------ ##
28430 sed "s/^/$as_me: WARNING: /" >&2
28433 echo "$as_me:$LINENO: checking for $ac_header" >&5
28434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28436 echo $ECHO_N "(cached) $ECHO_C" >&6
28438 eval "$as_ac_Header=\$ac_header_preproc"
28440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28445 cat >>confdefs.h <<_ACEOF
28446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28453 if test $ac_cv_header_heim_err_h = yes ; then
28459 if test $krb5_impl = mit; then
28460 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28461 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28462 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28463 echo $ECHO_N "(cached) $ECHO_C" >&6
28465 ac_check_lib_save_LIBS=$LIBS
28466 LIBS="-lk5crypto $LIBS"
28467 cat >conftest.$ac_ext <<_ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h. */
28483 rm -f conftest.$ac_objext conftest$ac_exeext
28484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28485 (eval $ac_link) 2>conftest.er1
28487 grep -v '^ *+' conftest.er1 >conftest.err
28489 cat conftest.err >&5
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); } &&
28492 { ac_try='test -z "$ac_c_werror_flag"
28493 || test ! -s conftest.err'
28494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28495 (eval $ac_try) 2>&5
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); }; } &&
28499 { ac_try='test -s conftest$ac_exeext'
28500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28501 (eval $ac_try) 2>&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; }; then
28505 ac_cv_lib_k5crypto_main=yes
28507 echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28510 ac_cv_lib_k5crypto_main=no
28512 rm -f conftest.err conftest.$ac_objext \
28513 conftest$ac_exeext conftest.$ac_ext
28514 LIBS=$ac_check_lib_save_LIBS
28516 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28517 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28518 if test $ac_cv_lib_k5crypto_main = yes; then
28519 krb5crypto=k5crypto
28525 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28526 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28527 if test "${ac_cv_lib_krb5_main+set}" = set; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28530 ac_check_lib_save_LIBS=$LIBS
28531 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28532 cat >conftest.$ac_ext <<_ACEOF
28535 cat confdefs.h >>conftest.$ac_ext
28536 cat >>conftest.$ac_ext <<_ACEOF
28537 /* end confdefs.h. */
28548 rm -f conftest.$ac_objext conftest$ac_exeext
28549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28550 (eval $ac_link) 2>conftest.er1
28552 grep -v '^ *+' conftest.er1 >conftest.err
28554 cat conftest.err >&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); } &&
28557 { ac_try='test -z "$ac_c_werror_flag"
28558 || test ! -s conftest.err'
28559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560 (eval $ac_try) 2>&5
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; } &&
28564 { ac_try='test -s conftest$ac_exeext'
28565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566 (eval $ac_try) 2>&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; }; then
28570 ac_cv_lib_krb5_main=yes
28572 echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28575 ac_cv_lib_krb5_main=no
28577 rm -f conftest.err conftest.$ac_objext \
28578 conftest$ac_exeext conftest.$ac_ext
28579 LIBS=$ac_check_lib_save_LIBS
28581 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28582 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28583 if test $ac_cv_lib_krb5_main = yes; then
28585 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28591 elif test $krb5_impl = heimdal; then
28592 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28593 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28594 if test "${ac_cv_lib_des_main+set}" = set; then
28595 echo $ECHO_N "(cached) $ECHO_C" >&6
28597 ac_check_lib_save_LIBS=$LIBS
28599 cat >conftest.$ac_ext <<_ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h. */
28615 rm -f conftest.$ac_objext conftest$ac_exeext
28616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28617 (eval $ac_link) 2>conftest.er1
28619 grep -v '^ *+' conftest.er1 >conftest.err
28621 cat conftest.err >&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); } &&
28624 { ac_try='test -z "$ac_c_werror_flag"
28625 || test ! -s conftest.err'
28626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627 (eval $ac_try) 2>&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; } &&
28631 { ac_try='test -s conftest$ac_exeext'
28632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28633 (eval $ac_try) 2>&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); }; }; then
28637 ac_cv_lib_des_main=yes
28639 echo "$as_me: failed program was:" >&5
28640 sed 's/^/| /' conftest.$ac_ext >&5
28642 ac_cv_lib_des_main=no
28644 rm -f conftest.err conftest.$ac_objext \
28645 conftest$ac_exeext conftest.$ac_ext
28646 LIBS=$ac_check_lib_save_LIBS
28648 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28649 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28650 if test $ac_cv_lib_des_main = yes; then
28657 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28658 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28659 if test "${ac_cv_lib_krb5_main+set}" = set; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28662 ac_check_lib_save_LIBS=$LIBS
28663 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28664 cat >conftest.$ac_ext <<_ACEOF
28667 cat confdefs.h >>conftest.$ac_ext
28668 cat >>conftest.$ac_ext <<_ACEOF
28669 /* end confdefs.h. */
28680 rm -f conftest.$ac_objext conftest$ac_exeext
28681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28682 (eval $ac_link) 2>conftest.er1
28684 grep -v '^ *+' conftest.er1 >conftest.err
28686 cat conftest.err >&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } &&
28689 { ac_try='test -z "$ac_c_werror_flag"
28690 || test ! -s conftest.err'
28691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692 (eval $ac_try) 2>&5
28694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); }; } &&
28696 { ac_try='test -s conftest$ac_exeext'
28697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698 (eval $ac_try) 2>&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); }; }; then
28702 ac_cv_lib_krb5_main=yes
28704 echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28707 ac_cv_lib_krb5_main=no
28709 rm -f conftest.err conftest.$ac_objext \
28710 conftest$ac_exeext conftest.$ac_ext
28711 LIBS=$ac_check_lib_save_LIBS
28713 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28714 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28715 if test $ac_cv_lib_krb5_main = yes; then
28717 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28724 cat >>confdefs.h <<\_ACEOF
28725 #define HAVE_HEIMDAL_KERBEROS 1
28731 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28732 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28735 if test $have_krb5 = yes ; then
28739 cat >>confdefs.h <<\_ACEOF
28740 #define HAVE_KRB5 1
28744 if test $ol_with_kerberos = k5only ; then
28745 ol_with_kerberos=found
28748 elif test $ol_with_kerberos != auto ; then
28749 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28750 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28751 { (exit 1); exit 1; }; }
28757 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28758 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28762 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28766 echo "$as_me:$LINENO: checking for $ac_header" >&5
28767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28769 echo $ECHO_N "(cached) $ECHO_C" >&6
28771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28774 # Is the header compilable?
28775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28777 cat >conftest.$ac_ext <<_ACEOF
28780 cat confdefs.h >>conftest.$ac_ext
28781 cat >>conftest.$ac_ext <<_ACEOF
28782 /* end confdefs.h. */
28783 $ac_includes_default
28784 #include <$ac_header>
28786 rm -f conftest.$ac_objext
28787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28788 (eval $ac_compile) 2>conftest.er1
28790 grep -v '^ *+' conftest.er1 >conftest.err
28792 cat conftest.err >&5
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); } &&
28795 { ac_try='test -z "$ac_c_werror_flag"
28796 || test ! -s conftest.err'
28797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798 (eval $ac_try) 2>&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; } &&
28802 { ac_try='test -s conftest.$ac_objext'
28803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28804 (eval $ac_try) 2>&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); }; }; then
28808 ac_header_compiler=yes
28810 echo "$as_me: failed program was:" >&5
28811 sed 's/^/| /' conftest.$ac_ext >&5
28813 ac_header_compiler=no
28815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28817 echo "${ECHO_T}$ac_header_compiler" >&6
28819 # Is the header present?
28820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28822 cat >conftest.$ac_ext <<_ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h. */
28828 #include <$ac_header>
28830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28833 grep -v '^ *+' conftest.er1 >conftest.err
28835 cat conftest.err >&5
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); } >/dev/null; then
28838 if test -s conftest.err; then
28839 ac_cpp_err=$ac_c_preproc_warn_flag
28840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28847 if test -z "$ac_cpp_err"; then
28848 ac_header_preproc=yes
28850 echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28853 ac_header_preproc=no
28855 rm -f conftest.err conftest.$ac_ext
28856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28857 echo "${ECHO_T}$ac_header_preproc" >&6
28859 # So? What about this header?
28860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28866 ac_header_preproc=yes
28869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28883 ## ------------------------------------------ ##
28884 ## Report this to the AC_PACKAGE_NAME lists. ##
28885 ## ------------------------------------------ ##
28888 sed "s/^/$as_me: WARNING: /" >&2
28891 echo "$as_me:$LINENO: checking for $ac_header" >&5
28892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28894 echo $ECHO_N "(cached) $ECHO_C" >&6
28896 eval "$as_ac_Header=\$ac_header_preproc"
28898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28903 cat >>confdefs.h <<_ACEOF
28904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28912 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28913 if test $krb5_impl = mit; then
28914 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28915 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28916 if test "${ac_cv_lib_krb4_main+set}" = set; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28919 ac_check_lib_save_LIBS=$LIBS
28920 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28921 cat >conftest.$ac_ext <<_ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h. */
28937 rm -f conftest.$ac_objext conftest$ac_exeext
28938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28939 (eval $ac_link) 2>conftest.er1
28941 grep -v '^ *+' conftest.er1 >conftest.err
28943 cat conftest.err >&5
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } &&
28946 { ac_try='test -z "$ac_c_werror_flag"
28947 || test ! -s conftest.err'
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; } &&
28953 { ac_try='test -s conftest$ac_exeext'
28954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955 (eval $ac_try) 2>&5
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; }; then
28959 ac_cv_lib_krb4_main=yes
28961 echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28964 ac_cv_lib_krb4_main=no
28966 rm -f conftest.err conftest.$ac_objext \
28967 conftest$ac_exeext conftest.$ac_ext
28968 LIBS=$ac_check_lib_save_LIBS
28970 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28971 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28972 if test $ac_cv_lib_krb4_main = yes; then
28974 KRB4_LIBS="-lkrb4 -ldes425"
28980 elif test $krb5_impl = heimdal; then
28981 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28982 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28983 if test "${ac_cv_lib_krb4_main+set}" = set; then
28984 echo $ECHO_N "(cached) $ECHO_C" >&6
28986 ac_check_lib_save_LIBS=$LIBS
28987 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28988 cat >conftest.$ac_ext <<_ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h. */
29004 rm -f conftest.$ac_objext conftest$ac_exeext
29005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29006 (eval $ac_link) 2>conftest.er1
29008 grep -v '^ *+' conftest.er1 >conftest.err
29010 cat conftest.err >&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } &&
29013 { ac_try='test -z "$ac_c_werror_flag"
29014 || test ! -s conftest.err'
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; } &&
29020 { ac_try='test -s conftest$ac_exeext'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 ac_cv_lib_krb4_main=yes
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29031 ac_cv_lib_krb4_main=no
29033 rm -f conftest.err conftest.$ac_objext \
29034 conftest$ac_exeext conftest.$ac_ext
29035 LIBS=$ac_check_lib_save_LIBS
29037 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29038 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29039 if test $ac_cv_lib_krb4_main = yes; then
29049 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
29050 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
29053 if test $have_k425 = yes ; then
29054 ol_with_kerberos=found
29058 cat >>confdefs.h <<\_ACEOF
29059 #define HAVE_KRB425 1
29063 cat >>confdefs.h <<\_ACEOF
29064 #define HAVE_KRB4 1
29068 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
29069 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
29070 if test "${ol_cv_var_des_debug+set}" = set; then
29071 echo $ECHO_N "(cached) $ECHO_C" >&6
29075 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
29076 cat >conftest.$ac_ext <<_ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h. */
29083 #include <kerberosIV/krb.h>
29084 #include <kerberosIV/des.h>
29085 extern int des_debug;
29097 rm -f conftest.$ac_objext conftest$ac_exeext
29098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29099 (eval $ac_link) 2>conftest.er1
29101 grep -v '^ *+' conftest.er1 >conftest.err
29103 cat conftest.err >&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); } &&
29106 { ac_try='test -z "$ac_c_werror_flag"
29107 || test ! -s conftest.err'
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); }; } &&
29113 { ac_try='test -s conftest$ac_exeext'
29114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115 (eval $ac_try) 2>&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; }; then
29119 ol_cv_var_des_debug=yes
29121 echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29124 ol_cv_var_des_debug=no
29126 rm -f conftest.err conftest.$ac_objext \
29127 conftest$ac_exeext conftest.$ac_ext
29131 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29132 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29134 if test $ol_cv_var_des_debug = yes ; then
29136 cat >>confdefs.h <<\_ACEOF
29137 #define HAVE_DES_DEBUG 1
29147 if test $ol_link_krb5 = yes ; then
29148 ol_with_kerberos=found
29151 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29152 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29157 for ac_header in krb.h des.h krb-archaeology.h
29159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29161 echo "$as_me:$LINENO: checking for $ac_header" >&5
29162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29164 echo $ECHO_N "(cached) $ECHO_C" >&6
29166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29169 # Is the header compilable?
29170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29172 cat >conftest.$ac_ext <<_ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h. */
29178 $ac_includes_default
29179 #include <$ac_header>
29181 rm -f conftest.$ac_objext
29182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29183 (eval $ac_compile) 2>conftest.er1
29185 grep -v '^ *+' conftest.er1 >conftest.err
29187 cat conftest.err >&5
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); } &&
29190 { ac_try='test -z "$ac_c_werror_flag"
29191 || test ! -s conftest.err'
29192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29193 (eval $ac_try) 2>&5
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); }; } &&
29197 { ac_try='test -s conftest.$ac_objext'
29198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199 (eval $ac_try) 2>&5
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); }; }; then
29203 ac_header_compiler=yes
29205 echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29208 ac_header_compiler=no
29210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29212 echo "${ECHO_T}$ac_header_compiler" >&6
29214 # Is the header present?
29215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29217 cat >conftest.$ac_ext <<_ACEOF
29220 cat confdefs.h >>conftest.$ac_ext
29221 cat >>conftest.$ac_ext <<_ACEOF
29222 /* end confdefs.h. */
29223 #include <$ac_header>
29225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29228 grep -v '^ *+' conftest.er1 >conftest.err
29230 cat conftest.err >&5
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); } >/dev/null; then
29233 if test -s conftest.err; then
29234 ac_cpp_err=$ac_c_preproc_warn_flag
29235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29242 if test -z "$ac_cpp_err"; then
29243 ac_header_preproc=yes
29245 echo "$as_me: failed program was:" >&5
29246 sed 's/^/| /' conftest.$ac_ext >&5
29248 ac_header_preproc=no
29250 rm -f conftest.err conftest.$ac_ext
29251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29252 echo "${ECHO_T}$ac_header_preproc" >&6
29254 # So? What about this header?
29255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29261 ac_header_preproc=yes
29264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29278 ## ------------------------------------------ ##
29279 ## Report this to the AC_PACKAGE_NAME lists. ##
29280 ## ------------------------------------------ ##
29283 sed "s/^/$as_me: WARNING: /" >&2
29286 echo "$as_me:$LINENO: checking for $ac_header" >&5
29287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29289 echo $ECHO_N "(cached) $ECHO_C" >&6
29291 eval "$as_ac_Header=\$ac_header_preproc"
29293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29298 cat >>confdefs.h <<_ACEOF
29299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29307 if test $ac_cv_header_krb_h = yes ; then
29308 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29309 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29310 if test "${ac_cv_lib_krb_main+set}" = set; then
29311 echo $ECHO_N "(cached) $ECHO_C" >&6
29313 ac_check_lib_save_LIBS=$LIBS
29314 LIBS="-lkrb -ldes $LIBS"
29315 cat >conftest.$ac_ext <<_ACEOF
29318 cat confdefs.h >>conftest.$ac_ext
29319 cat >>conftest.$ac_ext <<_ACEOF
29320 /* end confdefs.h. */
29331 rm -f conftest.$ac_objext conftest$ac_exeext
29332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29333 (eval $ac_link) 2>conftest.er1
29335 grep -v '^ *+' conftest.er1 >conftest.err
29337 cat conftest.err >&5
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); } &&
29340 { ac_try='test -z "$ac_c_werror_flag"
29341 || test ! -s conftest.err'
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; } &&
29347 { ac_try='test -s conftest$ac_exeext'
29348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349 (eval $ac_try) 2>&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; }; then
29353 ac_cv_lib_krb_main=yes
29355 echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29358 ac_cv_lib_krb_main=no
29360 rm -f conftest.err conftest.$ac_objext \
29361 conftest$ac_exeext conftest.$ac_ext
29362 LIBS=$ac_check_lib_save_LIBS
29364 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29365 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29366 if test $ac_cv_lib_krb_main = yes; then
29373 if test $have_k4 = yes ; then
29374 ol_with_kerberos=found
29378 cat >>confdefs.h <<\_ACEOF
29379 #define HAVE_KRB4 1
29383 KRB4_LIBS="-lkrb -ldes"
29385 if test $ac_cv_header_krb_archaeology_h = yes ; then
29387 cat >>confdefs.h <<\_ACEOF
29388 #define HAVE_KTH_KERBEROS 1
29396 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29399 elif test $ol_enable_kbind = yes ; then
29400 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29401 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29402 { (exit 1); exit 1; }; }
29405 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29407 cat >>confdefs.h <<\_ACEOF
29408 #define HAVE_KERBEROS 1
29412 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29413 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29414 echo "$as_me: error: Kerberos detection failed" >&2;}
29415 { (exit 1); exit 1; }; }
29420 if test $ol_with_tls != no ; then
29423 for ac_header in openssl/ssl.h ssl.h
29425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29427 echo "$as_me:$LINENO: checking for $ac_header" >&5
29428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29430 echo $ECHO_N "(cached) $ECHO_C" >&6
29432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29435 # Is the header compilable?
29436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29438 cat >conftest.$ac_ext <<_ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h. */
29444 $ac_includes_default
29445 #include <$ac_header>
29447 rm -f conftest.$ac_objext
29448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29449 (eval $ac_compile) 2>conftest.er1
29451 grep -v '^ *+' conftest.er1 >conftest.err
29453 cat conftest.err >&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } &&
29456 { ac_try='test -z "$ac_c_werror_flag"
29457 || test ! -s conftest.err'
29458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459 (eval $ac_try) 2>&5
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); }; } &&
29463 { ac_try='test -s conftest.$ac_objext'
29464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465 (eval $ac_try) 2>&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; }; then
29469 ac_header_compiler=yes
29471 echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29474 ac_header_compiler=no
29476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29478 echo "${ECHO_T}$ac_header_compiler" >&6
29480 # Is the header present?
29481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29483 cat >conftest.$ac_ext <<_ACEOF
29486 cat confdefs.h >>conftest.$ac_ext
29487 cat >>conftest.$ac_ext <<_ACEOF
29488 /* end confdefs.h. */
29489 #include <$ac_header>
29491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29494 grep -v '^ *+' conftest.er1 >conftest.err
29496 cat conftest.err >&5
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); } >/dev/null; then
29499 if test -s conftest.err; then
29500 ac_cpp_err=$ac_c_preproc_warn_flag
29501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29508 if test -z "$ac_cpp_err"; then
29509 ac_header_preproc=yes
29511 echo "$as_me: failed program was:" >&5
29512 sed 's/^/| /' conftest.$ac_ext >&5
29514 ac_header_preproc=no
29516 rm -f conftest.err conftest.$ac_ext
29517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29518 echo "${ECHO_T}$ac_header_preproc" >&6
29520 # So? What about this header?
29521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29527 ac_header_preproc=yes
29530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29544 ## ------------------------------------------ ##
29545 ## Report this to the AC_PACKAGE_NAME lists. ##
29546 ## ------------------------------------------ ##
29549 sed "s/^/$as_me: WARNING: /" >&2
29552 echo "$as_me:$LINENO: checking for $ac_header" >&5
29553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29555 echo $ECHO_N "(cached) $ECHO_C" >&6
29557 eval "$as_ac_Header=\$ac_header_preproc"
29559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29564 cat >>confdefs.h <<_ACEOF
29565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29573 if test $ac_cv_header_openssl_ssl_h = yes \
29574 -o $ac_cv_header_ssl_h = yes ; then
29575 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29576 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29577 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29578 echo $ECHO_N "(cached) $ECHO_C" >&6
29580 ac_check_lib_save_LIBS=$LIBS
29581 LIBS="-lssl -lcrypto $LIBS"
29582 cat >conftest.$ac_ext <<_ACEOF
29585 cat confdefs.h >>conftest.$ac_ext
29586 cat >>conftest.$ac_ext <<_ACEOF
29587 /* end confdefs.h. */
29589 /* Override any gcc2 internal prototype to avoid an error. */
29593 /* We use char because int might match the return type of a gcc2
29594 builtin and then its argument prototype would still apply. */
29595 char SSLeay_add_ssl_algorithms ();
29599 SSLeay_add_ssl_algorithms ();
29604 rm -f conftest.$ac_objext conftest$ac_exeext
29605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29606 (eval $ac_link) 2>conftest.er1
29608 grep -v '^ *+' conftest.er1 >conftest.err
29610 cat conftest.err >&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } &&
29613 { ac_try='test -z "$ac_c_werror_flag"
29614 || test ! -s conftest.err'
29615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29616 (eval $ac_try) 2>&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; } &&
29620 { ac_try='test -s conftest$ac_exeext'
29621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622 (eval $ac_try) 2>&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; }; then
29626 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29628 echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29631 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29633 rm -f conftest.err conftest.$ac_objext \
29634 conftest$ac_exeext conftest.$ac_ext
29635 LIBS=$ac_check_lib_save_LIBS
29637 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29638 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29639 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29647 if test $have_ssleay = no ; then
29648 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29649 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29650 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29651 echo $ECHO_N "(cached) $ECHO_C" >&6
29653 ac_check_lib_save_LIBS=$LIBS
29654 LIBS="-lssl -lcrypto $LIBS"
29655 cat >conftest.$ac_ext <<_ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h. */
29662 /* Override any gcc2 internal prototype to avoid an error. */
29666 /* We use char because int might match the return type of a gcc2
29667 builtin and then its argument prototype would still apply. */
29668 char SSL_library_init ();
29672 SSL_library_init ();
29677 rm -f conftest.$ac_objext conftest$ac_exeext
29678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29679 (eval $ac_link) 2>conftest.er1
29681 grep -v '^ *+' conftest.er1 >conftest.err
29683 cat conftest.err >&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } &&
29686 { ac_try='test -z "$ac_c_werror_flag"
29687 || test ! -s conftest.err'
29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689 (eval $ac_try) 2>&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; } &&
29693 { ac_try='test -s conftest$ac_exeext'
29694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695 (eval $ac_try) 2>&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; }; then
29699 ac_cv_lib_ssl_SSL_library_init=yes
29701 echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29704 ac_cv_lib_ssl_SSL_library_init=no
29706 rm -f conftest.err conftest.$ac_objext \
29707 conftest$ac_exeext conftest.$ac_ext
29708 LIBS=$ac_check_lib_save_LIBS
29710 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29711 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29712 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29721 if test $have_ssleay = no ; then
29722 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29723 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29724 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 ac_check_lib_save_LIBS=$LIBS
29728 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29729 cat >conftest.$ac_ext <<_ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29736 /* Override any gcc2 internal prototype to avoid an error. */
29740 /* We use char because int might match the return type of a gcc2
29741 builtin and then its argument prototype would still apply. */
29742 char ssl3_accept ();
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29753 (eval $ac_link) 2>conftest.er1
29755 grep -v '^ *+' conftest.er1 >conftest.err
29757 cat conftest.err >&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); } &&
29760 { ac_try='test -z "$ac_c_werror_flag"
29761 || test ! -s conftest.err'
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; } &&
29767 { ac_try='test -s conftest$ac_exeext'
29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769 (eval $ac_try) 2>&5
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; }; then
29773 ac_cv_lib_ssl_ssl3_accept=yes
29775 echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29778 ac_cv_lib_ssl_ssl3_accept=no
29780 rm -f conftest.err conftest.$ac_objext \
29781 conftest$ac_exeext conftest.$ac_ext
29782 LIBS=$ac_check_lib_save_LIBS
29784 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29785 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29786 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29795 if test $have_ssleay = yes ; then
29800 cat >>confdefs.h <<\_ACEOF
29801 #define HAVE_SSLEAY 1
29805 if test $need_rsaref = yes; then
29807 cat >>confdefs.h <<\_ACEOF
29808 #define HAVE_RSAREF 1
29812 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29814 TLS_LIBS="-lssl -lcrypto"
29817 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29818 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29819 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29820 echo $ECHO_N "(cached) $ECHO_C" >&6
29823 cat >conftest.$ac_ext <<_ACEOF
29826 cat confdefs.h >>conftest.$ac_ext
29827 cat >>conftest.$ac_ext <<_ACEOF
29828 /* end confdefs.h. */
29830 #ifdef HAVE_OPENSSL_SSL_H
29831 #include <openssl/ssl.h>
29836 /* Require 0.9.7d+ */
29837 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29838 char *__ssl_compat = "0.9.7d";
29842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29843 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29844 ol_cv_ssl_crl_compat=yes
29846 ol_cv_ssl_crl_compat=no
29851 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29852 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29854 if test $ol_cv_ssl_crl_compat = no ; then
29858 cat >>confdefs.h <<\_ACEOF
29859 #define HAVE_OPENSSL_CRL 1
29866 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29867 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29871 if test $ol_link_tls = yes ; then
29873 cat >>confdefs.h <<\_ACEOF
29879 elif test $ol_with_tls = auto ; then
29880 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29881 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29883 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29885 elif test $ol_with_tls != no ; then
29886 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29887 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29888 { (exit 1); exit 1; }; }
29891 if test $ol_enable_lmpasswd != no; then
29892 if test $ol_link_tls != yes ; then
29893 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29894 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29895 { (exit 1); exit 1; }; }
29899 cat >>confdefs.h <<\_ACEOF
29900 #define SLAPD_LMHASH 1
29907 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29908 -o $ol_with_threads = nt ; then
29911 echo "$as_me:$LINENO: checking for _beginthread" >&5
29912 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29913 if test "${ac_cv_func__beginthread+set}" = set; then
29914 echo $ECHO_N "(cached) $ECHO_C" >&6
29916 cat >conftest.$ac_ext <<_ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h. */
29922 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29924 #define _beginthread innocuous__beginthread
29926 /* System header to define __stub macros and hopefully few prototypes,
29927 which can conflict with char _beginthread (); below.
29928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29929 <limits.h> exists even on freestanding compilers. */
29932 # include <limits.h>
29934 # include <assert.h>
29937 #undef _beginthread
29939 /* Override any gcc2 internal prototype to avoid an error. */
29944 /* We use char because int might match the return type of a gcc2
29945 builtin and then its argument prototype would still apply. */
29946 char _beginthread ();
29947 /* The GNU C library defines this for functions which it implements
29948 to always fail with ENOSYS. Some functions are actually named
29949 something starting with __ and the normal name is an alias. */
29950 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29953 char (*f) () = _beginthread;
29962 return f != _beginthread;
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29969 (eval $ac_link) 2>conftest.er1
29971 grep -v '^ *+' conftest.er1 >conftest.err
29973 cat conftest.err >&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); } &&
29976 { ac_try='test -z "$ac_c_werror_flag"
29977 || test ! -s conftest.err'
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest$ac_exeext'
29984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985 (eval $ac_try) 2>&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; }; then
29989 ac_cv_func__beginthread=yes
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29994 ac_cv_func__beginthread=no
29996 rm -f conftest.err conftest.$ac_objext \
29997 conftest$ac_exeext conftest.$ac_ext
29999 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
30000 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
30003 if test $ac_cv_func__beginthread = yes ; then
30005 cat >>confdefs.h <<\_ACEOF
30006 #define HAVE_NT_THREADS 1
30009 ol_cv_nt_threads=yes
30013 if test "$ol_cv_nt_threads" = yes ; then
30015 ol_with_threads=found
30016 ol_with_yielding_select=yes
30019 cat >>confdefs.h <<\_ACEOF
30020 #define HAVE_NT_SERVICE_MANAGER 1
30024 cat >>confdefs.h <<\_ACEOF
30025 #define HAVE_NT_EVENT_LOG 1
30030 if test $ol_with_threads = nt ; then
30031 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
30032 echo "$as_me: error: could not locate NT Threads" >&2;}
30033 { (exit 1); exit 1; }; }
30037 if test $ol_with_threads = auto -o $ol_with_threads = yes \
30038 -o $ol_with_threads = posix ; then
30041 for ac_header in pthread.h
30043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30045 echo "$as_me:$LINENO: checking for $ac_header" >&5
30046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30048 echo $ECHO_N "(cached) $ECHO_C" >&6
30050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30053 # Is the header compilable?
30054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30056 cat >conftest.$ac_ext <<_ACEOF
30059 cat confdefs.h >>conftest.$ac_ext
30060 cat >>conftest.$ac_ext <<_ACEOF
30061 /* end confdefs.h. */
30062 $ac_includes_default
30063 #include <$ac_header>
30065 rm -f conftest.$ac_objext
30066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30067 (eval $ac_compile) 2>conftest.er1
30069 grep -v '^ *+' conftest.er1 >conftest.err
30071 cat conftest.err >&5
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); } &&
30074 { ac_try='test -z "$ac_c_werror_flag"
30075 || test ! -s conftest.err'
30076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30077 (eval $ac_try) 2>&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); }; } &&
30081 { ac_try='test -s conftest.$ac_objext'
30082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30083 (eval $ac_try) 2>&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; }; then
30087 ac_header_compiler=yes
30089 echo "$as_me: failed program was:" >&5
30090 sed 's/^/| /' conftest.$ac_ext >&5
30092 ac_header_compiler=no
30094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30096 echo "${ECHO_T}$ac_header_compiler" >&6
30098 # Is the header present?
30099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30101 cat >conftest.$ac_ext <<_ACEOF
30104 cat confdefs.h >>conftest.$ac_ext
30105 cat >>conftest.$ac_ext <<_ACEOF
30106 /* end confdefs.h. */
30107 #include <$ac_header>
30109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30112 grep -v '^ *+' conftest.er1 >conftest.err
30114 cat conftest.err >&5
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); } >/dev/null; then
30117 if test -s conftest.err; then
30118 ac_cpp_err=$ac_c_preproc_warn_flag
30119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30126 if test -z "$ac_cpp_err"; then
30127 ac_header_preproc=yes
30129 echo "$as_me: failed program was:" >&5
30130 sed 's/^/| /' conftest.$ac_ext >&5
30132 ac_header_preproc=no
30134 rm -f conftest.err conftest.$ac_ext
30135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30136 echo "${ECHO_T}$ac_header_preproc" >&6
30138 # So? What about this header?
30139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30145 ac_header_preproc=yes
30148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30162 ## ------------------------------------------ ##
30163 ## Report this to the AC_PACKAGE_NAME lists. ##
30164 ## ------------------------------------------ ##
30167 sed "s/^/$as_me: WARNING: /" >&2
30170 echo "$as_me:$LINENO: checking for $ac_header" >&5
30171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30173 echo $ECHO_N "(cached) $ECHO_C" >&6
30175 eval "$as_ac_Header=\$ac_header_preproc"
30177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30182 cat >>confdefs.h <<_ACEOF
30183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30191 if test $ac_cv_header_pthread_h = yes ; then
30192 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30193 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30194 if test "${ol_cv_pthread_version+set}" = set; then
30195 echo $ECHO_N "(cached) $ECHO_C" >&6
30198 cat >conftest.$ac_ext <<_ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h. */
30205 # include <pthread.h>
30211 int i = PTHREAD_CREATE_JOINABLE;
30217 rm -f conftest.$ac_objext
30218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30219 (eval $ac_compile) 2>conftest.er1
30221 grep -v '^ *+' conftest.er1 >conftest.err
30223 cat conftest.err >&5
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); } &&
30226 { ac_try='test -z "$ac_c_werror_flag"
30227 || test ! -s conftest.err'
30228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30229 (eval $ac_try) 2>&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); }; } &&
30233 { ac_try='test -s conftest.$ac_objext'
30234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30235 (eval $ac_try) 2>&5
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); }; }; then
30240 cat >conftest.$ac_ext <<_ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h. */
30246 #include <pthread.h>
30249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30250 $EGREP "pthread_detach" >/dev/null 2>&1; then
30251 ol_cv_pthread_version=10
30253 ol_cv_pthread_version=8
30258 echo "$as_me: failed program was:" >&5
30259 sed 's/^/| /' conftest.$ac_ext >&5
30262 cat >conftest.$ac_ext <<_ACEOF
30265 cat confdefs.h >>conftest.$ac_ext
30266 cat >>conftest.$ac_ext <<_ACEOF
30267 /* end confdefs.h. */
30269 # include <pthread.h>
30270 # ifdef PTHREAD_CREATE_UNDETACHED
30275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30276 $EGREP "draft7" >/dev/null 2>&1; then
30277 ol_cv_pthread_version=7
30280 cat >conftest.$ac_ext <<_ACEOF
30283 cat confdefs.h >>conftest.$ac_ext
30284 cat >>conftest.$ac_ext <<_ACEOF
30285 /* end confdefs.h. */
30286 #include <pthread.h>
30289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30290 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30291 ol_cv_pthread_version=6
30294 cat >conftest.$ac_ext <<_ACEOF
30297 cat confdefs.h >>conftest.$ac_ext
30298 cat >>conftest.$ac_ext <<_ACEOF
30299 /* end confdefs.h. */
30301 # include <pthread.h>
30302 #ifdef PTHREAD_MUTEX_INITIALIZER
30307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30308 $EGREP "draft5" >/dev/null 2>&1; then
30309 ol_cv_pthread_version=5
30311 ol_cv_pthread_version=4
30322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30325 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30326 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30329 if test $ol_cv_pthread_version != 0 ; then
30331 cat >>confdefs.h <<_ACEOF
30332 #define HAVE_PTHREADS $ol_cv_pthread_version
30336 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30337 echo "$as_me: error: unknown pthread version" >&2;}
30338 { (exit 1); exit 1; }; }
30341 # consider threads found
30342 ol_with_threads=found
30345 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30346 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30347 if test "${ol_cv_header_linux_threads+set}" = set; then
30348 echo $ECHO_N "(cached) $ECHO_C" >&6
30350 cat >conftest.$ac_ext <<_ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h. */
30356 #include <pthread.h>
30358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30359 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30360 ol_cv_header_linux_threads=yes
30362 ol_cv_header_linux_threads=no
30368 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30369 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30370 if test $ol_cv_header_linux_threads = yes; then
30372 cat >>confdefs.h <<\_ACEOF
30373 #define HAVE_LINUX_THREADS 1
30379 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30380 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30381 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30382 echo $ECHO_N "(cached) $ECHO_C" >&6
30384 cat >conftest.$ac_ext <<_ACEOF
30387 cat confdefs.h >>conftest.$ac_ext
30388 cat >>conftest.$ac_ext <<_ACEOF
30389 /* end confdefs.h. */
30390 #include <pthread.h>
30391 #ifdef _POSIX_THREAD_IS_GNU_PTH
30396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30397 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30398 ol_cv_header_gnu_pth_pthread_h=yes
30400 ol_cv_header_gnu_pth_pthread_h=no
30406 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30407 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30410 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30412 for ac_header in sched.h
30414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30416 echo "$as_me:$LINENO: checking for $ac_header" >&5
30417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30419 echo $ECHO_N "(cached) $ECHO_C" >&6
30421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30424 # Is the header compilable?
30425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30427 cat >conftest.$ac_ext <<_ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h. */
30433 $ac_includes_default
30434 #include <$ac_header>
30436 rm -f conftest.$ac_objext
30437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30438 (eval $ac_compile) 2>conftest.er1
30440 grep -v '^ *+' conftest.er1 >conftest.err
30442 cat conftest.err >&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } &&
30445 { ac_try='test -z "$ac_c_werror_flag"
30446 || test ! -s conftest.err'
30447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30448 (eval $ac_try) 2>&5
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); }; } &&
30452 { ac_try='test -s conftest.$ac_objext'
30453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30454 (eval $ac_try) 2>&5
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); }; }; then
30458 ac_header_compiler=yes
30460 echo "$as_me: failed program was:" >&5
30461 sed 's/^/| /' conftest.$ac_ext >&5
30463 ac_header_compiler=no
30465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30467 echo "${ECHO_T}$ac_header_compiler" >&6
30469 # Is the header present?
30470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30472 cat >conftest.$ac_ext <<_ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h. */
30478 #include <$ac_header>
30480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30483 grep -v '^ *+' conftest.er1 >conftest.err
30485 cat conftest.err >&5
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); } >/dev/null; then
30488 if test -s conftest.err; then
30489 ac_cpp_err=$ac_c_preproc_warn_flag
30490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30497 if test -z "$ac_cpp_err"; then
30498 ac_header_preproc=yes
30500 echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30503 ac_header_preproc=no
30505 rm -f conftest.err conftest.$ac_ext
30506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30507 echo "${ECHO_T}$ac_header_preproc" >&6
30509 # So? What about this header?
30510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30516 ac_header_preproc=yes
30519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30533 ## ------------------------------------------ ##
30534 ## Report this to the AC_PACKAGE_NAME lists. ##
30535 ## ------------------------------------------ ##
30538 sed "s/^/$as_me: WARNING: /" >&2
30541 echo "$as_me:$LINENO: checking for $ac_header" >&5
30542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30546 eval "$as_ac_Header=\$ac_header_preproc"
30548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30553 cat >>confdefs.h <<_ACEOF
30554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30564 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30565 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30566 if test "${ol_cv_pthread_create+set}" = set; then
30567 echo $ECHO_N "(cached) $ECHO_C" >&6
30570 if test "$cross_compiling" = yes; then
30571 cat >conftest.$ac_ext <<_ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30578 /* pthread test headers */
30579 #include <pthread.h>
30580 #if HAVE_PTHREADS < 7
30584 #define NULL (void*)0
30587 static void *task(p)
30590 return (void *) (p == NULL);
30597 /* pthread test function */
30598 #ifndef PTHREAD_CREATE_DETACHED
30599 #define PTHREAD_CREATE_DETACHED 1
30603 int detach = PTHREAD_CREATE_DETACHED;
30605 #if HAVE_PTHREADS > 4
30606 /* Final pthreads */
30607 pthread_attr_t attr;
30609 status = pthread_attr_init(&attr);
30610 if( status ) return status;
30612 #if HAVE_PTHREADS < 7
30613 status = pthread_attr_setdetachstate(&attr, &detach);
30614 if( status < 0 ) status = errno;
30616 status = pthread_attr_setdetachstate(&attr, detach);
30618 if( status ) return status;
30619 status = pthread_create( &t, &attr, task, NULL );
30620 #if HAVE_PTHREADS < 7
30621 if( status < 0 ) status = errno;
30623 if( status ) return status;
30625 /* Draft 4 pthreads */
30626 status = pthread_create( &t, pthread_attr_default, task, NULL );
30627 if( status ) return errno;
30629 /* give thread a chance to complete */
30630 /* it should remain joinable and hence detachable */
30633 status = pthread_detach( &t );
30634 if( status ) return errno;
30637 #ifdef HAVE_LINUX_THREADS
30638 pthread_kill_other_threads_np();
30647 rm -f conftest.$ac_objext conftest$ac_exeext
30648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30649 (eval $ac_link) 2>conftest.er1
30651 grep -v '^ *+' conftest.er1 >conftest.err
30653 cat conftest.err >&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); } &&
30656 { ac_try='test -z "$ac_c_werror_flag"
30657 || test ! -s conftest.err'
30658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659 (eval $ac_try) 2>&5
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest$ac_exeext'
30664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665 (eval $ac_try) 2>&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
30669 ol_cv_pthread_create=yes
30671 echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30674 ol_cv_pthread_create=no
30676 rm -f conftest.err conftest.$ac_objext \
30677 conftest$ac_exeext conftest.$ac_ext
30679 cat >conftest.$ac_ext <<_ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h. */
30686 /* pthread test headers */
30687 #include <pthread.h>
30688 #if HAVE_PTHREADS < 7
30692 #define NULL (void*)0
30695 static void *task(p)
30698 return (void *) (p == NULL);
30702 int main(argc, argv)
30707 /* pthread test function */
30708 #ifndef PTHREAD_CREATE_DETACHED
30709 #define PTHREAD_CREATE_DETACHED 1
30713 int detach = PTHREAD_CREATE_DETACHED;
30715 #if HAVE_PTHREADS > 4
30716 /* Final pthreads */
30717 pthread_attr_t attr;
30719 status = pthread_attr_init(&attr);
30720 if( status ) return status;
30722 #if HAVE_PTHREADS < 7
30723 status = pthread_attr_setdetachstate(&attr, &detach);
30724 if( status < 0 ) status = errno;
30726 status = pthread_attr_setdetachstate(&attr, detach);
30728 if( status ) return status;
30729 status = pthread_create( &t, &attr, task, NULL );
30730 #if HAVE_PTHREADS < 7
30731 if( status < 0 ) status = errno;
30733 if( status ) return status;
30735 /* Draft 4 pthreads */
30736 status = pthread_create( &t, pthread_attr_default, task, NULL );
30737 if( status ) return errno;
30739 /* give thread a chance to complete */
30740 /* it should remain joinable and hence detachable */
30743 status = pthread_detach( &t );
30744 if( status ) return errno;
30747 #ifdef HAVE_LINUX_THREADS
30748 pthread_kill_other_threads_np();
30756 rm -f conftest$ac_exeext
30757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30758 (eval $ac_link) 2>&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30763 (eval $ac_try) 2>&5
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); }; }; then
30767 ol_cv_pthread_create=yes
30769 echo "$as_me: program exited with status $ac_status" >&5
30770 echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30773 ( exit $ac_status )
30774 ol_cv_pthread_create=no
30776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30779 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30780 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30782 if test $ol_cv_pthread_create != no ; then
30783 ol_link_threads=posix
30784 ol_link_pthreads=""
30787 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30788 if test "$ol_link_threads" = no ; then
30790 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30791 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30792 if test "${ol_cv_pthread_kthread+set}" = set; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30798 LIBS="-kthread $LIBS"
30800 if test "$cross_compiling" = yes; then
30801 cat >conftest.$ac_ext <<_ACEOF
30804 cat confdefs.h >>conftest.$ac_ext
30805 cat >>conftest.$ac_ext <<_ACEOF
30806 /* end confdefs.h. */
30808 /* pthread test headers */
30809 #include <pthread.h>
30810 #if HAVE_PTHREADS < 7
30814 #define NULL (void*)0
30817 static void *task(p)
30820 return (void *) (p == NULL);
30827 /* pthread test function */
30828 #ifndef PTHREAD_CREATE_DETACHED
30829 #define PTHREAD_CREATE_DETACHED 1
30833 int detach = PTHREAD_CREATE_DETACHED;
30835 #if HAVE_PTHREADS > 4
30836 /* Final pthreads */
30837 pthread_attr_t attr;
30839 status = pthread_attr_init(&attr);
30840 if( status ) return status;
30842 #if HAVE_PTHREADS < 7
30843 status = pthread_attr_setdetachstate(&attr, &detach);
30844 if( status < 0 ) status = errno;
30846 status = pthread_attr_setdetachstate(&attr, detach);
30848 if( status ) return status;
30849 status = pthread_create( &t, &attr, task, NULL );
30850 #if HAVE_PTHREADS < 7
30851 if( status < 0 ) status = errno;
30853 if( status ) return status;
30855 /* Draft 4 pthreads */
30856 status = pthread_create( &t, pthread_attr_default, task, NULL );
30857 if( status ) return errno;
30859 /* give thread a chance to complete */
30860 /* it should remain joinable and hence detachable */
30863 status = pthread_detach( &t );
30864 if( status ) return errno;
30867 #ifdef HAVE_LINUX_THREADS
30868 pthread_kill_other_threads_np();
30877 rm -f conftest.$ac_objext conftest$ac_exeext
30878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30879 (eval $ac_link) 2>conftest.er1
30881 grep -v '^ *+' conftest.er1 >conftest.err
30883 cat conftest.err >&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); } &&
30886 { ac_try='test -z "$ac_c_werror_flag"
30887 || test ! -s conftest.err'
30888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889 (eval $ac_try) 2>&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; } &&
30893 { ac_try='test -s conftest$ac_exeext'
30894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30895 (eval $ac_try) 2>&5
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); }; }; then
30899 ol_cv_pthread_kthread=yes
30901 echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30904 ol_cv_pthread_kthread=no
30906 rm -f conftest.err conftest.$ac_objext \
30907 conftest$ac_exeext conftest.$ac_ext
30909 cat >conftest.$ac_ext <<_ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h. */
30916 /* pthread test headers */
30917 #include <pthread.h>
30918 #if HAVE_PTHREADS < 7
30922 #define NULL (void*)0
30925 static void *task(p)
30928 return (void *) (p == NULL);
30932 int main(argc, argv)
30937 /* pthread test function */
30938 #ifndef PTHREAD_CREATE_DETACHED
30939 #define PTHREAD_CREATE_DETACHED 1
30943 int detach = PTHREAD_CREATE_DETACHED;
30945 #if HAVE_PTHREADS > 4
30946 /* Final pthreads */
30947 pthread_attr_t attr;
30949 status = pthread_attr_init(&attr);
30950 if( status ) return status;
30952 #if HAVE_PTHREADS < 7
30953 status = pthread_attr_setdetachstate(&attr, &detach);
30954 if( status < 0 ) status = errno;
30956 status = pthread_attr_setdetachstate(&attr, detach);
30958 if( status ) return status;
30959 status = pthread_create( &t, &attr, task, NULL );
30960 #if HAVE_PTHREADS < 7
30961 if( status < 0 ) status = errno;
30963 if( status ) return status;
30965 /* Draft 4 pthreads */
30966 status = pthread_create( &t, pthread_attr_default, task, NULL );
30967 if( status ) return errno;
30969 /* give thread a chance to complete */
30970 /* it should remain joinable and hence detachable */
30973 status = pthread_detach( &t );
30974 if( status ) return errno;
30977 #ifdef HAVE_LINUX_THREADS
30978 pthread_kill_other_threads_np();
30986 rm -f conftest$ac_exeext
30987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30988 (eval $ac_link) 2>&5
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993 (eval $ac_try) 2>&5
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; }; then
30997 ol_cv_pthread_kthread=yes
30999 echo "$as_me: program exited with status $ac_status" >&5
31000 echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31003 ( exit $ac_status )
31004 ol_cv_pthread_kthread=no
31006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31013 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
31014 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
31016 if test $ol_cv_pthread_kthread = yes ; then
31017 ol_link_pthreads="-kthread"
31018 ol_link_threads=posix
31022 # Pthread try link: -pthread (ol_cv_pthread_pthread)
31023 if test "$ol_link_threads" = no ; then
31025 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
31026 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
31027 if test "${ol_cv_pthread_pthread+set}" = set; then
31028 echo $ECHO_N "(cached) $ECHO_C" >&6
31033 LIBS="-pthread $LIBS"
31035 if test "$cross_compiling" = yes; then
31036 cat >conftest.$ac_ext <<_ACEOF
31039 cat confdefs.h >>conftest.$ac_ext
31040 cat >>conftest.$ac_ext <<_ACEOF
31041 /* end confdefs.h. */
31043 /* pthread test headers */
31044 #include <pthread.h>
31045 #if HAVE_PTHREADS < 7
31049 #define NULL (void*)0
31052 static void *task(p)
31055 return (void *) (p == NULL);
31062 /* pthread test function */
31063 #ifndef PTHREAD_CREATE_DETACHED
31064 #define PTHREAD_CREATE_DETACHED 1
31068 int detach = PTHREAD_CREATE_DETACHED;
31070 #if HAVE_PTHREADS > 4
31071 /* Final pthreads */
31072 pthread_attr_t attr;
31074 status = pthread_attr_init(&attr);
31075 if( status ) return status;
31077 #if HAVE_PTHREADS < 7
31078 status = pthread_attr_setdetachstate(&attr, &detach);
31079 if( status < 0 ) status = errno;
31081 status = pthread_attr_setdetachstate(&attr, detach);
31083 if( status ) return status;
31084 status = pthread_create( &t, &attr, task, NULL );
31085 #if HAVE_PTHREADS < 7
31086 if( status < 0 ) status = errno;
31088 if( status ) return status;
31090 /* Draft 4 pthreads */
31091 status = pthread_create( &t, pthread_attr_default, task, NULL );
31092 if( status ) return errno;
31094 /* give thread a chance to complete */
31095 /* it should remain joinable and hence detachable */
31098 status = pthread_detach( &t );
31099 if( status ) return errno;
31102 #ifdef HAVE_LINUX_THREADS
31103 pthread_kill_other_threads_np();
31112 rm -f conftest.$ac_objext conftest$ac_exeext
31113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31114 (eval $ac_link) 2>conftest.er1
31116 grep -v '^ *+' conftest.er1 >conftest.err
31118 cat conftest.err >&5
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); } &&
31121 { ac_try='test -z "$ac_c_werror_flag"
31122 || test ! -s conftest.err'
31123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31124 (eval $ac_try) 2>&5
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); }; } &&
31128 { ac_try='test -s conftest$ac_exeext'
31129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31130 (eval $ac_try) 2>&5
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); }; }; then
31134 ol_cv_pthread_pthread=yes
31136 echo "$as_me: failed program was:" >&5
31137 sed 's/^/| /' conftest.$ac_ext >&5
31139 ol_cv_pthread_pthread=no
31141 rm -f conftest.err conftest.$ac_objext \
31142 conftest$ac_exeext conftest.$ac_ext
31144 cat >conftest.$ac_ext <<_ACEOF
31147 cat confdefs.h >>conftest.$ac_ext
31148 cat >>conftest.$ac_ext <<_ACEOF
31149 /* end confdefs.h. */
31151 /* pthread test headers */
31152 #include <pthread.h>
31153 #if HAVE_PTHREADS < 7
31157 #define NULL (void*)0
31160 static void *task(p)
31163 return (void *) (p == NULL);
31167 int main(argc, argv)
31172 /* pthread test function */
31173 #ifndef PTHREAD_CREATE_DETACHED
31174 #define PTHREAD_CREATE_DETACHED 1
31178 int detach = PTHREAD_CREATE_DETACHED;
31180 #if HAVE_PTHREADS > 4
31181 /* Final pthreads */
31182 pthread_attr_t attr;
31184 status = pthread_attr_init(&attr);
31185 if( status ) return status;
31187 #if HAVE_PTHREADS < 7
31188 status = pthread_attr_setdetachstate(&attr, &detach);
31189 if( status < 0 ) status = errno;
31191 status = pthread_attr_setdetachstate(&attr, detach);
31193 if( status ) return status;
31194 status = pthread_create( &t, &attr, task, NULL );
31195 #if HAVE_PTHREADS < 7
31196 if( status < 0 ) status = errno;
31198 if( status ) return status;
31200 /* Draft 4 pthreads */
31201 status = pthread_create( &t, pthread_attr_default, task, NULL );
31202 if( status ) return errno;
31204 /* give thread a chance to complete */
31205 /* it should remain joinable and hence detachable */
31208 status = pthread_detach( &t );
31209 if( status ) return errno;
31212 #ifdef HAVE_LINUX_THREADS
31213 pthread_kill_other_threads_np();
31221 rm -f conftest$ac_exeext
31222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31223 (eval $ac_link) 2>&5
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31228 (eval $ac_try) 2>&5
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; }; then
31232 ol_cv_pthread_pthread=yes
31234 echo "$as_me: program exited with status $ac_status" >&5
31235 echo "$as_me: failed program was:" >&5
31236 sed 's/^/| /' conftest.$ac_ext >&5
31238 ( exit $ac_status )
31239 ol_cv_pthread_pthread=no
31241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31248 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31249 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31251 if test $ol_cv_pthread_pthread = yes ; then
31252 ol_link_pthreads="-pthread"
31253 ol_link_threads=posix
31257 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31258 if test "$ol_link_threads" = no ; then
31260 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31261 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31262 if test "${ol_cv_pthread_pthreads+set}" = set; then
31263 echo $ECHO_N "(cached) $ECHO_C" >&6
31268 LIBS="-pthreads $LIBS"
31270 if test "$cross_compiling" = yes; then
31271 cat >conftest.$ac_ext <<_ACEOF
31274 cat confdefs.h >>conftest.$ac_ext
31275 cat >>conftest.$ac_ext <<_ACEOF
31276 /* end confdefs.h. */
31278 /* pthread test headers */
31279 #include <pthread.h>
31280 #if HAVE_PTHREADS < 7
31284 #define NULL (void*)0
31287 static void *task(p)
31290 return (void *) (p == NULL);
31297 /* pthread test function */
31298 #ifndef PTHREAD_CREATE_DETACHED
31299 #define PTHREAD_CREATE_DETACHED 1
31303 int detach = PTHREAD_CREATE_DETACHED;
31305 #if HAVE_PTHREADS > 4
31306 /* Final pthreads */
31307 pthread_attr_t attr;
31309 status = pthread_attr_init(&attr);
31310 if( status ) return status;
31312 #if HAVE_PTHREADS < 7
31313 status = pthread_attr_setdetachstate(&attr, &detach);
31314 if( status < 0 ) status = errno;
31316 status = pthread_attr_setdetachstate(&attr, detach);
31318 if( status ) return status;
31319 status = pthread_create( &t, &attr, task, NULL );
31320 #if HAVE_PTHREADS < 7
31321 if( status < 0 ) status = errno;
31323 if( status ) return status;
31325 /* Draft 4 pthreads */
31326 status = pthread_create( &t, pthread_attr_default, task, NULL );
31327 if( status ) return errno;
31329 /* give thread a chance to complete */
31330 /* it should remain joinable and hence detachable */
31333 status = pthread_detach( &t );
31334 if( status ) return errno;
31337 #ifdef HAVE_LINUX_THREADS
31338 pthread_kill_other_threads_np();
31347 rm -f conftest.$ac_objext conftest$ac_exeext
31348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31349 (eval $ac_link) 2>conftest.er1
31351 grep -v '^ *+' conftest.er1 >conftest.err
31353 cat conftest.err >&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); } &&
31356 { ac_try='test -z "$ac_c_werror_flag"
31357 || test ! -s conftest.err'
31358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31359 (eval $ac_try) 2>&5
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); }; } &&
31363 { ac_try='test -s conftest$ac_exeext'
31364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31365 (eval $ac_try) 2>&5
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); }; }; then
31369 ol_cv_pthread_pthreads=yes
31371 echo "$as_me: failed program was:" >&5
31372 sed 's/^/| /' conftest.$ac_ext >&5
31374 ol_cv_pthread_pthreads=no
31376 rm -f conftest.err conftest.$ac_objext \
31377 conftest$ac_exeext conftest.$ac_ext
31379 cat >conftest.$ac_ext <<_ACEOF
31382 cat confdefs.h >>conftest.$ac_ext
31383 cat >>conftest.$ac_ext <<_ACEOF
31384 /* end confdefs.h. */
31386 /* pthread test headers */
31387 #include <pthread.h>
31388 #if HAVE_PTHREADS < 7
31392 #define NULL (void*)0
31395 static void *task(p)
31398 return (void *) (p == NULL);
31402 int main(argc, argv)
31407 /* pthread test function */
31408 #ifndef PTHREAD_CREATE_DETACHED
31409 #define PTHREAD_CREATE_DETACHED 1
31413 int detach = PTHREAD_CREATE_DETACHED;
31415 #if HAVE_PTHREADS > 4
31416 /* Final pthreads */
31417 pthread_attr_t attr;
31419 status = pthread_attr_init(&attr);
31420 if( status ) return status;
31422 #if HAVE_PTHREADS < 7
31423 status = pthread_attr_setdetachstate(&attr, &detach);
31424 if( status < 0 ) status = errno;
31426 status = pthread_attr_setdetachstate(&attr, detach);
31428 if( status ) return status;
31429 status = pthread_create( &t, &attr, task, NULL );
31430 #if HAVE_PTHREADS < 7
31431 if( status < 0 ) status = errno;
31433 if( status ) return status;
31435 /* Draft 4 pthreads */
31436 status = pthread_create( &t, pthread_attr_default, task, NULL );
31437 if( status ) return errno;
31439 /* give thread a chance to complete */
31440 /* it should remain joinable and hence detachable */
31443 status = pthread_detach( &t );
31444 if( status ) return errno;
31447 #ifdef HAVE_LINUX_THREADS
31448 pthread_kill_other_threads_np();
31456 rm -f conftest$ac_exeext
31457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31458 (eval $ac_link) 2>&5
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31463 (eval $ac_try) 2>&5
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); }; }; then
31467 ol_cv_pthread_pthreads=yes
31469 echo "$as_me: program exited with status $ac_status" >&5
31470 echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31473 ( exit $ac_status )
31474 ol_cv_pthread_pthreads=no
31476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31483 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31484 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31486 if test $ol_cv_pthread_pthreads = yes ; then
31487 ol_link_pthreads="-pthreads"
31488 ol_link_threads=posix
31492 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31493 if test "$ol_link_threads" = no ; then
31495 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31496 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31497 if test "${ol_cv_pthread_mthreads+set}" = set; then
31498 echo $ECHO_N "(cached) $ECHO_C" >&6
31503 LIBS="-mthreads $LIBS"
31505 if test "$cross_compiling" = yes; then
31506 cat >conftest.$ac_ext <<_ACEOF
31509 cat confdefs.h >>conftest.$ac_ext
31510 cat >>conftest.$ac_ext <<_ACEOF
31511 /* end confdefs.h. */
31513 /* pthread test headers */
31514 #include <pthread.h>
31515 #if HAVE_PTHREADS < 7
31519 #define NULL (void*)0
31522 static void *task(p)
31525 return (void *) (p == NULL);
31532 /* pthread test function */
31533 #ifndef PTHREAD_CREATE_DETACHED
31534 #define PTHREAD_CREATE_DETACHED 1
31538 int detach = PTHREAD_CREATE_DETACHED;
31540 #if HAVE_PTHREADS > 4
31541 /* Final pthreads */
31542 pthread_attr_t attr;
31544 status = pthread_attr_init(&attr);
31545 if( status ) return status;
31547 #if HAVE_PTHREADS < 7
31548 status = pthread_attr_setdetachstate(&attr, &detach);
31549 if( status < 0 ) status = errno;
31551 status = pthread_attr_setdetachstate(&attr, detach);
31553 if( status ) return status;
31554 status = pthread_create( &t, &attr, task, NULL );
31555 #if HAVE_PTHREADS < 7
31556 if( status < 0 ) status = errno;
31558 if( status ) return status;
31560 /* Draft 4 pthreads */
31561 status = pthread_create( &t, pthread_attr_default, task, NULL );
31562 if( status ) return errno;
31564 /* give thread a chance to complete */
31565 /* it should remain joinable and hence detachable */
31568 status = pthread_detach( &t );
31569 if( status ) return errno;
31572 #ifdef HAVE_LINUX_THREADS
31573 pthread_kill_other_threads_np();
31582 rm -f conftest.$ac_objext conftest$ac_exeext
31583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31584 (eval $ac_link) 2>conftest.er1
31586 grep -v '^ *+' conftest.er1 >conftest.err
31588 cat conftest.err >&5
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); } &&
31591 { ac_try='test -z "$ac_c_werror_flag"
31592 || test ! -s conftest.err'
31593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31594 (eval $ac_try) 2>&5
31596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31597 (exit $ac_status); }; } &&
31598 { ac_try='test -s conftest$ac_exeext'
31599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31600 (eval $ac_try) 2>&5
31602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603 (exit $ac_status); }; }; then
31604 ol_cv_pthread_mthreads=yes
31606 echo "$as_me: failed program was:" >&5
31607 sed 's/^/| /' conftest.$ac_ext >&5
31609 ol_cv_pthread_mthreads=no
31611 rm -f conftest.err conftest.$ac_objext \
31612 conftest$ac_exeext conftest.$ac_ext
31614 cat >conftest.$ac_ext <<_ACEOF
31617 cat confdefs.h >>conftest.$ac_ext
31618 cat >>conftest.$ac_ext <<_ACEOF
31619 /* end confdefs.h. */
31621 /* pthread test headers */
31622 #include <pthread.h>
31623 #if HAVE_PTHREADS < 7
31627 #define NULL (void*)0
31630 static void *task(p)
31633 return (void *) (p == NULL);
31637 int main(argc, argv)
31642 /* pthread test function */
31643 #ifndef PTHREAD_CREATE_DETACHED
31644 #define PTHREAD_CREATE_DETACHED 1
31648 int detach = PTHREAD_CREATE_DETACHED;
31650 #if HAVE_PTHREADS > 4
31651 /* Final pthreads */
31652 pthread_attr_t attr;
31654 status = pthread_attr_init(&attr);
31655 if( status ) return status;
31657 #if HAVE_PTHREADS < 7
31658 status = pthread_attr_setdetachstate(&attr, &detach);
31659 if( status < 0 ) status = errno;
31661 status = pthread_attr_setdetachstate(&attr, detach);
31663 if( status ) return status;
31664 status = pthread_create( &t, &attr, task, NULL );
31665 #if HAVE_PTHREADS < 7
31666 if( status < 0 ) status = errno;
31668 if( status ) return status;
31670 /* Draft 4 pthreads */
31671 status = pthread_create( &t, pthread_attr_default, task, NULL );
31672 if( status ) return errno;
31674 /* give thread a chance to complete */
31675 /* it should remain joinable and hence detachable */
31678 status = pthread_detach( &t );
31679 if( status ) return errno;
31682 #ifdef HAVE_LINUX_THREADS
31683 pthread_kill_other_threads_np();
31691 rm -f conftest$ac_exeext
31692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31693 (eval $ac_link) 2>&5
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31698 (eval $ac_try) 2>&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); }; }; then
31702 ol_cv_pthread_mthreads=yes
31704 echo "$as_me: program exited with status $ac_status" >&5
31705 echo "$as_me: failed program was:" >&5
31706 sed 's/^/| /' conftest.$ac_ext >&5
31708 ( exit $ac_status )
31709 ol_cv_pthread_mthreads=no
31711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31718 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31719 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31721 if test $ol_cv_pthread_mthreads = yes ; then
31722 ol_link_pthreads="-mthreads"
31723 ol_link_threads=posix
31727 # Pthread try link: -thread (ol_cv_pthread_thread)
31728 if test "$ol_link_threads" = no ; then
31730 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31731 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31732 if test "${ol_cv_pthread_thread+set}" = set; then
31733 echo $ECHO_N "(cached) $ECHO_C" >&6
31738 LIBS="-thread $LIBS"
31740 if test "$cross_compiling" = yes; then
31741 cat >conftest.$ac_ext <<_ACEOF
31744 cat confdefs.h >>conftest.$ac_ext
31745 cat >>conftest.$ac_ext <<_ACEOF
31746 /* end confdefs.h. */
31748 /* pthread test headers */
31749 #include <pthread.h>
31750 #if HAVE_PTHREADS < 7
31754 #define NULL (void*)0
31757 static void *task(p)
31760 return (void *) (p == NULL);
31767 /* pthread test function */
31768 #ifndef PTHREAD_CREATE_DETACHED
31769 #define PTHREAD_CREATE_DETACHED 1
31773 int detach = PTHREAD_CREATE_DETACHED;
31775 #if HAVE_PTHREADS > 4
31776 /* Final pthreads */
31777 pthread_attr_t attr;
31779 status = pthread_attr_init(&attr);
31780 if( status ) return status;
31782 #if HAVE_PTHREADS < 7
31783 status = pthread_attr_setdetachstate(&attr, &detach);
31784 if( status < 0 ) status = errno;
31786 status = pthread_attr_setdetachstate(&attr, detach);
31788 if( status ) return status;
31789 status = pthread_create( &t, &attr, task, NULL );
31790 #if HAVE_PTHREADS < 7
31791 if( status < 0 ) status = errno;
31793 if( status ) return status;
31795 /* Draft 4 pthreads */
31796 status = pthread_create( &t, pthread_attr_default, task, NULL );
31797 if( status ) return errno;
31799 /* give thread a chance to complete */
31800 /* it should remain joinable and hence detachable */
31803 status = pthread_detach( &t );
31804 if( status ) return errno;
31807 #ifdef HAVE_LINUX_THREADS
31808 pthread_kill_other_threads_np();
31817 rm -f conftest.$ac_objext conftest$ac_exeext
31818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31819 (eval $ac_link) 2>conftest.er1
31821 grep -v '^ *+' conftest.er1 >conftest.err
31823 cat conftest.err >&5
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); } &&
31826 { ac_try='test -z "$ac_c_werror_flag"
31827 || test ! -s conftest.err'
31828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829 (eval $ac_try) 2>&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; } &&
31833 { ac_try='test -s conftest$ac_exeext'
31834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31835 (eval $ac_try) 2>&5
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; }; then
31839 ol_cv_pthread_thread=yes
31841 echo "$as_me: failed program was:" >&5
31842 sed 's/^/| /' conftest.$ac_ext >&5
31844 ol_cv_pthread_thread=no
31846 rm -f conftest.err conftest.$ac_objext \
31847 conftest$ac_exeext conftest.$ac_ext
31849 cat >conftest.$ac_ext <<_ACEOF
31852 cat confdefs.h >>conftest.$ac_ext
31853 cat >>conftest.$ac_ext <<_ACEOF
31854 /* end confdefs.h. */
31856 /* pthread test headers */
31857 #include <pthread.h>
31858 #if HAVE_PTHREADS < 7
31862 #define NULL (void*)0
31865 static void *task(p)
31868 return (void *) (p == NULL);
31872 int main(argc, argv)
31877 /* pthread test function */
31878 #ifndef PTHREAD_CREATE_DETACHED
31879 #define PTHREAD_CREATE_DETACHED 1
31883 int detach = PTHREAD_CREATE_DETACHED;
31885 #if HAVE_PTHREADS > 4
31886 /* Final pthreads */
31887 pthread_attr_t attr;
31889 status = pthread_attr_init(&attr);
31890 if( status ) return status;
31892 #if HAVE_PTHREADS < 7
31893 status = pthread_attr_setdetachstate(&attr, &detach);
31894 if( status < 0 ) status = errno;
31896 status = pthread_attr_setdetachstate(&attr, detach);
31898 if( status ) return status;
31899 status = pthread_create( &t, &attr, task, NULL );
31900 #if HAVE_PTHREADS < 7
31901 if( status < 0 ) status = errno;
31903 if( status ) return status;
31905 /* Draft 4 pthreads */
31906 status = pthread_create( &t, pthread_attr_default, task, NULL );
31907 if( status ) return errno;
31909 /* give thread a chance to complete */
31910 /* it should remain joinable and hence detachable */
31913 status = pthread_detach( &t );
31914 if( status ) return errno;
31917 #ifdef HAVE_LINUX_THREADS
31918 pthread_kill_other_threads_np();
31926 rm -f conftest$ac_exeext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31928 (eval $ac_link) 2>&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933 (eval $ac_try) 2>&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; }; then
31937 ol_cv_pthread_thread=yes
31939 echo "$as_me: program exited with status $ac_status" >&5
31940 echo "$as_me: failed program was:" >&5
31941 sed 's/^/| /' conftest.$ac_ext >&5
31943 ( exit $ac_status )
31944 ol_cv_pthread_thread=no
31946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31953 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31954 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31956 if test $ol_cv_pthread_thread = yes ; then
31957 ol_link_pthreads="-thread"
31958 ol_link_threads=posix
31963 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31964 if test "$ol_link_threads" = no ; then
31965 # try -lpthread -lmach -lexc -lc_r
31966 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31967 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31968 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31969 echo $ECHO_N "(cached) $ECHO_C" >&6
31974 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31976 if test "$cross_compiling" = yes; then
31977 cat >conftest.$ac_ext <<_ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h. */
31984 /* pthread test headers */
31985 #include <pthread.h>
31986 #if HAVE_PTHREADS < 7
31990 #define NULL (void*)0
31993 static void *task(p)
31996 return (void *) (p == NULL);
32003 /* pthread test function */
32004 #ifndef PTHREAD_CREATE_DETACHED
32005 #define PTHREAD_CREATE_DETACHED 1
32009 int detach = PTHREAD_CREATE_DETACHED;
32011 #if HAVE_PTHREADS > 4
32012 /* Final pthreads */
32013 pthread_attr_t attr;
32015 status = pthread_attr_init(&attr);
32016 if( status ) return status;
32018 #if HAVE_PTHREADS < 7
32019 status = pthread_attr_setdetachstate(&attr, &detach);
32020 if( status < 0 ) status = errno;
32022 status = pthread_attr_setdetachstate(&attr, detach);
32024 if( status ) return status;
32025 status = pthread_create( &t, &attr, task, NULL );
32026 #if HAVE_PTHREADS < 7
32027 if( status < 0 ) status = errno;
32029 if( status ) return status;
32031 /* Draft 4 pthreads */
32032 status = pthread_create( &t, pthread_attr_default, task, NULL );
32033 if( status ) return errno;
32035 /* give thread a chance to complete */
32036 /* it should remain joinable and hence detachable */
32039 status = pthread_detach( &t );
32040 if( status ) return errno;
32043 #ifdef HAVE_LINUX_THREADS
32044 pthread_kill_other_threads_np();
32053 rm -f conftest.$ac_objext conftest$ac_exeext
32054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32055 (eval $ac_link) 2>conftest.er1
32057 grep -v '^ *+' conftest.er1 >conftest.err
32059 cat conftest.err >&5
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); } &&
32062 { ac_try='test -z "$ac_c_werror_flag"
32063 || test ! -s conftest.err'
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; } &&
32069 { ac_try='test -s conftest$ac_exeext'
32070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32071 (eval $ac_try) 2>&5
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); }; }; then
32075 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32077 echo "$as_me: failed program was:" >&5
32078 sed 's/^/| /' conftest.$ac_ext >&5
32080 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32082 rm -f conftest.err conftest.$ac_objext \
32083 conftest$ac_exeext conftest.$ac_ext
32085 cat >conftest.$ac_ext <<_ACEOF
32088 cat confdefs.h >>conftest.$ac_ext
32089 cat >>conftest.$ac_ext <<_ACEOF
32090 /* end confdefs.h. */
32092 /* pthread test headers */
32093 #include <pthread.h>
32094 #if HAVE_PTHREADS < 7
32098 #define NULL (void*)0
32101 static void *task(p)
32104 return (void *) (p == NULL);
32108 int main(argc, argv)
32113 /* pthread test function */
32114 #ifndef PTHREAD_CREATE_DETACHED
32115 #define PTHREAD_CREATE_DETACHED 1
32119 int detach = PTHREAD_CREATE_DETACHED;
32121 #if HAVE_PTHREADS > 4
32122 /* Final pthreads */
32123 pthread_attr_t attr;
32125 status = pthread_attr_init(&attr);
32126 if( status ) return status;
32128 #if HAVE_PTHREADS < 7
32129 status = pthread_attr_setdetachstate(&attr, &detach);
32130 if( status < 0 ) status = errno;
32132 status = pthread_attr_setdetachstate(&attr, detach);
32134 if( status ) return status;
32135 status = pthread_create( &t, &attr, task, NULL );
32136 #if HAVE_PTHREADS < 7
32137 if( status < 0 ) status = errno;
32139 if( status ) return status;
32141 /* Draft 4 pthreads */
32142 status = pthread_create( &t, pthread_attr_default, task, NULL );
32143 if( status ) return errno;
32145 /* give thread a chance to complete */
32146 /* it should remain joinable and hence detachable */
32149 status = pthread_detach( &t );
32150 if( status ) return errno;
32153 #ifdef HAVE_LINUX_THREADS
32154 pthread_kill_other_threads_np();
32162 rm -f conftest$ac_exeext
32163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32164 (eval $ac_link) 2>&5
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169 (eval $ac_try) 2>&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
32173 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32175 echo "$as_me: program exited with status $ac_status" >&5
32176 echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32179 ( exit $ac_status )
32180 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32189 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32190 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32192 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32193 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32194 ol_link_threads=posix
32198 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32199 if test "$ol_link_threads" = no ; then
32200 # try -lpthread -lmach -lexc
32201 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32202 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32203 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32204 echo $ECHO_N "(cached) $ECHO_C" >&6
32209 LIBS="-lpthread -lmach -lexc $LIBS"
32211 if test "$cross_compiling" = yes; then
32212 cat >conftest.$ac_ext <<_ACEOF
32215 cat confdefs.h >>conftest.$ac_ext
32216 cat >>conftest.$ac_ext <<_ACEOF
32217 /* end confdefs.h. */
32219 /* pthread test headers */
32220 #include <pthread.h>
32221 #if HAVE_PTHREADS < 7
32225 #define NULL (void*)0
32228 static void *task(p)
32231 return (void *) (p == NULL);
32238 /* pthread test function */
32239 #ifndef PTHREAD_CREATE_DETACHED
32240 #define PTHREAD_CREATE_DETACHED 1
32244 int detach = PTHREAD_CREATE_DETACHED;
32246 #if HAVE_PTHREADS > 4
32247 /* Final pthreads */
32248 pthread_attr_t attr;
32250 status = pthread_attr_init(&attr);
32251 if( status ) return status;
32253 #if HAVE_PTHREADS < 7
32254 status = pthread_attr_setdetachstate(&attr, &detach);
32255 if( status < 0 ) status = errno;
32257 status = pthread_attr_setdetachstate(&attr, detach);
32259 if( status ) return status;
32260 status = pthread_create( &t, &attr, task, NULL );
32261 #if HAVE_PTHREADS < 7
32262 if( status < 0 ) status = errno;
32264 if( status ) return status;
32266 /* Draft 4 pthreads */
32267 status = pthread_create( &t, pthread_attr_default, task, NULL );
32268 if( status ) return errno;
32270 /* give thread a chance to complete */
32271 /* it should remain joinable and hence detachable */
32274 status = pthread_detach( &t );
32275 if( status ) return errno;
32278 #ifdef HAVE_LINUX_THREADS
32279 pthread_kill_other_threads_np();
32288 rm -f conftest.$ac_objext conftest$ac_exeext
32289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32290 (eval $ac_link) 2>conftest.er1
32292 grep -v '^ *+' conftest.er1 >conftest.err
32294 cat conftest.err >&5
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); } &&
32297 { ac_try='test -z "$ac_c_werror_flag"
32298 || test ! -s conftest.err'
32299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32300 (eval $ac_try) 2>&5
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; } &&
32304 { ac_try='test -s conftest$ac_exeext'
32305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32306 (eval $ac_try) 2>&5
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); }; }; then
32310 ol_cv_pthread_lpthread_lmach_lexc=yes
32312 echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32315 ol_cv_pthread_lpthread_lmach_lexc=no
32317 rm -f conftest.err conftest.$ac_objext \
32318 conftest$ac_exeext conftest.$ac_ext
32320 cat >conftest.$ac_ext <<_ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h. */
32327 /* pthread test headers */
32328 #include <pthread.h>
32329 #if HAVE_PTHREADS < 7
32333 #define NULL (void*)0
32336 static void *task(p)
32339 return (void *) (p == NULL);
32343 int main(argc, argv)
32348 /* pthread test function */
32349 #ifndef PTHREAD_CREATE_DETACHED
32350 #define PTHREAD_CREATE_DETACHED 1
32354 int detach = PTHREAD_CREATE_DETACHED;
32356 #if HAVE_PTHREADS > 4
32357 /* Final pthreads */
32358 pthread_attr_t attr;
32360 status = pthread_attr_init(&attr);
32361 if( status ) return status;
32363 #if HAVE_PTHREADS < 7
32364 status = pthread_attr_setdetachstate(&attr, &detach);
32365 if( status < 0 ) status = errno;
32367 status = pthread_attr_setdetachstate(&attr, detach);
32369 if( status ) return status;
32370 status = pthread_create( &t, &attr, task, NULL );
32371 #if HAVE_PTHREADS < 7
32372 if( status < 0 ) status = errno;
32374 if( status ) return status;
32376 /* Draft 4 pthreads */
32377 status = pthread_create( &t, pthread_attr_default, task, NULL );
32378 if( status ) return errno;
32380 /* give thread a chance to complete */
32381 /* it should remain joinable and hence detachable */
32384 status = pthread_detach( &t );
32385 if( status ) return errno;
32388 #ifdef HAVE_LINUX_THREADS
32389 pthread_kill_other_threads_np();
32397 rm -f conftest$ac_exeext
32398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32399 (eval $ac_link) 2>&5
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404 (eval $ac_try) 2>&5
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; }; then
32408 ol_cv_pthread_lpthread_lmach_lexc=yes
32410 echo "$as_me: program exited with status $ac_status" >&5
32411 echo "$as_me: failed program was:" >&5
32412 sed 's/^/| /' conftest.$ac_ext >&5
32414 ( exit $ac_status )
32415 ol_cv_pthread_lpthread_lmach_lexc=no
32417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32424 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32425 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32427 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32428 ol_link_pthreads="-lpthread -lmach -lexc"
32429 ol_link_threads=posix
32434 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32435 if test "$ol_link_threads" = no ; then
32436 # try -lpthread -Wl,-woff,85
32437 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32438 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32439 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32440 echo $ECHO_N "(cached) $ECHO_C" >&6
32445 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32447 if test "$cross_compiling" = yes; then
32448 cat >conftest.$ac_ext <<_ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h. */
32455 /* pthread test headers */
32456 #include <pthread.h>
32457 #if HAVE_PTHREADS < 7
32461 #define NULL (void*)0
32464 static void *task(p)
32467 return (void *) (p == NULL);
32474 /* pthread test function */
32475 #ifndef PTHREAD_CREATE_DETACHED
32476 #define PTHREAD_CREATE_DETACHED 1
32480 int detach = PTHREAD_CREATE_DETACHED;
32482 #if HAVE_PTHREADS > 4
32483 /* Final pthreads */
32484 pthread_attr_t attr;
32486 status = pthread_attr_init(&attr);
32487 if( status ) return status;
32489 #if HAVE_PTHREADS < 7
32490 status = pthread_attr_setdetachstate(&attr, &detach);
32491 if( status < 0 ) status = errno;
32493 status = pthread_attr_setdetachstate(&attr, detach);
32495 if( status ) return status;
32496 status = pthread_create( &t, &attr, task, NULL );
32497 #if HAVE_PTHREADS < 7
32498 if( status < 0 ) status = errno;
32500 if( status ) return status;
32502 /* Draft 4 pthreads */
32503 status = pthread_create( &t, pthread_attr_default, task, NULL );
32504 if( status ) return errno;
32506 /* give thread a chance to complete */
32507 /* it should remain joinable and hence detachable */
32510 status = pthread_detach( &t );
32511 if( status ) return errno;
32514 #ifdef HAVE_LINUX_THREADS
32515 pthread_kill_other_threads_np();
32524 rm -f conftest.$ac_objext conftest$ac_exeext
32525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32526 (eval $ac_link) 2>conftest.er1
32528 grep -v '^ *+' conftest.er1 >conftest.err
32530 cat conftest.err >&5
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); } &&
32533 { ac_try='test -z "$ac_c_werror_flag"
32534 || test ! -s conftest.err'
32535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32536 (eval $ac_try) 2>&5
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); }; } &&
32540 { ac_try='test -s conftest$ac_exeext'
32541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542 (eval $ac_try) 2>&5
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); }; }; then
32546 ol_cv_pthread_lib_lpthread_woff=yes
32548 echo "$as_me: failed program was:" >&5
32549 sed 's/^/| /' conftest.$ac_ext >&5
32551 ol_cv_pthread_lib_lpthread_woff=no
32553 rm -f conftest.err conftest.$ac_objext \
32554 conftest$ac_exeext conftest.$ac_ext
32556 cat >conftest.$ac_ext <<_ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h. */
32563 /* pthread test headers */
32564 #include <pthread.h>
32565 #if HAVE_PTHREADS < 7
32569 #define NULL (void*)0
32572 static void *task(p)
32575 return (void *) (p == NULL);
32579 int main(argc, argv)
32584 /* pthread test function */
32585 #ifndef PTHREAD_CREATE_DETACHED
32586 #define PTHREAD_CREATE_DETACHED 1
32590 int detach = PTHREAD_CREATE_DETACHED;
32592 #if HAVE_PTHREADS > 4
32593 /* Final pthreads */
32594 pthread_attr_t attr;
32596 status = pthread_attr_init(&attr);
32597 if( status ) return status;
32599 #if HAVE_PTHREADS < 7
32600 status = pthread_attr_setdetachstate(&attr, &detach);
32601 if( status < 0 ) status = errno;
32603 status = pthread_attr_setdetachstate(&attr, detach);
32605 if( status ) return status;
32606 status = pthread_create( &t, &attr, task, NULL );
32607 #if HAVE_PTHREADS < 7
32608 if( status < 0 ) status = errno;
32610 if( status ) return status;
32612 /* Draft 4 pthreads */
32613 status = pthread_create( &t, pthread_attr_default, task, NULL );
32614 if( status ) return errno;
32616 /* give thread a chance to complete */
32617 /* it should remain joinable and hence detachable */
32620 status = pthread_detach( &t );
32621 if( status ) return errno;
32624 #ifdef HAVE_LINUX_THREADS
32625 pthread_kill_other_threads_np();
32633 rm -f conftest$ac_exeext
32634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32635 (eval $ac_link) 2>&5
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32640 (eval $ac_try) 2>&5
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); }; }; then
32644 ol_cv_pthread_lib_lpthread_woff=yes
32646 echo "$as_me: program exited with status $ac_status" >&5
32647 echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32650 ( exit $ac_status )
32651 ol_cv_pthread_lib_lpthread_woff=no
32653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32660 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32661 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32663 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32664 ol_link_pthreads="-lpthread -Wl,-woff,85"
32665 ol_link_threads=posix
32670 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32671 if test "$ol_link_threads" = no ; then
32673 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32674 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32675 if test "${ol_cv_pthread_lpthread+set}" = set; then
32676 echo $ECHO_N "(cached) $ECHO_C" >&6
32681 LIBS="-lpthread $LIBS"
32683 if test "$cross_compiling" = yes; then
32684 cat >conftest.$ac_ext <<_ACEOF
32687 cat confdefs.h >>conftest.$ac_ext
32688 cat >>conftest.$ac_ext <<_ACEOF
32689 /* end confdefs.h. */
32691 /* pthread test headers */
32692 #include <pthread.h>
32693 #if HAVE_PTHREADS < 7
32697 #define NULL (void*)0
32700 static void *task(p)
32703 return (void *) (p == NULL);
32710 /* pthread test function */
32711 #ifndef PTHREAD_CREATE_DETACHED
32712 #define PTHREAD_CREATE_DETACHED 1
32716 int detach = PTHREAD_CREATE_DETACHED;
32718 #if HAVE_PTHREADS > 4
32719 /* Final pthreads */
32720 pthread_attr_t attr;
32722 status = pthread_attr_init(&attr);
32723 if( status ) return status;
32725 #if HAVE_PTHREADS < 7
32726 status = pthread_attr_setdetachstate(&attr, &detach);
32727 if( status < 0 ) status = errno;
32729 status = pthread_attr_setdetachstate(&attr, detach);
32731 if( status ) return status;
32732 status = pthread_create( &t, &attr, task, NULL );
32733 #if HAVE_PTHREADS < 7
32734 if( status < 0 ) status = errno;
32736 if( status ) return status;
32738 /* Draft 4 pthreads */
32739 status = pthread_create( &t, pthread_attr_default, task, NULL );
32740 if( status ) return errno;
32742 /* give thread a chance to complete */
32743 /* it should remain joinable and hence detachable */
32746 status = pthread_detach( &t );
32747 if( status ) return errno;
32750 #ifdef HAVE_LINUX_THREADS
32751 pthread_kill_other_threads_np();
32760 rm -f conftest.$ac_objext conftest$ac_exeext
32761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32762 (eval $ac_link) 2>conftest.er1
32764 grep -v '^ *+' conftest.er1 >conftest.err
32766 cat conftest.err >&5
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); } &&
32769 { ac_try='test -z "$ac_c_werror_flag"
32770 || test ! -s conftest.err'
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; } &&
32776 { ac_try='test -s conftest$ac_exeext'
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
32782 ol_cv_pthread_lpthread=yes
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32787 ol_cv_pthread_lpthread=no
32789 rm -f conftest.err conftest.$ac_objext \
32790 conftest$ac_exeext conftest.$ac_ext
32792 cat >conftest.$ac_ext <<_ACEOF
32795 cat confdefs.h >>conftest.$ac_ext
32796 cat >>conftest.$ac_ext <<_ACEOF
32797 /* end confdefs.h. */
32799 /* pthread test headers */
32800 #include <pthread.h>
32801 #if HAVE_PTHREADS < 7
32805 #define NULL (void*)0
32808 static void *task(p)
32811 return (void *) (p == NULL);
32815 int main(argc, argv)
32820 /* pthread test function */
32821 #ifndef PTHREAD_CREATE_DETACHED
32822 #define PTHREAD_CREATE_DETACHED 1
32826 int detach = PTHREAD_CREATE_DETACHED;
32828 #if HAVE_PTHREADS > 4
32829 /* Final pthreads */
32830 pthread_attr_t attr;
32832 status = pthread_attr_init(&attr);
32833 if( status ) return status;
32835 #if HAVE_PTHREADS < 7
32836 status = pthread_attr_setdetachstate(&attr, &detach);
32837 if( status < 0 ) status = errno;
32839 status = pthread_attr_setdetachstate(&attr, detach);
32841 if( status ) return status;
32842 status = pthread_create( &t, &attr, task, NULL );
32843 #if HAVE_PTHREADS < 7
32844 if( status < 0 ) status = errno;
32846 if( status ) return status;
32848 /* Draft 4 pthreads */
32849 status = pthread_create( &t, pthread_attr_default, task, NULL );
32850 if( status ) return errno;
32852 /* give thread a chance to complete */
32853 /* it should remain joinable and hence detachable */
32856 status = pthread_detach( &t );
32857 if( status ) return errno;
32860 #ifdef HAVE_LINUX_THREADS
32861 pthread_kill_other_threads_np();
32869 rm -f conftest$ac_exeext
32870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32871 (eval $ac_link) 2>&5
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32876 (eval $ac_try) 2>&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; }; then
32880 ol_cv_pthread_lpthread=yes
32882 echo "$as_me: program exited with status $ac_status" >&5
32883 echo "$as_me: failed program was:" >&5
32884 sed 's/^/| /' conftest.$ac_ext >&5
32886 ( exit $ac_status )
32887 ol_cv_pthread_lpthread=no
32889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32896 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32897 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32899 if test $ol_cv_pthread_lpthread = yes ; then
32900 ol_link_pthreads="-lpthread"
32901 ol_link_threads=posix
32905 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32906 if test "$ol_link_threads" = no ; then
32908 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32909 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32910 if test "${ol_cv_pthread_lc_r+set}" = set; then
32911 echo $ECHO_N "(cached) $ECHO_C" >&6
32918 if test "$cross_compiling" = yes; then
32919 cat >conftest.$ac_ext <<_ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h. */
32926 /* pthread test headers */
32927 #include <pthread.h>
32928 #if HAVE_PTHREADS < 7
32932 #define NULL (void*)0
32935 static void *task(p)
32938 return (void *) (p == NULL);
32945 /* pthread test function */
32946 #ifndef PTHREAD_CREATE_DETACHED
32947 #define PTHREAD_CREATE_DETACHED 1
32951 int detach = PTHREAD_CREATE_DETACHED;
32953 #if HAVE_PTHREADS > 4
32954 /* Final pthreads */
32955 pthread_attr_t attr;
32957 status = pthread_attr_init(&attr);
32958 if( status ) return status;
32960 #if HAVE_PTHREADS < 7
32961 status = pthread_attr_setdetachstate(&attr, &detach);
32962 if( status < 0 ) status = errno;
32964 status = pthread_attr_setdetachstate(&attr, detach);
32966 if( status ) return status;
32967 status = pthread_create( &t, &attr, task, NULL );
32968 #if HAVE_PTHREADS < 7
32969 if( status < 0 ) status = errno;
32971 if( status ) return status;
32973 /* Draft 4 pthreads */
32974 status = pthread_create( &t, pthread_attr_default, task, NULL );
32975 if( status ) return errno;
32977 /* give thread a chance to complete */
32978 /* it should remain joinable and hence detachable */
32981 status = pthread_detach( &t );
32982 if( status ) return errno;
32985 #ifdef HAVE_LINUX_THREADS
32986 pthread_kill_other_threads_np();
32995 rm -f conftest.$ac_objext conftest$ac_exeext
32996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32997 (eval $ac_link) 2>conftest.er1
32999 grep -v '^ *+' conftest.er1 >conftest.err
33001 cat conftest.err >&5
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); } &&
33004 { ac_try='test -z "$ac_c_werror_flag"
33005 || test ! -s conftest.err'
33006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007 (eval $ac_try) 2>&5
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; } &&
33011 { ac_try='test -s conftest$ac_exeext'
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; }; then
33017 ol_cv_pthread_lc_r=yes
33019 echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.$ac_ext >&5
33022 ol_cv_pthread_lc_r=no
33024 rm -f conftest.err conftest.$ac_objext \
33025 conftest$ac_exeext conftest.$ac_ext
33027 cat >conftest.$ac_ext <<_ACEOF
33030 cat confdefs.h >>conftest.$ac_ext
33031 cat >>conftest.$ac_ext <<_ACEOF
33032 /* end confdefs.h. */
33034 /* pthread test headers */
33035 #include <pthread.h>
33036 #if HAVE_PTHREADS < 7
33040 #define NULL (void*)0
33043 static void *task(p)
33046 return (void *) (p == NULL);
33050 int main(argc, argv)
33055 /* pthread test function */
33056 #ifndef PTHREAD_CREATE_DETACHED
33057 #define PTHREAD_CREATE_DETACHED 1
33061 int detach = PTHREAD_CREATE_DETACHED;
33063 #if HAVE_PTHREADS > 4
33064 /* Final pthreads */
33065 pthread_attr_t attr;
33067 status = pthread_attr_init(&attr);
33068 if( status ) return status;
33070 #if HAVE_PTHREADS < 7
33071 status = pthread_attr_setdetachstate(&attr, &detach);
33072 if( status < 0 ) status = errno;
33074 status = pthread_attr_setdetachstate(&attr, detach);
33076 if( status ) return status;
33077 status = pthread_create( &t, &attr, task, NULL );
33078 #if HAVE_PTHREADS < 7
33079 if( status < 0 ) status = errno;
33081 if( status ) return status;
33083 /* Draft 4 pthreads */
33084 status = pthread_create( &t, pthread_attr_default, task, NULL );
33085 if( status ) return errno;
33087 /* give thread a chance to complete */
33088 /* it should remain joinable and hence detachable */
33091 status = pthread_detach( &t );
33092 if( status ) return errno;
33095 #ifdef HAVE_LINUX_THREADS
33096 pthread_kill_other_threads_np();
33104 rm -f conftest$ac_exeext
33105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33106 (eval $ac_link) 2>&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33111 (eval $ac_try) 2>&5
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); }; }; then
33115 ol_cv_pthread_lc_r=yes
33117 echo "$as_me: program exited with status $ac_status" >&5
33118 echo "$as_me: failed program was:" >&5
33119 sed 's/^/| /' conftest.$ac_ext >&5
33121 ( exit $ac_status )
33122 ol_cv_pthread_lc_r=no
33124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33131 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33132 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33134 if test $ol_cv_pthread_lc_r = yes ; then
33135 ol_link_pthreads="-lc_r"
33136 ol_link_threads=posix
33141 # Pthread try link: -threads (ol_cv_pthread_threads)
33142 if test "$ol_link_threads" = no ; then
33144 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33145 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33146 if test "${ol_cv_pthread_threads+set}" = set; then
33147 echo $ECHO_N "(cached) $ECHO_C" >&6
33152 LIBS="-threads $LIBS"
33154 if test "$cross_compiling" = yes; then
33155 cat >conftest.$ac_ext <<_ACEOF
33158 cat confdefs.h >>conftest.$ac_ext
33159 cat >>conftest.$ac_ext <<_ACEOF
33160 /* end confdefs.h. */
33162 /* pthread test headers */
33163 #include <pthread.h>
33164 #if HAVE_PTHREADS < 7
33168 #define NULL (void*)0
33171 static void *task(p)
33174 return (void *) (p == NULL);
33181 /* pthread test function */
33182 #ifndef PTHREAD_CREATE_DETACHED
33183 #define PTHREAD_CREATE_DETACHED 1
33187 int detach = PTHREAD_CREATE_DETACHED;
33189 #if HAVE_PTHREADS > 4
33190 /* Final pthreads */
33191 pthread_attr_t attr;
33193 status = pthread_attr_init(&attr);
33194 if( status ) return status;
33196 #if HAVE_PTHREADS < 7
33197 status = pthread_attr_setdetachstate(&attr, &detach);
33198 if( status < 0 ) status = errno;
33200 status = pthread_attr_setdetachstate(&attr, detach);
33202 if( status ) return status;
33203 status = pthread_create( &t, &attr, task, NULL );
33204 #if HAVE_PTHREADS < 7
33205 if( status < 0 ) status = errno;
33207 if( status ) return status;
33209 /* Draft 4 pthreads */
33210 status = pthread_create( &t, pthread_attr_default, task, NULL );
33211 if( status ) return errno;
33213 /* give thread a chance to complete */
33214 /* it should remain joinable and hence detachable */
33217 status = pthread_detach( &t );
33218 if( status ) return errno;
33221 #ifdef HAVE_LINUX_THREADS
33222 pthread_kill_other_threads_np();
33231 rm -f conftest.$ac_objext conftest$ac_exeext
33232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33233 (eval $ac_link) 2>conftest.er1
33235 grep -v '^ *+' conftest.er1 >conftest.err
33237 cat conftest.err >&5
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); } &&
33240 { ac_try='test -z "$ac_c_werror_flag"
33241 || test ! -s conftest.err'
33242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33243 (eval $ac_try) 2>&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); }; } &&
33247 { ac_try='test -s conftest$ac_exeext'
33248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249 (eval $ac_try) 2>&5
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; }; then
33253 ol_cv_pthread_threads=yes
33255 echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33258 ol_cv_pthread_threads=no
33260 rm -f conftest.err conftest.$ac_objext \
33261 conftest$ac_exeext conftest.$ac_ext
33263 cat >conftest.$ac_ext <<_ACEOF
33266 cat confdefs.h >>conftest.$ac_ext
33267 cat >>conftest.$ac_ext <<_ACEOF
33268 /* end confdefs.h. */
33270 /* pthread test headers */
33271 #include <pthread.h>
33272 #if HAVE_PTHREADS < 7
33276 #define NULL (void*)0
33279 static void *task(p)
33282 return (void *) (p == NULL);
33286 int main(argc, argv)
33291 /* pthread test function */
33292 #ifndef PTHREAD_CREATE_DETACHED
33293 #define PTHREAD_CREATE_DETACHED 1
33297 int detach = PTHREAD_CREATE_DETACHED;
33299 #if HAVE_PTHREADS > 4
33300 /* Final pthreads */
33301 pthread_attr_t attr;
33303 status = pthread_attr_init(&attr);
33304 if( status ) return status;
33306 #if HAVE_PTHREADS < 7
33307 status = pthread_attr_setdetachstate(&attr, &detach);
33308 if( status < 0 ) status = errno;
33310 status = pthread_attr_setdetachstate(&attr, detach);
33312 if( status ) return status;
33313 status = pthread_create( &t, &attr, task, NULL );
33314 #if HAVE_PTHREADS < 7
33315 if( status < 0 ) status = errno;
33317 if( status ) return status;
33319 /* Draft 4 pthreads */
33320 status = pthread_create( &t, pthread_attr_default, task, NULL );
33321 if( status ) return errno;
33323 /* give thread a chance to complete */
33324 /* it should remain joinable and hence detachable */
33327 status = pthread_detach( &t );
33328 if( status ) return errno;
33331 #ifdef HAVE_LINUX_THREADS
33332 pthread_kill_other_threads_np();
33340 rm -f conftest$ac_exeext
33341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33342 (eval $ac_link) 2>&5
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33347 (eval $ac_try) 2>&5
33349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350 (exit $ac_status); }; }; then
33351 ol_cv_pthread_threads=yes
33353 echo "$as_me: program exited with status $ac_status" >&5
33354 echo "$as_me: failed program was:" >&5
33355 sed 's/^/| /' conftest.$ac_ext >&5
33357 ( exit $ac_status )
33358 ol_cv_pthread_threads=no
33360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33367 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33368 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33370 if test $ol_cv_pthread_threads = yes ; then
33371 ol_link_pthreads="-threads"
33372 ol_link_threads=posix
33377 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33378 if test "$ol_link_threads" = no ; then
33379 # try -lpthreads -lmach -lexc -lc_r
33380 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33381 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33382 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33383 echo $ECHO_N "(cached) $ECHO_C" >&6
33388 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33390 if test "$cross_compiling" = yes; then
33391 cat >conftest.$ac_ext <<_ACEOF
33394 cat confdefs.h >>conftest.$ac_ext
33395 cat >>conftest.$ac_ext <<_ACEOF
33396 /* end confdefs.h. */
33398 /* pthread test headers */
33399 #include <pthread.h>
33400 #if HAVE_PTHREADS < 7
33404 #define NULL (void*)0
33407 static void *task(p)
33410 return (void *) (p == NULL);
33417 /* pthread test function */
33418 #ifndef PTHREAD_CREATE_DETACHED
33419 #define PTHREAD_CREATE_DETACHED 1
33423 int detach = PTHREAD_CREATE_DETACHED;
33425 #if HAVE_PTHREADS > 4
33426 /* Final pthreads */
33427 pthread_attr_t attr;
33429 status = pthread_attr_init(&attr);
33430 if( status ) return status;
33432 #if HAVE_PTHREADS < 7
33433 status = pthread_attr_setdetachstate(&attr, &detach);
33434 if( status < 0 ) status = errno;
33436 status = pthread_attr_setdetachstate(&attr, detach);
33438 if( status ) return status;
33439 status = pthread_create( &t, &attr, task, NULL );
33440 #if HAVE_PTHREADS < 7
33441 if( status < 0 ) status = errno;
33443 if( status ) return status;
33445 /* Draft 4 pthreads */
33446 status = pthread_create( &t, pthread_attr_default, task, NULL );
33447 if( status ) return errno;
33449 /* give thread a chance to complete */
33450 /* it should remain joinable and hence detachable */
33453 status = pthread_detach( &t );
33454 if( status ) return errno;
33457 #ifdef HAVE_LINUX_THREADS
33458 pthread_kill_other_threads_np();
33467 rm -f conftest.$ac_objext conftest$ac_exeext
33468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33469 (eval $ac_link) 2>conftest.er1
33471 grep -v '^ *+' conftest.er1 >conftest.err
33473 cat conftest.err >&5
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); } &&
33476 { ac_try='test -z "$ac_c_werror_flag"
33477 || test ! -s conftest.err'
33478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33479 (eval $ac_try) 2>&5
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); }; } &&
33483 { ac_try='test -s conftest$ac_exeext'
33484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485 (eval $ac_try) 2>&5
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); }; }; then
33489 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33491 echo "$as_me: failed program was:" >&5
33492 sed 's/^/| /' conftest.$ac_ext >&5
33494 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33496 rm -f conftest.err conftest.$ac_objext \
33497 conftest$ac_exeext conftest.$ac_ext
33499 cat >conftest.$ac_ext <<_ACEOF
33502 cat confdefs.h >>conftest.$ac_ext
33503 cat >>conftest.$ac_ext <<_ACEOF
33504 /* end confdefs.h. */
33506 /* pthread test headers */
33507 #include <pthread.h>
33508 #if HAVE_PTHREADS < 7
33512 #define NULL (void*)0
33515 static void *task(p)
33518 return (void *) (p == NULL);
33522 int main(argc, argv)
33527 /* pthread test function */
33528 #ifndef PTHREAD_CREATE_DETACHED
33529 #define PTHREAD_CREATE_DETACHED 1
33533 int detach = PTHREAD_CREATE_DETACHED;
33535 #if HAVE_PTHREADS > 4
33536 /* Final pthreads */
33537 pthread_attr_t attr;
33539 status = pthread_attr_init(&attr);
33540 if( status ) return status;
33542 #if HAVE_PTHREADS < 7
33543 status = pthread_attr_setdetachstate(&attr, &detach);
33544 if( status < 0 ) status = errno;
33546 status = pthread_attr_setdetachstate(&attr, detach);
33548 if( status ) return status;
33549 status = pthread_create( &t, &attr, task, NULL );
33550 #if HAVE_PTHREADS < 7
33551 if( status < 0 ) status = errno;
33553 if( status ) return status;
33555 /* Draft 4 pthreads */
33556 status = pthread_create( &t, pthread_attr_default, task, NULL );
33557 if( status ) return errno;
33559 /* give thread a chance to complete */
33560 /* it should remain joinable and hence detachable */
33563 status = pthread_detach( &t );
33564 if( status ) return errno;
33567 #ifdef HAVE_LINUX_THREADS
33568 pthread_kill_other_threads_np();
33576 rm -f conftest$ac_exeext
33577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33578 (eval $ac_link) 2>&5
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33583 (eval $ac_try) 2>&5
33585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); }; }; then
33587 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33589 echo "$as_me: program exited with status $ac_status" >&5
33590 echo "$as_me: failed program was:" >&5
33591 sed 's/^/| /' conftest.$ac_ext >&5
33593 ( exit $ac_status )
33594 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33603 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33604 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33606 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33607 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33608 ol_link_threads=posix
33612 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33613 if test "$ol_link_threads" = no ; then
33614 # try -lpthreads -lmach -lexc
33615 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33616 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33617 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33618 echo $ECHO_N "(cached) $ECHO_C" >&6
33623 LIBS="-lpthreads -lmach -lexc $LIBS"
33625 if test "$cross_compiling" = yes; then
33626 cat >conftest.$ac_ext <<_ACEOF
33629 cat confdefs.h >>conftest.$ac_ext
33630 cat >>conftest.$ac_ext <<_ACEOF
33631 /* end confdefs.h. */
33633 /* pthread test headers */
33634 #include <pthread.h>
33635 #if HAVE_PTHREADS < 7
33639 #define NULL (void*)0
33642 static void *task(p)
33645 return (void *) (p == NULL);
33652 /* pthread test function */
33653 #ifndef PTHREAD_CREATE_DETACHED
33654 #define PTHREAD_CREATE_DETACHED 1
33658 int detach = PTHREAD_CREATE_DETACHED;
33660 #if HAVE_PTHREADS > 4
33661 /* Final pthreads */
33662 pthread_attr_t attr;
33664 status = pthread_attr_init(&attr);
33665 if( status ) return status;
33667 #if HAVE_PTHREADS < 7
33668 status = pthread_attr_setdetachstate(&attr, &detach);
33669 if( status < 0 ) status = errno;
33671 status = pthread_attr_setdetachstate(&attr, detach);
33673 if( status ) return status;
33674 status = pthread_create( &t, &attr, task, NULL );
33675 #if HAVE_PTHREADS < 7
33676 if( status < 0 ) status = errno;
33678 if( status ) return status;
33680 /* Draft 4 pthreads */
33681 status = pthread_create( &t, pthread_attr_default, task, NULL );
33682 if( status ) return errno;
33684 /* give thread a chance to complete */
33685 /* it should remain joinable and hence detachable */
33688 status = pthread_detach( &t );
33689 if( status ) return errno;
33692 #ifdef HAVE_LINUX_THREADS
33693 pthread_kill_other_threads_np();
33702 rm -f conftest.$ac_objext conftest$ac_exeext
33703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33704 (eval $ac_link) 2>conftest.er1
33706 grep -v '^ *+' conftest.er1 >conftest.err
33708 cat conftest.err >&5
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); } &&
33711 { ac_try='test -z "$ac_c_werror_flag"
33712 || test ! -s conftest.err'
33713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33714 (eval $ac_try) 2>&5
33716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717 (exit $ac_status); }; } &&
33718 { ac_try='test -s conftest$ac_exeext'
33719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33720 (eval $ac_try) 2>&5
33722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723 (exit $ac_status); }; }; then
33724 ol_cv_pthread_lpthreads_lmach_lexc=yes
33726 echo "$as_me: failed program was:" >&5
33727 sed 's/^/| /' conftest.$ac_ext >&5
33729 ol_cv_pthread_lpthreads_lmach_lexc=no
33731 rm -f conftest.err conftest.$ac_objext \
33732 conftest$ac_exeext conftest.$ac_ext
33734 cat >conftest.$ac_ext <<_ACEOF
33737 cat confdefs.h >>conftest.$ac_ext
33738 cat >>conftest.$ac_ext <<_ACEOF
33739 /* end confdefs.h. */
33741 /* pthread test headers */
33742 #include <pthread.h>
33743 #if HAVE_PTHREADS < 7
33747 #define NULL (void*)0
33750 static void *task(p)
33753 return (void *) (p == NULL);
33757 int main(argc, argv)
33762 /* pthread test function */
33763 #ifndef PTHREAD_CREATE_DETACHED
33764 #define PTHREAD_CREATE_DETACHED 1
33768 int detach = PTHREAD_CREATE_DETACHED;
33770 #if HAVE_PTHREADS > 4
33771 /* Final pthreads */
33772 pthread_attr_t attr;
33774 status = pthread_attr_init(&attr);
33775 if( status ) return status;
33777 #if HAVE_PTHREADS < 7
33778 status = pthread_attr_setdetachstate(&attr, &detach);
33779 if( status < 0 ) status = errno;
33781 status = pthread_attr_setdetachstate(&attr, detach);
33783 if( status ) return status;
33784 status = pthread_create( &t, &attr, task, NULL );
33785 #if HAVE_PTHREADS < 7
33786 if( status < 0 ) status = errno;
33788 if( status ) return status;
33790 /* Draft 4 pthreads */
33791 status = pthread_create( &t, pthread_attr_default, task, NULL );
33792 if( status ) return errno;
33794 /* give thread a chance to complete */
33795 /* it should remain joinable and hence detachable */
33798 status = pthread_detach( &t );
33799 if( status ) return errno;
33802 #ifdef HAVE_LINUX_THREADS
33803 pthread_kill_other_threads_np();
33811 rm -f conftest$ac_exeext
33812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33813 (eval $ac_link) 2>&5
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33818 (eval $ac_try) 2>&5
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; }; then
33822 ol_cv_pthread_lpthreads_lmach_lexc=yes
33824 echo "$as_me: program exited with status $ac_status" >&5
33825 echo "$as_me: failed program was:" >&5
33826 sed 's/^/| /' conftest.$ac_ext >&5
33828 ( exit $ac_status )
33829 ol_cv_pthread_lpthreads_lmach_lexc=no
33831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33838 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33839 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33841 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33842 ol_link_pthreads="-lpthreads -lmach -lexc"
33843 ol_link_threads=posix
33847 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33848 if test "$ol_link_threads" = no ; then
33849 # try -lpthreads -lexc
33850 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33851 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33852 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
33858 LIBS="-lpthreads -lexc $LIBS"
33860 if test "$cross_compiling" = yes; then
33861 cat >conftest.$ac_ext <<_ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h. */
33868 /* pthread test headers */
33869 #include <pthread.h>
33870 #if HAVE_PTHREADS < 7
33874 #define NULL (void*)0
33877 static void *task(p)
33880 return (void *) (p == NULL);
33887 /* pthread test function */
33888 #ifndef PTHREAD_CREATE_DETACHED
33889 #define PTHREAD_CREATE_DETACHED 1
33893 int detach = PTHREAD_CREATE_DETACHED;
33895 #if HAVE_PTHREADS > 4
33896 /* Final pthreads */
33897 pthread_attr_t attr;
33899 status = pthread_attr_init(&attr);
33900 if( status ) return status;
33902 #if HAVE_PTHREADS < 7
33903 status = pthread_attr_setdetachstate(&attr, &detach);
33904 if( status < 0 ) status = errno;
33906 status = pthread_attr_setdetachstate(&attr, detach);
33908 if( status ) return status;
33909 status = pthread_create( &t, &attr, task, NULL );
33910 #if HAVE_PTHREADS < 7
33911 if( status < 0 ) status = errno;
33913 if( status ) return status;
33915 /* Draft 4 pthreads */
33916 status = pthread_create( &t, pthread_attr_default, task, NULL );
33917 if( status ) return errno;
33919 /* give thread a chance to complete */
33920 /* it should remain joinable and hence detachable */
33923 status = pthread_detach( &t );
33924 if( status ) return errno;
33927 #ifdef HAVE_LINUX_THREADS
33928 pthread_kill_other_threads_np();
33937 rm -f conftest.$ac_objext conftest$ac_exeext
33938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33939 (eval $ac_link) 2>conftest.er1
33941 grep -v '^ *+' conftest.er1 >conftest.err
33943 cat conftest.err >&5
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); } &&
33946 { ac_try='test -z "$ac_c_werror_flag"
33947 || test ! -s conftest.err'
33948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33949 (eval $ac_try) 2>&5
33951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); }; } &&
33953 { ac_try='test -s conftest$ac_exeext'
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33959 ol_cv_pthread_lpthreads_lexc=yes
33961 echo "$as_me: failed program was:" >&5
33962 sed 's/^/| /' conftest.$ac_ext >&5
33964 ol_cv_pthread_lpthreads_lexc=no
33966 rm -f conftest.err conftest.$ac_objext \
33967 conftest$ac_exeext conftest.$ac_ext
33969 cat >conftest.$ac_ext <<_ACEOF
33972 cat confdefs.h >>conftest.$ac_ext
33973 cat >>conftest.$ac_ext <<_ACEOF
33974 /* end confdefs.h. */
33976 /* pthread test headers */
33977 #include <pthread.h>
33978 #if HAVE_PTHREADS < 7
33982 #define NULL (void*)0
33985 static void *task(p)
33988 return (void *) (p == NULL);
33992 int main(argc, argv)
33997 /* pthread test function */
33998 #ifndef PTHREAD_CREATE_DETACHED
33999 #define PTHREAD_CREATE_DETACHED 1
34003 int detach = PTHREAD_CREATE_DETACHED;
34005 #if HAVE_PTHREADS > 4
34006 /* Final pthreads */
34007 pthread_attr_t attr;
34009 status = pthread_attr_init(&attr);
34010 if( status ) return status;
34012 #if HAVE_PTHREADS < 7
34013 status = pthread_attr_setdetachstate(&attr, &detach);
34014 if( status < 0 ) status = errno;
34016 status = pthread_attr_setdetachstate(&attr, detach);
34018 if( status ) return status;
34019 status = pthread_create( &t, &attr, task, NULL );
34020 #if HAVE_PTHREADS < 7
34021 if( status < 0 ) status = errno;
34023 if( status ) return status;
34025 /* Draft 4 pthreads */
34026 status = pthread_create( &t, pthread_attr_default, task, NULL );
34027 if( status ) return errno;
34029 /* give thread a chance to complete */
34030 /* it should remain joinable and hence detachable */
34033 status = pthread_detach( &t );
34034 if( status ) return errno;
34037 #ifdef HAVE_LINUX_THREADS
34038 pthread_kill_other_threads_np();
34046 rm -f conftest$ac_exeext
34047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34048 (eval $ac_link) 2>&5
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34053 (eval $ac_try) 2>&5
34055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34056 (exit $ac_status); }; }; then
34057 ol_cv_pthread_lpthreads_lexc=yes
34059 echo "$as_me: program exited with status $ac_status" >&5
34060 echo "$as_me: failed program was:" >&5
34061 sed 's/^/| /' conftest.$ac_ext >&5
34063 ( exit $ac_status )
34064 ol_cv_pthread_lpthreads_lexc=no
34066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34073 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
34074 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
34076 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
34077 ol_link_pthreads="-lpthreads -lexc"
34078 ol_link_threads=posix
34083 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
34084 if test "$ol_link_threads" = no ; then
34086 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
34087 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
34088 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
34089 echo $ECHO_N "(cached) $ECHO_C" >&6
34094 LIBS="-lpthreads $LIBS"
34096 if test "$cross_compiling" = yes; then
34097 cat >conftest.$ac_ext <<_ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h. */
34104 /* pthread test headers */
34105 #include <pthread.h>
34106 #if HAVE_PTHREADS < 7
34110 #define NULL (void*)0
34113 static void *task(p)
34116 return (void *) (p == NULL);
34123 /* pthread test function */
34124 #ifndef PTHREAD_CREATE_DETACHED
34125 #define PTHREAD_CREATE_DETACHED 1
34129 int detach = PTHREAD_CREATE_DETACHED;
34131 #if HAVE_PTHREADS > 4
34132 /* Final pthreads */
34133 pthread_attr_t attr;
34135 status = pthread_attr_init(&attr);
34136 if( status ) return status;
34138 #if HAVE_PTHREADS < 7
34139 status = pthread_attr_setdetachstate(&attr, &detach);
34140 if( status < 0 ) status = errno;
34142 status = pthread_attr_setdetachstate(&attr, detach);
34144 if( status ) return status;
34145 status = pthread_create( &t, &attr, task, NULL );
34146 #if HAVE_PTHREADS < 7
34147 if( status < 0 ) status = errno;
34149 if( status ) return status;
34151 /* Draft 4 pthreads */
34152 status = pthread_create( &t, pthread_attr_default, task, NULL );
34153 if( status ) return errno;
34155 /* give thread a chance to complete */
34156 /* it should remain joinable and hence detachable */
34159 status = pthread_detach( &t );
34160 if( status ) return errno;
34163 #ifdef HAVE_LINUX_THREADS
34164 pthread_kill_other_threads_np();
34173 rm -f conftest.$ac_objext conftest$ac_exeext
34174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34175 (eval $ac_link) 2>conftest.er1
34177 grep -v '^ *+' conftest.er1 >conftest.err
34179 cat conftest.err >&5
34180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181 (exit $ac_status); } &&
34182 { ac_try='test -z "$ac_c_werror_flag"
34183 || test ! -s conftest.err'
34184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34185 (eval $ac_try) 2>&5
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); }; } &&
34189 { ac_try='test -s conftest$ac_exeext'
34190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34191 (eval $ac_try) 2>&5
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; }; then
34195 ol_cv_pthread_lib_lpthreads=yes
34197 echo "$as_me: failed program was:" >&5
34198 sed 's/^/| /' conftest.$ac_ext >&5
34200 ol_cv_pthread_lib_lpthreads=no
34202 rm -f conftest.err conftest.$ac_objext \
34203 conftest$ac_exeext conftest.$ac_ext
34205 cat >conftest.$ac_ext <<_ACEOF
34208 cat confdefs.h >>conftest.$ac_ext
34209 cat >>conftest.$ac_ext <<_ACEOF
34210 /* end confdefs.h. */
34212 /* pthread test headers */
34213 #include <pthread.h>
34214 #if HAVE_PTHREADS < 7
34218 #define NULL (void*)0
34221 static void *task(p)
34224 return (void *) (p == NULL);
34228 int main(argc, argv)
34233 /* pthread test function */
34234 #ifndef PTHREAD_CREATE_DETACHED
34235 #define PTHREAD_CREATE_DETACHED 1
34239 int detach = PTHREAD_CREATE_DETACHED;
34241 #if HAVE_PTHREADS > 4
34242 /* Final pthreads */
34243 pthread_attr_t attr;
34245 status = pthread_attr_init(&attr);
34246 if( status ) return status;
34248 #if HAVE_PTHREADS < 7
34249 status = pthread_attr_setdetachstate(&attr, &detach);
34250 if( status < 0 ) status = errno;
34252 status = pthread_attr_setdetachstate(&attr, detach);
34254 if( status ) return status;
34255 status = pthread_create( &t, &attr, task, NULL );
34256 #if HAVE_PTHREADS < 7
34257 if( status < 0 ) status = errno;
34259 if( status ) return status;
34261 /* Draft 4 pthreads */
34262 status = pthread_create( &t, pthread_attr_default, task, NULL );
34263 if( status ) return errno;
34265 /* give thread a chance to complete */
34266 /* it should remain joinable and hence detachable */
34269 status = pthread_detach( &t );
34270 if( status ) return errno;
34273 #ifdef HAVE_LINUX_THREADS
34274 pthread_kill_other_threads_np();
34282 rm -f conftest$ac_exeext
34283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34284 (eval $ac_link) 2>&5
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34289 (eval $ac_try) 2>&5
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); }; }; then
34293 ol_cv_pthread_lib_lpthreads=yes
34295 echo "$as_me: program exited with status $ac_status" >&5
34296 echo "$as_me: failed program was:" >&5
34297 sed 's/^/| /' conftest.$ac_ext >&5
34299 ( exit $ac_status )
34300 ol_cv_pthread_lib_lpthreads=no
34302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34309 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34310 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34312 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34313 ol_link_pthreads="-lpthreads"
34314 ol_link_threads=posix
34319 if test $ol_link_threads != no ; then
34320 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34322 save_CPPFLAGS="$CPPFLAGS"
34324 LIBS="$LTHREAD_LIBS $LIBS"
34329 for ac_func in sched_yield pthread_yield thr_yield
34331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34332 echo "$as_me:$LINENO: checking for $ac_func" >&5
34333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34334 if eval "test \"\${$as_ac_var+set}\" = set"; then
34335 echo $ECHO_N "(cached) $ECHO_C" >&6
34337 cat >conftest.$ac_ext <<_ACEOF
34340 cat confdefs.h >>conftest.$ac_ext
34341 cat >>conftest.$ac_ext <<_ACEOF
34342 /* end confdefs.h. */
34343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34345 #define $ac_func innocuous_$ac_func
34347 /* System header to define __stub macros and hopefully few prototypes,
34348 which can conflict with char $ac_func (); below.
34349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34350 <limits.h> exists even on freestanding compilers. */
34353 # include <limits.h>
34355 # include <assert.h>
34360 /* Override any gcc2 internal prototype to avoid an error. */
34365 /* We use char because int might match the return type of a gcc2
34366 builtin and then its argument prototype would still apply. */
34368 /* The GNU C library defines this for functions which it implements
34369 to always fail with ENOSYS. Some functions are actually named
34370 something starting with __ and the normal name is an alias. */
34371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34374 char (*f) () = $ac_func;
34383 return f != $ac_func;
34388 rm -f conftest.$ac_objext conftest$ac_exeext
34389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34390 (eval $ac_link) 2>conftest.er1
34392 grep -v '^ *+' conftest.er1 >conftest.err
34394 cat conftest.err >&5
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); } &&
34397 { ac_try='test -z "$ac_c_werror_flag"
34398 || test ! -s conftest.err'
34399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400 (eval $ac_try) 2>&5
34402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403 (exit $ac_status); }; } &&
34404 { ac_try='test -s conftest$ac_exeext'
34405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34406 (eval $ac_try) 2>&5
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); }; }; then
34410 eval "$as_ac_var=yes"
34412 echo "$as_me: failed program was:" >&5
34413 sed 's/^/| /' conftest.$ac_ext >&5
34415 eval "$as_ac_var=no"
34417 rm -f conftest.err conftest.$ac_objext \
34418 conftest$ac_exeext conftest.$ac_ext
34420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34422 if test `eval echo '${'$as_ac_var'}'` = yes; then
34423 cat >>confdefs.h <<_ACEOF
34424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34431 if test $ac_cv_func_sched_yield = no -a \
34432 $ac_cv_func_pthread_yield = no -a \
34433 $ac_cv_func_thr_yield = no ; then
34434 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34435 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34436 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34437 echo $ECHO_N "(cached) $ECHO_C" >&6
34439 ac_check_lib_save_LIBS=$LIBS
34441 cat >conftest.$ac_ext <<_ACEOF
34444 cat confdefs.h >>conftest.$ac_ext
34445 cat >>conftest.$ac_ext <<_ACEOF
34446 /* end confdefs.h. */
34448 /* Override any gcc2 internal prototype to avoid an error. */
34452 /* We use char because int might match the return type of a gcc2
34453 builtin and then its argument prototype would still apply. */
34454 char sched_yield ();
34463 rm -f conftest.$ac_objext conftest$ac_exeext
34464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34465 (eval $ac_link) 2>conftest.er1
34467 grep -v '^ *+' conftest.er1 >conftest.err
34469 cat conftest.err >&5
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); } &&
34472 { ac_try='test -z "$ac_c_werror_flag"
34473 || test ! -s conftest.err'
34474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475 (eval $ac_try) 2>&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); }; } &&
34479 { ac_try='test -s conftest$ac_exeext'
34480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481 (eval $ac_try) 2>&5
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; }; then
34485 ac_cv_lib_rt_sched_yield=yes
34487 echo "$as_me: failed program was:" >&5
34488 sed 's/^/| /' conftest.$ac_ext >&5
34490 ac_cv_lib_rt_sched_yield=no
34492 rm -f conftest.err conftest.$ac_objext \
34493 conftest$ac_exeext conftest.$ac_ext
34494 LIBS=$ac_check_lib_save_LIBS
34496 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34497 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34498 if test $ac_cv_lib_rt_sched_yield = yes; then
34499 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34501 cat >>confdefs.h <<\_ACEOF
34502 #define HAVE_SCHED_YIELD 1
34505 ac_cv_func_sched_yield=yes
34507 ac_cv_func_sched_yield=no
34511 if test $ac_cv_func_sched_yield = no -a \
34512 $ac_cv_func_pthread_yield = no -a \
34513 "$ac_cv_func_thr_yield" = no ; then
34514 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34515 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34520 for ac_func in pthread_kill pthread_rwlock_destroy
34522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34523 echo "$as_me:$LINENO: checking for $ac_func" >&5
34524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34525 if eval "test \"\${$as_ac_var+set}\" = set"; then
34526 echo $ECHO_N "(cached) $ECHO_C" >&6
34528 cat >conftest.$ac_ext <<_ACEOF
34531 cat confdefs.h >>conftest.$ac_ext
34532 cat >>conftest.$ac_ext <<_ACEOF
34533 /* end confdefs.h. */
34534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34536 #define $ac_func innocuous_$ac_func
34538 /* System header to define __stub macros and hopefully few prototypes,
34539 which can conflict with char $ac_func (); below.
34540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34541 <limits.h> exists even on freestanding compilers. */
34544 # include <limits.h>
34546 # include <assert.h>
34551 /* Override any gcc2 internal prototype to avoid an error. */
34556 /* We use char because int might match the return type of a gcc2
34557 builtin and then its argument prototype would still apply. */
34559 /* The GNU C library defines this for functions which it implements
34560 to always fail with ENOSYS. Some functions are actually named
34561 something starting with __ and the normal name is an alias. */
34562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34565 char (*f) () = $ac_func;
34574 return f != $ac_func;
34579 rm -f conftest.$ac_objext conftest$ac_exeext
34580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34581 (eval $ac_link) 2>conftest.er1
34583 grep -v '^ *+' conftest.er1 >conftest.err
34585 cat conftest.err >&5
34586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 (exit $ac_status); } &&
34588 { ac_try='test -z "$ac_c_werror_flag"
34589 || test ! -s conftest.err'
34590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34591 (eval $ac_try) 2>&5
34593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34594 (exit $ac_status); }; } &&
34595 { ac_try='test -s conftest$ac_exeext'
34596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34597 (eval $ac_try) 2>&5
34599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34600 (exit $ac_status); }; }; then
34601 eval "$as_ac_var=yes"
34603 echo "$as_me: failed program was:" >&5
34604 sed 's/^/| /' conftest.$ac_ext >&5
34606 eval "$as_ac_var=no"
34608 rm -f conftest.err conftest.$ac_objext \
34609 conftest$ac_exeext conftest.$ac_ext
34611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34613 if test `eval echo '${'$as_ac_var'}'` = yes; then
34614 cat >>confdefs.h <<_ACEOF
34615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34622 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34623 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34624 if test "${ol_cv_func_pthread_detach+set}" = set; then
34625 echo $ECHO_N "(cached) $ECHO_C" >&6
34628 cat >conftest.$ac_ext <<_ACEOF
34631 cat confdefs.h >>conftest.$ac_ext
34632 cat >>conftest.$ac_ext <<_ACEOF
34633 /* end confdefs.h. */
34635 #include <pthread.h>
34637 #define NULL (void*)0
34643 pthread_detach(NULL);
34648 rm -f conftest.$ac_objext conftest$ac_exeext
34649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34650 (eval $ac_link) 2>conftest.er1
34652 grep -v '^ *+' conftest.er1 >conftest.err
34654 cat conftest.err >&5
34655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656 (exit $ac_status); } &&
34657 { ac_try='test -z "$ac_c_werror_flag"
34658 || test ! -s conftest.err'
34659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34660 (eval $ac_try) 2>&5
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); }; } &&
34664 { ac_try='test -s conftest$ac_exeext'
34665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34666 (eval $ac_try) 2>&5
34668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669 (exit $ac_status); }; }; then
34670 ol_cv_func_pthread_detach=yes
34672 echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.$ac_ext >&5
34675 ol_cv_func_pthread_detach=no
34677 rm -f conftest.err conftest.$ac_objext \
34678 conftest$ac_exeext conftest.$ac_ext
34681 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34682 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34684 if test $ol_cv_func_pthread_detach = no ; then
34685 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34686 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34687 { (exit 1); exit 1; }; }
34691 cat >>confdefs.h <<\_ACEOF
34692 #define HAVE_PTHREAD_DETACH 1
34701 pthread_setconcurrency \
34702 pthread_getconcurrency \
34703 thr_setconcurrency \
34704 thr_getconcurrency \
34707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34708 echo "$as_me:$LINENO: checking for $ac_func" >&5
34709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34710 if eval "test \"\${$as_ac_var+set}\" = set"; then
34711 echo $ECHO_N "(cached) $ECHO_C" >&6
34713 cat >conftest.$ac_ext <<_ACEOF
34716 cat confdefs.h >>conftest.$ac_ext
34717 cat >>conftest.$ac_ext <<_ACEOF
34718 /* end confdefs.h. */
34719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34721 #define $ac_func innocuous_$ac_func
34723 /* System header to define __stub macros and hopefully few prototypes,
34724 which can conflict with char $ac_func (); below.
34725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34726 <limits.h> exists even on freestanding compilers. */
34729 # include <limits.h>
34731 # include <assert.h>
34736 /* Override any gcc2 internal prototype to avoid an error. */
34741 /* We use char because int might match the return type of a gcc2
34742 builtin and then its argument prototype would still apply. */
34744 /* The GNU C library defines this for functions which it implements
34745 to always fail with ENOSYS. Some functions are actually named
34746 something starting with __ and the normal name is an alias. */
34747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34750 char (*f) () = $ac_func;
34759 return f != $ac_func;
34764 rm -f conftest.$ac_objext conftest$ac_exeext
34765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34766 (eval $ac_link) 2>conftest.er1
34768 grep -v '^ *+' conftest.er1 >conftest.err
34770 cat conftest.err >&5
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); } &&
34773 { ac_try='test -z "$ac_c_werror_flag"
34774 || test ! -s conftest.err'
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; } &&
34780 { ac_try='test -s conftest$ac_exeext'
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786 eval "$as_ac_var=yes"
34788 echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34791 eval "$as_ac_var=no"
34793 rm -f conftest.err conftest.$ac_objext \
34794 conftest$ac_exeext conftest.$ac_ext
34796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34798 if test `eval echo '${'$as_ac_var'}'` = yes; then
34799 cat >>confdefs.h <<_ACEOF
34800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34809 for ac_func in pthread_kill_other_threads_np
34811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34812 echo "$as_me:$LINENO: checking for $ac_func" >&5
34813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34814 if eval "test \"\${$as_ac_var+set}\" = set"; then
34815 echo $ECHO_N "(cached) $ECHO_C" >&6
34817 cat >conftest.$ac_ext <<_ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h. */
34823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34825 #define $ac_func innocuous_$ac_func
34827 /* System header to define __stub macros and hopefully few prototypes,
34828 which can conflict with char $ac_func (); below.
34829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34830 <limits.h> exists even on freestanding compilers. */
34833 # include <limits.h>
34835 # include <assert.h>
34840 /* Override any gcc2 internal prototype to avoid an error. */
34845 /* We use char because int might match the return type of a gcc2
34846 builtin and then its argument prototype would still apply. */
34848 /* The GNU C library defines this for functions which it implements
34849 to always fail with ENOSYS. Some functions are actually named
34850 something starting with __ and the normal name is an alias. */
34851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34854 char (*f) () = $ac_func;
34863 return f != $ac_func;
34868 rm -f conftest.$ac_objext conftest$ac_exeext
34869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34870 (eval $ac_link) 2>conftest.er1
34872 grep -v '^ *+' conftest.er1 >conftest.err
34874 cat conftest.err >&5
34875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876 (exit $ac_status); } &&
34877 { ac_try='test -z "$ac_c_werror_flag"
34878 || test ! -s conftest.err'
34879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34880 (eval $ac_try) 2>&5
34882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883 (exit $ac_status); }; } &&
34884 { ac_try='test -s conftest$ac_exeext'
34885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886 (eval $ac_try) 2>&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); }; }; then
34890 eval "$as_ac_var=yes"
34892 echo "$as_me: failed program was:" >&5
34893 sed 's/^/| /' conftest.$ac_ext >&5
34895 eval "$as_ac_var=no"
34897 rm -f conftest.err conftest.$ac_objext \
34898 conftest$ac_exeext conftest.$ac_ext
34900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34902 if test `eval echo '${'$as_ac_var'}'` = yes; then
34903 cat >>confdefs.h <<_ACEOF
34904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34910 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34911 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34912 if test "${ol_cv_sys_linux_threads+set}" = set; then
34913 echo $ECHO_N "(cached) $ECHO_C" >&6
34915 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34917 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34918 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34923 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34924 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34925 if test "${ol_cv_linux_threads+set}" = set; then
34926 echo $ECHO_N "(cached) $ECHO_C" >&6
34929 if test $ol_cv_header_linux_threads = yes -a \
34930 $ol_cv_sys_linux_threads = yes; then
34931 ol_cv_linux_threads=yes
34932 elif test $ol_cv_header_linux_threads = no -a \
34933 $ol_cv_sys_linux_threads = no; then
34934 ol_cv_linux_threads=no
34936 ol_cv_linux_threads=error
34940 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34941 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34944 if test $ol_cv_linux_threads = error; then
34945 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34946 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34947 { (exit 1); exit 1; }; };
34950 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34951 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34952 if test "${ol_cv_pthread_create_works+set}" = set; then
34953 echo $ECHO_N "(cached) $ECHO_C" >&6
34956 if test "$cross_compiling" = yes; then
34957 ol_cv_pthread_create_works=yes
34959 cat >conftest.$ac_ext <<_ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h. */
34966 /* pthread test headers */
34967 #include <pthread.h>
34968 #if HAVE_PTHREADS < 7
34972 #define NULL (void*)0
34975 static void *task(p)
34978 return (void *) (p == NULL);
34982 int main(argc, argv)
34987 /* pthread test function */
34988 #ifndef PTHREAD_CREATE_DETACHED
34989 #define PTHREAD_CREATE_DETACHED 1
34993 int detach = PTHREAD_CREATE_DETACHED;
34995 #if HAVE_PTHREADS > 4
34996 /* Final pthreads */
34997 pthread_attr_t attr;
34999 status = pthread_attr_init(&attr);
35000 if( status ) return status;
35002 #if HAVE_PTHREADS < 7
35003 status = pthread_attr_setdetachstate(&attr, &detach);
35004 if( status < 0 ) status = errno;
35006 status = pthread_attr_setdetachstate(&attr, detach);
35008 if( status ) return status;
35009 status = pthread_create( &t, &attr, task, NULL );
35010 #if HAVE_PTHREADS < 7
35011 if( status < 0 ) status = errno;
35013 if( status ) return status;
35015 /* Draft 4 pthreads */
35016 status = pthread_create( &t, pthread_attr_default, task, NULL );
35017 if( status ) return errno;
35019 /* give thread a chance to complete */
35020 /* it should remain joinable and hence detachable */
35023 status = pthread_detach( &t );
35024 if( status ) return errno;
35027 #ifdef HAVE_LINUX_THREADS
35028 pthread_kill_other_threads_np();
35036 rm -f conftest$ac_exeext
35037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35038 (eval $ac_link) 2>&5
35040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35043 (eval $ac_try) 2>&5
35045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); }; }; then
35047 ol_cv_pthread_create_works=yes
35049 echo "$as_me: program exited with status $ac_status" >&5
35050 echo "$as_me: failed program was:" >&5
35051 sed 's/^/| /' conftest.$ac_ext >&5
35053 ( exit $ac_status )
35054 ol_cv_pthread_create_works=no
35056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35059 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
35060 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
35062 if test $ol_cv_pthread_create_works = no ; then
35063 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
35064 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
35065 { (exit 1); exit 1; }; }
35068 if test $ol_with_yielding_select = auto ; then
35069 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
35070 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
35071 if test "${ol_cv_pthread_select_yields+set}" = set; then
35072 echo $ECHO_N "(cached) $ECHO_C" >&6
35075 if test "$cross_compiling" = yes; then
35076 ol_cv_pthread_select_yields=cross
35078 cat >conftest.$ac_ext <<_ACEOF
35081 cat confdefs.h >>conftest.$ac_ext
35082 cat >>conftest.$ac_ext <<_ACEOF
35083 /* end confdefs.h. */
35085 #include <sys/types.h>
35086 #include <sys/time.h>
35087 #include <unistd.h>
35088 #include <pthread.h>
35090 #define NULL (void*) 0
35093 static int fildes[2];
35095 static void *task(p)
35107 FD_SET(fildes[0], &rfds);
35109 /* we're not interested in any fds */
35110 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35117 exit(0); /* if we exit here, the select blocked the whole process */
35120 int main(argc, argv)
35126 /* create a pipe to select */
35127 if(pipe(&fildes[0])) {
35132 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35133 (void) pthread_setconcurrency(2);
35135 #ifdef HAVE_THR_SETCONCURRENCY
35136 /* Set Solaris LWP concurrency to 2 */
35137 thr_setconcurrency(2);
35141 #if HAVE_PTHREADS < 6
35142 pthread_create(&t, pthread_attr_default, task, NULL);
35144 pthread_create(&t, NULL, task, NULL);
35147 /* make sure task runs first */
35150 #elif defined( HAVE_SCHED_YIELD )
35152 #elif defined( HAVE_PTHREAD_YIELD )
35159 rm -f conftest$ac_exeext
35160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35161 (eval $ac_link) 2>&5
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35166 (eval $ac_try) 2>&5
35168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169 (exit $ac_status); }; }; then
35170 ol_cv_pthread_select_yields=no
35172 echo "$as_me: program exited with status $ac_status" >&5
35173 echo "$as_me: failed program was:" >&5
35174 sed 's/^/| /' conftest.$ac_ext >&5
35176 ( exit $ac_status )
35177 ol_cv_pthread_select_yields=yes
35179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35182 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35183 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35185 if test $ol_cv_pthread_select_yields = cross ; then
35186 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35187 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35188 { (exit 1); exit 1; }; }
35191 if test $ol_cv_pthread_select_yields = yes ; then
35192 ol_with_yielding_select=yes
35196 CPPFLAGS="$save_CPPFLAGS"
35199 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35200 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35201 { (exit 1); exit 1; }; }
35205 if test $ol_with_threads = posix ; then
35206 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35207 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35208 { (exit 1); exit 1; }; }
35212 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35213 -o $ol_with_threads = mach ; then
35217 for ac_header in mach/cthreads.h cthreads.h
35219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35221 echo "$as_me:$LINENO: checking for $ac_header" >&5
35222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35224 echo $ECHO_N "(cached) $ECHO_C" >&6
35226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35229 # Is the header compilable?
35230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35232 cat >conftest.$ac_ext <<_ACEOF
35235 cat confdefs.h >>conftest.$ac_ext
35236 cat >>conftest.$ac_ext <<_ACEOF
35237 /* end confdefs.h. */
35238 $ac_includes_default
35239 #include <$ac_header>
35241 rm -f conftest.$ac_objext
35242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35243 (eval $ac_compile) 2>conftest.er1
35245 grep -v '^ *+' conftest.er1 >conftest.err
35247 cat conftest.err >&5
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); } &&
35250 { ac_try='test -z "$ac_c_werror_flag"
35251 || test ! -s conftest.err'
35252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253 (eval $ac_try) 2>&5
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); }; } &&
35257 { ac_try='test -s conftest.$ac_objext'
35258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35259 (eval $ac_try) 2>&5
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); }; }; then
35263 ac_header_compiler=yes
35265 echo "$as_me: failed program was:" >&5
35266 sed 's/^/| /' conftest.$ac_ext >&5
35268 ac_header_compiler=no
35270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35272 echo "${ECHO_T}$ac_header_compiler" >&6
35274 # Is the header present?
35275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35277 cat >conftest.$ac_ext <<_ACEOF
35280 cat confdefs.h >>conftest.$ac_ext
35281 cat >>conftest.$ac_ext <<_ACEOF
35282 /* end confdefs.h. */
35283 #include <$ac_header>
35285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35288 grep -v '^ *+' conftest.er1 >conftest.err
35290 cat conftest.err >&5
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); } >/dev/null; then
35293 if test -s conftest.err; then
35294 ac_cpp_err=$ac_c_preproc_warn_flag
35295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35302 if test -z "$ac_cpp_err"; then
35303 ac_header_preproc=yes
35305 echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.$ac_ext >&5
35308 ac_header_preproc=no
35310 rm -f conftest.err conftest.$ac_ext
35311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35312 echo "${ECHO_T}$ac_header_preproc" >&6
35314 # So? What about this header?
35315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35321 ac_header_preproc=yes
35324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35338 ## ------------------------------------------ ##
35339 ## Report this to the AC_PACKAGE_NAME lists. ##
35340 ## ------------------------------------------ ##
35343 sed "s/^/$as_me: WARNING: /" >&2
35346 echo "$as_me:$LINENO: checking for $ac_header" >&5
35347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35349 echo $ECHO_N "(cached) $ECHO_C" >&6
35351 eval "$as_ac_Header=\$ac_header_preproc"
35353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35358 cat >>confdefs.h <<_ACEOF
35359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35366 if test $ac_cv_header_mach_cthreads_h = yes ; then
35367 ol_with_threads=found
35369 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35370 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35371 if test "${ac_cv_func_cthread_fork+set}" = set; then
35372 echo $ECHO_N "(cached) $ECHO_C" >&6
35374 cat >conftest.$ac_ext <<_ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h. */
35380 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35382 #define cthread_fork innocuous_cthread_fork
35384 /* System header to define __stub macros and hopefully few prototypes,
35385 which can conflict with char cthread_fork (); below.
35386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35387 <limits.h> exists even on freestanding compilers. */
35390 # include <limits.h>
35392 # include <assert.h>
35395 #undef cthread_fork
35397 /* Override any gcc2 internal prototype to avoid an error. */
35402 /* We use char because int might match the return type of a gcc2
35403 builtin and then its argument prototype would still apply. */
35404 char cthread_fork ();
35405 /* The GNU C library defines this for functions which it implements
35406 to always fail with ENOSYS. Some functions are actually named
35407 something starting with __ and the normal name is an alias. */
35408 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35411 char (*f) () = cthread_fork;
35420 return f != cthread_fork;
35425 rm -f conftest.$ac_objext conftest$ac_exeext
35426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35427 (eval $ac_link) 2>conftest.er1
35429 grep -v '^ *+' conftest.er1 >conftest.err
35431 cat conftest.err >&5
35432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35433 (exit $ac_status); } &&
35434 { ac_try='test -z "$ac_c_werror_flag"
35435 || test ! -s conftest.err'
35436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35437 (eval $ac_try) 2>&5
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); }; } &&
35441 { ac_try='test -s conftest$ac_exeext'
35442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443 (eval $ac_try) 2>&5
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); }; }; then
35447 ac_cv_func_cthread_fork=yes
35449 echo "$as_me: failed program was:" >&5
35450 sed 's/^/| /' conftest.$ac_ext >&5
35452 ac_cv_func_cthread_fork=no
35454 rm -f conftest.err conftest.$ac_objext \
35455 conftest$ac_exeext conftest.$ac_ext
35457 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35458 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35459 if test $ac_cv_func_cthread_fork = yes; then
35460 ol_link_threads=yes
35464 if test $ol_link_threads = no ; then
35465 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35466 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35467 if test "${ol_cv_cthread_all_load+set}" = set; then
35468 echo $ECHO_N "(cached) $ECHO_C" >&6
35472 LIBS="-all_load $LIBS"
35473 cat >conftest.$ac_ext <<_ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h. */
35479 #include <mach/cthreads.h>
35484 cthread_fork((void *)0, (void *)0);
35490 rm -f conftest.$ac_objext conftest$ac_exeext
35491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35492 (eval $ac_link) 2>conftest.er1
35494 grep -v '^ *+' conftest.er1 >conftest.err
35496 cat conftest.err >&5
35497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); } &&
35499 { ac_try='test -z "$ac_c_werror_flag"
35500 || test ! -s conftest.err'
35501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35502 (eval $ac_try) 2>&5
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); }; } &&
35506 { ac_try='test -s conftest$ac_exeext'
35507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35508 (eval $ac_try) 2>&5
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); }; }; then
35512 ol_cv_cthread_all_load=yes
35514 echo "$as_me: failed program was:" >&5
35515 sed 's/^/| /' conftest.$ac_ext >&5
35517 ol_cv_cthread_all_load=no
35519 rm -f conftest.err conftest.$ac_objext \
35520 conftest$ac_exeext conftest.$ac_ext
35524 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35525 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35527 if test $ol_cv_cthread_all_load = yes ; then
35528 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35529 ol_link_threads=mach
35530 ol_with_threads=found
35534 elif test $ac_cv_header_cthreads_h = yes ; then
35536 ol_with_threads=found
35539 LIBS="$LIBS -lthreads"
35540 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35541 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35542 if test "${ac_cv_func_cthread_fork+set}" = set; then
35543 echo $ECHO_N "(cached) $ECHO_C" >&6
35545 cat >conftest.$ac_ext <<_ACEOF
35548 cat confdefs.h >>conftest.$ac_ext
35549 cat >>conftest.$ac_ext <<_ACEOF
35550 /* end confdefs.h. */
35551 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35553 #define cthread_fork innocuous_cthread_fork
35555 /* System header to define __stub macros and hopefully few prototypes,
35556 which can conflict with char cthread_fork (); below.
35557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35558 <limits.h> exists even on freestanding compilers. */
35561 # include <limits.h>
35563 # include <assert.h>
35566 #undef cthread_fork
35568 /* Override any gcc2 internal prototype to avoid an error. */
35573 /* We use char because int might match the return type of a gcc2
35574 builtin and then its argument prototype would still apply. */
35575 char cthread_fork ();
35576 /* The GNU C library defines this for functions which it implements
35577 to always fail with ENOSYS. Some functions are actually named
35578 something starting with __ and the normal name is an alias. */
35579 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35582 char (*f) () = cthread_fork;
35591 return f != cthread_fork;
35596 rm -f conftest.$ac_objext conftest$ac_exeext
35597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35598 (eval $ac_link) 2>conftest.er1
35600 grep -v '^ *+' conftest.er1 >conftest.err
35602 cat conftest.err >&5
35603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 (exit $ac_status); } &&
35605 { ac_try='test -z "$ac_c_werror_flag"
35606 || test ! -s conftest.err'
35607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35608 (eval $ac_try) 2>&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); }; } &&
35612 { ac_try='test -s conftest$ac_exeext'
35613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614 (eval $ac_try) 2>&5
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); }; }; then
35618 ac_cv_func_cthread_fork=yes
35620 echo "$as_me: failed program was:" >&5
35621 sed 's/^/| /' conftest.$ac_ext >&5
35623 ac_cv_func_cthread_fork=no
35625 rm -f conftest.err conftest.$ac_objext \
35626 conftest$ac_exeext conftest.$ac_ext
35628 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35629 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35630 if test $ac_cv_func_cthread_fork = yes; then
35631 ol_link_threads=yes
35636 if test $ol_link_threads = yes ; then
35637 LTHREAD_LIBS="-lthreads"
35638 ol_link_threads=mach
35639 ol_with_threads=found
35641 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35642 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35643 { (exit 1); exit 1; }; }
35646 elif test $ol_with_threads = mach ; then
35647 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35648 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35649 { (exit 1); exit 1; }; }
35652 if test $ol_link_threads = mach ; then
35654 cat >>confdefs.h <<\_ACEOF
35655 #define HAVE_MACH_CTHREADS 1
35658 elif test $ol_with_threads = found ; then
35659 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35660 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35661 { (exit 1); exit 1; }; }
35665 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35666 -o $ol_with_threads = pth ; then
35669 for ac_header in pth.h
35671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35673 echo "$as_me:$LINENO: checking for $ac_header" >&5
35674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35676 echo $ECHO_N "(cached) $ECHO_C" >&6
35678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35681 # Is the header compilable?
35682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35684 cat >conftest.$ac_ext <<_ACEOF
35687 cat confdefs.h >>conftest.$ac_ext
35688 cat >>conftest.$ac_ext <<_ACEOF
35689 /* end confdefs.h. */
35690 $ac_includes_default
35691 #include <$ac_header>
35693 rm -f conftest.$ac_objext
35694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35695 (eval $ac_compile) 2>conftest.er1
35697 grep -v '^ *+' conftest.er1 >conftest.err
35699 cat conftest.err >&5
35700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701 (exit $ac_status); } &&
35702 { ac_try='test -z "$ac_c_werror_flag"
35703 || test ! -s conftest.err'
35704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35705 (eval $ac_try) 2>&5
35707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708 (exit $ac_status); }; } &&
35709 { ac_try='test -s conftest.$ac_objext'
35710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35711 (eval $ac_try) 2>&5
35713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714 (exit $ac_status); }; }; then
35715 ac_header_compiler=yes
35717 echo "$as_me: failed program was:" >&5
35718 sed 's/^/| /' conftest.$ac_ext >&5
35720 ac_header_compiler=no
35722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35724 echo "${ECHO_T}$ac_header_compiler" >&6
35726 # Is the header present?
35727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35729 cat >conftest.$ac_ext <<_ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h. */
35735 #include <$ac_header>
35737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35740 grep -v '^ *+' conftest.er1 >conftest.err
35742 cat conftest.err >&5
35743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744 (exit $ac_status); } >/dev/null; then
35745 if test -s conftest.err; then
35746 ac_cpp_err=$ac_c_preproc_warn_flag
35747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35754 if test -z "$ac_cpp_err"; then
35755 ac_header_preproc=yes
35757 echo "$as_me: failed program was:" >&5
35758 sed 's/^/| /' conftest.$ac_ext >&5
35760 ac_header_preproc=no
35762 rm -f conftest.err conftest.$ac_ext
35763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35764 echo "${ECHO_T}$ac_header_preproc" >&6
35766 # So? What about this header?
35767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35773 ac_header_preproc=yes
35776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35790 ## ------------------------------------------ ##
35791 ## Report this to the AC_PACKAGE_NAME lists. ##
35792 ## ------------------------------------------ ##
35795 sed "s/^/$as_me: WARNING: /" >&2
35798 echo "$as_me:$LINENO: checking for $ac_header" >&5
35799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35801 echo $ECHO_N "(cached) $ECHO_C" >&6
35803 eval "$as_ac_Header=\$ac_header_preproc"
35805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35810 cat >>confdefs.h <<_ACEOF
35811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35819 if test $ac_cv_header_pth_h = yes ; then
35820 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35821 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35822 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35823 echo $ECHO_N "(cached) $ECHO_C" >&6
35825 ac_check_lib_save_LIBS=$LIBS
35827 cat >conftest.$ac_ext <<_ACEOF
35830 cat confdefs.h >>conftest.$ac_ext
35831 cat >>conftest.$ac_ext <<_ACEOF
35832 /* end confdefs.h. */
35834 /* Override any gcc2 internal prototype to avoid an error. */
35838 /* We use char because int might match the return type of a gcc2
35839 builtin and then its argument prototype would still apply. */
35840 char pth_version ();
35849 rm -f conftest.$ac_objext conftest$ac_exeext
35850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35851 (eval $ac_link) 2>conftest.er1
35853 grep -v '^ *+' conftest.er1 >conftest.err
35855 cat conftest.err >&5
35856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35857 (exit $ac_status); } &&
35858 { ac_try='test -z "$ac_c_werror_flag"
35859 || test ! -s conftest.err'
35860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35861 (eval $ac_try) 2>&5
35863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864 (exit $ac_status); }; } &&
35865 { ac_try='test -s conftest$ac_exeext'
35866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867 (eval $ac_try) 2>&5
35869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870 (exit $ac_status); }; }; then
35871 ac_cv_lib_pth_pth_version=yes
35873 echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35876 ac_cv_lib_pth_pth_version=no
35878 rm -f conftest.err conftest.$ac_objext \
35879 conftest$ac_exeext conftest.$ac_ext
35880 LIBS=$ac_check_lib_save_LIBS
35882 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35883 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35884 if test $ac_cv_lib_pth_pth_version = yes; then
35891 if test $have_pth = yes ; then
35893 cat >>confdefs.h <<\_ACEOF
35894 #define HAVE_GNU_PTH 1
35897 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35898 ol_link_threads=pth
35899 ol_with_threads=found
35901 if test $ol_with_yielding_select = auto ; then
35902 ol_with_yielding_select=yes
35908 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35909 -o $ol_with_threads = lwp ; then
35913 for ac_header in thread.h synch.h
35915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35917 echo "$as_me:$LINENO: checking for $ac_header" >&5
35918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35920 echo $ECHO_N "(cached) $ECHO_C" >&6
35922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35925 # Is the header compilable?
35926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35928 cat >conftest.$ac_ext <<_ACEOF
35931 cat confdefs.h >>conftest.$ac_ext
35932 cat >>conftest.$ac_ext <<_ACEOF
35933 /* end confdefs.h. */
35934 $ac_includes_default
35935 #include <$ac_header>
35937 rm -f conftest.$ac_objext
35938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35939 (eval $ac_compile) 2>conftest.er1
35941 grep -v '^ *+' conftest.er1 >conftest.err
35943 cat conftest.err >&5
35944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945 (exit $ac_status); } &&
35946 { ac_try='test -z "$ac_c_werror_flag"
35947 || test ! -s conftest.err'
35948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35949 (eval $ac_try) 2>&5
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); }; } &&
35953 { ac_try='test -s conftest.$ac_objext'
35954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35955 (eval $ac_try) 2>&5
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); }; }; then
35959 ac_header_compiler=yes
35961 echo "$as_me: failed program was:" >&5
35962 sed 's/^/| /' conftest.$ac_ext >&5
35964 ac_header_compiler=no
35966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35968 echo "${ECHO_T}$ac_header_compiler" >&6
35970 # Is the header present?
35971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35973 cat >conftest.$ac_ext <<_ACEOF
35976 cat confdefs.h >>conftest.$ac_ext
35977 cat >>conftest.$ac_ext <<_ACEOF
35978 /* end confdefs.h. */
35979 #include <$ac_header>
35981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35984 grep -v '^ *+' conftest.er1 >conftest.err
35986 cat conftest.err >&5
35987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35988 (exit $ac_status); } >/dev/null; then
35989 if test -s conftest.err; then
35990 ac_cpp_err=$ac_c_preproc_warn_flag
35991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35998 if test -z "$ac_cpp_err"; then
35999 ac_header_preproc=yes
36001 echo "$as_me: failed program was:" >&5
36002 sed 's/^/| /' conftest.$ac_ext >&5
36004 ac_header_preproc=no
36006 rm -f conftest.err conftest.$ac_ext
36007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36008 echo "${ECHO_T}$ac_header_preproc" >&6
36010 # So? What about this header?
36011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36017 ac_header_preproc=yes
36020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36034 ## ------------------------------------------ ##
36035 ## Report this to the AC_PACKAGE_NAME lists. ##
36036 ## ------------------------------------------ ##
36039 sed "s/^/$as_me: WARNING: /" >&2
36042 echo "$as_me:$LINENO: checking for $ac_header" >&5
36043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36045 echo $ECHO_N "(cached) $ECHO_C" >&6
36047 eval "$as_ac_Header=\$ac_header_preproc"
36049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36054 cat >>confdefs.h <<_ACEOF
36055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36062 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
36063 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
36064 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
36065 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
36066 echo $ECHO_N "(cached) $ECHO_C" >&6
36068 ac_check_lib_save_LIBS=$LIBS
36069 LIBS="-lthread $LIBS"
36070 cat >conftest.$ac_ext <<_ACEOF
36073 cat confdefs.h >>conftest.$ac_ext
36074 cat >>conftest.$ac_ext <<_ACEOF
36075 /* end confdefs.h. */
36077 /* Override any gcc2 internal prototype to avoid an error. */
36081 /* We use char because int might match the return type of a gcc2
36082 builtin and then its argument prototype would still apply. */
36083 char thr_create ();
36092 rm -f conftest.$ac_objext conftest$ac_exeext
36093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36094 (eval $ac_link) 2>conftest.er1
36096 grep -v '^ *+' conftest.er1 >conftest.err
36098 cat conftest.err >&5
36099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36100 (exit $ac_status); } &&
36101 { ac_try='test -z "$ac_c_werror_flag"
36102 || test ! -s conftest.err'
36103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36104 (eval $ac_try) 2>&5
36106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107 (exit $ac_status); }; } &&
36108 { ac_try='test -s conftest$ac_exeext'
36109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36110 (eval $ac_try) 2>&5
36112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113 (exit $ac_status); }; }; then
36114 ac_cv_lib_thread_thr_create=yes
36116 echo "$as_me: failed program was:" >&5
36117 sed 's/^/| /' conftest.$ac_ext >&5
36119 ac_cv_lib_thread_thr_create=no
36121 rm -f conftest.err conftest.$ac_objext \
36122 conftest$ac_exeext conftest.$ac_ext
36123 LIBS=$ac_check_lib_save_LIBS
36125 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36126 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36127 if test $ac_cv_lib_thread_thr_create = yes; then
36134 if test $have_thr = yes ; then
36136 cat >>confdefs.h <<\_ACEOF
36140 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36141 ol_link_threads=thr
36143 if test $ol_with_yielding_select = auto ; then
36144 ol_with_yielding_select=yes
36150 thr_setconcurrency \
36151 thr_getconcurrency \
36154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36155 echo "$as_me:$LINENO: checking for $ac_func" >&5
36156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36157 if eval "test \"\${$as_ac_var+set}\" = set"; then
36158 echo $ECHO_N "(cached) $ECHO_C" >&6
36160 cat >conftest.$ac_ext <<_ACEOF
36163 cat confdefs.h >>conftest.$ac_ext
36164 cat >>conftest.$ac_ext <<_ACEOF
36165 /* end confdefs.h. */
36166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36168 #define $ac_func innocuous_$ac_func
36170 /* System header to define __stub macros and hopefully few prototypes,
36171 which can conflict with char $ac_func (); below.
36172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36173 <limits.h> exists even on freestanding compilers. */
36176 # include <limits.h>
36178 # include <assert.h>
36183 /* Override any gcc2 internal prototype to avoid an error. */
36188 /* We use char because int might match the return type of a gcc2
36189 builtin and then its argument prototype would still apply. */
36191 /* The GNU C library defines this for functions which it implements
36192 to always fail with ENOSYS. Some functions are actually named
36193 something starting with __ and the normal name is an alias. */
36194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36197 char (*f) () = $ac_func;
36206 return f != $ac_func;
36211 rm -f conftest.$ac_objext conftest$ac_exeext
36212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36213 (eval $ac_link) 2>conftest.er1
36215 grep -v '^ *+' conftest.er1 >conftest.err
36217 cat conftest.err >&5
36218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219 (exit $ac_status); } &&
36220 { ac_try='test -z "$ac_c_werror_flag"
36221 || test ! -s conftest.err'
36222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36223 (eval $ac_try) 2>&5
36225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226 (exit $ac_status); }; } &&
36227 { ac_try='test -s conftest$ac_exeext'
36228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36229 (eval $ac_try) 2>&5
36231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232 (exit $ac_status); }; }; then
36233 eval "$as_ac_var=yes"
36235 echo "$as_me: failed program was:" >&5
36236 sed 's/^/| /' conftest.$ac_ext >&5
36238 eval "$as_ac_var=no"
36240 rm -f conftest.err conftest.$ac_objext \
36241 conftest$ac_exeext conftest.$ac_ext
36243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36245 if test `eval echo '${'$as_ac_var'}'` = yes; then
36246 cat >>confdefs.h <<_ACEOF
36247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36257 for ac_header in lwp/lwp.h
36259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36261 echo "$as_me:$LINENO: checking for $ac_header" >&5
36262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36264 echo $ECHO_N "(cached) $ECHO_C" >&6
36266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36269 # Is the header compilable?
36270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36272 cat >conftest.$ac_ext <<_ACEOF
36275 cat confdefs.h >>conftest.$ac_ext
36276 cat >>conftest.$ac_ext <<_ACEOF
36277 /* end confdefs.h. */
36278 $ac_includes_default
36279 #include <$ac_header>
36281 rm -f conftest.$ac_objext
36282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36283 (eval $ac_compile) 2>conftest.er1
36285 grep -v '^ *+' conftest.er1 >conftest.err
36287 cat conftest.err >&5
36288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289 (exit $ac_status); } &&
36290 { ac_try='test -z "$ac_c_werror_flag"
36291 || test ! -s conftest.err'
36292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36293 (eval $ac_try) 2>&5
36295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296 (exit $ac_status); }; } &&
36297 { ac_try='test -s conftest.$ac_objext'
36298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36299 (eval $ac_try) 2>&5
36301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302 (exit $ac_status); }; }; then
36303 ac_header_compiler=yes
36305 echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.$ac_ext >&5
36308 ac_header_compiler=no
36310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36312 echo "${ECHO_T}$ac_header_compiler" >&6
36314 # Is the header present?
36315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36317 cat >conftest.$ac_ext <<_ACEOF
36320 cat confdefs.h >>conftest.$ac_ext
36321 cat >>conftest.$ac_ext <<_ACEOF
36322 /* end confdefs.h. */
36323 #include <$ac_header>
36325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36328 grep -v '^ *+' conftest.er1 >conftest.err
36330 cat conftest.err >&5
36331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332 (exit $ac_status); } >/dev/null; then
36333 if test -s conftest.err; then
36334 ac_cpp_err=$ac_c_preproc_warn_flag
36335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36342 if test -z "$ac_cpp_err"; then
36343 ac_header_preproc=yes
36345 echo "$as_me: failed program was:" >&5
36346 sed 's/^/| /' conftest.$ac_ext >&5
36348 ac_header_preproc=no
36350 rm -f conftest.err conftest.$ac_ext
36351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36352 echo "${ECHO_T}$ac_header_preproc" >&6
36354 # So? What about this header?
36355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36361 ac_header_preproc=yes
36364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36378 ## ------------------------------------------ ##
36379 ## Report this to the AC_PACKAGE_NAME lists. ##
36380 ## ------------------------------------------ ##
36383 sed "s/^/$as_me: WARNING: /" >&2
36386 echo "$as_me:$LINENO: checking for $ac_header" >&5
36387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36389 echo $ECHO_N "(cached) $ECHO_C" >&6
36391 eval "$as_ac_Header=\$ac_header_preproc"
36393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36398 cat >>confdefs.h <<_ACEOF
36399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36406 if test $ac_cv_header_lwp_lwp_h = yes ; then
36407 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36408 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36409 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36410 echo $ECHO_N "(cached) $ECHO_C" >&6
36412 ac_check_lib_save_LIBS=$LIBS
36414 cat >conftest.$ac_ext <<_ACEOF
36417 cat confdefs.h >>conftest.$ac_ext
36418 cat >>conftest.$ac_ext <<_ACEOF
36419 /* end confdefs.h. */
36421 /* Override any gcc2 internal prototype to avoid an error. */
36425 /* We use char because int might match the return type of a gcc2
36426 builtin and then its argument prototype would still apply. */
36427 char lwp_create ();
36436 rm -f conftest.$ac_objext conftest$ac_exeext
36437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36438 (eval $ac_link) 2>conftest.er1
36440 grep -v '^ *+' conftest.er1 >conftest.err
36442 cat conftest.err >&5
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); } &&
36445 { ac_try='test -z "$ac_c_werror_flag"
36446 || test ! -s conftest.err'
36447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448 (eval $ac_try) 2>&5
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); }; } &&
36452 { ac_try='test -s conftest$ac_exeext'
36453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36454 (eval $ac_try) 2>&5
36456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457 (exit $ac_status); }; }; then
36458 ac_cv_lib_lwp_lwp_create=yes
36460 echo "$as_me: failed program was:" >&5
36461 sed 's/^/| /' conftest.$ac_ext >&5
36463 ac_cv_lib_lwp_lwp_create=no
36465 rm -f conftest.err conftest.$ac_objext \
36466 conftest$ac_exeext conftest.$ac_ext
36467 LIBS=$ac_check_lib_save_LIBS
36469 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36470 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36471 if test $ac_cv_lib_lwp_lwp_create = yes; then
36478 if test $have_lwp = yes ; then
36480 cat >>confdefs.h <<\_ACEOF
36484 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36485 ol_link_threads=lwp
36487 if test $ol_with_yielding_select = auto ; then
36488 ol_with_yielding_select=no
36494 if test $ol_with_yielding_select = yes ; then
36496 cat >>confdefs.h <<\_ACEOF
36497 #define HAVE_YIELDING_SELECT 1
36502 if test $ol_with_threads = manual ; then
36503 ol_link_threads=yes
36505 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36506 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36510 for ac_header in pthread.h sched.h
36512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36514 echo "$as_me:$LINENO: checking for $ac_header" >&5
36515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36517 echo $ECHO_N "(cached) $ECHO_C" >&6
36519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36522 # Is the header compilable?
36523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36525 cat >conftest.$ac_ext <<_ACEOF
36528 cat confdefs.h >>conftest.$ac_ext
36529 cat >>conftest.$ac_ext <<_ACEOF
36530 /* end confdefs.h. */
36531 $ac_includes_default
36532 #include <$ac_header>
36534 rm -f conftest.$ac_objext
36535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36536 (eval $ac_compile) 2>conftest.er1
36538 grep -v '^ *+' conftest.er1 >conftest.err
36540 cat conftest.err >&5
36541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542 (exit $ac_status); } &&
36543 { ac_try='test -z "$ac_c_werror_flag"
36544 || test ! -s conftest.err'
36545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36546 (eval $ac_try) 2>&5
36548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549 (exit $ac_status); }; } &&
36550 { ac_try='test -s conftest.$ac_objext'
36551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36552 (eval $ac_try) 2>&5
36554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36555 (exit $ac_status); }; }; then
36556 ac_header_compiler=yes
36558 echo "$as_me: failed program was:" >&5
36559 sed 's/^/| /' conftest.$ac_ext >&5
36561 ac_header_compiler=no
36563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36565 echo "${ECHO_T}$ac_header_compiler" >&6
36567 # Is the header present?
36568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36570 cat >conftest.$ac_ext <<_ACEOF
36573 cat confdefs.h >>conftest.$ac_ext
36574 cat >>conftest.$ac_ext <<_ACEOF
36575 /* end confdefs.h. */
36576 #include <$ac_header>
36578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36581 grep -v '^ *+' conftest.er1 >conftest.err
36583 cat conftest.err >&5
36584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585 (exit $ac_status); } >/dev/null; then
36586 if test -s conftest.err; then
36587 ac_cpp_err=$ac_c_preproc_warn_flag
36588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36595 if test -z "$ac_cpp_err"; then
36596 ac_header_preproc=yes
36598 echo "$as_me: failed program was:" >&5
36599 sed 's/^/| /' conftest.$ac_ext >&5
36601 ac_header_preproc=no
36603 rm -f conftest.err conftest.$ac_ext
36604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36605 echo "${ECHO_T}$ac_header_preproc" >&6
36607 # So? What about this header?
36608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36614 ac_header_preproc=yes
36617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36631 ## ------------------------------------------ ##
36632 ## Report this to the AC_PACKAGE_NAME lists. ##
36633 ## ------------------------------------------ ##
36636 sed "s/^/$as_me: WARNING: /" >&2
36639 echo "$as_me:$LINENO: checking for $ac_header" >&5
36640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36642 echo $ECHO_N "(cached) $ECHO_C" >&6
36644 eval "$as_ac_Header=\$ac_header_preproc"
36646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36651 cat >>confdefs.h <<_ACEOF
36652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36661 for ac_func in sched_yield pthread_yield
36663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36664 echo "$as_me:$LINENO: checking for $ac_func" >&5
36665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36666 if eval "test \"\${$as_ac_var+set}\" = set"; then
36667 echo $ECHO_N "(cached) $ECHO_C" >&6
36669 cat >conftest.$ac_ext <<_ACEOF
36672 cat confdefs.h >>conftest.$ac_ext
36673 cat >>conftest.$ac_ext <<_ACEOF
36674 /* end confdefs.h. */
36675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36677 #define $ac_func innocuous_$ac_func
36679 /* System header to define __stub macros and hopefully few prototypes,
36680 which can conflict with char $ac_func (); below.
36681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36682 <limits.h> exists even on freestanding compilers. */
36685 # include <limits.h>
36687 # include <assert.h>
36692 /* Override any gcc2 internal prototype to avoid an error. */
36697 /* We use char because int might match the return type of a gcc2
36698 builtin and then its argument prototype would still apply. */
36700 /* The GNU C library defines this for functions which it implements
36701 to always fail with ENOSYS. Some functions are actually named
36702 something starting with __ and the normal name is an alias. */
36703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36706 char (*f) () = $ac_func;
36715 return f != $ac_func;
36720 rm -f conftest.$ac_objext conftest$ac_exeext
36721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36722 (eval $ac_link) 2>conftest.er1
36724 grep -v '^ *+' conftest.er1 >conftest.err
36726 cat conftest.err >&5
36727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728 (exit $ac_status); } &&
36729 { ac_try='test -z "$ac_c_werror_flag"
36730 || test ! -s conftest.err'
36731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732 (eval $ac_try) 2>&5
36734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 (exit $ac_status); }; } &&
36736 { ac_try='test -s conftest$ac_exeext'
36737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36738 (eval $ac_try) 2>&5
36740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741 (exit $ac_status); }; }; then
36742 eval "$as_ac_var=yes"
36744 echo "$as_me: failed program was:" >&5
36745 sed 's/^/| /' conftest.$ac_ext >&5
36747 eval "$as_ac_var=no"
36749 rm -f conftest.err conftest.$ac_objext \
36750 conftest$ac_exeext conftest.$ac_ext
36752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36754 if test `eval echo '${'$as_ac_var'}'` = yes; then
36755 cat >>confdefs.h <<_ACEOF
36756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36763 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36764 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36765 if test "${ol_cv_header_linux_threads+set}" = set; then
36766 echo $ECHO_N "(cached) $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 <pthread.h>
36776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36777 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36778 ol_cv_header_linux_threads=yes
36780 ol_cv_header_linux_threads=no
36786 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36787 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36788 if test $ol_cv_header_linux_threads = yes; then
36790 cat >>confdefs.h <<\_ACEOF
36791 #define HAVE_LINUX_THREADS 1
36798 for ac_header in mach/cthreads.h
36800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36802 echo "$as_me:$LINENO: checking for $ac_header" >&5
36803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36805 echo $ECHO_N "(cached) $ECHO_C" >&6
36807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36810 # Is the header compilable?
36811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36813 cat >conftest.$ac_ext <<_ACEOF
36816 cat confdefs.h >>conftest.$ac_ext
36817 cat >>conftest.$ac_ext <<_ACEOF
36818 /* end confdefs.h. */
36819 $ac_includes_default
36820 #include <$ac_header>
36822 rm -f conftest.$ac_objext
36823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36824 (eval $ac_compile) 2>conftest.er1
36826 grep -v '^ *+' conftest.er1 >conftest.err
36828 cat conftest.err >&5
36829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830 (exit $ac_status); } &&
36831 { ac_try='test -z "$ac_c_werror_flag"
36832 || test ! -s conftest.err'
36833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36834 (eval $ac_try) 2>&5
36836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837 (exit $ac_status); }; } &&
36838 { ac_try='test -s conftest.$ac_objext'
36839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36840 (eval $ac_try) 2>&5
36842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36843 (exit $ac_status); }; }; then
36844 ac_header_compiler=yes
36846 echo "$as_me: failed program was:" >&5
36847 sed 's/^/| /' conftest.$ac_ext >&5
36849 ac_header_compiler=no
36851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36853 echo "${ECHO_T}$ac_header_compiler" >&6
36855 # Is the header present?
36856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36858 cat >conftest.$ac_ext <<_ACEOF
36861 cat confdefs.h >>conftest.$ac_ext
36862 cat >>conftest.$ac_ext <<_ACEOF
36863 /* end confdefs.h. */
36864 #include <$ac_header>
36866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36869 grep -v '^ *+' conftest.er1 >conftest.err
36871 cat conftest.err >&5
36872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36873 (exit $ac_status); } >/dev/null; then
36874 if test -s conftest.err; then
36875 ac_cpp_err=$ac_c_preproc_warn_flag
36876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36883 if test -z "$ac_cpp_err"; then
36884 ac_header_preproc=yes
36886 echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36889 ac_header_preproc=no
36891 rm -f conftest.err conftest.$ac_ext
36892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36893 echo "${ECHO_T}$ac_header_preproc" >&6
36895 # So? What about this header?
36896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36902 ac_header_preproc=yes
36905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36919 ## ------------------------------------------ ##
36920 ## Report this to the AC_PACKAGE_NAME lists. ##
36921 ## ------------------------------------------ ##
36924 sed "s/^/$as_me: WARNING: /" >&2
36927 echo "$as_me:$LINENO: checking for $ac_header" >&5
36928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36930 echo $ECHO_N "(cached) $ECHO_C" >&6
36932 eval "$as_ac_Header=\$ac_header_preproc"
36934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36939 cat >>confdefs.h <<_ACEOF
36940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36948 for ac_header in lwp/lwp.h
36950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36952 echo "$as_me:$LINENO: checking for $ac_header" >&5
36953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36955 echo $ECHO_N "(cached) $ECHO_C" >&6
36957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36960 # Is the header compilable?
36961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36963 cat >conftest.$ac_ext <<_ACEOF
36966 cat confdefs.h >>conftest.$ac_ext
36967 cat >>conftest.$ac_ext <<_ACEOF
36968 /* end confdefs.h. */
36969 $ac_includes_default
36970 #include <$ac_header>
36972 rm -f conftest.$ac_objext
36973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36974 (eval $ac_compile) 2>conftest.er1
36976 grep -v '^ *+' conftest.er1 >conftest.err
36978 cat conftest.err >&5
36979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980 (exit $ac_status); } &&
36981 { ac_try='test -z "$ac_c_werror_flag"
36982 || test ! -s conftest.err'
36983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984 (eval $ac_try) 2>&5
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); }; } &&
36988 { ac_try='test -s conftest.$ac_objext'
36989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990 (eval $ac_try) 2>&5
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); }; }; then
36994 ac_header_compiler=yes
36996 echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36999 ac_header_compiler=no
37001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37003 echo "${ECHO_T}$ac_header_compiler" >&6
37005 # Is the header present?
37006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37008 cat >conftest.$ac_ext <<_ACEOF
37011 cat confdefs.h >>conftest.$ac_ext
37012 cat >>conftest.$ac_ext <<_ACEOF
37013 /* end confdefs.h. */
37014 #include <$ac_header>
37016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37019 grep -v '^ *+' conftest.er1 >conftest.err
37021 cat conftest.err >&5
37022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023 (exit $ac_status); } >/dev/null; then
37024 if test -s conftest.err; then
37025 ac_cpp_err=$ac_c_preproc_warn_flag
37026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37033 if test -z "$ac_cpp_err"; then
37034 ac_header_preproc=yes
37036 echo "$as_me: failed program was:" >&5
37037 sed 's/^/| /' conftest.$ac_ext >&5
37039 ac_header_preproc=no
37041 rm -f conftest.err conftest.$ac_ext
37042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37043 echo "${ECHO_T}$ac_header_preproc" >&6
37045 # So? What about this header?
37046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37052 ac_header_preproc=yes
37055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37069 ## ------------------------------------------ ##
37070 ## Report this to the AC_PACKAGE_NAME lists. ##
37071 ## ------------------------------------------ ##
37074 sed "s/^/$as_me: WARNING: /" >&2
37077 echo "$as_me:$LINENO: checking for $ac_header" >&5
37078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37080 echo $ECHO_N "(cached) $ECHO_C" >&6
37082 eval "$as_ac_Header=\$ac_header_preproc"
37084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37089 cat >>confdefs.h <<_ACEOF
37090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37099 for ac_header in thread.h synch.h
37101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37103 echo "$as_me:$LINENO: checking for $ac_header" >&5
37104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37106 echo $ECHO_N "(cached) $ECHO_C" >&6
37108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37111 # Is the header compilable?
37112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37114 cat >conftest.$ac_ext <<_ACEOF
37117 cat confdefs.h >>conftest.$ac_ext
37118 cat >>conftest.$ac_ext <<_ACEOF
37119 /* end confdefs.h. */
37120 $ac_includes_default
37121 #include <$ac_header>
37123 rm -f conftest.$ac_objext
37124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37125 (eval $ac_compile) 2>conftest.er1
37127 grep -v '^ *+' conftest.er1 >conftest.err
37129 cat conftest.err >&5
37130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37131 (exit $ac_status); } &&
37132 { ac_try='test -z "$ac_c_werror_flag"
37133 || test ! -s conftest.err'
37134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135 (eval $ac_try) 2>&5
37137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138 (exit $ac_status); }; } &&
37139 { ac_try='test -s conftest.$ac_objext'
37140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37141 (eval $ac_try) 2>&5
37143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144 (exit $ac_status); }; }; then
37145 ac_header_compiler=yes
37147 echo "$as_me: failed program was:" >&5
37148 sed 's/^/| /' conftest.$ac_ext >&5
37150 ac_header_compiler=no
37152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37154 echo "${ECHO_T}$ac_header_compiler" >&6
37156 # Is the header present?
37157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37159 cat >conftest.$ac_ext <<_ACEOF
37162 cat confdefs.h >>conftest.$ac_ext
37163 cat >>conftest.$ac_ext <<_ACEOF
37164 /* end confdefs.h. */
37165 #include <$ac_header>
37167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37170 grep -v '^ *+' conftest.er1 >conftest.err
37172 cat conftest.err >&5
37173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37174 (exit $ac_status); } >/dev/null; then
37175 if test -s conftest.err; then
37176 ac_cpp_err=$ac_c_preproc_warn_flag
37177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37184 if test -z "$ac_cpp_err"; then
37185 ac_header_preproc=yes
37187 echo "$as_me: failed program was:" >&5
37188 sed 's/^/| /' conftest.$ac_ext >&5
37190 ac_header_preproc=no
37192 rm -f conftest.err conftest.$ac_ext
37193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37194 echo "${ECHO_T}$ac_header_preproc" >&6
37196 # So? What about this header?
37197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37203 ac_header_preproc=yes
37206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37220 ## ------------------------------------------ ##
37221 ## Report this to the AC_PACKAGE_NAME lists. ##
37222 ## ------------------------------------------ ##
37225 sed "s/^/$as_me: WARNING: /" >&2
37228 echo "$as_me:$LINENO: checking for $ac_header" >&5
37229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37231 echo $ECHO_N "(cached) $ECHO_C" >&6
37233 eval "$as_ac_Header=\$ac_header_preproc"
37235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37240 cat >>confdefs.h <<_ACEOF
37241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37250 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37251 cat >>confdefs.h <<\_ACEOF
37252 #define REENTRANT 1
37255 cat >>confdefs.h <<\_ACEOF
37256 #define _REENTRANT 1
37259 cat >>confdefs.h <<\_ACEOF
37260 #define THREAD_SAFE 1
37263 cat >>confdefs.h <<\_ACEOF
37264 #define _THREAD_SAFE 1
37267 cat >>confdefs.h <<\_ACEOF
37268 #define THREADSAFE 1
37271 cat >>confdefs.h <<\_ACEOF
37272 #define _THREADSAFE 1
37275 cat >>confdefs.h <<\_ACEOF
37276 #define _SGI_MP_SOURCE 1
37280 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37281 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37282 if test "${ol_cv_errno_thread_specific+set}" = set; then
37283 echo $ECHO_N "(cached) $ECHO_C" >&6
37286 cat >conftest.$ac_ext <<_ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h. */
37301 rm -f conftest.$ac_objext conftest$ac_exeext
37302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37303 (eval $ac_link) 2>conftest.er1
37305 grep -v '^ *+' conftest.er1 >conftest.err
37307 cat conftest.err >&5
37308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309 (exit $ac_status); } &&
37310 { ac_try='test -z "$ac_c_werror_flag"
37311 || test ! -s conftest.err'
37312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37313 (eval $ac_try) 2>&5
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); }; } &&
37317 { ac_try='test -s conftest$ac_exeext'
37318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319 (eval $ac_try) 2>&5
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); }; }; then
37323 ol_cv_errno_thread_specific=yes
37325 echo "$as_me: failed program was:" >&5
37326 sed 's/^/| /' conftest.$ac_ext >&5
37328 ol_cv_errno_thread_specific=no
37330 rm -f conftest.err conftest.$ac_objext \
37331 conftest$ac_exeext conftest.$ac_ext
37334 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37335 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37337 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37338 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37339 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37340 echo $ECHO_N "(cached) $ECHO_C" >&6
37343 cat >conftest.$ac_ext <<_ACEOF
37346 cat confdefs.h >>conftest.$ac_ext
37347 cat >>conftest.$ac_ext <<_ACEOF
37348 /* end confdefs.h. */
37358 rm -f conftest.$ac_objext conftest$ac_exeext
37359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37360 (eval $ac_link) 2>conftest.er1
37362 grep -v '^ *+' conftest.er1 >conftest.err
37364 cat conftest.err >&5
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); } &&
37367 { ac_try='test -z "$ac_c_werror_flag"
37368 || test ! -s conftest.err'
37369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37370 (eval $ac_try) 2>&5
37372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37373 (exit $ac_status); }; } &&
37374 { ac_try='test -s conftest$ac_exeext'
37375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37376 (eval $ac_try) 2>&5
37378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37379 (exit $ac_status); }; }; then
37380 ol_cv_h_errno_thread_specific=yes
37382 echo "$as_me: failed program was:" >&5
37383 sed 's/^/| /' conftest.$ac_ext >&5
37385 ol_cv_h_errno_thread_specific=no
37387 rm -f conftest.err conftest.$ac_objext \
37388 conftest$ac_exeext conftest.$ac_ext
37391 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37392 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37394 if test $ol_cv_errno_thread_specific != yes \
37395 -o $ol_cv_h_errno_thread_specific != yes ; then
37396 LIBS="$LTHREAD_LIBS $LIBS"
37402 if test $ol_link_threads = no ; then
37403 if test $ol_with_threads = yes ; then
37404 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37405 echo "$as_me: error: no suitable thread support" >&2;}
37406 { (exit 1); exit 1; }; }
37409 if test $ol_with_threads = auto ; then
37410 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37411 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37416 cat >>confdefs.h <<\_ACEOF
37417 #define NO_THREADS 1
37423 if test $ol_link_threads != no ; then
37425 cat >>confdefs.h <<\_ACEOF
37426 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37436 gethostbyname_r gethostbyaddr_r \
37439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37440 echo "$as_me:$LINENO: checking for $ac_func" >&5
37441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37442 if eval "test \"\${$as_ac_var+set}\" = set"; then
37443 echo $ECHO_N "(cached) $ECHO_C" >&6
37445 cat >conftest.$ac_ext <<_ACEOF
37448 cat confdefs.h >>conftest.$ac_ext
37449 cat >>conftest.$ac_ext <<_ACEOF
37450 /* end confdefs.h. */
37451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37453 #define $ac_func innocuous_$ac_func
37455 /* System header to define __stub macros and hopefully few prototypes,
37456 which can conflict with char $ac_func (); below.
37457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37458 <limits.h> exists even on freestanding compilers. */
37461 # include <limits.h>
37463 # include <assert.h>
37468 /* Override any gcc2 internal prototype to avoid an error. */
37473 /* We use char because int might match the return type of a gcc2
37474 builtin and then its argument prototype would still apply. */
37476 /* The GNU C library defines this for functions which it implements
37477 to always fail with ENOSYS. Some functions are actually named
37478 something starting with __ and the normal name is an alias. */
37479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37482 char (*f) () = $ac_func;
37491 return f != $ac_func;
37496 rm -f conftest.$ac_objext conftest$ac_exeext
37497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37498 (eval $ac_link) 2>conftest.er1
37500 grep -v '^ *+' conftest.er1 >conftest.err
37502 cat conftest.err >&5
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); } &&
37505 { ac_try='test -z "$ac_c_werror_flag"
37506 || test ! -s conftest.err'
37507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508 (eval $ac_try) 2>&5
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); }; } &&
37512 { ac_try='test -s conftest$ac_exeext'
37513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37514 (eval $ac_try) 2>&5
37516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); }; }; then
37518 eval "$as_ac_var=yes"
37520 echo "$as_me: failed program was:" >&5
37521 sed 's/^/| /' conftest.$ac_ext >&5
37523 eval "$as_ac_var=no"
37525 rm -f conftest.err conftest.$ac_objext \
37526 conftest$ac_exeext conftest.$ac_ext
37528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37530 if test `eval echo '${'$as_ac_var'}'` = yes; then
37531 cat >>confdefs.h <<_ACEOF
37532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37539 if test "$ac_cv_func_ctime_r" = no ; then
37540 ol_cv_func_ctime_r_nargs=0
37542 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37543 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37544 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37545 echo $ECHO_N "(cached) $ECHO_C" >&6
37547 cat >conftest.$ac_ext <<_ACEOF
37550 cat confdefs.h >>conftest.$ac_ext
37551 cat >>conftest.$ac_ext <<_ACEOF
37552 /* end confdefs.h. */
37557 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37562 rm -f conftest.$ac_objext
37563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37564 (eval $ac_compile) 2>conftest.er1
37566 grep -v '^ *+' conftest.er1 >conftest.err
37568 cat conftest.err >&5
37569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570 (exit $ac_status); } &&
37571 { ac_try='test -z "$ac_c_werror_flag"
37572 || test ! -s conftest.err'
37573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37574 (eval $ac_try) 2>&5
37576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577 (exit $ac_status); }; } &&
37578 { ac_try='test -s conftest.$ac_objext'
37579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37580 (eval $ac_try) 2>&5
37582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583 (exit $ac_status); }; }; then
37584 ol_cv_func_ctime_r_nargs3=yes
37586 echo "$as_me: failed program was:" >&5
37587 sed 's/^/| /' conftest.$ac_ext >&5
37589 ol_cv_func_ctime_r_nargs3=no
37591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37593 cat >conftest.$ac_ext <<_ACEOF
37596 cat confdefs.h >>conftest.$ac_ext
37597 cat >>conftest.$ac_ext <<_ACEOF
37598 /* end confdefs.h. */
37603 time_t ti; char *buffer; ctime_r(&ti,buffer);
37608 rm -f conftest.$ac_objext
37609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37610 (eval $ac_compile) 2>conftest.er1
37612 grep -v '^ *+' conftest.er1 >conftest.err
37614 cat conftest.err >&5
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); } &&
37617 { ac_try='test -z "$ac_c_werror_flag"
37618 || test ! -s conftest.err'
37619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37620 (eval $ac_try) 2>&5
37622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623 (exit $ac_status); }; } &&
37624 { ac_try='test -s conftest.$ac_objext'
37625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37626 (eval $ac_try) 2>&5
37628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629 (exit $ac_status); }; }; then
37630 ol_cv_func_ctime_r_nargs2=yes
37632 echo "$as_me: failed program was:" >&5
37633 sed 's/^/| /' conftest.$ac_ext >&5
37635 ol_cv_func_ctime_r_nargs2=no
37637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37639 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37640 $ol_cv_func_ctime_r_nargs2 = no ; then
37642 ol_cv_func_ctime_r_nargs=3
37644 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37645 $ol_cv_func_ctime_r_nargs2 = yes ; then
37647 ol_cv_func_ctime_r_nargs=2
37650 ol_cv_func_ctime_r_nargs=0
37654 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37655 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37657 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37659 cat >>confdefs.h <<_ACEOF
37660 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37667 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37668 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37669 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37670 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37671 echo $ECHO_N "(cached) $ECHO_C" >&6
37673 cat >conftest.$ac_ext <<_ACEOF
37676 cat confdefs.h >>conftest.$ac_ext
37677 cat >>conftest.$ac_ext <<_ACEOF
37678 /* end confdefs.h. */
37679 #include <sys/types.h>
37680 #include <sys/socket.h>
37681 #include <netinet/in.h>
37683 #define BUFSIZE (sizeof(struct hostent)+10)
37687 struct hostent hent; char buffer[BUFSIZE];
37688 int bufsize=BUFSIZE;int h_errno;
37689 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37690 buffer, bufsize, &h_errno);
37695 rm -f conftest.$ac_objext
37696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37697 (eval $ac_compile) 2>conftest.er1
37699 grep -v '^ *+' conftest.er1 >conftest.err
37701 cat conftest.err >&5
37702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703 (exit $ac_status); } &&
37704 { ac_try='test -z "$ac_c_werror_flag"
37705 || test ! -s conftest.err'
37706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37707 (eval $ac_try) 2>&5
37709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710 (exit $ac_status); }; } &&
37711 { ac_try='test -s conftest.$ac_objext'
37712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37713 (eval $ac_try) 2>&5
37715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716 (exit $ac_status); }; }; then
37717 ol_cv_func_gethostbyname_r_nargs5=yes
37719 echo "$as_me: failed program was:" >&5
37720 sed 's/^/| /' conftest.$ac_ext >&5
37722 ol_cv_func_gethostbyname_r_nargs5=no
37724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37726 cat >conftest.$ac_ext <<_ACEOF
37729 cat confdefs.h >>conftest.$ac_ext
37730 cat >>conftest.$ac_ext <<_ACEOF
37731 /* end confdefs.h. */
37732 #include <sys/types.h>
37733 #include <sys/socket.h>
37734 #include <netinet/in.h>
37736 #define BUFSIZE (sizeof(struct hostent)+10)
37740 struct hostent hent;struct hostent *rhent;
37741 char buffer[BUFSIZE];
37742 int bufsize=BUFSIZE;int h_errno;
37743 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
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_gethostbyname_r_nargs6=yes
37773 echo "$as_me: failed program was:" >&5
37774 sed 's/^/| /' conftest.$ac_ext >&5
37776 ol_cv_func_gethostbyname_r_nargs6=no
37778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37780 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37781 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37783 ol_cv_func_gethostbyname_r_nargs=5
37785 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37786 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37788 ol_cv_func_gethostbyname_r_nargs=6
37791 ol_cv_func_gethostbyname_r_nargs=0
37795 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37796 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37797 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37799 cat >>confdefs.h <<_ACEOF
37800 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37806 ol_cv_func_gethostbyname_r_nargs=0
37809 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37810 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37811 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37812 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37813 echo $ECHO_N "(cached) $ECHO_C" >&6
37815 cat >conftest.$ac_ext <<_ACEOF
37818 cat confdefs.h >>conftest.$ac_ext
37819 cat >>conftest.$ac_ext <<_ACEOF
37820 /* end confdefs.h. */
37821 #include <sys/types.h>
37822 #include <sys/socket.h>
37823 #include <netinet/in.h>
37825 #define BUFSIZE (sizeof(struct hostent)+10)
37829 struct hostent hent; char buffer[BUFSIZE];
37830 struct in_addr add;
37831 size_t alen=sizeof(struct in_addr);
37832 int bufsize=BUFSIZE;int h_errno;
37833 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37834 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37839 rm -f conftest.$ac_objext
37840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37841 (eval $ac_compile) 2>conftest.er1
37843 grep -v '^ *+' conftest.er1 >conftest.err
37845 cat conftest.err >&5
37846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847 (exit $ac_status); } &&
37848 { ac_try='test -z "$ac_c_werror_flag"
37849 || test ! -s conftest.err'
37850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37851 (eval $ac_try) 2>&5
37853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854 (exit $ac_status); }; } &&
37855 { ac_try='test -s conftest.$ac_objext'
37856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857 (eval $ac_try) 2>&5
37859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860 (exit $ac_status); }; }; then
37861 ol_cv_func_gethostbyaddr_r_nargs7=yes
37863 echo "$as_me: failed program was:" >&5
37864 sed 's/^/| /' conftest.$ac_ext >&5
37866 ol_cv_func_gethostbyaddr_r_nargs7=no
37868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37870 cat >conftest.$ac_ext <<_ACEOF
37873 cat confdefs.h >>conftest.$ac_ext
37874 cat >>conftest.$ac_ext <<_ACEOF
37875 /* end confdefs.h. */
37876 #include <sys/types.h>
37877 #include <sys/socket.h>
37878 #include <netinet/in.h>
37880 #define BUFSIZE (sizeof(struct hostent)+10)
37884 struct hostent hent;
37885 struct hostent *rhent; char buffer[BUFSIZE];
37886 struct in_addr add;
37887 size_t alen=sizeof(struct in_addr);
37888 int bufsize=BUFSIZE;int h_errno;
37889 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37890 alen, AF_INET, &hent, buffer, bufsize,
37896 rm -f conftest.$ac_objext
37897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37898 (eval $ac_compile) 2>conftest.er1
37900 grep -v '^ *+' conftest.er1 >conftest.err
37902 cat conftest.err >&5
37903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904 (exit $ac_status); } &&
37905 { ac_try='test -z "$ac_c_werror_flag"
37906 || test ! -s conftest.err'
37907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37908 (eval $ac_try) 2>&5
37910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911 (exit $ac_status); }; } &&
37912 { ac_try='test -s conftest.$ac_objext'
37913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37914 (eval $ac_try) 2>&5
37916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917 (exit $ac_status); }; }; then
37918 ol_cv_func_gethostbyaddr_r_nargs8=yes
37920 echo "$as_me: failed program was:" >&5
37921 sed 's/^/| /' conftest.$ac_ext >&5
37923 ol_cv_func_gethostbyaddr_r_nargs8=no
37925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37927 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37928 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37930 ol_cv_func_gethostbyaddr_r_nargs=7
37932 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37933 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37935 ol_cv_func_gethostbyaddr_r_nargs=8
37938 ol_cv_func_gethostbyaddr_r_nargs=0
37942 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37943 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37944 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37946 cat >>confdefs.h <<_ACEOF
37947 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37953 ol_cv_func_gethostbyaddr_r_nargs=0
37958 if test $ol_enable_ldbm_api = auto \
37959 -o $ol_enable_ldbm_api = berkeley \
37960 -o $ol_enable_ldbm_api = bcompat ; then
37962 if test $ol_enable_ldbm_api = bcompat; then \
37965 for ac_header in db_185.h db.h
37967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37969 echo "$as_me:$LINENO: checking for $ac_header" >&5
37970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37972 echo $ECHO_N "(cached) $ECHO_C" >&6
37974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37977 # Is the header compilable?
37978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37980 cat >conftest.$ac_ext <<_ACEOF
37983 cat confdefs.h >>conftest.$ac_ext
37984 cat >>conftest.$ac_ext <<_ACEOF
37985 /* end confdefs.h. */
37986 $ac_includes_default
37987 #include <$ac_header>
37989 rm -f conftest.$ac_objext
37990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37991 (eval $ac_compile) 2>conftest.er1
37993 grep -v '^ *+' conftest.er1 >conftest.err
37995 cat conftest.err >&5
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); } &&
37998 { ac_try='test -z "$ac_c_werror_flag"
37999 || test ! -s conftest.err'
38000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38001 (eval $ac_try) 2>&5
38003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004 (exit $ac_status); }; } &&
38005 { ac_try='test -s conftest.$ac_objext'
38006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38007 (eval $ac_try) 2>&5
38009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010 (exit $ac_status); }; }; then
38011 ac_header_compiler=yes
38013 echo "$as_me: failed program was:" >&5
38014 sed 's/^/| /' conftest.$ac_ext >&5
38016 ac_header_compiler=no
38018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38020 echo "${ECHO_T}$ac_header_compiler" >&6
38022 # Is the header present?
38023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38025 cat >conftest.$ac_ext <<_ACEOF
38028 cat confdefs.h >>conftest.$ac_ext
38029 cat >>conftest.$ac_ext <<_ACEOF
38030 /* end confdefs.h. */
38031 #include <$ac_header>
38033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38036 grep -v '^ *+' conftest.er1 >conftest.err
38038 cat conftest.err >&5
38039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38040 (exit $ac_status); } >/dev/null; then
38041 if test -s conftest.err; then
38042 ac_cpp_err=$ac_c_preproc_warn_flag
38043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38050 if test -z "$ac_cpp_err"; then
38051 ac_header_preproc=yes
38053 echo "$as_me: failed program was:" >&5
38054 sed 's/^/| /' conftest.$ac_ext >&5
38056 ac_header_preproc=no
38058 rm -f conftest.err conftest.$ac_ext
38059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38060 echo "${ECHO_T}$ac_header_preproc" >&6
38062 # So? What about this header?
38063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38069 ac_header_preproc=yes
38072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38086 ## ------------------------------------------ ##
38087 ## Report this to the AC_PACKAGE_NAME lists. ##
38088 ## ------------------------------------------ ##
38091 sed "s/^/$as_me: WARNING: /" >&2
38094 echo "$as_me:$LINENO: checking for $ac_header" >&5
38095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38097 echo $ECHO_N "(cached) $ECHO_C" >&6
38099 eval "$as_ac_Header=\$ac_header_preproc"
38101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38106 cat >>confdefs.h <<_ACEOF
38107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38114 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38115 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38116 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38117 if test "${ol_cv_header_db1+set}" = set; then
38118 echo $ECHO_N "(cached) $ECHO_C" >&6
38121 cat >conftest.$ac_ext <<_ACEOF
38124 cat confdefs.h >>conftest.$ac_ext
38125 cat >>conftest.$ac_ext <<_ACEOF
38126 /* end confdefs.h. */
38129 # include <db_185.h>
38134 /* this check could be improved */
38135 #ifndef DB_VERSION_MAJOR
38136 # define DB_VERSION_MAJOR 1
38139 #if DB_VERSION_MAJOR == 1
38144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38145 $EGREP "__db_version_1" >/dev/null 2>&1; then
38146 ol_cv_header_db1=yes
38148 ol_cv_header_db1=no
38153 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38154 echo "${ECHO_T}$ol_cv_header_db1" >&6
38156 if test $ol_cv_header_db1 = yes ; then
38158 if test $ol_cv_lib_db = no ; then
38159 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38160 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38161 if test "${ol_cv_db_none+set}" = set; then
38162 echo $ECHO_N "(cached) $ECHO_C" >&6
38167 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38169 cat >conftest.$ac_ext <<_ACEOF
38172 cat confdefs.h >>conftest.$ac_ext
38173 cat >>conftest.$ac_ext <<_ACEOF
38174 /* end confdefs.h. */
38176 #ifdef HAVE_DB_185_H
38177 # include <db_185.h>
38182 #ifndef DB_VERSION_MAJOR
38183 # define DB_VERSION_MAJOR 1
38187 #define NULL ((void*)0)
38194 #if DB_VERSION_MAJOR > 1
38197 int major, minor, patch;
38199 version = db_version( &major, &minor, &patch );
38201 if( major != DB_VERSION_MAJOR ||
38202 minor < DB_VERSION_MINOR )
38204 printf("Berkeley DB version mismatch\n"
38205 "\theader: %s\n\tlibrary: %s\n",
38206 DB_VERSION_STRING, version);
38212 #if DB_VERSION_MAJOR > 2
38213 db_env_create( NULL, 0 );
38214 #elif DB_VERSION_MAJOR > 1
38215 db_appexit( NULL );
38217 (void) dbopen( NULL, 0, 0, 0, NULL);
38224 rm -f conftest.$ac_objext conftest$ac_exeext
38225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38226 (eval $ac_link) 2>conftest.er1
38228 grep -v '^ *+' conftest.er1 >conftest.err
38230 cat conftest.err >&5
38231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232 (exit $ac_status); } &&
38233 { ac_try='test -z "$ac_c_werror_flag"
38234 || test ! -s conftest.err'
38235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38236 (eval $ac_try) 2>&5
38238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38239 (exit $ac_status); }; } &&
38240 { ac_try='test -s conftest$ac_exeext'
38241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38242 (eval $ac_try) 2>&5
38244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245 (exit $ac_status); }; }; then
38248 echo "$as_me: failed program was:" >&5
38249 sed 's/^/| /' conftest.$ac_ext >&5
38253 rm -f conftest.err conftest.$ac_objext \
38254 conftest$ac_exeext conftest.$ac_ext
38259 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38260 echo "${ECHO_T}$ol_cv_db_none" >&6
38262 if test $ol_cv_db_none = yes ; then
38267 if test $ol_cv_lib_db = no ; then
38268 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38269 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38270 if test "${ol_cv_db_db43+set}" = set; then
38271 echo $ECHO_N "(cached) $ECHO_C" >&6
38276 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38278 cat >conftest.$ac_ext <<_ACEOF
38281 cat confdefs.h >>conftest.$ac_ext
38282 cat >>conftest.$ac_ext <<_ACEOF
38283 /* end confdefs.h. */
38285 #ifdef HAVE_DB_185_H
38286 # include <db_185.h>
38291 #ifndef DB_VERSION_MAJOR
38292 # define DB_VERSION_MAJOR 1
38296 #define NULL ((void*)0)
38303 #if DB_VERSION_MAJOR > 1
38306 int major, minor, patch;
38308 version = db_version( &major, &minor, &patch );
38310 if( major != DB_VERSION_MAJOR ||
38311 minor < DB_VERSION_MINOR )
38313 printf("Berkeley DB version mismatch\n"
38314 "\theader: %s\n\tlibrary: %s\n",
38315 DB_VERSION_STRING, version);
38321 #if DB_VERSION_MAJOR > 2
38322 db_env_create( NULL, 0 );
38323 #elif DB_VERSION_MAJOR > 1
38324 db_appexit( NULL );
38326 (void) dbopen( NULL, 0, 0, 0, NULL);
38333 rm -f conftest.$ac_objext conftest$ac_exeext
38334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38335 (eval $ac_link) 2>conftest.er1
38337 grep -v '^ *+' conftest.er1 >conftest.err
38339 cat conftest.err >&5
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); } &&
38342 { ac_try='test -z "$ac_c_werror_flag"
38343 || test ! -s conftest.err'
38344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38345 (eval $ac_try) 2>&5
38347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348 (exit $ac_status); }; } &&
38349 { ac_try='test -s conftest$ac_exeext'
38350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38351 (eval $ac_try) 2>&5
38353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354 (exit $ac_status); }; }; then
38357 echo "$as_me: failed program was:" >&5
38358 sed 's/^/| /' conftest.$ac_ext >&5
38362 rm -f conftest.err conftest.$ac_objext \
38363 conftest$ac_exeext conftest.$ac_ext
38368 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38369 echo "${ECHO_T}$ol_cv_db_db43" >&6
38371 if test $ol_cv_db_db43 = yes ; then
38372 ol_cv_lib_db=-ldb43
38376 if test $ol_cv_lib_db = no ; then
38377 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38378 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38379 if test "${ol_cv_db_db_43+set}" = set; then
38380 echo $ECHO_N "(cached) $ECHO_C" >&6
38385 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38387 cat >conftest.$ac_ext <<_ACEOF
38390 cat confdefs.h >>conftest.$ac_ext
38391 cat >>conftest.$ac_ext <<_ACEOF
38392 /* end confdefs.h. */
38394 #ifdef HAVE_DB_185_H
38395 # include <db_185.h>
38400 #ifndef DB_VERSION_MAJOR
38401 # define DB_VERSION_MAJOR 1
38405 #define NULL ((void*)0)
38412 #if DB_VERSION_MAJOR > 1
38415 int major, minor, patch;
38417 version = db_version( &major, &minor, &patch );
38419 if( major != DB_VERSION_MAJOR ||
38420 minor < DB_VERSION_MINOR )
38422 printf("Berkeley DB version mismatch\n"
38423 "\theader: %s\n\tlibrary: %s\n",
38424 DB_VERSION_STRING, version);
38430 #if DB_VERSION_MAJOR > 2
38431 db_env_create( NULL, 0 );
38432 #elif DB_VERSION_MAJOR > 1
38433 db_appexit( NULL );
38435 (void) dbopen( NULL, 0, 0, 0, NULL);
38442 rm -f conftest.$ac_objext conftest$ac_exeext
38443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38444 (eval $ac_link) 2>conftest.er1
38446 grep -v '^ *+' conftest.er1 >conftest.err
38448 cat conftest.err >&5
38449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450 (exit $ac_status); } &&
38451 { ac_try='test -z "$ac_c_werror_flag"
38452 || test ! -s conftest.err'
38453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38454 (eval $ac_try) 2>&5
38456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457 (exit $ac_status); }; } &&
38458 { ac_try='test -s conftest$ac_exeext'
38459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38460 (eval $ac_try) 2>&5
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); }; }; then
38466 echo "$as_me: failed program was:" >&5
38467 sed 's/^/| /' conftest.$ac_ext >&5
38471 rm -f conftest.err conftest.$ac_objext \
38472 conftest$ac_exeext conftest.$ac_ext
38477 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38478 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38480 if test $ol_cv_db_db_43 = yes ; then
38481 ol_cv_lib_db=-ldb-43
38485 if test $ol_cv_lib_db = no ; then
38486 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38487 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38488 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38489 echo $ECHO_N "(cached) $ECHO_C" >&6
38494 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38496 cat >conftest.$ac_ext <<_ACEOF
38499 cat confdefs.h >>conftest.$ac_ext
38500 cat >>conftest.$ac_ext <<_ACEOF
38501 /* end confdefs.h. */
38503 #ifdef HAVE_DB_185_H
38504 # include <db_185.h>
38509 #ifndef DB_VERSION_MAJOR
38510 # define DB_VERSION_MAJOR 1
38514 #define NULL ((void*)0)
38521 #if DB_VERSION_MAJOR > 1
38524 int major, minor, patch;
38526 version = db_version( &major, &minor, &patch );
38528 if( major != DB_VERSION_MAJOR ||
38529 minor < DB_VERSION_MINOR )
38531 printf("Berkeley DB version mismatch\n"
38532 "\theader: %s\n\tlibrary: %s\n",
38533 DB_VERSION_STRING, version);
38539 #if DB_VERSION_MAJOR > 2
38540 db_env_create( NULL, 0 );
38541 #elif DB_VERSION_MAJOR > 1
38542 db_appexit( NULL );
38544 (void) dbopen( NULL, 0, 0, 0, NULL);
38551 rm -f conftest.$ac_objext conftest$ac_exeext
38552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38553 (eval $ac_link) 2>conftest.er1
38555 grep -v '^ *+' conftest.er1 >conftest.err
38557 cat conftest.err >&5
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); } &&
38560 { ac_try='test -z "$ac_c_werror_flag"
38561 || test ! -s conftest.err'
38562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38563 (eval $ac_try) 2>&5
38565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566 (exit $ac_status); }; } &&
38567 { ac_try='test -s conftest$ac_exeext'
38568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38569 (eval $ac_try) 2>&5
38571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572 (exit $ac_status); }; }; then
38573 ol_cv_db_db_4_dot_3=yes
38575 echo "$as_me: failed program was:" >&5
38576 sed 's/^/| /' conftest.$ac_ext >&5
38578 ol_cv_db_db_4_dot_3=no
38580 rm -f conftest.err conftest.$ac_objext \
38581 conftest$ac_exeext conftest.$ac_ext
38586 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38587 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38589 if test $ol_cv_db_db_4_dot_3 = yes ; then
38590 ol_cv_lib_db=-ldb-4.3
38594 if test $ol_cv_lib_db = no ; then
38595 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38596 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38597 if test "${ol_cv_db_db_4_3+set}" = set; then
38598 echo $ECHO_N "(cached) $ECHO_C" >&6
38603 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38605 cat >conftest.$ac_ext <<_ACEOF
38608 cat confdefs.h >>conftest.$ac_ext
38609 cat >>conftest.$ac_ext <<_ACEOF
38610 /* end confdefs.h. */
38612 #ifdef HAVE_DB_185_H
38613 # include <db_185.h>
38618 #ifndef DB_VERSION_MAJOR
38619 # define DB_VERSION_MAJOR 1
38623 #define NULL ((void*)0)
38630 #if DB_VERSION_MAJOR > 1
38633 int major, minor, patch;
38635 version = db_version( &major, &minor, &patch );
38637 if( major != DB_VERSION_MAJOR ||
38638 minor < DB_VERSION_MINOR )
38640 printf("Berkeley DB version mismatch\n"
38641 "\theader: %s\n\tlibrary: %s\n",
38642 DB_VERSION_STRING, version);
38648 #if DB_VERSION_MAJOR > 2
38649 db_env_create( NULL, 0 );
38650 #elif DB_VERSION_MAJOR > 1
38651 db_appexit( NULL );
38653 (void) dbopen( NULL, 0, 0, 0, NULL);
38660 rm -f conftest.$ac_objext conftest$ac_exeext
38661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38662 (eval $ac_link) 2>conftest.er1
38664 grep -v '^ *+' conftest.er1 >conftest.err
38666 cat conftest.err >&5
38667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668 (exit $ac_status); } &&
38669 { ac_try='test -z "$ac_c_werror_flag"
38670 || test ! -s conftest.err'
38671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38672 (eval $ac_try) 2>&5
38674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38675 (exit $ac_status); }; } &&
38676 { ac_try='test -s conftest$ac_exeext'
38677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38678 (eval $ac_try) 2>&5
38680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); }; }; then
38682 ol_cv_db_db_4_3=yes
38684 echo "$as_me: failed program was:" >&5
38685 sed 's/^/| /' conftest.$ac_ext >&5
38689 rm -f conftest.err conftest.$ac_objext \
38690 conftest$ac_exeext conftest.$ac_ext
38695 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38696 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38698 if test $ol_cv_db_db_4_3 = yes ; then
38699 ol_cv_lib_db=-ldb-4-3
38703 if test $ol_cv_lib_db = no ; then
38704 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38705 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38706 if test "${ol_cv_db_db42+set}" = set; then
38707 echo $ECHO_N "(cached) $ECHO_C" >&6
38712 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38714 cat >conftest.$ac_ext <<_ACEOF
38717 cat confdefs.h >>conftest.$ac_ext
38718 cat >>conftest.$ac_ext <<_ACEOF
38719 /* end confdefs.h. */
38721 #ifdef HAVE_DB_185_H
38722 # include <db_185.h>
38727 #ifndef DB_VERSION_MAJOR
38728 # define DB_VERSION_MAJOR 1
38732 #define NULL ((void*)0)
38739 #if DB_VERSION_MAJOR > 1
38742 int major, minor, patch;
38744 version = db_version( &major, &minor, &patch );
38746 if( major != DB_VERSION_MAJOR ||
38747 minor < DB_VERSION_MINOR )
38749 printf("Berkeley DB version mismatch\n"
38750 "\theader: %s\n\tlibrary: %s\n",
38751 DB_VERSION_STRING, version);
38757 #if DB_VERSION_MAJOR > 2
38758 db_env_create( NULL, 0 );
38759 #elif DB_VERSION_MAJOR > 1
38760 db_appexit( NULL );
38762 (void) dbopen( NULL, 0, 0, 0, NULL);
38769 rm -f conftest.$ac_objext conftest$ac_exeext
38770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38771 (eval $ac_link) 2>conftest.er1
38773 grep -v '^ *+' conftest.er1 >conftest.err
38775 cat conftest.err >&5
38776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777 (exit $ac_status); } &&
38778 { ac_try='test -z "$ac_c_werror_flag"
38779 || test ! -s conftest.err'
38780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38781 (eval $ac_try) 2>&5
38783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38784 (exit $ac_status); }; } &&
38785 { ac_try='test -s conftest$ac_exeext'
38786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38787 (eval $ac_try) 2>&5
38789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38790 (exit $ac_status); }; }; then
38793 echo "$as_me: failed program was:" >&5
38794 sed 's/^/| /' conftest.$ac_ext >&5
38798 rm -f conftest.err conftest.$ac_objext \
38799 conftest$ac_exeext conftest.$ac_ext
38804 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38805 echo "${ECHO_T}$ol_cv_db_db42" >&6
38807 if test $ol_cv_db_db42 = yes ; then
38808 ol_cv_lib_db=-ldb42
38812 if test $ol_cv_lib_db = no ; then
38813 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38814 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38815 if test "${ol_cv_db_db_42+set}" = set; then
38816 echo $ECHO_N "(cached) $ECHO_C" >&6
38821 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38823 cat >conftest.$ac_ext <<_ACEOF
38826 cat confdefs.h >>conftest.$ac_ext
38827 cat >>conftest.$ac_ext <<_ACEOF
38828 /* end confdefs.h. */
38830 #ifdef HAVE_DB_185_H
38831 # include <db_185.h>
38836 #ifndef DB_VERSION_MAJOR
38837 # define DB_VERSION_MAJOR 1
38841 #define NULL ((void*)0)
38848 #if DB_VERSION_MAJOR > 1
38851 int major, minor, patch;
38853 version = db_version( &major, &minor, &patch );
38855 if( major != DB_VERSION_MAJOR ||
38856 minor < DB_VERSION_MINOR )
38858 printf("Berkeley DB version mismatch\n"
38859 "\theader: %s\n\tlibrary: %s\n",
38860 DB_VERSION_STRING, version);
38866 #if DB_VERSION_MAJOR > 2
38867 db_env_create( NULL, 0 );
38868 #elif DB_VERSION_MAJOR > 1
38869 db_appexit( NULL );
38871 (void) dbopen( NULL, 0, 0, 0, NULL);
38878 rm -f conftest.$ac_objext conftest$ac_exeext
38879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38880 (eval $ac_link) 2>conftest.er1
38882 grep -v '^ *+' conftest.er1 >conftest.err
38884 cat conftest.err >&5
38885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886 (exit $ac_status); } &&
38887 { ac_try='test -z "$ac_c_werror_flag"
38888 || test ! -s conftest.err'
38889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38890 (eval $ac_try) 2>&5
38892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893 (exit $ac_status); }; } &&
38894 { ac_try='test -s conftest$ac_exeext'
38895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38896 (eval $ac_try) 2>&5
38898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899 (exit $ac_status); }; }; then
38902 echo "$as_me: failed program was:" >&5
38903 sed 's/^/| /' conftest.$ac_ext >&5
38907 rm -f conftest.err conftest.$ac_objext \
38908 conftest$ac_exeext conftest.$ac_ext
38913 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38914 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38916 if test $ol_cv_db_db_42 = yes ; then
38917 ol_cv_lib_db=-ldb-42
38921 if test $ol_cv_lib_db = no ; then
38922 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38923 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38924 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38925 echo $ECHO_N "(cached) $ECHO_C" >&6
38930 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38932 cat >conftest.$ac_ext <<_ACEOF
38935 cat confdefs.h >>conftest.$ac_ext
38936 cat >>conftest.$ac_ext <<_ACEOF
38937 /* end confdefs.h. */
38939 #ifdef HAVE_DB_185_H
38940 # include <db_185.h>
38945 #ifndef DB_VERSION_MAJOR
38946 # define DB_VERSION_MAJOR 1
38950 #define NULL ((void*)0)
38957 #if DB_VERSION_MAJOR > 1
38960 int major, minor, patch;
38962 version = db_version( &major, &minor, &patch );
38964 if( major != DB_VERSION_MAJOR ||
38965 minor < DB_VERSION_MINOR )
38967 printf("Berkeley DB version mismatch\n"
38968 "\theader: %s\n\tlibrary: %s\n",
38969 DB_VERSION_STRING, version);
38975 #if DB_VERSION_MAJOR > 2
38976 db_env_create( NULL, 0 );
38977 #elif DB_VERSION_MAJOR > 1
38978 db_appexit( NULL );
38980 (void) dbopen( NULL, 0, 0, 0, NULL);
38987 rm -f conftest.$ac_objext conftest$ac_exeext
38988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38989 (eval $ac_link) 2>conftest.er1
38991 grep -v '^ *+' conftest.er1 >conftest.err
38993 cat conftest.err >&5
38994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38995 (exit $ac_status); } &&
38996 { ac_try='test -z "$ac_c_werror_flag"
38997 || test ! -s conftest.err'
38998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999 (eval $ac_try) 2>&5
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); }; } &&
39003 { ac_try='test -s conftest$ac_exeext'
39004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005 (eval $ac_try) 2>&5
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); }; }; then
39009 ol_cv_db_db_4_dot_2=yes
39011 echo "$as_me: failed program was:" >&5
39012 sed 's/^/| /' conftest.$ac_ext >&5
39014 ol_cv_db_db_4_dot_2=no
39016 rm -f conftest.err conftest.$ac_objext \
39017 conftest$ac_exeext conftest.$ac_ext
39022 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
39023 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
39025 if test $ol_cv_db_db_4_dot_2 = yes ; then
39026 ol_cv_lib_db=-ldb-4.2
39030 if test $ol_cv_lib_db = no ; then
39031 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
39032 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
39033 if test "${ol_cv_db_db_4_2+set}" = set; then
39034 echo $ECHO_N "(cached) $ECHO_C" >&6
39039 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39041 cat >conftest.$ac_ext <<_ACEOF
39044 cat confdefs.h >>conftest.$ac_ext
39045 cat >>conftest.$ac_ext <<_ACEOF
39046 /* end confdefs.h. */
39048 #ifdef HAVE_DB_185_H
39049 # include <db_185.h>
39054 #ifndef DB_VERSION_MAJOR
39055 # define DB_VERSION_MAJOR 1
39059 #define NULL ((void*)0)
39066 #if DB_VERSION_MAJOR > 1
39069 int major, minor, patch;
39071 version = db_version( &major, &minor, &patch );
39073 if( major != DB_VERSION_MAJOR ||
39074 minor < DB_VERSION_MINOR )
39076 printf("Berkeley DB version mismatch\n"
39077 "\theader: %s\n\tlibrary: %s\n",
39078 DB_VERSION_STRING, version);
39084 #if DB_VERSION_MAJOR > 2
39085 db_env_create( NULL, 0 );
39086 #elif DB_VERSION_MAJOR > 1
39087 db_appexit( NULL );
39089 (void) dbopen( NULL, 0, 0, 0, NULL);
39096 rm -f conftest.$ac_objext conftest$ac_exeext
39097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39098 (eval $ac_link) 2>conftest.er1
39100 grep -v '^ *+' conftest.er1 >conftest.err
39102 cat conftest.err >&5
39103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104 (exit $ac_status); } &&
39105 { ac_try='test -z "$ac_c_werror_flag"
39106 || test ! -s conftest.err'
39107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39108 (eval $ac_try) 2>&5
39110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39111 (exit $ac_status); }; } &&
39112 { ac_try='test -s conftest$ac_exeext'
39113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39114 (eval $ac_try) 2>&5
39116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117 (exit $ac_status); }; }; then
39118 ol_cv_db_db_4_2=yes
39120 echo "$as_me: failed program was:" >&5
39121 sed 's/^/| /' conftest.$ac_ext >&5
39125 rm -f conftest.err conftest.$ac_objext \
39126 conftest$ac_exeext conftest.$ac_ext
39131 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39132 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39134 if test $ol_cv_db_db_4_2 = yes ; then
39135 ol_cv_lib_db=-ldb-4-2
39139 if test $ol_cv_lib_db = no ; then
39140 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39141 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39142 if test "${ol_cv_db_db_4+set}" = set; then
39143 echo $ECHO_N "(cached) $ECHO_C" >&6
39148 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39150 cat >conftest.$ac_ext <<_ACEOF
39153 cat confdefs.h >>conftest.$ac_ext
39154 cat >>conftest.$ac_ext <<_ACEOF
39155 /* end confdefs.h. */
39157 #ifdef HAVE_DB_185_H
39158 # include <db_185.h>
39163 #ifndef DB_VERSION_MAJOR
39164 # define DB_VERSION_MAJOR 1
39168 #define NULL ((void*)0)
39175 #if DB_VERSION_MAJOR > 1
39178 int major, minor, patch;
39180 version = db_version( &major, &minor, &patch );
39182 if( major != DB_VERSION_MAJOR ||
39183 minor < DB_VERSION_MINOR )
39185 printf("Berkeley DB version mismatch\n"
39186 "\theader: %s\n\tlibrary: %s\n",
39187 DB_VERSION_STRING, version);
39193 #if DB_VERSION_MAJOR > 2
39194 db_env_create( NULL, 0 );
39195 #elif DB_VERSION_MAJOR > 1
39196 db_appexit( NULL );
39198 (void) dbopen( NULL, 0, 0, 0, NULL);
39205 rm -f conftest.$ac_objext conftest$ac_exeext
39206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39207 (eval $ac_link) 2>conftest.er1
39209 grep -v '^ *+' conftest.er1 >conftest.err
39211 cat conftest.err >&5
39212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); } &&
39214 { ac_try='test -z "$ac_c_werror_flag"
39215 || test ! -s conftest.err'
39216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39217 (eval $ac_try) 2>&5
39219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220 (exit $ac_status); }; } &&
39221 { ac_try='test -s conftest$ac_exeext'
39222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39223 (eval $ac_try) 2>&5
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); }; }; then
39229 echo "$as_me: failed program was:" >&5
39230 sed 's/^/| /' conftest.$ac_ext >&5
39234 rm -f conftest.err conftest.$ac_objext \
39235 conftest$ac_exeext conftest.$ac_ext
39240 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39241 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39243 if test $ol_cv_db_db_4 = yes ; then
39244 ol_cv_lib_db=-ldb-4
39248 if test $ol_cv_lib_db = no ; then
39249 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39250 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39251 if test "${ol_cv_db_db4+set}" = set; then
39252 echo $ECHO_N "(cached) $ECHO_C" >&6
39257 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39259 cat >conftest.$ac_ext <<_ACEOF
39262 cat confdefs.h >>conftest.$ac_ext
39263 cat >>conftest.$ac_ext <<_ACEOF
39264 /* end confdefs.h. */
39266 #ifdef HAVE_DB_185_H
39267 # include <db_185.h>
39272 #ifndef DB_VERSION_MAJOR
39273 # define DB_VERSION_MAJOR 1
39277 #define NULL ((void*)0)
39284 #if DB_VERSION_MAJOR > 1
39287 int major, minor, patch;
39289 version = db_version( &major, &minor, &patch );
39291 if( major != DB_VERSION_MAJOR ||
39292 minor < DB_VERSION_MINOR )
39294 printf("Berkeley DB version mismatch\n"
39295 "\theader: %s\n\tlibrary: %s\n",
39296 DB_VERSION_STRING, version);
39302 #if DB_VERSION_MAJOR > 2
39303 db_env_create( NULL, 0 );
39304 #elif DB_VERSION_MAJOR > 1
39305 db_appexit( NULL );
39307 (void) dbopen( NULL, 0, 0, 0, NULL);
39314 rm -f conftest.$ac_objext conftest$ac_exeext
39315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39316 (eval $ac_link) 2>conftest.er1
39318 grep -v '^ *+' conftest.er1 >conftest.err
39320 cat conftest.err >&5
39321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322 (exit $ac_status); } &&
39323 { ac_try='test -z "$ac_c_werror_flag"
39324 || test ! -s conftest.err'
39325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39326 (eval $ac_try) 2>&5
39328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39329 (exit $ac_status); }; } &&
39330 { ac_try='test -s conftest$ac_exeext'
39331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39332 (eval $ac_try) 2>&5
39334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335 (exit $ac_status); }; }; then
39338 echo "$as_me: failed program was:" >&5
39339 sed 's/^/| /' conftest.$ac_ext >&5
39343 rm -f conftest.err conftest.$ac_objext \
39344 conftest$ac_exeext conftest.$ac_ext
39349 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39350 echo "${ECHO_T}$ol_cv_db_db4" >&6
39352 if test $ol_cv_db_db4 = yes ; then
39357 if test $ol_cv_lib_db = no ; then
39358 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39359 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39360 if test "${ol_cv_db_db+set}" = set; then
39361 echo $ECHO_N "(cached) $ECHO_C" >&6
39366 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39368 cat >conftest.$ac_ext <<_ACEOF
39371 cat confdefs.h >>conftest.$ac_ext
39372 cat >>conftest.$ac_ext <<_ACEOF
39373 /* end confdefs.h. */
39375 #ifdef HAVE_DB_185_H
39376 # include <db_185.h>
39381 #ifndef DB_VERSION_MAJOR
39382 # define DB_VERSION_MAJOR 1
39386 #define NULL ((void*)0)
39393 #if DB_VERSION_MAJOR > 1
39396 int major, minor, patch;
39398 version = db_version( &major, &minor, &patch );
39400 if( major != DB_VERSION_MAJOR ||
39401 minor < DB_VERSION_MINOR )
39403 printf("Berkeley DB version mismatch\n"
39404 "\theader: %s\n\tlibrary: %s\n",
39405 DB_VERSION_STRING, version);
39411 #if DB_VERSION_MAJOR > 2
39412 db_env_create( NULL, 0 );
39413 #elif DB_VERSION_MAJOR > 1
39414 db_appexit( NULL );
39416 (void) dbopen( NULL, 0, 0, 0, NULL);
39423 rm -f conftest.$ac_objext conftest$ac_exeext
39424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39425 (eval $ac_link) 2>conftest.er1
39427 grep -v '^ *+' conftest.er1 >conftest.err
39429 cat conftest.err >&5
39430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431 (exit $ac_status); } &&
39432 { ac_try='test -z "$ac_c_werror_flag"
39433 || test ! -s conftest.err'
39434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435 (eval $ac_try) 2>&5
39437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438 (exit $ac_status); }; } &&
39439 { ac_try='test -s conftest$ac_exeext'
39440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441 (eval $ac_try) 2>&5
39443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444 (exit $ac_status); }; }; then
39447 echo "$as_me: failed program was:" >&5
39448 sed 's/^/| /' conftest.$ac_ext >&5
39452 rm -f conftest.err conftest.$ac_objext \
39453 conftest$ac_exeext conftest.$ac_ext
39458 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39459 echo "${ECHO_T}$ol_cv_db_db" >&6
39461 if test $ol_cv_db_db = yes ; then
39466 if test $ol_cv_lib_db = no ; then
39467 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39468 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39469 if test "${ol_cv_db_db41+set}" = set; then
39470 echo $ECHO_N "(cached) $ECHO_C" >&6
39475 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39477 cat >conftest.$ac_ext <<_ACEOF
39480 cat confdefs.h >>conftest.$ac_ext
39481 cat >>conftest.$ac_ext <<_ACEOF
39482 /* end confdefs.h. */
39484 #ifdef HAVE_DB_185_H
39485 # include <db_185.h>
39490 #ifndef DB_VERSION_MAJOR
39491 # define DB_VERSION_MAJOR 1
39495 #define NULL ((void*)0)
39502 #if DB_VERSION_MAJOR > 1
39505 int major, minor, patch;
39507 version = db_version( &major, &minor, &patch );
39509 if( major != DB_VERSION_MAJOR ||
39510 minor < DB_VERSION_MINOR )
39512 printf("Berkeley DB version mismatch\n"
39513 "\theader: %s\n\tlibrary: %s\n",
39514 DB_VERSION_STRING, version);
39520 #if DB_VERSION_MAJOR > 2
39521 db_env_create( NULL, 0 );
39522 #elif DB_VERSION_MAJOR > 1
39523 db_appexit( NULL );
39525 (void) dbopen( NULL, 0, 0, 0, NULL);
39532 rm -f conftest.$ac_objext conftest$ac_exeext
39533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39534 (eval $ac_link) 2>conftest.er1
39536 grep -v '^ *+' conftest.er1 >conftest.err
39538 cat conftest.err >&5
39539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540 (exit $ac_status); } &&
39541 { ac_try='test -z "$ac_c_werror_flag"
39542 || test ! -s conftest.err'
39543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39544 (eval $ac_try) 2>&5
39546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547 (exit $ac_status); }; } &&
39548 { ac_try='test -s conftest$ac_exeext'
39549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39550 (eval $ac_try) 2>&5
39552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553 (exit $ac_status); }; }; then
39556 echo "$as_me: failed program was:" >&5
39557 sed 's/^/| /' conftest.$ac_ext >&5
39561 rm -f conftest.err conftest.$ac_objext \
39562 conftest$ac_exeext conftest.$ac_ext
39567 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39568 echo "${ECHO_T}$ol_cv_db_db41" >&6
39570 if test $ol_cv_db_db41 = yes ; then
39571 ol_cv_lib_db=-ldb41
39575 if test $ol_cv_lib_db = no ; then
39576 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39577 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39578 if test "${ol_cv_db_db_41+set}" = set; then
39579 echo $ECHO_N "(cached) $ECHO_C" >&6
39584 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39586 cat >conftest.$ac_ext <<_ACEOF
39589 cat confdefs.h >>conftest.$ac_ext
39590 cat >>conftest.$ac_ext <<_ACEOF
39591 /* end confdefs.h. */
39593 #ifdef HAVE_DB_185_H
39594 # include <db_185.h>
39599 #ifndef DB_VERSION_MAJOR
39600 # define DB_VERSION_MAJOR 1
39604 #define NULL ((void*)0)
39611 #if DB_VERSION_MAJOR > 1
39614 int major, minor, patch;
39616 version = db_version( &major, &minor, &patch );
39618 if( major != DB_VERSION_MAJOR ||
39619 minor < DB_VERSION_MINOR )
39621 printf("Berkeley DB version mismatch\n"
39622 "\theader: %s\n\tlibrary: %s\n",
39623 DB_VERSION_STRING, version);
39629 #if DB_VERSION_MAJOR > 2
39630 db_env_create( NULL, 0 );
39631 #elif DB_VERSION_MAJOR > 1
39632 db_appexit( NULL );
39634 (void) dbopen( NULL, 0, 0, 0, NULL);
39641 rm -f conftest.$ac_objext conftest$ac_exeext
39642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39643 (eval $ac_link) 2>conftest.er1
39645 grep -v '^ *+' conftest.er1 >conftest.err
39647 cat conftest.err >&5
39648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649 (exit $ac_status); } &&
39650 { ac_try='test -z "$ac_c_werror_flag"
39651 || test ! -s conftest.err'
39652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39653 (eval $ac_try) 2>&5
39655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656 (exit $ac_status); }; } &&
39657 { ac_try='test -s conftest$ac_exeext'
39658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39659 (eval $ac_try) 2>&5
39661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662 (exit $ac_status); }; }; then
39665 echo "$as_me: failed program was:" >&5
39666 sed 's/^/| /' conftest.$ac_ext >&5
39670 rm -f conftest.err conftest.$ac_objext \
39671 conftest$ac_exeext conftest.$ac_ext
39676 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39677 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39679 if test $ol_cv_db_db_41 = yes ; then
39680 ol_cv_lib_db=-ldb-41
39684 if test $ol_cv_lib_db = no ; then
39685 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39686 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39687 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39688 echo $ECHO_N "(cached) $ECHO_C" >&6
39693 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39695 cat >conftest.$ac_ext <<_ACEOF
39698 cat confdefs.h >>conftest.$ac_ext
39699 cat >>conftest.$ac_ext <<_ACEOF
39700 /* end confdefs.h. */
39702 #ifdef HAVE_DB_185_H
39703 # include <db_185.h>
39708 #ifndef DB_VERSION_MAJOR
39709 # define DB_VERSION_MAJOR 1
39713 #define NULL ((void*)0)
39720 #if DB_VERSION_MAJOR > 1
39723 int major, minor, patch;
39725 version = db_version( &major, &minor, &patch );
39727 if( major != DB_VERSION_MAJOR ||
39728 minor < DB_VERSION_MINOR )
39730 printf("Berkeley DB version mismatch\n"
39731 "\theader: %s\n\tlibrary: %s\n",
39732 DB_VERSION_STRING, version);
39738 #if DB_VERSION_MAJOR > 2
39739 db_env_create( NULL, 0 );
39740 #elif DB_VERSION_MAJOR > 1
39741 db_appexit( NULL );
39743 (void) dbopen( NULL, 0, 0, 0, NULL);
39750 rm -f conftest.$ac_objext conftest$ac_exeext
39751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39752 (eval $ac_link) 2>conftest.er1
39754 grep -v '^ *+' conftest.er1 >conftest.err
39756 cat conftest.err >&5
39757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758 (exit $ac_status); } &&
39759 { ac_try='test -z "$ac_c_werror_flag"
39760 || test ! -s conftest.err'
39761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39762 (eval $ac_try) 2>&5
39764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765 (exit $ac_status); }; } &&
39766 { ac_try='test -s conftest$ac_exeext'
39767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39768 (eval $ac_try) 2>&5
39770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771 (exit $ac_status); }; }; then
39772 ol_cv_db_db_4_dot_1=yes
39774 echo "$as_me: failed program was:" >&5
39775 sed 's/^/| /' conftest.$ac_ext >&5
39777 ol_cv_db_db_4_dot_1=no
39779 rm -f conftest.err conftest.$ac_objext \
39780 conftest$ac_exeext conftest.$ac_ext
39785 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39786 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39788 if test $ol_cv_db_db_4_dot_1 = yes ; then
39789 ol_cv_lib_db=-ldb-4.1
39793 if test $ol_cv_lib_db = no ; then
39794 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39795 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39796 if test "${ol_cv_db_db_4_1+set}" = set; then
39797 echo $ECHO_N "(cached) $ECHO_C" >&6
39802 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39804 cat >conftest.$ac_ext <<_ACEOF
39807 cat confdefs.h >>conftest.$ac_ext
39808 cat >>conftest.$ac_ext <<_ACEOF
39809 /* end confdefs.h. */
39811 #ifdef HAVE_DB_185_H
39812 # include <db_185.h>
39817 #ifndef DB_VERSION_MAJOR
39818 # define DB_VERSION_MAJOR 1
39822 #define NULL ((void*)0)
39829 #if DB_VERSION_MAJOR > 1
39832 int major, minor, patch;
39834 version = db_version( &major, &minor, &patch );
39836 if( major != DB_VERSION_MAJOR ||
39837 minor < DB_VERSION_MINOR )
39839 printf("Berkeley DB version mismatch\n"
39840 "\theader: %s\n\tlibrary: %s\n",
39841 DB_VERSION_STRING, version);
39847 #if DB_VERSION_MAJOR > 2
39848 db_env_create( NULL, 0 );
39849 #elif DB_VERSION_MAJOR > 1
39850 db_appexit( NULL );
39852 (void) dbopen( NULL, 0, 0, 0, NULL);
39859 rm -f conftest.$ac_objext conftest$ac_exeext
39860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39861 (eval $ac_link) 2>conftest.er1
39863 grep -v '^ *+' conftest.er1 >conftest.err
39865 cat conftest.err >&5
39866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39867 (exit $ac_status); } &&
39868 { ac_try='test -z "$ac_c_werror_flag"
39869 || test ! -s conftest.err'
39870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39871 (eval $ac_try) 2>&5
39873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39874 (exit $ac_status); }; } &&
39875 { ac_try='test -s conftest$ac_exeext'
39876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39877 (eval $ac_try) 2>&5
39879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880 (exit $ac_status); }; }; then
39881 ol_cv_db_db_4_1=yes
39883 echo "$as_me: failed program was:" >&5
39884 sed 's/^/| /' conftest.$ac_ext >&5
39888 rm -f conftest.err conftest.$ac_objext \
39889 conftest$ac_exeext conftest.$ac_ext
39894 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39895 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39897 if test $ol_cv_db_db_4_1 = yes ; then
39898 ol_cv_lib_db=-ldb-4-1
39902 if test $ol_cv_lib_db = no ; then
39903 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39904 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39905 if test "${ol_cv_db_db3+set}" = set; then
39906 echo $ECHO_N "(cached) $ECHO_C" >&6
39911 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39913 cat >conftest.$ac_ext <<_ACEOF
39916 cat confdefs.h >>conftest.$ac_ext
39917 cat >>conftest.$ac_ext <<_ACEOF
39918 /* end confdefs.h. */
39920 #ifdef HAVE_DB_185_H
39921 # include <db_185.h>
39926 #ifndef DB_VERSION_MAJOR
39927 # define DB_VERSION_MAJOR 1
39931 #define NULL ((void*)0)
39938 #if DB_VERSION_MAJOR > 1
39941 int major, minor, patch;
39943 version = db_version( &major, &minor, &patch );
39945 if( major != DB_VERSION_MAJOR ||
39946 minor < DB_VERSION_MINOR )
39948 printf("Berkeley DB version mismatch\n"
39949 "\theader: %s\n\tlibrary: %s\n",
39950 DB_VERSION_STRING, version);
39956 #if DB_VERSION_MAJOR > 2
39957 db_env_create( NULL, 0 );
39958 #elif DB_VERSION_MAJOR > 1
39959 db_appexit( NULL );
39961 (void) dbopen( NULL, 0, 0, 0, NULL);
39968 rm -f conftest.$ac_objext conftest$ac_exeext
39969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39970 (eval $ac_link) 2>conftest.er1
39972 grep -v '^ *+' conftest.er1 >conftest.err
39974 cat conftest.err >&5
39975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39976 (exit $ac_status); } &&
39977 { ac_try='test -z "$ac_c_werror_flag"
39978 || test ! -s conftest.err'
39979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39980 (eval $ac_try) 2>&5
39982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983 (exit $ac_status); }; } &&
39984 { ac_try='test -s conftest$ac_exeext'
39985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39986 (eval $ac_try) 2>&5
39988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989 (exit $ac_status); }; }; then
39992 echo "$as_me: failed program was:" >&5
39993 sed 's/^/| /' conftest.$ac_ext >&5
39997 rm -f conftest.err conftest.$ac_objext \
39998 conftest$ac_exeext conftest.$ac_ext
40003 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
40004 echo "${ECHO_T}$ol_cv_db_db3" >&6
40006 if test $ol_cv_db_db3 = yes ; then
40011 if test $ol_cv_lib_db = no ; then
40012 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
40013 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
40014 if test "${ol_cv_db_db_3+set}" = set; then
40015 echo $ECHO_N "(cached) $ECHO_C" >&6
40020 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40022 cat >conftest.$ac_ext <<_ACEOF
40025 cat confdefs.h >>conftest.$ac_ext
40026 cat >>conftest.$ac_ext <<_ACEOF
40027 /* end confdefs.h. */
40029 #ifdef HAVE_DB_185_H
40030 # include <db_185.h>
40035 #ifndef DB_VERSION_MAJOR
40036 # define DB_VERSION_MAJOR 1
40040 #define NULL ((void*)0)
40047 #if DB_VERSION_MAJOR > 1
40050 int major, minor, patch;
40052 version = db_version( &major, &minor, &patch );
40054 if( major != DB_VERSION_MAJOR ||
40055 minor < DB_VERSION_MINOR )
40057 printf("Berkeley DB version mismatch\n"
40058 "\theader: %s\n\tlibrary: %s\n",
40059 DB_VERSION_STRING, version);
40065 #if DB_VERSION_MAJOR > 2
40066 db_env_create( NULL, 0 );
40067 #elif DB_VERSION_MAJOR > 1
40068 db_appexit( NULL );
40070 (void) dbopen( NULL, 0, 0, 0, NULL);
40077 rm -f conftest.$ac_objext conftest$ac_exeext
40078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40079 (eval $ac_link) 2>conftest.er1
40081 grep -v '^ *+' conftest.er1 >conftest.err
40083 cat conftest.err >&5
40084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40085 (exit $ac_status); } &&
40086 { ac_try='test -z "$ac_c_werror_flag"
40087 || test ! -s conftest.err'
40088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40089 (eval $ac_try) 2>&5
40091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40092 (exit $ac_status); }; } &&
40093 { ac_try='test -s conftest$ac_exeext'
40094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40095 (eval $ac_try) 2>&5
40097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098 (exit $ac_status); }; }; then
40101 echo "$as_me: failed program was:" >&5
40102 sed 's/^/| /' conftest.$ac_ext >&5
40106 rm -f conftest.err conftest.$ac_objext \
40107 conftest$ac_exeext conftest.$ac_ext
40112 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40113 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40115 if test $ol_cv_db_db_3 = yes ; then
40116 ol_cv_lib_db=-ldb-3
40120 if test $ol_cv_lib_db = no ; then
40121 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40122 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40123 if test "${ol_cv_db_db2+set}" = set; then
40124 echo $ECHO_N "(cached) $ECHO_C" >&6
40129 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40131 cat >conftest.$ac_ext <<_ACEOF
40134 cat confdefs.h >>conftest.$ac_ext
40135 cat >>conftest.$ac_ext <<_ACEOF
40136 /* end confdefs.h. */
40138 #ifdef HAVE_DB_185_H
40139 # include <db_185.h>
40144 #ifndef DB_VERSION_MAJOR
40145 # define DB_VERSION_MAJOR 1
40149 #define NULL ((void*)0)
40156 #if DB_VERSION_MAJOR > 1
40159 int major, minor, patch;
40161 version = db_version( &major, &minor, &patch );
40163 if( major != DB_VERSION_MAJOR ||
40164 minor < DB_VERSION_MINOR )
40166 printf("Berkeley DB version mismatch\n"
40167 "\theader: %s\n\tlibrary: %s\n",
40168 DB_VERSION_STRING, version);
40174 #if DB_VERSION_MAJOR > 2
40175 db_env_create( NULL, 0 );
40176 #elif DB_VERSION_MAJOR > 1
40177 db_appexit( NULL );
40179 (void) dbopen( NULL, 0, 0, 0, NULL);
40186 rm -f conftest.$ac_objext conftest$ac_exeext
40187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40188 (eval $ac_link) 2>conftest.er1
40190 grep -v '^ *+' conftest.er1 >conftest.err
40192 cat conftest.err >&5
40193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40194 (exit $ac_status); } &&
40195 { ac_try='test -z "$ac_c_werror_flag"
40196 || test ! -s conftest.err'
40197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40198 (eval $ac_try) 2>&5
40200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40201 (exit $ac_status); }; } &&
40202 { ac_try='test -s conftest$ac_exeext'
40203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40204 (eval $ac_try) 2>&5
40206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40207 (exit $ac_status); }; }; then
40210 echo "$as_me: failed program was:" >&5
40211 sed 's/^/| /' conftest.$ac_ext >&5
40215 rm -f conftest.err conftest.$ac_objext \
40216 conftest$ac_exeext conftest.$ac_ext
40221 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40222 echo "${ECHO_T}$ol_cv_db_db2" >&6
40224 if test $ol_cv_db_db2 = yes ; then
40229 if test $ol_cv_lib_db = no ; then
40230 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40231 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40232 if test "${ol_cv_db_db_2+set}" = set; then
40233 echo $ECHO_N "(cached) $ECHO_C" >&6
40238 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40240 cat >conftest.$ac_ext <<_ACEOF
40243 cat confdefs.h >>conftest.$ac_ext
40244 cat >>conftest.$ac_ext <<_ACEOF
40245 /* end confdefs.h. */
40247 #ifdef HAVE_DB_185_H
40248 # include <db_185.h>
40253 #ifndef DB_VERSION_MAJOR
40254 # define DB_VERSION_MAJOR 1
40258 #define NULL ((void*)0)
40265 #if DB_VERSION_MAJOR > 1
40268 int major, minor, patch;
40270 version = db_version( &major, &minor, &patch );
40272 if( major != DB_VERSION_MAJOR ||
40273 minor < DB_VERSION_MINOR )
40275 printf("Berkeley DB version mismatch\n"
40276 "\theader: %s\n\tlibrary: %s\n",
40277 DB_VERSION_STRING, version);
40283 #if DB_VERSION_MAJOR > 2
40284 db_env_create( NULL, 0 );
40285 #elif DB_VERSION_MAJOR > 1
40286 db_appexit( NULL );
40288 (void) dbopen( NULL, 0, 0, 0, NULL);
40295 rm -f conftest.$ac_objext conftest$ac_exeext
40296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40297 (eval $ac_link) 2>conftest.er1
40299 grep -v '^ *+' conftest.er1 >conftest.err
40301 cat conftest.err >&5
40302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40303 (exit $ac_status); } &&
40304 { ac_try='test -z "$ac_c_werror_flag"
40305 || test ! -s conftest.err'
40306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40307 (eval $ac_try) 2>&5
40309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310 (exit $ac_status); }; } &&
40311 { ac_try='test -s conftest$ac_exeext'
40312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40313 (eval $ac_try) 2>&5
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); }; }; then
40319 echo "$as_me: failed program was:" >&5
40320 sed 's/^/| /' conftest.$ac_ext >&5
40324 rm -f conftest.err conftest.$ac_objext \
40325 conftest$ac_exeext conftest.$ac_ext
40330 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40331 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40333 if test $ol_cv_db_db_2 = yes ; then
40334 ol_cv_lib_db=-ldb-2
40338 if test $ol_cv_lib_db = no ; then
40339 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40340 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40341 if test "${ol_cv_db_db1+set}" = set; then
40342 echo $ECHO_N "(cached) $ECHO_C" >&6
40347 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40349 cat >conftest.$ac_ext <<_ACEOF
40352 cat confdefs.h >>conftest.$ac_ext
40353 cat >>conftest.$ac_ext <<_ACEOF
40354 /* end confdefs.h. */
40356 #ifdef HAVE_DB_185_H
40357 # include <db_185.h>
40362 #ifndef DB_VERSION_MAJOR
40363 # define DB_VERSION_MAJOR 1
40367 #define NULL ((void*)0)
40374 #if DB_VERSION_MAJOR > 1
40377 int major, minor, patch;
40379 version = db_version( &major, &minor, &patch );
40381 if( major != DB_VERSION_MAJOR ||
40382 minor < DB_VERSION_MINOR )
40384 printf("Berkeley DB version mismatch\n"
40385 "\theader: %s\n\tlibrary: %s\n",
40386 DB_VERSION_STRING, version);
40392 #if DB_VERSION_MAJOR > 2
40393 db_env_create( NULL, 0 );
40394 #elif DB_VERSION_MAJOR > 1
40395 db_appexit( NULL );
40397 (void) dbopen( NULL, 0, 0, 0, NULL);
40404 rm -f conftest.$ac_objext conftest$ac_exeext
40405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40406 (eval $ac_link) 2>conftest.er1
40408 grep -v '^ *+' conftest.er1 >conftest.err
40410 cat conftest.err >&5
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); } &&
40413 { ac_try='test -z "$ac_c_werror_flag"
40414 || test ! -s conftest.err'
40415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40416 (eval $ac_try) 2>&5
40418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40419 (exit $ac_status); }; } &&
40420 { ac_try='test -s conftest$ac_exeext'
40421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40422 (eval $ac_try) 2>&5
40424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40425 (exit $ac_status); }; }; then
40428 echo "$as_me: failed program was:" >&5
40429 sed 's/^/| /' conftest.$ac_ext >&5
40433 rm -f conftest.err conftest.$ac_objext \
40434 conftest$ac_exeext conftest.$ac_ext
40439 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40440 echo "${ECHO_T}$ol_cv_db_db1" >&6
40442 if test $ol_cv_db_db1 = yes ; then
40447 if test $ol_cv_lib_db = no ; then
40448 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40449 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40450 if test "${ol_cv_db_db_1+set}" = set; then
40451 echo $ECHO_N "(cached) $ECHO_C" >&6
40456 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40458 cat >conftest.$ac_ext <<_ACEOF
40461 cat confdefs.h >>conftest.$ac_ext
40462 cat >>conftest.$ac_ext <<_ACEOF
40463 /* end confdefs.h. */
40465 #ifdef HAVE_DB_185_H
40466 # include <db_185.h>
40471 #ifndef DB_VERSION_MAJOR
40472 # define DB_VERSION_MAJOR 1
40476 #define NULL ((void*)0)
40483 #if DB_VERSION_MAJOR > 1
40486 int major, minor, patch;
40488 version = db_version( &major, &minor, &patch );
40490 if( major != DB_VERSION_MAJOR ||
40491 minor < DB_VERSION_MINOR )
40493 printf("Berkeley DB version mismatch\n"
40494 "\theader: %s\n\tlibrary: %s\n",
40495 DB_VERSION_STRING, version);
40501 #if DB_VERSION_MAJOR > 2
40502 db_env_create( NULL, 0 );
40503 #elif DB_VERSION_MAJOR > 1
40504 db_appexit( NULL );
40506 (void) dbopen( NULL, 0, 0, 0, NULL);
40513 rm -f conftest.$ac_objext conftest$ac_exeext
40514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40515 (eval $ac_link) 2>conftest.er1
40517 grep -v '^ *+' conftest.er1 >conftest.err
40519 cat conftest.err >&5
40520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521 (exit $ac_status); } &&
40522 { ac_try='test -z "$ac_c_werror_flag"
40523 || test ! -s conftest.err'
40524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40525 (eval $ac_try) 2>&5
40527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528 (exit $ac_status); }; } &&
40529 { ac_try='test -s conftest$ac_exeext'
40530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40531 (eval $ac_try) 2>&5
40533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534 (exit $ac_status); }; }; then
40537 echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40542 rm -f conftest.err conftest.$ac_objext \
40543 conftest$ac_exeext conftest.$ac_ext
40548 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40549 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40551 if test $ol_cv_db_db_1 = yes ; then
40552 ol_cv_lib_db=-ldb-1
40557 if test "$ol_cv_lib_db" != no ; then
40558 ol_cv_berkeley_db=yes
40564 ol_cv_berkeley_db=no
40566 for ac_header in db.h
40568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40570 echo "$as_me:$LINENO: checking for $ac_header" >&5
40571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40573 echo $ECHO_N "(cached) $ECHO_C" >&6
40575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40578 # Is the header compilable?
40579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40581 cat >conftest.$ac_ext <<_ACEOF
40584 cat confdefs.h >>conftest.$ac_ext
40585 cat >>conftest.$ac_ext <<_ACEOF
40586 /* end confdefs.h. */
40587 $ac_includes_default
40588 #include <$ac_header>
40590 rm -f conftest.$ac_objext
40591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40592 (eval $ac_compile) 2>conftest.er1
40594 grep -v '^ *+' conftest.er1 >conftest.err
40596 cat conftest.err >&5
40597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40598 (exit $ac_status); } &&
40599 { ac_try='test -z "$ac_c_werror_flag"
40600 || test ! -s conftest.err'
40601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40602 (eval $ac_try) 2>&5
40604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40605 (exit $ac_status); }; } &&
40606 { ac_try='test -s conftest.$ac_objext'
40607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40608 (eval $ac_try) 2>&5
40610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40611 (exit $ac_status); }; }; then
40612 ac_header_compiler=yes
40614 echo "$as_me: failed program was:" >&5
40615 sed 's/^/| /' conftest.$ac_ext >&5
40617 ac_header_compiler=no
40619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40621 echo "${ECHO_T}$ac_header_compiler" >&6
40623 # Is the header present?
40624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40626 cat >conftest.$ac_ext <<_ACEOF
40629 cat confdefs.h >>conftest.$ac_ext
40630 cat >>conftest.$ac_ext <<_ACEOF
40631 /* end confdefs.h. */
40632 #include <$ac_header>
40634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40637 grep -v '^ *+' conftest.er1 >conftest.err
40639 cat conftest.err >&5
40640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40641 (exit $ac_status); } >/dev/null; then
40642 if test -s conftest.err; then
40643 ac_cpp_err=$ac_c_preproc_warn_flag
40644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40651 if test -z "$ac_cpp_err"; then
40652 ac_header_preproc=yes
40654 echo "$as_me: failed program was:" >&5
40655 sed 's/^/| /' conftest.$ac_ext >&5
40657 ac_header_preproc=no
40659 rm -f conftest.err conftest.$ac_ext
40660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40661 echo "${ECHO_T}$ac_header_preproc" >&6
40663 # So? What about this header?
40664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40670 ac_header_preproc=yes
40673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40687 ## ------------------------------------------ ##
40688 ## Report this to the AC_PACKAGE_NAME lists. ##
40689 ## ------------------------------------------ ##
40692 sed "s/^/$as_me: WARNING: /" >&2
40695 echo "$as_me:$LINENO: checking for $ac_header" >&5
40696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40698 echo $ECHO_N "(cached) $ECHO_C" >&6
40700 eval "$as_ac_Header=\$ac_header_preproc"
40702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40707 cat >>confdefs.h <<_ACEOF
40708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40715 if test $ac_cv_header_db_h = yes; then
40717 if test $ol_cv_lib_db = no ; then
40718 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40719 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40720 if test "${ol_cv_db_none+set}" = set; then
40721 echo $ECHO_N "(cached) $ECHO_C" >&6
40726 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40728 cat >conftest.$ac_ext <<_ACEOF
40731 cat confdefs.h >>conftest.$ac_ext
40732 cat >>conftest.$ac_ext <<_ACEOF
40733 /* end confdefs.h. */
40735 #ifdef HAVE_DB_185_H
40736 # include <db_185.h>
40741 #ifndef DB_VERSION_MAJOR
40742 # define DB_VERSION_MAJOR 1
40746 #define NULL ((void*)0)
40753 #if DB_VERSION_MAJOR > 1
40756 int major, minor, patch;
40758 version = db_version( &major, &minor, &patch );
40760 if( major != DB_VERSION_MAJOR ||
40761 minor < DB_VERSION_MINOR )
40763 printf("Berkeley DB version mismatch\n"
40764 "\theader: %s\n\tlibrary: %s\n",
40765 DB_VERSION_STRING, version);
40771 #if DB_VERSION_MAJOR > 2
40772 db_env_create( NULL, 0 );
40773 #elif DB_VERSION_MAJOR > 1
40774 db_appexit( NULL );
40776 (void) dbopen( NULL, 0, 0, 0, NULL);
40783 rm -f conftest.$ac_objext conftest$ac_exeext
40784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40785 (eval $ac_link) 2>conftest.er1
40787 grep -v '^ *+' conftest.er1 >conftest.err
40789 cat conftest.err >&5
40790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791 (exit $ac_status); } &&
40792 { ac_try='test -z "$ac_c_werror_flag"
40793 || test ! -s conftest.err'
40794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40795 (eval $ac_try) 2>&5
40797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40798 (exit $ac_status); }; } &&
40799 { ac_try='test -s conftest$ac_exeext'
40800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40801 (eval $ac_try) 2>&5
40803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40804 (exit $ac_status); }; }; then
40807 echo "$as_me: failed program was:" >&5
40808 sed 's/^/| /' conftest.$ac_ext >&5
40812 rm -f conftest.err conftest.$ac_objext \
40813 conftest$ac_exeext conftest.$ac_ext
40818 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40819 echo "${ECHO_T}$ol_cv_db_none" >&6
40821 if test $ol_cv_db_none = yes ; then
40826 if test $ol_cv_lib_db = no ; then
40827 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40828 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40829 if test "${ol_cv_db_db43+set}" = set; then
40830 echo $ECHO_N "(cached) $ECHO_C" >&6
40835 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40837 cat >conftest.$ac_ext <<_ACEOF
40840 cat confdefs.h >>conftest.$ac_ext
40841 cat >>conftest.$ac_ext <<_ACEOF
40842 /* end confdefs.h. */
40844 #ifdef HAVE_DB_185_H
40845 # include <db_185.h>
40850 #ifndef DB_VERSION_MAJOR
40851 # define DB_VERSION_MAJOR 1
40855 #define NULL ((void*)0)
40862 #if DB_VERSION_MAJOR > 1
40865 int major, minor, patch;
40867 version = db_version( &major, &minor, &patch );
40869 if( major != DB_VERSION_MAJOR ||
40870 minor < DB_VERSION_MINOR )
40872 printf("Berkeley DB version mismatch\n"
40873 "\theader: %s\n\tlibrary: %s\n",
40874 DB_VERSION_STRING, version);
40880 #if DB_VERSION_MAJOR > 2
40881 db_env_create( NULL, 0 );
40882 #elif DB_VERSION_MAJOR > 1
40883 db_appexit( NULL );
40885 (void) dbopen( NULL, 0, 0, 0, NULL);
40892 rm -f conftest.$ac_objext conftest$ac_exeext
40893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40894 (eval $ac_link) 2>conftest.er1
40896 grep -v '^ *+' conftest.er1 >conftest.err
40898 cat conftest.err >&5
40899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900 (exit $ac_status); } &&
40901 { ac_try='test -z "$ac_c_werror_flag"
40902 || test ! -s conftest.err'
40903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40904 (eval $ac_try) 2>&5
40906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40907 (exit $ac_status); }; } &&
40908 { ac_try='test -s conftest$ac_exeext'
40909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40910 (eval $ac_try) 2>&5
40912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40913 (exit $ac_status); }; }; then
40916 echo "$as_me: failed program was:" >&5
40917 sed 's/^/| /' conftest.$ac_ext >&5
40921 rm -f conftest.err conftest.$ac_objext \
40922 conftest$ac_exeext conftest.$ac_ext
40927 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40928 echo "${ECHO_T}$ol_cv_db_db43" >&6
40930 if test $ol_cv_db_db43 = yes ; then
40931 ol_cv_lib_db=-ldb43
40935 if test $ol_cv_lib_db = no ; then
40936 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40937 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40938 if test "${ol_cv_db_db_43+set}" = set; then
40939 echo $ECHO_N "(cached) $ECHO_C" >&6
40944 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40946 cat >conftest.$ac_ext <<_ACEOF
40949 cat confdefs.h >>conftest.$ac_ext
40950 cat >>conftest.$ac_ext <<_ACEOF
40951 /* end confdefs.h. */
40953 #ifdef HAVE_DB_185_H
40954 # include <db_185.h>
40959 #ifndef DB_VERSION_MAJOR
40960 # define DB_VERSION_MAJOR 1
40964 #define NULL ((void*)0)
40971 #if DB_VERSION_MAJOR > 1
40974 int major, minor, patch;
40976 version = db_version( &major, &minor, &patch );
40978 if( major != DB_VERSION_MAJOR ||
40979 minor < DB_VERSION_MINOR )
40981 printf("Berkeley DB version mismatch\n"
40982 "\theader: %s\n\tlibrary: %s\n",
40983 DB_VERSION_STRING, version);
40989 #if DB_VERSION_MAJOR > 2
40990 db_env_create( NULL, 0 );
40991 #elif DB_VERSION_MAJOR > 1
40992 db_appexit( NULL );
40994 (void) dbopen( NULL, 0, 0, 0, NULL);
41001 rm -f conftest.$ac_objext conftest$ac_exeext
41002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41003 (eval $ac_link) 2>conftest.er1
41005 grep -v '^ *+' conftest.er1 >conftest.err
41007 cat conftest.err >&5
41008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41009 (exit $ac_status); } &&
41010 { ac_try='test -z "$ac_c_werror_flag"
41011 || test ! -s conftest.err'
41012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41013 (eval $ac_try) 2>&5
41015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41016 (exit $ac_status); }; } &&
41017 { ac_try='test -s conftest$ac_exeext'
41018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41019 (eval $ac_try) 2>&5
41021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022 (exit $ac_status); }; }; then
41025 echo "$as_me: failed program was:" >&5
41026 sed 's/^/| /' conftest.$ac_ext >&5
41030 rm -f conftest.err conftest.$ac_objext \
41031 conftest$ac_exeext conftest.$ac_ext
41036 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
41037 echo "${ECHO_T}$ol_cv_db_db_43" >&6
41039 if test $ol_cv_db_db_43 = yes ; then
41040 ol_cv_lib_db=-ldb-43
41044 if test $ol_cv_lib_db = no ; then
41045 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
41046 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
41047 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
41048 echo $ECHO_N "(cached) $ECHO_C" >&6
41053 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41055 cat >conftest.$ac_ext <<_ACEOF
41058 cat confdefs.h >>conftest.$ac_ext
41059 cat >>conftest.$ac_ext <<_ACEOF
41060 /* end confdefs.h. */
41062 #ifdef HAVE_DB_185_H
41063 # include <db_185.h>
41068 #ifndef DB_VERSION_MAJOR
41069 # define DB_VERSION_MAJOR 1
41073 #define NULL ((void*)0)
41080 #if DB_VERSION_MAJOR > 1
41083 int major, minor, patch;
41085 version = db_version( &major, &minor, &patch );
41087 if( major != DB_VERSION_MAJOR ||
41088 minor < DB_VERSION_MINOR )
41090 printf("Berkeley DB version mismatch\n"
41091 "\theader: %s\n\tlibrary: %s\n",
41092 DB_VERSION_STRING, version);
41098 #if DB_VERSION_MAJOR > 2
41099 db_env_create( NULL, 0 );
41100 #elif DB_VERSION_MAJOR > 1
41101 db_appexit( NULL );
41103 (void) dbopen( NULL, 0, 0, 0, NULL);
41110 rm -f conftest.$ac_objext conftest$ac_exeext
41111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41112 (eval $ac_link) 2>conftest.er1
41114 grep -v '^ *+' conftest.er1 >conftest.err
41116 cat conftest.err >&5
41117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118 (exit $ac_status); } &&
41119 { ac_try='test -z "$ac_c_werror_flag"
41120 || test ! -s conftest.err'
41121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41122 (eval $ac_try) 2>&5
41124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41125 (exit $ac_status); }; } &&
41126 { ac_try='test -s conftest$ac_exeext'
41127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41128 (eval $ac_try) 2>&5
41130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41131 (exit $ac_status); }; }; then
41132 ol_cv_db_db_4_dot_3=yes
41134 echo "$as_me: failed program was:" >&5
41135 sed 's/^/| /' conftest.$ac_ext >&5
41137 ol_cv_db_db_4_dot_3=no
41139 rm -f conftest.err conftest.$ac_objext \
41140 conftest$ac_exeext conftest.$ac_ext
41145 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41146 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41148 if test $ol_cv_db_db_4_dot_3 = yes ; then
41149 ol_cv_lib_db=-ldb-4.3
41153 if test $ol_cv_lib_db = no ; then
41154 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41155 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41156 if test "${ol_cv_db_db_4_3+set}" = set; then
41157 echo $ECHO_N "(cached) $ECHO_C" >&6
41162 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41164 cat >conftest.$ac_ext <<_ACEOF
41167 cat confdefs.h >>conftest.$ac_ext
41168 cat >>conftest.$ac_ext <<_ACEOF
41169 /* end confdefs.h. */
41171 #ifdef HAVE_DB_185_H
41172 # include <db_185.h>
41177 #ifndef DB_VERSION_MAJOR
41178 # define DB_VERSION_MAJOR 1
41182 #define NULL ((void*)0)
41189 #if DB_VERSION_MAJOR > 1
41192 int major, minor, patch;
41194 version = db_version( &major, &minor, &patch );
41196 if( major != DB_VERSION_MAJOR ||
41197 minor < DB_VERSION_MINOR )
41199 printf("Berkeley DB version mismatch\n"
41200 "\theader: %s\n\tlibrary: %s\n",
41201 DB_VERSION_STRING, version);
41207 #if DB_VERSION_MAJOR > 2
41208 db_env_create( NULL, 0 );
41209 #elif DB_VERSION_MAJOR > 1
41210 db_appexit( NULL );
41212 (void) dbopen( NULL, 0, 0, 0, NULL);
41219 rm -f conftest.$ac_objext conftest$ac_exeext
41220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41221 (eval $ac_link) 2>conftest.er1
41223 grep -v '^ *+' conftest.er1 >conftest.err
41225 cat conftest.err >&5
41226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41227 (exit $ac_status); } &&
41228 { ac_try='test -z "$ac_c_werror_flag"
41229 || test ! -s conftest.err'
41230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41231 (eval $ac_try) 2>&5
41233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234 (exit $ac_status); }; } &&
41235 { ac_try='test -s conftest$ac_exeext'
41236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41237 (eval $ac_try) 2>&5
41239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41240 (exit $ac_status); }; }; then
41241 ol_cv_db_db_4_3=yes
41243 echo "$as_me: failed program was:" >&5
41244 sed 's/^/| /' conftest.$ac_ext >&5
41248 rm -f conftest.err conftest.$ac_objext \
41249 conftest$ac_exeext conftest.$ac_ext
41254 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41255 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41257 if test $ol_cv_db_db_4_3 = yes ; then
41258 ol_cv_lib_db=-ldb-4-3
41262 if test $ol_cv_lib_db = no ; then
41263 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41264 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41265 if test "${ol_cv_db_db42+set}" = set; then
41266 echo $ECHO_N "(cached) $ECHO_C" >&6
41271 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41273 cat >conftest.$ac_ext <<_ACEOF
41276 cat confdefs.h >>conftest.$ac_ext
41277 cat >>conftest.$ac_ext <<_ACEOF
41278 /* end confdefs.h. */
41280 #ifdef HAVE_DB_185_H
41281 # include <db_185.h>
41286 #ifndef DB_VERSION_MAJOR
41287 # define DB_VERSION_MAJOR 1
41291 #define NULL ((void*)0)
41298 #if DB_VERSION_MAJOR > 1
41301 int major, minor, patch;
41303 version = db_version( &major, &minor, &patch );
41305 if( major != DB_VERSION_MAJOR ||
41306 minor < DB_VERSION_MINOR )
41308 printf("Berkeley DB version mismatch\n"
41309 "\theader: %s\n\tlibrary: %s\n",
41310 DB_VERSION_STRING, version);
41316 #if DB_VERSION_MAJOR > 2
41317 db_env_create( NULL, 0 );
41318 #elif DB_VERSION_MAJOR > 1
41319 db_appexit( NULL );
41321 (void) dbopen( NULL, 0, 0, 0, NULL);
41328 rm -f conftest.$ac_objext conftest$ac_exeext
41329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41330 (eval $ac_link) 2>conftest.er1
41332 grep -v '^ *+' conftest.er1 >conftest.err
41334 cat conftest.err >&5
41335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336 (exit $ac_status); } &&
41337 { ac_try='test -z "$ac_c_werror_flag"
41338 || test ! -s conftest.err'
41339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41340 (eval $ac_try) 2>&5
41342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41343 (exit $ac_status); }; } &&
41344 { ac_try='test -s conftest$ac_exeext'
41345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41346 (eval $ac_try) 2>&5
41348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41349 (exit $ac_status); }; }; then
41352 echo "$as_me: failed program was:" >&5
41353 sed 's/^/| /' conftest.$ac_ext >&5
41357 rm -f conftest.err conftest.$ac_objext \
41358 conftest$ac_exeext conftest.$ac_ext
41363 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41364 echo "${ECHO_T}$ol_cv_db_db42" >&6
41366 if test $ol_cv_db_db42 = yes ; then
41367 ol_cv_lib_db=-ldb42
41371 if test $ol_cv_lib_db = no ; then
41372 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41373 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41374 if test "${ol_cv_db_db_42+set}" = set; then
41375 echo $ECHO_N "(cached) $ECHO_C" >&6
41380 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41382 cat >conftest.$ac_ext <<_ACEOF
41385 cat confdefs.h >>conftest.$ac_ext
41386 cat >>conftest.$ac_ext <<_ACEOF
41387 /* end confdefs.h. */
41389 #ifdef HAVE_DB_185_H
41390 # include <db_185.h>
41395 #ifndef DB_VERSION_MAJOR
41396 # define DB_VERSION_MAJOR 1
41400 #define NULL ((void*)0)
41407 #if DB_VERSION_MAJOR > 1
41410 int major, minor, patch;
41412 version = db_version( &major, &minor, &patch );
41414 if( major != DB_VERSION_MAJOR ||
41415 minor < DB_VERSION_MINOR )
41417 printf("Berkeley DB version mismatch\n"
41418 "\theader: %s\n\tlibrary: %s\n",
41419 DB_VERSION_STRING, version);
41425 #if DB_VERSION_MAJOR > 2
41426 db_env_create( NULL, 0 );
41427 #elif DB_VERSION_MAJOR > 1
41428 db_appexit( NULL );
41430 (void) dbopen( NULL, 0, 0, 0, NULL);
41437 rm -f conftest.$ac_objext conftest$ac_exeext
41438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41439 (eval $ac_link) 2>conftest.er1
41441 grep -v '^ *+' conftest.er1 >conftest.err
41443 cat conftest.err >&5
41444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41445 (exit $ac_status); } &&
41446 { ac_try='test -z "$ac_c_werror_flag"
41447 || test ! -s conftest.err'
41448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41449 (eval $ac_try) 2>&5
41451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41452 (exit $ac_status); }; } &&
41453 { ac_try='test -s conftest$ac_exeext'
41454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41455 (eval $ac_try) 2>&5
41457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41458 (exit $ac_status); }; }; then
41461 echo "$as_me: failed program was:" >&5
41462 sed 's/^/| /' conftest.$ac_ext >&5
41466 rm -f conftest.err conftest.$ac_objext \
41467 conftest$ac_exeext conftest.$ac_ext
41472 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41473 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41475 if test $ol_cv_db_db_42 = yes ; then
41476 ol_cv_lib_db=-ldb-42
41480 if test $ol_cv_lib_db = no ; then
41481 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41482 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41483 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41484 echo $ECHO_N "(cached) $ECHO_C" >&6
41489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41491 cat >conftest.$ac_ext <<_ACEOF
41494 cat confdefs.h >>conftest.$ac_ext
41495 cat >>conftest.$ac_ext <<_ACEOF
41496 /* end confdefs.h. */
41498 #ifdef HAVE_DB_185_H
41499 # include <db_185.h>
41504 #ifndef DB_VERSION_MAJOR
41505 # define DB_VERSION_MAJOR 1
41509 #define NULL ((void*)0)
41516 #if DB_VERSION_MAJOR > 1
41519 int major, minor, patch;
41521 version = db_version( &major, &minor, &patch );
41523 if( major != DB_VERSION_MAJOR ||
41524 minor < DB_VERSION_MINOR )
41526 printf("Berkeley DB version mismatch\n"
41527 "\theader: %s\n\tlibrary: %s\n",
41528 DB_VERSION_STRING, version);
41534 #if DB_VERSION_MAJOR > 2
41535 db_env_create( NULL, 0 );
41536 #elif DB_VERSION_MAJOR > 1
41537 db_appexit( NULL );
41539 (void) dbopen( NULL, 0, 0, 0, NULL);
41546 rm -f conftest.$ac_objext conftest$ac_exeext
41547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41548 (eval $ac_link) 2>conftest.er1
41550 grep -v '^ *+' conftest.er1 >conftest.err
41552 cat conftest.err >&5
41553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41554 (exit $ac_status); } &&
41555 { ac_try='test -z "$ac_c_werror_flag"
41556 || test ! -s conftest.err'
41557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41558 (eval $ac_try) 2>&5
41560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41561 (exit $ac_status); }; } &&
41562 { ac_try='test -s conftest$ac_exeext'
41563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41564 (eval $ac_try) 2>&5
41566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); }; }; then
41568 ol_cv_db_db_4_dot_2=yes
41570 echo "$as_me: failed program was:" >&5
41571 sed 's/^/| /' conftest.$ac_ext >&5
41573 ol_cv_db_db_4_dot_2=no
41575 rm -f conftest.err conftest.$ac_objext \
41576 conftest$ac_exeext conftest.$ac_ext
41581 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41582 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41584 if test $ol_cv_db_db_4_dot_2 = yes ; then
41585 ol_cv_lib_db=-ldb-4.2
41589 if test $ol_cv_lib_db = no ; then
41590 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41591 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41592 if test "${ol_cv_db_db_4_2+set}" = set; then
41593 echo $ECHO_N "(cached) $ECHO_C" >&6
41598 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41600 cat >conftest.$ac_ext <<_ACEOF
41603 cat confdefs.h >>conftest.$ac_ext
41604 cat >>conftest.$ac_ext <<_ACEOF
41605 /* end confdefs.h. */
41607 #ifdef HAVE_DB_185_H
41608 # include <db_185.h>
41613 #ifndef DB_VERSION_MAJOR
41614 # define DB_VERSION_MAJOR 1
41618 #define NULL ((void*)0)
41625 #if DB_VERSION_MAJOR > 1
41628 int major, minor, patch;
41630 version = db_version( &major, &minor, &patch );
41632 if( major != DB_VERSION_MAJOR ||
41633 minor < DB_VERSION_MINOR )
41635 printf("Berkeley DB version mismatch\n"
41636 "\theader: %s\n\tlibrary: %s\n",
41637 DB_VERSION_STRING, version);
41643 #if DB_VERSION_MAJOR > 2
41644 db_env_create( NULL, 0 );
41645 #elif DB_VERSION_MAJOR > 1
41646 db_appexit( NULL );
41648 (void) dbopen( NULL, 0, 0, 0, NULL);
41655 rm -f conftest.$ac_objext conftest$ac_exeext
41656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41657 (eval $ac_link) 2>conftest.er1
41659 grep -v '^ *+' conftest.er1 >conftest.err
41661 cat conftest.err >&5
41662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41663 (exit $ac_status); } &&
41664 { ac_try='test -z "$ac_c_werror_flag"
41665 || test ! -s conftest.err'
41666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41667 (eval $ac_try) 2>&5
41669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41670 (exit $ac_status); }; } &&
41671 { ac_try='test -s conftest$ac_exeext'
41672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41673 (eval $ac_try) 2>&5
41675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41676 (exit $ac_status); }; }; then
41677 ol_cv_db_db_4_2=yes
41679 echo "$as_me: failed program was:" >&5
41680 sed 's/^/| /' conftest.$ac_ext >&5
41684 rm -f conftest.err conftest.$ac_objext \
41685 conftest$ac_exeext conftest.$ac_ext
41690 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41691 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41693 if test $ol_cv_db_db_4_2 = yes ; then
41694 ol_cv_lib_db=-ldb-4-2
41698 if test $ol_cv_lib_db = no ; then
41699 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41700 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41701 if test "${ol_cv_db_db_4+set}" = set; then
41702 echo $ECHO_N "(cached) $ECHO_C" >&6
41707 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41709 cat >conftest.$ac_ext <<_ACEOF
41712 cat confdefs.h >>conftest.$ac_ext
41713 cat >>conftest.$ac_ext <<_ACEOF
41714 /* end confdefs.h. */
41716 #ifdef HAVE_DB_185_H
41717 # include <db_185.h>
41722 #ifndef DB_VERSION_MAJOR
41723 # define DB_VERSION_MAJOR 1
41727 #define NULL ((void*)0)
41734 #if DB_VERSION_MAJOR > 1
41737 int major, minor, patch;
41739 version = db_version( &major, &minor, &patch );
41741 if( major != DB_VERSION_MAJOR ||
41742 minor < DB_VERSION_MINOR )
41744 printf("Berkeley DB version mismatch\n"
41745 "\theader: %s\n\tlibrary: %s\n",
41746 DB_VERSION_STRING, version);
41752 #if DB_VERSION_MAJOR > 2
41753 db_env_create( NULL, 0 );
41754 #elif DB_VERSION_MAJOR > 1
41755 db_appexit( NULL );
41757 (void) dbopen( NULL, 0, 0, 0, NULL);
41764 rm -f conftest.$ac_objext conftest$ac_exeext
41765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41766 (eval $ac_link) 2>conftest.er1
41768 grep -v '^ *+' conftest.er1 >conftest.err
41770 cat conftest.err >&5
41771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41772 (exit $ac_status); } &&
41773 { ac_try='test -z "$ac_c_werror_flag"
41774 || test ! -s conftest.err'
41775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41776 (eval $ac_try) 2>&5
41778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41779 (exit $ac_status); }; } &&
41780 { ac_try='test -s conftest$ac_exeext'
41781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41782 (eval $ac_try) 2>&5
41784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41785 (exit $ac_status); }; }; then
41788 echo "$as_me: failed program was:" >&5
41789 sed 's/^/| /' conftest.$ac_ext >&5
41793 rm -f conftest.err conftest.$ac_objext \
41794 conftest$ac_exeext conftest.$ac_ext
41799 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41800 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41802 if test $ol_cv_db_db_4 = yes ; then
41803 ol_cv_lib_db=-ldb-4
41807 if test $ol_cv_lib_db = no ; then
41808 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41809 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41810 if test "${ol_cv_db_db4+set}" = set; then
41811 echo $ECHO_N "(cached) $ECHO_C" >&6
41816 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41818 cat >conftest.$ac_ext <<_ACEOF
41821 cat confdefs.h >>conftest.$ac_ext
41822 cat >>conftest.$ac_ext <<_ACEOF
41823 /* end confdefs.h. */
41825 #ifdef HAVE_DB_185_H
41826 # include <db_185.h>
41831 #ifndef DB_VERSION_MAJOR
41832 # define DB_VERSION_MAJOR 1
41836 #define NULL ((void*)0)
41843 #if DB_VERSION_MAJOR > 1
41846 int major, minor, patch;
41848 version = db_version( &major, &minor, &patch );
41850 if( major != DB_VERSION_MAJOR ||
41851 minor < DB_VERSION_MINOR )
41853 printf("Berkeley DB version mismatch\n"
41854 "\theader: %s\n\tlibrary: %s\n",
41855 DB_VERSION_STRING, version);
41861 #if DB_VERSION_MAJOR > 2
41862 db_env_create( NULL, 0 );
41863 #elif DB_VERSION_MAJOR > 1
41864 db_appexit( NULL );
41866 (void) dbopen( NULL, 0, 0, 0, NULL);
41873 rm -f conftest.$ac_objext conftest$ac_exeext
41874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41875 (eval $ac_link) 2>conftest.er1
41877 grep -v '^ *+' conftest.er1 >conftest.err
41879 cat conftest.err >&5
41880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41881 (exit $ac_status); } &&
41882 { ac_try='test -z "$ac_c_werror_flag"
41883 || test ! -s conftest.err'
41884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41885 (eval $ac_try) 2>&5
41887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41888 (exit $ac_status); }; } &&
41889 { ac_try='test -s conftest$ac_exeext'
41890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41891 (eval $ac_try) 2>&5
41893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41894 (exit $ac_status); }; }; then
41897 echo "$as_me: failed program was:" >&5
41898 sed 's/^/| /' conftest.$ac_ext >&5
41902 rm -f conftest.err conftest.$ac_objext \
41903 conftest$ac_exeext conftest.$ac_ext
41908 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41909 echo "${ECHO_T}$ol_cv_db_db4" >&6
41911 if test $ol_cv_db_db4 = yes ; then
41916 if test $ol_cv_lib_db = no ; then
41917 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41918 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41919 if test "${ol_cv_db_db+set}" = set; then
41920 echo $ECHO_N "(cached) $ECHO_C" >&6
41925 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41927 cat >conftest.$ac_ext <<_ACEOF
41930 cat confdefs.h >>conftest.$ac_ext
41931 cat >>conftest.$ac_ext <<_ACEOF
41932 /* end confdefs.h. */
41934 #ifdef HAVE_DB_185_H
41935 # include <db_185.h>
41940 #ifndef DB_VERSION_MAJOR
41941 # define DB_VERSION_MAJOR 1
41945 #define NULL ((void*)0)
41952 #if DB_VERSION_MAJOR > 1
41955 int major, minor, patch;
41957 version = db_version( &major, &minor, &patch );
41959 if( major != DB_VERSION_MAJOR ||
41960 minor < DB_VERSION_MINOR )
41962 printf("Berkeley DB version mismatch\n"
41963 "\theader: %s\n\tlibrary: %s\n",
41964 DB_VERSION_STRING, version);
41970 #if DB_VERSION_MAJOR > 2
41971 db_env_create( NULL, 0 );
41972 #elif DB_VERSION_MAJOR > 1
41973 db_appexit( NULL );
41975 (void) dbopen( NULL, 0, 0, 0, NULL);
41982 rm -f conftest.$ac_objext conftest$ac_exeext
41983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41984 (eval $ac_link) 2>conftest.er1
41986 grep -v '^ *+' conftest.er1 >conftest.err
41988 cat conftest.err >&5
41989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41990 (exit $ac_status); } &&
41991 { ac_try='test -z "$ac_c_werror_flag"
41992 || test ! -s conftest.err'
41993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41994 (eval $ac_try) 2>&5
41996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41997 (exit $ac_status); }; } &&
41998 { ac_try='test -s conftest$ac_exeext'
41999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42000 (eval $ac_try) 2>&5
42002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42003 (exit $ac_status); }; }; then
42006 echo "$as_me: failed program was:" >&5
42007 sed 's/^/| /' conftest.$ac_ext >&5
42011 rm -f conftest.err conftest.$ac_objext \
42012 conftest$ac_exeext conftest.$ac_ext
42017 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
42018 echo "${ECHO_T}$ol_cv_db_db" >&6
42020 if test $ol_cv_db_db = yes ; then
42025 if test $ol_cv_lib_db = no ; then
42026 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
42027 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
42028 if test "${ol_cv_db_db41+set}" = set; then
42029 echo $ECHO_N "(cached) $ECHO_C" >&6
42034 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42036 cat >conftest.$ac_ext <<_ACEOF
42039 cat confdefs.h >>conftest.$ac_ext
42040 cat >>conftest.$ac_ext <<_ACEOF
42041 /* end confdefs.h. */
42043 #ifdef HAVE_DB_185_H
42044 # include <db_185.h>
42049 #ifndef DB_VERSION_MAJOR
42050 # define DB_VERSION_MAJOR 1
42054 #define NULL ((void*)0)
42061 #if DB_VERSION_MAJOR > 1
42064 int major, minor, patch;
42066 version = db_version( &major, &minor, &patch );
42068 if( major != DB_VERSION_MAJOR ||
42069 minor < DB_VERSION_MINOR )
42071 printf("Berkeley DB version mismatch\n"
42072 "\theader: %s\n\tlibrary: %s\n",
42073 DB_VERSION_STRING, version);
42079 #if DB_VERSION_MAJOR > 2
42080 db_env_create( NULL, 0 );
42081 #elif DB_VERSION_MAJOR > 1
42082 db_appexit( NULL );
42084 (void) dbopen( NULL, 0, 0, 0, NULL);
42091 rm -f conftest.$ac_objext conftest$ac_exeext
42092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42093 (eval $ac_link) 2>conftest.er1
42095 grep -v '^ *+' conftest.er1 >conftest.err
42097 cat conftest.err >&5
42098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42099 (exit $ac_status); } &&
42100 { ac_try='test -z "$ac_c_werror_flag"
42101 || test ! -s conftest.err'
42102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42103 (eval $ac_try) 2>&5
42105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42106 (exit $ac_status); }; } &&
42107 { ac_try='test -s conftest$ac_exeext'
42108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42109 (eval $ac_try) 2>&5
42111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42112 (exit $ac_status); }; }; then
42115 echo "$as_me: failed program was:" >&5
42116 sed 's/^/| /' conftest.$ac_ext >&5
42120 rm -f conftest.err conftest.$ac_objext \
42121 conftest$ac_exeext conftest.$ac_ext
42126 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42127 echo "${ECHO_T}$ol_cv_db_db41" >&6
42129 if test $ol_cv_db_db41 = yes ; then
42130 ol_cv_lib_db=-ldb41
42134 if test $ol_cv_lib_db = no ; then
42135 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42136 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42137 if test "${ol_cv_db_db_41+set}" = set; then
42138 echo $ECHO_N "(cached) $ECHO_C" >&6
42143 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42145 cat >conftest.$ac_ext <<_ACEOF
42148 cat confdefs.h >>conftest.$ac_ext
42149 cat >>conftest.$ac_ext <<_ACEOF
42150 /* end confdefs.h. */
42152 #ifdef HAVE_DB_185_H
42153 # include <db_185.h>
42158 #ifndef DB_VERSION_MAJOR
42159 # define DB_VERSION_MAJOR 1
42163 #define NULL ((void*)0)
42170 #if DB_VERSION_MAJOR > 1
42173 int major, minor, patch;
42175 version = db_version( &major, &minor, &patch );
42177 if( major != DB_VERSION_MAJOR ||
42178 minor < DB_VERSION_MINOR )
42180 printf("Berkeley DB version mismatch\n"
42181 "\theader: %s\n\tlibrary: %s\n",
42182 DB_VERSION_STRING, version);
42188 #if DB_VERSION_MAJOR > 2
42189 db_env_create( NULL, 0 );
42190 #elif DB_VERSION_MAJOR > 1
42191 db_appexit( NULL );
42193 (void) dbopen( NULL, 0, 0, 0, NULL);
42200 rm -f conftest.$ac_objext conftest$ac_exeext
42201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42202 (eval $ac_link) 2>conftest.er1
42204 grep -v '^ *+' conftest.er1 >conftest.err
42206 cat conftest.err >&5
42207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42208 (exit $ac_status); } &&
42209 { ac_try='test -z "$ac_c_werror_flag"
42210 || test ! -s conftest.err'
42211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42212 (eval $ac_try) 2>&5
42214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42215 (exit $ac_status); }; } &&
42216 { ac_try='test -s conftest$ac_exeext'
42217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42218 (eval $ac_try) 2>&5
42220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42221 (exit $ac_status); }; }; then
42224 echo "$as_me: failed program was:" >&5
42225 sed 's/^/| /' conftest.$ac_ext >&5
42229 rm -f conftest.err conftest.$ac_objext \
42230 conftest$ac_exeext conftest.$ac_ext
42235 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42236 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42238 if test $ol_cv_db_db_41 = yes ; then
42239 ol_cv_lib_db=-ldb-41
42243 if test $ol_cv_lib_db = no ; then
42244 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42245 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42246 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42247 echo $ECHO_N "(cached) $ECHO_C" >&6
42252 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42254 cat >conftest.$ac_ext <<_ACEOF
42257 cat confdefs.h >>conftest.$ac_ext
42258 cat >>conftest.$ac_ext <<_ACEOF
42259 /* end confdefs.h. */
42261 #ifdef HAVE_DB_185_H
42262 # include <db_185.h>
42267 #ifndef DB_VERSION_MAJOR
42268 # define DB_VERSION_MAJOR 1
42272 #define NULL ((void*)0)
42279 #if DB_VERSION_MAJOR > 1
42282 int major, minor, patch;
42284 version = db_version( &major, &minor, &patch );
42286 if( major != DB_VERSION_MAJOR ||
42287 minor < DB_VERSION_MINOR )
42289 printf("Berkeley DB version mismatch\n"
42290 "\theader: %s\n\tlibrary: %s\n",
42291 DB_VERSION_STRING, version);
42297 #if DB_VERSION_MAJOR > 2
42298 db_env_create( NULL, 0 );
42299 #elif DB_VERSION_MAJOR > 1
42300 db_appexit( NULL );
42302 (void) dbopen( NULL, 0, 0, 0, NULL);
42309 rm -f conftest.$ac_objext conftest$ac_exeext
42310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42311 (eval $ac_link) 2>conftest.er1
42313 grep -v '^ *+' conftest.er1 >conftest.err
42315 cat conftest.err >&5
42316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317 (exit $ac_status); } &&
42318 { ac_try='test -z "$ac_c_werror_flag"
42319 || test ! -s conftest.err'
42320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42321 (eval $ac_try) 2>&5
42323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42324 (exit $ac_status); }; } &&
42325 { ac_try='test -s conftest$ac_exeext'
42326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42327 (eval $ac_try) 2>&5
42329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42330 (exit $ac_status); }; }; then
42331 ol_cv_db_db_4_dot_1=yes
42333 echo "$as_me: failed program was:" >&5
42334 sed 's/^/| /' conftest.$ac_ext >&5
42336 ol_cv_db_db_4_dot_1=no
42338 rm -f conftest.err conftest.$ac_objext \
42339 conftest$ac_exeext conftest.$ac_ext
42344 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42345 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42347 if test $ol_cv_db_db_4_dot_1 = yes ; then
42348 ol_cv_lib_db=-ldb-4.1
42352 if test $ol_cv_lib_db = no ; then
42353 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42354 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42355 if test "${ol_cv_db_db_4_1+set}" = set; then
42356 echo $ECHO_N "(cached) $ECHO_C" >&6
42361 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42363 cat >conftest.$ac_ext <<_ACEOF
42366 cat confdefs.h >>conftest.$ac_ext
42367 cat >>conftest.$ac_ext <<_ACEOF
42368 /* end confdefs.h. */
42370 #ifdef HAVE_DB_185_H
42371 # include <db_185.h>
42376 #ifndef DB_VERSION_MAJOR
42377 # define DB_VERSION_MAJOR 1
42381 #define NULL ((void*)0)
42388 #if DB_VERSION_MAJOR > 1
42391 int major, minor, patch;
42393 version = db_version( &major, &minor, &patch );
42395 if( major != DB_VERSION_MAJOR ||
42396 minor < DB_VERSION_MINOR )
42398 printf("Berkeley DB version mismatch\n"
42399 "\theader: %s\n\tlibrary: %s\n",
42400 DB_VERSION_STRING, version);
42406 #if DB_VERSION_MAJOR > 2
42407 db_env_create( NULL, 0 );
42408 #elif DB_VERSION_MAJOR > 1
42409 db_appexit( NULL );
42411 (void) dbopen( NULL, 0, 0, 0, NULL);
42418 rm -f conftest.$ac_objext conftest$ac_exeext
42419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42420 (eval $ac_link) 2>conftest.er1
42422 grep -v '^ *+' conftest.er1 >conftest.err
42424 cat conftest.err >&5
42425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426 (exit $ac_status); } &&
42427 { ac_try='test -z "$ac_c_werror_flag"
42428 || test ! -s conftest.err'
42429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42430 (eval $ac_try) 2>&5
42432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42433 (exit $ac_status); }; } &&
42434 { ac_try='test -s conftest$ac_exeext'
42435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42436 (eval $ac_try) 2>&5
42438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42439 (exit $ac_status); }; }; then
42440 ol_cv_db_db_4_1=yes
42442 echo "$as_me: failed program was:" >&5
42443 sed 's/^/| /' conftest.$ac_ext >&5
42447 rm -f conftest.err conftest.$ac_objext \
42448 conftest$ac_exeext conftest.$ac_ext
42453 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42454 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42456 if test $ol_cv_db_db_4_1 = yes ; then
42457 ol_cv_lib_db=-ldb-4-1
42461 if test $ol_cv_lib_db = no ; then
42462 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42463 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42464 if test "${ol_cv_db_db3+set}" = set; then
42465 echo $ECHO_N "(cached) $ECHO_C" >&6
42470 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42472 cat >conftest.$ac_ext <<_ACEOF
42475 cat confdefs.h >>conftest.$ac_ext
42476 cat >>conftest.$ac_ext <<_ACEOF
42477 /* end confdefs.h. */
42479 #ifdef HAVE_DB_185_H
42480 # include <db_185.h>
42485 #ifndef DB_VERSION_MAJOR
42486 # define DB_VERSION_MAJOR 1
42490 #define NULL ((void*)0)
42497 #if DB_VERSION_MAJOR > 1
42500 int major, minor, patch;
42502 version = db_version( &major, &minor, &patch );
42504 if( major != DB_VERSION_MAJOR ||
42505 minor < DB_VERSION_MINOR )
42507 printf("Berkeley DB version mismatch\n"
42508 "\theader: %s\n\tlibrary: %s\n",
42509 DB_VERSION_STRING, version);
42515 #if DB_VERSION_MAJOR > 2
42516 db_env_create( NULL, 0 );
42517 #elif DB_VERSION_MAJOR > 1
42518 db_appexit( NULL );
42520 (void) dbopen( NULL, 0, 0, 0, NULL);
42527 rm -f conftest.$ac_objext conftest$ac_exeext
42528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42529 (eval $ac_link) 2>conftest.er1
42531 grep -v '^ *+' conftest.er1 >conftest.err
42533 cat conftest.err >&5
42534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42535 (exit $ac_status); } &&
42536 { ac_try='test -z "$ac_c_werror_flag"
42537 || test ! -s conftest.err'
42538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42539 (eval $ac_try) 2>&5
42541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42542 (exit $ac_status); }; } &&
42543 { ac_try='test -s conftest$ac_exeext'
42544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42545 (eval $ac_try) 2>&5
42547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42548 (exit $ac_status); }; }; then
42551 echo "$as_me: failed program was:" >&5
42552 sed 's/^/| /' conftest.$ac_ext >&5
42556 rm -f conftest.err conftest.$ac_objext \
42557 conftest$ac_exeext conftest.$ac_ext
42562 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42563 echo "${ECHO_T}$ol_cv_db_db3" >&6
42565 if test $ol_cv_db_db3 = yes ; then
42570 if test $ol_cv_lib_db = no ; then
42571 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42572 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42573 if test "${ol_cv_db_db_3+set}" = set; then
42574 echo $ECHO_N "(cached) $ECHO_C" >&6
42579 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42581 cat >conftest.$ac_ext <<_ACEOF
42584 cat confdefs.h >>conftest.$ac_ext
42585 cat >>conftest.$ac_ext <<_ACEOF
42586 /* end confdefs.h. */
42588 #ifdef HAVE_DB_185_H
42589 # include <db_185.h>
42594 #ifndef DB_VERSION_MAJOR
42595 # define DB_VERSION_MAJOR 1
42599 #define NULL ((void*)0)
42606 #if DB_VERSION_MAJOR > 1
42609 int major, minor, patch;
42611 version = db_version( &major, &minor, &patch );
42613 if( major != DB_VERSION_MAJOR ||
42614 minor < DB_VERSION_MINOR )
42616 printf("Berkeley DB version mismatch\n"
42617 "\theader: %s\n\tlibrary: %s\n",
42618 DB_VERSION_STRING, version);
42624 #if DB_VERSION_MAJOR > 2
42625 db_env_create( NULL, 0 );
42626 #elif DB_VERSION_MAJOR > 1
42627 db_appexit( NULL );
42629 (void) dbopen( NULL, 0, 0, 0, NULL);
42636 rm -f conftest.$ac_objext conftest$ac_exeext
42637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42638 (eval $ac_link) 2>conftest.er1
42640 grep -v '^ *+' conftest.er1 >conftest.err
42642 cat conftest.err >&5
42643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644 (exit $ac_status); } &&
42645 { ac_try='test -z "$ac_c_werror_flag"
42646 || test ! -s conftest.err'
42647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42648 (eval $ac_try) 2>&5
42650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651 (exit $ac_status); }; } &&
42652 { ac_try='test -s conftest$ac_exeext'
42653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42654 (eval $ac_try) 2>&5
42656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657 (exit $ac_status); }; }; then
42660 echo "$as_me: failed program was:" >&5
42661 sed 's/^/| /' conftest.$ac_ext >&5
42665 rm -f conftest.err conftest.$ac_objext \
42666 conftest$ac_exeext conftest.$ac_ext
42671 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42672 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42674 if test $ol_cv_db_db_3 = yes ; then
42675 ol_cv_lib_db=-ldb-3
42679 if test $ol_cv_lib_db = no ; then
42680 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42681 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42682 if test "${ol_cv_db_db2+set}" = set; then
42683 echo $ECHO_N "(cached) $ECHO_C" >&6
42688 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42690 cat >conftest.$ac_ext <<_ACEOF
42693 cat confdefs.h >>conftest.$ac_ext
42694 cat >>conftest.$ac_ext <<_ACEOF
42695 /* end confdefs.h. */
42697 #ifdef HAVE_DB_185_H
42698 # include <db_185.h>
42703 #ifndef DB_VERSION_MAJOR
42704 # define DB_VERSION_MAJOR 1
42708 #define NULL ((void*)0)
42715 #if DB_VERSION_MAJOR > 1
42718 int major, minor, patch;
42720 version = db_version( &major, &minor, &patch );
42722 if( major != DB_VERSION_MAJOR ||
42723 minor < DB_VERSION_MINOR )
42725 printf("Berkeley DB version mismatch\n"
42726 "\theader: %s\n\tlibrary: %s\n",
42727 DB_VERSION_STRING, version);
42733 #if DB_VERSION_MAJOR > 2
42734 db_env_create( NULL, 0 );
42735 #elif DB_VERSION_MAJOR > 1
42736 db_appexit( NULL );
42738 (void) dbopen( NULL, 0, 0, 0, NULL);
42745 rm -f conftest.$ac_objext conftest$ac_exeext
42746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42747 (eval $ac_link) 2>conftest.er1
42749 grep -v '^ *+' conftest.er1 >conftest.err
42751 cat conftest.err >&5
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); } &&
42754 { ac_try='test -z "$ac_c_werror_flag"
42755 || test ! -s conftest.err'
42756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42757 (eval $ac_try) 2>&5
42759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760 (exit $ac_status); }; } &&
42761 { ac_try='test -s conftest$ac_exeext'
42762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42763 (eval $ac_try) 2>&5
42765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42766 (exit $ac_status); }; }; then
42769 echo "$as_me: failed program was:" >&5
42770 sed 's/^/| /' conftest.$ac_ext >&5
42774 rm -f conftest.err conftest.$ac_objext \
42775 conftest$ac_exeext conftest.$ac_ext
42780 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42781 echo "${ECHO_T}$ol_cv_db_db2" >&6
42783 if test $ol_cv_db_db2 = yes ; then
42788 if test $ol_cv_lib_db = no ; then
42789 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42790 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42791 if test "${ol_cv_db_db_2+set}" = set; then
42792 echo $ECHO_N "(cached) $ECHO_C" >&6
42797 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42799 cat >conftest.$ac_ext <<_ACEOF
42802 cat confdefs.h >>conftest.$ac_ext
42803 cat >>conftest.$ac_ext <<_ACEOF
42804 /* end confdefs.h. */
42806 #ifdef HAVE_DB_185_H
42807 # include <db_185.h>
42812 #ifndef DB_VERSION_MAJOR
42813 # define DB_VERSION_MAJOR 1
42817 #define NULL ((void*)0)
42824 #if DB_VERSION_MAJOR > 1
42827 int major, minor, patch;
42829 version = db_version( &major, &minor, &patch );
42831 if( major != DB_VERSION_MAJOR ||
42832 minor < DB_VERSION_MINOR )
42834 printf("Berkeley DB version mismatch\n"
42835 "\theader: %s\n\tlibrary: %s\n",
42836 DB_VERSION_STRING, version);
42842 #if DB_VERSION_MAJOR > 2
42843 db_env_create( NULL, 0 );
42844 #elif DB_VERSION_MAJOR > 1
42845 db_appexit( NULL );
42847 (void) dbopen( NULL, 0, 0, 0, NULL);
42854 rm -f conftest.$ac_objext conftest$ac_exeext
42855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42856 (eval $ac_link) 2>conftest.er1
42858 grep -v '^ *+' conftest.er1 >conftest.err
42860 cat conftest.err >&5
42861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42862 (exit $ac_status); } &&
42863 { ac_try='test -z "$ac_c_werror_flag"
42864 || test ! -s conftest.err'
42865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42866 (eval $ac_try) 2>&5
42868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869 (exit $ac_status); }; } &&
42870 { ac_try='test -s conftest$ac_exeext'
42871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42872 (eval $ac_try) 2>&5
42874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42875 (exit $ac_status); }; }; then
42878 echo "$as_me: failed program was:" >&5
42879 sed 's/^/| /' conftest.$ac_ext >&5
42883 rm -f conftest.err conftest.$ac_objext \
42884 conftest$ac_exeext conftest.$ac_ext
42889 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42890 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42892 if test $ol_cv_db_db_2 = yes ; then
42893 ol_cv_lib_db=-ldb-2
42897 if test $ol_cv_lib_db = no ; then
42898 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42899 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42900 if test "${ol_cv_db_db1+set}" = set; then
42901 echo $ECHO_N "(cached) $ECHO_C" >&6
42906 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42908 cat >conftest.$ac_ext <<_ACEOF
42911 cat confdefs.h >>conftest.$ac_ext
42912 cat >>conftest.$ac_ext <<_ACEOF
42913 /* end confdefs.h. */
42915 #ifdef HAVE_DB_185_H
42916 # include <db_185.h>
42921 #ifndef DB_VERSION_MAJOR
42922 # define DB_VERSION_MAJOR 1
42926 #define NULL ((void*)0)
42933 #if DB_VERSION_MAJOR > 1
42936 int major, minor, patch;
42938 version = db_version( &major, &minor, &patch );
42940 if( major != DB_VERSION_MAJOR ||
42941 minor < DB_VERSION_MINOR )
42943 printf("Berkeley DB version mismatch\n"
42944 "\theader: %s\n\tlibrary: %s\n",
42945 DB_VERSION_STRING, version);
42951 #if DB_VERSION_MAJOR > 2
42952 db_env_create( NULL, 0 );
42953 #elif DB_VERSION_MAJOR > 1
42954 db_appexit( NULL );
42956 (void) dbopen( NULL, 0, 0, 0, NULL);
42963 rm -f conftest.$ac_objext conftest$ac_exeext
42964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42965 (eval $ac_link) 2>conftest.er1
42967 grep -v '^ *+' conftest.er1 >conftest.err
42969 cat conftest.err >&5
42970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42971 (exit $ac_status); } &&
42972 { ac_try='test -z "$ac_c_werror_flag"
42973 || test ! -s conftest.err'
42974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42975 (eval $ac_try) 2>&5
42977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42978 (exit $ac_status); }; } &&
42979 { ac_try='test -s conftest$ac_exeext'
42980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42981 (eval $ac_try) 2>&5
42983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42984 (exit $ac_status); }; }; then
42987 echo "$as_me: failed program was:" >&5
42988 sed 's/^/| /' conftest.$ac_ext >&5
42992 rm -f conftest.err conftest.$ac_objext \
42993 conftest$ac_exeext conftest.$ac_ext
42998 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42999 echo "${ECHO_T}$ol_cv_db_db1" >&6
43001 if test $ol_cv_db_db1 = yes ; then
43006 if test $ol_cv_lib_db = no ; then
43007 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
43008 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
43009 if test "${ol_cv_db_db_1+set}" = set; then
43010 echo $ECHO_N "(cached) $ECHO_C" >&6
43015 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
43017 cat >conftest.$ac_ext <<_ACEOF
43020 cat confdefs.h >>conftest.$ac_ext
43021 cat >>conftest.$ac_ext <<_ACEOF
43022 /* end confdefs.h. */
43024 #ifdef HAVE_DB_185_H
43025 # include <db_185.h>
43030 #ifndef DB_VERSION_MAJOR
43031 # define DB_VERSION_MAJOR 1
43035 #define NULL ((void*)0)
43042 #if DB_VERSION_MAJOR > 1
43045 int major, minor, patch;
43047 version = db_version( &major, &minor, &patch );
43049 if( major != DB_VERSION_MAJOR ||
43050 minor < DB_VERSION_MINOR )
43052 printf("Berkeley DB version mismatch\n"
43053 "\theader: %s\n\tlibrary: %s\n",
43054 DB_VERSION_STRING, version);
43060 #if DB_VERSION_MAJOR > 2
43061 db_env_create( NULL, 0 );
43062 #elif DB_VERSION_MAJOR > 1
43063 db_appexit( NULL );
43065 (void) dbopen( NULL, 0, 0, 0, NULL);
43072 rm -f conftest.$ac_objext conftest$ac_exeext
43073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43074 (eval $ac_link) 2>conftest.er1
43076 grep -v '^ *+' conftest.er1 >conftest.err
43078 cat conftest.err >&5
43079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43080 (exit $ac_status); } &&
43081 { ac_try='test -z "$ac_c_werror_flag"
43082 || test ! -s conftest.err'
43083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43084 (eval $ac_try) 2>&5
43086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43087 (exit $ac_status); }; } &&
43088 { ac_try='test -s 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
43096 echo "$as_me: failed program was:" >&5
43097 sed 's/^/| /' conftest.$ac_ext >&5
43101 rm -f conftest.err conftest.$ac_objext \
43102 conftest$ac_exeext conftest.$ac_ext
43107 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43108 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43110 if test $ol_cv_db_db_1 = yes ; then
43111 ol_cv_lib_db=-ldb-1
43116 if test "$ol_cv_lib_db" != no ; then
43117 ol_cv_berkeley_db=yes
43118 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43119 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43120 if test "${ol_cv_berkeley_db_version+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_version=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
43145 #ifndef DB_VERSION_MAJOR
43146 # define DB_VERSION_MAJOR 1
43149 #define NULL ((void *)0)
43153 #if DB_VERSION_MAJOR > 1
43155 int major, minor, patch;
43157 version = db_version( &major, &minor, &patch );
43159 if( major != DB_VERSION_MAJOR ||
43160 minor != DB_VERSION_MINOR ||
43161 patch != DB_VERSION_PATCH )
43163 printf("Berkeley DB version mismatch\n"
43164 "\theader: %s\n\tlibrary: %s\n",
43165 DB_VERSION_STRING, version);
43173 rm -f conftest$ac_exeext
43174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43175 (eval $ac_link) 2>&5
43177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43180 (eval $ac_try) 2>&5
43182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43183 (exit $ac_status); }; }; then
43184 ol_cv_berkeley_db_version=yes
43186 echo "$as_me: program exited with status $ac_status" >&5
43187 echo "$as_me: failed program was:" >&5
43188 sed 's/^/| /' conftest.$ac_ext >&5
43190 ( exit $ac_status )
43191 ol_cv_berkeley_db_version=no
43193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43199 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43200 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43202 if test $ol_cv_berkeley_db_version = no ; then
43203 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43204 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43205 { (exit 1); exit 1; }; }
43208 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43209 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43210 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43211 echo $ECHO_N "(cached) $ECHO_C" >&6
43215 LIBS="$LTHREAD_LIBS $LIBS"
43216 if test $ol_cv_lib_db != yes ; then
43217 LIBS="$ol_cv_lib_db $LIBS"
43220 if test "$cross_compiling" = yes; then
43221 ol_cv_berkeley_db_thread=cross
43223 cat >conftest.$ac_ext <<_ACEOF
43226 cat confdefs.h >>conftest.$ac_ext
43227 cat >>conftest.$ac_ext <<_ACEOF
43228 /* end confdefs.h. */
43230 #ifdef HAVE_DB_185_H
43236 #define NULL ((void *)0)
43241 u_int32_t flags = DB_CREATE |
43247 #if DB_VERSION_MAJOR > 2
43248 DB_ENV *env = NULL;
43250 rc = db_env_create( &env, 0 );
43252 flags |= DB_INIT_MPOOL;
43253 #ifdef DB_MPOOL_PRIVATE
43254 flags |= DB_MPOOL_PRIVATE;
43258 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43262 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43263 rc = env->open( env, NULL, flags, 0 );
43265 rc = env->open( env, NULL, NULL, flags, 0 );
43269 rc = env->close( env, 0 );
43273 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43279 memset( &env, '\0', sizeof(env) );
43281 rc = db_appinit( NULL, NULL, &env, flags );
43284 db_appexit( &env );
43287 unlink("__db_mpool.share");
43288 unlink("__db_lock.share");
43294 rm -f conftest$ac_exeext
43295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43296 (eval $ac_link) 2>&5
43298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43301 (eval $ac_try) 2>&5
43303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); }; }; then
43305 ol_cv_berkeley_db_thread=yes
43307 echo "$as_me: program exited with status $ac_status" >&5
43308 echo "$as_me: failed program was:" >&5
43309 sed 's/^/| /' conftest.$ac_ext >&5
43311 ( exit $ac_status )
43312 ol_cv_berkeley_db_thread=no
43314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43320 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43321 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43323 if test $ol_cv_berkeley_db_thread != no ; then
43325 cat >>confdefs.h <<\_ACEOF
43326 #define HAVE_BERKELEY_DB_THREAD 1
43336 if test $ol_cv_berkeley_db != no ; then
43338 cat >>confdefs.h <<\_ACEOF
43339 #define HAVE_BERKELEY_DB 1
43343 ol_link_ldbm=berkeley
43344 ol_enable_ldbm_api=berkeley
43346 if test $ol_enable_ldbm_type = hash ; then
43348 cat >>confdefs.h <<\_ACEOF
43349 #define LDBM_USE_DBHASH 1
43354 cat >>confdefs.h <<\_ACEOF
43355 #define LDBM_USE_DBBTREE 1
43360 if test $ol_cv_lib_db != yes ; then
43361 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43366 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43367 if test $ol_link_ldbm != berkeley ; then
43368 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43369 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43370 { (exit 1); exit 1; }; }
43372 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43373 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43374 if test "${ol_cv_bdb_compat+set}" = set; then
43375 echo $ECHO_N "(cached) $ECHO_C" >&6
43378 cat >conftest.$ac_ext <<_ACEOF
43381 cat confdefs.h >>conftest.$ac_ext
43382 cat >>conftest.$ac_ext <<_ACEOF
43383 /* end confdefs.h. */
43387 /* this check could be improved */
43388 #ifndef DB_VERSION_MAJOR
43389 # define DB_VERSION_MAJOR 1
43391 #ifndef DB_VERSION_MINOR
43392 # define DB_VERSION_MINOR 0
43395 /* require 4.2 or later */
43396 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43397 __db_version_compat
43401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43402 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43403 ol_cv_bdb_compat=yes
43405 ol_cv_bdb_compat=no
43410 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43411 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43414 if test $ol_cv_bdb_compat != yes ; then
43415 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43416 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43417 { (exit 1); exit 1; }; }
43422 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
43423 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43424 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43425 ol_enable_ldbm_api=none
43428 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
43429 echo "$as_me:$LINENO: checking for MDBM library" >&5
43430 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43431 if test "${ol_cv_lib_mdbm+set}" = set; then
43432 echo $ECHO_N "(cached) $ECHO_C" >&6
43435 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43436 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43437 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43438 echo $ECHO_N "(cached) $ECHO_C" >&6
43440 cat >conftest.$ac_ext <<_ACEOF
43443 cat confdefs.h >>conftest.$ac_ext
43444 cat >>conftest.$ac_ext <<_ACEOF
43445 /* end confdefs.h. */
43446 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43448 #define mdbm_set_chain innocuous_mdbm_set_chain
43450 /* System header to define __stub macros and hopefully few prototypes,
43451 which can conflict with char mdbm_set_chain (); below.
43452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43453 <limits.h> exists even on freestanding compilers. */
43456 # include <limits.h>
43458 # include <assert.h>
43461 #undef mdbm_set_chain
43463 /* Override any gcc2 internal prototype to avoid an error. */
43468 /* We use char because int might match the return type of a gcc2
43469 builtin and then its argument prototype would still apply. */
43470 char mdbm_set_chain ();
43471 /* The GNU C library defines this for functions which it implements
43472 to always fail with ENOSYS. Some functions are actually named
43473 something starting with __ and the normal name is an alias. */
43474 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43477 char (*f) () = mdbm_set_chain;
43486 return f != mdbm_set_chain;
43491 rm -f conftest.$ac_objext conftest$ac_exeext
43492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43493 (eval $ac_link) 2>conftest.er1
43495 grep -v '^ *+' conftest.er1 >conftest.err
43497 cat conftest.err >&5
43498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43499 (exit $ac_status); } &&
43500 { ac_try='test -z "$ac_c_werror_flag"
43501 || test ! -s conftest.err'
43502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43503 (eval $ac_try) 2>&5
43505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43506 (exit $ac_status); }; } &&
43507 { ac_try='test -s conftest$ac_exeext'
43508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43509 (eval $ac_try) 2>&5
43511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43512 (exit $ac_status); }; }; then
43513 ac_cv_func_mdbm_set_chain=yes
43515 echo "$as_me: failed program was:" >&5
43516 sed 's/^/| /' conftest.$ac_ext >&5
43518 ac_cv_func_mdbm_set_chain=no
43520 rm -f conftest.err conftest.$ac_objext \
43521 conftest$ac_exeext conftest.$ac_ext
43523 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43524 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43525 if test $ac_cv_func_mdbm_set_chain = yes; then
43529 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43530 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43531 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43532 echo $ECHO_N "(cached) $ECHO_C" >&6
43534 ac_check_lib_save_LIBS=$LIBS
43535 LIBS="-lmdbm $LIBS"
43536 cat >conftest.$ac_ext <<_ACEOF
43539 cat confdefs.h >>conftest.$ac_ext
43540 cat >>conftest.$ac_ext <<_ACEOF
43541 /* end confdefs.h. */
43543 /* Override any gcc2 internal prototype to avoid an error. */
43547 /* We use char because int might match the return type of a gcc2
43548 builtin and then its argument prototype would still apply. */
43549 char mdbm_set_chain ();
43558 rm -f conftest.$ac_objext conftest$ac_exeext
43559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43560 (eval $ac_link) 2>conftest.er1
43562 grep -v '^ *+' conftest.er1 >conftest.err
43564 cat conftest.err >&5
43565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43566 (exit $ac_status); } &&
43567 { ac_try='test -z "$ac_c_werror_flag"
43568 || test ! -s conftest.err'
43569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43570 (eval $ac_try) 2>&5
43572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43573 (exit $ac_status); }; } &&
43574 { ac_try='test -s conftest$ac_exeext'
43575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43576 (eval $ac_try) 2>&5
43578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43579 (exit $ac_status); }; }; then
43580 ac_cv_lib_mdbm_mdbm_set_chain=yes
43582 echo "$as_me: failed program was:" >&5
43583 sed 's/^/| /' conftest.$ac_ext >&5
43585 ac_cv_lib_mdbm_mdbm_set_chain=no
43587 rm -f conftest.err conftest.$ac_objext \
43588 conftest$ac_exeext conftest.$ac_ext
43589 LIBS=$ac_check_lib_save_LIBS
43591 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43592 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43593 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43594 ol_cv_lib_mdbm=-lmdbm
43605 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43606 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43610 for ac_header in mdbm.h
43612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43614 echo "$as_me:$LINENO: checking for $ac_header" >&5
43615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43617 echo $ECHO_N "(cached) $ECHO_C" >&6
43619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43622 # Is the header compilable?
43623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43625 cat >conftest.$ac_ext <<_ACEOF
43628 cat confdefs.h >>conftest.$ac_ext
43629 cat >>conftest.$ac_ext <<_ACEOF
43630 /* end confdefs.h. */
43631 $ac_includes_default
43632 #include <$ac_header>
43634 rm -f conftest.$ac_objext
43635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43636 (eval $ac_compile) 2>conftest.er1
43638 grep -v '^ *+' conftest.er1 >conftest.err
43640 cat conftest.err >&5
43641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43642 (exit $ac_status); } &&
43643 { ac_try='test -z "$ac_c_werror_flag"
43644 || test ! -s conftest.err'
43645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43646 (eval $ac_try) 2>&5
43648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43649 (exit $ac_status); }; } &&
43650 { ac_try='test -s conftest.$ac_objext'
43651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43652 (eval $ac_try) 2>&5
43654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43655 (exit $ac_status); }; }; then
43656 ac_header_compiler=yes
43658 echo "$as_me: failed program was:" >&5
43659 sed 's/^/| /' conftest.$ac_ext >&5
43661 ac_header_compiler=no
43663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43665 echo "${ECHO_T}$ac_header_compiler" >&6
43667 # Is the header present?
43668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43670 cat >conftest.$ac_ext <<_ACEOF
43673 cat confdefs.h >>conftest.$ac_ext
43674 cat >>conftest.$ac_ext <<_ACEOF
43675 /* end confdefs.h. */
43676 #include <$ac_header>
43678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43681 grep -v '^ *+' conftest.er1 >conftest.err
43683 cat conftest.err >&5
43684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43685 (exit $ac_status); } >/dev/null; then
43686 if test -s conftest.err; then
43687 ac_cpp_err=$ac_c_preproc_warn_flag
43688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43695 if test -z "$ac_cpp_err"; then
43696 ac_header_preproc=yes
43698 echo "$as_me: failed program was:" >&5
43699 sed 's/^/| /' conftest.$ac_ext >&5
43701 ac_header_preproc=no
43703 rm -f conftest.err conftest.$ac_ext
43704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43705 echo "${ECHO_T}$ac_header_preproc" >&6
43707 # So? What about this header?
43708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43714 ac_header_preproc=yes
43717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43731 ## ------------------------------------------ ##
43732 ## Report this to the AC_PACKAGE_NAME lists. ##
43733 ## ------------------------------------------ ##
43736 sed "s/^/$as_me: WARNING: /" >&2
43739 echo "$as_me:$LINENO: checking for $ac_header" >&5
43740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43742 echo $ECHO_N "(cached) $ECHO_C" >&6
43744 eval "$as_ac_Header=\$ac_header_preproc"
43746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43751 cat >>confdefs.h <<_ACEOF
43752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43759 echo "$as_me:$LINENO: checking for db" >&5
43760 echo $ECHO_N "checking for db... $ECHO_C" >&6
43761 if test "${ol_cv_mdbm+set}" = set; then
43762 echo $ECHO_N "(cached) $ECHO_C" >&6
43765 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43772 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43773 echo "${ECHO_T}$ol_cv_mdbm" >&6
43774 if test $ol_cv_mdbm = yes ; then
43776 cat >>confdefs.h <<\_ACEOF
43777 #define HAVE_MDBM 1
43783 if test $ol_cv_mdbm = yes ; then
43785 ol_enable_ldbm_api=mdbm
43786 if test $ol_cv_lib_mdbm != yes ; then
43787 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43792 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
43793 echo "$as_me:$LINENO: checking for GDBM library" >&5
43794 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43795 if test "${ol_cv_lib_gdbm+set}" = set; then
43796 echo $ECHO_N "(cached) $ECHO_C" >&6
43799 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43800 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43801 if test "${ac_cv_func_gdbm_open+set}" = set; then
43802 echo $ECHO_N "(cached) $ECHO_C" >&6
43804 cat >conftest.$ac_ext <<_ACEOF
43807 cat confdefs.h >>conftest.$ac_ext
43808 cat >>conftest.$ac_ext <<_ACEOF
43809 /* end confdefs.h. */
43810 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43812 #define gdbm_open innocuous_gdbm_open
43814 /* System header to define __stub macros and hopefully few prototypes,
43815 which can conflict with char gdbm_open (); below.
43816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43817 <limits.h> exists even on freestanding compilers. */
43820 # include <limits.h>
43822 # include <assert.h>
43827 /* Override any gcc2 internal prototype to avoid an error. */
43832 /* We use char because int might match the return type of a gcc2
43833 builtin and then its argument prototype would still apply. */
43835 /* The GNU C library defines this for functions which it implements
43836 to always fail with ENOSYS. Some functions are actually named
43837 something starting with __ and the normal name is an alias. */
43838 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43841 char (*f) () = gdbm_open;
43850 return f != gdbm_open;
43855 rm -f conftest.$ac_objext conftest$ac_exeext
43856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43857 (eval $ac_link) 2>conftest.er1
43859 grep -v '^ *+' conftest.er1 >conftest.err
43861 cat conftest.err >&5
43862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43863 (exit $ac_status); } &&
43864 { ac_try='test -z "$ac_c_werror_flag"
43865 || test ! -s conftest.err'
43866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43867 (eval $ac_try) 2>&5
43869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43870 (exit $ac_status); }; } &&
43871 { ac_try='test -s conftest$ac_exeext'
43872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43873 (eval $ac_try) 2>&5
43875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43876 (exit $ac_status); }; }; then
43877 ac_cv_func_gdbm_open=yes
43879 echo "$as_me: failed program was:" >&5
43880 sed 's/^/| /' conftest.$ac_ext >&5
43882 ac_cv_func_gdbm_open=no
43884 rm -f conftest.err conftest.$ac_objext \
43885 conftest$ac_exeext conftest.$ac_ext
43887 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43888 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43889 if test $ac_cv_func_gdbm_open = yes; then
43893 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43894 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43895 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43896 echo $ECHO_N "(cached) $ECHO_C" >&6
43898 ac_check_lib_save_LIBS=$LIBS
43899 LIBS="-lgdbm $LIBS"
43900 cat >conftest.$ac_ext <<_ACEOF
43903 cat confdefs.h >>conftest.$ac_ext
43904 cat >>conftest.$ac_ext <<_ACEOF
43905 /* end confdefs.h. */
43907 /* Override any gcc2 internal prototype to avoid an error. */
43911 /* We use char because int might match the return type of a gcc2
43912 builtin and then its argument prototype would still apply. */
43922 rm -f conftest.$ac_objext conftest$ac_exeext
43923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43924 (eval $ac_link) 2>conftest.er1
43926 grep -v '^ *+' conftest.er1 >conftest.err
43928 cat conftest.err >&5
43929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43930 (exit $ac_status); } &&
43931 { ac_try='test -z "$ac_c_werror_flag"
43932 || test ! -s conftest.err'
43933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43934 (eval $ac_try) 2>&5
43936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43937 (exit $ac_status); }; } &&
43938 { ac_try='test -s conftest$ac_exeext'
43939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43940 (eval $ac_try) 2>&5
43942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43943 (exit $ac_status); }; }; then
43944 ac_cv_lib_gdbm_gdbm_open=yes
43946 echo "$as_me: failed program was:" >&5
43947 sed 's/^/| /' conftest.$ac_ext >&5
43949 ac_cv_lib_gdbm_gdbm_open=no
43951 rm -f conftest.err conftest.$ac_objext \
43952 conftest$ac_exeext conftest.$ac_ext
43953 LIBS=$ac_check_lib_save_LIBS
43955 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43956 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43957 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43958 ol_cv_lib_gdbm=-lgdbm
43969 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43970 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43974 for ac_header in gdbm.h
43976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43978 echo "$as_me:$LINENO: checking for $ac_header" >&5
43979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43981 echo $ECHO_N "(cached) $ECHO_C" >&6
43983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43986 # Is the header compilable?
43987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43989 cat >conftest.$ac_ext <<_ACEOF
43992 cat confdefs.h >>conftest.$ac_ext
43993 cat >>conftest.$ac_ext <<_ACEOF
43994 /* end confdefs.h. */
43995 $ac_includes_default
43996 #include <$ac_header>
43998 rm -f conftest.$ac_objext
43999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44000 (eval $ac_compile) 2>conftest.er1
44002 grep -v '^ *+' conftest.er1 >conftest.err
44004 cat conftest.err >&5
44005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44006 (exit $ac_status); } &&
44007 { ac_try='test -z "$ac_c_werror_flag"
44008 || test ! -s conftest.err'
44009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44010 (eval $ac_try) 2>&5
44012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44013 (exit $ac_status); }; } &&
44014 { ac_try='test -s conftest.$ac_objext'
44015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44016 (eval $ac_try) 2>&5
44018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44019 (exit $ac_status); }; }; then
44020 ac_header_compiler=yes
44022 echo "$as_me: failed program was:" >&5
44023 sed 's/^/| /' conftest.$ac_ext >&5
44025 ac_header_compiler=no
44027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44029 echo "${ECHO_T}$ac_header_compiler" >&6
44031 # Is the header present?
44032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44034 cat >conftest.$ac_ext <<_ACEOF
44037 cat confdefs.h >>conftest.$ac_ext
44038 cat >>conftest.$ac_ext <<_ACEOF
44039 /* end confdefs.h. */
44040 #include <$ac_header>
44042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44045 grep -v '^ *+' conftest.er1 >conftest.err
44047 cat conftest.err >&5
44048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44049 (exit $ac_status); } >/dev/null; then
44050 if test -s conftest.err; then
44051 ac_cpp_err=$ac_c_preproc_warn_flag
44052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44059 if test -z "$ac_cpp_err"; then
44060 ac_header_preproc=yes
44062 echo "$as_me: failed program was:" >&5
44063 sed 's/^/| /' conftest.$ac_ext >&5
44065 ac_header_preproc=no
44067 rm -f conftest.err conftest.$ac_ext
44068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44069 echo "${ECHO_T}$ac_header_preproc" >&6
44071 # So? What about this header?
44072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44078 ac_header_preproc=yes
44081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44095 ## ------------------------------------------ ##
44096 ## Report this to the AC_PACKAGE_NAME lists. ##
44097 ## ------------------------------------------ ##
44100 sed "s/^/$as_me: WARNING: /" >&2
44103 echo "$as_me:$LINENO: checking for $ac_header" >&5
44104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44106 echo $ECHO_N "(cached) $ECHO_C" >&6
44108 eval "$as_ac_Header=\$ac_header_preproc"
44110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44115 cat >>confdefs.h <<_ACEOF
44116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44123 echo "$as_me:$LINENO: checking for db" >&5
44124 echo $ECHO_N "checking for db... $ECHO_C" >&6
44125 if test "${ol_cv_gdbm+set}" = set; then
44126 echo $ECHO_N "(cached) $ECHO_C" >&6
44129 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44136 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44137 echo "${ECHO_T}$ol_cv_gdbm" >&6
44138 if test $ol_cv_gdbm = yes ; then
44140 cat >>confdefs.h <<\_ACEOF
44141 #define HAVE_GDBM 1
44147 if test $ol_cv_gdbm = yes ; then
44149 ol_enable_ldbm_api=gdbm
44151 if test $ol_cv_lib_gdbm != yes ; then
44152 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44157 if test $ol_enable_ldbm_api = ndbm ; then
44158 echo "$as_me:$LINENO: checking for NDBM library" >&5
44159 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44160 if test "${ol_cv_lib_ndbm+set}" = set; then
44161 echo $ECHO_N "(cached) $ECHO_C" >&6
44164 echo "$as_me:$LINENO: checking for dbm_open" >&5
44165 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44166 if test "${ac_cv_func_dbm_open+set}" = set; then
44167 echo $ECHO_N "(cached) $ECHO_C" >&6
44169 cat >conftest.$ac_ext <<_ACEOF
44172 cat confdefs.h >>conftest.$ac_ext
44173 cat >>conftest.$ac_ext <<_ACEOF
44174 /* end confdefs.h. */
44175 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44177 #define dbm_open innocuous_dbm_open
44179 /* System header to define __stub macros and hopefully few prototypes,
44180 which can conflict with char dbm_open (); below.
44181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44182 <limits.h> exists even on freestanding compilers. */
44185 # include <limits.h>
44187 # include <assert.h>
44192 /* Override any gcc2 internal prototype to avoid an error. */
44197 /* We use char because int might match the return type of a gcc2
44198 builtin and then its argument prototype would still apply. */
44200 /* The GNU C library defines this for functions which it implements
44201 to always fail with ENOSYS. Some functions are actually named
44202 something starting with __ and the normal name is an alias. */
44203 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44206 char (*f) () = dbm_open;
44215 return f != dbm_open;
44220 rm -f conftest.$ac_objext conftest$ac_exeext
44221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44222 (eval $ac_link) 2>conftest.er1
44224 grep -v '^ *+' conftest.er1 >conftest.err
44226 cat conftest.err >&5
44227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44228 (exit $ac_status); } &&
44229 { ac_try='test -z "$ac_c_werror_flag"
44230 || test ! -s conftest.err'
44231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44232 (eval $ac_try) 2>&5
44234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235 (exit $ac_status); }; } &&
44236 { ac_try='test -s conftest$ac_exeext'
44237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44238 (eval $ac_try) 2>&5
44240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44241 (exit $ac_status); }; }; then
44242 ac_cv_func_dbm_open=yes
44244 echo "$as_me: failed program was:" >&5
44245 sed 's/^/| /' conftest.$ac_ext >&5
44247 ac_cv_func_dbm_open=no
44249 rm -f conftest.err conftest.$ac_objext \
44250 conftest$ac_exeext conftest.$ac_ext
44252 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44253 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44254 if test $ac_cv_func_dbm_open = yes; then
44258 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44259 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44260 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44261 echo $ECHO_N "(cached) $ECHO_C" >&6
44263 ac_check_lib_save_LIBS=$LIBS
44264 LIBS="-lndbm $LIBS"
44265 cat >conftest.$ac_ext <<_ACEOF
44268 cat confdefs.h >>conftest.$ac_ext
44269 cat >>conftest.$ac_ext <<_ACEOF
44270 /* end confdefs.h. */
44272 /* Override any gcc2 internal prototype to avoid an error. */
44276 /* We use char because int might match the return type of a gcc2
44277 builtin and then its argument prototype would still apply. */
44287 rm -f conftest.$ac_objext conftest$ac_exeext
44288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44289 (eval $ac_link) 2>conftest.er1
44291 grep -v '^ *+' conftest.er1 >conftest.err
44293 cat conftest.err >&5
44294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44295 (exit $ac_status); } &&
44296 { ac_try='test -z "$ac_c_werror_flag"
44297 || test ! -s conftest.err'
44298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44299 (eval $ac_try) 2>&5
44301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44302 (exit $ac_status); }; } &&
44303 { ac_try='test -s conftest$ac_exeext'
44304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44305 (eval $ac_try) 2>&5
44307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44308 (exit $ac_status); }; }; then
44309 ac_cv_lib_ndbm_dbm_open=yes
44311 echo "$as_me: failed program was:" >&5
44312 sed 's/^/| /' conftest.$ac_ext >&5
44314 ac_cv_lib_ndbm_dbm_open=no
44316 rm -f conftest.err conftest.$ac_objext \
44317 conftest$ac_exeext conftest.$ac_ext
44318 LIBS=$ac_check_lib_save_LIBS
44320 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44321 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44322 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44323 ol_cv_lib_ndbm=-lndbm
44326 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44327 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44328 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44329 echo $ECHO_N "(cached) $ECHO_C" >&6
44331 ac_check_lib_save_LIBS=$LIBS
44333 cat >conftest.$ac_ext <<_ACEOF
44336 cat confdefs.h >>conftest.$ac_ext
44337 cat >>conftest.$ac_ext <<_ACEOF
44338 /* end confdefs.h. */
44340 /* Override any gcc2 internal prototype to avoid an error. */
44344 /* We use char because int might match the return type of a gcc2
44345 builtin and then its argument prototype would still apply. */
44355 rm -f conftest.$ac_objext conftest$ac_exeext
44356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44357 (eval $ac_link) 2>conftest.er1
44359 grep -v '^ *+' conftest.er1 >conftest.err
44361 cat conftest.err >&5
44362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44363 (exit $ac_status); } &&
44364 { ac_try='test -z "$ac_c_werror_flag"
44365 || test ! -s conftest.err'
44366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44367 (eval $ac_try) 2>&5
44369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44370 (exit $ac_status); }; } &&
44371 { ac_try='test -s conftest$ac_exeext'
44372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44373 (eval $ac_try) 2>&5
44375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44376 (exit $ac_status); }; }; then
44377 ac_cv_lib_dbm_dbm_open=yes
44379 echo "$as_me: failed program was:" >&5
44380 sed 's/^/| /' conftest.$ac_ext >&5
44382 ac_cv_lib_dbm_dbm_open=no
44384 rm -f conftest.err conftest.$ac_objext \
44385 conftest$ac_exeext conftest.$ac_ext
44386 LIBS=$ac_check_lib_save_LIBS
44388 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44389 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44390 if test $ac_cv_lib_dbm_dbm_open = yes; then
44391 ol_cv_lib_ndbm=-ldbm
44404 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44405 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44409 for ac_header in ndbm.h
44411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44413 echo "$as_me:$LINENO: checking for $ac_header" >&5
44414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44416 echo $ECHO_N "(cached) $ECHO_C" >&6
44418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44421 # Is the header compilable?
44422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44424 cat >conftest.$ac_ext <<_ACEOF
44427 cat confdefs.h >>conftest.$ac_ext
44428 cat >>conftest.$ac_ext <<_ACEOF
44429 /* end confdefs.h. */
44430 $ac_includes_default
44431 #include <$ac_header>
44433 rm -f conftest.$ac_objext
44434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44435 (eval $ac_compile) 2>conftest.er1
44437 grep -v '^ *+' conftest.er1 >conftest.err
44439 cat conftest.err >&5
44440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44441 (exit $ac_status); } &&
44442 { ac_try='test -z "$ac_c_werror_flag"
44443 || test ! -s conftest.err'
44444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44445 (eval $ac_try) 2>&5
44447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44448 (exit $ac_status); }; } &&
44449 { ac_try='test -s conftest.$ac_objext'
44450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44451 (eval $ac_try) 2>&5
44453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44454 (exit $ac_status); }; }; then
44455 ac_header_compiler=yes
44457 echo "$as_me: failed program was:" >&5
44458 sed 's/^/| /' conftest.$ac_ext >&5
44460 ac_header_compiler=no
44462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44464 echo "${ECHO_T}$ac_header_compiler" >&6
44466 # Is the header present?
44467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44469 cat >conftest.$ac_ext <<_ACEOF
44472 cat confdefs.h >>conftest.$ac_ext
44473 cat >>conftest.$ac_ext <<_ACEOF
44474 /* end confdefs.h. */
44475 #include <$ac_header>
44477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44480 grep -v '^ *+' conftest.er1 >conftest.err
44482 cat conftest.err >&5
44483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484 (exit $ac_status); } >/dev/null; then
44485 if test -s conftest.err; then
44486 ac_cpp_err=$ac_c_preproc_warn_flag
44487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44494 if test -z "$ac_cpp_err"; then
44495 ac_header_preproc=yes
44497 echo "$as_me: failed program was:" >&5
44498 sed 's/^/| /' conftest.$ac_ext >&5
44500 ac_header_preproc=no
44502 rm -f conftest.err conftest.$ac_ext
44503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44504 echo "${ECHO_T}$ac_header_preproc" >&6
44506 # So? What about this header?
44507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44513 ac_header_preproc=yes
44516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44530 ## ------------------------------------------ ##
44531 ## Report this to the AC_PACKAGE_NAME lists. ##
44532 ## ------------------------------------------ ##
44535 sed "s/^/$as_me: WARNING: /" >&2
44538 echo "$as_me:$LINENO: checking for $ac_header" >&5
44539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44541 echo $ECHO_N "(cached) $ECHO_C" >&6
44543 eval "$as_ac_Header=\$ac_header_preproc"
44545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44550 cat >>confdefs.h <<_ACEOF
44551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44558 echo "$as_me:$LINENO: checking for db" >&5
44559 echo $ECHO_N "checking for db... $ECHO_C" >&6
44560 if test "${ol_cv_ndbm+set}" = set; then
44561 echo $ECHO_N "(cached) $ECHO_C" >&6
44564 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44571 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44572 echo "${ECHO_T}$ol_cv_ndbm" >&6
44573 if test $ol_cv_ndbm = yes ; then
44575 cat >>confdefs.h <<\_ACEOF
44576 #define HAVE_NDBM 1
44582 if test $ol_cv_ndbm = yes ; then
44584 ol_enable_ldbm_api=ndbm
44586 if test $ol_cv_lib_ndbm != yes ; then
44587 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44592 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44593 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44594 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44595 { (exit 1); exit 1; }; }
44598 if test $ol_enable_bdb = yes -o \
44599 $ol_enable_hdb = yes -o \
44600 $ol_enable_ldbm = yes ; then
44601 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44605 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44606 BUILD_LIBS_DYNAMIC=shared
44608 cat >>confdefs.h <<\_ACEOF
44609 #define LDAP_LIBS_DYNAMIC 1
44614 BUILD_LIBS_DYNAMIC=static
44618 if test $ol_enable_wrappers != no ; then
44620 for ac_header in tcpd.h
44622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44624 echo "$as_me:$LINENO: checking for $ac_header" >&5
44625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44627 echo $ECHO_N "(cached) $ECHO_C" >&6
44629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44632 # Is the header compilable?
44633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44635 cat >conftest.$ac_ext <<_ACEOF
44638 cat confdefs.h >>conftest.$ac_ext
44639 cat >>conftest.$ac_ext <<_ACEOF
44640 /* end confdefs.h. */
44641 $ac_includes_default
44642 #include <$ac_header>
44644 rm -f conftest.$ac_objext
44645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44646 (eval $ac_compile) 2>conftest.er1
44648 grep -v '^ *+' conftest.er1 >conftest.err
44650 cat conftest.err >&5
44651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44652 (exit $ac_status); } &&
44653 { ac_try='test -z "$ac_c_werror_flag"
44654 || test ! -s conftest.err'
44655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44656 (eval $ac_try) 2>&5
44658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659 (exit $ac_status); }; } &&
44660 { ac_try='test -s conftest.$ac_objext'
44661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44662 (eval $ac_try) 2>&5
44664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665 (exit $ac_status); }; }; then
44666 ac_header_compiler=yes
44668 echo "$as_me: failed program was:" >&5
44669 sed 's/^/| /' conftest.$ac_ext >&5
44671 ac_header_compiler=no
44673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44675 echo "${ECHO_T}$ac_header_compiler" >&6
44677 # Is the header present?
44678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44680 cat >conftest.$ac_ext <<_ACEOF
44683 cat confdefs.h >>conftest.$ac_ext
44684 cat >>conftest.$ac_ext <<_ACEOF
44685 /* end confdefs.h. */
44686 #include <$ac_header>
44688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44691 grep -v '^ *+' conftest.er1 >conftest.err
44693 cat conftest.err >&5
44694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44695 (exit $ac_status); } >/dev/null; then
44696 if test -s conftest.err; then
44697 ac_cpp_err=$ac_c_preproc_warn_flag
44698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44705 if test -z "$ac_cpp_err"; then
44706 ac_header_preproc=yes
44708 echo "$as_me: failed program was:" >&5
44709 sed 's/^/| /' conftest.$ac_ext >&5
44711 ac_header_preproc=no
44713 rm -f conftest.err conftest.$ac_ext
44714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44715 echo "${ECHO_T}$ac_header_preproc" >&6
44717 # So? What about this header?
44718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44724 ac_header_preproc=yes
44727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44741 ## ------------------------------------------ ##
44742 ## Report this to the AC_PACKAGE_NAME lists. ##
44743 ## ------------------------------------------ ##
44746 sed "s/^/$as_me: WARNING: /" >&2
44749 echo "$as_me:$LINENO: checking for $ac_header" >&5
44750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44752 echo $ECHO_N "(cached) $ECHO_C" >&6
44754 eval "$as_ac_Header=\$ac_header_preproc"
44756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44761 cat >>confdefs.h <<_ACEOF
44762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44765 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44766 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44768 LIBS="$LIBS -lwrap"
44769 cat >conftest.$ac_ext <<_ACEOF
44772 cat confdefs.h >>conftest.$ac_ext
44773 cat >>conftest.$ac_ext <<_ACEOF
44774 /* end confdefs.h. */
44777 int allow_severity = 0;
44778 int deny_severity = 0;
44780 struct request_info *req;
44792 rm -f conftest.$ac_objext conftest$ac_exeext
44793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44794 (eval $ac_link) 2>conftest.er1
44796 grep -v '^ *+' conftest.er1 >conftest.err
44798 cat conftest.err >&5
44799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44800 (exit $ac_status); } &&
44801 { ac_try='test -z "$ac_c_werror_flag"
44802 || test ! -s conftest.err'
44803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44804 (eval $ac_try) 2>&5
44806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807 (exit $ac_status); }; } &&
44808 { ac_try='test -s conftest$ac_exeext'
44809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44810 (eval $ac_try) 2>&5
44812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44813 (exit $ac_status); }; }; then
44814 echo "$as_me:$LINENO: result: -lwrap" >&5
44815 echo "${ECHO_T}-lwrap" >&6
44819 echo "$as_me: failed program was:" >&5
44820 sed 's/^/| /' conftest.$ac_ext >&5
44824 cat >conftest.$ac_ext <<_ACEOF
44827 cat confdefs.h >>conftest.$ac_ext
44828 cat >>conftest.$ac_ext <<_ACEOF
44829 /* end confdefs.h. */
44832 int allow_severity = 0;
44833 int deny_severity = 0;
44835 struct request_info *req;
44847 rm -f conftest.$ac_objext conftest$ac_exeext
44848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44849 (eval $ac_link) 2>conftest.er1
44851 grep -v '^ *+' conftest.er1 >conftest.err
44853 cat conftest.err >&5
44854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44855 (exit $ac_status); } &&
44856 { ac_try='test -z "$ac_c_werror_flag"
44857 || test ! -s conftest.err'
44858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44859 (eval $ac_try) 2>&5
44861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44862 (exit $ac_status); }; } &&
44863 { ac_try='test -s conftest$ac_exeext'
44864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44865 (eval $ac_try) 2>&5
44867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44868 (exit $ac_status); }; }; then
44869 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44870 echo "${ECHO_T}-lwrap -lnsl" >&6
44872 LIBS="$save_LIBS -lnsl"
44874 echo "$as_me: failed program was:" >&5
44875 sed 's/^/| /' conftest.$ac_ext >&5
44878 echo "$as_me:$LINENO: result: no" >&5
44879 echo "${ECHO_T}no" >&6
44883 rm -f conftest.err conftest.$ac_objext \
44884 conftest$ac_exeext conftest.$ac_ext
44886 rm -f conftest.err conftest.$ac_objext \
44887 conftest$ac_exeext conftest.$ac_ext
44895 if test $have_wrappers = yes ; then
44897 cat >>confdefs.h <<\_ACEOF
44898 #define HAVE_TCPD 1
44902 elif test $ol_enable_wrappers = yes ; then
44903 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44904 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44905 { (exit 1); exit 1; }; }
44907 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44908 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44913 if test $ol_enable_syslog != no ; then
44914 echo "$as_me:$LINENO: checking for openlog" >&5
44915 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44916 if test "${ac_cv_func_openlog+set}" = set; then
44917 echo $ECHO_N "(cached) $ECHO_C" >&6
44919 cat >conftest.$ac_ext <<_ACEOF
44922 cat confdefs.h >>conftest.$ac_ext
44923 cat >>conftest.$ac_ext <<_ACEOF
44924 /* end confdefs.h. */
44925 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44927 #define openlog innocuous_openlog
44929 /* System header to define __stub macros and hopefully few prototypes,
44930 which can conflict with char openlog (); below.
44931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44932 <limits.h> exists even on freestanding compilers. */
44935 # include <limits.h>
44937 # include <assert.h>
44942 /* Override any gcc2 internal prototype to avoid an error. */
44947 /* We use char because int might match the return type of a gcc2
44948 builtin and then its argument prototype would still apply. */
44950 /* The GNU C library defines this for functions which it implements
44951 to always fail with ENOSYS. Some functions are actually named
44952 something starting with __ and the normal name is an alias. */
44953 #if defined (__stub_openlog) || defined (__stub___openlog)
44956 char (*f) () = openlog;
44965 return f != openlog;
44970 rm -f conftest.$ac_objext conftest$ac_exeext
44971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44972 (eval $ac_link) 2>conftest.er1
44974 grep -v '^ *+' conftest.er1 >conftest.err
44976 cat conftest.err >&5
44977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44978 (exit $ac_status); } &&
44979 { ac_try='test -z "$ac_c_werror_flag"
44980 || test ! -s conftest.err'
44981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44982 (eval $ac_try) 2>&5
44984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44985 (exit $ac_status); }; } &&
44986 { ac_try='test -s conftest$ac_exeext'
44987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44988 (eval $ac_try) 2>&5
44990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44991 (exit $ac_status); }; }; then
44992 ac_cv_func_openlog=yes
44994 echo "$as_me: failed program was:" >&5
44995 sed 's/^/| /' conftest.$ac_ext >&5
44997 ac_cv_func_openlog=no
44999 rm -f conftest.err conftest.$ac_objext \
45000 conftest$ac_exeext conftest.$ac_ext
45002 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
45003 echo "${ECHO_T}$ac_cv_func_openlog" >&6
45005 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
45006 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
45007 echo "$as_me: error: could not find syslog" >&2;}
45008 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
45010 ol_enable_syslog=$ac_cv_func_openlog
45014 if test $ol_enable_sql != no ; then
45017 for ac_header in sql.h sqlext.h
45019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45021 echo "$as_me:$LINENO: checking for $ac_header" >&5
45022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45024 echo $ECHO_N "(cached) $ECHO_C" >&6
45026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45029 # Is the header compilable?
45030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45032 cat >conftest.$ac_ext <<_ACEOF
45035 cat confdefs.h >>conftest.$ac_ext
45036 cat >>conftest.$ac_ext <<_ACEOF
45037 /* end confdefs.h. */
45038 $ac_includes_default
45039 #include <$ac_header>
45041 rm -f conftest.$ac_objext
45042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45043 (eval $ac_compile) 2>conftest.er1
45045 grep -v '^ *+' conftest.er1 >conftest.err
45047 cat conftest.err >&5
45048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45049 (exit $ac_status); } &&
45050 { ac_try='test -z "$ac_c_werror_flag"
45051 || test ! -s conftest.err'
45052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45053 (eval $ac_try) 2>&5
45055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45056 (exit $ac_status); }; } &&
45057 { ac_try='test -s conftest.$ac_objext'
45058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45059 (eval $ac_try) 2>&5
45061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45062 (exit $ac_status); }; }; then
45063 ac_header_compiler=yes
45065 echo "$as_me: failed program was:" >&5
45066 sed 's/^/| /' conftest.$ac_ext >&5
45068 ac_header_compiler=no
45070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45072 echo "${ECHO_T}$ac_header_compiler" >&6
45074 # Is the header present?
45075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45077 cat >conftest.$ac_ext <<_ACEOF
45080 cat confdefs.h >>conftest.$ac_ext
45081 cat >>conftest.$ac_ext <<_ACEOF
45082 /* end confdefs.h. */
45083 #include <$ac_header>
45085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45088 grep -v '^ *+' conftest.er1 >conftest.err
45090 cat conftest.err >&5
45091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092 (exit $ac_status); } >/dev/null; then
45093 if test -s conftest.err; then
45094 ac_cpp_err=$ac_c_preproc_warn_flag
45095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45102 if test -z "$ac_cpp_err"; then
45103 ac_header_preproc=yes
45105 echo "$as_me: failed program was:" >&5
45106 sed 's/^/| /' conftest.$ac_ext >&5
45108 ac_header_preproc=no
45110 rm -f conftest.err conftest.$ac_ext
45111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45112 echo "${ECHO_T}$ac_header_preproc" >&6
45114 # So? What about this header?
45115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45121 ac_header_preproc=yes
45124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45138 ## ------------------------------------------ ##
45139 ## Report this to the AC_PACKAGE_NAME lists. ##
45140 ## ------------------------------------------ ##
45143 sed "s/^/$as_me: WARNING: /" >&2
45146 echo "$as_me:$LINENO: checking for $ac_header" >&5
45147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45149 echo $ECHO_N "(cached) $ECHO_C" >&6
45151 eval "$as_ac_Header=\$ac_header_preproc"
45153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45158 cat >>confdefs.h <<_ACEOF
45159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45164 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45165 echo "$as_me: error: could not locate SQL headers" >&2;}
45166 { (exit 1); exit 1; }; }
45174 LIBS="$LTHREAD_LIBS"
45176 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45177 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45178 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45179 echo $ECHO_N "(cached) $ECHO_C" >&6
45181 ac_check_lib_save_LIBS=$LIBS
45182 LIBS="-liodbc $LIBS"
45183 cat >conftest.$ac_ext <<_ACEOF
45186 cat confdefs.h >>conftest.$ac_ext
45187 cat >>conftest.$ac_ext <<_ACEOF
45188 /* end confdefs.h. */
45190 /* Override any gcc2 internal prototype to avoid an error. */
45194 /* We use char because int might match the return type of a gcc2
45195 builtin and then its argument prototype would still apply. */
45196 char SQLDriverConnect ();
45200 SQLDriverConnect ();
45205 rm -f conftest.$ac_objext conftest$ac_exeext
45206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45207 (eval $ac_link) 2>conftest.er1
45209 grep -v '^ *+' conftest.er1 >conftest.err
45211 cat conftest.err >&5
45212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45213 (exit $ac_status); } &&
45214 { ac_try='test -z "$ac_c_werror_flag"
45215 || test ! -s conftest.err'
45216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45217 (eval $ac_try) 2>&5
45219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45220 (exit $ac_status); }; } &&
45221 { ac_try='test -s conftest$ac_exeext'
45222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45223 (eval $ac_try) 2>&5
45225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45226 (exit $ac_status); }; }; then
45227 ac_cv_lib_iodbc_SQLDriverConnect=yes
45229 echo "$as_me: failed program was:" >&5
45230 sed 's/^/| /' conftest.$ac_ext >&5
45232 ac_cv_lib_iodbc_SQLDriverConnect=no
45234 rm -f conftest.err conftest.$ac_objext \
45235 conftest$ac_exeext conftest.$ac_ext
45236 LIBS=$ac_check_lib_save_LIBS
45238 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45239 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45240 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45246 if test $have_iodbc = yes ; then
45247 ol_link_sql="-liodbc"
45249 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45250 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45251 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45252 echo $ECHO_N "(cached) $ECHO_C" >&6
45254 ac_check_lib_save_LIBS=$LIBS
45255 LIBS="-lodbc $LIBS"
45256 cat >conftest.$ac_ext <<_ACEOF
45259 cat confdefs.h >>conftest.$ac_ext
45260 cat >>conftest.$ac_ext <<_ACEOF
45261 /* end confdefs.h. */
45263 /* Override any gcc2 internal prototype to avoid an error. */
45267 /* We use char because int might match the return type of a gcc2
45268 builtin and then its argument prototype would still apply. */
45269 char SQLDriverConnect ();
45273 SQLDriverConnect ();
45278 rm -f conftest.$ac_objext conftest$ac_exeext
45279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45280 (eval $ac_link) 2>conftest.er1
45282 grep -v '^ *+' conftest.er1 >conftest.err
45284 cat conftest.err >&5
45285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45286 (exit $ac_status); } &&
45287 { ac_try='test -z "$ac_c_werror_flag"
45288 || test ! -s conftest.err'
45289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45290 (eval $ac_try) 2>&5
45292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45293 (exit $ac_status); }; } &&
45294 { ac_try='test -s conftest$ac_exeext'
45295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45296 (eval $ac_try) 2>&5
45298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45299 (exit $ac_status); }; }; then
45300 ac_cv_lib_odbc_SQLDriverConnect=yes
45302 echo "$as_me: failed program was:" >&5
45303 sed 's/^/| /' conftest.$ac_ext >&5
45305 ac_cv_lib_odbc_SQLDriverConnect=no
45307 rm -f conftest.err conftest.$ac_objext \
45308 conftest$ac_exeext conftest.$ac_ext
45309 LIBS=$ac_check_lib_save_LIBS
45311 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45312 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45313 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45319 if test $have_odbc = yes ; then
45320 ol_link_sql="-lodbc"
45326 if test $ol_link_sql != no ; then
45327 SLAPD_SQL_LIBS="$ol_link_sql"
45329 elif test $ol_enable_sql != auto ; then
45330 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45331 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45332 { (exit 1); exit 1; }; }
45339 if test $ol_with_cyrus_sasl != no ; then
45342 for ac_header in sasl/sasl.h sasl.h
45344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45346 echo "$as_me:$LINENO: checking for $ac_header" >&5
45347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45349 echo $ECHO_N "(cached) $ECHO_C" >&6
45351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45354 # Is the header compilable?
45355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45357 cat >conftest.$ac_ext <<_ACEOF
45360 cat confdefs.h >>conftest.$ac_ext
45361 cat >>conftest.$ac_ext <<_ACEOF
45362 /* end confdefs.h. */
45363 $ac_includes_default
45364 #include <$ac_header>
45366 rm -f conftest.$ac_objext
45367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45368 (eval $ac_compile) 2>conftest.er1
45370 grep -v '^ *+' conftest.er1 >conftest.err
45372 cat conftest.err >&5
45373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45374 (exit $ac_status); } &&
45375 { ac_try='test -z "$ac_c_werror_flag"
45376 || test ! -s conftest.err'
45377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45378 (eval $ac_try) 2>&5
45380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45381 (exit $ac_status); }; } &&
45382 { ac_try='test -s conftest.$ac_objext'
45383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45384 (eval $ac_try) 2>&5
45386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45387 (exit $ac_status); }; }; then
45388 ac_header_compiler=yes
45390 echo "$as_me: failed program was:" >&5
45391 sed 's/^/| /' conftest.$ac_ext >&5
45393 ac_header_compiler=no
45395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45397 echo "${ECHO_T}$ac_header_compiler" >&6
45399 # Is the header present?
45400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45402 cat >conftest.$ac_ext <<_ACEOF
45405 cat confdefs.h >>conftest.$ac_ext
45406 cat >>conftest.$ac_ext <<_ACEOF
45407 /* end confdefs.h. */
45408 #include <$ac_header>
45410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45413 grep -v '^ *+' conftest.er1 >conftest.err
45415 cat conftest.err >&5
45416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45417 (exit $ac_status); } >/dev/null; then
45418 if test -s conftest.err; then
45419 ac_cpp_err=$ac_c_preproc_warn_flag
45420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45427 if test -z "$ac_cpp_err"; then
45428 ac_header_preproc=yes
45430 echo "$as_me: failed program was:" >&5
45431 sed 's/^/| /' conftest.$ac_ext >&5
45433 ac_header_preproc=no
45435 rm -f conftest.err conftest.$ac_ext
45436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45437 echo "${ECHO_T}$ac_header_preproc" >&6
45439 # So? What about this header?
45440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45446 ac_header_preproc=yes
45449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45463 ## ------------------------------------------ ##
45464 ## Report this to the AC_PACKAGE_NAME lists. ##
45465 ## ------------------------------------------ ##
45468 sed "s/^/$as_me: WARNING: /" >&2
45471 echo "$as_me:$LINENO: checking for $ac_header" >&5
45472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45474 echo $ECHO_N "(cached) $ECHO_C" >&6
45476 eval "$as_ac_Header=\$ac_header_preproc"
45478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45483 cat >>confdefs.h <<_ACEOF
45484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45492 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45493 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45494 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45495 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45496 echo $ECHO_N "(cached) $ECHO_C" >&6
45498 ac_check_lib_save_LIBS=$LIBS
45499 LIBS="-lsasl2 $LIBS"
45500 cat >conftest.$ac_ext <<_ACEOF
45503 cat confdefs.h >>conftest.$ac_ext
45504 cat >>conftest.$ac_ext <<_ACEOF
45505 /* end confdefs.h. */
45507 /* Override any gcc2 internal prototype to avoid an error. */
45511 /* We use char because int might match the return type of a gcc2
45512 builtin and then its argument prototype would still apply. */
45513 char sasl_client_init ();
45517 sasl_client_init ();
45522 rm -f conftest.$ac_objext conftest$ac_exeext
45523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45524 (eval $ac_link) 2>conftest.er1
45526 grep -v '^ *+' conftest.er1 >conftest.err
45528 cat conftest.err >&5
45529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45530 (exit $ac_status); } &&
45531 { ac_try='test -z "$ac_c_werror_flag"
45532 || test ! -s conftest.err'
45533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45534 (eval $ac_try) 2>&5
45536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45537 (exit $ac_status); }; } &&
45538 { ac_try='test -s conftest$ac_exeext'
45539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45540 (eval $ac_try) 2>&5
45542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45543 (exit $ac_status); }; }; then
45544 ac_cv_lib_sasl2_sasl_client_init=yes
45546 echo "$as_me: failed program was:" >&5
45547 sed 's/^/| /' conftest.$ac_ext >&5
45549 ac_cv_lib_sasl2_sasl_client_init=no
45551 rm -f conftest.err conftest.$ac_objext \
45552 conftest$ac_exeext conftest.$ac_ext
45553 LIBS=$ac_check_lib_save_LIBS
45555 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45556 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45557 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45558 ol_link_sasl="-lsasl2"
45560 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45561 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45562 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45563 echo $ECHO_N "(cached) $ECHO_C" >&6
45565 ac_check_lib_save_LIBS=$LIBS
45566 LIBS="-lsasl $LIBS"
45567 cat >conftest.$ac_ext <<_ACEOF
45570 cat confdefs.h >>conftest.$ac_ext
45571 cat >>conftest.$ac_ext <<_ACEOF
45572 /* end confdefs.h. */
45574 /* Override any gcc2 internal prototype to avoid an error. */
45578 /* We use char because int might match the return type of a gcc2
45579 builtin and then its argument prototype would still apply. */
45580 char sasl_client_init ();
45584 sasl_client_init ();
45589 rm -f conftest.$ac_objext conftest$ac_exeext
45590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45591 (eval $ac_link) 2>conftest.er1
45593 grep -v '^ *+' conftest.er1 >conftest.err
45595 cat conftest.err >&5
45596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45597 (exit $ac_status); } &&
45598 { ac_try='test -z "$ac_c_werror_flag"
45599 || test ! -s conftest.err'
45600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45601 (eval $ac_try) 2>&5
45603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45604 (exit $ac_status); }; } &&
45605 { ac_try='test -s conftest$ac_exeext'
45606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45607 (eval $ac_try) 2>&5
45609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45610 (exit $ac_status); }; }; then
45611 ac_cv_lib_sasl_sasl_client_init=yes
45613 echo "$as_me: failed program was:" >&5
45614 sed 's/^/| /' conftest.$ac_ext >&5
45616 ac_cv_lib_sasl_sasl_client_init=no
45618 rm -f conftest.err conftest.$ac_objext \
45619 conftest$ac_exeext conftest.$ac_ext
45620 LIBS=$ac_check_lib_save_LIBS
45622 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45623 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45624 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45625 ol_link_sasl="-lsasl"
45632 if test $ol_link_sasl = no ; then
45633 if test $ol_with_cyrus_sasl != auto ; then
45634 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45635 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45636 { (exit 1); exit 1; }; }
45638 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45639 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45640 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45641 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45642 if test $ol_link_tls = no ; then
45643 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45644 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45648 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45649 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45650 if test "${ol_cv_sasl_compat+set}" = set; then
45651 echo $ECHO_N "(cached) $ECHO_C" >&6
45654 cat >conftest.$ac_ext <<_ACEOF
45657 cat confdefs.h >>conftest.$ac_ext
45658 cat >>conftest.$ac_ext <<_ACEOF
45659 /* end confdefs.h. */
45661 #ifdef HAVE_SASL_SASL_H
45662 #include <sasl/sasl.h>
45667 /* Require 2.1.15+ */
45668 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45669 char *__sasl_compat = "2.2+ or better okay (we guess)";
45670 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45671 && SASL_VERSION_STEP >=15
45672 char *__sasl_compat = "2.1.15+ or better okay";
45676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45677 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45678 ol_cv_sasl_compat=yes
45680 ol_cv_sasl_compat=no
45685 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45686 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45688 if test $ol_cv_sasl_compat = no ; then
45690 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45691 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45692 { (exit 1); exit 1; }; }
45696 cat >>confdefs.h <<\_ACEOF
45697 #define HAVE_CYRUS_SASL 1
45700 SASL_LIBS="$ol_link_sasl"
45701 if test $ol_enable_spasswd != no ; then
45702 ol_link_spasswd=yes
45705 ac_save_LIBS="$LIBS"
45706 LIBS="$LIBS $ol_link_sasl"
45707 echo "$as_me:$LINENO: checking for sasl_version" >&5
45708 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45709 if test "${ac_cv_func_sasl_version+set}" = set; then
45710 echo $ECHO_N "(cached) $ECHO_C" >&6
45712 cat >conftest.$ac_ext <<_ACEOF
45715 cat confdefs.h >>conftest.$ac_ext
45716 cat >>conftest.$ac_ext <<_ACEOF
45717 /* end confdefs.h. */
45718 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45720 #define sasl_version innocuous_sasl_version
45722 /* System header to define __stub macros and hopefully few prototypes,
45723 which can conflict with char sasl_version (); below.
45724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45725 <limits.h> exists even on freestanding compilers. */
45728 # include <limits.h>
45730 # include <assert.h>
45733 #undef sasl_version
45735 /* Override any gcc2 internal prototype to avoid an error. */
45740 /* We use char because int might match the return type of a gcc2
45741 builtin and then its argument prototype would still apply. */
45742 char sasl_version ();
45743 /* The GNU C library defines this for functions which it implements
45744 to always fail with ENOSYS. Some functions are actually named
45745 something starting with __ and the normal name is an alias. */
45746 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45749 char (*f) () = sasl_version;
45758 return f != sasl_version;
45763 rm -f conftest.$ac_objext conftest$ac_exeext
45764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45765 (eval $ac_link) 2>conftest.er1
45767 grep -v '^ *+' conftest.er1 >conftest.err
45769 cat conftest.err >&5
45770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45771 (exit $ac_status); } &&
45772 { ac_try='test -z "$ac_c_werror_flag"
45773 || test ! -s conftest.err'
45774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45775 (eval $ac_try) 2>&5
45777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45778 (exit $ac_status); }; } &&
45779 { ac_try='test -s conftest$ac_exeext'
45780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45781 (eval $ac_try) 2>&5
45783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45784 (exit $ac_status); }; }; then
45785 ac_cv_func_sasl_version=yes
45787 echo "$as_me: failed program was:" >&5
45788 sed 's/^/| /' conftest.$ac_ext >&5
45790 ac_cv_func_sasl_version=no
45792 rm -f conftest.err conftest.$ac_objext \
45793 conftest$ac_exeext conftest.$ac_ext
45795 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45796 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45797 if test $ac_cv_func_sasl_version = yes; then
45799 cat >>confdefs.h <<\_ACEOF
45800 #define HAVE_SASL_VERSION 1
45805 LIBS="$ac_save_LIBS"
45811 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45812 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45813 if test $ol_link_tls = no ; then
45814 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45815 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45819 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45821 if test -r /dev/urandom ; then
45822 dev="/dev/urandom";
45823 elif test -r /idev/urandom ; then
45824 dev="/idev/urandom";
45825 elif test -r /dev/srandom ; then
45826 dev="/dev/srandom";
45827 elif test -r /dev/random ; then
45829 elif test -r /idev/random ; then
45830 dev="/idev/random";
45833 if test $dev != no ; then
45835 cat >>confdefs.h <<_ACEOF
45836 #define URANDOM_DEVICE "$dev"
45843 if test $ol_with_fetch != no ; then
45845 LIBS="-lfetch -lcom_err $LIBS"
45846 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45847 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45848 if test "${ol_cv_lib_fetch+set}" = set; then
45849 echo $ECHO_N "(cached) $ECHO_C" >&6
45852 cat >conftest.$ac_ext <<_ACEOF
45855 cat confdefs.h >>conftest.$ac_ext
45856 cat >>conftest.$ac_ext <<_ACEOF
45857 /* end confdefs.h. */
45859 #include <sys/param.h>
45865 struct url *u = fetchParseURL("file:///");
45870 rm -f conftest.$ac_objext conftest$ac_exeext
45871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45872 (eval $ac_link) 2>conftest.er1
45874 grep -v '^ *+' conftest.er1 >conftest.err
45876 cat conftest.err >&5
45877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45878 (exit $ac_status); } &&
45879 { ac_try='test -z "$ac_c_werror_flag"
45880 || test ! -s conftest.err'
45881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45882 (eval $ac_try) 2>&5
45884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45885 (exit $ac_status); }; } &&
45886 { ac_try='test -s conftest$ac_exeext'
45887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45888 (eval $ac_try) 2>&5
45890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45891 (exit $ac_status); }; }; then
45892 ol_cv_lib_fetch=yes
45894 echo "$as_me: failed program was:" >&5
45895 sed 's/^/| /' conftest.$ac_ext >&5
45899 rm -f conftest.err conftest.$ac_objext \
45900 conftest$ac_exeext conftest.$ac_ext
45902 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45903 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45905 if test $ol_cv_lib_fetch != no ; then
45906 ol_link_fetch="-lfetch -lcom_err"
45908 cat >>confdefs.h <<\_ACEOF
45909 #define HAVE_FETCH 1
45915 if test $ol_cv_lib_fetch != no ; then
45916 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45917 ol_link_fetch=freebsd
45919 elif test $ol_with_fetch != auto ; then
45920 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45921 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45922 { (exit 1); exit 1; }; }
45926 if test $ol_enable_crypt != no ; then
45928 LIBS="$TLS_LIBS $LIBS"
45930 echo "$as_me:$LINENO: checking for crypt" >&5
45931 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45932 if test "${ac_cv_func_crypt+set}" = set; then
45933 echo $ECHO_N "(cached) $ECHO_C" >&6
45935 cat >conftest.$ac_ext <<_ACEOF
45938 cat confdefs.h >>conftest.$ac_ext
45939 cat >>conftest.$ac_ext <<_ACEOF
45940 /* end confdefs.h. */
45941 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45943 #define crypt innocuous_crypt
45945 /* System header to define __stub macros and hopefully few prototypes,
45946 which can conflict with char crypt (); below.
45947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45948 <limits.h> exists even on freestanding compilers. */
45951 # include <limits.h>
45953 # include <assert.h>
45958 /* Override any gcc2 internal prototype to avoid an error. */
45963 /* We use char because int might match the return type of a gcc2
45964 builtin and then its argument prototype would still apply. */
45966 /* The GNU C library defines this for functions which it implements
45967 to always fail with ENOSYS. Some functions are actually named
45968 something starting with __ and the normal name is an alias. */
45969 #if defined (__stub_crypt) || defined (__stub___crypt)
45972 char (*f) () = crypt;
45986 rm -f conftest.$ac_objext conftest$ac_exeext
45987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45988 (eval $ac_link) 2>conftest.er1
45990 grep -v '^ *+' conftest.er1 >conftest.err
45992 cat conftest.err >&5
45993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45994 (exit $ac_status); } &&
45995 { ac_try='test -z "$ac_c_werror_flag"
45996 || test ! -s conftest.err'
45997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45998 (eval $ac_try) 2>&5
46000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46001 (exit $ac_status); }; } &&
46002 { ac_try='test -s conftest$ac_exeext'
46003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46004 (eval $ac_try) 2>&5
46006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46007 (exit $ac_status); }; }; then
46008 ac_cv_func_crypt=yes
46010 echo "$as_me: failed program was:" >&5
46011 sed 's/^/| /' conftest.$ac_ext >&5
46013 ac_cv_func_crypt=no
46015 rm -f conftest.err conftest.$ac_objext \
46016 conftest$ac_exeext conftest.$ac_ext
46018 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
46019 echo "${ECHO_T}$ac_cv_func_crypt" >&6
46020 if test $ac_cv_func_crypt = yes; then
46025 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
46026 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
46027 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
46028 echo $ECHO_N "(cached) $ECHO_C" >&6
46030 ac_check_lib_save_LIBS=$LIBS
46031 LIBS="-lcrypt $LIBS"
46032 cat >conftest.$ac_ext <<_ACEOF
46035 cat confdefs.h >>conftest.$ac_ext
46036 cat >>conftest.$ac_ext <<_ACEOF
46037 /* end confdefs.h. */
46039 /* Override any gcc2 internal prototype to avoid an error. */
46043 /* We use char because int might match the return type of a gcc2
46044 builtin and then its argument prototype would still apply. */
46054 rm -f conftest.$ac_objext conftest$ac_exeext
46055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46056 (eval $ac_link) 2>conftest.er1
46058 grep -v '^ *+' conftest.er1 >conftest.err
46060 cat conftest.err >&5
46061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46062 (exit $ac_status); } &&
46063 { ac_try='test -z "$ac_c_werror_flag"
46064 || test ! -s conftest.err'
46065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46066 (eval $ac_try) 2>&5
46068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46069 (exit $ac_status); }; } &&
46070 { ac_try='test -s conftest$ac_exeext'
46071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46072 (eval $ac_try) 2>&5
46074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46075 (exit $ac_status); }; }; then
46076 ac_cv_lib_crypt_crypt=yes
46078 echo "$as_me: failed program was:" >&5
46079 sed 's/^/| /' conftest.$ac_ext >&5
46081 ac_cv_lib_crypt_crypt=no
46083 rm -f conftest.err conftest.$ac_objext \
46084 conftest$ac_exeext conftest.$ac_ext
46085 LIBS=$ac_check_lib_save_LIBS
46087 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
46088 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
46089 if test $ac_cv_lib_crypt_crypt = yes; then
46090 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46101 if test $have_crypt = yes ; then
46103 cat >>confdefs.h <<\_ACEOF
46104 #define HAVE_CRYPT 1
46108 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46109 echo "$as_me: WARNING: could not find crypt" >&2;}
46110 if test $ol_enable_crypt = yes ; then
46111 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46112 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46113 { (exit 1); exit 1; }; }
46116 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46117 echo "$as_me: WARNING: disabling crypt support" >&2;}
46122 if test $ol_enable_proctitle != no ; then
46123 echo "$as_me:$LINENO: checking for setproctitle" >&5
46124 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46125 if test "${ac_cv_func_setproctitle+set}" = set; then
46126 echo $ECHO_N "(cached) $ECHO_C" >&6
46128 cat >conftest.$ac_ext <<_ACEOF
46131 cat confdefs.h >>conftest.$ac_ext
46132 cat >>conftest.$ac_ext <<_ACEOF
46133 /* end confdefs.h. */
46134 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46136 #define setproctitle innocuous_setproctitle
46138 /* System header to define __stub macros and hopefully few prototypes,
46139 which can conflict with char setproctitle (); below.
46140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46141 <limits.h> exists even on freestanding compilers. */
46144 # include <limits.h>
46146 # include <assert.h>
46149 #undef setproctitle
46151 /* Override any gcc2 internal prototype to avoid an error. */
46156 /* We use char because int might match the return type of a gcc2
46157 builtin and then its argument prototype would still apply. */
46158 char setproctitle ();
46159 /* The GNU C library defines this for functions which it implements
46160 to always fail with ENOSYS. Some functions are actually named
46161 something starting with __ and the normal name is an alias. */
46162 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46165 char (*f) () = setproctitle;
46174 return f != setproctitle;
46179 rm -f conftest.$ac_objext conftest$ac_exeext
46180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46181 (eval $ac_link) 2>conftest.er1
46183 grep -v '^ *+' conftest.er1 >conftest.err
46185 cat conftest.err >&5
46186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46187 (exit $ac_status); } &&
46188 { ac_try='test -z "$ac_c_werror_flag"
46189 || test ! -s conftest.err'
46190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46191 (eval $ac_try) 2>&5
46193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46194 (exit $ac_status); }; } &&
46195 { ac_try='test -s conftest$ac_exeext'
46196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46197 (eval $ac_try) 2>&5
46199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46200 (exit $ac_status); }; }; then
46201 ac_cv_func_setproctitle=yes
46203 echo "$as_me: failed program was:" >&5
46204 sed 's/^/| /' conftest.$ac_ext >&5
46206 ac_cv_func_setproctitle=no
46208 rm -f conftest.err conftest.$ac_objext \
46209 conftest$ac_exeext conftest.$ac_ext
46211 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46212 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46213 if test $ac_cv_func_setproctitle = yes; then
46214 have_setproctitle=yes
46217 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46218 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46219 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46220 echo $ECHO_N "(cached) $ECHO_C" >&6
46222 ac_check_lib_save_LIBS=$LIBS
46223 LIBS="-lutil $LIBS"
46224 cat >conftest.$ac_ext <<_ACEOF
46227 cat confdefs.h >>conftest.$ac_ext
46228 cat >>conftest.$ac_ext <<_ACEOF
46229 /* end confdefs.h. */
46231 /* Override any gcc2 internal prototype to avoid an error. */
46235 /* We use char because int might match the return type of a gcc2
46236 builtin and then its argument prototype would still apply. */
46237 char setproctitle ();
46246 rm -f conftest.$ac_objext conftest$ac_exeext
46247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46248 (eval $ac_link) 2>conftest.er1
46250 grep -v '^ *+' conftest.er1 >conftest.err
46252 cat conftest.err >&5
46253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46254 (exit $ac_status); } &&
46255 { ac_try='test -z "$ac_c_werror_flag"
46256 || test ! -s conftest.err'
46257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46258 (eval $ac_try) 2>&5
46260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261 (exit $ac_status); }; } &&
46262 { ac_try='test -s conftest$ac_exeext'
46263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46264 (eval $ac_try) 2>&5
46266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46267 (exit $ac_status); }; }; then
46268 ac_cv_lib_util_setproctitle=yes
46270 echo "$as_me: failed program was:" >&5
46271 sed 's/^/| /' conftest.$ac_ext >&5
46273 ac_cv_lib_util_setproctitle=no
46275 rm -f conftest.err conftest.$ac_objext \
46276 conftest$ac_exeext conftest.$ac_ext
46277 LIBS=$ac_check_lib_save_LIBS
46279 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46280 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46281 if test $ac_cv_lib_util_setproctitle = yes; then
46282 have_setproctitle=yes
46283 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46285 have_setproctitle=no
46287 "setproctitle.$ac_objext" | \
46288 *" setproctitle.$ac_objext" | \
46289 "setproctitle.$ac_objext "* | \
46290 *" setproctitle.$ac_objext "* ) ;;
46291 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46294 LIBSRCS="$LIBSRCS setproctitle.c"
46300 if test $have_setproctitle = yes ; then
46302 cat >>confdefs.h <<\_ACEOF
46303 #define HAVE_SETPROCTITLE 1
46309 if test $ol_enable_slp != no ; then
46311 for ac_header in slp.h
46313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46315 echo "$as_me:$LINENO: checking for $ac_header" >&5
46316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46318 echo $ECHO_N "(cached) $ECHO_C" >&6
46320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46323 # Is the header compilable?
46324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46326 cat >conftest.$ac_ext <<_ACEOF
46329 cat confdefs.h >>conftest.$ac_ext
46330 cat >>conftest.$ac_ext <<_ACEOF
46331 /* end confdefs.h. */
46332 $ac_includes_default
46333 #include <$ac_header>
46335 rm -f conftest.$ac_objext
46336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46337 (eval $ac_compile) 2>conftest.er1
46339 grep -v '^ *+' conftest.er1 >conftest.err
46341 cat conftest.err >&5
46342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46343 (exit $ac_status); } &&
46344 { ac_try='test -z "$ac_c_werror_flag"
46345 || test ! -s conftest.err'
46346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46347 (eval $ac_try) 2>&5
46349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46350 (exit $ac_status); }; } &&
46351 { ac_try='test -s conftest.$ac_objext'
46352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46353 (eval $ac_try) 2>&5
46355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46356 (exit $ac_status); }; }; then
46357 ac_header_compiler=yes
46359 echo "$as_me: failed program was:" >&5
46360 sed 's/^/| /' conftest.$ac_ext >&5
46362 ac_header_compiler=no
46364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46366 echo "${ECHO_T}$ac_header_compiler" >&6
46368 # Is the header present?
46369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46371 cat >conftest.$ac_ext <<_ACEOF
46374 cat confdefs.h >>conftest.$ac_ext
46375 cat >>conftest.$ac_ext <<_ACEOF
46376 /* end confdefs.h. */
46377 #include <$ac_header>
46379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46382 grep -v '^ *+' conftest.er1 >conftest.err
46384 cat conftest.err >&5
46385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46386 (exit $ac_status); } >/dev/null; then
46387 if test -s conftest.err; then
46388 ac_cpp_err=$ac_c_preproc_warn_flag
46389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46396 if test -z "$ac_cpp_err"; then
46397 ac_header_preproc=yes
46399 echo "$as_me: failed program was:" >&5
46400 sed 's/^/| /' conftest.$ac_ext >&5
46402 ac_header_preproc=no
46404 rm -f conftest.err conftest.$ac_ext
46405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46406 echo "${ECHO_T}$ac_header_preproc" >&6
46408 # So? What about this header?
46409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46415 ac_header_preproc=yes
46418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46432 ## ------------------------------------------ ##
46433 ## Report this to the AC_PACKAGE_NAME lists. ##
46434 ## ------------------------------------------ ##
46437 sed "s/^/$as_me: WARNING: /" >&2
46440 echo "$as_me:$LINENO: checking for $ac_header" >&5
46441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46443 echo $ECHO_N "(cached) $ECHO_C" >&6
46445 eval "$as_ac_Header=\$ac_header_preproc"
46447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46452 cat >>confdefs.h <<_ACEOF
46453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46461 if test $ac_cv_header_slp_h = yes ; then
46462 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46463 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46464 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46465 echo $ECHO_N "(cached) $ECHO_C" >&6
46467 ac_check_lib_save_LIBS=$LIBS
46469 cat >conftest.$ac_ext <<_ACEOF
46472 cat confdefs.h >>conftest.$ac_ext
46473 cat >>conftest.$ac_ext <<_ACEOF
46474 /* end confdefs.h. */
46476 /* Override any gcc2 internal prototype to avoid an error. */
46480 /* We use char because int might match the return type of a gcc2
46481 builtin and then its argument prototype would still apply. */
46491 rm -f conftest.$ac_objext conftest$ac_exeext
46492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46493 (eval $ac_link) 2>conftest.er1
46495 grep -v '^ *+' conftest.er1 >conftest.err
46497 cat conftest.err >&5
46498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46499 (exit $ac_status); } &&
46500 { ac_try='test -z "$ac_c_werror_flag"
46501 || test ! -s conftest.err'
46502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46503 (eval $ac_try) 2>&5
46505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46506 (exit $ac_status); }; } &&
46507 { ac_try='test -s conftest$ac_exeext'
46508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46509 (eval $ac_try) 2>&5
46511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46512 (exit $ac_status); }; }; then
46513 ac_cv_lib_slp_SLPOpen=yes
46515 echo "$as_me: failed program was:" >&5
46516 sed 's/^/| /' conftest.$ac_ext >&5
46518 ac_cv_lib_slp_SLPOpen=no
46520 rm -f conftest.err conftest.$ac_objext \
46521 conftest$ac_exeext conftest.$ac_ext
46522 LIBS=$ac_check_lib_save_LIBS
46524 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46525 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46526 if test $ac_cv_lib_slp_SLPOpen = yes; then
46532 if test $have_slp = yes ; then
46534 cat >>confdefs.h <<\_ACEOF
46538 SLAPD_SLP_LIBS=-lslp
46541 elif test $ol_enable_slp = yes ; then
46542 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46543 echo "$as_me: error: SLP not found" >&2;}
46544 { (exit 1); exit 1; }; }
46548 if test "$ol_with_multiple_precision" != "no" ; then
46554 for ac_header in openssl/bn.h bn.h
46556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46558 echo "$as_me:$LINENO: checking for $ac_header" >&5
46559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46561 echo $ECHO_N "(cached) $ECHO_C" >&6
46563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46566 # Is the header compilable?
46567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46569 cat >conftest.$ac_ext <<_ACEOF
46572 cat confdefs.h >>conftest.$ac_ext
46573 cat >>conftest.$ac_ext <<_ACEOF
46574 /* end confdefs.h. */
46575 $ac_includes_default
46576 #include <$ac_header>
46578 rm -f conftest.$ac_objext
46579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46580 (eval $ac_compile) 2>conftest.er1
46582 grep -v '^ *+' conftest.er1 >conftest.err
46584 cat conftest.err >&5
46585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46586 (exit $ac_status); } &&
46587 { ac_try='test -z "$ac_c_werror_flag"
46588 || test ! -s conftest.err'
46589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46590 (eval $ac_try) 2>&5
46592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46593 (exit $ac_status); }; } &&
46594 { ac_try='test -s conftest.$ac_objext'
46595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46596 (eval $ac_try) 2>&5
46598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46599 (exit $ac_status); }; }; then
46600 ac_header_compiler=yes
46602 echo "$as_me: failed program was:" >&5
46603 sed 's/^/| /' conftest.$ac_ext >&5
46605 ac_header_compiler=no
46607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46609 echo "${ECHO_T}$ac_header_compiler" >&6
46611 # Is the header present?
46612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46614 cat >conftest.$ac_ext <<_ACEOF
46617 cat confdefs.h >>conftest.$ac_ext
46618 cat >>conftest.$ac_ext <<_ACEOF
46619 /* end confdefs.h. */
46620 #include <$ac_header>
46622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46625 grep -v '^ *+' conftest.er1 >conftest.err
46627 cat conftest.err >&5
46628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46629 (exit $ac_status); } >/dev/null; then
46630 if test -s conftest.err; then
46631 ac_cpp_err=$ac_c_preproc_warn_flag
46632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46639 if test -z "$ac_cpp_err"; then
46640 ac_header_preproc=yes
46642 echo "$as_me: failed program was:" >&5
46643 sed 's/^/| /' conftest.$ac_ext >&5
46645 ac_header_preproc=no
46647 rm -f conftest.err conftest.$ac_ext
46648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46649 echo "${ECHO_T}$ac_header_preproc" >&6
46651 # So? What about this header?
46652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46658 ac_header_preproc=yes
46661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46675 ## ------------------------------------------ ##
46676 ## Report this to the AC_PACKAGE_NAME lists. ##
46677 ## ------------------------------------------ ##
46680 sed "s/^/$as_me: WARNING: /" >&2
46683 echo "$as_me:$LINENO: checking for $ac_header" >&5
46684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46686 echo $ECHO_N "(cached) $ECHO_C" >&6
46688 eval "$as_ac_Header=\$ac_header_preproc"
46690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46695 cat >>confdefs.h <<_ACEOF
46696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46705 for ac_header in openssl/crypto.h crypto.h
46707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46709 echo "$as_me:$LINENO: checking for $ac_header" >&5
46710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46712 echo $ECHO_N "(cached) $ECHO_C" >&6
46714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46717 # Is the header compilable?
46718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46720 cat >conftest.$ac_ext <<_ACEOF
46723 cat confdefs.h >>conftest.$ac_ext
46724 cat >>conftest.$ac_ext <<_ACEOF
46725 /* end confdefs.h. */
46726 $ac_includes_default
46727 #include <$ac_header>
46729 rm -f conftest.$ac_objext
46730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46731 (eval $ac_compile) 2>conftest.er1
46733 grep -v '^ *+' conftest.er1 >conftest.err
46735 cat conftest.err >&5
46736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46737 (exit $ac_status); } &&
46738 { ac_try='test -z "$ac_c_werror_flag"
46739 || test ! -s conftest.err'
46740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46741 (eval $ac_try) 2>&5
46743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46744 (exit $ac_status); }; } &&
46745 { ac_try='test -s conftest.$ac_objext'
46746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46747 (eval $ac_try) 2>&5
46749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46750 (exit $ac_status); }; }; then
46751 ac_header_compiler=yes
46753 echo "$as_me: failed program was:" >&5
46754 sed 's/^/| /' conftest.$ac_ext >&5
46756 ac_header_compiler=no
46758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46760 echo "${ECHO_T}$ac_header_compiler" >&6
46762 # Is the header present?
46763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46765 cat >conftest.$ac_ext <<_ACEOF
46768 cat confdefs.h >>conftest.$ac_ext
46769 cat >>conftest.$ac_ext <<_ACEOF
46770 /* end confdefs.h. */
46771 #include <$ac_header>
46773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46776 grep -v '^ *+' conftest.er1 >conftest.err
46778 cat conftest.err >&5
46779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46780 (exit $ac_status); } >/dev/null; then
46781 if test -s conftest.err; then
46782 ac_cpp_err=$ac_c_preproc_warn_flag
46783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46790 if test -z "$ac_cpp_err"; then
46791 ac_header_preproc=yes
46793 echo "$as_me: failed program was:" >&5
46794 sed 's/^/| /' conftest.$ac_ext >&5
46796 ac_header_preproc=no
46798 rm -f conftest.err conftest.$ac_ext
46799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46800 echo "${ECHO_T}$ac_header_preproc" >&6
46802 # So? What about this header?
46803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46809 ac_header_preproc=yes
46812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46826 ## ------------------------------------------ ##
46827 ## Report this to the AC_PACKAGE_NAME lists. ##
46828 ## ------------------------------------------ ##
46831 sed "s/^/$as_me: WARNING: /" >&2
46834 echo "$as_me:$LINENO: checking for $ac_header" >&5
46835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46837 echo $ECHO_N "(cached) $ECHO_C" >&6
46839 eval "$as_ac_Header=\$ac_header_preproc"
46841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46846 cat >>confdefs.h <<_ACEOF
46847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46855 for ac_header in gmp.h
46857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46859 echo "$as_me:$LINENO: checking for $ac_header" >&5
46860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46862 echo $ECHO_N "(cached) $ECHO_C" >&6
46864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46867 # Is the header compilable?
46868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46870 cat >conftest.$ac_ext <<_ACEOF
46873 cat confdefs.h >>conftest.$ac_ext
46874 cat >>conftest.$ac_ext <<_ACEOF
46875 /* end confdefs.h. */
46876 $ac_includes_default
46877 #include <$ac_header>
46879 rm -f conftest.$ac_objext
46880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46881 (eval $ac_compile) 2>conftest.er1
46883 grep -v '^ *+' conftest.er1 >conftest.err
46885 cat conftest.err >&5
46886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46887 (exit $ac_status); } &&
46888 { ac_try='test -z "$ac_c_werror_flag"
46889 || test ! -s conftest.err'
46890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46891 (eval $ac_try) 2>&5
46893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46894 (exit $ac_status); }; } &&
46895 { ac_try='test -s conftest.$ac_objext'
46896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46897 (eval $ac_try) 2>&5
46899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46900 (exit $ac_status); }; }; then
46901 ac_header_compiler=yes
46903 echo "$as_me: failed program was:" >&5
46904 sed 's/^/| /' conftest.$ac_ext >&5
46906 ac_header_compiler=no
46908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46910 echo "${ECHO_T}$ac_header_compiler" >&6
46912 # Is the header present?
46913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46915 cat >conftest.$ac_ext <<_ACEOF
46918 cat confdefs.h >>conftest.$ac_ext
46919 cat >>conftest.$ac_ext <<_ACEOF
46920 /* end confdefs.h. */
46921 #include <$ac_header>
46923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46926 grep -v '^ *+' conftest.er1 >conftest.err
46928 cat conftest.err >&5
46929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46930 (exit $ac_status); } >/dev/null; then
46931 if test -s conftest.err; then
46932 ac_cpp_err=$ac_c_preproc_warn_flag
46933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46940 if test -z "$ac_cpp_err"; then
46941 ac_header_preproc=yes
46943 echo "$as_me: failed program was:" >&5
46944 sed 's/^/| /' conftest.$ac_ext >&5
46946 ac_header_preproc=no
46948 rm -f conftest.err conftest.$ac_ext
46949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46950 echo "${ECHO_T}$ac_header_preproc" >&6
46952 # So? What about this header?
46953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46959 ac_header_preproc=yes
46962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46976 ## ------------------------------------------ ##
46977 ## Report this to the AC_PACKAGE_NAME lists. ##
46978 ## ------------------------------------------ ##
46981 sed "s/^/$as_me: WARNING: /" >&2
46984 echo "$as_me:$LINENO: checking for $ac_header" >&5
46985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46987 echo $ECHO_N "(cached) $ECHO_C" >&6
46989 eval "$as_ac_Header=\$ac_header_preproc"
46991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46996 cat >>confdefs.h <<_ACEOF
46997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47005 if test "$ol_with_tls" = "found" ; then
47007 ol_have_crypto_h=no
47009 if test "$ac_cv_header_openssl_bn_h" = "yes" \
47010 -o "$ac_cv_header_bn_h" = "yes" ; then
47014 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
47015 -o "$ac_cv_header_crypto_h" = "yes" ; then
47016 ol_have_crypto_h=yes
47019 if test "$ol_have_bn_h" = "yes" \
47020 -a "$ol_have_crypto_h" = "yes" ; then
47025 if test $ac_cv_header_gmp_h = yes ; then
47026 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
47027 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
47028 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
47029 echo $ECHO_N "(cached) $ECHO_C" >&6
47031 ac_check_lib_save_LIBS=$LIBS
47033 cat >conftest.$ac_ext <<_ACEOF
47036 cat confdefs.h >>conftest.$ac_ext
47037 cat >>conftest.$ac_ext <<_ACEOF
47038 /* end confdefs.h. */
47040 /* Override any gcc2 internal prototype to avoid an error. */
47044 /* We use char because int might match the return type of a gcc2
47045 builtin and then its argument prototype would still apply. */
47046 char __gmpz_add_ui ();
47055 rm -f conftest.$ac_objext conftest$ac_exeext
47056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47057 (eval $ac_link) 2>conftest.er1
47059 grep -v '^ *+' conftest.er1 >conftest.err
47061 cat conftest.err >&5
47062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47063 (exit $ac_status); } &&
47064 { ac_try='test -z "$ac_c_werror_flag"
47065 || test ! -s conftest.err'
47066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47067 (eval $ac_try) 2>&5
47069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070 (exit $ac_status); }; } &&
47071 { ac_try='test -s conftest$ac_exeext'
47072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47073 (eval $ac_try) 2>&5
47075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47076 (exit $ac_status); }; }; then
47077 ac_cv_lib_gmp___gmpz_add_ui=yes
47079 echo "$as_me: failed program was:" >&5
47080 sed 's/^/| /' conftest.$ac_ext >&5
47082 ac_cv_lib_gmp___gmpz_add_ui=no
47084 rm -f conftest.err conftest.$ac_objext \
47085 conftest$ac_exeext conftest.$ac_ext
47086 LIBS=$ac_check_lib_save_LIBS
47088 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
47089 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47090 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47096 if test $have_gmp = yes ; then
47101 echo "$as_me:$LINENO: checking for multiple precision support" >&5
47102 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47104 ol_mp_support="none"
47105 case "$ol_with_multiple_precision" in
47107 if test "$ol_have_bignum" = "yes" ; then
47108 ol_mp_support="bignum"
47110 if test "$ol_have_gmp" = "yes" ; then
47111 ol_mp_support="gmp"
47116 if test "$ol_have_bignum" != "yes" ; then
47117 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47118 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47119 { (exit 1); exit 1; }; }
47121 ol_mp_support="bignum"
47124 if test "$ol_have_gmp" != "yes" ; then
47125 { { echo "$as_me:$LINENO: error: GMP not available" >&5
47126 echo "$as_me: error: GMP not available" >&2;}
47127 { (exit 1); exit 1; }; }
47129 ol_mp_support="gmp"
47132 if test "$ol_have_bignum" = "yes" ; then
47133 ol_mp_support="bignum"
47134 elif test "$ol_have_gmp" = "yes" ; then
47135 ol_mp_support="gmp"
47137 { { echo "$as_me:$LINENO: error: not available" >&5
47138 echo "$as_me: error: not available" >&2;}
47139 { (exit 1); exit 1; }; }
47144 case "$ol_mp_support" in
47147 cat >>confdefs.h <<\_ACEOF
47148 #define HAVE_BIGNUM 1
47154 cat >>confdefs.h <<\_ACEOF
47158 SLAPD_GMP_LIBS=-lgmp
47164 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47165 echo "${ECHO_T}$ol_mp_support" >&6
47169 echo "$as_me:$LINENO: checking for mode_t" >&5
47170 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47171 if test "${ac_cv_type_mode_t+set}" = set; then
47172 echo $ECHO_N "(cached) $ECHO_C" >&6
47174 cat >conftest.$ac_ext <<_ACEOF
47177 cat confdefs.h >>conftest.$ac_ext
47178 cat >>conftest.$ac_ext <<_ACEOF
47179 /* end confdefs.h. */
47180 $ac_includes_default
47186 if (sizeof (mode_t))
47192 rm -f conftest.$ac_objext
47193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47194 (eval $ac_compile) 2>conftest.er1
47196 grep -v '^ *+' conftest.er1 >conftest.err
47198 cat conftest.err >&5
47199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47200 (exit $ac_status); } &&
47201 { ac_try='test -z "$ac_c_werror_flag"
47202 || test ! -s conftest.err'
47203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47204 (eval $ac_try) 2>&5
47206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47207 (exit $ac_status); }; } &&
47208 { ac_try='test -s conftest.$ac_objext'
47209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47210 (eval $ac_try) 2>&5
47212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47213 (exit $ac_status); }; }; then
47214 ac_cv_type_mode_t=yes
47216 echo "$as_me: failed program was:" >&5
47217 sed 's/^/| /' conftest.$ac_ext >&5
47219 ac_cv_type_mode_t=no
47221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47223 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47224 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47225 if test $ac_cv_type_mode_t = yes; then
47229 cat >>confdefs.h <<_ACEOF
47235 echo "$as_me:$LINENO: checking for off_t" >&5
47236 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47237 if test "${ac_cv_type_off_t+set}" = set; then
47238 echo $ECHO_N "(cached) $ECHO_C" >&6
47240 cat >conftest.$ac_ext <<_ACEOF
47243 cat confdefs.h >>conftest.$ac_ext
47244 cat >>conftest.$ac_ext <<_ACEOF
47245 /* end confdefs.h. */
47246 $ac_includes_default
47252 if (sizeof (off_t))
47258 rm -f conftest.$ac_objext
47259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47260 (eval $ac_compile) 2>conftest.er1
47262 grep -v '^ *+' conftest.er1 >conftest.err
47264 cat conftest.err >&5
47265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47266 (exit $ac_status); } &&
47267 { ac_try='test -z "$ac_c_werror_flag"
47268 || test ! -s conftest.err'
47269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47270 (eval $ac_try) 2>&5
47272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47273 (exit $ac_status); }; } &&
47274 { ac_try='test -s conftest.$ac_objext'
47275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47276 (eval $ac_try) 2>&5
47278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279 (exit $ac_status); }; }; then
47280 ac_cv_type_off_t=yes
47282 echo "$as_me: failed program was:" >&5
47283 sed 's/^/| /' conftest.$ac_ext >&5
47285 ac_cv_type_off_t=no
47287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47289 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47290 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47291 if test $ac_cv_type_off_t = yes; then
47295 cat >>confdefs.h <<_ACEOF
47301 echo "$as_me:$LINENO: checking for pid_t" >&5
47302 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47303 if test "${ac_cv_type_pid_t+set}" = set; then
47304 echo $ECHO_N "(cached) $ECHO_C" >&6
47306 cat >conftest.$ac_ext <<_ACEOF
47309 cat confdefs.h >>conftest.$ac_ext
47310 cat >>conftest.$ac_ext <<_ACEOF
47311 /* end confdefs.h. */
47312 $ac_includes_default
47318 if (sizeof (pid_t))
47324 rm -f conftest.$ac_objext
47325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47326 (eval $ac_compile) 2>conftest.er1
47328 grep -v '^ *+' conftest.er1 >conftest.err
47330 cat conftest.err >&5
47331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47332 (exit $ac_status); } &&
47333 { ac_try='test -z "$ac_c_werror_flag"
47334 || test ! -s conftest.err'
47335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47336 (eval $ac_try) 2>&5
47338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339 (exit $ac_status); }; } &&
47340 { ac_try='test -s conftest.$ac_objext'
47341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47342 (eval $ac_try) 2>&5
47344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47345 (exit $ac_status); }; }; then
47346 ac_cv_type_pid_t=yes
47348 echo "$as_me: failed program was:" >&5
47349 sed 's/^/| /' conftest.$ac_ext >&5
47351 ac_cv_type_pid_t=no
47353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47355 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47356 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47357 if test $ac_cv_type_pid_t = yes; then
47361 cat >>confdefs.h <<_ACEOF
47367 echo "$as_me:$LINENO: checking for ssize_t" >&5
47368 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47369 if test "${ac_cv_type_ssize_t+set}" = set; then
47370 echo $ECHO_N "(cached) $ECHO_C" >&6
47372 cat >conftest.$ac_ext <<_ACEOF
47375 cat confdefs.h >>conftest.$ac_ext
47376 cat >>conftest.$ac_ext <<_ACEOF
47377 /* end confdefs.h. */
47378 $ac_includes_default
47384 if (sizeof (ssize_t))
47390 rm -f conftest.$ac_objext
47391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47392 (eval $ac_compile) 2>conftest.er1
47394 grep -v '^ *+' conftest.er1 >conftest.err
47396 cat conftest.err >&5
47397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47398 (exit $ac_status); } &&
47399 { ac_try='test -z "$ac_c_werror_flag"
47400 || test ! -s conftest.err'
47401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47402 (eval $ac_try) 2>&5
47404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47405 (exit $ac_status); }; } &&
47406 { ac_try='test -s conftest.$ac_objext'
47407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47408 (eval $ac_try) 2>&5
47410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411 (exit $ac_status); }; }; then
47412 ac_cv_type_ssize_t=yes
47414 echo "$as_me: failed program was:" >&5
47415 sed 's/^/| /' conftest.$ac_ext >&5
47417 ac_cv_type_ssize_t=no
47419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47421 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47422 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47423 if test $ac_cv_type_ssize_t = yes; then
47427 cat >>confdefs.h <<_ACEOF
47428 #define ssize_t signed int
47433 echo "$as_me:$LINENO: checking for caddr_t" >&5
47434 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47435 if test "${ac_cv_type_caddr_t+set}" = set; then
47436 echo $ECHO_N "(cached) $ECHO_C" >&6
47438 cat >conftest.$ac_ext <<_ACEOF
47441 cat confdefs.h >>conftest.$ac_ext
47442 cat >>conftest.$ac_ext <<_ACEOF
47443 /* end confdefs.h. */
47444 $ac_includes_default
47450 if (sizeof (caddr_t))
47456 rm -f conftest.$ac_objext
47457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47458 (eval $ac_compile) 2>conftest.er1
47460 grep -v '^ *+' conftest.er1 >conftest.err
47462 cat conftest.err >&5
47463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47464 (exit $ac_status); } &&
47465 { ac_try='test -z "$ac_c_werror_flag"
47466 || test ! -s conftest.err'
47467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47468 (eval $ac_try) 2>&5
47470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47471 (exit $ac_status); }; } &&
47472 { ac_try='test -s conftest.$ac_objext'
47473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47474 (eval $ac_try) 2>&5
47476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47477 (exit $ac_status); }; }; then
47478 ac_cv_type_caddr_t=yes
47480 echo "$as_me: failed program was:" >&5
47481 sed 's/^/| /' conftest.$ac_ext >&5
47483 ac_cv_type_caddr_t=no
47485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47487 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47488 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47489 if test $ac_cv_type_caddr_t = yes; then
47493 cat >>confdefs.h <<_ACEOF
47494 #define caddr_t char *
47499 echo "$as_me:$LINENO: checking for size_t" >&5
47500 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47501 if test "${ac_cv_type_size_t+set}" = set; then
47502 echo $ECHO_N "(cached) $ECHO_C" >&6
47504 cat >conftest.$ac_ext <<_ACEOF
47507 cat confdefs.h >>conftest.$ac_ext
47508 cat >>conftest.$ac_ext <<_ACEOF
47509 /* end confdefs.h. */
47510 $ac_includes_default
47516 if (sizeof (size_t))
47522 rm -f conftest.$ac_objext
47523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47524 (eval $ac_compile) 2>conftest.er1
47526 grep -v '^ *+' conftest.er1 >conftest.err
47528 cat conftest.err >&5
47529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47530 (exit $ac_status); } &&
47531 { ac_try='test -z "$ac_c_werror_flag"
47532 || test ! -s conftest.err'
47533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47534 (eval $ac_try) 2>&5
47536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47537 (exit $ac_status); }; } &&
47538 { ac_try='test -s conftest.$ac_objext'
47539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47540 (eval $ac_try) 2>&5
47542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47543 (exit $ac_status); }; }; then
47544 ac_cv_type_size_t=yes
47546 echo "$as_me: failed program was:" >&5
47547 sed 's/^/| /' conftest.$ac_ext >&5
47549 ac_cv_type_size_t=no
47551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47553 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47554 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47555 if test $ac_cv_type_size_t = yes; then
47559 cat >>confdefs.h <<_ACEOF
47560 #define size_t unsigned
47566 echo "$as_me:$LINENO: checking for long long" >&5
47567 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47568 if test "${ac_cv_type_long_long+set}" = set; then
47569 echo $ECHO_N "(cached) $ECHO_C" >&6
47571 cat >conftest.$ac_ext <<_ACEOF
47574 cat confdefs.h >>conftest.$ac_ext
47575 cat >>conftest.$ac_ext <<_ACEOF
47576 /* end confdefs.h. */
47577 $ac_includes_default
47581 if ((long long *) 0)
47583 if (sizeof (long long))
47589 rm -f conftest.$ac_objext
47590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47591 (eval $ac_compile) 2>conftest.er1
47593 grep -v '^ *+' conftest.er1 >conftest.err
47595 cat conftest.err >&5
47596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47597 (exit $ac_status); } &&
47598 { ac_try='test -z "$ac_c_werror_flag"
47599 || test ! -s conftest.err'
47600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47601 (eval $ac_try) 2>&5
47603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47604 (exit $ac_status); }; } &&
47605 { ac_try='test -s conftest.$ac_objext'
47606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47607 (eval $ac_try) 2>&5
47609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47610 (exit $ac_status); }; }; then
47611 ac_cv_type_long_long=yes
47613 echo "$as_me: failed program was:" >&5
47614 sed 's/^/| /' conftest.$ac_ext >&5
47616 ac_cv_type_long_long=no
47618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47620 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47621 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47622 if test $ac_cv_type_long_long = yes; then
47624 cat >>confdefs.h <<_ACEOF
47625 #define HAVE_LONG_LONG 1
47631 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47632 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47633 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47634 echo $ECHO_N "(cached) $ECHO_C" >&6
47636 cat >conftest.$ac_ext <<_ACEOF
47639 cat confdefs.h >>conftest.$ac_ext
47640 cat >>conftest.$ac_ext <<_ACEOF
47641 /* end confdefs.h. */
47642 $ac_includes_default
47646 if ((ptrdiff_t *) 0)
47648 if (sizeof (ptrdiff_t))
47654 rm -f conftest.$ac_objext
47655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47656 (eval $ac_compile) 2>conftest.er1
47658 grep -v '^ *+' conftest.er1 >conftest.err
47660 cat conftest.err >&5
47661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47662 (exit $ac_status); } &&
47663 { ac_try='test -z "$ac_c_werror_flag"
47664 || test ! -s conftest.err'
47665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47666 (eval $ac_try) 2>&5
47668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47669 (exit $ac_status); }; } &&
47670 { ac_try='test -s conftest.$ac_objext'
47671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47672 (eval $ac_try) 2>&5
47674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47675 (exit $ac_status); }; }; then
47676 ac_cv_type_ptrdiff_t=yes
47678 echo "$as_me: failed program was:" >&5
47679 sed 's/^/| /' conftest.$ac_ext >&5
47681 ac_cv_type_ptrdiff_t=no
47683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47685 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47686 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47687 if test $ac_cv_type_ptrdiff_t = yes; then
47689 cat >>confdefs.h <<_ACEOF
47690 #define HAVE_PTRDIFF_T 1
47697 echo "$as_me:$LINENO: checking for socklen_t" >&5
47698 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47699 if test "${ac_cv_type_socklen_t+set}" = set; then
47700 echo $ECHO_N "(cached) $ECHO_C" >&6
47702 cat >conftest.$ac_ext <<_ACEOF
47705 cat confdefs.h >>conftest.$ac_ext
47706 cat >>conftest.$ac_ext <<_ACEOF
47707 /* end confdefs.h. */
47708 $ac_includes_default
47709 #ifdef HAVE_SYS_SOCKET_H
47710 #include <sys/socket.h>
47717 if ((socklen_t *) 0)
47719 if (sizeof (socklen_t))
47725 rm -f conftest.$ac_objext
47726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47727 (eval $ac_compile) 2>conftest.er1
47729 grep -v '^ *+' conftest.er1 >conftest.err
47731 cat conftest.err >&5
47732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47733 (exit $ac_status); } &&
47734 { ac_try='test -z "$ac_c_werror_flag"
47735 || test ! -s conftest.err'
47736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47737 (eval $ac_try) 2>&5
47739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47740 (exit $ac_status); }; } &&
47741 { ac_try='test -s conftest.$ac_objext'
47742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47743 (eval $ac_try) 2>&5
47745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47746 (exit $ac_status); }; }; then
47747 ac_cv_type_socklen_t=yes
47749 echo "$as_me: failed program was:" >&5
47750 sed 's/^/| /' conftest.$ac_ext >&5
47752 ac_cv_type_socklen_t=no
47754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47756 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47757 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47758 if test $ac_cv_type_socklen_t = yes; then
47762 cat >>confdefs.h <<_ACEOF
47763 #define socklen_t int
47769 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47770 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47771 if test "${ac_cv_type_signal+set}" = set; then
47772 echo $ECHO_N "(cached) $ECHO_C" >&6
47774 cat >conftest.$ac_ext <<_ACEOF
47777 cat confdefs.h >>conftest.$ac_ext
47778 cat >>conftest.$ac_ext <<_ACEOF
47779 /* end confdefs.h. */
47780 #include <sys/types.h>
47781 #include <signal.h>
47786 extern "C" void (*signal (int, void (*)(int)))(int);
47788 void (*signal ()) ();
47799 rm -f conftest.$ac_objext
47800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47801 (eval $ac_compile) 2>conftest.er1
47803 grep -v '^ *+' conftest.er1 >conftest.err
47805 cat conftest.err >&5
47806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47807 (exit $ac_status); } &&
47808 { ac_try='test -z "$ac_c_werror_flag"
47809 || test ! -s conftest.err'
47810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47811 (eval $ac_try) 2>&5
47813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47814 (exit $ac_status); }; } &&
47815 { ac_try='test -s conftest.$ac_objext'
47816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47817 (eval $ac_try) 2>&5
47819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47820 (exit $ac_status); }; }; then
47821 ac_cv_type_signal=void
47823 echo "$as_me: failed program was:" >&5
47824 sed 's/^/| /' conftest.$ac_ext >&5
47826 ac_cv_type_signal=int
47828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47830 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47831 echo "${ECHO_T}$ac_cv_type_signal" >&6
47833 cat >>confdefs.h <<_ACEOF
47834 #define RETSIGTYPE $ac_cv_type_signal
47839 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47840 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47841 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47842 echo $ECHO_N "(cached) $ECHO_C" >&6
47844 cat >conftest.$ac_ext <<_ACEOF
47847 cat confdefs.h >>conftest.$ac_ext
47848 cat >>conftest.$ac_ext <<_ACEOF
47849 /* end confdefs.h. */
47850 $ac_includes_default
47851 #include <signal.h>
47857 if ((sig_atomic_t *) 0)
47859 if (sizeof (sig_atomic_t))
47865 rm -f conftest.$ac_objext
47866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47867 (eval $ac_compile) 2>conftest.er1
47869 grep -v '^ *+' conftest.er1 >conftest.err
47871 cat conftest.err >&5
47872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47873 (exit $ac_status); } &&
47874 { ac_try='test -z "$ac_c_werror_flag"
47875 || test ! -s conftest.err'
47876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47877 (eval $ac_try) 2>&5
47879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47880 (exit $ac_status); }; } &&
47881 { ac_try='test -s conftest.$ac_objext'
47882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47883 (eval $ac_try) 2>&5
47885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47886 (exit $ac_status); }; }; then
47887 ac_cv_type_sig_atomic_t=yes
47889 echo "$as_me: failed program was:" >&5
47890 sed 's/^/| /' conftest.$ac_ext >&5
47892 ac_cv_type_sig_atomic_t=no
47894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47896 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47897 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47898 if test $ac_cv_type_sig_atomic_t = yes; then
47902 cat >>confdefs.h <<_ACEOF
47903 #define sig_atomic_t int
47909 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47910 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47911 if test "${ac_cv_type_uid_t+set}" = set; then
47912 echo $ECHO_N "(cached) $ECHO_C" >&6
47914 cat >conftest.$ac_ext <<_ACEOF
47917 cat confdefs.h >>conftest.$ac_ext
47918 cat >>conftest.$ac_ext <<_ACEOF
47919 /* end confdefs.h. */
47920 #include <sys/types.h>
47923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47924 $EGREP "uid_t" >/dev/null 2>&1; then
47925 ac_cv_type_uid_t=yes
47927 ac_cv_type_uid_t=no
47932 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47933 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47934 if test $ac_cv_type_uid_t = no; then
47936 cat >>confdefs.h <<\_ACEOF
47941 cat >>confdefs.h <<\_ACEOF
47948 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47949 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47950 if test "${ac_cv_header_time+set}" = set; then
47951 echo $ECHO_N "(cached) $ECHO_C" >&6
47953 cat >conftest.$ac_ext <<_ACEOF
47956 cat confdefs.h >>conftest.$ac_ext
47957 cat >>conftest.$ac_ext <<_ACEOF
47958 /* end confdefs.h. */
47959 #include <sys/types.h>
47960 #include <sys/time.h>
47966 if ((struct tm *) 0)
47972 rm -f conftest.$ac_objext
47973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47974 (eval $ac_compile) 2>conftest.er1
47976 grep -v '^ *+' conftest.er1 >conftest.err
47978 cat conftest.err >&5
47979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47980 (exit $ac_status); } &&
47981 { ac_try='test -z "$ac_c_werror_flag"
47982 || test ! -s conftest.err'
47983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47984 (eval $ac_try) 2>&5
47986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47987 (exit $ac_status); }; } &&
47988 { ac_try='test -s conftest.$ac_objext'
47989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47990 (eval $ac_try) 2>&5
47992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47993 (exit $ac_status); }; }; then
47994 ac_cv_header_time=yes
47996 echo "$as_me: failed program was:" >&5
47997 sed 's/^/| /' conftest.$ac_ext >&5
47999 ac_cv_header_time=no
48001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48003 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48004 echo "${ECHO_T}$ac_cv_header_time" >&6
48005 if test $ac_cv_header_time = yes; then
48007 cat >>confdefs.h <<\_ACEOF
48008 #define TIME_WITH_SYS_TIME 1
48013 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48014 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48015 if test "${ac_cv_struct_tm+set}" = set; then
48016 echo $ECHO_N "(cached) $ECHO_C" >&6
48018 cat >conftest.$ac_ext <<_ACEOF
48021 cat confdefs.h >>conftest.$ac_ext
48022 cat >>conftest.$ac_ext <<_ACEOF
48023 /* end confdefs.h. */
48024 #include <sys/types.h>
48030 struct tm *tp; tp->tm_sec;
48035 rm -f conftest.$ac_objext
48036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48037 (eval $ac_compile) 2>conftest.er1
48039 grep -v '^ *+' conftest.er1 >conftest.err
48041 cat conftest.err >&5
48042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48043 (exit $ac_status); } &&
48044 { ac_try='test -z "$ac_c_werror_flag"
48045 || test ! -s conftest.err'
48046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48047 (eval $ac_try) 2>&5
48049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48050 (exit $ac_status); }; } &&
48051 { ac_try='test -s conftest.$ac_objext'
48052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48053 (eval $ac_try) 2>&5
48055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48056 (exit $ac_status); }; }; then
48057 ac_cv_struct_tm=time.h
48059 echo "$as_me: failed program was:" >&5
48060 sed 's/^/| /' conftest.$ac_ext >&5
48062 ac_cv_struct_tm=sys/time.h
48064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48066 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48067 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48068 if test $ac_cv_struct_tm = sys/time.h; then
48070 cat >>confdefs.h <<\_ACEOF
48071 #define TM_IN_SYS_TIME 1
48076 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
48077 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
48078 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
48079 echo $ECHO_N "(cached) $ECHO_C" >&6
48081 cat >conftest.$ac_ext <<_ACEOF
48084 cat confdefs.h >>conftest.$ac_ext
48085 cat >>conftest.$ac_ext <<_ACEOF
48086 /* end confdefs.h. */
48087 $ac_includes_default
48091 static struct stat ac_aggr;
48092 if (ac_aggr.st_blksize)
48098 rm -f conftest.$ac_objext
48099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48100 (eval $ac_compile) 2>conftest.er1
48102 grep -v '^ *+' conftest.er1 >conftest.err
48104 cat conftest.err >&5
48105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48106 (exit $ac_status); } &&
48107 { ac_try='test -z "$ac_c_werror_flag"
48108 || test ! -s conftest.err'
48109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48110 (eval $ac_try) 2>&5
48112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48113 (exit $ac_status); }; } &&
48114 { ac_try='test -s conftest.$ac_objext'
48115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48116 (eval $ac_try) 2>&5
48118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48119 (exit $ac_status); }; }; then
48120 ac_cv_member_struct_stat_st_blksize=yes
48122 echo "$as_me: failed program was:" >&5
48123 sed 's/^/| /' conftest.$ac_ext >&5
48125 cat >conftest.$ac_ext <<_ACEOF
48128 cat confdefs.h >>conftest.$ac_ext
48129 cat >>conftest.$ac_ext <<_ACEOF
48130 /* end confdefs.h. */
48131 $ac_includes_default
48135 static struct stat ac_aggr;
48136 if (sizeof ac_aggr.st_blksize)
48142 rm -f conftest.$ac_objext
48143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48144 (eval $ac_compile) 2>conftest.er1
48146 grep -v '^ *+' conftest.er1 >conftest.err
48148 cat conftest.err >&5
48149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48150 (exit $ac_status); } &&
48151 { ac_try='test -z "$ac_c_werror_flag"
48152 || test ! -s conftest.err'
48153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48154 (eval $ac_try) 2>&5
48156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48157 (exit $ac_status); }; } &&
48158 { ac_try='test -s conftest.$ac_objext'
48159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48160 (eval $ac_try) 2>&5
48162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48163 (exit $ac_status); }; }; then
48164 ac_cv_member_struct_stat_st_blksize=yes
48166 echo "$as_me: failed program was:" >&5
48167 sed 's/^/| /' conftest.$ac_ext >&5
48169 ac_cv_member_struct_stat_st_blksize=no
48171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48176 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48177 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48179 cat >>confdefs.h <<_ACEOF
48180 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48186 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48187 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48188 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48189 echo $ECHO_N "(cached) $ECHO_C" >&6
48191 cat >conftest.$ac_ext <<_ACEOF
48194 cat confdefs.h >>conftest.$ac_ext
48195 cat >>conftest.$ac_ext <<_ACEOF
48196 /* end confdefs.h. */
48197 $ac_includes_default
48203 static struct passwd ac_aggr;
48204 if (ac_aggr.pw_gecos)
48210 rm -f conftest.$ac_objext
48211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48212 (eval $ac_compile) 2>conftest.er1
48214 grep -v '^ *+' conftest.er1 >conftest.err
48216 cat conftest.err >&5
48217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48218 (exit $ac_status); } &&
48219 { ac_try='test -z "$ac_c_werror_flag"
48220 || test ! -s conftest.err'
48221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48222 (eval $ac_try) 2>&5
48224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48225 (exit $ac_status); }; } &&
48226 { ac_try='test -s conftest.$ac_objext'
48227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48228 (eval $ac_try) 2>&5
48230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48231 (exit $ac_status); }; }; then
48232 ac_cv_member_struct_passwd_pw_gecos=yes
48234 echo "$as_me: failed program was:" >&5
48235 sed 's/^/| /' conftest.$ac_ext >&5
48237 cat >conftest.$ac_ext <<_ACEOF
48240 cat confdefs.h >>conftest.$ac_ext
48241 cat >>conftest.$ac_ext <<_ACEOF
48242 /* end confdefs.h. */
48243 $ac_includes_default
48249 static struct passwd ac_aggr;
48250 if (sizeof ac_aggr.pw_gecos)
48256 rm -f conftest.$ac_objext
48257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48258 (eval $ac_compile) 2>conftest.er1
48260 grep -v '^ *+' conftest.er1 >conftest.err
48262 cat conftest.err >&5
48263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48264 (exit $ac_status); } &&
48265 { ac_try='test -z "$ac_c_werror_flag"
48266 || test ! -s conftest.err'
48267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48268 (eval $ac_try) 2>&5
48270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48271 (exit $ac_status); }; } &&
48272 { ac_try='test -s conftest.$ac_objext'
48273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48274 (eval $ac_try) 2>&5
48276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48277 (exit $ac_status); }; }; then
48278 ac_cv_member_struct_passwd_pw_gecos=yes
48280 echo "$as_me: failed program was:" >&5
48281 sed 's/^/| /' conftest.$ac_ext >&5
48283 ac_cv_member_struct_passwd_pw_gecos=no
48285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48289 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48290 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48291 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48293 cat >>confdefs.h <<_ACEOF
48294 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48300 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48301 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48302 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48303 echo $ECHO_N "(cached) $ECHO_C" >&6
48305 cat >conftest.$ac_ext <<_ACEOF
48308 cat confdefs.h >>conftest.$ac_ext
48309 cat >>conftest.$ac_ext <<_ACEOF
48310 /* end confdefs.h. */
48311 $ac_includes_default
48317 static struct passwd ac_aggr;
48318 if (ac_aggr.pw_passwd)
48324 rm -f conftest.$ac_objext
48325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48326 (eval $ac_compile) 2>conftest.er1
48328 grep -v '^ *+' conftest.er1 >conftest.err
48330 cat conftest.err >&5
48331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48332 (exit $ac_status); } &&
48333 { ac_try='test -z "$ac_c_werror_flag"
48334 || test ! -s conftest.err'
48335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48336 (eval $ac_try) 2>&5
48338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48339 (exit $ac_status); }; } &&
48340 { ac_try='test -s conftest.$ac_objext'
48341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48342 (eval $ac_try) 2>&5
48344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48345 (exit $ac_status); }; }; then
48346 ac_cv_member_struct_passwd_pw_passwd=yes
48348 echo "$as_me: failed program was:" >&5
48349 sed 's/^/| /' conftest.$ac_ext >&5
48351 cat >conftest.$ac_ext <<_ACEOF
48354 cat confdefs.h >>conftest.$ac_ext
48355 cat >>conftest.$ac_ext <<_ACEOF
48356 /* end confdefs.h. */
48357 $ac_includes_default
48363 static struct passwd ac_aggr;
48364 if (sizeof ac_aggr.pw_passwd)
48370 rm -f conftest.$ac_objext
48371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48372 (eval $ac_compile) 2>conftest.er1
48374 grep -v '^ *+' conftest.er1 >conftest.err
48376 cat conftest.err >&5
48377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378 (exit $ac_status); } &&
48379 { ac_try='test -z "$ac_c_werror_flag"
48380 || test ! -s conftest.err'
48381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48382 (eval $ac_try) 2>&5
48384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48385 (exit $ac_status); }; } &&
48386 { ac_try='test -s conftest.$ac_objext'
48387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48388 (eval $ac_try) 2>&5
48390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48391 (exit $ac_status); }; }; then
48392 ac_cv_member_struct_passwd_pw_passwd=yes
48394 echo "$as_me: failed program was:" >&5
48395 sed 's/^/| /' conftest.$ac_ext >&5
48397 ac_cv_member_struct_passwd_pw_passwd=no
48399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48403 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48404 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48405 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48407 cat >>confdefs.h <<_ACEOF
48408 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48415 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48416 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48417 if test "${ol_cv_c_upper_lower+set}" = set; then
48418 echo $ECHO_N "(cached) $ECHO_C" >&6
48421 if test "$cross_compiling" = yes; then
48422 ol_cv_c_upper_lower=safe
48424 cat >conftest.$ac_ext <<_ACEOF
48427 cat confdefs.h >>conftest.$ac_ext
48428 cat >>conftest.$ac_ext <<_ACEOF
48429 /* end confdefs.h. */
48434 if ('C' == toupper('C'))
48440 rm -f conftest$ac_exeext
48441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48442 (eval $ac_link) 2>&5
48444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48447 (eval $ac_try) 2>&5
48449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48450 (exit $ac_status); }; }; then
48451 ol_cv_c_upper_lower=no
48453 echo "$as_me: program exited with status $ac_status" >&5
48454 echo "$as_me: failed program was:" >&5
48455 sed 's/^/| /' conftest.$ac_ext >&5
48457 ( exit $ac_status )
48458 ol_cv_c_upper_lower=yes
48460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48463 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48464 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48465 if test $ol_cv_c_upper_lower != no ; then
48467 cat >>confdefs.h <<\_ACEOF
48468 #define C_UPPER_LOWER 1
48473 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48474 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48475 if test "${ac_cv_c_const+set}" = set; then
48476 echo $ECHO_N "(cached) $ECHO_C" >&6
48478 cat >conftest.$ac_ext <<_ACEOF
48481 cat confdefs.h >>conftest.$ac_ext
48482 cat >>conftest.$ac_ext <<_ACEOF
48483 /* end confdefs.h. */
48488 /* FIXME: Include the comments suggested by Paul. */
48489 #ifndef __cplusplus
48490 /* Ultrix mips cc rejects this. */
48491 typedef int charset[2];
48493 /* SunOS 4.1.1 cc rejects this. */
48494 char const *const *ccp;
48496 /* NEC SVR4.0.2 mips cc rejects this. */
48497 struct point {int x, y;};
48498 static struct point const zero = {0,0};
48499 /* AIX XL C 1.02.0.0 rejects this.
48500 It does not let you subtract one const X* pointer from another in
48501 an arm of an if-expression whose if-part is not a constant
48503 const char *g = "string";
48504 ccp = &g + (g ? g-g : 0);
48505 /* HPUX 7.0 cc rejects these. */
48508 ccp = (char const *const *) p;
48509 { /* SCO 3.2v4 cc rejects this. */
48511 char const *s = 0 ? (char *) 0 : (char const *) 0;
48515 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48516 int x[] = {25, 17};
48517 const int *foo = &x[0];
48520 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48521 typedef const int *iptr;
48525 { /* AIX XL C 1.02.0.0 rejects this saying
48526 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48527 struct s { int j; const int *ap[3]; };
48528 struct s *b; b->j = 5;
48530 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48531 const int foo = 10;
48539 rm -f conftest.$ac_objext
48540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48541 (eval $ac_compile) 2>conftest.er1
48543 grep -v '^ *+' conftest.er1 >conftest.err
48545 cat conftest.err >&5
48546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48547 (exit $ac_status); } &&
48548 { ac_try='test -z "$ac_c_werror_flag"
48549 || test ! -s conftest.err'
48550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48551 (eval $ac_try) 2>&5
48553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48554 (exit $ac_status); }; } &&
48555 { ac_try='test -s conftest.$ac_objext'
48556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48557 (eval $ac_try) 2>&5
48559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48560 (exit $ac_status); }; }; then
48563 echo "$as_me: failed program was:" >&5
48564 sed 's/^/| /' conftest.$ac_ext >&5
48568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48570 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48571 echo "${ECHO_T}$ac_cv_c_const" >&6
48572 if test $ac_cv_c_const = no; then
48574 cat >>confdefs.h <<\_ACEOF
48580 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48581 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48582 if test "${ol_cv_c_volatile+set}" = set; then
48583 echo $ECHO_N "(cached) $ECHO_C" >&6
48585 cat >conftest.$ac_ext <<_ACEOF
48588 cat confdefs.h >>conftest.$ac_ext
48589 cat >>conftest.$ac_ext <<_ACEOF
48590 /* end confdefs.h. */
48595 volatile int a; int * volatile b = x ? &y : &z;
48596 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48602 rm -f conftest.$ac_objext
48603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48604 (eval $ac_compile) 2>conftest.er1
48606 grep -v '^ *+' conftest.er1 >conftest.err
48608 cat conftest.err >&5
48609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48610 (exit $ac_status); } &&
48611 { ac_try='test -z "$ac_c_werror_flag"
48612 || test ! -s conftest.err'
48613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48614 (eval $ac_try) 2>&5
48616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48617 (exit $ac_status); }; } &&
48618 { ac_try='test -s conftest.$ac_objext'
48619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48620 (eval $ac_try) 2>&5
48622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48623 (exit $ac_status); }; }; then
48624 ol_cv_c_volatile=yes
48626 echo "$as_me: failed program was:" >&5
48627 sed 's/^/| /' conftest.$ac_ext >&5
48629 ol_cv_c_volatile=no
48631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48633 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48634 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48635 if test $ol_cv_c_volatile = yes; then
48639 cat >>confdefs.h <<\_ACEOF
48646 if test $cross_compiling = yes ; then
48647 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48648 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48650 cat >>confdefs.h <<\_ACEOF
48651 #define CROSS_COMPILING 1
48655 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48656 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48657 if test "${ac_cv_c_bigendian+set}" = set; then
48658 echo $ECHO_N "(cached) $ECHO_C" >&6
48660 # See if sys/param.h defines the BYTE_ORDER macro.
48661 cat >conftest.$ac_ext <<_ACEOF
48664 cat confdefs.h >>conftest.$ac_ext
48665 cat >>conftest.$ac_ext <<_ACEOF
48666 /* end confdefs.h. */
48667 #include <sys/types.h>
48668 #include <sys/param.h>
48673 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48674 bogus endian macros
48681 rm -f conftest.$ac_objext
48682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48683 (eval $ac_compile) 2>conftest.er1
48685 grep -v '^ *+' conftest.er1 >conftest.err
48687 cat conftest.err >&5
48688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48689 (exit $ac_status); } &&
48690 { ac_try='test -z "$ac_c_werror_flag"
48691 || test ! -s conftest.err'
48692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48693 (eval $ac_try) 2>&5
48695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48696 (exit $ac_status); }; } &&
48697 { ac_try='test -s conftest.$ac_objext'
48698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48699 (eval $ac_try) 2>&5
48701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48702 (exit $ac_status); }; }; then
48703 # It does; now see whether it defined to BIG_ENDIAN or not.
48704 cat >conftest.$ac_ext <<_ACEOF
48707 cat confdefs.h >>conftest.$ac_ext
48708 cat >>conftest.$ac_ext <<_ACEOF
48709 /* end confdefs.h. */
48710 #include <sys/types.h>
48711 #include <sys/param.h>
48716 #if BYTE_ORDER != BIG_ENDIAN
48724 rm -f conftest.$ac_objext
48725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48726 (eval $ac_compile) 2>conftest.er1
48728 grep -v '^ *+' conftest.er1 >conftest.err
48730 cat conftest.err >&5
48731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48732 (exit $ac_status); } &&
48733 { ac_try='test -z "$ac_c_werror_flag"
48734 || test ! -s conftest.err'
48735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48736 (eval $ac_try) 2>&5
48738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48739 (exit $ac_status); }; } &&
48740 { ac_try='test -s conftest.$ac_objext'
48741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48742 (eval $ac_try) 2>&5
48744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48745 (exit $ac_status); }; }; then
48746 ac_cv_c_bigendian=yes
48748 echo "$as_me: failed program was:" >&5
48749 sed 's/^/| /' conftest.$ac_ext >&5
48751 ac_cv_c_bigendian=no
48753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48755 echo "$as_me: failed program was:" >&5
48756 sed 's/^/| /' conftest.$ac_ext >&5
48758 # It does not; compile a test program.
48759 if test "$cross_compiling" = yes; then
48760 # try to guess the endianness by grepping values into an object file
48761 ac_cv_c_bigendian=unknown
48762 cat >conftest.$ac_ext <<_ACEOF
48765 cat confdefs.h >>conftest.$ac_ext
48766 cat >>conftest.$ac_ext <<_ACEOF
48767 /* end confdefs.h. */
48768 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48769 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48770 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48771 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48772 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48773 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48777 _ascii (); _ebcdic ();
48782 rm -f conftest.$ac_objext
48783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48784 (eval $ac_compile) 2>conftest.er1
48786 grep -v '^ *+' conftest.er1 >conftest.err
48788 cat conftest.err >&5
48789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48790 (exit $ac_status); } &&
48791 { ac_try='test -z "$ac_c_werror_flag"
48792 || test ! -s conftest.err'
48793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48794 (eval $ac_try) 2>&5
48796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48797 (exit $ac_status); }; } &&
48798 { ac_try='test -s conftest.$ac_objext'
48799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48800 (eval $ac_try) 2>&5
48802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48803 (exit $ac_status); }; }; then
48804 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48805 ac_cv_c_bigendian=yes
48807 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48808 if test "$ac_cv_c_bigendian" = unknown; then
48809 ac_cv_c_bigendian=no
48811 # finding both strings is unlikely to happen, but who knows?
48812 ac_cv_c_bigendian=unknown
48816 echo "$as_me: failed program was:" >&5
48817 sed 's/^/| /' conftest.$ac_ext >&5
48820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48822 cat >conftest.$ac_ext <<_ACEOF
48825 cat confdefs.h >>conftest.$ac_ext
48826 cat >>conftest.$ac_ext <<_ACEOF
48827 /* end confdefs.h. */
48831 /* Are we little or big endian? From Harbison&Steele. */
48835 char c[sizeof (long)];
48838 exit (u.c[sizeof (long) - 1] == 1);
48841 rm -f conftest$ac_exeext
48842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48843 (eval $ac_link) 2>&5
48845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48848 (eval $ac_try) 2>&5
48850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48851 (exit $ac_status); }; }; then
48852 ac_cv_c_bigendian=no
48854 echo "$as_me: program exited with status $ac_status" >&5
48855 echo "$as_me: failed program was:" >&5
48856 sed 's/^/| /' conftest.$ac_ext >&5
48858 ( exit $ac_status )
48859 ac_cv_c_bigendian=yes
48861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48866 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48867 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48868 case $ac_cv_c_bigendian in
48871 cat >>confdefs.h <<\_ACEOF
48872 #define WORDS_BIGENDIAN 1
48878 { { echo "$as_me:$LINENO: error: unknown endianness
48879 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48880 echo "$as_me: error: unknown endianness
48881 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48882 { (exit 1); exit 1; }; } ;;
48887 echo "$as_me:$LINENO: checking for short" >&5
48888 echo $ECHO_N "checking for short... $ECHO_C" >&6
48889 if test "${ac_cv_type_short+set}" = set; then
48890 echo $ECHO_N "(cached) $ECHO_C" >&6
48892 cat >conftest.$ac_ext <<_ACEOF
48895 cat confdefs.h >>conftest.$ac_ext
48896 cat >>conftest.$ac_ext <<_ACEOF
48897 /* end confdefs.h. */
48898 $ac_includes_default
48904 if (sizeof (short))
48910 rm -f conftest.$ac_objext
48911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48912 (eval $ac_compile) 2>conftest.er1
48914 grep -v '^ *+' conftest.er1 >conftest.err
48916 cat conftest.err >&5
48917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48918 (exit $ac_status); } &&
48919 { ac_try='test -z "$ac_c_werror_flag"
48920 || test ! -s conftest.err'
48921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48922 (eval $ac_try) 2>&5
48924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48925 (exit $ac_status); }; } &&
48926 { ac_try='test -s conftest.$ac_objext'
48927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48928 (eval $ac_try) 2>&5
48930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48931 (exit $ac_status); }; }; then
48932 ac_cv_type_short=yes
48934 echo "$as_me: failed program was:" >&5
48935 sed 's/^/| /' conftest.$ac_ext >&5
48937 ac_cv_type_short=no
48939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48941 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48942 echo "${ECHO_T}$ac_cv_type_short" >&6
48944 echo "$as_me:$LINENO: checking size of short" >&5
48945 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48946 if test "${ac_cv_sizeof_short+set}" = set; then
48947 echo $ECHO_N "(cached) $ECHO_C" >&6
48949 if test "$ac_cv_type_short" = yes; then
48950 # The cast to unsigned long works around a bug in the HP C Compiler
48951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48953 # This bug is HP SR number 8606223364.
48954 if test "$cross_compiling" = yes; then
48955 # Depending upon the size, compute the lo and hi bounds.
48956 cat >conftest.$ac_ext <<_ACEOF
48959 cat confdefs.h >>conftest.$ac_ext
48960 cat >>conftest.$ac_ext <<_ACEOF
48961 /* end confdefs.h. */
48962 $ac_includes_default
48966 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48973 rm -f conftest.$ac_objext
48974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48975 (eval $ac_compile) 2>conftest.er1
48977 grep -v '^ *+' conftest.er1 >conftest.err
48979 cat conftest.err >&5
48980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48981 (exit $ac_status); } &&
48982 { ac_try='test -z "$ac_c_werror_flag"
48983 || test ! -s conftest.err'
48984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48985 (eval $ac_try) 2>&5
48987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48988 (exit $ac_status); }; } &&
48989 { ac_try='test -s conftest.$ac_objext'
48990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48991 (eval $ac_try) 2>&5
48993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48994 (exit $ac_status); }; }; then
48997 cat >conftest.$ac_ext <<_ACEOF
49000 cat confdefs.h >>conftest.$ac_ext
49001 cat >>conftest.$ac_ext <<_ACEOF
49002 /* end confdefs.h. */
49003 $ac_includes_default
49007 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49014 rm -f conftest.$ac_objext
49015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49016 (eval $ac_compile) 2>conftest.er1
49018 grep -v '^ *+' conftest.er1 >conftest.err
49020 cat conftest.err >&5
49021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49022 (exit $ac_status); } &&
49023 { ac_try='test -z "$ac_c_werror_flag"
49024 || test ! -s conftest.err'
49025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49026 (eval $ac_try) 2>&5
49028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49029 (exit $ac_status); }; } &&
49030 { ac_try='test -s conftest.$ac_objext'
49031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49032 (eval $ac_try) 2>&5
49034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49035 (exit $ac_status); }; }; then
49036 ac_hi=$ac_mid; break
49038 echo "$as_me: failed program was:" >&5
49039 sed 's/^/| /' conftest.$ac_ext >&5
49041 ac_lo=`expr $ac_mid + 1`
49042 if test $ac_lo -le $ac_mid; then
49046 ac_mid=`expr 2 '*' $ac_mid + 1`
49048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49051 echo "$as_me: failed program was:" >&5
49052 sed 's/^/| /' conftest.$ac_ext >&5
49054 cat >conftest.$ac_ext <<_ACEOF
49057 cat confdefs.h >>conftest.$ac_ext
49058 cat >>conftest.$ac_ext <<_ACEOF
49059 /* end confdefs.h. */
49060 $ac_includes_default
49064 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
49071 rm -f conftest.$ac_objext
49072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49073 (eval $ac_compile) 2>conftest.er1
49075 grep -v '^ *+' conftest.er1 >conftest.err
49077 cat conftest.err >&5
49078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49079 (exit $ac_status); } &&
49080 { ac_try='test -z "$ac_c_werror_flag"
49081 || test ! -s conftest.err'
49082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49083 (eval $ac_try) 2>&5
49085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49086 (exit $ac_status); }; } &&
49087 { ac_try='test -s conftest.$ac_objext'
49088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49089 (eval $ac_try) 2>&5
49091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49092 (exit $ac_status); }; }; then
49095 cat >conftest.$ac_ext <<_ACEOF
49098 cat confdefs.h >>conftest.$ac_ext
49099 cat >>conftest.$ac_ext <<_ACEOF
49100 /* end confdefs.h. */
49101 $ac_includes_default
49105 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49112 rm -f conftest.$ac_objext
49113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49114 (eval $ac_compile) 2>conftest.er1
49116 grep -v '^ *+' conftest.er1 >conftest.err
49118 cat conftest.err >&5
49119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49120 (exit $ac_status); } &&
49121 { ac_try='test -z "$ac_c_werror_flag"
49122 || test ! -s conftest.err'
49123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49124 (eval $ac_try) 2>&5
49126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49127 (exit $ac_status); }; } &&
49128 { ac_try='test -s conftest.$ac_objext'
49129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49130 (eval $ac_try) 2>&5
49132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49133 (exit $ac_status); }; }; then
49134 ac_lo=$ac_mid; break
49136 echo "$as_me: failed program was:" >&5
49137 sed 's/^/| /' conftest.$ac_ext >&5
49139 ac_hi=`expr '(' $ac_mid ')' - 1`
49140 if test $ac_mid -le $ac_hi; then
49144 ac_mid=`expr 2 '*' $ac_mid`
49146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49149 echo "$as_me: failed program was:" >&5
49150 sed 's/^/| /' conftest.$ac_ext >&5
49154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49157 # Binary search between lo and hi bounds.
49158 while test "x$ac_lo" != "x$ac_hi"; do
49159 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49160 cat >conftest.$ac_ext <<_ACEOF
49163 cat confdefs.h >>conftest.$ac_ext
49164 cat >>conftest.$ac_ext <<_ACEOF
49165 /* end confdefs.h. */
49166 $ac_includes_default
49170 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49177 rm -f conftest.$ac_objext
49178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49179 (eval $ac_compile) 2>conftest.er1
49181 grep -v '^ *+' conftest.er1 >conftest.err
49183 cat conftest.err >&5
49184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49185 (exit $ac_status); } &&
49186 { ac_try='test -z "$ac_c_werror_flag"
49187 || test ! -s conftest.err'
49188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49189 (eval $ac_try) 2>&5
49191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49192 (exit $ac_status); }; } &&
49193 { ac_try='test -s conftest.$ac_objext'
49194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49195 (eval $ac_try) 2>&5
49197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49198 (exit $ac_status); }; }; then
49201 echo "$as_me: failed program was:" >&5
49202 sed 's/^/| /' conftest.$ac_ext >&5
49204 ac_lo=`expr '(' $ac_mid ')' + 1`
49206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49209 ?*) ac_cv_sizeof_short=$ac_lo;;
49210 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49211 See \`config.log' for more details." >&5
49212 echo "$as_me: error: cannot compute sizeof (short), 77
49213 See \`config.log' for more details." >&2;}
49214 { (exit 1); exit 1; }; } ;;
49217 if test "$cross_compiling" = yes; then
49218 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49219 See \`config.log' for more details." >&5
49220 echo "$as_me: error: cannot run test program while cross compiling
49221 See \`config.log' for more details." >&2;}
49222 { (exit 1); exit 1; }; }
49224 cat >conftest.$ac_ext <<_ACEOF
49227 cat confdefs.h >>conftest.$ac_ext
49228 cat >>conftest.$ac_ext <<_ACEOF
49229 /* end confdefs.h. */
49230 $ac_includes_default
49231 long longval () { return (long) (sizeof (short)); }
49232 unsigned long ulongval () { return (long) (sizeof (short)); }
49234 #include <stdlib.h>
49239 FILE *f = fopen ("conftest.val", "w");
49242 if (((long) (sizeof (short))) < 0)
49244 long i = longval ();
49245 if (i != ((long) (sizeof (short))))
49247 fprintf (f, "%ld\n", i);
49251 unsigned long i = ulongval ();
49252 if (i != ((long) (sizeof (short))))
49254 fprintf (f, "%lu\n", i);
49256 exit (ferror (f) || fclose (f) != 0);
49262 rm -f conftest$ac_exeext
49263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49264 (eval $ac_link) 2>&5
49266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49269 (eval $ac_try) 2>&5
49271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49272 (exit $ac_status); }; }; then
49273 ac_cv_sizeof_short=`cat conftest.val`
49275 echo "$as_me: program exited with status $ac_status" >&5
49276 echo "$as_me: failed program was:" >&5
49277 sed 's/^/| /' conftest.$ac_ext >&5
49279 ( exit $ac_status )
49280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49281 See \`config.log' for more details." >&5
49282 echo "$as_me: error: cannot compute sizeof (short), 77
49283 See \`config.log' for more details." >&2;}
49284 { (exit 1); exit 1; }; }
49286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49291 ac_cv_sizeof_short=0
49294 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49295 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49296 cat >>confdefs.h <<_ACEOF
49297 #define SIZEOF_SHORT $ac_cv_sizeof_short
49301 echo "$as_me:$LINENO: checking for int" >&5
49302 echo $ECHO_N "checking for int... $ECHO_C" >&6
49303 if test "${ac_cv_type_int+set}" = set; then
49304 echo $ECHO_N "(cached) $ECHO_C" >&6
49306 cat >conftest.$ac_ext <<_ACEOF
49309 cat confdefs.h >>conftest.$ac_ext
49310 cat >>conftest.$ac_ext <<_ACEOF
49311 /* end confdefs.h. */
49312 $ac_includes_default
49324 rm -f conftest.$ac_objext
49325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49326 (eval $ac_compile) 2>conftest.er1
49328 grep -v '^ *+' conftest.er1 >conftest.err
49330 cat conftest.err >&5
49331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49332 (exit $ac_status); } &&
49333 { ac_try='test -z "$ac_c_werror_flag"
49334 || test ! -s conftest.err'
49335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49336 (eval $ac_try) 2>&5
49338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49339 (exit $ac_status); }; } &&
49340 { ac_try='test -s conftest.$ac_objext'
49341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49342 (eval $ac_try) 2>&5
49344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49345 (exit $ac_status); }; }; then
49348 echo "$as_me: failed program was:" >&5
49349 sed 's/^/| /' conftest.$ac_ext >&5
49353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49355 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49356 echo "${ECHO_T}$ac_cv_type_int" >&6
49358 echo "$as_me:$LINENO: checking size of int" >&5
49359 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49360 if test "${ac_cv_sizeof_int+set}" = set; then
49361 echo $ECHO_N "(cached) $ECHO_C" >&6
49363 if test "$ac_cv_type_int" = yes; then
49364 # The cast to unsigned long works around a bug in the HP C Compiler
49365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49367 # This bug is HP SR number 8606223364.
49368 if test "$cross_compiling" = yes; then
49369 # Depending upon the size, compute the lo and hi bounds.
49370 cat >conftest.$ac_ext <<_ACEOF
49373 cat confdefs.h >>conftest.$ac_ext
49374 cat >>conftest.$ac_ext <<_ACEOF
49375 /* end confdefs.h. */
49376 $ac_includes_default
49380 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49387 rm -f conftest.$ac_objext
49388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49389 (eval $ac_compile) 2>conftest.er1
49391 grep -v '^ *+' conftest.er1 >conftest.err
49393 cat conftest.err >&5
49394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49395 (exit $ac_status); } &&
49396 { ac_try='test -z "$ac_c_werror_flag"
49397 || test ! -s conftest.err'
49398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49399 (eval $ac_try) 2>&5
49401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49402 (exit $ac_status); }; } &&
49403 { ac_try='test -s conftest.$ac_objext'
49404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49405 (eval $ac_try) 2>&5
49407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49408 (exit $ac_status); }; }; then
49411 cat >conftest.$ac_ext <<_ACEOF
49414 cat confdefs.h >>conftest.$ac_ext
49415 cat >>conftest.$ac_ext <<_ACEOF
49416 /* end confdefs.h. */
49417 $ac_includes_default
49421 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49428 rm -f conftest.$ac_objext
49429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49430 (eval $ac_compile) 2>conftest.er1
49432 grep -v '^ *+' conftest.er1 >conftest.err
49434 cat conftest.err >&5
49435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49436 (exit $ac_status); } &&
49437 { ac_try='test -z "$ac_c_werror_flag"
49438 || test ! -s conftest.err'
49439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49440 (eval $ac_try) 2>&5
49442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49443 (exit $ac_status); }; } &&
49444 { ac_try='test -s conftest.$ac_objext'
49445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49446 (eval $ac_try) 2>&5
49448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49449 (exit $ac_status); }; }; then
49450 ac_hi=$ac_mid; break
49452 echo "$as_me: failed program was:" >&5
49453 sed 's/^/| /' conftest.$ac_ext >&5
49455 ac_lo=`expr $ac_mid + 1`
49456 if test $ac_lo -le $ac_mid; then
49460 ac_mid=`expr 2 '*' $ac_mid + 1`
49462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49465 echo "$as_me: failed program was:" >&5
49466 sed 's/^/| /' conftest.$ac_ext >&5
49468 cat >conftest.$ac_ext <<_ACEOF
49471 cat confdefs.h >>conftest.$ac_ext
49472 cat >>conftest.$ac_ext <<_ACEOF
49473 /* end confdefs.h. */
49474 $ac_includes_default
49478 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49485 rm -f conftest.$ac_objext
49486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49487 (eval $ac_compile) 2>conftest.er1
49489 grep -v '^ *+' conftest.er1 >conftest.err
49491 cat conftest.err >&5
49492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49493 (exit $ac_status); } &&
49494 { ac_try='test -z "$ac_c_werror_flag"
49495 || test ! -s conftest.err'
49496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49497 (eval $ac_try) 2>&5
49499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49500 (exit $ac_status); }; } &&
49501 { ac_try='test -s conftest.$ac_objext'
49502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49503 (eval $ac_try) 2>&5
49505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49506 (exit $ac_status); }; }; then
49509 cat >conftest.$ac_ext <<_ACEOF
49512 cat confdefs.h >>conftest.$ac_ext
49513 cat >>conftest.$ac_ext <<_ACEOF
49514 /* end confdefs.h. */
49515 $ac_includes_default
49519 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49526 rm -f conftest.$ac_objext
49527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49528 (eval $ac_compile) 2>conftest.er1
49530 grep -v '^ *+' conftest.er1 >conftest.err
49532 cat conftest.err >&5
49533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49534 (exit $ac_status); } &&
49535 { ac_try='test -z "$ac_c_werror_flag"
49536 || test ! -s conftest.err'
49537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49538 (eval $ac_try) 2>&5
49540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49541 (exit $ac_status); }; } &&
49542 { ac_try='test -s conftest.$ac_objext'
49543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49544 (eval $ac_try) 2>&5
49546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49547 (exit $ac_status); }; }; then
49548 ac_lo=$ac_mid; break
49550 echo "$as_me: failed program was:" >&5
49551 sed 's/^/| /' conftest.$ac_ext >&5
49553 ac_hi=`expr '(' $ac_mid ')' - 1`
49554 if test $ac_mid -le $ac_hi; then
49558 ac_mid=`expr 2 '*' $ac_mid`
49560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49563 echo "$as_me: failed program was:" >&5
49564 sed 's/^/| /' conftest.$ac_ext >&5
49568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49571 # Binary search between lo and hi bounds.
49572 while test "x$ac_lo" != "x$ac_hi"; do
49573 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49574 cat >conftest.$ac_ext <<_ACEOF
49577 cat confdefs.h >>conftest.$ac_ext
49578 cat >>conftest.$ac_ext <<_ACEOF
49579 /* end confdefs.h. */
49580 $ac_includes_default
49584 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49591 rm -f conftest.$ac_objext
49592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49593 (eval $ac_compile) 2>conftest.er1
49595 grep -v '^ *+' conftest.er1 >conftest.err
49597 cat conftest.err >&5
49598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49599 (exit $ac_status); } &&
49600 { ac_try='test -z "$ac_c_werror_flag"
49601 || test ! -s conftest.err'
49602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49603 (eval $ac_try) 2>&5
49605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49606 (exit $ac_status); }; } &&
49607 { ac_try='test -s conftest.$ac_objext'
49608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49609 (eval $ac_try) 2>&5
49611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49612 (exit $ac_status); }; }; then
49615 echo "$as_me: failed program was:" >&5
49616 sed 's/^/| /' conftest.$ac_ext >&5
49618 ac_lo=`expr '(' $ac_mid ')' + 1`
49620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49623 ?*) ac_cv_sizeof_int=$ac_lo;;
49624 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49625 See \`config.log' for more details." >&5
49626 echo "$as_me: error: cannot compute sizeof (int), 77
49627 See \`config.log' for more details." >&2;}
49628 { (exit 1); exit 1; }; } ;;
49631 if test "$cross_compiling" = yes; then
49632 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49633 See \`config.log' for more details." >&5
49634 echo "$as_me: error: cannot run test program while cross compiling
49635 See \`config.log' for more details." >&2;}
49636 { (exit 1); exit 1; }; }
49638 cat >conftest.$ac_ext <<_ACEOF
49641 cat confdefs.h >>conftest.$ac_ext
49642 cat >>conftest.$ac_ext <<_ACEOF
49643 /* end confdefs.h. */
49644 $ac_includes_default
49645 long longval () { return (long) (sizeof (int)); }
49646 unsigned long ulongval () { return (long) (sizeof (int)); }
49648 #include <stdlib.h>
49653 FILE *f = fopen ("conftest.val", "w");
49656 if (((long) (sizeof (int))) < 0)
49658 long i = longval ();
49659 if (i != ((long) (sizeof (int))))
49661 fprintf (f, "%ld\n", i);
49665 unsigned long i = ulongval ();
49666 if (i != ((long) (sizeof (int))))
49668 fprintf (f, "%lu\n", i);
49670 exit (ferror (f) || fclose (f) != 0);
49676 rm -f conftest$ac_exeext
49677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49678 (eval $ac_link) 2>&5
49680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49683 (eval $ac_try) 2>&5
49685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49686 (exit $ac_status); }; }; then
49687 ac_cv_sizeof_int=`cat conftest.val`
49689 echo "$as_me: program exited with status $ac_status" >&5
49690 echo "$as_me: failed program was:" >&5
49691 sed 's/^/| /' conftest.$ac_ext >&5
49693 ( exit $ac_status )
49694 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49695 See \`config.log' for more details." >&5
49696 echo "$as_me: error: cannot compute sizeof (int), 77
49697 See \`config.log' for more details." >&2;}
49698 { (exit 1); exit 1; }; }
49700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49708 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49709 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49710 cat >>confdefs.h <<_ACEOF
49711 #define SIZEOF_INT $ac_cv_sizeof_int
49715 echo "$as_me:$LINENO: checking for long" >&5
49716 echo $ECHO_N "checking for long... $ECHO_C" >&6
49717 if test "${ac_cv_type_long+set}" = set; then
49718 echo $ECHO_N "(cached) $ECHO_C" >&6
49720 cat >conftest.$ac_ext <<_ACEOF
49723 cat confdefs.h >>conftest.$ac_ext
49724 cat >>conftest.$ac_ext <<_ACEOF
49725 /* end confdefs.h. */
49726 $ac_includes_default
49738 rm -f conftest.$ac_objext
49739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49740 (eval $ac_compile) 2>conftest.er1
49742 grep -v '^ *+' conftest.er1 >conftest.err
49744 cat conftest.err >&5
49745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49746 (exit $ac_status); } &&
49747 { ac_try='test -z "$ac_c_werror_flag"
49748 || test ! -s conftest.err'
49749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49750 (eval $ac_try) 2>&5
49752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49753 (exit $ac_status); }; } &&
49754 { ac_try='test -s conftest.$ac_objext'
49755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49756 (eval $ac_try) 2>&5
49758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49759 (exit $ac_status); }; }; then
49760 ac_cv_type_long=yes
49762 echo "$as_me: failed program was:" >&5
49763 sed 's/^/| /' conftest.$ac_ext >&5
49767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49769 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49770 echo "${ECHO_T}$ac_cv_type_long" >&6
49772 echo "$as_me:$LINENO: checking size of long" >&5
49773 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49774 if test "${ac_cv_sizeof_long+set}" = set; then
49775 echo $ECHO_N "(cached) $ECHO_C" >&6
49777 if test "$ac_cv_type_long" = yes; then
49778 # The cast to unsigned long works around a bug in the HP C Compiler
49779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49781 # This bug is HP SR number 8606223364.
49782 if test "$cross_compiling" = yes; then
49783 # Depending upon the size, compute the lo and hi bounds.
49784 cat >conftest.$ac_ext <<_ACEOF
49787 cat confdefs.h >>conftest.$ac_ext
49788 cat >>conftest.$ac_ext <<_ACEOF
49789 /* end confdefs.h. */
49790 $ac_includes_default
49794 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49801 rm -f conftest.$ac_objext
49802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49803 (eval $ac_compile) 2>conftest.er1
49805 grep -v '^ *+' conftest.er1 >conftest.err
49807 cat conftest.err >&5
49808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49809 (exit $ac_status); } &&
49810 { ac_try='test -z "$ac_c_werror_flag"
49811 || test ! -s conftest.err'
49812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49813 (eval $ac_try) 2>&5
49815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49816 (exit $ac_status); }; } &&
49817 { ac_try='test -s conftest.$ac_objext'
49818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49819 (eval $ac_try) 2>&5
49821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49822 (exit $ac_status); }; }; then
49825 cat >conftest.$ac_ext <<_ACEOF
49828 cat confdefs.h >>conftest.$ac_ext
49829 cat >>conftest.$ac_ext <<_ACEOF
49830 /* end confdefs.h. */
49831 $ac_includes_default
49835 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49842 rm -f conftest.$ac_objext
49843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49844 (eval $ac_compile) 2>conftest.er1
49846 grep -v '^ *+' conftest.er1 >conftest.err
49848 cat conftest.err >&5
49849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49850 (exit $ac_status); } &&
49851 { ac_try='test -z "$ac_c_werror_flag"
49852 || test ! -s conftest.err'
49853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49854 (eval $ac_try) 2>&5
49856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49857 (exit $ac_status); }; } &&
49858 { ac_try='test -s conftest.$ac_objext'
49859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49860 (eval $ac_try) 2>&5
49862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49863 (exit $ac_status); }; }; then
49864 ac_hi=$ac_mid; break
49866 echo "$as_me: failed program was:" >&5
49867 sed 's/^/| /' conftest.$ac_ext >&5
49869 ac_lo=`expr $ac_mid + 1`
49870 if test $ac_lo -le $ac_mid; then
49874 ac_mid=`expr 2 '*' $ac_mid + 1`
49876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49879 echo "$as_me: failed program was:" >&5
49880 sed 's/^/| /' conftest.$ac_ext >&5
49882 cat >conftest.$ac_ext <<_ACEOF
49885 cat confdefs.h >>conftest.$ac_ext
49886 cat >>conftest.$ac_ext <<_ACEOF
49887 /* end confdefs.h. */
49888 $ac_includes_default
49892 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49899 rm -f conftest.$ac_objext
49900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49901 (eval $ac_compile) 2>conftest.er1
49903 grep -v '^ *+' conftest.er1 >conftest.err
49905 cat conftest.err >&5
49906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49907 (exit $ac_status); } &&
49908 { ac_try='test -z "$ac_c_werror_flag"
49909 || test ! -s conftest.err'
49910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49911 (eval $ac_try) 2>&5
49913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49914 (exit $ac_status); }; } &&
49915 { ac_try='test -s conftest.$ac_objext'
49916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49917 (eval $ac_try) 2>&5
49919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49920 (exit $ac_status); }; }; then
49923 cat >conftest.$ac_ext <<_ACEOF
49926 cat confdefs.h >>conftest.$ac_ext
49927 cat >>conftest.$ac_ext <<_ACEOF
49928 /* end confdefs.h. */
49929 $ac_includes_default
49933 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49940 rm -f conftest.$ac_objext
49941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49942 (eval $ac_compile) 2>conftest.er1
49944 grep -v '^ *+' conftest.er1 >conftest.err
49946 cat conftest.err >&5
49947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49948 (exit $ac_status); } &&
49949 { ac_try='test -z "$ac_c_werror_flag"
49950 || test ! -s conftest.err'
49951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49952 (eval $ac_try) 2>&5
49954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49955 (exit $ac_status); }; } &&
49956 { ac_try='test -s conftest.$ac_objext'
49957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49958 (eval $ac_try) 2>&5
49960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49961 (exit $ac_status); }; }; then
49962 ac_lo=$ac_mid; break
49964 echo "$as_me: failed program was:" >&5
49965 sed 's/^/| /' conftest.$ac_ext >&5
49967 ac_hi=`expr '(' $ac_mid ')' - 1`
49968 if test $ac_mid -le $ac_hi; then
49972 ac_mid=`expr 2 '*' $ac_mid`
49974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49977 echo "$as_me: failed program was:" >&5
49978 sed 's/^/| /' conftest.$ac_ext >&5
49982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49985 # Binary search between lo and hi bounds.
49986 while test "x$ac_lo" != "x$ac_hi"; do
49987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49988 cat >conftest.$ac_ext <<_ACEOF
49991 cat confdefs.h >>conftest.$ac_ext
49992 cat >>conftest.$ac_ext <<_ACEOF
49993 /* end confdefs.h. */
49994 $ac_includes_default
49998 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
50005 rm -f conftest.$ac_objext
50006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50007 (eval $ac_compile) 2>conftest.er1
50009 grep -v '^ *+' conftest.er1 >conftest.err
50011 cat conftest.err >&5
50012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50013 (exit $ac_status); } &&
50014 { ac_try='test -z "$ac_c_werror_flag"
50015 || test ! -s conftest.err'
50016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50017 (eval $ac_try) 2>&5
50019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50020 (exit $ac_status); }; } &&
50021 { ac_try='test -s conftest.$ac_objext'
50022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50023 (eval $ac_try) 2>&5
50025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50026 (exit $ac_status); }; }; then
50029 echo "$as_me: failed program was:" >&5
50030 sed 's/^/| /' conftest.$ac_ext >&5
50032 ac_lo=`expr '(' $ac_mid ')' + 1`
50034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50037 ?*) ac_cv_sizeof_long=$ac_lo;;
50038 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50039 See \`config.log' for more details." >&5
50040 echo "$as_me: error: cannot compute sizeof (long), 77
50041 See \`config.log' for more details." >&2;}
50042 { (exit 1); exit 1; }; } ;;
50045 if test "$cross_compiling" = yes; then
50046 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50047 See \`config.log' for more details." >&5
50048 echo "$as_me: error: cannot run test program while cross compiling
50049 See \`config.log' for more details." >&2;}
50050 { (exit 1); exit 1; }; }
50052 cat >conftest.$ac_ext <<_ACEOF
50055 cat confdefs.h >>conftest.$ac_ext
50056 cat >>conftest.$ac_ext <<_ACEOF
50057 /* end confdefs.h. */
50058 $ac_includes_default
50059 long longval () { return (long) (sizeof (long)); }
50060 unsigned long ulongval () { return (long) (sizeof (long)); }
50062 #include <stdlib.h>
50067 FILE *f = fopen ("conftest.val", "w");
50070 if (((long) (sizeof (long))) < 0)
50072 long i = longval ();
50073 if (i != ((long) (sizeof (long))))
50075 fprintf (f, "%ld\n", i);
50079 unsigned long i = ulongval ();
50080 if (i != ((long) (sizeof (long))))
50082 fprintf (f, "%lu\n", i);
50084 exit (ferror (f) || fclose (f) != 0);
50090 rm -f conftest$ac_exeext
50091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50092 (eval $ac_link) 2>&5
50094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50097 (eval $ac_try) 2>&5
50099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50100 (exit $ac_status); }; }; then
50101 ac_cv_sizeof_long=`cat conftest.val`
50103 echo "$as_me: program exited with status $ac_status" >&5
50104 echo "$as_me: failed program was:" >&5
50105 sed 's/^/| /' conftest.$ac_ext >&5
50107 ( exit $ac_status )
50108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50109 See \`config.log' for more details." >&5
50110 echo "$as_me: error: cannot compute sizeof (long), 77
50111 See \`config.log' for more details." >&2;}
50112 { (exit 1); exit 1; }; }
50114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50119 ac_cv_sizeof_long=0
50122 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50123 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50124 cat >>confdefs.h <<_ACEOF
50125 #define SIZEOF_LONG $ac_cv_sizeof_long
50129 echo "$as_me:$LINENO: checking for wchar_t" >&5
50130 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50131 if test "${ac_cv_type_wchar_t+set}" = set; then
50132 echo $ECHO_N "(cached) $ECHO_C" >&6
50134 cat >conftest.$ac_ext <<_ACEOF
50137 cat confdefs.h >>conftest.$ac_ext
50138 cat >>conftest.$ac_ext <<_ACEOF
50139 /* end confdefs.h. */
50140 $ac_includes_default
50146 if (sizeof (wchar_t))
50152 rm -f conftest.$ac_objext
50153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50154 (eval $ac_compile) 2>conftest.er1
50156 grep -v '^ *+' conftest.er1 >conftest.err
50158 cat conftest.err >&5
50159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50160 (exit $ac_status); } &&
50161 { ac_try='test -z "$ac_c_werror_flag"
50162 || test ! -s conftest.err'
50163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50164 (eval $ac_try) 2>&5
50166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50167 (exit $ac_status); }; } &&
50168 { ac_try='test -s conftest.$ac_objext'
50169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50170 (eval $ac_try) 2>&5
50172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50173 (exit $ac_status); }; }; then
50174 ac_cv_type_wchar_t=yes
50176 echo "$as_me: failed program was:" >&5
50177 sed 's/^/| /' conftest.$ac_ext >&5
50179 ac_cv_type_wchar_t=no
50181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50183 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50184 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50186 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50187 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50188 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50189 echo $ECHO_N "(cached) $ECHO_C" >&6
50191 if test "$ac_cv_type_wchar_t" = yes; then
50192 # The cast to unsigned long works around a bug in the HP C Compiler
50193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50195 # This bug is HP SR number 8606223364.
50196 if test "$cross_compiling" = yes; then
50197 # Depending upon the size, compute the lo and hi bounds.
50198 cat >conftest.$ac_ext <<_ACEOF
50201 cat confdefs.h >>conftest.$ac_ext
50202 cat >>conftest.$ac_ext <<_ACEOF
50203 /* end confdefs.h. */
50204 $ac_includes_default
50208 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50215 rm -f conftest.$ac_objext
50216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50217 (eval $ac_compile) 2>conftest.er1
50219 grep -v '^ *+' conftest.er1 >conftest.err
50221 cat conftest.err >&5
50222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50223 (exit $ac_status); } &&
50224 { ac_try='test -z "$ac_c_werror_flag"
50225 || test ! -s conftest.err'
50226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50227 (eval $ac_try) 2>&5
50229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50230 (exit $ac_status); }; } &&
50231 { ac_try='test -s conftest.$ac_objext'
50232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50233 (eval $ac_try) 2>&5
50235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50236 (exit $ac_status); }; }; then
50239 cat >conftest.$ac_ext <<_ACEOF
50242 cat confdefs.h >>conftest.$ac_ext
50243 cat >>conftest.$ac_ext <<_ACEOF
50244 /* end confdefs.h. */
50245 $ac_includes_default
50249 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50256 rm -f conftest.$ac_objext
50257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50258 (eval $ac_compile) 2>conftest.er1
50260 grep -v '^ *+' conftest.er1 >conftest.err
50262 cat conftest.err >&5
50263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50264 (exit $ac_status); } &&
50265 { ac_try='test -z "$ac_c_werror_flag"
50266 || test ! -s conftest.err'
50267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50268 (eval $ac_try) 2>&5
50270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50271 (exit $ac_status); }; } &&
50272 { ac_try='test -s conftest.$ac_objext'
50273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50274 (eval $ac_try) 2>&5
50276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50277 (exit $ac_status); }; }; then
50278 ac_hi=$ac_mid; break
50280 echo "$as_me: failed program was:" >&5
50281 sed 's/^/| /' conftest.$ac_ext >&5
50283 ac_lo=`expr $ac_mid + 1`
50284 if test $ac_lo -le $ac_mid; then
50288 ac_mid=`expr 2 '*' $ac_mid + 1`
50290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50293 echo "$as_me: failed program was:" >&5
50294 sed 's/^/| /' conftest.$ac_ext >&5
50296 cat >conftest.$ac_ext <<_ACEOF
50299 cat confdefs.h >>conftest.$ac_ext
50300 cat >>conftest.$ac_ext <<_ACEOF
50301 /* end confdefs.h. */
50302 $ac_includes_default
50306 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50313 rm -f conftest.$ac_objext
50314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50315 (eval $ac_compile) 2>conftest.er1
50317 grep -v '^ *+' conftest.er1 >conftest.err
50319 cat conftest.err >&5
50320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50321 (exit $ac_status); } &&
50322 { ac_try='test -z "$ac_c_werror_flag"
50323 || test ! -s conftest.err'
50324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50325 (eval $ac_try) 2>&5
50327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50328 (exit $ac_status); }; } &&
50329 { ac_try='test -s conftest.$ac_objext'
50330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50331 (eval $ac_try) 2>&5
50333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50334 (exit $ac_status); }; }; then
50337 cat >conftest.$ac_ext <<_ACEOF
50340 cat confdefs.h >>conftest.$ac_ext
50341 cat >>conftest.$ac_ext <<_ACEOF
50342 /* end confdefs.h. */
50343 $ac_includes_default
50347 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50354 rm -f conftest.$ac_objext
50355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50356 (eval $ac_compile) 2>conftest.er1
50358 grep -v '^ *+' conftest.er1 >conftest.err
50360 cat conftest.err >&5
50361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50362 (exit $ac_status); } &&
50363 { ac_try='test -z "$ac_c_werror_flag"
50364 || test ! -s conftest.err'
50365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50366 (eval $ac_try) 2>&5
50368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50369 (exit $ac_status); }; } &&
50370 { ac_try='test -s conftest.$ac_objext'
50371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50372 (eval $ac_try) 2>&5
50374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50375 (exit $ac_status); }; }; then
50376 ac_lo=$ac_mid; break
50378 echo "$as_me: failed program was:" >&5
50379 sed 's/^/| /' conftest.$ac_ext >&5
50381 ac_hi=`expr '(' $ac_mid ')' - 1`
50382 if test $ac_mid -le $ac_hi; then
50386 ac_mid=`expr 2 '*' $ac_mid`
50388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50391 echo "$as_me: failed program was:" >&5
50392 sed 's/^/| /' conftest.$ac_ext >&5
50396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50399 # Binary search between lo and hi bounds.
50400 while test "x$ac_lo" != "x$ac_hi"; do
50401 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50402 cat >conftest.$ac_ext <<_ACEOF
50405 cat confdefs.h >>conftest.$ac_ext
50406 cat >>conftest.$ac_ext <<_ACEOF
50407 /* end confdefs.h. */
50408 $ac_includes_default
50412 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50419 rm -f conftest.$ac_objext
50420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50421 (eval $ac_compile) 2>conftest.er1
50423 grep -v '^ *+' conftest.er1 >conftest.err
50425 cat conftest.err >&5
50426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50427 (exit $ac_status); } &&
50428 { ac_try='test -z "$ac_c_werror_flag"
50429 || test ! -s conftest.err'
50430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50431 (eval $ac_try) 2>&5
50433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50434 (exit $ac_status); }; } &&
50435 { ac_try='test -s conftest.$ac_objext'
50436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50437 (eval $ac_try) 2>&5
50439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50440 (exit $ac_status); }; }; then
50443 echo "$as_me: failed program was:" >&5
50444 sed 's/^/| /' conftest.$ac_ext >&5
50446 ac_lo=`expr '(' $ac_mid ')' + 1`
50448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50451 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50452 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50453 See \`config.log' for more details." >&5
50454 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50455 See \`config.log' for more details." >&2;}
50456 { (exit 1); exit 1; }; } ;;
50459 if test "$cross_compiling" = yes; then
50460 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50461 See \`config.log' for more details." >&5
50462 echo "$as_me: error: cannot run test program while cross compiling
50463 See \`config.log' for more details." >&2;}
50464 { (exit 1); exit 1; }; }
50466 cat >conftest.$ac_ext <<_ACEOF
50469 cat confdefs.h >>conftest.$ac_ext
50470 cat >>conftest.$ac_ext <<_ACEOF
50471 /* end confdefs.h. */
50472 $ac_includes_default
50473 long longval () { return (long) (sizeof (wchar_t)); }
50474 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50476 #include <stdlib.h>
50481 FILE *f = fopen ("conftest.val", "w");
50484 if (((long) (sizeof (wchar_t))) < 0)
50486 long i = longval ();
50487 if (i != ((long) (sizeof (wchar_t))))
50489 fprintf (f, "%ld\n", i);
50493 unsigned long i = ulongval ();
50494 if (i != ((long) (sizeof (wchar_t))))
50496 fprintf (f, "%lu\n", i);
50498 exit (ferror (f) || fclose (f) != 0);
50504 rm -f conftest$ac_exeext
50505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50506 (eval $ac_link) 2>&5
50508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50511 (eval $ac_try) 2>&5
50513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50514 (exit $ac_status); }; }; then
50515 ac_cv_sizeof_wchar_t=`cat conftest.val`
50517 echo "$as_me: program exited with status $ac_status" >&5
50518 echo "$as_me: failed program was:" >&5
50519 sed 's/^/| /' conftest.$ac_ext >&5
50521 ( exit $ac_status )
50522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50523 See \`config.log' for more details." >&5
50524 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50525 See \`config.log' for more details." >&2;}
50526 { (exit 1); exit 1; }; }
50528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50533 ac_cv_sizeof_wchar_t=0
50536 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50537 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50538 cat >>confdefs.h <<_ACEOF
50539 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50544 if test "$ac_cv_sizeof_int" -lt 4 ; then
50545 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50546 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50549 cat >>confdefs.h <<\_ACEOF
50550 #define LBER_INT_T long
50555 cat >>confdefs.h <<\_ACEOF
50556 #define LBER_INT_T int
50562 cat >>confdefs.h <<\_ACEOF
50563 #define LBER_LEN_T long
50567 cat >>confdefs.h <<\_ACEOF
50568 #define LBER_SOCKET_T int
50572 cat >>confdefs.h <<\_ACEOF
50573 #define LBER_TAG_T long
50577 echo "$as_me:$LINENO: checking for working memcmp" >&5
50578 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50579 if test "${ac_cv_func_memcmp_working+set}" = set; then
50580 echo $ECHO_N "(cached) $ECHO_C" >&6
50582 if test "$cross_compiling" = yes; then
50583 ac_cv_func_memcmp_working=no
50585 cat >conftest.$ac_ext <<_ACEOF
50588 cat confdefs.h >>conftest.$ac_ext
50589 cat >>conftest.$ac_ext <<_ACEOF
50590 /* end confdefs.h. */
50591 $ac_includes_default
50596 /* Some versions of memcmp are not 8-bit clean. */
50597 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50598 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50601 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50602 or more and with at least one buffer not starting on a 4-byte boundary.
50603 William Lewis provided this test program. */
50608 for (i = 0; i < 4; i++)
50612 strcpy (a, "--------01111111");
50613 strcpy (b, "--------10000000");
50614 if (memcmp (a, b, 16) >= 0)
50624 rm -f conftest$ac_exeext
50625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50626 (eval $ac_link) 2>&5
50628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50631 (eval $ac_try) 2>&5
50633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50634 (exit $ac_status); }; }; then
50635 ac_cv_func_memcmp_working=yes
50637 echo "$as_me: program exited with status $ac_status" >&5
50638 echo "$as_me: failed program was:" >&5
50639 sed 's/^/| /' conftest.$ac_ext >&5
50641 ( exit $ac_status )
50642 ac_cv_func_memcmp_working=no
50644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50647 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50648 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50649 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50650 "memcmp.$ac_objext" | \
50651 *" memcmp.$ac_objext" | \
50652 "memcmp.$ac_objext "* | \
50653 *" memcmp.$ac_objext "* ) ;;
50654 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50659 if test $ac_cv_func_memcmp_working = no ; then
50661 cat >>confdefs.h <<\_ACEOF
50662 #define NEED_MEMCMP_REPLACEMENT 1
50668 for ac_func in strftime
50670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50671 echo "$as_me:$LINENO: checking for $ac_func" >&5
50672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50673 if eval "test \"\${$as_ac_var+set}\" = set"; then
50674 echo $ECHO_N "(cached) $ECHO_C" >&6
50676 cat >conftest.$ac_ext <<_ACEOF
50679 cat confdefs.h >>conftest.$ac_ext
50680 cat >>conftest.$ac_ext <<_ACEOF
50681 /* end confdefs.h. */
50682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50684 #define $ac_func innocuous_$ac_func
50686 /* System header to define __stub macros and hopefully few prototypes,
50687 which can conflict with char $ac_func (); below.
50688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50689 <limits.h> exists even on freestanding compilers. */
50692 # include <limits.h>
50694 # include <assert.h>
50699 /* Override any gcc2 internal prototype to avoid an error. */
50704 /* We use char because int might match the return type of a gcc2
50705 builtin and then its argument prototype would still apply. */
50707 /* The GNU C library defines this for functions which it implements
50708 to always fail with ENOSYS. Some functions are actually named
50709 something starting with __ and the normal name is an alias. */
50710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50713 char (*f) () = $ac_func;
50722 return f != $ac_func;
50727 rm -f conftest.$ac_objext conftest$ac_exeext
50728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50729 (eval $ac_link) 2>conftest.er1
50731 grep -v '^ *+' conftest.er1 >conftest.err
50733 cat conftest.err >&5
50734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50735 (exit $ac_status); } &&
50736 { ac_try='test -z "$ac_c_werror_flag"
50737 || test ! -s conftest.err'
50738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50739 (eval $ac_try) 2>&5
50741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50742 (exit $ac_status); }; } &&
50743 { ac_try='test -s conftest$ac_exeext'
50744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50745 (eval $ac_try) 2>&5
50747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50748 (exit $ac_status); }; }; then
50749 eval "$as_ac_var=yes"
50751 echo "$as_me: failed program was:" >&5
50752 sed 's/^/| /' conftest.$ac_ext >&5
50754 eval "$as_ac_var=no"
50756 rm -f conftest.err conftest.$ac_objext \
50757 conftest$ac_exeext conftest.$ac_ext
50759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50761 if test `eval echo '${'$as_ac_var'}'` = yes; then
50762 cat >>confdefs.h <<_ACEOF
50763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50767 # strftime is in -lintl on SCO UNIX.
50768 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50769 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50770 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50771 echo $ECHO_N "(cached) $ECHO_C" >&6
50773 ac_check_lib_save_LIBS=$LIBS
50774 LIBS="-lintl $LIBS"
50775 cat >conftest.$ac_ext <<_ACEOF
50778 cat confdefs.h >>conftest.$ac_ext
50779 cat >>conftest.$ac_ext <<_ACEOF
50780 /* end confdefs.h. */
50782 /* Override any gcc2 internal prototype to avoid an error. */
50786 /* We use char because int might match the return type of a gcc2
50787 builtin and then its argument prototype would still apply. */
50797 rm -f conftest.$ac_objext conftest$ac_exeext
50798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50799 (eval $ac_link) 2>conftest.er1
50801 grep -v '^ *+' conftest.er1 >conftest.err
50803 cat conftest.err >&5
50804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50805 (exit $ac_status); } &&
50806 { ac_try='test -z "$ac_c_werror_flag"
50807 || test ! -s conftest.err'
50808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50809 (eval $ac_try) 2>&5
50811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50812 (exit $ac_status); }; } &&
50813 { ac_try='test -s conftest$ac_exeext'
50814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50815 (eval $ac_try) 2>&5
50817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50818 (exit $ac_status); }; }; then
50819 ac_cv_lib_intl_strftime=yes
50821 echo "$as_me: failed program was:" >&5
50822 sed 's/^/| /' conftest.$ac_ext >&5
50824 ac_cv_lib_intl_strftime=no
50826 rm -f conftest.err conftest.$ac_objext \
50827 conftest$ac_exeext conftest.$ac_ext
50828 LIBS=$ac_check_lib_save_LIBS
50830 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50831 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50832 if test $ac_cv_lib_intl_strftime = yes; then
50833 cat >>confdefs.h <<\_ACEOF
50834 #define HAVE_STRFTIME 1
50837 LIBS="-lintl $LIBS"
50844 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50845 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50846 if test "${ol_cv_func_inet_aton+set}" = set; then
50847 echo $ECHO_N "(cached) $ECHO_C" >&6
50849 cat >conftest.$ac_ext <<_ACEOF
50852 cat confdefs.h >>conftest.$ac_ext
50853 cat >>conftest.$ac_ext <<_ACEOF
50854 /* end confdefs.h. */
50856 #ifdef HAVE_SYS_TYPES_H
50857 # include <sys/types.h>
50859 #ifdef HAVE_SYS_SOCKET_H
50860 # include <sys/socket.h>
50861 # ifdef HAVE_SYS_SELECT_H
50862 # include <sys/select.h>
50864 # include <netinet/in.h>
50865 # ifdef HAVE_ARPA_INET_H
50866 # include <arpa/inet.h>
50874 int rc = inet_aton( "255.255.255.255", &in );
50879 rm -f conftest.$ac_objext conftest$ac_exeext
50880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50881 (eval $ac_link) 2>conftest.er1
50883 grep -v '^ *+' conftest.er1 >conftest.err
50885 cat conftest.err >&5
50886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50887 (exit $ac_status); } &&
50888 { ac_try='test -z "$ac_c_werror_flag"
50889 || test ! -s conftest.err'
50890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50891 (eval $ac_try) 2>&5
50893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50894 (exit $ac_status); }; } &&
50895 { ac_try='test -s conftest$ac_exeext'
50896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50897 (eval $ac_try) 2>&5
50899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50900 (exit $ac_status); }; }; then
50901 ol_cv_func_inet_aton=yes
50903 echo "$as_me: failed program was:" >&5
50904 sed 's/^/| /' conftest.$ac_ext >&5
50906 ol_cv_func_inet_aton=no
50908 rm -f conftest.err conftest.$ac_objext \
50909 conftest$ac_exeext conftest.$ac_ext
50911 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50912 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50913 if test $ol_cv_func_inet_aton != no; then
50915 cat >>confdefs.h <<\_ACEOF
50916 #define HAVE_INET_ATON 1
50922 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50923 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50924 if test "${ac_cv_func__spawnlp+set}" = set; then
50925 echo $ECHO_N "(cached) $ECHO_C" >&6
50927 cat >conftest.$ac_ext <<_ACEOF
50930 cat confdefs.h >>conftest.$ac_ext
50931 cat >>conftest.$ac_ext <<_ACEOF
50932 /* end confdefs.h. */
50933 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50935 #define _spawnlp innocuous__spawnlp
50937 /* System header to define __stub macros and hopefully few prototypes,
50938 which can conflict with char _spawnlp (); below.
50939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50940 <limits.h> exists even on freestanding compilers. */
50943 # include <limits.h>
50945 # include <assert.h>
50950 /* Override any gcc2 internal prototype to avoid an error. */
50955 /* We use char because int might match the return type of a gcc2
50956 builtin and then its argument prototype would still apply. */
50958 /* The GNU C library defines this for functions which it implements
50959 to always fail with ENOSYS. Some functions are actually named
50960 something starting with __ and the normal name is an alias. */
50961 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50964 char (*f) () = _spawnlp;
50973 return f != _spawnlp;
50978 rm -f conftest.$ac_objext conftest$ac_exeext
50979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50980 (eval $ac_link) 2>conftest.er1
50982 grep -v '^ *+' conftest.er1 >conftest.err
50984 cat conftest.err >&5
50985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50986 (exit $ac_status); } &&
50987 { ac_try='test -z "$ac_c_werror_flag"
50988 || test ! -s conftest.err'
50989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50990 (eval $ac_try) 2>&5
50992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50993 (exit $ac_status); }; } &&
50994 { ac_try='test -s conftest$ac_exeext'
50995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50996 (eval $ac_try) 2>&5
50998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50999 (exit $ac_status); }; }; then
51000 ac_cv_func__spawnlp=yes
51002 echo "$as_me: failed program was:" >&5
51003 sed 's/^/| /' conftest.$ac_ext >&5
51005 ac_cv_func__spawnlp=no
51007 rm -f conftest.err conftest.$ac_objext \
51008 conftest$ac_exeext conftest.$ac_ext
51010 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
51011 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
51012 if test $ac_cv_func__spawnlp = yes; then
51014 cat >>confdefs.h <<\_ACEOF
51015 #define HAVE_SPAWNLP 1
51021 echo "$as_me:$LINENO: checking for _snprintf" >&5
51022 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
51023 if test "${ac_cv_func__snprintf+set}" = set; then
51024 echo $ECHO_N "(cached) $ECHO_C" >&6
51026 cat >conftest.$ac_ext <<_ACEOF
51029 cat confdefs.h >>conftest.$ac_ext
51030 cat >>conftest.$ac_ext <<_ACEOF
51031 /* end confdefs.h. */
51032 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
51033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51034 #define _snprintf innocuous__snprintf
51036 /* System header to define __stub macros and hopefully few prototypes,
51037 which can conflict with char _snprintf (); below.
51038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51039 <limits.h> exists even on freestanding compilers. */
51042 # include <limits.h>
51044 # include <assert.h>
51049 /* Override any gcc2 internal prototype to avoid an error. */
51054 /* We use char because int might match the return type of a gcc2
51055 builtin and then its argument prototype would still apply. */
51057 /* The GNU C library defines this for functions which it implements
51058 to always fail with ENOSYS. Some functions are actually named
51059 something starting with __ and the normal name is an alias. */
51060 #if defined (__stub__snprintf) || defined (__stub____snprintf)
51063 char (*f) () = _snprintf;
51072 return f != _snprintf;
51077 rm -f conftest.$ac_objext conftest$ac_exeext
51078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51079 (eval $ac_link) 2>conftest.er1
51081 grep -v '^ *+' conftest.er1 >conftest.err
51083 cat conftest.err >&5
51084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51085 (exit $ac_status); } &&
51086 { ac_try='test -z "$ac_c_werror_flag"
51087 || test ! -s conftest.err'
51088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51089 (eval $ac_try) 2>&5
51091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51092 (exit $ac_status); }; } &&
51093 { ac_try='test -s conftest$ac_exeext'
51094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51095 (eval $ac_try) 2>&5
51097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51098 (exit $ac_status); }; }; then
51099 ac_cv_func__snprintf=yes
51101 echo "$as_me: failed program was:" >&5
51102 sed 's/^/| /' conftest.$ac_ext >&5
51104 ac_cv_func__snprintf=no
51106 rm -f conftest.err conftest.$ac_objext \
51107 conftest$ac_exeext conftest.$ac_ext
51109 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51110 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51111 if test $ac_cv_func__snprintf = yes; then
51112 ac_cv_func_snprintf=yes
51114 cat >>confdefs.h <<\_ACEOF
51115 #define snprintf _snprintf
51122 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51123 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51124 if test "${ac_cv_func__vsnprintf+set}" = set; then
51125 echo $ECHO_N "(cached) $ECHO_C" >&6
51127 cat >conftest.$ac_ext <<_ACEOF
51130 cat confdefs.h >>conftest.$ac_ext
51131 cat >>conftest.$ac_ext <<_ACEOF
51132 /* end confdefs.h. */
51133 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51135 #define _vsnprintf innocuous__vsnprintf
51137 /* System header to define __stub macros and hopefully few prototypes,
51138 which can conflict with char _vsnprintf (); below.
51139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51140 <limits.h> exists even on freestanding compilers. */
51143 # include <limits.h>
51145 # include <assert.h>
51150 /* Override any gcc2 internal prototype to avoid an error. */
51155 /* We use char because int might match the return type of a gcc2
51156 builtin and then its argument prototype would still apply. */
51157 char _vsnprintf ();
51158 /* The GNU C library defines this for functions which it implements
51159 to always fail with ENOSYS. Some functions are actually named
51160 something starting with __ and the normal name is an alias. */
51161 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51164 char (*f) () = _vsnprintf;
51173 return f != _vsnprintf;
51178 rm -f conftest.$ac_objext conftest$ac_exeext
51179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51180 (eval $ac_link) 2>conftest.er1
51182 grep -v '^ *+' conftest.er1 >conftest.err
51184 cat conftest.err >&5
51185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51186 (exit $ac_status); } &&
51187 { ac_try='test -z "$ac_c_werror_flag"
51188 || test ! -s conftest.err'
51189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51190 (eval $ac_try) 2>&5
51192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51193 (exit $ac_status); }; } &&
51194 { ac_try='test -s conftest$ac_exeext'
51195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51196 (eval $ac_try) 2>&5
51198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51199 (exit $ac_status); }; }; then
51200 ac_cv_func__vsnprintf=yes
51202 echo "$as_me: failed program was:" >&5
51203 sed 's/^/| /' conftest.$ac_ext >&5
51205 ac_cv_func__vsnprintf=no
51207 rm -f conftest.err conftest.$ac_objext \
51208 conftest$ac_exeext conftest.$ac_ext
51210 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51211 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51212 if test $ac_cv_func__vsnprintf = yes; then
51213 ac_cv_func_vsnprintf=yes
51215 cat >>confdefs.h <<\_ACEOF
51216 #define vsnprintf _vsnprintf
51224 for ac_func in vprintf
51226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51227 echo "$as_me:$LINENO: checking for $ac_func" >&5
51228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51229 if eval "test \"\${$as_ac_var+set}\" = set"; then
51230 echo $ECHO_N "(cached) $ECHO_C" >&6
51232 cat >conftest.$ac_ext <<_ACEOF
51235 cat confdefs.h >>conftest.$ac_ext
51236 cat >>conftest.$ac_ext <<_ACEOF
51237 /* end confdefs.h. */
51238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51240 #define $ac_func innocuous_$ac_func
51242 /* System header to define __stub macros and hopefully few prototypes,
51243 which can conflict with char $ac_func (); below.
51244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51245 <limits.h> exists even on freestanding compilers. */
51248 # include <limits.h>
51250 # include <assert.h>
51255 /* Override any gcc2 internal prototype to avoid an error. */
51260 /* We use char because int might match the return type of a gcc2
51261 builtin and then its argument prototype would still apply. */
51263 /* The GNU C library defines this for functions which it implements
51264 to always fail with ENOSYS. Some functions are actually named
51265 something starting with __ and the normal name is an alias. */
51266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51269 char (*f) () = $ac_func;
51278 return f != $ac_func;
51283 rm -f conftest.$ac_objext conftest$ac_exeext
51284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51285 (eval $ac_link) 2>conftest.er1
51287 grep -v '^ *+' conftest.er1 >conftest.err
51289 cat conftest.err >&5
51290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51291 (exit $ac_status); } &&
51292 { ac_try='test -z "$ac_c_werror_flag"
51293 || test ! -s conftest.err'
51294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51295 (eval $ac_try) 2>&5
51297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51298 (exit $ac_status); }; } &&
51299 { ac_try='test -s conftest$ac_exeext'
51300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51301 (eval $ac_try) 2>&5
51303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51304 (exit $ac_status); }; }; then
51305 eval "$as_ac_var=yes"
51307 echo "$as_me: failed program was:" >&5
51308 sed 's/^/| /' conftest.$ac_ext >&5
51310 eval "$as_ac_var=no"
51312 rm -f conftest.err conftest.$ac_objext \
51313 conftest$ac_exeext conftest.$ac_ext
51315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51317 if test `eval echo '${'$as_ac_var'}'` = yes; then
51318 cat >>confdefs.h <<_ACEOF
51319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51322 echo "$as_me:$LINENO: checking for _doprnt" >&5
51323 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51324 if test "${ac_cv_func__doprnt+set}" = set; then
51325 echo $ECHO_N "(cached) $ECHO_C" >&6
51327 cat >conftest.$ac_ext <<_ACEOF
51330 cat confdefs.h >>conftest.$ac_ext
51331 cat >>conftest.$ac_ext <<_ACEOF
51332 /* end confdefs.h. */
51333 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51335 #define _doprnt innocuous__doprnt
51337 /* System header to define __stub macros and hopefully few prototypes,
51338 which can conflict with char _doprnt (); below.
51339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51340 <limits.h> exists even on freestanding compilers. */
51343 # include <limits.h>
51345 # include <assert.h>
51350 /* Override any gcc2 internal prototype to avoid an error. */
51355 /* We use char because int might match the return type of a gcc2
51356 builtin and then its argument prototype would still apply. */
51358 /* The GNU C library defines this for functions which it implements
51359 to always fail with ENOSYS. Some functions are actually named
51360 something starting with __ and the normal name is an alias. */
51361 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51364 char (*f) () = _doprnt;
51373 return f != _doprnt;
51378 rm -f conftest.$ac_objext conftest$ac_exeext
51379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51380 (eval $ac_link) 2>conftest.er1
51382 grep -v '^ *+' conftest.er1 >conftest.err
51384 cat conftest.err >&5
51385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51386 (exit $ac_status); } &&
51387 { ac_try='test -z "$ac_c_werror_flag"
51388 || test ! -s conftest.err'
51389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51390 (eval $ac_try) 2>&5
51392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51393 (exit $ac_status); }; } &&
51394 { ac_try='test -s conftest$ac_exeext'
51395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51396 (eval $ac_try) 2>&5
51398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51399 (exit $ac_status); }; }; then
51400 ac_cv_func__doprnt=yes
51402 echo "$as_me: failed program was:" >&5
51403 sed 's/^/| /' conftest.$ac_ext >&5
51405 ac_cv_func__doprnt=no
51407 rm -f conftest.err conftest.$ac_objext \
51408 conftest$ac_exeext conftest.$ac_ext
51410 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51411 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51412 if test $ac_cv_func__doprnt = yes; then
51414 cat >>confdefs.h <<\_ACEOF
51415 #define HAVE_DOPRNT 1
51425 if test $ac_cv_func_vprintf = yes ; then
51428 for ac_func in snprintf vsnprintf
51430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51431 echo "$as_me:$LINENO: checking for $ac_func" >&5
51432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51433 if eval "test \"\${$as_ac_var+set}\" = set"; then
51434 echo $ECHO_N "(cached) $ECHO_C" >&6
51436 cat >conftest.$ac_ext <<_ACEOF
51439 cat confdefs.h >>conftest.$ac_ext
51440 cat >>conftest.$ac_ext <<_ACEOF
51441 /* end confdefs.h. */
51442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51444 #define $ac_func innocuous_$ac_func
51446 /* System header to define __stub macros and hopefully few prototypes,
51447 which can conflict with char $ac_func (); below.
51448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51449 <limits.h> exists even on freestanding compilers. */
51452 # include <limits.h>
51454 # include <assert.h>
51459 /* Override any gcc2 internal prototype to avoid an error. */
51464 /* We use char because int might match the return type of a gcc2
51465 builtin and then its argument prototype would still apply. */
51467 /* The GNU C library defines this for functions which it implements
51468 to always fail with ENOSYS. Some functions are actually named
51469 something starting with __ and the normal name is an alias. */
51470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51473 char (*f) () = $ac_func;
51482 return f != $ac_func;
51487 rm -f conftest.$ac_objext conftest$ac_exeext
51488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51489 (eval $ac_link) 2>conftest.er1
51491 grep -v '^ *+' conftest.er1 >conftest.err
51493 cat conftest.err >&5
51494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51495 (exit $ac_status); } &&
51496 { ac_try='test -z "$ac_c_werror_flag"
51497 || test ! -s conftest.err'
51498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51499 (eval $ac_try) 2>&5
51501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51502 (exit $ac_status); }; } &&
51503 { ac_try='test -s conftest$ac_exeext'
51504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51505 (eval $ac_try) 2>&5
51507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51508 (exit $ac_status); }; }; then
51509 eval "$as_ac_var=yes"
51511 echo "$as_me: failed program was:" >&5
51512 sed 's/^/| /' conftest.$ac_ext >&5
51514 eval "$as_ac_var=no"
51516 rm -f conftest.err conftest.$ac_objext \
51517 conftest$ac_exeext conftest.$ac_ext
51519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51521 if test `eval echo '${'$as_ac_var'}'` = yes; then
51522 cat >>confdefs.h <<_ACEOF
51523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51641 echo "$as_me:$LINENO: checking for $ac_func" >&5
51642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51643 if eval "test \"\${$as_ac_var+set}\" = set"; then
51644 echo $ECHO_N "(cached) $ECHO_C" >&6
51646 cat >conftest.$ac_ext <<_ACEOF
51649 cat confdefs.h >>conftest.$ac_ext
51650 cat >>conftest.$ac_ext <<_ACEOF
51651 /* end confdefs.h. */
51652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51654 #define $ac_func innocuous_$ac_func
51656 /* System header to define __stub macros and hopefully few prototypes,
51657 which can conflict with char $ac_func (); below.
51658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51659 <limits.h> exists even on freestanding compilers. */
51662 # include <limits.h>
51664 # include <assert.h>
51669 /* Override any gcc2 internal prototype to avoid an error. */
51674 /* We use char because int might match the return type of a gcc2
51675 builtin and then its argument prototype would still apply. */
51677 /* The GNU C library defines this for functions which it implements
51678 to always fail with ENOSYS. Some functions are actually named
51679 something starting with __ and the normal name is an alias. */
51680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51683 char (*f) () = $ac_func;
51692 return f != $ac_func;
51697 rm -f conftest.$ac_objext conftest$ac_exeext
51698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51699 (eval $ac_link) 2>conftest.er1
51701 grep -v '^ *+' conftest.er1 >conftest.err
51703 cat conftest.err >&5
51704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51705 (exit $ac_status); } &&
51706 { ac_try='test -z "$ac_c_werror_flag"
51707 || test ! -s conftest.err'
51708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51709 (eval $ac_try) 2>&5
51711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51712 (exit $ac_status); }; } &&
51713 { ac_try='test -s conftest$ac_exeext'
51714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51715 (eval $ac_try) 2>&5
51717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51718 (exit $ac_status); }; }; then
51719 eval "$as_ac_var=yes"
51721 echo "$as_me: failed program was:" >&5
51722 sed 's/^/| /' conftest.$ac_ext >&5
51724 eval "$as_ac_var=no"
51726 rm -f conftest.err conftest.$ac_objext \
51727 conftest$ac_exeext conftest.$ac_ext
51729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51731 if test `eval echo '${'$as_ac_var'}'` = yes; then
51732 cat >>confdefs.h <<_ACEOF
51733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51742 for ac_func in getopt getpeereid
51744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51745 echo "$as_me:$LINENO: checking for $ac_func" >&5
51746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51747 if eval "test \"\${$as_ac_var+set}\" = set"; then
51748 echo $ECHO_N "(cached) $ECHO_C" >&6
51750 cat >conftest.$ac_ext <<_ACEOF
51753 cat confdefs.h >>conftest.$ac_ext
51754 cat >>conftest.$ac_ext <<_ACEOF
51755 /* end confdefs.h. */
51756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51758 #define $ac_func innocuous_$ac_func
51760 /* System header to define __stub macros and hopefully few prototypes,
51761 which can conflict with char $ac_func (); below.
51762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51763 <limits.h> exists even on freestanding compilers. */
51766 # include <limits.h>
51768 # include <assert.h>
51773 /* Override any gcc2 internal prototype to avoid an error. */
51778 /* We use char because int might match the return type of a gcc2
51779 builtin and then its argument prototype would still apply. */
51781 /* The GNU C library defines this for functions which it implements
51782 to always fail with ENOSYS. Some functions are actually named
51783 something starting with __ and the normal name is an alias. */
51784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51787 char (*f) () = $ac_func;
51796 return f != $ac_func;
51801 rm -f conftest.$ac_objext conftest$ac_exeext
51802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51803 (eval $ac_link) 2>conftest.er1
51805 grep -v '^ *+' conftest.er1 >conftest.err
51807 cat conftest.err >&5
51808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51809 (exit $ac_status); } &&
51810 { ac_try='test -z "$ac_c_werror_flag"
51811 || test ! -s conftest.err'
51812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51813 (eval $ac_try) 2>&5
51815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51816 (exit $ac_status); }; } &&
51817 { ac_try='test -s conftest$ac_exeext'
51818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51819 (eval $ac_try) 2>&5
51821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51822 (exit $ac_status); }; }; then
51823 eval "$as_ac_var=yes"
51825 echo "$as_me: failed program was:" >&5
51826 sed 's/^/| /' conftest.$ac_ext >&5
51828 eval "$as_ac_var=no"
51830 rm -f conftest.err conftest.$ac_objext \
51831 conftest$ac_exeext conftest.$ac_ext
51833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51835 if test `eval echo '${'$as_ac_var'}'` = yes; then
51836 cat >>confdefs.h <<_ACEOF
51837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51842 "$ac_func.$ac_objext" | \
51843 *" $ac_func.$ac_objext" | \
51844 "$ac_func.$ac_objext "* | \
51845 *" $ac_func.$ac_objext "* ) ;;
51846 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51854 if test "$ac_cv_func_getopt" != yes; then
51855 LIBSRCS="$LIBSRCS getopt.c"
51857 if test "$ac_cv_func_getpeereid" != yes; then
51858 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51859 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51860 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51861 echo $ECHO_N "(cached) $ECHO_C" >&6
51863 cat >conftest.$ac_ext <<_ACEOF
51866 cat confdefs.h >>conftest.$ac_ext
51867 cat >>conftest.$ac_ext <<_ACEOF
51868 /* end confdefs.h. */
51869 $ac_includes_default
51870 #ifdef HAVE_SYS_SOCKET_H
51871 #include <sys/socket.h>
51877 static struct msghdr ac_aggr;
51878 if (ac_aggr.msg_accrightslen)
51884 rm -f conftest.$ac_objext
51885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51886 (eval $ac_compile) 2>conftest.er1
51888 grep -v '^ *+' conftest.er1 >conftest.err
51890 cat conftest.err >&5
51891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51892 (exit $ac_status); } &&
51893 { ac_try='test -z "$ac_c_werror_flag"
51894 || test ! -s conftest.err'
51895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51896 (eval $ac_try) 2>&5
51898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51899 (exit $ac_status); }; } &&
51900 { ac_try='test -s conftest.$ac_objext'
51901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51902 (eval $ac_try) 2>&5
51904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51905 (exit $ac_status); }; }; then
51906 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51908 echo "$as_me: failed program was:" >&5
51909 sed 's/^/| /' conftest.$ac_ext >&5
51911 cat >conftest.$ac_ext <<_ACEOF
51914 cat confdefs.h >>conftest.$ac_ext
51915 cat >>conftest.$ac_ext <<_ACEOF
51916 /* end confdefs.h. */
51917 $ac_includes_default
51918 #ifdef HAVE_SYS_SOCKET_H
51919 #include <sys/socket.h>
51925 static struct msghdr ac_aggr;
51926 if (sizeof ac_aggr.msg_accrightslen)
51932 rm -f conftest.$ac_objext
51933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51934 (eval $ac_compile) 2>conftest.er1
51936 grep -v '^ *+' conftest.er1 >conftest.err
51938 cat conftest.err >&5
51939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51940 (exit $ac_status); } &&
51941 { ac_try='test -z "$ac_c_werror_flag"
51942 || test ! -s conftest.err'
51943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51944 (eval $ac_try) 2>&5
51946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51947 (exit $ac_status); }; } &&
51948 { ac_try='test -s conftest.$ac_objext'
51949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51950 (eval $ac_try) 2>&5
51952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51953 (exit $ac_status); }; }; then
51954 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51956 echo "$as_me: failed program was:" >&5
51957 sed 's/^/| /' conftest.$ac_ext >&5
51959 ac_cv_member_struct_msghdr_msg_accrightslen=no
51961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51965 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
51966 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
51967 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
51969 cat >>confdefs.h <<_ACEOF
51970 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
51976 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
51977 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
51978 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
51979 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
51980 echo $ECHO_N "(cached) $ECHO_C" >&6
51982 cat >conftest.$ac_ext <<_ACEOF
51985 cat confdefs.h >>conftest.$ac_ext
51986 cat >>conftest.$ac_ext <<_ACEOF
51987 /* end confdefs.h. */
51988 $ac_includes_default
51989 #ifdef HAVE_SYS_SOCKET_H
51990 #include <sys/socket.h>
51996 static struct msghdr ac_aggr;
51997 if (ac_aggr.msg_control)
52003 rm -f conftest.$ac_objext
52004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52005 (eval $ac_compile) 2>conftest.er1
52007 grep -v '^ *+' conftest.er1 >conftest.err
52009 cat conftest.err >&5
52010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52011 (exit $ac_status); } &&
52012 { ac_try='test -z "$ac_c_werror_flag"
52013 || test ! -s conftest.err'
52014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52015 (eval $ac_try) 2>&5
52017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52018 (exit $ac_status); }; } &&
52019 { ac_try='test -s conftest.$ac_objext'
52020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52021 (eval $ac_try) 2>&5
52023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52024 (exit $ac_status); }; }; then
52025 ac_cv_member_struct_msghdr_msg_control=yes
52027 echo "$as_me: failed program was:" >&5
52028 sed 's/^/| /' conftest.$ac_ext >&5
52030 cat >conftest.$ac_ext <<_ACEOF
52033 cat confdefs.h >>conftest.$ac_ext
52034 cat >>conftest.$ac_ext <<_ACEOF
52035 /* end confdefs.h. */
52036 $ac_includes_default
52037 #ifdef HAVE_SYS_SOCKET_H
52038 #include <sys/socket.h>
52044 static struct msghdr ac_aggr;
52045 if (sizeof ac_aggr.msg_control)
52051 rm -f conftest.$ac_objext
52052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52053 (eval $ac_compile) 2>conftest.er1
52055 grep -v '^ *+' conftest.er1 >conftest.err
52057 cat conftest.err >&5
52058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52059 (exit $ac_status); } &&
52060 { ac_try='test -z "$ac_c_werror_flag"
52061 || test ! -s conftest.err'
52062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52063 (eval $ac_try) 2>&5
52065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52066 (exit $ac_status); }; } &&
52067 { ac_try='test -s conftest.$ac_objext'
52068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52069 (eval $ac_try) 2>&5
52071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52072 (exit $ac_status); }; }; then
52073 ac_cv_member_struct_msghdr_msg_control=yes
52075 echo "$as_me: failed program was:" >&5
52076 sed 's/^/| /' conftest.$ac_ext >&5
52078 ac_cv_member_struct_msghdr_msg_control=no
52080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52084 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
52085 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
52086 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
52088 cat >>confdefs.h <<_ACEOF
52089 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52096 LIBSRCS="$LIBSRCS getpeereid.c"
52098 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52099 if test "$ac_cv_func_snprintf" != yes; then
52101 cat >>confdefs.h <<\_ACEOF
52102 #define snprintf ber_pvt_snprintf
52106 if test "$ac_cv_func_vsnprintf" != yes; then
52108 cat >>confdefs.h <<\_ACEOF
52109 #define vsnprintf ber_pvt_vsnprintf
52116 if test "$ol_enable_slapi" != no ; then
52118 for ac_header in ltdl.h
52120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52122 echo "$as_me:$LINENO: checking for $ac_header" >&5
52123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52125 echo $ECHO_N "(cached) $ECHO_C" >&6
52127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52130 # Is the header compilable?
52131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52133 cat >conftest.$ac_ext <<_ACEOF
52136 cat confdefs.h >>conftest.$ac_ext
52137 cat >>conftest.$ac_ext <<_ACEOF
52138 /* end confdefs.h. */
52139 $ac_includes_default
52140 #include <$ac_header>
52142 rm -f conftest.$ac_objext
52143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52144 (eval $ac_compile) 2>conftest.er1
52146 grep -v '^ *+' conftest.er1 >conftest.err
52148 cat conftest.err >&5
52149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52150 (exit $ac_status); } &&
52151 { ac_try='test -z "$ac_c_werror_flag"
52152 || test ! -s conftest.err'
52153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52154 (eval $ac_try) 2>&5
52156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52157 (exit $ac_status); }; } &&
52158 { ac_try='test -s conftest.$ac_objext'
52159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52160 (eval $ac_try) 2>&5
52162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52163 (exit $ac_status); }; }; then
52164 ac_header_compiler=yes
52166 echo "$as_me: failed program was:" >&5
52167 sed 's/^/| /' conftest.$ac_ext >&5
52169 ac_header_compiler=no
52171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52173 echo "${ECHO_T}$ac_header_compiler" >&6
52175 # Is the header present?
52176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52178 cat >conftest.$ac_ext <<_ACEOF
52181 cat confdefs.h >>conftest.$ac_ext
52182 cat >>conftest.$ac_ext <<_ACEOF
52183 /* end confdefs.h. */
52184 #include <$ac_header>
52186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52189 grep -v '^ *+' conftest.er1 >conftest.err
52191 cat conftest.err >&5
52192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52193 (exit $ac_status); } >/dev/null; then
52194 if test -s conftest.err; then
52195 ac_cpp_err=$ac_c_preproc_warn_flag
52196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52203 if test -z "$ac_cpp_err"; then
52204 ac_header_preproc=yes
52206 echo "$as_me: failed program was:" >&5
52207 sed 's/^/| /' conftest.$ac_ext >&5
52209 ac_header_preproc=no
52211 rm -f conftest.err conftest.$ac_ext
52212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52213 echo "${ECHO_T}$ac_header_preproc" >&6
52215 # So? What about this header?
52216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52222 ac_header_preproc=yes
52225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52239 ## ------------------------------------------ ##
52240 ## Report this to the AC_PACKAGE_NAME lists. ##
52241 ## ------------------------------------------ ##
52244 sed "s/^/$as_me: WARNING: /" >&2
52247 echo "$as_me:$LINENO: checking for $ac_header" >&5
52248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52250 echo $ECHO_N "(cached) $ECHO_C" >&6
52252 eval "$as_ac_Header=\$ac_header_preproc"
52254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52259 cat >>confdefs.h <<_ACEOF
52260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52268 if test $ac_cv_header_ltdl_h != yes ; then
52269 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52270 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52271 { (exit 1); exit 1; }; }
52273 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52274 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52275 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52276 echo $ECHO_N "(cached) $ECHO_C" >&6
52278 ac_check_lib_save_LIBS=$LIBS
52279 LIBS="-lltdl $LIBS"
52280 cat >conftest.$ac_ext <<_ACEOF
52283 cat confdefs.h >>conftest.$ac_ext
52284 cat >>conftest.$ac_ext <<_ACEOF
52285 /* end confdefs.h. */
52287 /* Override any gcc2 internal prototype to avoid an error. */
52291 /* We use char because int might match the return type of a gcc2
52292 builtin and then its argument prototype would still apply. */
52302 rm -f conftest.$ac_objext conftest$ac_exeext
52303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52304 (eval $ac_link) 2>conftest.er1
52306 grep -v '^ *+' conftest.er1 >conftest.err
52308 cat conftest.err >&5
52309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52310 (exit $ac_status); } &&
52311 { ac_try='test -z "$ac_c_werror_flag"
52312 || test ! -s conftest.err'
52313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52314 (eval $ac_try) 2>&5
52316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52317 (exit $ac_status); }; } &&
52318 { ac_try='test -s conftest$ac_exeext'
52319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52320 (eval $ac_try) 2>&5
52322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52323 (exit $ac_status); }; }; then
52324 ac_cv_lib_ltdl_lt_dlinit=yes
52326 echo "$as_me: failed program was:" >&5
52327 sed 's/^/| /' conftest.$ac_ext >&5
52329 ac_cv_lib_ltdl_lt_dlinit=no
52331 rm -f conftest.err conftest.$ac_objext \
52332 conftest$ac_exeext conftest.$ac_ext
52333 LIBS=$ac_check_lib_save_LIBS
52335 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52336 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52337 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52340 LIBSLAPI=libslapi.a
52341 LIBSLAPITOOLS=../libslapi.a
52343 cat >>confdefs.h <<\_ACEOF
52344 #define HAVE_LIBLTDL 1
52349 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52350 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52351 { (exit 1); exit 1; }; }
52356 cat >>confdefs.h <<\_ACEOF
52357 #define LDAP_SLAPI 1
52362 if test "$ol_enable_debug" != no ; then
52364 cat >>confdefs.h <<\_ACEOF
52365 #define LDAP_DEBUG 1
52369 if test "$ol_enable_syslog" = yes ; then
52371 cat >>confdefs.h <<\_ACEOF
52372 #define LDAP_SYSLOG 1
52376 if test "$ol_link_kbind" != no ; then
52378 cat >>confdefs.h <<\_ACEOF
52379 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52383 if test "$ol_enable_proctitle" != no ; then
52385 cat >>confdefs.h <<\_ACEOF
52386 #define LDAP_PROCTITLE 1
52390 if test "$ol_enable_referrals" != no ; then
52392 cat >>confdefs.h <<\_ACEOF
52393 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52397 if test "$ol_enable_local" != no; then
52399 cat >>confdefs.h <<\_ACEOF
52400 #define LDAP_PF_LOCAL 1
52404 if test "$ol_link_ipv6" != no; then
52406 cat >>confdefs.h <<\_ACEOF
52407 #define LDAP_PF_INET6 1
52411 if test "$ol_enable_cleartext" != no ; then
52413 cat >>confdefs.h <<\_ACEOF
52414 #define SLAPD_CLEARTEXT 1
52418 if test "$ol_enable_crypt" != no ; then
52420 cat >>confdefs.h <<\_ACEOF
52421 #define SLAPD_CRYPT 1
52425 if test "$ol_link_spasswd" != no ; then
52427 cat >>confdefs.h <<\_ACEOF
52428 #define SLAPD_SPASSWD 1
52432 if test "$ol_enable_multimaster" != no ; then
52434 cat >>confdefs.h <<\_ACEOF
52435 #define SLAPD_MULTIMASTER 1
52439 if test "$ol_enable_rlookups" != no ; then
52441 cat >>confdefs.h <<\_ACEOF
52442 #define SLAPD_RLOOKUPS 1
52446 if test "$ol_enable_aci" != no ; then
52448 cat >>confdefs.h <<\_ACEOF
52449 #define SLAPD_ACI_ENABLED 1
52454 if test "$ol_link_modules" != no ; then
52456 cat >>confdefs.h <<\_ACEOF
52457 #define SLAPD_MODULES 1
52461 SLAPD_MODULES_LDFLAGS="-dlopen self"
52465 cat >>confdefs.h <<\_ACEOF
52466 #define SLAPD_MOD_STATIC 1
52470 cat >>confdefs.h <<\_ACEOF
52471 #define SLAPD_MOD_DYNAMIC 2
52475 if test "$ol_enable_bdb" != no ; then
52477 BUILD_BDB=$ol_enable_bdb
52478 if test "$ol_enable_bdb" = mod ; then
52479 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52480 MFLAG=SLAPD_MOD_DYNAMIC
52482 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52483 MFLAG=SLAPD_MOD_STATIC
52486 cat >>confdefs.h <<_ACEOF
52487 #define SLAPD_BDB $MFLAG
52492 if test "$ol_enable_dnssrv" != no ; then
52494 BUILD_DNSSRV=$ol_enable_dnssrv
52495 if test "$ol_enable_dnssrv" = mod ; then
52496 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52497 MFLAG=SLAPD_MOD_DYNAMIC
52499 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52500 MFLAG=SLAPD_MOD_STATIC
52503 cat >>confdefs.h <<_ACEOF
52504 #define SLAPD_DNSSRV $MFLAG
52509 if test "$ol_enable_hdb" != no ; then
52511 BUILD_HDB=$ol_enable_hdb
52512 if test "$ol_enable_hdb" = mod ; then
52513 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52514 MFLAG=SLAPD_MOD_DYNAMIC
52516 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52517 MFLAG=SLAPD_MOD_STATIC
52520 cat >>confdefs.h <<_ACEOF
52521 #define SLAPD_HDB $MFLAG
52526 if test "$ol_enable_ldap" != no ; then
52528 BUILD_LDAP=$ol_enable_ldap
52529 if test "$ol_enable_ldap" = mod ; then
52530 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52531 MFLAG=SLAPD_MOD_DYNAMIC
52533 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52534 MFLAG=SLAPD_MOD_STATIC
52537 cat >>confdefs.h <<_ACEOF
52538 #define SLAPD_LDAP $MFLAG
52543 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52545 BUILD_LDBM=$ol_enable_ldbm
52546 if test "$ol_enable_ldbm" = mod ; then
52547 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52548 MFLAG=SLAPD_MOD_DYNAMIC
52550 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52551 MFLAG=SLAPD_MOD_STATIC
52554 cat >>confdefs.h <<_ACEOF
52555 #define SLAPD_LDBM $MFLAG
52560 if test "$ol_enable_meta" != no ; then
52562 BUILD_META=$ol_enable_meta
52564 if test "$ol_enable_meta" = mod ; then
52565 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52566 MFLAG=SLAPD_MOD_DYNAMIC
52568 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52569 MFLAG=SLAPD_MOD_STATIC
52572 cat >>confdefs.h <<_ACEOF
52573 #define SLAPD_META $MFLAG
52578 if test "$ol_enable_monitor" != no ; then
52580 BUILD_MONITOR=$ol_enable_monitor
52581 if test "$ol_enable_monitor" = mod ; then
52582 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52583 MFLAG=SLAPD_MOD_DYNAMIC
52585 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52586 MFLAG=SLAPD_MOD_STATIC
52589 cat >>confdefs.h <<_ACEOF
52590 #define SLAPD_MONITOR $MFLAG
52595 if test "$ol_enable_null" != no ; then
52597 BUILD_NULL=$ol_enable_null
52598 if test "$ol_enable_null" = mod ; then
52599 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52600 MFLAG=SLAPD_MOD_DYNAMIC
52602 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52603 MFLAG=SLAPD_MOD_STATIC
52606 cat >>confdefs.h <<_ACEOF
52607 #define SLAPD_NULL $MFLAG
52612 if test "$ol_enable_passwd" != no ; then
52614 BUILD_PASSWD=$ol_enable_passwd
52615 if test "$ol_enable_passwd" = mod ; then
52616 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52617 MFLAG=SLAPD_MOD_DYNAMIC
52619 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52620 MFLAG=SLAPD_MOD_STATIC
52623 cat >>confdefs.h <<_ACEOF
52624 #define SLAPD_PASSWD $MFLAG
52629 if test "$ol_link_perl" != no ; then
52631 BUILD_PERL=$ol_enable_perl
52632 if test "$ol_enable_perl" = mod ; then
52633 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52634 MFLAG=SLAPD_MOD_DYNAMIC
52636 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52637 MFLAG=SLAPD_MOD_STATIC
52640 cat >>confdefs.h <<_ACEOF
52641 #define SLAPD_PERL $MFLAG
52646 if test "$ol_enable_relay" != no ; then
52648 BUILD_RELAY=$ol_enable_relay
52649 if test "$ol_enable_relay" = mod ; then
52650 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52651 MFLAG=SLAPD_MOD_DYNAMIC
52653 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52654 MFLAG=SLAPD_MOD_STATIC
52657 cat >>confdefs.h <<_ACEOF
52658 #define SLAPD_RELAY $MFLAG
52663 if test "$ol_enable_shell" != no ; then
52664 if test "$ol_link_thread" != no ; then
52665 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52666 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52669 BUILD_SHELL=$ol_enable_shell
52670 if test "$ol_enable_shell" = mod ; then
52671 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52672 MFLAG=SLAPD_MOD_DYNAMIC
52674 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52675 MFLAG=SLAPD_MOD_STATIC
52678 cat >>confdefs.h <<_ACEOF
52679 #define SLAPD_SHELL $MFLAG
52684 if test "$ol_link_sql" != no ; then
52686 BUILD_SQL=$ol_enable_sql
52687 if test "$ol_enable_sql" = mod; then
52688 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52689 MFLAG=SLAPD_MOD_DYNAMIC
52691 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52692 MFLAG=SLAPD_MOD_STATIC
52695 cat >>confdefs.h <<_ACEOF
52696 #define SLAPD_SQL $MFLAG
52701 if test "$ol_enable_accesslog" != no ; then
52702 BUILD_ACCESSLOG=$ol_enable_accesslog
52703 if test "$ol_enable_accesslog" = mod ; then
52704 MFLAG=SLAPD_MOD_DYNAMIC
52705 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52707 MFLAG=SLAPD_MOD_STATIC
52708 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52711 cat >>confdefs.h <<_ACEOF
52712 #define SLAPD_OVER_ACCESSLOG $MFLAG
52717 if test "$ol_enable_denyop" != no ; then
52718 BUILD_DENYOP=$ol_enable_denyop
52719 if test "$ol_enable_denyop" = mod ; then
52720 MFLAG=SLAPD_MOD_DYNAMIC
52721 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52723 MFLAG=SLAPD_MOD_STATIC
52724 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52727 cat >>confdefs.h <<_ACEOF
52728 #define SLAPD_OVER_DENYOP $MFLAG
52733 if test "$ol_enable_dyngroup" != no ; then
52734 BUILD_DYNGROUP=$ol_enable_dyngroup
52735 if test "$ol_enable_dyngroup" = mod ; then
52736 MFLAG=SLAPD_MOD_DYNAMIC
52737 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52739 MFLAG=SLAPD_MOD_STATIC
52740 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52743 cat >>confdefs.h <<_ACEOF
52744 #define SLAPD_OVER_DYNGROUP $MFLAG
52749 if test "$ol_enable_dynlist" != no ; then
52750 BUILD_DYNLIST=$ol_enable_dynlist
52751 if test "$ol_enable_dynlist" = mod ; then
52752 MFLAG=SLAPD_MOD_DYNAMIC
52753 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52755 MFLAG=SLAPD_MOD_STATIC
52756 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52759 cat >>confdefs.h <<_ACEOF
52760 #define SLAPD_OVER_DYNLIST $MFLAG
52765 if test "$ol_enable_glue" != no ; then
52766 BUILD_GLUE=$ol_enable_glue
52767 if test "$ol_enable_glue" = mod ; then
52768 MFLAG=SLAPD_MOD_DYNAMIC
52769 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52771 MFLAG=SLAPD_MOD_STATIC
52772 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52775 cat >>confdefs.h <<_ACEOF
52776 #define SLAPD_OVER_GLUE $MFLAG
52781 if test "$ol_enable_lastmod" != no ; then
52782 BUILD_LASTMOD=$ol_enable_lastmod
52783 if test "$ol_enable_lastmod" = mod ; then
52784 MFLAG=SLAPD_MOD_DYNAMIC
52785 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52787 MFLAG=SLAPD_MOD_STATIC
52788 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52791 cat >>confdefs.h <<_ACEOF
52792 #define SLAPD_OVER_LASTMOD $MFLAG
52797 if test "$ol_enable_ppolicy" != no ; then
52798 BUILD_PPOLICY=$ol_enable_ppolicy
52799 if test "$ol_enable_ppolicy" = mod ; then
52800 MFLAG=SLAPD_MOD_DYNAMIC
52801 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52803 MFLAG=SLAPD_MOD_STATIC
52804 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52807 cat >>confdefs.h <<_ACEOF
52808 #define SLAPD_OVER_PPOLICY $MFLAG
52813 if test "$ol_enable_proxycache" != no ; then
52814 BUILD_PROXYCACHE=$ol_enable_proxycache
52815 if test "$ol_enable_proxycache" = mod ; then
52816 MFLAG=SLAPD_MOD_DYNAMIC
52817 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52819 MFLAG=SLAPD_MOD_STATIC
52820 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52823 cat >>confdefs.h <<_ACEOF
52824 #define SLAPD_OVER_PROXYCACHE $MFLAG
52829 if test "$ol_enable_refint" != no ; then
52830 BUILD_REFINT=$ol_enable_refint
52831 if test "$ol_enable_refint" = mod ; then
52832 MFLAG=SLAPD_MOD_DYNAMIC
52833 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52835 MFLAG=SLAPD_MOD_STATIC
52836 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52839 cat >>confdefs.h <<_ACEOF
52840 #define SLAPD_OVER_REFINT $MFLAG
52845 if test "$ol_enable_retcode" != no ; then
52846 BUILD_RETCODE=$ol_enable_retcode
52847 if test "$ol_enable_retcode" = mod ; then
52848 MFLAG=SLAPD_MOD_DYNAMIC
52849 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52851 MFLAG=SLAPD_MOD_STATIC
52852 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52855 cat >>confdefs.h <<_ACEOF
52856 #define SLAPD_OVER_RETCODE $MFLAG
52861 if test "$ol_enable_rwm" != no ; then
52863 BUILD_RWM=$ol_enable_rwm
52864 if test "$ol_enable_rwm" = mod ; then
52865 MFLAG=SLAPD_MOD_DYNAMIC
52866 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52868 MFLAG=SLAPD_MOD_STATIC
52869 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52872 cat >>confdefs.h <<_ACEOF
52873 #define SLAPD_OVER_RWM $MFLAG
52878 if test "$ol_enable_syncprov" != no ; then
52879 BUILD_SYNCPROV=$ol_enable_syncprov
52880 if test "$ol_enable_syncprov" = mod ; then
52881 MFLAG=SLAPD_MOD_DYNAMIC
52882 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52884 MFLAG=SLAPD_MOD_STATIC
52885 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52888 cat >>confdefs.h <<_ACEOF
52889 #define SLAPD_OVER_SYNCPROV $MFLAG
52894 if test "$ol_enable_translucent" != no ; then
52895 BUILD_TRANSLUCENT=$ol_enable_translucent
52896 if test "$ol_enable_translucent" = mod ; then
52897 MFLAG=SLAPD_MOD_DYNAMIC
52898 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52900 MFLAG=SLAPD_MOD_STATIC
52901 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52904 cat >>confdefs.h <<_ACEOF
52905 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52910 if test "$ol_enable_unique" != no ; then
52911 BUILD_UNIQUE=$ol_enable_unique
52912 if test "$ol_enable_unique" = mod ; then
52913 MFLAG=SLAPD_MOD_DYNAMIC
52914 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52916 MFLAG=SLAPD_MOD_STATIC
52917 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52920 cat >>confdefs.h <<_ACEOF
52921 #define SLAPD_OVER_UNIQUE $MFLAG
52926 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52927 $BUILD_SLAPD = yes ; then
52931 if test "$ol_enable_rewrite" != no ; then
52933 cat >>confdefs.h <<\_ACEOF
52934 #define ENABLE_REWRITE 1
52940 if test "$ol_enable_slapi" != no ; then
52942 cat >>confdefs.h <<\_ACEOF
52943 #define ENABLE_SLAPI 1
52947 SLAPD_SLAPI_DEPEND=libslapi.a
52952 if test "$ac_cv_mingw32" = yes ; then
52954 SLAPD_MODULES_LDFLAGS=
53037 # Check whether --with-xxinstall or --without-xxinstall was given.
53038 if test "${with_xxinstall+set}" = set; then
53039 withval="$with_xxinstall"
53044 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"
53047 ac_config_commands="$ac_config_commands default"
53051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53052 # Let make expand exec_prefix.
53053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53055 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53056 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53057 # trailing colons and then remove the whole line if VPATH becomes empty
53058 # (actually we leave an empty line to preserve line numbers).
53059 if test "x$srcdir" = x.; then
53060 ac_vpsub='/^[ ]*VPATH[ ]*=/{
53061 s/:*\$(srcdir):*/:/;
53062 s/:*\${srcdir}:*/:/;
53064 s/^\([^=]*=[ ]*\):*/\1/;
53070 DEFS=-DHAVE_CONFIG_H
53074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53075 # 1. Remove the extension, and $U if already installed.
53076 ac_i=`echo "$ac_i" |
53077 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53079 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53080 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53082 LIBOBJS=$ac_libobjs
53084 LTLIBOBJS=$ac_ltlibobjs
53087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53088 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53089 Usually this means the macro was only invoked conditionally." >&5
53090 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53091 Usually this means the macro was only invoked conditionally." >&2;}
53092 { (exit 1); exit 1; }; }
53094 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53095 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53096 Usually this means the macro was only invoked conditionally." >&5
53097 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53098 Usually this means the macro was only invoked conditionally." >&2;}
53099 { (exit 1); exit 1; }; }
53101 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53102 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53103 Usually this means the macro was only invoked conditionally." >&5
53104 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53105 Usually this means the macro was only invoked conditionally." >&2;}
53106 { (exit 1); exit 1; }; }
53108 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53109 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53110 Usually this means the macro was only invoked conditionally." >&5
53111 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53112 Usually this means the macro was only invoked conditionally." >&2;}
53113 { (exit 1); exit 1; }; }
53116 : ${CONFIG_STATUS=./config.status}
53117 ac_clean_files_save=$ac_clean_files
53118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53119 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53120 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53121 cat >$CONFIG_STATUS <<_ACEOF
53123 # Generated by $as_me.
53124 # Run this file to recreate the current configuration.
53125 # Compiler output produced by configure, useful for debugging
53126 # configure, is in config.log if it exists.
53129 ac_cs_recheck=false
53131 SHELL=\${CONFIG_SHELL-$SHELL}
53134 cat >>$CONFIG_STATUS <<\_ACEOF
53135 ## --------------------- ##
53136 ## M4sh Initialization. ##
53137 ## --------------------- ##
53139 # Be Bourne compatible
53140 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53143 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53144 # is contrary to our usage. Disable this feature.
53145 alias -g '${1+"$@"}'='"$@"'
53146 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53149 DUALCASE=1; export DUALCASE # for MKS sh
53151 # Support unset when possible.
53152 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53159 # Work around bugs in pre-3.0 UWIN ksh.
53160 $as_unset ENV MAIL MAILPATH
53167 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53168 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53169 LC_TELEPHONE LC_TIME
53171 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53172 eval $as_var=C; export $as_var
53178 # Required to use basename.
53179 if expr a : '\(a\)' >/dev/null 2>&1; then
53185 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53186 as_basename=basename
53192 # Name of the executable.
53193 as_me=`$as_basename "$0" ||
53194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53195 X"$0" : 'X\(//\)$' \| \
53196 X"$0" : 'X\(/\)$' \| \
53197 . : '\(.\)' 2>/dev/null ||
53199 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53200 /^X\/\(\/\/\)$/{ s//\1/; q; }
53201 /^X\/\(\/\).*/{ s//\1/; q; }
53205 # PATH needs CR, and LINENO needs CR and PATH.
53206 # Avoid depending upon Character Ranges.
53207 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53208 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53209 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53210 as_cr_digits='0123456789'
53211 as_cr_alnum=$as_cr_Letters$as_cr_digits
53213 # The user is always right.
53214 if test "${PATH_SEPARATOR+set}" != set; then
53215 echo "#! /bin/sh" >conf$$.sh
53216 echo "exit 0" >>conf$$.sh
53218 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53227 as_lineno_1=$LINENO
53228 as_lineno_2=$LINENO
53229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53230 test "x$as_lineno_1" != "x$as_lineno_2" &&
53231 test "x$as_lineno_3" = "x$as_lineno_2" || {
53232 # Find who we are. Look in the path if we contain no path at all
53235 *[\\/]* ) as_myself=$0 ;;
53236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53237 for as_dir in $PATH
53240 test -z "$as_dir" && as_dir=.
53241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53246 # We did not find ourselves, most probably we were run as `sh COMMAND'
53247 # in which case we are not to be found in the path.
53248 if test "x$as_myself" = x; then
53251 if test ! -f "$as_myself"; then
53252 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53253 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53254 { (exit 1); exit 1; }; }
53256 case $CONFIG_SHELL in
53258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53259 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53262 test -z "$as_dir" && as_dir=.
53263 for as_base in sh bash ksh sh5; do
53266 if ("$as_dir/$as_base" -c '
53267 as_lineno_1=$LINENO
53268 as_lineno_2=$LINENO
53269 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53270 test "x$as_lineno_1" != "x$as_lineno_2" &&
53271 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
53272 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53273 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53274 CONFIG_SHELL=$as_dir/$as_base
53275 export CONFIG_SHELL
53276 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53284 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53285 # uniformly replaced by the line number. The first 'sed' inserts a
53286 # line-number line before each line; the second 'sed' does the real
53287 # work. The second script uses 'N' to pair each line-number line
53288 # with the numbered line, and appends trailing '-' during
53289 # substitution so that $LINENO is not a special case at line end.
53290 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53291 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
53292 sed '=' <$as_myself |
53297 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53300 s,^['$as_cr_digits']*\n,,
53301 ' >$as_me.lineno &&
53302 chmod +x $as_me.lineno ||
53303 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53304 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53305 { (exit 1); exit 1; }; }
53307 # Don't try to exec as it changes $[0], causing all sort of problems
53308 # (the dirname of $[0] is not the place where we might find the
53309 # original and so on. Autoconf is especially sensible to this).
53311 # Exit status is that of the last command.
53316 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53317 *c*,-n*) ECHO_N= ECHO_C='
53319 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53320 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
53323 if expr a : '\(a\)' >/dev/null 2>&1; then
53329 rm -f conf$$ conf$$.exe conf$$.file
53331 if ln -s conf$$.file conf$$ 2>/dev/null; then
53332 # We could just check for DJGPP; but this test a) works b) is more generic
53333 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53334 if test -f conf$$.exe; then
53335 # Don't use ln at all; we don't have any links
53340 elif ln conf$$.file conf$$ 2>/dev/null; then
53345 rm -f conf$$ conf$$.exe conf$$.file
53347 if mkdir -p . 2>/dev/null; then
53350 test -d ./-p && rmdir ./-p
53354 as_executable_p="test -f"
53356 # Sed expression to map a string onto a valid CPP name.
53357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53359 # Sed expression to map a string onto a valid variable name.
53360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53364 # We need space, tab and new line, in precisely that order.
53374 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53375 # report actual input values of CONFIG_FILES etc. instead of their
53376 # values after options handling. Logging --version etc. is OK.
53380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53381 ## Running $as_me. ##
53386 This file was extended by $as_me, which was
53387 generated by GNU Autoconf 2.59. Invocation command line was
53389 CONFIG_FILES = $CONFIG_FILES
53390 CONFIG_HEADERS = $CONFIG_HEADERS
53391 CONFIG_LINKS = $CONFIG_LINKS
53392 CONFIG_COMMANDS = $CONFIG_COMMANDS
53396 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53400 # Files that config.status was made for.
53401 if test -n "$ac_config_files"; then
53402 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53405 if test -n "$ac_config_headers"; then
53406 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53409 if test -n "$ac_config_links"; then
53410 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53413 if test -n "$ac_config_commands"; then
53414 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53417 cat >>$CONFIG_STATUS <<\_ACEOF
53420 \`$as_me' instantiates files from templates according to the
53421 current configuration.
53423 Usage: $0 [OPTIONS] [FILE]...
53425 -h, --help print this help, then exit
53426 -V, --version print version number, then exit
53427 -q, --quiet do not print progress messages
53428 -d, --debug don't remove temporary files
53429 --recheck update $as_me by reconfiguring in the same conditions
53430 --file=FILE[:TEMPLATE]
53431 instantiate the configuration file FILE
53432 --header=FILE[:TEMPLATE]
53433 instantiate the configuration header FILE
53435 Configuration files:
53438 Configuration headers:
53441 Configuration commands:
53444 Report bugs to <bug-autoconf@gnu.org>."
53447 cat >>$CONFIG_STATUS <<_ACEOF
53450 configured by $0, generated by GNU Autoconf 2.59,
53451 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53453 Copyright (C) 2003 Free Software Foundation, Inc.
53454 This config.status script is free software; the Free Software Foundation
53455 gives unlimited permission to copy, distribute and modify it."
53460 cat >>$CONFIG_STATUS <<\_ACEOF
53461 # If no file are specified by the user, then we need to provide default
53462 # value. By we need to know if files were specified by the user.
53468 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53469 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53477 *) # This is not an option, so the user has probably given explicit
53480 ac_need_defaults=false;;
53484 # Handling of the options.
53486 cat >>$CONFIG_STATUS <<\_ACEOF
53487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53489 --version | --vers* | -V )
53490 echo "$ac_cs_version"; exit 0 ;;
53492 # Conflict between --help and --header
53493 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53494 Try \`$0 --help' for more information." >&5
53495 echo "$as_me: error: ambiguous option: $1
53496 Try \`$0 --help' for more information." >&2;}
53497 { (exit 1); exit 1; }; };;
53498 --help | --hel | -h )
53499 echo "$ac_cs_usage"; exit 0 ;;
53500 --debug | --d* | -d )
53502 --file | --fil | --fi | --f )
53504 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53505 ac_need_defaults=false;;
53506 --header | --heade | --head | --hea )
53508 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53509 ac_need_defaults=false;;
53510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53511 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53514 # This is an error.
53515 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53516 Try \`$0 --help' for more information." >&5
53517 echo "$as_me: error: unrecognized option: $1
53518 Try \`$0 --help' for more information." >&2;}
53519 { (exit 1); exit 1; }; } ;;
53521 *) ac_config_targets="$ac_config_targets $1" ;;
53527 ac_configure_extra_args=
53529 if $ac_cs_silent; then
53531 ac_configure_extra_args="$ac_configure_extra_args --silent"
53535 cat >>$CONFIG_STATUS <<_ACEOF
53536 if \$ac_cs_recheck; then
53537 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53538 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53543 cat >>$CONFIG_STATUS <<_ACEOF
53545 # INIT-COMMANDS section.
53548 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53549 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53555 cat >>$CONFIG_STATUS <<\_ACEOF
53556 for ac_config_target in $ac_config_targets
53558 case "$ac_config_target" in
53559 # Handling of arguments.
53560 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53561 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53562 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53563 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53564 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53565 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53566 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53567 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53568 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53569 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53570 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53571 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53572 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53573 "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" ;;
53574 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53575 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53576 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53577 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53578 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53579 "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" ;;
53580 "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" ;;
53581 "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" ;;
53582 "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" ;;
53583 "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" ;;
53584 "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" ;;
53585 "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" ;;
53586 "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" ;;
53587 "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" ;;
53588 "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" ;;
53589 "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" ;;
53590 "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" ;;
53591 "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" ;;
53592 "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" ;;
53593 "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" ;;
53594 "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" ;;
53595 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53596 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53597 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53598 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53599 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53600 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53601 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53602 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53603 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53604 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53605 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53606 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53607 { (exit 1); exit 1; }; };;
53611 # If the user did not use the arguments to specify the items to instantiate,
53612 # then the envvar interface is used. Set only those that are not.
53613 # We use the long form for the default assignment because of an extremely
53614 # bizarre bug on SunOS 4.1.3.
53615 if $ac_need_defaults; then
53616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53621 # Have a temporary directory for convenience. Make it in the build tree
53622 # simply because there is no reason to put it here, and in addition,
53623 # creating and moving files from /tmp can sometimes cause problems.
53624 # Create a temporary directory, and hook for its removal unless debugging.
53627 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53628 trap '{ (exit 1); exit 1; }' 1 2 13 15
53631 # Create a (secure) tmp directory for tmp files.
53634 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53635 test -n "$tmp" && test -d "$tmp"
53638 tmp=./confstat$$-$RANDOM
53639 (umask 077 && mkdir $tmp)
53642 echo "$me: cannot create a temporary directory in ." >&2
53643 { (exit 1); exit 1; }
53648 cat >>$CONFIG_STATUS <<_ACEOF
53651 # CONFIG_FILES section.
53654 # No need to generate the scripts if there are no CONFIG_FILES.
53655 # This happens for instance when ./config.status config.h
53656 if test -n "\$CONFIG_FILES"; then
53657 # Protect against being on the right side of a sed subst in config.status.
53658 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53659 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53660 s,@SHELL@,$SHELL,;t t
53661 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53662 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53663 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53664 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53665 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53666 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53667 s,@exec_prefix@,$exec_prefix,;t t
53668 s,@prefix@,$prefix,;t t
53669 s,@program_transform_name@,$program_transform_name,;t t
53670 s,@bindir@,$bindir,;t t
53671 s,@sbindir@,$sbindir,;t t
53672 s,@libexecdir@,$libexecdir,;t t
53673 s,@datadir@,$datadir,;t t
53674 s,@sysconfdir@,$sysconfdir,;t t
53675 s,@sharedstatedir@,$sharedstatedir,;t t
53676 s,@localstatedir@,$localstatedir,;t t
53677 s,@libdir@,$libdir,;t t
53678 s,@includedir@,$includedir,;t t
53679 s,@oldincludedir@,$oldincludedir,;t t
53680 s,@infodir@,$infodir,;t t
53681 s,@mandir@,$mandir,;t t
53682 s,@build_alias@,$build_alias,;t t
53683 s,@host_alias@,$host_alias,;t t
53684 s,@target_alias@,$target_alias,;t t
53685 s,@DEFS@,$DEFS,;t t
53686 s,@ECHO_C@,$ECHO_C,;t t
53687 s,@ECHO_N@,$ECHO_N,;t t
53688 s,@ECHO_T@,$ECHO_T,;t t
53689 s,@LIBS@,$LIBS,;t t
53690 s,@build@,$build,;t t
53691 s,@build_cpu@,$build_cpu,;t t
53692 s,@build_vendor@,$build_vendor,;t t
53693 s,@build_os@,$build_os,;t t
53694 s,@host@,$host,;t t
53695 s,@host_cpu@,$host_cpu,;t t
53696 s,@host_vendor@,$host_vendor,;t t
53697 s,@host_os@,$host_os,;t t
53698 s,@target@,$target,;t t
53699 s,@target_cpu@,$target_cpu,;t t
53700 s,@target_vendor@,$target_vendor,;t t
53701 s,@target_os@,$target_os,;t t
53702 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53703 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53704 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53705 s,@CYGPATH_W@,$CYGPATH_W,;t t
53706 s,@PACKAGE@,$PACKAGE,;t t
53707 s,@VERSION@,$VERSION,;t t
53708 s,@ACLOCAL@,$ACLOCAL,;t t
53709 s,@AUTOCONF@,$AUTOCONF,;t t
53710 s,@AUTOMAKE@,$AUTOMAKE,;t t
53711 s,@AUTOHEADER@,$AUTOHEADER,;t t
53712 s,@MAKEINFO@,$MAKEINFO,;t t
53713 s,@install_sh@,$install_sh,;t t
53714 s,@STRIP@,$STRIP,;t t
53715 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53716 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53717 s,@mkdir_p@,$mkdir_p,;t t
53719 s,@SET_MAKE@,$SET_MAKE,;t t
53720 s,@am__leading_dot@,$am__leading_dot,;t t
53721 s,@AMTAR@,$AMTAR,;t t
53722 s,@am__tar@,$am__tar,;t t
53723 s,@am__untar@,$am__untar,;t t
53724 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53725 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53726 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53727 s,@top_builddir@,$top_builddir,;t t
53728 s,@ldap_subdir@,$ldap_subdir,;t t
53731 s,@CFLAGS@,$CFLAGS,;t t
53732 s,@LDFLAGS@,$LDFLAGS,;t t
53733 s,@CPPFLAGS@,$CPPFLAGS,;t t
53734 s,@ac_ct_CC@,$ac_ct_CC,;t t
53735 s,@EXEEXT@,$EXEEXT,;t t
53736 s,@OBJEXT@,$OBJEXT,;t t
53737 s,@DEPDIR@,$DEPDIR,;t t
53738 s,@am__include@,$am__include,;t t
53739 s,@am__quote@,$am__quote,;t t
53740 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53741 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53742 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53743 s,@CCDEPMODE@,$CCDEPMODE,;t t
53744 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53745 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53746 s,@EGREP@,$EGREP,;t t
53747 s,@LN_S@,$LN_S,;t t
53748 s,@ECHO@,$ECHO,;t t
53749 s,@ac_ct_AR@,$ac_ct_AR,;t t
53750 s,@RANLIB@,$RANLIB,;t t
53751 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53752 s,@DLLTOOL@,$DLLTOOL,;t t
53753 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53755 s,@ac_ct_AS@,$ac_ct_AS,;t t
53756 s,@OBJDUMP@,$OBJDUMP,;t t
53757 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53760 s,@CXXFLAGS@,$CXXFLAGS,;t t
53761 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53762 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53763 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53764 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53765 s,@CXXCPP@,$CXXCPP,;t t
53767 s,@FFLAGS@,$FFLAGS,;t t
53768 s,@ac_ct_F77@,$ac_ct_F77,;t t
53769 s,@LIBTOOL@,$LIBTOOL,;t t
53770 s,@PERLBIN@,$PERLBIN,;t t
53771 s,@OL_MKDEP@,$OL_MKDEP,;t t
53772 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53773 s,@LTSTATIC@,$LTSTATIC,;t t
53774 s,@LIBOBJS@,$LIBOBJS,;t t
53775 s,@LIBSRCS@,$LIBSRCS,;t t
53776 s,@PLAT@,$PLAT,;t t
53777 s,@WITH_SASL@,$WITH_SASL,;t t
53778 s,@WITH_TLS@,$WITH_TLS,;t t
53779 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53780 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53781 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53782 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53783 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53784 s,@BUILD_BDB@,$BUILD_BDB,;t t
53785 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53786 s,@BUILD_HDB@,$BUILD_HDB,;t t
53787 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53788 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53789 s,@BUILD_META@,$BUILD_META,;t t
53790 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53791 s,@BUILD_NULL@,$BUILD_NULL,;t t
53792 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53793 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53794 s,@BUILD_PERL@,$BUILD_PERL,;t t
53795 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53796 s,@BUILD_SQL@,$BUILD_SQL,;t t
53797 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53798 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53799 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53800 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53801 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53802 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53803 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53804 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53805 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53806 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53807 s,@BUILD_RWM@,$BUILD_RWM,;t t
53808 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53809 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53810 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53811 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53812 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53813 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53814 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53815 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53816 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53817 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53818 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53819 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53820 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53821 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53822 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53823 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53824 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53825 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53826 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53827 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53828 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53829 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53830 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53831 s,@SASL_LIBS@,$SASL_LIBS,;t t
53832 s,@TLS_LIBS@,$TLS_LIBS,;t t
53833 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53834 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53835 s,@LIBSLAPI@,$LIBSLAPI,;t t
53836 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53837 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53838 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53839 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53840 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53841 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53842 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53843 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53848 cat >>$CONFIG_STATUS <<\_ACEOF
53849 # Split the substitutions into bite-sized pieces for seds with
53850 # small command number limits, like on Digital OSF/1 and HP-UX.
53851 ac_max_sed_lines=48
53852 ac_sed_frag=1 # Number of current file.
53853 ac_beg=1 # First line for current file.
53854 ac_end=$ac_max_sed_lines # Line after last line for current file.
53857 while $ac_more_lines; do
53858 if test $ac_beg -gt 1; then
53859 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53861 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53863 if test ! -s $tmp/subs.frag; then
53864 ac_more_lines=false
53866 # The purpose of the label and of the branching condition is to
53867 # speed up the sed processing (if there are no `@' at all, there
53868 # is no need to browse any of the substitutions).
53869 # These are the two extra sed commands mentioned above.
53871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53872 if test -z "$ac_sed_cmds"; then
53873 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53875 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53877 ac_sed_frag=`expr $ac_sed_frag + 1`
53879 ac_end=`expr $ac_end + $ac_max_sed_lines`
53882 if test -z "$ac_sed_cmds"; then
53885 fi # test -n "$CONFIG_FILES"
53888 cat >>$CONFIG_STATUS <<\_ACEOF
53889 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53890 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53892 - | *:- | *:-:* ) # input from stdin
53894 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53895 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53896 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53898 * ) ac_file_in=$ac_file.in ;;
53901 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53902 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53904 X"$ac_file" : 'X\(//\)[^/]' \| \
53905 X"$ac_file" : 'X\(//\)$' \| \
53906 X"$ac_file" : 'X\(/\)' \| \
53907 . : '\(.\)' 2>/dev/null ||
53909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53911 /^X\(\/\/\)$/{ s//\1/; q; }
53912 /^X\(\/\).*/{ s//\1/; q; }
53914 { if $as_mkdir_p; then
53919 while test ! -d "$as_dir"; do
53920 as_dirs="$as_dir $as_dirs"
53921 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53923 X"$as_dir" : 'X\(//\)[^/]' \| \
53924 X"$as_dir" : 'X\(//\)$' \| \
53925 X"$as_dir" : 'X\(/\)' \| \
53926 . : '\(.\)' 2>/dev/null ||
53928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53930 /^X\(\/\/\)$/{ s//\1/; q; }
53931 /^X\(\/\).*/{ s//\1/; q; }
53934 test ! -n "$as_dirs" || mkdir $as_dirs
53935 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53936 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53937 { (exit 1); exit 1; }; }; }
53941 if test "$ac_dir" != .; then
53942 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53943 # A "../" for each directory in $ac_dir_suffix.
53944 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53946 ac_dir_suffix= ac_top_builddir=
53950 .) # No --srcdir option. We are building in place.
53952 if test -z "$ac_top_builddir"; then
53955 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53957 [\\/]* | ?:[\\/]* ) # Absolute path.
53958 ac_srcdir=$srcdir$ac_dir_suffix;
53959 ac_top_srcdir=$srcdir ;;
53960 *) # Relative path.
53961 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53962 ac_top_srcdir=$ac_top_builddir$srcdir ;;
53965 # Do not use `cd foo && pwd` to compute absolute paths, because
53966 # the directories may not exist.
53968 .) ac_abs_builddir="$ac_dir";;
53971 .) ac_abs_builddir=`pwd`;;
53972 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53973 *) ac_abs_builddir=`pwd`/"$ac_dir";;
53976 case $ac_abs_builddir in
53977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53979 case ${ac_top_builddir}. in
53980 .) ac_abs_top_builddir=$ac_abs_builddir;;
53981 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53982 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53985 case $ac_abs_builddir in
53986 .) ac_abs_srcdir=$ac_srcdir;;
53989 .) ac_abs_srcdir=$ac_abs_builddir;;
53990 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53991 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53994 case $ac_abs_builddir in
53995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53997 case $ac_top_srcdir in
53998 .) ac_abs_top_srcdir=$ac_abs_builddir;;
53999 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54000 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54007 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54010 if test x"$ac_file" != x-; then
54011 { echo "$as_me:$LINENO: creating $ac_file" >&5
54012 echo "$as_me: creating $ac_file" >&6;}
54015 # Let's still pretend it is `configure' which instantiates (i.e., don't
54016 # use $as_me), people would be surprised to read:
54017 # /* config.h. Generated by config.status. */
54018 if test x"$ac_file" = x-; then
54021 configure_input="$ac_file. "
54023 configure_input=$configure_input"Generated from `echo $ac_file_in |
54024 sed 's,.*/,,'` by configure."
54026 # First look for the input files in the build tree, otherwise in the
54028 ac_file_inputs=`IFS=:
54029 for f in $ac_file_in; do
54031 -) echo $tmp/stdin ;;
54033 # Absolute (can't be DOS-style, as IFS=:)
54034 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54035 echo "$as_me: error: cannot find input file: $f" >&2;}
54036 { (exit 1); exit 1; }; }
54039 if test -f "$f"; then
54042 elif test -f "$srcdir/$f"; then
54047 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54048 echo "$as_me: error: cannot find input file: $f" >&2;}
54049 { (exit 1); exit 1; }; }
54052 done` || { (exit 1); exit 1; }
54054 cat >>$CONFIG_STATUS <<_ACEOF
54058 cat >>$CONFIG_STATUS <<\_ACEOF
54060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54061 s,@configure_input@,$configure_input,;t t
54062 s,@srcdir@,$ac_srcdir,;t t
54063 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54064 s,@top_srcdir@,$ac_top_srcdir,;t t
54065 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54066 s,@builddir@,$ac_builddir,;t t
54067 s,@abs_builddir@,$ac_abs_builddir,;t t
54068 s,@top_builddir@,$ac_top_builddir,;t t
54069 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54070 s,@INSTALL@,$ac_INSTALL,;t t
54071 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54073 if test x"$ac_file" != x-; then
54074 mv $tmp/out $ac_file
54082 cat >>$CONFIG_STATUS <<\_ACEOF
54085 # CONFIG_HEADER section.
54088 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54089 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54091 # ac_d sets the value in "#define NAME VALUE" lines.
54092 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
54093 ac_dB='[ ].*$,\1#\2'
54096 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54097 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
54098 ac_uB='$,\1#\2define\3'
54102 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54103 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54105 - | *:- | *:-:* ) # input from stdin
54107 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54108 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54109 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54111 * ) ac_file_in=$ac_file.in ;;
54114 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54115 echo "$as_me: creating $ac_file" >&6;}
54117 # First look for the input files in the build tree, otherwise in the
54119 ac_file_inputs=`IFS=:
54120 for f in $ac_file_in; do
54122 -) echo $tmp/stdin ;;
54124 # Absolute (can't be DOS-style, as IFS=:)
54125 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54126 echo "$as_me: error: cannot find input file: $f" >&2;}
54127 { (exit 1); exit 1; }; }
54128 # Do quote $f, to prevent DOS paths from being IFS'd.
54131 if test -f "$f"; then
54134 elif test -f "$srcdir/$f"; then
54139 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54140 echo "$as_me: error: cannot find input file: $f" >&2;}
54141 { (exit 1); exit 1; }; }
54144 done` || { (exit 1); exit 1; }
54145 # Remove the trailing spaces.
54146 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
54150 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54151 # `conftest.undefs', that substitutes the proper values into
54152 # config.h.in to produce config.h. The first handles `#define'
54153 # templates, and the second `#undef' templates.
54154 # And first: Protect against being on the right side of a sed subst in
54155 # config.status. Protect against being in an unquoted here document
54156 # in config.status.
54157 rm -f conftest.defines conftest.undefs
54158 # Using a here document instead of a string reduces the quoting nightmare.
54159 # Putting comments in sed scripts is not portable.
54161 # `end' is used to avoid that the second main sed command (meant for
54162 # 0-ary CPP macros) applies to n-ary macro definitions.
54163 # See the Autoconf documentation for `clear'.
54164 cat >confdef2sed.sed <<\_ACEOF
54169 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54171 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54174 # If some macros were called several times there might be several times
54175 # the same #defines, which is useless. Nevertheless, we may not want to
54176 # sort them, since we want the *last* AC-DEFINE to be honored.
54177 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54178 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54179 rm -f confdef2sed.sed
54181 # This sed command replaces #undef with comments. This is necessary, for
54182 # example, in the case of _POSIX_SOURCE, which is predefined and required
54183 # on some systems where configure will not decide to define it.
54184 cat >>conftest.undefs <<\_ACEOF
54185 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54188 # Break up conftest.defines because some shells have a limit on the size
54189 # of here documents, and old seds have small limits too (100 cmds).
54190 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54191 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54192 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54193 echo ' :' >>$CONFIG_STATUS
54194 rm -f conftest.tail
54195 while grep . conftest.defines >/dev/null
54197 # Write a limited-size here document to $tmp/defines.sed.
54198 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54199 # Speed up: don't consider the non `#define' lines.
54200 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
54201 # Work around the forget-to-reset-the-flag bug.
54202 echo 't clr' >>$CONFIG_STATUS
54203 echo ': clr' >>$CONFIG_STATUS
54204 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54206 sed -f $tmp/defines.sed $tmp/in >$tmp/out
54208 mv $tmp/out $tmp/in
54210 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54211 rm -f conftest.defines
54212 mv conftest.tail conftest.defines
54214 rm -f conftest.defines
54215 echo ' fi # grep' >>$CONFIG_STATUS
54216 echo >>$CONFIG_STATUS
54218 # Break up conftest.undefs because some shells have a limit on the size
54219 # of here documents, and old seds have small limits too (100 cmds).
54220 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
54221 rm -f conftest.tail
54222 while grep . conftest.undefs >/dev/null
54224 # Write a limited-size here document to $tmp/undefs.sed.
54225 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54226 # Speed up: don't consider the non `#undef'
54227 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
54228 # Work around the forget-to-reset-the-flag bug.
54229 echo 't clr' >>$CONFIG_STATUS
54230 echo ': clr' >>$CONFIG_STATUS
54231 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54233 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54235 mv $tmp/out $tmp/in
54237 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54238 rm -f conftest.undefs
54239 mv conftest.tail conftest.undefs
54241 rm -f conftest.undefs
54243 cat >>$CONFIG_STATUS <<\_ACEOF
54244 # Let's still pretend it is `configure' which instantiates (i.e., don't
54245 # use $as_me), people would be surprised to read:
54246 # /* config.h. Generated by config.status. */
54247 if test x"$ac_file" = x-; then
54248 echo "/* Generated by configure. */" >$tmp/config.h
54250 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
54252 cat $tmp/in >>$tmp/config.h
54254 if test x"$ac_file" != x-; then
54255 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54256 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54257 echo "$as_me: $ac_file is unchanged" >&6;}
54259 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54261 X"$ac_file" : 'X\(//\)[^/]' \| \
54262 X"$ac_file" : 'X\(//\)$' \| \
54263 X"$ac_file" : 'X\(/\)' \| \
54264 . : '\(.\)' 2>/dev/null ||
54266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54268 /^X\(\/\/\)$/{ s//\1/; q; }
54269 /^X\(\/\).*/{ s//\1/; q; }
54271 { if $as_mkdir_p; then
54276 while test ! -d "$as_dir"; do
54277 as_dirs="$as_dir $as_dirs"
54278 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54280 X"$as_dir" : 'X\(//\)[^/]' \| \
54281 X"$as_dir" : 'X\(//\)$' \| \
54282 X"$as_dir" : 'X\(/\)' \| \
54283 . : '\(.\)' 2>/dev/null ||
54285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54287 /^X\(\/\/\)$/{ s//\1/; q; }
54288 /^X\(\/\).*/{ s//\1/; q; }
54291 test ! -n "$as_dirs" || mkdir $as_dirs
54292 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54293 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54294 { (exit 1); exit 1; }; }; }
54297 mv $tmp/config.h $ac_file
54301 rm -f $tmp/config.h
54303 # Compute $ac_file's index in $config_headers.
54305 for _am_header in $config_headers :; do
54306 case $_am_header in
54307 $ac_file | $ac_file:* )
54310 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54313 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54314 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54315 X$ac_file : 'X\(//\)[^/]' \| \
54316 X$ac_file : 'X\(//\)$' \| \
54317 X$ac_file : 'X\(/\)' \| \
54318 . : '\(.\)' 2>/dev/null ||
54320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54322 /^X\(\/\/\)$/{ s//\1/; q; }
54323 /^X\(\/\).*/{ s//\1/; q; }
54324 s/.*/./; q'`/stamp-h$_am_stamp_count
54327 cat >>$CONFIG_STATUS <<\_ACEOF
54330 # CONFIG_COMMANDS section.
54332 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54333 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54334 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54335 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54336 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54337 X"$ac_dest" : 'X\(//\)[^/]' \| \
54338 X"$ac_dest" : 'X\(//\)$' \| \
54339 X"$ac_dest" : 'X\(/\)' \| \
54340 . : '\(.\)' 2>/dev/null ||
54342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54344 /^X\(\/\/\)$/{ s//\1/; q; }
54345 /^X\(\/\).*/{ s//\1/; q; }
54347 { if $as_mkdir_p; then
54352 while test ! -d "$as_dir"; do
54353 as_dirs="$as_dir $as_dirs"
54354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54356 X"$as_dir" : 'X\(//\)[^/]' \| \
54357 X"$as_dir" : 'X\(//\)$' \| \
54358 X"$as_dir" : 'X\(/\)' \| \
54359 . : '\(.\)' 2>/dev/null ||
54361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54363 /^X\(\/\/\)$/{ s//\1/; q; }
54364 /^X\(\/\).*/{ s//\1/; q; }
54367 test ! -n "$as_dirs" || mkdir $as_dirs
54368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54370 { (exit 1); exit 1; }; }; }
54374 if test "$ac_dir" != .; then
54375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54376 # A "../" for each directory in $ac_dir_suffix.
54377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54379 ac_dir_suffix= ac_top_builddir=
54383 .) # No --srcdir option. We are building in place.
54385 if test -z "$ac_top_builddir"; then
54388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54390 [\\/]* | ?:[\\/]* ) # Absolute path.
54391 ac_srcdir=$srcdir$ac_dir_suffix;
54392 ac_top_srcdir=$srcdir ;;
54393 *) # Relative path.
54394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54398 # Do not use `cd foo && pwd` to compute absolute paths, because
54399 # the directories may not exist.
54401 .) ac_abs_builddir="$ac_dir";;
54404 .) ac_abs_builddir=`pwd`;;
54405 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54406 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54409 case $ac_abs_builddir in
54410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54412 case ${ac_top_builddir}. in
54413 .) ac_abs_top_builddir=$ac_abs_builddir;;
54414 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54415 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54418 case $ac_abs_builddir in
54419 .) ac_abs_srcdir=$ac_srcdir;;
54422 .) ac_abs_srcdir=$ac_abs_builddir;;
54423 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54424 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54427 case $ac_abs_builddir in
54428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54430 case $ac_top_srcdir in
54431 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54432 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54433 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54438 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54439 echo "$as_me: executing $ac_dest commands" >&6;}
54441 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54442 # Strip MF so we end up with the name of the file.
54443 mf=`echo "$mf" | sed -e 's/:.*$//'`
54444 # Check whether this is an Automake generated Makefile or not.
54445 # We used to match only the files named `Makefile.in', but
54446 # some people rename them; so instead we look at the file content.
54447 # Grep'ing the first line is not enough: some people post-process
54448 # each Makefile.in and add a new line on top of each file to say so.
54449 # So let's grep whole file.
54450 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54451 dirpart=`(dirname "$mf") 2>/dev/null ||
54452 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54453 X"$mf" : 'X\(//\)[^/]' \| \
54454 X"$mf" : 'X\(//\)$' \| \
54455 X"$mf" : 'X\(/\)' \| \
54456 . : '\(.\)' 2>/dev/null ||
54458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54460 /^X\(\/\/\)$/{ s//\1/; q; }
54461 /^X\(\/\).*/{ s//\1/; q; }
54466 # Extract the definition of DEPDIR, am__include, and am__quote
54467 # from the Makefile without running `make'.
54468 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54469 test -z "$DEPDIR" && continue
54470 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54471 test -z "am__include" && continue
54472 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54473 # When using ansi2knr, U may be empty or an underscore; expand it
54474 U=`sed -n 's/^U = //p' < "$mf"`
54475 # Find all dependency output files, they are included files with
54476 # $(DEPDIR) in their names. We invoke sed twice because it is the
54477 # simplest approach to changing $(DEPDIR) to its actual value in the
54479 for file in `sed -n "
54480 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54481 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54482 # Make sure the directory exists.
54483 test -f "$dirpart/$file" && continue
54484 fdir=`(dirname "$file") 2>/dev/null ||
54485 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54486 X"$file" : 'X\(//\)[^/]' \| \
54487 X"$file" : 'X\(//\)$' \| \
54488 X"$file" : 'X\(/\)' \| \
54489 . : '\(.\)' 2>/dev/null ||
54491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54493 /^X\(\/\/\)$/{ s//\1/; q; }
54494 /^X\(\/\).*/{ s//\1/; q; }
54496 { if $as_mkdir_p; then
54497 mkdir -p $dirpart/$fdir
54499 as_dir=$dirpart/$fdir
54501 while test ! -d "$as_dir"; do
54502 as_dirs="$as_dir $as_dirs"
54503 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54505 X"$as_dir" : 'X\(//\)[^/]' \| \
54506 X"$as_dir" : 'X\(//\)$' \| \
54507 X"$as_dir" : 'X\(/\)' \| \
54508 . : '\(.\)' 2>/dev/null ||
54510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54511 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54512 /^X\(\/\/\)$/{ s//\1/; q; }
54513 /^X\(\/\).*/{ s//\1/; q; }
54516 test ! -n "$as_dirs" || mkdir $as_dirs
54517 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54518 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54519 { (exit 1); exit 1; }; }; }
54521 # echo "creating $dirpart/$file"
54522 echo '# dummy' > "$dirpart/$file"
54529 BACKENDSC="servers/slapd/backends.c"
54530 echo "Making $BACKENDSC"
54532 cat > $BACKENDSC << ENDX
54533 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54535 * Copyright 1998-2005 The OpenLDAP Foundation.
54536 * All rights reserved.
54538 * Redistribution and use in source and binary forms, with or without
54539 * modification, are permitted only as authorized by the OpenLDAP
54542 * A copy of this license is available in the file LICENSE in the
54543 * top-level directory of the distribution or, alternatively, at
54544 * <http://www.OpenLDAP.org/license.html>.
54546 /* This file is automatically generated by configure; please do not edit. */
54548 #include "portable.h"
54552 if test "${STATIC_BACKENDS}"; then
54553 for b in config ${STATIC_BACKENDS}; do
54554 bb=`echo "${b}" | sed -e 's/back-//'`
54555 cat >> $BACKENDSC << ENDX
54556 extern BI_init ${bb}_back_initialize;
54560 cat >> $BACKENDSC << ENDX
54562 BackendInfo slap_binfo[] = {
54565 for b in config ${STATIC_BACKENDS}; do
54566 bb=`echo "${b}" | sed -e 's/back-//'`
54567 echo " Add ${bb} ..."
54568 cat >> $BACKENDSC << ENDX
54569 { "${bb}", ${bb}_back_initialize },
54573 cat >> $BACKENDSC << ENDX
54577 /* end of generated file */
54581 echo Please run \"make depend\" to build dependencies
54587 cat >>$CONFIG_STATUS <<\_ACEOF
54589 { (exit 0); exit 0; }
54591 chmod +x $CONFIG_STATUS
54592 ac_clean_files=$ac_clean_files_save
54595 # configure is writing to config.log, and then calls config.status.
54596 # config.status does its own redirection, appending to config.log.
54597 # Unfortunately, on DOS this fails, as config.log is still kept open
54598 # by configure, so config.status won't be able to write to it; its
54599 # output is simply discarded. So we exec the FD to /dev/null,
54600 # effectively closing config.log, so it can be properly (re)opened and
54601 # appended to by config.status. When coming back to configure, we
54602 # need to make the FD available again.
54603 if test "$no_create" != yes; then
54605 ac_config_status_args=
54606 test "$silent" = yes &&
54607 ac_config_status_args="$ac_config_status_args --quiet"
54609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54612 # would make configure fail if this is the last instruction.
54613 $ac_cs_success || { (exit 1); exit 1; }