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_VALSORT 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]
1088 --enable-valsort Value Sorting overlay no|yes|mod [no]
1090 SLURPD (Replication Daemon) Options:
1091 --enable-slurpd enable building slurpd [auto]
1093 Library Generation & Linking Options
1094 --enable-static[=PKGS]
1095 build static libraries [default=yes]
1096 --enable-shared[=PKGS]
1097 build shared libraries [default=yes]
1098 --enable-fast-install[=PKGS]
1099 optimize for fast installation [default=yes]
1100 --disable-dependency-tracking speeds up one-time build
1101 --enable-dependency-tracking do not reject slow dependency extractors
1102 --disable-libtool-lock avoid locking (might break parallel builds)
1105 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1106 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1107 --with-subdir=DIR change default subdirectory used for installs
1108 --with-cyrus-sasl with Cyrus SASL support [auto]
1109 --with-fetch with fetch(3) URL support [auto]
1110 --with-threads with threads [auto]
1111 --with-tls with TLS/SSL support [auto]
1112 --with-yielding-select with implicitly yielding select [auto]
1113 --with-multiple-precision
1114 multiple precision support for statistics
1115 auto|bignum|gmp [auto]
1116 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1117 --with-pic try to use only PIC/non-PIC objects [default=use
1120 include additional configurations [automatic]
1122 See INSTALL file for further details.
1124 Some influential environment variables:
1125 CC C compiler command
1126 CFLAGS C compiler flags
1127 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1128 nonstandard directory <lib dir>
1129 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1130 headers in a nonstandard directory <include dir>
1132 CXX C++ compiler command
1133 CXXFLAGS C++ compiler flags
1134 CXXCPP C++ preprocessor
1135 F77 Fortran 77 compiler command
1136 FFLAGS Fortran 77 compiler flags
1138 Use these variables to override the choices made by `configure' or to help
1139 it to find libraries and programs with nonstandard names/locations.
1144 if test "$ac_init_help" = "recursive"; then
1145 # If there are subdirs, report their specific --help.
1147 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1148 test -d $ac_dir || continue
1151 if test "$ac_dir" != .; then
1152 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1153 # A "../" for each directory in $ac_dir_suffix.
1154 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1156 ac_dir_suffix= ac_top_builddir=
1160 .) # No --srcdir option. We are building in place.
1162 if test -z "$ac_top_builddir"; then
1165 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1167 [\\/]* | ?:[\\/]* ) # Absolute path.
1168 ac_srcdir=$srcdir$ac_dir_suffix;
1169 ac_top_srcdir=$srcdir ;;
1171 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1172 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1175 # Do not use `cd foo && pwd` to compute absolute paths, because
1176 # the directories may not exist.
1178 .) ac_abs_builddir="$ac_dir";;
1181 .) ac_abs_builddir=`pwd`;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1183 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1186 case $ac_abs_builddir in
1187 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1189 case ${ac_top_builddir}. in
1190 .) ac_abs_top_builddir=$ac_abs_builddir;;
1191 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1192 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1195 case $ac_abs_builddir in
1196 .) ac_abs_srcdir=$ac_srcdir;;
1199 .) ac_abs_srcdir=$ac_abs_builddir;;
1200 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1201 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1204 case $ac_abs_builddir in
1205 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1207 case $ac_top_srcdir in
1208 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1209 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1210 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1215 # Check for guested configure; otherwise get Cygnus style configure.
1216 if test -f $ac_srcdir/configure.gnu; then
1218 $SHELL $ac_srcdir/configure.gnu --help=recursive
1219 elif test -f $ac_srcdir/configure; then
1221 $SHELL $ac_srcdir/configure --help=recursive
1222 elif test -f $ac_srcdir/configure.ac ||
1223 test -f $ac_srcdir/configure.in; then
1225 $ac_configure --help
1227 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1233 test -n "$ac_init_help" && exit 0
1234 if $ac_init_version; then
1237 Copyright (C) 2003 Free Software Foundation, Inc.
1238 This configure script is free software; the Free Software Foundation
1239 gives unlimited permission to copy, distribute and modify it.
1241 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1242 Restrictions apply, see COPYRIGHT and LICENSE files.
1248 This file contains any messages produced by compilers while
1249 running configure, to aid debugging if configure makes a mistake.
1251 It was created by $as_me, which was
1252 generated by GNU Autoconf 2.59. Invocation command line was
1263 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1264 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1265 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1266 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1267 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1269 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1270 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1272 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1273 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1274 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1275 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1276 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1277 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1278 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286 test -z "$as_dir" && as_dir=.
1287 echo "PATH: $as_dir"
1302 # Keep a trace of the command line.
1303 # Strip out --no-create and --no-recursion so they do not pile up.
1304 # Strip out --silent because we don't want to record it for future runs.
1305 # Also quote any args containing shell meta-characters.
1306 # Make two passes to allow for proper duplicate-argument suppression.
1311 ac_must_keep_next=false
1317 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1319 | -silent | --silent | --silen | --sile | --sil)
1321 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1322 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1325 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1327 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1328 if test $ac_must_keep_next = true; then
1329 ac_must_keep_next=false # Got value, back to normal.
1332 *=* | --config-cache | -C | -disable-* | --disable-* \
1333 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1334 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1335 | -with-* | --with-* | -without-* | --without-* | --x)
1336 case "$ac_configure_args0 " in
1337 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1340 -* ) ac_must_keep_next=true ;;
1343 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1344 # Get rid of the leading space.
1350 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1351 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1353 # When interrupted or exit'd, cleanup temporary files, and complete
1354 # config.log. We remove comments because anyway the quotes in there
1355 # would cause problems or look ugly.
1356 # WARNING: Be sure not to use single quotes in there, as some shells,
1357 # such as our DU 5.0 friend, will then `close' the trap.
1358 trap 'exit_status=$?
1359 # Save into config.log some information that might help in debugging.
1364 ## ---------------- ##
1365 ## Cache variables. ##
1366 ## ---------------- ##
1369 # The following way of writing the cache mishandles newlines in values,
1372 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1375 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1380 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1387 ## ----------------- ##
1388 ## Output variables. ##
1389 ## ----------------- ##
1392 for ac_var in $ac_subst_vars
1394 eval ac_val=$`echo $ac_var`
1395 echo "$ac_var='"'"'$ac_val'"'"'"
1399 if test -n "$ac_subst_files"; then
1406 for ac_var in $ac_subst_files
1408 eval ac_val=$`echo $ac_var`
1409 echo "$ac_var='"'"'$ac_val'"'"'"
1414 if test -s confdefs.h; then
1421 sed "/^$/d" confdefs.h | sort
1424 test "$ac_signal" != 0 &&
1425 echo "$as_me: caught signal $ac_signal"
1426 echo "$as_me: exit $exit_status"
1428 rm -f core *.core &&
1429 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1432 for ac_signal in 1 2 13 15; do
1433 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1437 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1438 rm -rf conftest* confdefs.h
1439 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1442 # Predefined preprocessor variables.
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_NAME "$PACKAGE_NAME"
1449 cat >>confdefs.h <<_ACEOF
1450 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1454 cat >>confdefs.h <<_ACEOF
1455 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1459 cat >>confdefs.h <<_ACEOF
1460 #define PACKAGE_STRING "$PACKAGE_STRING"
1464 cat >>confdefs.h <<_ACEOF
1465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1469 # Let the site file select an alternate cache file if it wants to.
1470 # Prefer explicitly selected file to automatically selected ones.
1471 if test -z "$CONFIG_SITE"; then
1472 if test "x$prefix" != xNONE; then
1473 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1475 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1478 for ac_site_file in $CONFIG_SITE; do
1479 if test -r "$ac_site_file"; then
1480 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1481 echo "$as_me: loading site script $ac_site_file" >&6;}
1482 sed 's/^/| /' "$ac_site_file" >&5
1488 # Check that the precious variables saved in the cache have kept the same
1490 ac_cache_corrupted=false
1491 for ac_var in `(set) 2>&1 |
1492 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1494 eval ac_new_set=\$ac_env_${ac_var}_set
1495 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1496 eval ac_new_val="\$ac_env_${ac_var}_value"
1497 case $ac_old_set,$ac_new_set in
1499 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1500 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1501 ac_cache_corrupted=: ;;
1503 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1504 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1505 ac_cache_corrupted=: ;;
1508 if test "x$ac_old_val" != "x$ac_new_val"; then
1509 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1510 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1511 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1512 echo "$as_me: former value: $ac_old_val" >&2;}
1513 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1514 echo "$as_me: current value: $ac_new_val" >&2;}
1515 ac_cache_corrupted=:
1518 # Pass precious variables to config.status.
1519 if test "$ac_new_set" = set; then
1521 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1522 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1523 *) ac_arg=$ac_var=$ac_new_val ;;
1525 case " $ac_configure_args " in
1526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1527 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1531 if $ac_cache_corrupted; then
1532 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1533 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1534 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1535 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1536 { (exit 1); exit 1; }; }
1540 ac_cpp='$CPP $CPPFLAGS'
1541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1586 for ac_dir in build $srcdir/build; do
1587 if test -f $ac_dir/install-sh; then
1589 ac_install_sh="$ac_aux_dir/install-sh -c"
1591 elif test -f $ac_dir/install.sh; then
1593 ac_install_sh="$ac_aux_dir/install.sh -c"
1595 elif test -f $ac_dir/shtool; then
1597 ac_install_sh="$ac_aux_dir/shtool install -c"
1601 if test -z "$ac_aux_dir"; then
1602 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1603 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1604 { (exit 1); exit 1; }; }
1606 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1607 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1608 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1610 eval `$ac_aux_dir/version.sh`
1611 if test -z "$OL_STRING"; then
1612 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1613 echo "$as_me: error: could not determine version" >&2;}
1614 { (exit 1); exit 1; }; }
1617 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1618 ac_cv_shtool="$ac_aux_dir/shtool"
1620 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1621 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1622 { (exit 1); exit 1; }; }
1625 SHTOOL="$ac_cv_shtool"
1627 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1628 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1631 if test -d $ac_aux_dir/CVS; then
1632 OPENLDAP_CVS="(from CVS sources) "
1635 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1637 # Make sure we can run config.sub.
1638 $ac_config_sub sun4 >/dev/null 2>&1 ||
1639 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1640 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1641 { (exit 1); exit 1; }; }
1643 echo "$as_me:$LINENO: checking build system type" >&5
1644 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1645 if test "${ac_cv_build+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 ac_cv_build_alias=$build_alias
1649 test -z "$ac_cv_build_alias" &&
1650 ac_cv_build_alias=`$ac_config_guess`
1651 test -z "$ac_cv_build_alias" &&
1652 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1653 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1654 { (exit 1); exit 1; }; }
1655 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1661 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1662 echo "${ECHO_T}$ac_cv_build" >&6
1664 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 echo "$as_me:$LINENO: checking host system type" >&5
1670 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1671 if test "${ac_cv_host+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 ac_cv_host_alias=$host_alias
1675 test -z "$ac_cv_host_alias" &&
1676 ac_cv_host_alias=$ac_cv_build_alias
1677 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1683 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1684 echo "${ECHO_T}$ac_cv_host" >&6
1686 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691 echo "$as_me:$LINENO: checking target system type" >&5
1692 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1693 if test "${ac_cv_target+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 ac_cv_target_alias=$target_alias
1697 test "x$ac_cv_target_alias" = "x" &&
1698 ac_cv_target_alias=$ac_cv_host_alias
1699 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1700 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1701 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1702 { (exit 1); exit 1; }; }
1705 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1706 echo "${ECHO_T}$ac_cv_target" >&6
1707 target=$ac_cv_target
1708 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1709 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1710 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1713 # The aliases save the names the user supplied, while $host etc.
1714 # will get canonicalized.
1715 test -n "$target_alias" &&
1716 test "$program_prefix$program_suffix$program_transform_name" = \
1718 program_prefix=${target_alias}-
1720 am__api_version="1.9"
1721 # Find a good install program. We prefer a C program (faster),
1722 # so one script is as good as another. But avoid the broken or
1723 # incompatible versions:
1724 # SysV /etc/install, /usr/sbin/install
1725 # SunOS /usr/etc/install
1726 # IRIX /sbin/install
1728 # AmigaOS /C/install, which installs bootblocks on floppy discs
1729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1732 # OS/2's system install, which has a completely different semantic
1733 # ./install, which can be erroneously created by make from ./install.sh.
1734 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1735 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1736 if test -z "$INSTALL"; then
1737 if test "${ac_cv_path_install+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 # Account for people who put trailing slashes in PATH elements.
1747 ./ | .// | /cC/* | \
1748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1749 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1752 # OSF1 and SCO ODT 3.0 have their own names for install.
1753 # Don't use installbsd from OSF since it installs stuff as root
1755 for ac_prog in ginstall scoinst install; do
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1758 if test $ac_prog = install &&
1759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1760 # AIX install. It has an incompatible calling convention.
1762 elif test $ac_prog = install &&
1763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1764 # program-specific install script used by HP pwplus--don't use.
1767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1779 if test "${ac_cv_path_install+set}" = set; then
1780 INSTALL=$ac_cv_path_install
1782 # As a last resort, use the slow shell script. We don't cache a
1783 # path for INSTALL within a source directory, because that will
1784 # break other packages using the cache if that directory is
1785 # removed, or if the path is relative.
1786 INSTALL=$ac_install_sh
1789 echo "$as_me:$LINENO: result: $INSTALL" >&5
1790 echo "${ECHO_T}$INSTALL" >&6
1792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1793 # It thinks the first close brace ends the variable substitution.
1794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1800 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1801 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1804 echo timestamp > conftest.file
1805 # Do `set' in a subshell so we don't clobber the current shell's
1806 # arguments. Must try -L first in case configure is actually a
1807 # symlink; some systems play weird games with the mod time of symlinks
1808 # (eg FreeBSD returns the mod time of the symlink's containing
1811 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1812 if test "$*" = "X"; then
1814 set X `ls -t $srcdir/configure conftest.file`
1817 if test "$*" != "X $srcdir/configure conftest.file" \
1818 && test "$*" != "X conftest.file $srcdir/configure"; then
1820 # If neither matched, then we have a broken ls. This can happen
1821 # if, for instance, CONFIG_SHELL is bash and it inherits a
1822 # broken ls alias from the environment. This has actually
1823 # happened. Such a system could not be considered "sane".
1824 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1825 alias in your environment" >&5
1826 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1827 alias in your environment" >&2;}
1828 { (exit 1); exit 1; }; }
1831 test "$2" = conftest.file
1837 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1838 Check your system clock" >&5
1839 echo "$as_me: error: newly created file is older than distributed files!
1840 Check your system clock" >&2;}
1841 { (exit 1); exit 1; }; }
1843 echo "$as_me:$LINENO: result: yes" >&5
1844 echo "${ECHO_T}yes" >&6
1845 test "$program_prefix" != NONE &&
1846 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1847 # Use a double $ so make ignores it.
1848 test "$program_suffix" != NONE &&
1849 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1850 # Double any \ or $. echo might interpret backslashes.
1851 # By default was `s,x,x', remove it if useless.
1852 cat <<\_ACEOF >conftest.sed
1853 s/[\\$]/&&/g;s/;s,x,x,$//
1855 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1858 # expand $ac_aux_dir to an absolute path
1859 am_aux_dir=`cd $ac_aux_dir && pwd`
1861 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1862 # Use eval to expand $SHELL
1863 if eval "$MISSING --run true"; then
1864 am_missing_run="$MISSING --run "
1867 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1868 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1871 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1872 # We used to keeping the `.' as first argument, in order to
1873 # allow $(mkdir_p) to be used without argument. As in
1874 # $(mkdir_p) $(somedir)
1875 # where $(somedir) is conditionally defined. However this is wrong
1877 # 1. if the package is installed by a user who cannot write `.'
1878 # make install will fail,
1879 # 2. the above comment should most certainly read
1880 # $(mkdir_p) $(DESTDIR)$(somedir)
1881 # so it does not work when $(somedir) is undefined and
1882 # $(DESTDIR) is not.
1883 # To support the latter case, we have to write
1884 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1885 # so the `.' trick is pointless.
1886 mkdir_p='mkdir -p --'
1888 # On NextStep and OpenStep, the `mkdir' command does not
1889 # recognize any option. It will interpret all options as
1890 # directories to create, and then abort because `.' already
1892 for d in ./-p ./--version;
1894 test -d $d && rmdir $d
1896 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1897 if test -f "$ac_aux_dir/mkinstalldirs"; then
1898 mkdir_p='$(mkinstalldirs)'
1900 mkdir_p='$(install_sh) -d'
1904 for ac_prog in gawk mawk nawk awk
1906 # Extract the first word of "$ac_prog", so it can be a program name with args.
1907 set dummy $ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_AWK+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$AWK"; then
1914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_AWK="$ac_prog"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 if test -n "$AWK"; then
1934 echo "$as_me:$LINENO: result: $AWK" >&5
1935 echo "${ECHO_T}$AWK" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1941 test -n "$AWK" && break
1944 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1945 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1946 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1947 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 cat >conftest.make <<\_ACEOF
1952 @echo 'ac_maketemp="$(MAKE)"'
1954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1955 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1956 if test -n "$ac_maketemp"; then
1957 eval ac_cv_prog_make_${ac_make}_set=yes
1959 eval ac_cv_prog_make_${ac_make}_set=no
1963 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1964 echo "$as_me:$LINENO: result: yes" >&5
1965 echo "${ECHO_T}yes" >&6
1968 echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 SET_MAKE="MAKE=${MAKE-make}"
1973 rm -rf .tst 2>/dev/null
1974 mkdir .tst 2>/dev/null
1975 if test -d .tst; then
1980 rmdir .tst 2>/dev/null
1982 # test to see if srcdir already configured
1983 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1984 test -f $srcdir/config.status; then
1985 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1986 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1987 { (exit 1); exit 1; }; }
1990 # test whether we have cygpath
1991 if test -z "$CYGPATH_W"; then
1992 if (cygpath --version) >/dev/null 2>/dev/null; then
1993 CYGPATH_W='cygpath -w'
2000 # Define the identity of the package.
2005 # Some tools Automake needs.
2007 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2010 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2013 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2016 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2019 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2021 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2023 # Installed binaries are usually stripped using `strip' when the user
2024 # run `make install-strip'. However `strip' might not be the right
2025 # tool to use in cross-compilation environments, therefore Automake
2026 # will honor the `STRIP' environment variable to overrule this program.
2027 if test "$cross_compiling" != no; then
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}strip; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_STRIP+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$STRIP"; then
2037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 STRIP=$ac_cv_prog_STRIP
2056 if test -n "$STRIP"; then
2057 echo "$as_me:$LINENO: result: $STRIP" >&5
2058 echo "${ECHO_T}$STRIP" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2065 if test -z "$ac_cv_prog_STRIP"; then
2067 # Extract the first word of "strip", so it can be a program name with args.
2068 set dummy strip; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$ac_ct_STRIP"; then
2075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_ac_ct_STRIP="strip"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2095 if test -n "$ac_ct_STRIP"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2097 echo "${ECHO_T}$ac_ct_STRIP" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2105 STRIP="$ac_cv_prog_STRIP"
2109 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2111 # We need awk for the "check" target. The system "awk" is bad on
2113 # Always define AMTAR for backward compatibility.
2115 AMTAR=${AMTAR-"${am_missing_run}tar"}
2117 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2123 cat >>confdefs.h <<_ACEOF
2124 #define OPENLDAP_PACKAGE "$PACKAGE"
2128 cat >>confdefs.h <<_ACEOF
2129 #define OPENLDAP_VERSION "$VERSION"
2134 cat >>confdefs.h <<_ACEOF
2135 #define LDAP_VENDOR_VERSION $OL_API_INC
2139 cat >>confdefs.h <<_ACEOF
2140 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2144 cat >>confdefs.h <<_ACEOF
2145 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2149 cat >>confdefs.h <<_ACEOF
2150 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2154 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2156 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2158 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2166 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2168 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2170 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2173 echo "$as_me:$LINENO: checking configure arguments" >&5
2174 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2179 ldap_subdir="/openldap"
2182 # Check whether --with-subdir or --without-subdir was given.
2183 if test "${with_subdir+set}" = set; then
2184 withval="$with_subdir"
2191 ldap_subdir="$withval"
2194 ldap_subdir="/$withval"
2200 # OpenLDAP --enable-debug
2202 # Check whether --enable-debug or --disable-debug was given.
2203 if test "${enable_debug+set}" = set; then
2204 enableval="$enable_debug"
2207 for ol_val in auto yes no ; do
2208 if test "$enableval" = "$ol_val" ; then
2212 if test "$ol_arg" = "invalid" ; then
2213 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2214 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2215 { (exit 1); exit 1; }; }
2217 ol_enable_debug="$ol_arg"
2222 # end --enable-debug
2223 # OpenLDAP --enable-dynamic
2225 # Check whether --enable-dynamic or --disable-dynamic was given.
2226 if test "${enable_dynamic+set}" = set; then
2227 enableval="$enable_dynamic"
2230 for ol_val in auto yes no ; do
2231 if test "$enableval" = "$ol_val" ; then
2235 if test "$ol_arg" = "invalid" ; then
2236 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2237 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2238 { (exit 1); exit 1; }; }
2240 ol_enable_dynamic="$ol_arg"
2243 ol_enable_dynamic=no
2245 # end --enable-dynamic
2246 # OpenLDAP --enable-syslog
2248 # Check whether --enable-syslog or --disable-syslog was given.
2249 if test "${enable_syslog+set}" = set; then
2250 enableval="$enable_syslog"
2253 for ol_val in auto yes no ; do
2254 if test "$enableval" = "$ol_val" ; then
2258 if test "$ol_arg" = "invalid" ; then
2259 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2260 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2261 { (exit 1); exit 1; }; }
2263 ol_enable_syslog="$ol_arg"
2266 ol_enable_syslog=auto
2268 # end --enable-syslog
2269 # OpenLDAP --enable-proctitle
2271 # Check whether --enable-proctitle or --disable-proctitle was given.
2272 if test "${enable_proctitle+set}" = set; then
2273 enableval="$enable_proctitle"
2276 for ol_val in auto yes no ; do
2277 if test "$enableval" = "$ol_val" ; then
2281 if test "$ol_arg" = "invalid" ; then
2282 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2284 { (exit 1); exit 1; }; }
2286 ol_enable_proctitle="$ol_arg"
2289 ol_enable_proctitle=yes
2291 # end --enable-proctitle
2292 ol_enable_referrals=${ol_enable_referrals-no}
2293 ol_enable_kbind=${ol_enable_kbind-no}
2294 # OpenLDAP --enable-ipv6
2296 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2297 if test "${enable_ipv6+set}" = set; then
2298 enableval="$enable_ipv6"
2301 for ol_val in auto yes no ; do
2302 if test "$enableval" = "$ol_val" ; then
2306 if test "$ol_arg" = "invalid" ; then
2307 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2308 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2309 { (exit 1); exit 1; }; }
2311 ol_enable_ipv6="$ol_arg"
2317 # OpenLDAP --enable-local
2319 # Check whether --enable-local or --disable-local was given.
2320 if test "${enable_local+set}" = set; then
2321 enableval="$enable_local"
2324 for ol_val in auto yes no ; do
2325 if test "$enableval" = "$ol_val" ; then
2329 if test "$ol_arg" = "invalid" ; then
2330 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2331 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2332 { (exit 1); exit 1; }; }
2334 ol_enable_local="$ol_arg"
2337 ol_enable_local=auto
2339 # end --enable-local
2341 # OpenLDAP --with-cyrus_sasl
2343 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2344 if test "${with_cyrus_sasl+set}" = set; then
2345 withval="$with_cyrus_sasl"
2348 for ol_val in auto yes no ; do
2349 if test "$withval" = "$ol_val" ; then
2353 if test "$ol_arg" = "invalid" ; then
2354 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2355 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2356 { (exit 1); exit 1; }; }
2358 ol_with_cyrus_sasl="$ol_arg"
2361 ol_with_cyrus_sasl="auto"
2362 fi; # end --with-cyrus_sasl
2364 # OpenLDAP --with-fetch
2366 # Check whether --with-fetch or --without-fetch was given.
2367 if test "${with_fetch+set}" = set; then
2368 withval="$with_fetch"
2371 for ol_val in auto yes no ; do
2372 if test "$withval" = "$ol_val" ; then
2376 if test "$ol_arg" = "invalid" ; then
2377 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2378 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2379 { (exit 1); exit 1; }; }
2381 ol_with_fetch="$ol_arg"
2384 ol_with_fetch="auto"
2385 fi; # end --with-fetch
2387 ol_with_kerberos=${ol_with_kerberos-auto}
2388 # OpenLDAP --with-threads
2390 # Check whether --with-threads or --without-threads was given.
2391 if test "${with_threads+set}" = set; then
2392 withval="$with_threads"
2395 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2396 if test "$withval" = "$ol_val" ; then
2400 if test "$ol_arg" = "invalid" ; then
2401 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2402 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2403 { (exit 1); exit 1; }; }
2405 ol_with_threads="$ol_arg"
2408 ol_with_threads="auto"
2409 fi; # end --with-threads
2411 # OpenLDAP --with-tls
2413 # Check whether --with-tls or --without-tls was given.
2414 if test "${with_tls+set}" = set; then
2418 for ol_val in auto ssleay openssl yes no ; do
2419 if test "$withval" = "$ol_val" ; then
2423 if test "$ol_arg" = "invalid" ; then
2424 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2425 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2426 { (exit 1); exit 1; }; }
2428 ol_with_tls="$ol_arg"
2432 fi; # end --with-tls
2434 # OpenLDAP --with-yielding_select
2436 # Check whether --with-yielding_select or --without-yielding_select was given.
2437 if test "${with_yielding_select+set}" = set; then
2438 withval="$with_yielding_select"
2441 for ol_val in auto yes no manual ; do
2442 if test "$withval" = "$ol_val" ; then
2446 if test "$ol_arg" = "invalid" ; then
2447 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2448 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2449 { (exit 1); exit 1; }; }
2451 ol_with_yielding_select="$ol_arg"
2454 ol_with_yielding_select="auto"
2455 fi; # end --with-yielding_select
2457 # OpenLDAP --with-multiple_precision
2459 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2460 if test "${with_multiple_precision+set}" = set; then
2461 withval="$with_multiple_precision"
2464 for ol_val in auto bignum gmp yes no ; do
2465 if test "$withval" = "$ol_val" ; then
2469 if test "$ol_arg" = "invalid" ; then
2470 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2471 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2472 { (exit 1); exit 1; }; }
2474 ol_with_multiple_precision="$ol_arg"
2477 ol_with_multiple_precision="auto"
2478 fi; # end --with-multiple_precision
2482 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2483 if test "${enable_xxslapdoptions+set}" = set; then
2484 enableval="$enable_xxslapdoptions"
2487 # OpenLDAP --enable-slapd
2489 # Check whether --enable-slapd or --disable-slapd was given.
2490 if test "${enable_slapd+set}" = set; then
2491 enableval="$enable_slapd"
2494 for ol_val in auto yes no ; do
2495 if test "$enableval" = "$ol_val" ; then
2499 if test "$ol_arg" = "invalid" ; then
2500 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2501 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2502 { (exit 1); exit 1; }; }
2504 ol_enable_slapd="$ol_arg"
2509 # end --enable-slapd
2510 # OpenLDAP --enable-aci
2512 # Check whether --enable-aci or --disable-aci was given.
2513 if test "${enable_aci+set}" = set; then
2514 enableval="$enable_aci"
2517 for ol_val in auto yes no ; do
2518 if test "$enableval" = "$ol_val" ; then
2522 if test "$ol_arg" = "invalid" ; then
2523 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2524 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2525 { (exit 1); exit 1; }; }
2527 ol_enable_aci="$ol_arg"
2533 # OpenLDAP --enable-cleartext
2535 # Check whether --enable-cleartext or --disable-cleartext was given.
2536 if test "${enable_cleartext+set}" = set; then
2537 enableval="$enable_cleartext"
2540 for ol_val in auto yes no ; do
2541 if test "$enableval" = "$ol_val" ; then
2545 if test "$ol_arg" = "invalid" ; then
2546 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2547 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2548 { (exit 1); exit 1; }; }
2550 ol_enable_cleartext="$ol_arg"
2553 ol_enable_cleartext=yes
2555 # end --enable-cleartext
2556 # OpenLDAP --enable-crypt
2558 # Check whether --enable-crypt or --disable-crypt was given.
2559 if test "${enable_crypt+set}" = set; then
2560 enableval="$enable_crypt"
2563 for ol_val in auto yes no ; do
2564 if test "$enableval" = "$ol_val" ; then
2568 if test "$ol_arg" = "invalid" ; then
2569 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2570 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2571 { (exit 1); exit 1; }; }
2573 ol_enable_crypt="$ol_arg"
2578 # end --enable-crypt
2579 # OpenLDAP --enable-lmpasswd
2581 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2582 if test "${enable_lmpasswd+set}" = set; then
2583 enableval="$enable_lmpasswd"
2586 for ol_val in auto yes no ; do
2587 if test "$enableval" = "$ol_val" ; then
2591 if test "$ol_arg" = "invalid" ; then
2592 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2593 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2594 { (exit 1); exit 1; }; }
2596 ol_enable_lmpasswd="$ol_arg"
2599 ol_enable_lmpasswd=no
2601 # end --enable-lmpasswd
2602 # OpenLDAP --enable-spasswd
2604 # Check whether --enable-spasswd or --disable-spasswd was given.
2605 if test "${enable_spasswd+set}" = set; then
2606 enableval="$enable_spasswd"
2609 for ol_val in auto yes no ; do
2610 if test "$enableval" = "$ol_val" ; then
2614 if test "$ol_arg" = "invalid" ; then
2615 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2616 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2617 { (exit 1); exit 1; }; }
2619 ol_enable_spasswd="$ol_arg"
2622 ol_enable_spasswd=no
2624 # end --enable-spasswd
2625 # OpenLDAP --enable-modules
2627 # Check whether --enable-modules or --disable-modules was given.
2628 if test "${enable_modules+set}" = set; then
2629 enableval="$enable_modules"
2632 for ol_val in auto yes no ; do
2633 if test "$enableval" = "$ol_val" ; then
2637 if test "$ol_arg" = "invalid" ; then
2638 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2639 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2640 { (exit 1); exit 1; }; }
2642 ol_enable_modules="$ol_arg"
2645 ol_enable_modules=no
2647 # end --enable-modules
2648 ol_enable_multimaster=${ol_enable_multimaster-no}
2649 # OpenLDAP --enable-rewrite
2651 # Check whether --enable-rewrite or --disable-rewrite was given.
2652 if test "${enable_rewrite+set}" = set; then
2653 enableval="$enable_rewrite"
2656 for ol_val in auto yes no ; do
2657 if test "$enableval" = "$ol_val" ; then
2661 if test "$ol_arg" = "invalid" ; then
2662 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2663 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2664 { (exit 1); exit 1; }; }
2666 ol_enable_rewrite="$ol_arg"
2669 ol_enable_rewrite=auto
2671 # end --enable-rewrite
2672 # OpenLDAP --enable-rlookups
2674 # Check whether --enable-rlookups or --disable-rlookups was given.
2675 if test "${enable_rlookups+set}" = set; then
2676 enableval="$enable_rlookups"
2679 for ol_val in auto yes no ; do
2680 if test "$enableval" = "$ol_val" ; then
2684 if test "$ol_arg" = "invalid" ; then
2685 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2686 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2687 { (exit 1); exit 1; }; }
2689 ol_enable_rlookups="$ol_arg"
2692 ol_enable_rlookups=no
2694 # end --enable-rlookups
2695 # OpenLDAP --enable-slapi
2697 # Check whether --enable-slapi or --disable-slapi was given.
2698 if test "${enable_slapi+set}" = set; then
2699 enableval="$enable_slapi"
2702 for ol_val in auto yes no ; do
2703 if test "$enableval" = "$ol_val" ; then
2707 if test "$ol_arg" = "invalid" ; then
2708 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2709 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2710 { (exit 1); exit 1; }; }
2712 ol_enable_slapi="$ol_arg"
2717 # end --enable-slapi
2718 # OpenLDAP --enable-slp
2720 # Check whether --enable-slp or --disable-slp was given.
2721 if test "${enable_slp+set}" = set; then
2722 enableval="$enable_slp"
2725 for ol_val in auto yes no ; do
2726 if test "$enableval" = "$ol_val" ; then
2730 if test "$ol_arg" = "invalid" ; then
2731 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2732 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2733 { (exit 1); exit 1; }; }
2735 ol_enable_slp="$ol_arg"
2741 # OpenLDAP --enable-wrappers
2743 # Check whether --enable-wrappers or --disable-wrappers was given.
2744 if test "${enable_wrappers+set}" = set; then
2745 enableval="$enable_wrappers"
2748 for ol_val in auto yes no ; do
2749 if test "$enableval" = "$ol_val" ; then
2753 if test "$ol_arg" = "invalid" ; then
2754 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2755 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2756 { (exit 1); exit 1; }; }
2758 ol_enable_wrappers="$ol_arg"
2761 ol_enable_wrappers=no
2763 # end --enable-wrappers
2765 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2766 passwd perl relay shell sql"
2768 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2769 if test "${enable_xxslapbackends+set}" = set; then
2770 enableval="$enable_xxslapbackends"
2774 # OpenLDAP --enable-backends
2776 # Check whether --enable-backends or --disable-backends was given.
2777 if test "${enable_backends+set}" = set; then
2778 enableval="$enable_backends"
2781 for ol_val in no yes mod ; do
2782 if test "$enableval" = "$ol_val" ; then
2786 if test "$ol_arg" = "invalid" ; then
2787 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2788 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2789 { (exit 1); exit 1; }; }
2791 ol_enable_backends="$ol_arg"
2794 # end --enable-backends
2795 # OpenLDAP --enable-bdb
2797 # Check whether --enable-bdb or --disable-bdb was given.
2798 if test "${enable_bdb+set}" = set; then
2799 enableval="$enable_bdb"
2802 for ol_val in no yes mod ; do
2803 if test "$enableval" = "$ol_val" ; then
2807 if test "$ol_arg" = "invalid" ; then
2808 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2809 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2810 { (exit 1); exit 1; }; }
2812 ol_enable_bdb="$ol_arg"
2815 ol_enable_bdb=${ol_enable_backends:-yes}
2818 # OpenLDAP --enable-dnssrv
2820 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2821 if test "${enable_dnssrv+set}" = set; then
2822 enableval="$enable_dnssrv"
2825 for ol_val in no yes mod ; do
2826 if test "$enableval" = "$ol_val" ; then
2830 if test "$ol_arg" = "invalid" ; then
2831 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2832 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2833 { (exit 1); exit 1; }; }
2835 ol_enable_dnssrv="$ol_arg"
2838 ol_enable_dnssrv=${ol_enable_backends:-no}
2840 # end --enable-dnssrv
2841 # OpenLDAP --enable-hdb
2843 # Check whether --enable-hdb or --disable-hdb was given.
2844 if test "${enable_hdb+set}" = set; then
2845 enableval="$enable_hdb"
2848 for ol_val in no yes mod ; do
2849 if test "$enableval" = "$ol_val" ; then
2853 if test "$ol_arg" = "invalid" ; then
2854 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2855 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2856 { (exit 1); exit 1; }; }
2858 ol_enable_hdb="$ol_arg"
2861 ol_enable_hdb=${ol_enable_backends:-yes}
2864 # OpenLDAP --enable-ldap
2866 # Check whether --enable-ldap or --disable-ldap was given.
2867 if test "${enable_ldap+set}" = set; then
2868 enableval="$enable_ldap"
2871 for ol_val in no yes mod ; do
2872 if test "$enableval" = "$ol_val" ; then
2876 if test "$ol_arg" = "invalid" ; then
2877 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2878 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2879 { (exit 1); exit 1; }; }
2881 ol_enable_ldap="$ol_arg"
2884 ol_enable_ldap=${ol_enable_backends:-no}
2887 # OpenLDAP --enable-ldbm
2889 # Check whether --enable-ldbm or --disable-ldbm was given.
2890 if test "${enable_ldbm+set}" = set; then
2891 enableval="$enable_ldbm"
2894 for ol_val in no yes mod ; do
2895 if test "$enableval" = "$ol_val" ; then
2899 if test "$ol_arg" = "invalid" ; then
2900 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2901 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2902 { (exit 1); exit 1; }; }
2904 ol_enable_ldbm="$ol_arg"
2907 ol_enable_ldbm=${ol_enable_backends:-no}
2910 # OpenLDAP --enable-ldbm_api
2912 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2913 if test "${enable_ldbm_api+set}" = set; then
2914 enableval="$enable_ldbm_api"
2917 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2918 if test "$enableval" = "$ol_val" ; then
2922 if test "$ol_arg" = "invalid" ; then
2923 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2924 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2925 { (exit 1); exit 1; }; }
2927 ol_enable_ldbm_api="$ol_arg"
2930 ol_enable_ldbm_api=auto
2932 # end --enable-ldbm_api
2934 # OpenLDAP --enable-ldbm_type
2936 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2937 if test "${enable_ldbm_type+set}" = set; then
2938 enableval="$enable_ldbm_type"
2941 for ol_val in auto btree hash ; do
2942 if test "$enableval" = "$ol_val" ; then
2946 if test "$ol_arg" = "invalid" ; then
2947 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2949 { (exit 1); exit 1; }; }
2951 ol_enable_ldbm_type="$ol_arg"
2954 ol_enable_ldbm_type=auto
2956 # end --enable-ldbm_type
2958 # OpenLDAP --enable-meta
2960 # Check whether --enable-meta or --disable-meta was given.
2961 if test "${enable_meta+set}" = set; then
2962 enableval="$enable_meta"
2965 for ol_val in no yes mod ; do
2966 if test "$enableval" = "$ol_val" ; then
2970 if test "$ol_arg" = "invalid" ; then
2971 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2973 { (exit 1); exit 1; }; }
2975 ol_enable_meta="$ol_arg"
2978 ol_enable_meta=${ol_enable_backends:-no}
2981 # OpenLDAP --enable-monitor
2983 # Check whether --enable-monitor or --disable-monitor was given.
2984 if test "${enable_monitor+set}" = set; then
2985 enableval="$enable_monitor"
2988 for ol_val in no yes mod ; do
2989 if test "$enableval" = "$ol_val" ; then
2993 if test "$ol_arg" = "invalid" ; then
2994 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2996 { (exit 1); exit 1; }; }
2998 ol_enable_monitor="$ol_arg"
3001 ol_enable_monitor=${ol_enable_backends:-yes}
3003 # end --enable-monitor
3004 # OpenLDAP --enable-null
3006 # Check whether --enable-null or --disable-null was given.
3007 if test "${enable_null+set}" = set; then
3008 enableval="$enable_null"
3011 for ol_val in no yes mod ; do
3012 if test "$enableval" = "$ol_val" ; then
3016 if test "$ol_arg" = "invalid" ; then
3017 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3019 { (exit 1); exit 1; }; }
3021 ol_enable_null="$ol_arg"
3024 ol_enable_null=${ol_enable_backends:-no}
3027 # OpenLDAP --enable-passwd
3029 # Check whether --enable-passwd or --disable-passwd was given.
3030 if test "${enable_passwd+set}" = set; then
3031 enableval="$enable_passwd"
3034 for ol_val in no yes mod ; do
3035 if test "$enableval" = "$ol_val" ; then
3039 if test "$ol_arg" = "invalid" ; then
3040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3042 { (exit 1); exit 1; }; }
3044 ol_enable_passwd="$ol_arg"
3047 ol_enable_passwd=${ol_enable_backends:-no}
3049 # end --enable-passwd
3050 # OpenLDAP --enable-perl
3052 # Check whether --enable-perl or --disable-perl was given.
3053 if test "${enable_perl+set}" = set; then
3054 enableval="$enable_perl"
3057 for ol_val in no yes mod ; do
3058 if test "$enableval" = "$ol_val" ; then
3062 if test "$ol_arg" = "invalid" ; then
3063 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3065 { (exit 1); exit 1; }; }
3067 ol_enable_perl="$ol_arg"
3070 ol_enable_perl=${ol_enable_backends:-no}
3073 # OpenLDAP --enable-relay
3075 # Check whether --enable-relay or --disable-relay was given.
3076 if test "${enable_relay+set}" = set; then
3077 enableval="$enable_relay"
3080 for ol_val in no yes mod ; do
3081 if test "$enableval" = "$ol_val" ; then
3085 if test "$ol_arg" = "invalid" ; then
3086 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3088 { (exit 1); exit 1; }; }
3090 ol_enable_relay="$ol_arg"
3093 ol_enable_relay=${ol_enable_backends:-yes}
3095 # end --enable-relay
3096 # OpenLDAP --enable-shell
3098 # Check whether --enable-shell or --disable-shell was given.
3099 if test "${enable_shell+set}" = set; then
3100 enableval="$enable_shell"
3103 for ol_val in no yes mod ; do
3104 if test "$enableval" = "$ol_val" ; then
3108 if test "$ol_arg" = "invalid" ; then
3109 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3110 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3111 { (exit 1); exit 1; }; }
3113 ol_enable_shell="$ol_arg"
3116 ol_enable_shell=${ol_enable_backends:-no}
3118 # end --enable-shell
3119 # OpenLDAP --enable-sql
3121 # Check whether --enable-sql or --disable-sql was given.
3122 if test "${enable_sql+set}" = set; then
3123 enableval="$enable_sql"
3126 for ol_val in no yes mod ; do
3127 if test "$enableval" = "$ol_val" ; then
3131 if test "$ol_arg" = "invalid" ; then
3132 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3134 { (exit 1); exit 1; }; }
3136 ol_enable_sql="$ol_arg"
3139 ol_enable_sql=${ol_enable_backends:-no}
3143 Overlays="accesslog \
3159 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3160 if test "${enable_xxslapoverlays+set}" = set; then
3161 enableval="$enable_xxslapoverlays"
3165 # OpenLDAP --enable-overlays
3167 # Check whether --enable-overlays or --disable-overlays was given.
3168 if test "${enable_overlays+set}" = set; then
3169 enableval="$enable_overlays"
3172 for ol_val in no yes mod ; do
3173 if test "$enableval" = "$ol_val" ; then
3177 if test "$ol_arg" = "invalid" ; then
3178 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3179 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3180 { (exit 1); exit 1; }; }
3182 ol_enable_overlays="$ol_arg"
3185 # end --enable-overlays
3186 # OpenLDAP --enable-accesslog
3188 # Check whether --enable-accesslog or --disable-accesslog was given.
3189 if test "${enable_accesslog+set}" = set; then
3190 enableval="$enable_accesslog"
3193 for ol_val in no yes mod ; do
3194 if test "$enableval" = "$ol_val" ; then
3198 if test "$ol_arg" = "invalid" ; then
3199 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3200 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3201 { (exit 1); exit 1; }; }
3203 ol_enable_accesslog="$ol_arg"
3206 ol_enable_accesslog=${ol_enable_overlays:-no}
3208 # end --enable-accesslog
3210 # OpenLDAP --enable-denyop
3212 # Check whether --enable-denyop or --disable-denyop was given.
3213 if test "${enable_denyop+set}" = set; then
3214 enableval="$enable_denyop"
3217 for ol_val in no yes mod ; do
3218 if test "$enableval" = "$ol_val" ; then
3222 if test "$ol_arg" = "invalid" ; then
3223 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3225 { (exit 1); exit 1; }; }
3227 ol_enable_denyop="$ol_arg"
3230 ol_enable_denyop=${ol_enable_overlays:-no}
3232 # end --enable-denyop
3234 # OpenLDAP --enable-dyngroup
3236 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3237 if test "${enable_dyngroup+set}" = set; then
3238 enableval="$enable_dyngroup"
3241 for ol_val in no yes mod ; do
3242 if test "$enableval" = "$ol_val" ; then
3246 if test "$ol_arg" = "invalid" ; then
3247 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3248 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3249 { (exit 1); exit 1; }; }
3251 ol_enable_dyngroup="$ol_arg"
3254 ol_enable_dyngroup=${ol_enable_overlays:-no}
3256 # end --enable-dyngroup
3258 # OpenLDAP --enable-dynlist
3260 # Check whether --enable-dynlist or --disable-dynlist was given.
3261 if test "${enable_dynlist+set}" = set; then
3262 enableval="$enable_dynlist"
3265 for ol_val in no yes mod ; do
3266 if test "$enableval" = "$ol_val" ; then
3270 if test "$ol_arg" = "invalid" ; then
3271 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3272 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3273 { (exit 1); exit 1; }; }
3275 ol_enable_dynlist="$ol_arg"
3278 ol_enable_dynlist=${ol_enable_overlays:-no}
3280 # end --enable-dynlist
3282 # OpenLDAP --enable-glue
3284 # Check whether --enable-glue or --disable-glue was given.
3285 if test "${enable_glue+set}" = set; then
3286 enableval="$enable_glue"
3289 for ol_val in no yes mod ; do
3290 if test "$enableval" = "$ol_val" ; then
3294 if test "$ol_arg" = "invalid" ; then
3295 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3297 { (exit 1); exit 1; }; }
3299 ol_enable_glue="$ol_arg"
3302 ol_enable_glue=${ol_enable_overlays:-yes}
3306 # OpenLDAP --enable-lastmod
3308 # Check whether --enable-lastmod or --disable-lastmod was given.
3309 if test "${enable_lastmod+set}" = set; then
3310 enableval="$enable_lastmod"
3313 for ol_val in no yes mod ; do
3314 if test "$enableval" = "$ol_val" ; then
3318 if test "$ol_arg" = "invalid" ; then
3319 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3321 { (exit 1); exit 1; }; }
3323 ol_enable_lastmod="$ol_arg"
3326 ol_enable_lastmod=${ol_enable_overlays:-no}
3328 # end --enable-lastmod
3330 # OpenLDAP --enable-ppolicy
3332 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3333 if test "${enable_ppolicy+set}" = set; then
3334 enableval="$enable_ppolicy"
3337 for ol_val in no yes mod ; do
3338 if test "$enableval" = "$ol_val" ; then
3342 if test "$ol_arg" = "invalid" ; then
3343 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3345 { (exit 1); exit 1; }; }
3347 ol_enable_ppolicy="$ol_arg"
3350 ol_enable_ppolicy=${ol_enable_overlays:-no}
3352 # end --enable-ppolicy
3354 # OpenLDAP --enable-proxycache
3356 # Check whether --enable-proxycache or --disable-proxycache was given.
3357 if test "${enable_proxycache+set}" = set; then
3358 enableval="$enable_proxycache"
3361 for ol_val in no yes mod ; do
3362 if test "$enableval" = "$ol_val" ; then
3366 if test "$ol_arg" = "invalid" ; then
3367 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3369 { (exit 1); exit 1; }; }
3371 ol_enable_proxycache="$ol_arg"
3374 ol_enable_proxycache=${ol_enable_overlays:-no}
3376 # end --enable-proxycache
3378 # OpenLDAP --enable-refint
3380 # Check whether --enable-refint or --disable-refint was given.
3381 if test "${enable_refint+set}" = set; then
3382 enableval="$enable_refint"
3385 for ol_val in no yes mod ; do
3386 if test "$enableval" = "$ol_val" ; then
3390 if test "$ol_arg" = "invalid" ; then
3391 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3392 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3393 { (exit 1); exit 1; }; }
3395 ol_enable_refint="$ol_arg"
3398 ol_enable_refint=${ol_enable_overlays:-no}
3400 # end --enable-refint
3402 # OpenLDAP --enable-retcode
3404 # Check whether --enable-retcode or --disable-retcode was given.
3405 if test "${enable_retcode+set}" = set; then
3406 enableval="$enable_retcode"
3409 for ol_val in no yes mod ; do
3410 if test "$enableval" = "$ol_val" ; then
3414 if test "$ol_arg" = "invalid" ; then
3415 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3416 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3417 { (exit 1); exit 1; }; }
3419 ol_enable_retcode="$ol_arg"
3422 ol_enable_retcode=${ol_enable_overlays:-no}
3424 # end --enable-retcode
3426 # OpenLDAP --enable-rwm
3428 # Check whether --enable-rwm or --disable-rwm was given.
3429 if test "${enable_rwm+set}" = set; then
3430 enableval="$enable_rwm"
3433 for ol_val in no yes mod ; do
3434 if test "$enableval" = "$ol_val" ; then
3438 if test "$ol_arg" = "invalid" ; then
3439 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3440 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3441 { (exit 1); exit 1; }; }
3443 ol_enable_rwm="$ol_arg"
3446 ol_enable_rwm=${ol_enable_overlays:-no}
3450 # OpenLDAP --enable-syncprov
3452 # Check whether --enable-syncprov or --disable-syncprov was given.
3453 if test "${enable_syncprov+set}" = set; then
3454 enableval="$enable_syncprov"
3457 for ol_val in no yes mod ; do
3458 if test "$enableval" = "$ol_val" ; then
3462 if test "$ol_arg" = "invalid" ; then
3463 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3465 { (exit 1); exit 1; }; }
3467 ol_enable_syncprov="$ol_arg"
3470 ol_enable_syncprov=${ol_enable_overlays:-yes}
3472 # end --enable-syncprov
3474 # OpenLDAP --enable-translucent
3476 # Check whether --enable-translucent or --disable-translucent was given.
3477 if test "${enable_translucent+set}" = set; then
3478 enableval="$enable_translucent"
3481 for ol_val in no yes mod ; do
3482 if test "$enableval" = "$ol_val" ; then
3486 if test "$ol_arg" = "invalid" ; then
3487 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3488 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3489 { (exit 1); exit 1; }; }
3491 ol_enable_translucent="$ol_arg"
3494 ol_enable_translucent=${ol_enable_overlays:-no}
3496 # end --enable-translucent
3498 # OpenLDAP --enable-unique
3500 # Check whether --enable-unique or --disable-unique was given.
3501 if test "${enable_unique+set}" = set; then
3502 enableval="$enable_unique"
3505 for ol_val in no yes mod ; do
3506 if test "$enableval" = "$ol_val" ; then
3510 if test "$ol_arg" = "invalid" ; then
3511 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3512 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3513 { (exit 1); exit 1; }; }
3515 ol_enable_unique="$ol_arg"
3518 ol_enable_unique=${ol_enable_overlays:-no}
3520 # end --enable-unique
3522 # OpenLDAP --enable-unique
3524 # Check whether --enable-unique or --disable-unique was given.
3525 if test "${enable_unique+set}" = set; then
3526 enableval="$enable_unique"
3529 for ol_val in no yes mod ; do
3530 if test "$enableval" = "$ol_val" ; then
3534 if test "$ol_arg" = "invalid" ; then
3535 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3536 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3537 { (exit 1); exit 1; }; }
3539 ol_enable_unique="$ol_arg"
3542 ol_enable_unique=${ol_enable_overlays:-no}
3544 # end --enable-unique
3547 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3548 if test "${enable_xxslurpdoptions+set}" = set; then
3549 enableval="$enable_xxslurpdoptions"
3552 # OpenLDAP --enable-slurpd
3554 # Check whether --enable-slurpd or --disable-slurpd was given.
3555 if test "${enable_slurpd+set}" = set; then
3556 enableval="$enable_slurpd"
3559 for ol_val in auto yes no ; do
3560 if test "$enableval" = "$ol_val" ; then
3564 if test "$ol_arg" = "invalid" ; then
3565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3566 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3567 { (exit 1); exit 1; }; }
3569 ol_enable_slurpd="$ol_arg"
3572 ol_enable_slurpd=auto
3574 # end --enable-slurpd
3576 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3577 if test "${enable_xxliboptions+set}" = set; then
3578 enableval="$enable_xxliboptions"
3581 # Check whether --enable-static or --disable-static was given.
3582 if test "${enable_static+set}" = set; then
3583 enableval="$enable_static"
3584 p=${PACKAGE-default}
3586 yes) enable_static=yes ;;
3587 no) enable_static=no ;;
3590 # Look at the argument we got. We use all the common list separators.
3591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3592 for pkg in $enableval; do
3594 if test "X$pkg" = "X$p"; then
3605 # Check whether --enable-shared or --disable-shared was given.
3606 if test "${enable_shared+set}" = set; then
3607 enableval="$enable_shared"
3608 p=${PACKAGE-default}
3610 yes) enable_shared=yes ;;
3611 no) enable_shared=no ;;
3614 # Look at the argument we got. We use all the common list separators.
3615 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3616 for pkg in $enableval; do
3618 if test "X$pkg" = "X$p"; then
3632 if test $ol_enable_slapd = no ; then
3633 if test $ol_enable_slapi = yes ; then
3634 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3637 case "$ol_enable_backends" in yes | mod)
3638 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3641 for i in $Backends; do
3642 eval "ol_tmp=\$ol_enable_$i"
3643 if test $ol_tmp != no ; then
3644 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3645 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3646 eval "ol_enable_$i=no"
3649 if test $ol_enable_modules = yes ; then
3650 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3651 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3653 if test $ol_enable_multimaster = yes ; then
3654 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3655 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3657 if test $ol_enable_wrappers = yes ; then
3658 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3661 if test $ol_enable_rlookups = yes ; then
3662 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3665 if test $ol_enable_aci = yes ; then
3666 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3667 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3669 if test $ol_enable_ldbm_api != auto ; then
3670 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3673 if test $ol_enable_ldbm_type != auto ; then
3674 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3675 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3677 if test $ol_enable_slurpd = yes ; then
3678 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3679 echo "$as_me: error: slurpd requires slapd" >&2;}
3680 { (exit 1); exit 1; }; }
3682 if test $ol_enable_rewrite = yes ; then
3683 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3686 case "$ol_enable_overlays" in yes | mod)
3687 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3690 for i in $Overlays; do
3691 eval "ol_tmp=\$ol_enable_$i"
3692 if test $ol_tmp != no ; then
3693 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3695 eval "ol_enable_$i=no"
3699 # force settings to no
3704 ol_enable_modules=no
3705 ol_enable_multimaster=no
3706 ol_enable_rlookups=no
3708 ol_enable_wrappers=no
3710 ol_enable_ldbm_api=no
3711 ol_enable_ldbm_type=no
3715 ol_enable_rewrite=no
3717 elif test $ol_enable_ldbm = no ; then
3719 if test $ol_enable_ldbm_api != auto ; then
3720 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3721 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3724 if test $ol_enable_ldbm_type != auto ; then
3725 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3726 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3729 if test $ol_enable_modules != yes -a \
3730 $ol_enable_bdb = no -a \
3731 $ol_enable_dnssrv = no -a \
3732 $ol_enable_hdb = no -a \
3733 $ol_enable_ldap = no -a \
3734 $ol_enable_meta = no -a \
3735 $ol_enable_monitor = no -a \
3736 $ol_enable_null = no -a \
3737 $ol_enable_passwd = no -a \
3738 $ol_enable_perl = no -a \
3739 $ol_enable_relay = no -a \
3740 $ol_enable_shell = no -a \
3741 $ol_enable_sql = no ; then
3743 if test $ol_enable_slapd = yes ; then
3744 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3745 echo "$as_me: error: slapd requires a backend" >&2;}
3746 { (exit 1); exit 1; }; }
3748 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3749 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3754 ol_enable_ldbm_api=no
3755 ol_enable_ldbm_type=no
3757 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3758 ol_enable_ldbm_api=berkeley
3762 if test $ol_enable_ldbm_api = gdbm -a \
3763 $ol_enable_ldbm_type = btree ; then
3764 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3765 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3766 { (exit 1); exit 1; }; }
3768 if test $ol_enable_ldbm_api = mdbm -a \
3769 $ol_enable_ldbm_type = btree ; then
3770 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3771 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3772 { (exit 1); exit 1; }; }
3774 if test $ol_enable_ldbm_api = ndbm -a \
3775 $ol_enable_ldbm_type = btree ; then
3776 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3777 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3778 { (exit 1); exit 1; }; }
3781 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3782 if test $ol_enable_ldbm_api = auto ; then
3783 ol_enable_ldbm_api=berkeley
3784 elif test $ol_enable_ldbm_api != berkeley ; then
3785 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3786 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3787 { (exit 1); exit 1; }; }
3792 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3793 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3794 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3795 { (exit 1); exit 1; }; }
3798 if test $ol_enable_slurpd = yes ; then
3799 if test $ol_with_threads = no ; then
3800 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3801 echo "$as_me: error: slurpd requires threads" >&2;}
3802 { (exit 1); exit 1; }; }
3806 if test $ol_enable_lmpasswd = yes ; then
3807 if test $ol_with_tls = no ; then
3808 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3809 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3810 { (exit 1); exit 1; }; }
3814 if test $ol_enable_kbind = yes ; then
3815 if test $ol_with_kerberos = no ; then
3816 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3817 echo "$as_me: error: options require --with-kerberos" >&2;}
3818 { (exit 1); exit 1; }; }
3819 elif test $ol_with_kerberos = auto ; then
3820 ol_with_kerberos=yes
3823 elif test $ol_enable_kbind = no ; then
3824 if test $ol_with_kerberos = auto ; then
3826 elif test $ol_with_kerberos != no ; then
3827 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3828 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3833 if test $ol_enable_spasswd = yes ; then
3834 if test $ol_with_cyrus_sasl = no ; then
3835 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3836 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3837 { (exit 1); exit 1; }; }
3839 ol_with_cyrus_sasl=yes
3842 echo "$as_me:$LINENO: result: done" >&5
3843 echo "${ECHO_T}done" >&6
3887 BUILD_TRANSLUCENT=no
3891 SLAPD_STATIC_OVERLAYS=
3892 SLAPD_DYNAMIC_OVERLAYS=
3894 SLAPD_MODULES_LDFLAGS=
3895 SLAPD_MODULES_CPPFLAGS=
3897 SLAPD_STATIC_BACKENDS=back-ldif
3898 SLAPD_DYNAMIC_BACKENDS=
3923 cat >>confdefs.h <<\_ACEOF
3924 #define HAVE_MKVERSION 1
3932 *-*-aix*) if test -z "$CC" ; then
3933 case "$ol_with_threads" in
3934 auto | yes | posix) ol_aix_threads=yes ;;
3940 if test $ol_aix_threads = yes ; then
3941 if test -z "${CC}" ; then
3942 for ac_prog in cc_r xlc_r cc
3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 echo "$as_me:$LINENO: checking for $ac_word" >&5
3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948 if test "${ac_cv_prog_CC+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if test -n "$CC"; then
3952 ac_cv_prog_CC="$CC" # Let the user override the test.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 ac_cv_prog_CC="$ac_prog"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 if test -n "$CC"; then
3972 echo "$as_me:$LINENO: result: $CC" >&5
3973 echo "${ECHO_T}$CC" >&6
3975 echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3979 test -n "$CC" && break
3983 if test "$CC" = cc ; then
3984 if test $ol_with_threads != auto ; then
3985 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3986 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3987 { (exit 1); exit 1; }; }
3989 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3990 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3996 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3997 ol_with_threads=posix
3998 ol_cv_pthread_create=yes
4002 if test -z "${CC}"; then
4003 for ac_prog in cc gcc
4005 # Extract the first word of "$ac_prog", so it can be a program name with args.
4006 set dummy $ac_prog; ac_word=$2
4007 echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_CC+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if test -n "$CC"; then
4013 ac_cv_prog_CC="$CC" # Let the user override the test.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_CC="$ac_prog"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 if test -n "$CC"; then
4033 echo "$as_me:$LINENO: result: $CC" >&5
4034 echo "${ECHO_T}$CC" >&6
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4040 test -n "$CC" && break
4042 test -n "$CC" || CC="missing"
4045 if test "${CC}" = "missing" ; then
4046 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4047 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4048 { (exit 1); exit 1; }; }
4052 if test -z "${AR}"; then
4053 for ac_prog in ar gar
4055 # Extract the first word of "$ac_prog", so it can be a program name with args.
4056 set dummy $ac_prog; ac_word=$2
4057 echo "$as_me:$LINENO: checking for $ac_word" >&5
4058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4059 if test "${ac_cv_prog_AR+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 if test -n "$AR"; then
4063 ac_cv_prog_AR="$AR" # Let the user override the test.
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_AR="$ac_prog"
4073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 if test -n "$AR"; then
4083 echo "$as_me:$LINENO: result: $AR" >&5
4084 echo "${ECHO_T}$AR" >&6
4086 echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6
4090 test -n "$AR" && break
4092 test -n "$AR" || AR="missing"
4095 if test "${AR}" = "missing" ; then
4096 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4097 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4098 { (exit 1); exit 1; }; }
4106 # Check whether --enable-fast-install or --disable-fast-install was given.
4107 if test "${enable_fast_install+set}" = set; then
4108 enableval="$enable_fast_install"
4109 p=${PACKAGE-default}
4111 yes) enable_fast_install=yes ;;
4112 no) enable_fast_install=no ;;
4114 enable_fast_install=no
4115 # Look at the argument we got. We use all the common list separators.
4116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4117 for pkg in $enableval; do
4119 if test "X$pkg" = "X$p"; then
4120 enable_fast_install=yes
4127 enable_fast_install=yes
4130 DEPDIR="${am__leading_dot}deps"
4132 ac_config_commands="$ac_config_commands depfiles"
4135 am_make=${MAKE-make}
4136 cat > confinc << 'END'
4141 # If we don't find an include directive, just comment out the code.
4142 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4143 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4147 # First try GNU make style include.
4148 echo "include confinc" > confmf
4149 # We grep out `Entering directory' and `Leaving directory'
4150 # messages which can occur if `w' ends up in MAKEFLAGS.
4151 # In particular we don't look at `^make:' because GNU make might
4152 # be invoked under some other name (usually "gmake"), in which
4153 # case it prints its new name instead of `make'.
4154 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4159 # Now try BSD make style include.
4160 if test "$am__include" = "#"; then
4161 echo '.include "confinc"' > confmf
4162 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4163 am__include=.include
4170 echo "$as_me:$LINENO: result: $_am_result" >&5
4171 echo "${ECHO_T}$_am_result" >&6
4172 rm -f confinc confmf
4174 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4175 if test "${enable_dependency_tracking+set}" = set; then
4176 enableval="$enable_dependency_tracking"
4179 if test "x$enable_dependency_tracking" != xno; then
4180 am_depcomp="$ac_aux_dir/depcomp"
4185 if test "x$enable_dependency_tracking" != xno; then
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4203 echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4205 if test "${ac_cv_prog_CC+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 if test -n "$CC"; then
4229 echo "$as_me:$LINENO: result: $CC" >&5
4230 echo "${ECHO_T}$CC" >&6
4232 echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6
4237 if test -z "$ac_cv_prog_CC"; then
4239 # Extract the first word of "gcc", so it can be a program name with args.
4240 set dummy gcc; ac_word=$2
4241 echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 if test -n "$ac_ct_CC"; then
4247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256 ac_cv_prog_ac_ct_CC="gcc"
4257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4268 echo "${ECHO_T}$ac_ct_CC" >&6
4270 echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4279 if test -z "$CC"; then
4280 if test -n "$ac_tool_prefix"; then
4281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4282 set dummy ${ac_tool_prefix}cc; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_prog_CC+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_CC="${ac_tool_prefix}cc"
4299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 if test -n "$CC"; then
4309 echo "$as_me:$LINENO: result: $CC" >&5
4310 echo "${ECHO_T}$CC" >&6
4312 echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4317 if test -z "$ac_cv_prog_CC"; then
4319 # Extract the first word of "cc", so it can be a program name with args.
4320 set dummy cc; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test -n "$ac_ct_CC"; then
4327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_ac_ct_CC="cc"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4346 if test -n "$ac_ct_CC"; then
4347 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4348 echo "${ECHO_T}$ac_ct_CC" >&6
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4360 if test -z "$CC"; then
4361 # Extract the first word of "cc", so it can be a program name with args.
4362 set dummy cc; ac_word=$2
4363 echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4365 if test "${ac_cv_prog_CC+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 if test -n "$CC"; then
4369 ac_cv_prog_CC="$CC" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4380 ac_prog_rejected=yes
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 if test $ac_prog_rejected = yes; then
4391 # We found a bogon in the path, so make sure we never use it.
4392 set dummy $ac_cv_prog_CC
4394 if test $# != 0; then
4395 # We chose a different compiler from the bogus one.
4396 # However, it has the same basename, so the bogon will be chosen
4397 # first if we set CC to just the basename; use the full file name.
4399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4405 if test -n "$CC"; then
4406 echo "$as_me:$LINENO: result: $CC" >&5
4407 echo "${ECHO_T}$CC" >&6
4409 echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4414 if test -z "$CC"; then
4415 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_prog_CC+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$CC"; then
4426 ac_cv_prog_CC="$CC" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 if test -n "$CC"; then
4446 echo "$as_me:$LINENO: result: $CC" >&5
4447 echo "${ECHO_T}$CC" >&6
4449 echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6
4453 test -n "$CC" && break
4456 if test -z "$CC"; then
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 if test -n "$ac_ct_CC"; then
4468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_ac_ct_CC="$ac_prog"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4487 if test -n "$ac_ct_CC"; then
4488 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4489 echo "${ECHO_T}$ac_ct_CC" >&6
4491 echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4495 test -n "$ac_ct_CC" && break
4504 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4505 See \`config.log' for more details." >&5
4506 echo "$as_me: error: no acceptable C compiler found in \$PATH
4507 See \`config.log' for more details." >&2;}
4508 { (exit 1); exit 1; }; }
4510 # Provide some information about the compiler.
4511 echo "$as_me:$LINENO:" \
4512 "checking for C compiler version" >&5
4513 ac_compiler=`set X $ac_compile; echo $2`
4514 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4515 (eval $ac_compiler --version </dev/null >&5) 2>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }
4519 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4520 (eval $ac_compiler -v </dev/null >&5) 2>&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }
4524 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4525 (eval $ac_compiler -V </dev/null >&5) 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4545 ac_clean_files_save=$ac_clean_files
4546 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4547 # Try to create an executable without -o first, disregard a.out.
4548 # It will help us diagnose broken compilers, and finding out an intuition
4550 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4551 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4552 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4553 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4554 (eval $ac_link_default) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; then
4558 # Find the output, starting from the most likely. This scheme is
4559 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4562 # Be careful to initialize this variable, since it used to be cached.
4563 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4565 # b.out is created by i960 compilers.
4566 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4568 test -f "$ac_file" || continue
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4573 # This is the source file.
4576 # We found the default executable, but exeext='' is most
4580 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4581 # FIXME: I believe we export ac_cv_exeext for Libtool,
4582 # but it would be cool to find out if it's true. Does anybody
4583 # maintain Libtool? --akim.
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4595 See \`config.log' for more details." >&5
4596 echo "$as_me: error: C compiler cannot create executables
4597 See \`config.log' for more details." >&2;}
4598 { (exit 77); exit 77; }; }
4601 ac_exeext=$ac_cv_exeext
4602 echo "$as_me:$LINENO: result: $ac_file" >&5
4603 echo "${ECHO_T}$ac_file" >&6
4605 # Check the compiler produces executables we can run. If not, either
4606 # the compiler is broken, or we cross compile.
4607 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4608 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4609 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4610 # If not cross compiling, check that we can run a simple program.
4611 if test "$cross_compiling" != yes; then
4612 if { ac_try='./$ac_file'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4620 if test "$cross_compiling" = maybe; then
4623 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4624 If you meant to cross compile, use \`--host'.
4625 See \`config.log' for more details." >&5
4626 echo "$as_me: error: cannot run C compiled programs.
4627 If you meant to cross compile, use \`--host'.
4628 See \`config.log' for more details." >&2;}
4629 { (exit 1); exit 1; }; }
4633 echo "$as_me:$LINENO: result: yes" >&5
4634 echo "${ECHO_T}yes" >&6
4636 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4637 ac_clean_files=$ac_clean_files_save
4638 # Check the compiler produces executables we can run. If not, either
4639 # the compiler is broken, or we cross compile.
4640 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4641 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4642 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4643 echo "${ECHO_T}$cross_compiling" >&6
4645 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4646 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648 (eval $ac_link) 2>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; then
4652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4654 # work properly (i.e., refer to `conftest.exe'), while it won't with
4656 for ac_file in conftest.exe conftest conftest.*; do
4657 test -f "$ac_file" || continue
4659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4667 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4668 See \`config.log' for more details." >&5
4669 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4670 See \`config.log' for more details." >&2;}
4671 { (exit 1); exit 1; }; }
4674 rm -f conftest$ac_cv_exeext
4675 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4676 echo "${ECHO_T}$ac_cv_exeext" >&6
4678 rm -f conftest.$ac_ext
4679 EXEEXT=$ac_cv_exeext
4681 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4682 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4683 if test "${ac_cv_objext+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 cat >conftest.$ac_ext <<_ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4701 rm -f conftest.o conftest.obj
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; then
4707 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4718 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4719 See \`config.log' for more details." >&5
4720 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4721 See \`config.log' for more details." >&2;}
4722 { (exit 1); exit 1; }; }
4725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4727 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4728 echo "${ECHO_T}$ac_cv_objext" >&6
4729 OBJEXT=$ac_cv_objext
4731 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4732 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4754 rm -f conftest.$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>conftest.er1
4758 grep -v '^ *+' conftest.er1 >conftest.err
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try='test -z "$ac_c_werror_flag"
4764 || test ! -s conftest.err'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4787 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4788 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4789 GCC=`test $ac_compiler_gnu = yes && echo yes`
4790 ac_test_CFLAGS=${CFLAGS+set}
4791 ac_save_CFLAGS=$CFLAGS
4793 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4795 if test "${ac_cv_prog_cc_g+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -z "$ac_c_werror_flag"
4823 || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4845 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4846 if test "$ac_test_CFLAGS" = set; then
4847 CFLAGS=$ac_save_CFLAGS
4848 elif test $ac_cv_prog_cc_g = yes; then
4849 if test "$GCC" = yes; then
4855 if test "$GCC" = yes; then
4861 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4862 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4863 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_cv_prog_cc_stdc=no
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4876 #include <sys/types.h>
4877 #include <sys/stat.h>
4878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4879 struct buf { int x; };
4880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4881 static char *e (p, i)
4887 static char *f (char * (*g) (char **, int), char **p, ...)
4892 s = g (p, va_arg (v,int));
4897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4898 function prototypes and stuff, but not '\xHH' hex character constants.
4899 These don't provoke an error unfortunately, instead are silently treated
4900 as 'x'. The following induces an error, until -std1 is added to get
4901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4902 array size at least. It's necessary to write '\x00'==0 to get something
4903 that's true only with -std1. */
4904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4906 int test (int i, double x);
4907 struct s1 {int (*f) (int a);};
4908 struct s2 {int (*f) (double a);};
4909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4920 # Don't try gcc -ansi; that turns off useful extensions and
4921 # breaks some systems' header files.
4922 # AIX -qlanglvl=ansi
4923 # Ultrix and OSF/1 -std1
4924 # HP-UX 10.20 and later -Ae
4925 # HP-UX older versions -Aa -D_HPUX_SOURCE
4926 # SVR4 -Xc -D__EXTENSIONS__
4927 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4929 CC="$ac_save_CC $ac_arg"
4930 rm -f conftest.$ac_objext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4932 (eval $ac_compile) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest.$ac_objext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_prog_cc_stdc=$ac_arg
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4959 rm -f conftest.err conftest.$ac_objext
4961 rm -f conftest.$ac_ext conftest.$ac_objext
4966 case "x$ac_cv_prog_cc_stdc" in
4968 echo "$as_me:$LINENO: result: none needed" >&5
4969 echo "${ECHO_T}none needed" >&6 ;;
4971 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4972 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4973 CC="$CC $ac_cv_prog_cc_stdc" ;;
4976 # Some people use a C++ compiler to compile C. Since we use `exit',
4977 # in C++ we need to declare it. In case someone uses the same compiler
4978 # for both compiling C and C++ we need to have the C++ compiler decide
4979 # the declaration of exit, since it's the most demanding environment.
4980 cat >conftest.$ac_ext <<_ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -z "$ac_c_werror_flag"
4995 || test ! -s conftest.err'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; } &&
5001 { ac_try='test -s conftest.$ac_objext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 for ac_declaration in \
5009 'extern "C" void std::exit (int) throw (); using std::exit;' \
5010 'extern "C" void std::exit (int); using std::exit;' \
5011 'extern "C" void exit (int) throw ();' \
5012 'extern "C" void exit (int);' \
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5031 rm -f conftest.$ac_objext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033 (eval $ac_compile) 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try='test -s conftest.$ac_objext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>conftest.er1
5080 grep -v '^ *+' conftest.er1 >conftest.err
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -z "$ac_c_werror_flag"
5086 || test ! -s conftest.err'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 if test -n "$ac_declaration"; then
5108 echo '#ifdef __cplusplus' >>confdefs.h
5109 echo $ac_declaration >>confdefs.h
5110 echo '#endif' >>confdefs.h
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125 depcc="$CC" am_compiler_list=
5127 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5128 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5129 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5133 # We make a subdir and do the tests there. Otherwise we can end up
5134 # making bogus files that we don't know about and never remove. For
5135 # instance it was reported that on HP-UX the gcc test will end up
5136 # making a dummy file named `D' -- because `-MD' means `put the output
5139 # Copy depcomp to subdir because otherwise we won't find it if we're
5140 # using a relative directory.
5141 cp "$am_depcomp" conftest.dir
5143 # We will build objects and dependencies in a subdirectory because
5144 # it helps to detect inapplicable dependency modes. For instance
5145 # both Tru64's cc and ICC support -MD to output dependencies as a
5146 # side effect of compilation, but ICC will put the dependencies in
5147 # the current directory while Tru64 will put them in the object
5151 am_cv_CC_dependencies_compiler_type=none
5152 if test "$am_compiler_list" = ""; then
5153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5155 for depmode in $am_compiler_list; do
5156 # Setup a source with many dependencies, because some compilers
5157 # like to wrap large dependency lists on column 80 (with \), and
5158 # we should not choose a depcomp mode which is confused by this.
5160 # We need to recreate these files for each test, as the compiler may
5161 # overwrite some of them when testing with obscure command lines.
5162 # This happens at least with the AIX C compiler.
5164 for i in 1 2 3 4 5 6; do
5165 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5166 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5167 # Solaris 8's {/usr,}/bin/sh.
5168 touch sub/conftst$i.h
5170 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5174 # after this tag, mechanisms are not by side-effect, so they'll
5175 # only be used when explicitly requested
5176 if test "x$enable_dependency_tracking" = xyes; then
5184 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5185 # mode. It turns out that the SunPro C++ compiler does not properly
5186 # handle `-M -o', and we need to detect this.
5187 if depmode=$depmode \
5188 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5190 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5191 >/dev/null 2>conftest.err &&
5192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5193 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5195 # icc doesn't choke on unknown options, it will just issue warnings
5196 # or remarks (even with -Werror). So we grep stderr for any message
5197 # that says an option was ignored or not supported.
5198 # When given -MP, icc 7.0 and 7.1 complain thusly:
5199 # icc: Command line warning: ignoring option '-M'; no argument required
5200 # The diagnosis changed in icc 8.0:
5201 # icc: Command line remark: option '-MP' not supported
5202 if (grep 'ignoring option' conftest.err ||
5203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5204 am_cv_CC_dependencies_compiler_type=$depmode
5213 am_cv_CC_dependencies_compiler_type=none
5217 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5218 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5224 test "x$enable_dependency_tracking" != xno \
5225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5227 am__fastdepCC_FALSE='#'
5229 am__fastdepCC_TRUE='#'
5230 am__fastdepCC_FALSE=
5234 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5235 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5236 if test "${lt_cv_path_SED+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 # Loop through the user's path and test for sed and gsed.
5240 # Then use that list of sed's as ones to test for truncation.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 test -z "$as_dir" && as_dir=.
5246 for lt_ac_prog in sed gsed; do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5249 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5256 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5257 # along with /bin/sed that truncates output.
5258 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5259 test ! -f $lt_ac_sed && continue
5260 cat /dev/null > conftest.in
5262 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5263 # Check for GNU sed and select it if it is found.
5264 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5265 lt_cv_path_SED=$lt_ac_sed
5269 cat conftest.in conftest.in >conftest.tmp
5270 mv conftest.tmp conftest.in
5271 cp conftest.in conftest.nl
5273 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5274 cmp -s conftest.out conftest.nl || break
5275 # 10000 chars as input seems more than enough
5276 test $lt_ac_count -gt 10 && break
5277 lt_ac_count=`expr $lt_ac_count + 1`
5278 if test $lt_ac_count -gt $lt_ac_max; then
5279 lt_ac_max=$lt_ac_count
5280 lt_cv_path_SED=$lt_ac_sed
5288 echo "$as_me:$LINENO: result: $SED" >&5
5289 echo "${ECHO_T}$SED" >&6
5291 echo "$as_me:$LINENO: checking for egrep" >&5
5292 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5293 if test "${ac_cv_prog_egrep+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5297 then ac_cv_prog_egrep='grep -E'
5298 else ac_cv_prog_egrep='egrep'
5301 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5302 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5303 EGREP=$ac_cv_prog_egrep
5307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5308 if test "${with_gnu_ld+set}" = set; then
5309 withval="$with_gnu_ld"
5310 test "$withval" = no || with_gnu_ld=yes
5315 if test "$GCC" = yes; then
5316 # Check if gcc -print-prog-name=ld gives a path.
5317 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5318 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5321 # gcc leaves a trailing carriage return which upsets mingw
5322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5327 # Accept absolute paths.
5329 re_direlt='/[^/][^/]*/\.\./'
5330 # Canonicalize the pathname of ld
5331 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5333 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5335 test -z "$LD" && LD="$ac_prog"
5338 # If it fails, then pretend we aren't using GCC.
5342 # If it is relative, then search for the first ld in PATH.
5346 elif test "$with_gnu_ld" = yes; then
5347 echo "$as_me:$LINENO: checking for GNU ld" >&5
5348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5353 if test "${lt_cv_path_LD+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 if test -z "$LD"; then
5357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5358 for ac_dir in $PATH; do
5360 test -z "$ac_dir" && ac_dir=.
5361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5362 lt_cv_path_LD="$ac_dir/$ac_prog"
5363 # Check to see if the program is GNU ld. I'd rather use --version,
5364 # but apparently some GNU ld's only accept -v.
5365 # Break only if it was the GNU/non-GNU ld that we prefer.
5366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5367 *GNU* | *'with BFD'*)
5368 test "$with_gnu_ld" != no && break
5371 test "$with_gnu_ld" != yes && break
5378 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5383 if test -n "$LD"; then
5384 echo "$as_me:$LINENO: result: $LD" >&5
5385 echo "${ECHO_T}$LD" >&6
5387 echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6
5390 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5391 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5392 { (exit 1); exit 1; }; }
5393 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5394 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5395 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5399 case `$LD -v 2>&1 </dev/null` in
5400 *GNU* | *'with BFD'*)
5401 lt_cv_prog_gnu_ld=yes
5404 lt_cv_prog_gnu_ld=no
5408 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5409 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5410 with_gnu_ld=$lt_cv_prog_gnu_ld
5413 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5414 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5415 if test "${lt_cv_ld_reload_flag+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 lt_cv_ld_reload_flag='-r'
5420 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5421 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5422 reload_flag=$lt_cv_ld_reload_flag
5423 case $reload_flag in
5425 *) reload_flag=" $reload_flag" ;;
5427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5430 if test "$GCC" = yes; then
5431 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5433 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5438 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5439 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5440 if test "${lt_cv_path_NM+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 if test -n "$NM"; then
5444 # Let the user override the test.
5447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5448 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5450 test -z "$ac_dir" && ac_dir=.
5451 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5452 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5453 # Check to see if the nm accepts a BSD-compat flag.
5454 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5455 # nm: unknown option "B" ignored
5456 # Tru64's nm complains that /dev/null is an invalid object file
5457 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5458 */dev/null* | *'Invalid file or object type'*)
5459 lt_cv_path_NM="$tmp_nm -B"
5463 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5465 lt_cv_path_NM="$tmp_nm -p"
5469 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5470 continue # so that we can try to find one that supports BSD flags
5477 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5480 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5481 echo "${ECHO_T}$lt_cv_path_NM" >&6
5484 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5485 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5487 if test "$LN_S" = "ln -s"; then
5488 echo "$as_me:$LINENO: result: yes" >&5
5489 echo "${ECHO_T}yes" >&6
5491 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5492 echo "${ECHO_T}no, using $LN_S" >&6
5495 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5496 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5497 if test "${lt_cv_deplibs_check_method+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 lt_cv_file_magic_cmd='$MAGIC_CMD'
5501 lt_cv_file_magic_test_file=
5502 lt_cv_deplibs_check_method='unknown'
5503 # Need to set the preceding variable on all platforms that support
5504 # interlibrary dependencies.
5505 # 'none' -- dependencies not supported.
5506 # `unknown' -- same as none, but documents that we really don't know.
5507 # 'pass_all' -- all dependencies passed with no checks.
5508 # 'test_compile' -- check by making test program.
5509 # 'file_magic [[regex]]' -- check by looking for files in library path
5510 # which responds to the $file_magic_cmd with a given extended regex.
5511 # If you have `file' or equivalent on your system and you're not sure
5512 # whether `pass_all' will *always* work, you probably want this one.
5516 lt_cv_deplibs_check_method=pass_all
5520 lt_cv_deplibs_check_method=pass_all
5524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5525 lt_cv_file_magic_cmd='/usr/bin/file -L'
5526 lt_cv_file_magic_test_file=/shlib/libc.so
5530 # func_win32_libid is a shell function defined in ltmain.sh
5531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5532 lt_cv_file_magic_cmd='func_win32_libid'
5536 # Base MSYS/MinGW do not provide the 'file' command needed by
5537 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5538 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5539 lt_cv_file_magic_cmd='$OBJDUMP -f'
5542 darwin* | rhapsody*)
5543 lt_cv_deplibs_check_method=pass_all
5546 freebsd* | kfreebsd*-gnu | dragonfly*)
5547 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5550 # Not sure whether the presence of OpenBSD here was a mistake.
5551 # Let's accept both of them until this is cleared up.
5552 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5553 lt_cv_file_magic_cmd=/usr/bin/file
5554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5558 lt_cv_deplibs_check_method=pass_all
5563 lt_cv_deplibs_check_method=pass_all
5566 hpux10.20* | hpux11*)
5567 lt_cv_file_magic_cmd=/usr/bin/file
5570 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5571 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5574 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]'
5575 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5579 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5584 irix5* | irix6* | nonstopux*)
5586 *-32|*"-32 ") libmagic=32-bit;;
5587 *-n32|*"-n32 ") libmagic=N32;;
5588 *-64|*"-64 ") libmagic=64-bit;;
5589 *) libmagic=never-match;;
5591 lt_cv_deplibs_check_method=pass_all
5594 # This must be Linux ELF.
5596 lt_cv_deplibs_check_method=pass_all
5600 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5609 lt_cv_file_magic_cmd=/usr/bin/file
5610 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5614 lt_cv_deplibs_check_method=unknown
5618 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625 osf3* | osf4* | osf5*)
5626 lt_cv_deplibs_check_method=pass_all
5630 lt_cv_deplibs_check_method=pass_all
5634 lt_cv_deplibs_check_method=pass_all
5637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5638 case $host_vendor in
5640 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]'
5641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5644 lt_cv_deplibs_check_method=pass_all
5647 lt_cv_file_magic_cmd='/bin/file'
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5651 lt_cv_file_magic_cmd='/bin/file'
5652 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5653 lt_cv_file_magic_test_file=/lib/libc.so
5656 lt_cv_deplibs_check_method=pass_all
5661 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5662 lt_cv_deplibs_check_method=pass_all
5667 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5668 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5669 file_magic_cmd=$lt_cv_file_magic_cmd
5670 deplibs_check_method=$lt_cv_deplibs_check_method
5671 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5676 # If no C compiler was specified, use CC.
5679 # Allow CC to be a program name with arguments.
5683 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5684 if test "${enable_libtool_lock+set}" = set; then
5685 enableval="$enable_libtool_lock"
5688 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5690 # Some flags need to be propagated to the compiler or linker for good
5694 # Find out which ABI we are using.
5695 echo 'int i;' > conftest.$ac_ext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; then
5701 case `/usr/bin/file conftest.$ac_objext` in
5713 # Find out which ABI we are using.
5714 echo '#line 5714 "configure"' > conftest.$ac_ext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; then
5720 if test "$lt_cv_prog_gnu_ld" = yes; then
5721 case `/usr/bin/file conftest.$ac_objext` in
5723 LD="${LD-ld} -melf32bsmip"
5726 LD="${LD-ld} -melf32bmipn32"
5729 LD="${LD-ld} -melf64bmip"
5733 case `/usr/bin/file conftest.$ac_objext` in
5749 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5750 # Find out which ABI we are using.
5751 echo 'int i;' > conftest.$ac_ext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; then
5757 case "`/usr/bin/file conftest.o`" in
5761 LD="${LD-ld} -m elf_i386"
5763 ppc64-*linux*|powerpc64-*linux*)
5764 LD="${LD-ld} -m elf32ppclinux"
5767 LD="${LD-ld} -m elf_s390"
5770 LD="${LD-ld} -m elf32_sparc"
5777 LD="${LD-ld} -m elf_x86_64"
5779 ppc*-*linux*|powerpc*-*linux*)
5780 LD="${LD-ld} -m elf64ppc"
5783 LD="${LD-ld} -m elf64_s390"
5786 LD="${LD-ld} -m elf64_sparc"
5796 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5797 SAVE_CFLAGS="$CFLAGS"
5798 CFLAGS="$CFLAGS -belf"
5799 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5800 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5801 if test "${lt_cv_cc_needs_belf+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 ac_cpp='$CPP $CPPFLAGS'
5806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5825 rm -f conftest.$ac_objext conftest$ac_exeext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5827 (eval $ac_link) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest$ac_exeext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 lt_cv_cc_needs_belf=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 lt_cv_cc_needs_belf=no
5854 rm -f conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext conftest.$ac_ext
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5864 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5865 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5866 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5867 CFLAGS="$SAVE_CFLAGS"
5870 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5871 if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 if test -n "$DLLTOOL"; then
5880 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 DLLTOOL=$ac_cv_prog_DLLTOOL
5899 if test -n "$DLLTOOL"; then
5900 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5901 echo "${ECHO_T}$DLLTOOL" >&6
5903 echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5908 if test -z "$ac_cv_prog_DLLTOOL"; then
5909 ac_ct_DLLTOOL=$DLLTOOL
5910 # Extract the first word of "dlltool", so it can be a program name with args.
5911 set dummy dlltool; ac_word=$2
5912 echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 if test -n "$ac_ct_DLLTOOL"; then
5918 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5937 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5938 if test -n "$ac_ct_DLLTOOL"; then
5939 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5940 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5942 echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5946 DLLTOOL=$ac_ct_DLLTOOL
5948 DLLTOOL="$ac_cv_prog_DLLTOOL"
5951 if test -n "$ac_tool_prefix"; then
5952 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5953 set dummy ${ac_tool_prefix}as; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_AS+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 if test -n "$AS"; then
5960 ac_cv_prog_AS="$AS" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_AS="${ac_tool_prefix}as"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 if test -n "$AS"; then
5980 echo "$as_me:$LINENO: result: $AS" >&5
5981 echo "${ECHO_T}$AS" >&6
5983 echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5988 if test -z "$ac_cv_prog_AS"; then
5990 # Extract the first word of "as", so it can be a program name with args.
5991 set dummy as; ac_word=$2
5992 echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 if test -n "$ac_ct_AS"; then
5998 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_ac_ct_AS="as"
6008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6017 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6018 if test -n "$ac_ct_AS"; then
6019 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6020 echo "${ECHO_T}$ac_ct_AS" >&6
6022 echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6034 echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 if test -n "$OBJDUMP"; then
6040 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 OBJDUMP=$ac_cv_prog_OBJDUMP
6059 if test -n "$OBJDUMP"; then
6060 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6061 echo "${ECHO_T}$OBJDUMP" >&6
6063 echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6
6068 if test -z "$ac_cv_prog_OBJDUMP"; then
6069 ac_ct_OBJDUMP=$OBJDUMP
6070 # Extract the first word of "objdump", so it can be a program name with args.
6071 set dummy objdump; ac_word=$2
6072 echo "$as_me:$LINENO: checking for $ac_word" >&5
6073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6074 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 if test -n "$ac_ct_OBJDUMP"; then
6078 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6097 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6098 if test -n "$ac_ct_OBJDUMP"; then
6099 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6100 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6102 echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6
6106 OBJDUMP=$ac_ct_OBJDUMP
6108 OBJDUMP="$ac_cv_prog_OBJDUMP"
6115 need_locks="$enable_libtool_lock"
6119 ac_cpp='$CPP $CPPFLAGS'
6120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6123 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6124 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6125 # On Suns, sometimes $CPP names a directory.
6126 if test -n "$CPP" && test -d "$CPP"; then
6129 if test -z "$CPP"; then
6130 if test "${ac_cv_prog_CPP+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 # Double quotes because CPP needs to be expanded
6134 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6137 for ac_c_preproc_warn_flag in '' yes
6139 # Use a header file that comes with gcc, so configuring glibc
6140 # with a fresh cross-compiler works.
6141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 # <limits.h> exists even on freestanding compilers.
6143 # On the NeXT, cc -E runs the code through the compiler's parser,
6144 # not just through cpp. "Syntax error" is here to catch this case.
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6152 # include <limits.h>
6154 # include <assert.h>
6158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev/null; then
6166 if test -s conftest.err; then
6167 ac_cpp_err=$ac_c_preproc_warn_flag
6168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6175 if test -z "$ac_cpp_err"; then
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 # Broken: fails on valid input.
6184 rm -f conftest.err conftest.$ac_ext
6186 # OK, works on sane cases. Now check whether non-existent headers
6187 # can be detected and how.
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <ac_nonexistent.h>
6196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6199 grep -v '^ *+' conftest.er1 >conftest.err
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } >/dev/null; then
6204 if test -s conftest.err; then
6205 ac_cpp_err=$ac_c_preproc_warn_flag
6206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6213 if test -z "$ac_cpp_err"; then
6214 # Broken: success on invalid input.
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6220 # Passes both tests.
6224 rm -f conftest.err conftest.$ac_ext
6227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6228 rm -f conftest.err conftest.$ac_ext
6229 if $ac_preproc_ok; then
6241 echo "$as_me:$LINENO: result: $CPP" >&5
6242 echo "${ECHO_T}$CPP" >&6
6244 for ac_c_preproc_warn_flag in '' yes
6246 # Use a header file that comes with gcc, so configuring glibc
6247 # with a fresh cross-compiler works.
6248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249 # <limits.h> exists even on freestanding compilers.
6250 # On the NeXT, cc -E runs the code through the compiler's parser,
6251 # not just through cpp. "Syntax error" is here to catch this case.
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6259 # include <limits.h>
6261 # include <assert.h>
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } >/dev/null; then
6273 if test -s conftest.err; then
6274 ac_cpp_err=$ac_c_preproc_warn_flag
6275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6282 if test -z "$ac_cpp_err"; then
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 # Broken: fails on valid input.
6291 rm -f conftest.err conftest.$ac_ext
6293 # OK, works on sane cases. Now check whether non-existent headers
6294 # can be detected and how.
6295 cat >conftest.$ac_ext <<_ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 #include <ac_nonexistent.h>
6303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } >/dev/null; then
6311 if test -s conftest.err; then
6312 ac_cpp_err=$ac_c_preproc_warn_flag
6313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6320 if test -z "$ac_cpp_err"; then
6321 # Broken: success on invalid input.
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 # Passes both tests.
6331 rm -f conftest.err conftest.$ac_ext
6334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6335 rm -f conftest.err conftest.$ac_ext
6336 if $ac_preproc_ok; then
6339 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6340 See \`config.log' for more details." >&5
6341 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6342 See \`config.log' for more details." >&2;}
6343 { (exit 1); exit 1; }; }
6347 ac_cpp='$CPP $CPPFLAGS'
6348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6354 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6355 if test "${ac_cv_header_stdc+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 cat >conftest.$ac_ext <<_ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6377 rm -f conftest.$ac_objext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379 (eval $ac_compile) 2>conftest.er1
6381 grep -v '^ *+' conftest.er1 >conftest.err
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -z "$ac_c_werror_flag"
6387 || test ! -s conftest.err'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; } &&
6393 { ac_try='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_cv_header_stdc=yes
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 ac_cv_header_stdc=no
6406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6408 if test $ac_cv_header_stdc = yes; then
6409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6410 cat >conftest.$ac_ext <<_ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6420 $EGREP "memchr" >/dev/null 2>&1; then
6423 ac_cv_header_stdc=no
6429 if test $ac_cv_header_stdc = yes; then
6430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6441 $EGREP "free" >/dev/null 2>&1; then
6444 ac_cv_header_stdc=no
6450 if test $ac_cv_header_stdc = yes; then
6451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6452 if test "$cross_compiling" = yes; then
6455 cat >conftest.$ac_ext <<_ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6462 #if ((' ' & 0x0FF) == 0x020)
6463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6466 # define ISLOWER(c) \
6467 (('a' <= (c) && (c) <= 'i') \
6468 || ('j' <= (c) && (c) <= 'r') \
6469 || ('s' <= (c) && (c) <= 'z'))
6470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6478 for (i = 0; i < 256; i++)
6479 if (XOR (islower (i), ISLOWER (i))
6480 || toupper (i) != TOUPPER (i))
6485 rm -f conftest$ac_exeext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487 (eval $ac_link) 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6498 echo "$as_me: program exited with status $ac_status" >&5
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6503 ac_cv_header_stdc=no
6505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6510 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6511 if test $ac_cv_header_stdc = yes; then
6513 cat >>confdefs.h <<\_ACEOF
6514 #define STDC_HEADERS 1
6519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6530 inttypes.h stdint.h unistd.h
6532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6533 echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 cat >conftest.$ac_ext <<_ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 $ac_includes_default
6546 #include <$ac_header>
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1 >conftest.err
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 eval "$as_ac_Header=yes"
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 eval "$as_ac_Header=no"
6577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6582 cat >>confdefs.h <<_ACEOF
6583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6592 for ac_header in dlfcn.h
6594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596 echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6604 # Is the header compilable?
6605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6607 cat >conftest.$ac_ext <<_ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 $ac_includes_default
6614 #include <$ac_header>
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try='test -z "$ac_c_werror_flag"
6626 || test ! -s conftest.err'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try='test -s conftest.$ac_objext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_header_compiler=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_header_compiler=no
6645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6647 echo "${ECHO_T}$ac_header_compiler" >&6
6649 # Is the header present?
6650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 #include <$ac_header>
6660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } >/dev/null; then
6668 if test -s conftest.err; then
6669 ac_cpp_err=$ac_c_preproc_warn_flag
6670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6677 if test -z "$ac_cpp_err"; then
6678 ac_header_preproc=yes
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6683 ac_header_preproc=no
6685 rm -f conftest.err conftest.$ac_ext
6686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6687 echo "${ECHO_T}$ac_header_preproc" >&6
6689 # So? What about this header?
6690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6696 ac_header_preproc=yes
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6713 ## ------------------------------------------ ##
6714 ## Report this to the AC_PACKAGE_NAME lists. ##
6715 ## ------------------------------------------ ##
6718 sed "s/^/$as_me: WARNING: /" >&2
6721 echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 eval "$as_ac_Header=\$ac_header_preproc"
6728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733 cat >>confdefs.h <<_ACEOF
6734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6742 ac_cpp='$CXXCPP $CPPFLAGS'
6743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6746 if test -n "$ac_tool_prefix"; then
6747 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6751 echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6753 if test "${ac_cv_prog_CXX+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 if test -n "$CXX"; then
6757 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 if test -n "$CXX"; then
6777 echo "$as_me:$LINENO: result: $CXX" >&5
6778 echo "${ECHO_T}$CXX" >&6
6780 echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6
6784 test -n "$CXX" && break
6787 if test -z "$CXX"; then
6789 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6791 # Extract the first word of "$ac_prog", so it can be a program name with args.
6792 set dummy $ac_prog; ac_word=$2
6793 echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6795 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 if test -n "$ac_ct_CXX"; then
6799 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_ac_ct_CXX="$ac_prog"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6818 if test -n "$ac_ct_CXX"; then
6819 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6820 echo "${ECHO_T}$ac_ct_CXX" >&6
6822 echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6
6826 test -n "$ac_ct_CXX" && break
6828 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6834 # Provide some information about the compiler.
6835 echo "$as_me:$LINENO:" \
6836 "checking for C++ compiler version" >&5
6837 ac_compiler=`set X $ac_compile; echo $2`
6838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6839 (eval $ac_compiler --version </dev/null >&5) 2>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }
6843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6844 (eval $ac_compiler -v </dev/null >&5) 2>&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }
6848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6849 (eval $ac_compiler -V </dev/null >&5) 2>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }
6854 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6855 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6856 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6877 rm -f conftest.$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879 (eval $ac_compile) 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -z "$ac_cxx_werror_flag"
6887 || test ! -s conftest.err'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; } &&
6893 { ac_try='test -s conftest.$ac_objext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6910 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6911 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6912 GXX=`test $ac_compiler_gnu = yes && echo yes`
6913 ac_test_CXXFLAGS=${CXXFLAGS+set}
6914 ac_save_CXXFLAGS=$CXXFLAGS
6916 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6917 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6918 if test "${ac_cv_prog_cxx_g+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6936 rm -f conftest.$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>conftest.er1
6940 grep -v '^ *+' conftest.er1 >conftest.err
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_cxx_werror_flag"
6946 || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest.$ac_objext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_cv_prog_cxx_g=yes
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6967 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6968 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6969 if test "$ac_test_CXXFLAGS" = set; then
6970 CXXFLAGS=$ac_save_CXXFLAGS
6971 elif test $ac_cv_prog_cxx_g = yes; then
6972 if test "$GXX" = yes; then
6978 if test "$GXX" = yes; then
6984 for ac_declaration in \
6986 'extern "C" void std::exit (int) throw (); using std::exit;' \
6987 'extern "C" void std::exit (int); using std::exit;' \
6988 'extern "C" void exit (int) throw ();' \
6989 'extern "C" void exit (int);' \
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>conftest.er1
7012 grep -v '^ *+' conftest.er1 >conftest.err
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -z "$ac_cxx_werror_flag"
7018 || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest.$ac_objext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_cxx_werror_flag"
7063 || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7084 if test -n "$ac_declaration"; then
7085 echo '#ifdef __cplusplus' >>confdefs.h
7086 echo $ac_declaration >>confdefs.h
7087 echo '#endif' >>confdefs.h
7091 ac_cpp='$CXXCPP $CPPFLAGS'
7092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7096 depcc="$CXX" am_compiler_list=
7098 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7099 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7100 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7104 # We make a subdir and do the tests there. Otherwise we can end up
7105 # making bogus files that we don't know about and never remove. For
7106 # instance it was reported that on HP-UX the gcc test will end up
7107 # making a dummy file named `D' -- because `-MD' means `put the output
7110 # Copy depcomp to subdir because otherwise we won't find it if we're
7111 # using a relative directory.
7112 cp "$am_depcomp" conftest.dir
7114 # We will build objects and dependencies in a subdirectory because
7115 # it helps to detect inapplicable dependency modes. For instance
7116 # both Tru64's cc and ICC support -MD to output dependencies as a
7117 # side effect of compilation, but ICC will put the dependencies in
7118 # the current directory while Tru64 will put them in the object
7122 am_cv_CXX_dependencies_compiler_type=none
7123 if test "$am_compiler_list" = ""; then
7124 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7126 for depmode in $am_compiler_list; do
7127 # Setup a source with many dependencies, because some compilers
7128 # like to wrap large dependency lists on column 80 (with \), and
7129 # we should not choose a depcomp mode which is confused by this.
7131 # We need to recreate these files for each test, as the compiler may
7132 # overwrite some of them when testing with obscure command lines.
7133 # This happens at least with the AIX C compiler.
7135 for i in 1 2 3 4 5 6; do
7136 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7138 # Solaris 8's {/usr,}/bin/sh.
7139 touch sub/conftst$i.h
7141 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7145 # after this tag, mechanisms are not by side-effect, so they'll
7146 # only be used when explicitly requested
7147 if test "x$enable_dependency_tracking" = xyes; then
7155 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7156 # mode. It turns out that the SunPro C++ compiler does not properly
7157 # handle `-M -o', and we need to detect this.
7158 if depmode=$depmode \
7159 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7160 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7161 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7162 >/dev/null 2>conftest.err &&
7163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7164 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7166 # icc doesn't choke on unknown options, it will just issue warnings
7167 # or remarks (even with -Werror). So we grep stderr for any message
7168 # that says an option was ignored or not supported.
7169 # When given -MP, icc 7.0 and 7.1 complain thusly:
7170 # icc: Command line warning: ignoring option '-M'; no argument required
7171 # The diagnosis changed in icc 8.0:
7172 # icc: Command line remark: option '-MP' not supported
7173 if (grep 'ignoring option' conftest.err ||
7174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7175 am_cv_CXX_dependencies_compiler_type=$depmode
7184 am_cv_CXX_dependencies_compiler_type=none
7188 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7189 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7190 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7195 test "x$enable_dependency_tracking" != xno \
7196 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7197 am__fastdepCXX_TRUE=
7198 am__fastdepCXX_FALSE='#'
7200 am__fastdepCXX_TRUE='#'
7201 am__fastdepCXX_FALSE=
7207 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7208 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7209 (test "X$CXX" != "Xg++"))) ; then
7211 ac_cpp='$CXXCPP $CPPFLAGS'
7212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7215 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7216 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7217 if test -z "$CXXCPP"; then
7218 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 # Double quotes because CXXCPP needs to be expanded
7222 for CXXCPP in "$CXX -E" "/lib/cpp"
7225 for ac_cxx_preproc_warn_flag in '' yes
7227 # Use a header file that comes with gcc, so configuring glibc
7228 # with a fresh cross-compiler works.
7229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7230 # <limits.h> exists even on freestanding compilers.
7231 # On the NeXT, cc -E runs the code through the compiler's parser,
7232 # not just through cpp. "Syntax error" is here to catch this case.
7233 cat >conftest.$ac_ext <<_ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7240 # include <limits.h>
7242 # include <assert.h>
7246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7249 grep -v '^ *+' conftest.er1 >conftest.err
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } >/dev/null; then
7254 if test -s conftest.err; then
7255 ac_cpp_err=$ac_cxx_preproc_warn_flag
7256 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7263 if test -z "$ac_cpp_err"; then
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 # Broken: fails on valid input.
7272 rm -f conftest.err conftest.$ac_ext
7274 # OK, works on sane cases. Now check whether non-existent headers
7275 # can be detected and how.
7276 cat >conftest.$ac_ext <<_ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 #include <ac_nonexistent.h>
7284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } >/dev/null; then
7292 if test -s conftest.err; then
7293 ac_cpp_err=$ac_cxx_preproc_warn_flag
7294 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7301 if test -z "$ac_cpp_err"; then
7302 # Broken: success on invalid input.
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 # Passes both tests.
7312 rm -f conftest.err conftest.$ac_ext
7315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7316 rm -f conftest.err conftest.$ac_ext
7317 if $ac_preproc_ok; then
7322 ac_cv_prog_CXXCPP=$CXXCPP
7325 CXXCPP=$ac_cv_prog_CXXCPP
7327 ac_cv_prog_CXXCPP=$CXXCPP
7329 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7330 echo "${ECHO_T}$CXXCPP" >&6
7332 for ac_cxx_preproc_warn_flag in '' yes
7334 # Use a header file that comes with gcc, so configuring glibc
7335 # with a fresh cross-compiler works.
7336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7337 # <limits.h> exists even on freestanding compilers.
7338 # On the NeXT, cc -E runs the code through the compiler's parser,
7339 # not just through cpp. "Syntax error" is here to catch this case.
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7347 # include <limits.h>
7349 # include <assert.h>
7353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } >/dev/null; then
7361 if test -s conftest.err; then
7362 ac_cpp_err=$ac_cxx_preproc_warn_flag
7363 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7370 if test -z "$ac_cpp_err"; then
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 # Broken: fails on valid input.
7379 rm -f conftest.err conftest.$ac_ext
7381 # OK, works on sane cases. Now check whether non-existent headers
7382 # can be detected and how.
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 #include <ac_nonexistent.h>
7391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7394 grep -v '^ *+' conftest.er1 >conftest.err
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } >/dev/null; then
7399 if test -s conftest.err; then
7400 ac_cpp_err=$ac_cxx_preproc_warn_flag
7401 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7408 if test -z "$ac_cpp_err"; then
7409 # Broken: success on invalid input.
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 # Passes both tests.
7419 rm -f conftest.err conftest.$ac_ext
7422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7423 rm -f conftest.err conftest.$ac_ext
7424 if $ac_preproc_ok; then
7427 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7428 See \`config.log' for more details." >&5
7429 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7430 See \`config.log' for more details." >&2;}
7431 { (exit 1); exit 1; }; }
7435 ac_cpp='$CXXCPP $CPPFLAGS'
7436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7444 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7445 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7447 if test -n "$ac_tool_prefix"; then
7448 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7452 echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7454 if test "${ac_cv_prog_F77+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 if test -n "$F77"; then
7458 ac_cv_prog_F77="$F77" # Let the user override the test.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 if test -n "$F77"; then
7478 echo "$as_me:$LINENO: result: $F77" >&5
7479 echo "${ECHO_T}$F77" >&6
7481 echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7485 test -n "$F77" && break
7488 if test -z "$F77"; then
7490 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7492 # Extract the first word of "$ac_prog", so it can be a program name with args.
7493 set dummy $ac_prog; ac_word=$2
7494 echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7496 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 if test -n "$ac_ct_F77"; then
7500 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509 ac_cv_prog_ac_ct_F77="$ac_prog"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7519 if test -n "$ac_ct_F77"; then
7520 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7521 echo "${ECHO_T}$ac_ct_F77" >&6
7523 echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6
7527 test -n "$ac_ct_F77" && break
7534 # Provide some information about the compiler.
7535 echo "$as_me:7535:" \
7536 "checking for Fortran 77 compiler version" >&5
7537 ac_compiler=`set X $ac_compile; echo $2`
7538 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7539 (eval $ac_compiler --version </dev/null >&5) 2>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }
7543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7544 (eval $ac_compiler -v </dev/null >&5) 2>&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }
7548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7549 (eval $ac_compiler -V </dev/null >&5) 2>&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }
7555 # If we don't use `.F' as extension, the preprocessor is not run on the
7556 # input file. (Note that this only needs to work for GNU compilers.)
7559 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7560 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7561 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 cat >conftest.$ac_ext <<_ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574 (eval $ac_compile) 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_f77_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest.$ac_objext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7602 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7605 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7606 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7608 ac_test_FFLAGS=${FFLAGS+set}
7609 ac_save_FFLAGS=$FFLAGS
7611 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7612 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7613 if test "${ac_cv_prog_f77_g+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 cat >conftest.$ac_ext <<_ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7624 (eval $ac_compile) 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try='test -z "$ac_f77_werror_flag"
7632 || test ! -s conftest.err'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; } &&
7638 { ac_try='test -s conftest.$ac_objext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_cv_prog_f77_g=yes
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7654 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7655 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7656 if test "$ac_test_FFLAGS" = set; then
7657 FFLAGS=$ac_save_FFLAGS
7658 elif test $ac_cv_prog_f77_g = yes; then
7659 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7665 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7672 G77=`test $ac_compiler_gnu = yes && echo yes`
7674 ac_cpp='$CPP $CPPFLAGS'
7675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7681 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7683 # find the maximum length of command line arguments
7684 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7685 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7686 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 # On DJGPP, this test can blow up pretty badly due to problems in libc
7695 # (any single argument exceeding 2000 bytes causes a buffer overrun
7696 # during glob expansion). Even if it were fixed, the result of this
7697 # check would be larger than it should be.
7698 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7702 # Under GNU Hurd, this test is not required because there is
7703 # no limit to the length of command line arguments.
7704 # Libtool will interpret -1 as no limit whatsoever
7705 lt_cv_sys_max_cmd_len=-1;
7709 # On Win9x/ME, this test blows up -- it succeeds, but takes
7710 # about 5 minutes as the teststring grows exponentially.
7711 # Worse, since 9x/ME are not pre-emptively multitasking,
7712 # you end up with a "frozen" computer, even though with patience
7713 # the test eventually succeeds (with a max line length of 256k).
7714 # Instead, let's just punt: use the minimum linelength reported by
7715 # all of the supported platforms: 8192 (on NT/2K/XP).
7716 lt_cv_sys_max_cmd_len=8192;
7720 # On AmigaOS with pdksh, this test takes hours, literally.
7721 # So we just punt and use a minimum line length of 8192.
7722 lt_cv_sys_max_cmd_len=8192;
7725 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7726 # This has been around since 386BSD, at least. Likely further.
7727 if test -x /sbin/sysctl; then
7728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7729 elif test -x /usr/sbin/sysctl; then
7730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7732 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7734 # And add a safety zone
7735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7739 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7740 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7741 # nice to cause kernel panics so lets avoid the loop below.
7742 # First set a reasonable default.
7743 lt_cv_sys_max_cmd_len=16384
7745 if test -x /sbin/sysconfig; then
7746 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7747 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7752 # If test is not a shell built-in, we'll probably end up computing a
7753 # maximum length that is only half of the actual maximum length, but
7755 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7756 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7757 = "XX$teststring") >/dev/null 2>&1 &&
7758 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7759 lt_cv_sys_max_cmd_len=$new_result &&
7760 test $i != 17 # 1/2 MB should be enough
7763 teststring=$teststring$teststring
7766 # Add a significant safety factor because C++ compilers can tack on massive
7767 # amounts of additional arguments before passing them to the linker.
7768 # It appears as though 1/2 is a usable value.
7769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7775 if test -n $lt_cv_sys_max_cmd_len ; then
7776 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7777 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7779 echo "$as_me:$LINENO: result: none" >&5
7780 echo "${ECHO_T}none" >&6
7786 # Check for command to grab the raw symbol name followed by C symbol from nm.
7787 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7788 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7789 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 # These are sane defaults that work on at least a few old systems.
7794 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7796 # Character class describing NM global symbol codes.
7797 symcode='[BCDEGRST]'
7799 # Regexp to match symbols that can be accessed directly from C.
7800 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7802 # Transform an extracted symbol line into a proper C declaration
7803 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7805 # Transform an extracted symbol line into symbol name and symbol address
7806 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'"
7808 # Define system-specific variables.
7813 cygwin* | mingw* | pw32*)
7814 symcode='[ABCDGISTW]'
7816 hpux*) # Its linker distinguishes data from code symbols
7817 if test "$host_cpu" = ia64; then
7818 symcode='[ABCDEGRST]'
7820 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7821 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'"
7824 if test "$host_cpu" = ia64; then
7825 symcode='[ABCDGIRSTW]'
7826 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7827 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'"
7831 symcode='[BCDEGRST]'
7834 symcode='[BCDEGQRST]'
7844 # Handle CRLF in mingw tool chain
7848 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7852 # If we're using GNU nm, then use its standard symbol codes.
7853 case `$NM -V 2>&1` in
7854 *GNU* | *'with BFD'*)
7855 symcode='[ABCDGIRSTW]' ;;
7858 # Try without a prefix undercore, then with it.
7859 for ac_symprfx in "" "_"; do
7861 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7862 symxfrm="\\1 $ac_symprfx\\2 \\2"
7864 # Write the raw and C identifiers.
7865 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7867 # Check to see that the pipe works correctly.
7871 cat > conftest.$ac_ext <<EOF
7876 void nm_test_func(){}
7880 int main(){nm_test_var='a';nm_test_func();return(0);}
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; then
7888 # Now try to grab the symbols.
7890 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7891 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && test -s "$nlist"; then
7895 # Try sorting and uniquifying the output.
7896 if sort "$nlist" | uniq > "$nlist"T; then
7897 mv -f "$nlist"T "$nlist"
7902 # Make sure that we snagged all the symbols we need.
7903 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7904 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7905 cat <<EOF > conftest.$ac_ext
7911 # Now generate the symbol file.
7912 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7914 cat <<EOF >> conftest.$ac_ext
7915 #if defined (__STDC__) && __STDC__
7916 # define lt_ptr_t void *
7918 # define lt_ptr_t char *
7922 /* The mapping between symbol names and symbols. */
7927 lt_preloaded_symbols[] =
7930 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7931 cat <<\EOF >> conftest.$ac_ext
7939 # Now try linking the two files.
7940 mv conftest.$ac_objext conftstm.$ac_objext
7941 lt_save_LIBS="$LIBS"
7942 lt_save_CFLAGS="$CFLAGS"
7943 LIBS="conftstm.$ac_objext"
7944 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7952 LIBS="$lt_save_LIBS"
7953 CFLAGS="$lt_save_CFLAGS"
7955 echo "cannot find nm_test_func in $nlist" >&5
7958 echo "cannot find nm_test_var in $nlist" >&5
7961 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7964 echo "$progname: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7967 rm -f conftest* conftst*
7969 # Do not use the global_symbol_pipe unless it works.
7970 if test "$pipe_works" = yes; then
7973 lt_cv_sys_global_symbol_pipe=
7979 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7980 lt_cv_sys_global_symbol_to_cdecl=
7982 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7983 echo "$as_me:$LINENO: result: failed" >&5
7984 echo "${ECHO_T}failed" >&6
7986 echo "$as_me:$LINENO: result: ok" >&5
7987 echo "${ECHO_T}ok" >&6
7990 echo "$as_me:$LINENO: checking for objdir" >&5
7991 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7992 if test "${lt_cv_objdir+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 rm -f .libs 2>/dev/null
7996 mkdir .libs 2>/dev/null
7997 if test -d .libs; then
8000 # MS-DOS does not allow filenames that begin with a dot.
8003 rmdir .libs 2>/dev/null
8005 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8006 echo "${ECHO_T}$lt_cv_objdir" >&6
8007 objdir=$lt_cv_objdir
8015 # AIX sometimes has problems with the GCC collect2 program. For some
8016 # reason, if we set the COLLECT_NAMES environment variable, the problems
8017 # vanish in a puff of smoke.
8018 if test "X${COLLECT_NAMES+set}" != Xset; then
8020 export COLLECT_NAMES
8025 # Sed substitution that helps us do robust quoting. It backslashifies
8026 # metacharacters that are still active within double-quoted strings.
8027 Xsed='sed -e 1s/^X//'
8028 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8030 # Same as above, but do not quote variable references.
8031 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8033 # Sed substitution to delay expansion of an escaped shell variable in a
8034 # double_quote_subst'ed string.
8035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8037 # Sed substitution to avoid accidental globbing in evaled expressions
8038 no_glob_subst='s/\*/\\\*/g'
8044 default_ofile=libtool
8045 can_build_shared=yes
8047 # All known linkers require a `.a' archive for static linking (except M$VC,
8048 # which needs '.lib').
8050 ltmain="$ac_aux_dir/ltmain.sh"
8051 ofile="$default_ofile"
8052 with_gnu_ld="$lt_cv_prog_gnu_ld"
8054 if test -n "$ac_tool_prefix"; then
8055 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8056 set dummy ${ac_tool_prefix}ar; ac_word=$2
8057 echo "$as_me:$LINENO: checking for $ac_word" >&5
8058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8059 if test "${ac_cv_prog_AR+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 if test -n "$AR"; then
8063 ac_cv_prog_AR="$AR" # Let the user override the test.
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 test -z "$as_dir" && as_dir=.
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072 ac_cv_prog_AR="${ac_tool_prefix}ar"
8073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 if test -n "$AR"; then
8083 echo "$as_me:$LINENO: result: $AR" >&5
8084 echo "${ECHO_T}$AR" >&6
8086 echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8091 if test -z "$ac_cv_prog_AR"; then
8093 # Extract the first word of "ar", so it can be a program name with args.
8094 set dummy ar; ac_word=$2
8095 echo "$as_me:$LINENO: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 if test -n "$ac_ct_AR"; then
8101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110 ac_cv_prog_ac_ct_AR="ar"
8111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8121 if test -n "$ac_ct_AR"; then
8122 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8123 echo "${ECHO_T}$ac_ct_AR" >&6
8125 echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8134 if test -n "$ac_tool_prefix"; then
8135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8137 echo "$as_me:$LINENO: checking for $ac_word" >&5
8138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8139 if test "${ac_cv_prog_RANLIB+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 if test -n "$RANLIB"; then
8143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 RANLIB=$ac_cv_prog_RANLIB
8162 if test -n "$RANLIB"; then
8163 echo "$as_me:$LINENO: result: $RANLIB" >&5
8164 echo "${ECHO_T}$RANLIB" >&6
8166 echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8171 if test -z "$ac_cv_prog_RANLIB"; then
8172 ac_ct_RANLIB=$RANLIB
8173 # Extract the first word of "ranlib", so it can be a program name with args.
8174 set dummy ranlib; ac_word=$2
8175 echo "$as_me:$LINENO: checking for $ac_word" >&5
8176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 if test -n "$ac_ct_RANLIB"; then
8181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190 ac_cv_prog_ac_ct_RANLIB="ranlib"
8191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8201 if test -n "$ac_ct_RANLIB"; then
8202 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8209 RANLIB=$ac_ct_RANLIB
8211 RANLIB="$ac_cv_prog_RANLIB"
8214 if test -n "$ac_tool_prefix"; then
8215 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}strip; ac_word=$2
8217 echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8219 if test "${ac_cv_prog_STRIP+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 if test -n "$STRIP"; then
8223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 STRIP=$ac_cv_prog_STRIP
8242 if test -n "$STRIP"; then
8243 echo "$as_me:$LINENO: result: $STRIP" >&5
8244 echo "${ECHO_T}$STRIP" >&6
8246 echo "$as_me:$LINENO: result: no" >&5
8247 echo "${ECHO_T}no" >&6
8251 if test -z "$ac_cv_prog_STRIP"; then
8253 # Extract the first word of "strip", so it can be a program name with args.
8254 set dummy strip; ac_word=$2
8255 echo "$as_me:$LINENO: checking for $ac_word" >&5
8256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8257 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 if test -n "$ac_ct_STRIP"; then
8261 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_ac_ct_STRIP="strip"
8271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8281 if test -n "$ac_ct_STRIP"; then
8282 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8283 echo "${ECHO_T}$ac_ct_STRIP" >&6
8285 echo "$as_me:$LINENO: result: no" >&5
8286 echo "${ECHO_T}no" >&6
8291 STRIP="$ac_cv_prog_STRIP"
8296 old_CFLAGS="$CFLAGS"
8298 # Set sane defaults for various variables
8299 test -z "$AR" && AR=ar
8300 test -z "$AR_FLAGS" && AR_FLAGS=cru
8301 test -z "$AS" && AS=as
8302 test -z "$CC" && CC=cc
8303 test -z "$LTCC" && LTCC=$CC
8304 test -z "$DLLTOOL" && DLLTOOL=dlltool
8305 test -z "$LD" && LD=ld
8306 test -z "$LN_S" && LN_S="ln -s"
8307 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8308 test -z "$NM" && NM=nm
8309 test -z "$SED" && SED=sed
8310 test -z "$OBJDUMP" && OBJDUMP=objdump
8311 test -z "$RANLIB" && RANLIB=:
8312 test -z "$STRIP" && STRIP=:
8313 test -z "$ac_objext" && ac_objext=o
8315 # Determine commands to create old-style static archives.
8316 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8317 old_postinstall_cmds='chmod 644 $oldlib'
8318 old_postuninstall_cmds=
8320 if test -n "$RANLIB"; then
8323 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8326 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8329 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8332 for cc_temp in $compiler""; do
8334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8340 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8343 # Only perform the check for file, if the check method requires it
8344 case $deplibs_check_method in
8346 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8347 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8348 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8357 lt_save_MAGIC_CMD="$MAGIC_CMD"
8358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8360 for ac_dir in $ac_dummy; do
8362 test -z "$ac_dir" && ac_dir=.
8363 if test -f $ac_dir/${ac_tool_prefix}file; then
8364 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8365 if test -n "$file_magic_test_file"; then
8366 case $deplibs_check_method in
8368 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8371 $EGREP "$file_magic_regex" > /dev/null; then
8376 *** Warning: the command libtool uses to detect shared libraries,
8377 *** $file_magic_cmd, produces output that libtool cannot recognize.
8378 *** The result is that libtool may fail to recognize shared libraries
8379 *** as such. This will affect the creation of libtool libraries that
8380 *** depend on shared libraries, but programs linked with such libtool
8381 *** libraries will work regardless of this problem. Nevertheless, you
8382 *** may want to report the problem to your system manager and/or to
8383 *** bug-libtool@gnu.org
8393 MAGIC_CMD="$lt_save_MAGIC_CMD"
8398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8399 if test -n "$MAGIC_CMD"; then
8400 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8401 echo "${ECHO_T}$MAGIC_CMD" >&6
8403 echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6
8407 if test -z "$lt_cv_path_MAGIC_CMD"; then
8408 if test -n "$ac_tool_prefix"; then
8409 echo "$as_me:$LINENO: checking for file" >&5
8410 echo $ECHO_N "checking for file... $ECHO_C" >&6
8411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8419 lt_save_MAGIC_CMD="$MAGIC_CMD"
8420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8422 for ac_dir in $ac_dummy; do
8424 test -z "$ac_dir" && ac_dir=.
8425 if test -f $ac_dir/file; then
8426 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8427 if test -n "$file_magic_test_file"; then
8428 case $deplibs_check_method in
8430 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8433 $EGREP "$file_magic_regex" > /dev/null; then
8438 *** Warning: the command libtool uses to detect shared libraries,
8439 *** $file_magic_cmd, produces output that libtool cannot recognize.
8440 *** The result is that libtool may fail to recognize shared libraries
8441 *** as such. This will affect the creation of libtool libraries that
8442 *** depend on shared libraries, but programs linked with such libtool
8443 *** libraries will work regardless of this problem. Nevertheless, you
8444 *** may want to report the problem to your system manager and/or to
8445 *** bug-libtool@gnu.org
8455 MAGIC_CMD="$lt_save_MAGIC_CMD"
8460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8461 if test -n "$MAGIC_CMD"; then
8462 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8463 echo "${ECHO_T}$MAGIC_CMD" >&6
8465 echo "$as_me:$LINENO: result: no" >&5
8466 echo "${ECHO_T}no" >&6
8479 enable_win32_dll=yes
8481 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8482 if test "${enable_libtool_lock+set}" = set; then
8483 enableval="$enable_libtool_lock"
8486 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8489 # Check whether --with-pic or --without-pic was given.
8490 if test "${with_pic+set}" = set; then
8496 test -z "$pic_mode" && pic_mode=default
8498 # Use C for the default configuration in the libtool script
8502 ac_cpp='$CPP $CPPFLAGS'
8503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8508 # Source file extension for C test sources.
8511 # Object file extension for compiled C test sources.
8515 # Code to be used in simple compile tests
8516 lt_simple_compile_test_code="int some_variable = 0;\n"
8518 # Code to be used in simple link tests
8519 lt_simple_link_test_code='int main(){return(0);}\n'
8522 # If no C compiler was specified, use CC.
8525 # Allow CC to be a program name with arguments.
8529 # save warnings/boilerplate of simple test code
8530 ac_outfile=conftest.$ac_objext
8531 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8533 _lt_compiler_boilerplate=`cat conftest.err`
8536 ac_outfile=conftest.$ac_objext
8537 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8539 _lt_linker_boilerplate=`cat conftest.err`
8544 # Check for any special shared library compilation flags.
8547 if test "$GCC" = no; then
8550 lt_prog_cc_shlib='-belf'
8554 if test -n "$lt_prog_cc_shlib"; then
8555 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8556 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8557 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8559 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8560 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8561 lt_cv_prog_cc_can_build_shared=no
8567 # Check to make sure the static flag actually works.
8569 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8570 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8571 if test "${lt_prog_compiler_static_works+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 lt_prog_compiler_static_works=no
8575 save_LDFLAGS="$LDFLAGS"
8576 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8577 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8579 # The compiler can only warn and ignore the option if not recognized
8580 # So say no if there are warnings
8581 if test -s conftest.err; then
8582 # Append any errors to the config.log.
8583 cat conftest.err 1>&5
8584 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8585 $SED '/^$/d' conftest.err >conftest.er2
8586 if diff conftest.exp conftest.er2 >/dev/null; then
8587 lt_prog_compiler_static_works=yes
8590 lt_prog_compiler_static_works=yes
8594 LDFLAGS="$save_LDFLAGS"
8597 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8598 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8600 if test x"$lt_prog_compiler_static_works" = xyes; then
8603 lt_prog_compiler_static=
8609 lt_prog_compiler_no_builtin_flag=
8611 if test "$GCC" = yes; then
8612 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8615 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8616 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8617 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 lt_cv_prog_compiler_rtti_exceptions=no
8621 ac_outfile=conftest.$ac_objext
8622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8623 lt_compiler_flag="-fno-rtti -fno-exceptions"
8624 # Insert the option either (1) after the last *FLAGS variable, or
8625 # (2) before a word containing "conftest.", or (3) at the end.
8626 # Note that $ac_compile itself does not contain backslashes and begins
8627 # with a dollar sign (not a hyphen), so the echo should work correctly.
8628 # The option is referenced via a variable to avoid confusing sed.
8629 lt_compile=`echo "$ac_compile" | $SED \
8630 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632 -e 's:$: $lt_compiler_flag:'`
8633 (eval echo "\"\$as_me:8633: $lt_compile\"" >&5)
8634 (eval "$lt_compile" 2>conftest.err)
8636 cat conftest.err >&5
8637 echo "$as_me:8637: \$? = $ac_status" >&5
8638 if (exit $ac_status) && test -s "$ac_outfile"; then
8639 # The compiler can only warn and ignore the option if not recognized
8640 # So say no if there are warnings other than the usual output.
8641 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8642 $SED '/^$/d' conftest.err >conftest.er2
8643 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8644 lt_cv_prog_compiler_rtti_exceptions=yes
8650 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8651 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8653 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8654 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8661 lt_prog_compiler_wl=
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_static=
8665 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8666 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8668 if test "$GCC" = yes; then
8669 lt_prog_compiler_wl='-Wl,'
8670 lt_prog_compiler_static='-static'
8674 # All AIX code is PIC.
8675 if test "$host_cpu" = ia64; then
8676 # AIX 5 now supports IA64 processor
8677 lt_prog_compiler_static='-Bstatic'
8682 # FIXME: we need at least 68020 code to build shared libraries, but
8683 # adding the `-m68020' flag to GCC prevents building anything better,
8685 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8688 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8689 # PIC is the default for these OSes.
8692 mingw* | pw32* | os2*)
8693 # This hack is so that the source file can tell whether it is being
8694 # built for inclusion in a dll (and should export symbols for example).
8695 lt_prog_compiler_pic='-DDLL_EXPORT'
8698 darwin* | rhapsody*)
8699 # PIC is the default on this platform
8700 # Common symbols not allowed in MH_DYLIB files
8701 lt_prog_compiler_pic='-fno-common'
8705 # Just because we use GCC doesn't mean we suddenly get shared libraries
8706 # on systems that don't support them.
8707 lt_prog_compiler_can_build_shared=no
8712 if test -d /usr/nec; then
8713 lt_prog_compiler_pic=-Kconform_pic
8718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8725 lt_prog_compiler_pic='-fPIC'
8731 lt_prog_compiler_pic='-fPIC'
8735 # PORTME Check for flag to pass linker flags through the system compiler.
8738 lt_prog_compiler_wl='-Wl,'
8739 if test "$host_cpu" = ia64; then
8740 # AIX 5 now supports IA64 processor
8741 lt_prog_compiler_static='-Bstatic'
8743 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8747 # PIC is the default on this platform
8748 # Common symbols not allowed in MH_DYLIB files
8749 case $cc_basename in
8751 lt_prog_compiler_pic='-qnocommon'
8752 lt_prog_compiler_wl='-Wl,'
8757 mingw* | pw32* | os2*)
8758 # This hack is so that the source file can tell whether it is being
8759 # built for inclusion in a dll (and should export symbols for example).
8760 lt_prog_compiler_pic='-DDLL_EXPORT'
8763 hpux9* | hpux10* | hpux11*)
8764 lt_prog_compiler_wl='-Wl,'
8765 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8772 lt_prog_compiler_pic='+Z'
8775 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8776 lt_prog_compiler_static='${wl}-a ${wl}archive'
8779 irix5* | irix6* | nonstopux*)
8780 lt_prog_compiler_wl='-Wl,'
8781 # PIC (with -KPIC) is the default.
8782 lt_prog_compiler_static='-non_shared'
8786 lt_prog_compiler_pic='-KPIC'
8787 lt_prog_compiler_static='-Bstatic'
8791 case $cc_basename in
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-static'
8797 pgcc* | pgf77* | pgf90*)
8798 # Portland Group compilers (*not* the Pentium gcc compiler,
8799 # which looks to be a dead project)
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_pic='-fpic'
8802 lt_prog_compiler_static='-static'
8805 lt_prog_compiler_wl='-Wl,'
8806 # All Alpha code is PIC.
8807 lt_prog_compiler_static='-non_shared'
8812 osf3* | osf4* | osf5*)
8813 lt_prog_compiler_wl='-Wl,'
8814 # All OSF/1 code is PIC.
8815 lt_prog_compiler_static='-non_shared'
8819 lt_prog_compiler_pic='-Kpic'
8820 lt_prog_compiler_static='-dn'
8824 lt_prog_compiler_pic='-KPIC'
8825 lt_prog_compiler_static='-Bstatic'
8826 case $cc_basename in
8828 lt_prog_compiler_wl='-Qoption ld ';;
8830 lt_prog_compiler_wl='-Wl,';;
8835 lt_prog_compiler_wl='-Qoption ld '
8836 lt_prog_compiler_pic='-PIC'
8837 lt_prog_compiler_static='-Bstatic'
8840 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='-KPIC'
8843 lt_prog_compiler_static='-Bstatic'
8847 if test -d /usr/nec ;then
8848 lt_prog_compiler_pic='-Kconform_pic'
8849 lt_prog_compiler_static='-Bstatic'
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_can_build_shared=no
8859 lt_prog_compiler_pic='-pic'
8860 lt_prog_compiler_static='-Bstatic'
8864 lt_prog_compiler_can_build_shared=no
8869 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8870 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8873 # Check to make sure the PIC flag actually works.
8875 if test -n "$lt_prog_compiler_pic"; then
8877 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8878 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8879 if test "${lt_prog_compiler_pic_works+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 lt_prog_compiler_pic_works=no
8883 ac_outfile=conftest.$ac_objext
8884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8885 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8886 # Insert the option either (1) after the last *FLAGS variable, or
8887 # (2) before a word containing "conftest.", or (3) at the end.
8888 # Note that $ac_compile itself does not contain backslashes and begins
8889 # with a dollar sign (not a hyphen), so the echo should work correctly.
8890 # The option is referenced via a variable to avoid confusing sed.
8891 lt_compile=`echo "$ac_compile" | $SED \
8892 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8894 -e 's:$: $lt_compiler_flag:'`
8895 (eval echo "\"\$as_me:8895: $lt_compile\"" >&5)
8896 (eval "$lt_compile" 2>conftest.err)
8898 cat conftest.err >&5
8899 echo "$as_me:8899: \$? = $ac_status" >&5
8900 if (exit $ac_status) && test -s "$ac_outfile"; then
8901 # The compiler can only warn and ignore the option if not recognized
8902 # So say no if there are warnings other than the usual output.
8903 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8904 $SED '/^$/d' conftest.err >conftest.er2
8905 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8906 lt_prog_compiler_pic_works=yes
8912 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8913 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8915 if test x"$lt_prog_compiler_pic_works" = xyes; then
8916 case $lt_prog_compiler_pic in
8918 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8921 lt_prog_compiler_pic=
8922 lt_prog_compiler_can_build_shared=no
8927 # For platforms which do not support PIC, -DPIC is meaningless:
8929 lt_prog_compiler_pic=
8932 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8936 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8937 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8938 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 lt_cv_prog_compiler_c_o=no
8942 $rm -r conftest 2>/dev/null
8946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8948 lt_compiler_flag="-o out/conftest2.$ac_objext"
8949 # Insert the option either (1) after the last *FLAGS variable, or
8950 # (2) before a word containing "conftest.", or (3) at the end.
8951 # Note that $ac_compile itself does not contain backslashes and begins
8952 # with a dollar sign (not a hyphen), so the echo should work correctly.
8953 lt_compile=`echo "$ac_compile" | $SED \
8954 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8956 -e 's:$: $lt_compiler_flag:'`
8957 (eval echo "\"\$as_me:8957: $lt_compile\"" >&5)
8958 (eval "$lt_compile" 2>out/conftest.err)
8960 cat out/conftest.err >&5
8961 echo "$as_me:8961: \$? = $ac_status" >&5
8962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8964 # The compiler can only warn and ignore the option if not recognized
8965 # So say no if there are warnings
8966 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8967 $SED '/^$/d' out/conftest.err >out/conftest.er2
8968 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8969 lt_cv_prog_compiler_c_o=yes
8974 # SGI C++ compiler will create directory out/ii_files/ for
8975 # template instantiation
8976 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8977 $rm out/* && rmdir out
8983 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8984 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8987 hard_links="nottested"
8988 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8989 # do not overwrite the value of need_locks provided by the user
8990 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8991 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8996 ln conftest.a conftest.b 2>&5 || hard_links=no
8997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8998 echo "$as_me:$LINENO: result: $hard_links" >&5
8999 echo "${ECHO_T}$hard_links" >&6
9000 if test "$hard_links" = no; then
9001 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9002 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9009 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9013 allow_undefined_flag=
9014 enable_shared_with_static_runtimes=no
9016 archive_expsym_cmds=
9017 old_archive_From_new_cmds=
9018 old_archive_from_expsyms_cmds=
9019 export_dynamic_flag_spec=
9020 whole_archive_flag_spec=
9021 thread_safe_flag_spec=
9022 hardcode_libdir_flag_spec=
9023 hardcode_libdir_flag_spec_ld=
9024 hardcode_libdir_separator=
9027 hardcode_shlibpath_var=unsupported
9028 link_all_deplibs=unknown
9029 hardcode_automatic=no
9032 always_export_symbols=no
9033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9034 # include_expsyms should be a list of space-separated symbols to be *always*
9035 # included in the symbol list
9037 # exclude_expsyms can be an extended regexp of symbols to exclude
9038 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9040 # as well as any symbol that contains `d'.
9041 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9043 # platforms (ab)use it in PIC code, but their linkers get confused if
9044 # the symbol is explicitly referenced. Since portable code cannot
9045 # rely on this symbol name, it's probably fine to never include it in
9046 # preloaded symbol tables.
9047 extract_expsyms_cmds=
9048 # Just being paranoid about ensuring that cc_basename is set.
9049 for cc_temp in $compiler""; do
9051 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9052 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9057 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9060 cygwin* | mingw* | pw32*)
9061 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9062 # When not using gcc, we currently assume that we are using
9063 # Microsoft Visual C++.
9064 if test "$GCC" != yes; then
9074 if test "$with_gnu_ld" = yes; then
9075 # If archive_cmds runs LD, not CC, wlarc should be empty
9078 # Set some defaults for GNU ld with shared library support. These
9079 # are reset later if shared libraries are not supported. Putting them
9080 # here allows them to be overridden if necessary.
9081 runpath_var=LD_RUN_PATH
9082 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9083 export_dynamic_flag_spec='${wl}--export-dynamic'
9084 # ancient GNU ld didn't support --whole-archive et. al.
9085 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9086 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9088 whole_archive_flag_spec=
9090 supports_anon_versioning=no
9091 case `$LD -v 2>/dev/null` in
9092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9095 *\ 2.11.*) ;; # other 2.11 versions
9096 *) supports_anon_versioning=yes ;;
9099 # See if GNU ld supports shared libraries.
9101 aix3* | aix4* | aix5*)
9102 # On AIX/PPC, the GNU linker is very broken
9103 if test "$host_cpu" != ia64; then
9107 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9108 *** to be unable to reliably create shared libraries on AIX.
9109 *** Therefore, libtool is disabling shared libraries support. If you
9110 *** really care for shared libraries, you may want to modify your PATH
9111 *** so that a non-GNU linker is found, and then restart.
9118 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)'
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_minus_L=yes
9122 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9123 # that the semantics of dynamic libraries on AmigaOS, at least up
9124 # to version 4, is to share data among multiple programs linked
9125 # with the same dynamic library. Since this doesn't match the
9126 # behavior of shared libraries on other platforms, we can't use
9132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9133 allow_undefined_flag=unsupported
9134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9135 # support --undefined. This deserves some investigation. FIXME
9136 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 cygwin* | mingw* | pw32*)
9143 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9144 # as there is no search path for DLLs.
9145 hardcode_libdir_flag_spec='-L$libdir'
9146 allow_undefined_flag=unsupported
9147 always_export_symbols=no
9148 enable_shared_with_static_runtimes=yes
9149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9151 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9153 # If the export-symbols file already is a .def file (1st line
9154 # is EXPORTS), use it as is; otherwise, prepend...
9155 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9156 cp $export_symbols $output_objdir/$soname.def;
9158 echo EXPORTS > $output_objdir/$soname.def;
9159 cat $export_symbols >> $output_objdir/$soname.def;
9161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9170 case $cc_basename,$host_cpu in
9171 pgcc*) # Portland Group C compiler
9172 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'
9173 tmp_addflag=' $pic_flag'
9175 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9176 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'
9177 tmp_addflag=' $pic_flag -Mnomain' ;;
9178 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9179 tmp_addflag=' -i_dynamic' ;;
9180 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9181 tmp_addflag=' -i_dynamic -nofor_main' ;;
9182 ifc* | ifort*) # Intel Fortran compiler
9183 tmp_addflag=' -nofor_main' ;;
9185 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187 if test $supports_anon_versioning = yes; then
9188 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9190 $echo "local: *; };" >> $output_objdir/$libname.ver~
9191 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9209 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9214 *** create shared libraries on Solaris systems. Therefore, libtool
9215 *** is disabling shared libraries support. We urge you to upgrade GNU
9216 *** binutils to release 2.9.1 or newer. Another option is to modify
9217 *** your PATH or compiler configuration so that the native linker is
9218 *** used, and then restart.
9221 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9230 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9233 hardcode_shlibpath_var=no
9237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9246 if test "$ld_shlibs" = no; then
9248 hardcode_libdir_flag_spec=
9249 export_dynamic_flag_spec=
9250 whole_archive_flag_spec=
9253 # PORTME fill in a description of your system's linker (not GNU ld)
9256 allow_undefined_flag=unsupported
9257 always_export_symbols=yes
9258 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'
9259 # Note: this linker hardcodes the directories in LIBPATH if there
9260 # are no directories specified by -L.
9261 hardcode_minus_L=yes
9262 if test "$GCC" = yes && test -z "$link_static_flag"; then
9263 # Neither direct hardcoding nor static linking is supported with a
9265 hardcode_direct=unsupported
9270 if test "$host_cpu" = ia64; then
9271 # On IA64, the linker does run time linking by default, so we don't
9272 # have to do anything special.
9273 aix_use_runtimelinking=no
9274 exp_sym_flag='-Bexport'
9277 # If we're using GNU nm, then we don't want the "-C" option.
9278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9279 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9280 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'
9282 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'
9284 aix_use_runtimelinking=no
9286 # Test if we are trying to use run time linking or normal
9287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9288 # need to do runtime linking.
9289 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9290 for ld_flag in $LDFLAGS; do
9291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9292 aix_use_runtimelinking=yes
9298 exp_sym_flag='-bexport'
9299 no_entry_flag='-bnoentry'
9302 # When large executables or shared objects are built, AIX ld can
9303 # have problems creating the table of contents. If linking a library
9304 # or program results in "error TOC overflow" add -mminimal-toc to
9305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9310 hardcode_libdir_separator=':'
9311 link_all_deplibs=yes
9313 if test "$GCC" = yes; then
9314 case $host_os in aix4.[012]|aix4.[012].*)
9315 # We only want to do this on AIX 4.2 and lower, the check
9316 # below for broken collect2 doesn't work under 4.3+
9317 collect2name=`${CC} -print-prog-name=collect2`
9318 if test -f "$collect2name" && \
9319 strings "$collect2name" | grep resolve_lib_name >/dev/null
9321 # We have reworked collect2
9324 # We have old collect2
9325 hardcode_direct=unsupported
9326 # It fails to find uninstalled libraries when the uninstalled
9327 # path is not listed in the libpath. Setting hardcode_minus_L
9328 # to unsupported forces relinking
9329 hardcode_minus_L=yes
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_libdir_separator=
9334 shared_flag='-shared'
9335 if test "$aix_use_runtimelinking" = yes; then
9336 shared_flag="$shared_flag "'${wl}-G'
9340 if test "$host_cpu" = ia64; then
9341 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9342 # chokes on -Wl,-G. The following line is correct:
9345 if test "$aix_use_runtimelinking" = yes; then
9346 shared_flag='${wl}-G'
9348 shared_flag='${wl}-bM:SRE'
9353 # It seems that -bexpall does not export symbols beginning with
9354 # underscore (_), so it is better to generate a list of symbols to export.
9355 always_export_symbols=yes
9356 if test "$aix_use_runtimelinking" = yes; then
9357 # Warning - without using the other runtime loading flags (-brtl),
9358 # -berok will link without error, but may produce a broken library.
9359 allow_undefined_flag='-berok'
9360 # Determine the default libpath from the value encoded in an empty executable.
9361 cat >conftest.$ac_ext <<_ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>conftest.er1
9380 grep -v '^ *+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9401 # Check for a 64-bit object if we didn't find anything.
9402 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; }
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9409 rm -f conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9413 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9414 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"
9416 if test "$host_cpu" = ia64; then
9417 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9418 allow_undefined_flag="-z nodefs"
9419 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"
9421 # Determine the default libpath from the value encoded in an empty executable.
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>conftest.er1
9441 grep -v '^ *+' conftest.er1 >conftest.err
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag"
9447 || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try='test -s conftest$ac_exeext'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9462 # Check for a 64-bit object if we didn't find anything.
9463 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; }
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9470 rm -f conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9475 # Warning - without using the other run time loading flags,
9476 # -berok will link without error, but may produce a broken library.
9477 no_undefined_flag=' ${wl}-bernotok'
9478 allow_undefined_flag=' ${wl}-berok'
9479 # -bexpall does not export symbols beginning with underscore (_)
9480 always_export_symbols=yes
9481 # Exported symbols can be pulled into shared objects from archives
9482 whole_archive_flag_spec=' '
9483 archive_cmds_need_lc=yes
9484 # This is similar to how AIX traditionally builds it's shared libraries.
9485 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'
9491 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)'
9492 hardcode_libdir_flag_spec='-L$libdir'
9493 hardcode_minus_L=yes
9494 # see comment about different semantics on the GNU ld section
9499 export_dynamic_flag_spec=-rdynamic
9502 cygwin* | mingw* | pw32*)
9503 # When not using gcc, we currently assume that we are using
9504 # Microsoft Visual C++.
9505 # hardcode_libdir_flag_spec is actually meaningless, as there is
9506 # no search path for DLLs.
9507 hardcode_libdir_flag_spec=' '
9508 allow_undefined_flag=unsupported
9509 # Tell ltmain to make .lib files, not .a files.
9511 # Tell ltmain to make .dll files, not .so files.
9513 # FIXME: Setting linknames here is a bad hack.
9514 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9515 # The linker will automatically build a .lib file if we build a DLL.
9516 old_archive_From_new_cmds='true'
9517 # FIXME: Should let the user specify the lib program.
9518 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9519 fix_srcfile_path='`cygpath -w "$srcfile"`'
9520 enable_shared_with_static_runtimes=yes
9523 darwin* | rhapsody*)
9525 rhapsody* | darwin1.[012])
9526 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9529 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9530 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9532 case ${MACOSX_DEPLOYMENT_TARGET} in
9534 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9537 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9543 archive_cmds_need_lc=no
9545 hardcode_automatic=yes
9546 hardcode_shlibpath_var=unsupported
9547 whole_archive_flag_spec=''
9548 link_all_deplibs=yes
9549 if test "$GCC" = yes ; then
9550 output_verbose_link_cmd='echo'
9551 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9552 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9554 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}'
9555 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}'
9557 case $cc_basename in
9559 output_verbose_link_cmd='echo'
9560 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9561 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9563 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}'
9564 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}'
9574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_libdir_flag_spec='-L$libdir'
9576 hardcode_shlibpath_var=no
9583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9584 # support. Future versions do this automatically, but an explicit c++rt0.o
9585 # does not break anything, and helps significantly (at the cost of a little
9588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9589 hardcode_libdir_flag_spec='-R$libdir'
9591 hardcode_shlibpath_var=no
9594 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_minus_L=yes
9599 hardcode_shlibpath_var=no
9602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9603 freebsd* | kfreebsd*-gnu | dragonfly*)
9604 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9605 hardcode_libdir_flag_spec='-R$libdir'
9607 hardcode_shlibpath_var=no
9611 if test "$GCC" = yes; then
9612 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'
9614 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'
9616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9617 hardcode_libdir_separator=:
9620 # hardcode_minus_L: Not really in the search PATH,
9621 # but as the default location of the library.
9622 hardcode_minus_L=yes
9623 export_dynamic_flag_spec='${wl}-E'
9627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9630 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9639 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9646 if test "$with_gnu_ld" = no; then
9649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9650 hardcode_libdir_flag_spec_ld='+b $libdir'
9651 hardcode_libdir_separator=:
9653 hardcode_shlibpath_var=no
9656 hardcode_libdir_flag_spec='-L$libdir'
9658 hardcode_shlibpath_var=no
9660 # hardcode_minus_L: Not really in the search PATH,
9661 # but as the default location of the library.
9662 hardcode_minus_L=yes
9665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9666 hardcode_libdir_separator=:
9668 export_dynamic_flag_spec='${wl}-E'
9670 # hardcode_minus_L: Not really in the search PATH,
9671 # but as the default location of the library.
9672 hardcode_minus_L=yes
9678 irix5* | irix6* | nonstopux*)
9679 if test "$GCC" = yes; then
9680 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'
9682 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'
9683 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686 hardcode_libdir_separator=:
9687 link_all_deplibs=yes
9691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9694 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9696 hardcode_libdir_flag_spec='-R$libdir'
9698 hardcode_shlibpath_var=no
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9705 hardcode_libdir_separator=:
9706 hardcode_shlibpath_var=no
9711 hardcode_shlibpath_var=no
9712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9716 export_dynamic_flag_spec='${wl}-E'
9719 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_libdir_flag_spec='-R$libdir'
9724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9732 hardcode_libdir_flag_spec='-L$libdir'
9733 hardcode_minus_L=yes
9734 allow_undefined_flag=unsupported
9735 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'
9736 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9740 if test "$GCC" = yes; then
9741 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9742 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'
9744 allow_undefined_flag=' -expect_unresolved \*'
9745 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'
9747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9748 hardcode_libdir_separator=:
9751 osf4* | osf5*) # as osf3* with the addition of -msym flag
9752 if test "$GCC" = yes; then
9753 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9754 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'
9755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9757 allow_undefined_flag=' -expect_unresolved \*'
9758 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'
9759 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9760 $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'
9762 # Both c and cxx compiler support -rpath directly
9763 hardcode_libdir_flag_spec='-rpath $libdir'
9765 hardcode_libdir_separator=:
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_shlibpath_var=no
9771 export_dynamic_flag_spec='${wl}-Bexport'
9772 runpath_var=LD_RUN_PATH
9773 hardcode_runpath_var=yes
9777 no_undefined_flag=' -z text'
9778 if test "$GCC" = yes; then
9780 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9782 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9785 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9787 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9789 hardcode_libdir_flag_spec='-R$libdir'
9790 hardcode_shlibpath_var=no
9792 solaris2.[0-5] | solaris2.[0-5].*) ;;
9794 # The compiler driver will combine linker options so we
9795 # cannot just pass the convience library names through
9796 # without $wl, iff we do not link with $LD.
9797 # Luckily, gcc supports the same syntax we need for Sun Studio.
9798 # Supported since Solaris 2.6 (maybe 2.5.1?)
9801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9803 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' ;;
9806 link_all_deplibs=yes
9810 if test "x$host_vendor" = xsequent; then
9811 # Use $CC to link under sequent, because it throws in some extra .o
9812 # files that make .init and .fini sections work.
9813 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_libdir_flag_spec='-L$libdir'
9819 hardcode_minus_L=yes
9820 hardcode_shlibpath_var=no
9824 case $host_vendor in
9826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827 hardcode_direct=yes # is this really true???
9830 ## LD is ld it makes a PLAMLIB
9831 ## CC just makes a GrossModule.
9832 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9833 reload_cmds='$CC -r -o $output$reload_objs'
9837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9841 runpath_var='LD_RUN_PATH'
9842 hardcode_shlibpath_var=no
9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_shlibpath_var=no
9848 export_dynamic_flag_spec='-Bexport'
9852 if test -d /usr/nec; then
9853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854 hardcode_shlibpath_var=no
9855 runpath_var=LD_RUN_PATH
9856 hardcode_runpath_var=yes
9862 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9865 hardcode_shlibpath_var=no
9866 hardcode_runpath_var=yes
9867 runpath_var=LD_RUN_PATH
9870 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9871 no_undefined_flag='${wl}-z ${wl}text'
9872 if test "$GCC" = yes; then
9873 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9875 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 runpath_var='LD_RUN_PATH'
9878 hardcode_shlibpath_var=no
9882 no_undefined_flag=' -z text'
9883 # $CC -shared without GNU ld will not create a library from C++
9884 # object files and a static libstdc++, better avoid it by now
9885 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9887 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9888 hardcode_libdir_flag_spec=
9889 hardcode_shlibpath_var=no
9890 runpath_var='LD_RUN_PATH'
9894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_libdir_flag_spec='-L$libdir'
9896 hardcode_shlibpath_var=no
9905 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9906 echo "${ECHO_T}$ld_shlibs" >&6
9907 test "$ld_shlibs" = no && can_build_shared=no
9909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9910 if test "$GCC" = yes; then
9911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9915 # Do we need to explicitly link libc?
9917 case "x$archive_cmds_need_lc" in
9919 # Assume -lc should be added
9920 archive_cmds_need_lc=yes
9922 if test "$enable_shared" = yes && test "$GCC" = yes; then
9923 case $archive_cmds in
9925 # FIXME: we may have to deal with multi-command sequences.
9928 # Test whether the compiler implicitly links with -lc since on some
9929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9930 # to ld, don't add -lc before -lgcc.
9931 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } 2>conftest.err; then
9943 libobjs=conftest.$ac_objext
9945 wl=$lt_prog_compiler_wl
9951 lt_save_allow_undefined_flag=$allow_undefined_flag
9952 allow_undefined_flag=
9953 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9954 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }
9959 archive_cmds_need_lc=no
9961 archive_cmds_need_lc=yes
9963 allow_undefined_flag=$lt_save_allow_undefined_flag
9965 cat conftest.err 1>&5
9968 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9969 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9976 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9977 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9979 libname_spec='lib$name'
9987 shlibpath_overrides_runpath=unknown
9989 dynamic_linker="$host_os ld.so"
9990 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9991 if test "$GCC" = yes; then
9992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9993 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9994 # if the path contains ";" then we assume it to be the separator
9995 # otherwise default to the standard path separator (i.e. ":") - it is
9996 # assumed that no part of a normal pathname contains ";" but that should
9997 # okay in the real world where ";" in dirpaths is itself problematic.
9998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10005 need_lib_prefix=unknown
10006 hardcode_into_libs=no
10008 # when you set need_version to no, make sure it does not cause -set_version
10009 # flags to be left without arguments
10010 need_version=unknown
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10016 shlibpath_var=LIBPATH
10018 # AIX 3 has no versioning support, so we append a major version to the name.
10019 soname_spec='${libname}${release}${shared_ext}$major'
10026 hardcode_into_libs=yes
10027 if test "$host_cpu" = ia64; then
10028 # AIX 5 supports IA64
10029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10030 shlibpath_var=LD_LIBRARY_PATH
10032 # With GCC up to 2.95.x, collect2 would create an import file
10033 # for dependence libraries. The import file would start with
10034 # the line `#! .'. This would cause the generated library to
10035 # depend on `.', always an invalid library. This was fixed in
10036 # development snapshots of GCC prior to 3.0.
10038 aix4 | aix4.[01] | aix4.[01].*)
10039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10041 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10044 can_build_shared=no
10048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10049 # soname into executable. Probably we can add versioning support to
10050 # collect2, so additional links can be useful in future.
10051 if test "$aix_use_runtimelinking" = yes; then
10052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10053 # instead of lib<name>.a to let people know that these are not
10054 # typical AIX shared libraries.
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057 # We preserve .a as extension for shared libraries through AIX4.2
10058 # and later when we are not doing run time linking.
10059 library_names_spec='${libname}${release}.a $libname.a'
10060 soname_spec='${libname}${release}${shared_ext}$major'
10062 shlibpath_var=LIBPATH
10067 library_names_spec='$libname.ixlibrary $libname.a'
10068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10069 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'
10073 library_names_spec='${libname}${shared_ext}'
10074 dynamic_linker="$host_os ld.so"
10075 shlibpath_var=LIBRARY_PATH
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10087 # the default ld.so.conf also contains /usr/contrib/lib and
10088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10089 # libtool to hard-code these into programs
10092 cygwin* | mingw* | pw32*)
10093 version_type=windows
10098 case $GCC,$host_os in
10099 yes,cygwin* | yes,mingw* | yes,pw32*)
10100 library_names_spec='$libname.dll.a'
10101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10102 postinstall_cmds='base_file=`basename \${file}`~
10103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10104 dldir=$destdir/`dirname \$dlpath`~
10105 test -d \$dldir || mkdir -p \$dldir~
10106 $install_prog $dir/$dlname \$dldir/$dlname'
10107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10108 dlpath=$dir/\$dldll~
10110 shlibpath_overrides_runpath=yes
10114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10119 # MinGW DLLs use traditional 'lib' prefix
10120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10123 # It is most probably a Windows format PATH printed by
10124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10125 # path with ; separators, and with drive letters. We can handle the
10126 # drive letters (cygwin fileutils understands them), so leave them,
10127 # especially as we might pass files found there to a mingw objdump,
10128 # which wouldn't understand a cygwinified path. Ahh.
10129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10135 # pw32 DLLs use 'pw' prefix rather than 'lib'
10136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10145 dynamic_linker='Win32 ld.exe'
10146 # FIXME: first we should search . and the directory the executable is in
10150 darwin* | rhapsody*)
10151 dynamic_linker="$host_os dyld"
10152 version_type=darwin
10155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10156 soname_spec='${libname}${release}${major}$shared_ext'
10157 shlibpath_overrides_runpath=yes
10158 shlibpath_var=DYLD_LIBRARY_PATH
10159 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10161 if test "$GCC" = yes; then
10162 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"`
10164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 shlibpath_var=LD_LIBRARY_PATH
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 shlibpath_var=LD_LIBRARY_PATH
10189 shlibpath_overrides_runpath=no
10190 hardcode_into_libs=yes
10191 dynamic_linker='GNU ld.so'
10194 freebsd* | dragonfly*)
10195 # DragonFly does not have aout. When/if they implement a new
10196 # versioning mechanism, adjust this.
10197 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10198 version_type=freebsd-$objformat
10199 case $version_type in
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10210 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=yes
10215 freebsd3.[01]* | freebsdelf3.[01]*)
10216 shlibpath_overrides_runpath=yes
10217 hardcode_into_libs=yes
10220 shlibpath_overrides_runpath=no
10221 hardcode_into_libs=yes
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 hardcode_into_libs=yes
10236 hpux9* | hpux10* | hpux11*)
10237 # Give a soname corresponding to the major version so that dld.sl refuses to
10238 # link against other versions.
10242 case "$host_cpu" in
10245 hardcode_into_libs=yes
10246 dynamic_linker="$host_os dld.so"
10247 shlibpath_var=LD_LIBRARY_PATH
10248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 if test "X$HPUX_IA64_MODE" = X32; then
10252 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10254 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10260 hardcode_into_libs=yes
10261 dynamic_linker="$host_os dld.sl"
10262 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10271 dynamic_linker="$host_os dld.sl"
10272 shlibpath_var=SHLIB_PATH
10273 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10278 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10279 postinstall_cmds='chmod 555 $lib'
10282 irix5* | irix6* | nonstopux*)
10284 nonstopux*) version_type=nonstopux ;;
10286 if test "$lt_cv_prog_gnu_ld" = yes; then
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10297 irix5* | nonstopux*)
10298 libsuff= shlibsuff=
10301 case $LD in # libtool.m4 will add one of these switches to LD
10302 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10303 libsuff= shlibsuff= libmagic=32-bit;;
10304 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10305 libsuff=32 shlibsuff=N32 libmagic=N32;;
10306 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10307 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10308 *) libsuff= shlibsuff= libmagic=never-match;;
10312 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10313 shlibpath_overrides_runpath=no
10314 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10315 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10316 hardcode_into_libs=yes
10319 # No shared lib support for Linux oldld, aout, or coff.
10320 linux*oldld* | linux*aout* | linux*coff*)
10324 # This must be Linux ELF.
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=no
10334 # This implies no fast_install, which is unacceptable.
10335 # Some rework will be needed to allow for fast_install
10336 # before this can be enabled.
10337 hardcode_into_libs=yes
10339 # Append ld.so.conf contents to the search path
10340 if test -f /etc/ld.so.conf; then
10341 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' ' '`
10342 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10345 # We used to test for /lib/ld.so.1 and disable shared libraries on
10346 # powerpc, because MkLinux only supported shared libraries with the
10347 # GNU dynamic linker. Since this was broken with cross compilers,
10348 # most powerpc-linux boxes support dynamic linking these days and
10349 # people can always --disable-shared, the test was removed, and we
10350 # assume the GNU/Linux dynamic linker is in use.
10351 dynamic_linker='GNU/Linux ld.so'
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=no
10362 hardcode_into_libs=yes
10363 dynamic_linker='GNU ld.so'
10370 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10373 dynamic_linker='NetBSD (a.out) ld.so'
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 dynamic_linker='NetBSD ld.elf_so'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes
10381 hardcode_into_libs=yes
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=yes
10404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10406 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10407 *) need_version=no ;;
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10414 openbsd2.[89] | openbsd2.[89].*)
10415 shlibpath_overrides_runpath=no
10418 shlibpath_overrides_runpath=yes
10422 shlibpath_overrides_runpath=yes
10427 libname_spec='$name'
10430 library_names_spec='$libname${shared_ext} $libname.a'
10431 dynamic_linker='OS/2 ld.exe'
10432 shlibpath_var=LIBPATH
10435 osf3* | osf4* | osf5*)
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 shlibpath_var=LD_LIBRARY_PATH
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath=yes
10461 hardcode_into_libs=yes
10462 # ldd complains unless libraries are executable
10463 postinstall_cmds='chmod +x $lib'
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=yes
10472 if test "$with_gnu_ld" = yes; then
10478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 case $host_vendor in
10485 shlibpath_overrides_runpath=no
10487 export_dynamic_flag_spec='${wl}-Blargedynsym'
10488 runpath_var=LD_RUN_PATH
10496 shlibpath_overrides_runpath=no
10497 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10503 if test -d /usr/nec ;then
10505 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10506 soname_spec='$libname${shared_ext}.$major'
10507 shlibpath_var=LD_LIBRARY_PATH
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10522 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10523 echo "${ECHO_T}$dynamic_linker" >&6
10524 test "$dynamic_linker" = no && can_build_shared=no
10526 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10527 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10529 if test -n "$hardcode_libdir_flag_spec" || \
10530 test -n "$runpath_var" || \
10531 test "X$hardcode_automatic" = "Xyes" ; then
10533 # We can hardcode non-existant directories.
10534 if test "$hardcode_direct" != no &&
10535 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10536 # have to relink, otherwise we might link with an installed library
10537 # when we should be linking with a yet-to-be-installed one
10538 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10539 test "$hardcode_minus_L" != no; then
10540 # Linking always hardcodes the temporary library directory.
10541 hardcode_action=relink
10543 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10544 hardcode_action=immediate
10547 # We cannot hardcode anything, or else we can only hardcode existing
10549 hardcode_action=unsupported
10551 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10552 echo "${ECHO_T}$hardcode_action" >&6
10554 if test "$hardcode_action" = relink; then
10555 # Fast installation is not supported
10556 enable_fast_install=no
10557 elif test "$shlibpath_overrides_runpath" = yes ||
10558 test "$enable_shared" = no; then
10559 # Fast installation is not necessary
10560 enable_fast_install=needless
10565 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10566 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10567 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10568 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10569 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10570 echo "$as_me:$LINENO: result: yes" >&5
10571 echo "${ECHO_T}yes" >&6
10573 # FIXME - insert some real tests, host_os isn't really good enough
10576 if test -n "$STRIP" ; then
10577 striplib="$STRIP -x"
10578 echo "$as_me:$LINENO: result: yes" >&5
10579 echo "${ECHO_T}yes" >&6
10581 echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10586 echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6
10592 if test "x$enable_dlopen" != xyes; then
10593 enable_dlopen=unknown
10594 enable_dlopen_self=unknown
10595 enable_dlopen_self_static=unknown
10602 lt_cv_dlopen="load_add_on"
10604 lt_cv_dlopen_self=yes
10608 lt_cv_dlopen="LoadLibrary"
10613 lt_cv_dlopen="dlopen"
10618 # if libdl is installed we need to link against it
10619 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 ac_check_lib_save_LIBS=$LIBS
10626 cat >conftest.$ac_ext <<_ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10633 /* Override any gcc2 internal prototype to avoid an error. */
10637 /* We use char because int might match the return type of a gcc2
10638 builtin and then its argument prototype would still apply. */
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650 (eval $ac_link) 2>conftest.er1
10652 grep -v '^ *+' conftest.er1 >conftest.err
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } &&
10657 { ac_try='test -z "$ac_c_werror_flag"
10658 || test ! -s conftest.err'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_cv_lib_dl_dlopen=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_lib_dl_dlopen=no
10677 rm -f conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10679 LIBS=$ac_check_lib_save_LIBS
10681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10683 if test $ac_cv_lib_dl_dlopen = yes; then
10684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10687 lt_cv_dlopen="dyld"
10689 lt_cv_dlopen_self=yes
10696 echo "$as_me:$LINENO: checking for shl_load" >&5
10697 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10698 if test "${ac_cv_func_shl_load+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 cat >conftest.$ac_ext <<_ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10709 #define shl_load innocuous_shl_load
10711 /* System header to define __stub macros and hopefully few prototypes,
10712 which can conflict with char shl_load (); below.
10713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10714 <limits.h> exists even on freestanding compilers. */
10717 # include <limits.h>
10719 # include <assert.h>
10724 /* Override any gcc2 internal prototype to avoid an error. */
10729 /* We use char because int might match the return type of a gcc2
10730 builtin and then its argument prototype would still apply. */
10732 /* The GNU C library defines this for functions which it implements
10733 to always fail with ENOSYS. Some functions are actually named
10734 something starting with __ and the normal name is an alias. */
10735 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10738 char (*f) () = shl_load;
10747 return f != shl_load;
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10754 (eval $ac_link) 2>conftest.er1
10756 grep -v '^ *+' conftest.er1 >conftest.err
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -z "$ac_c_werror_flag"
10762 || test ! -s conftest.err'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest$ac_exeext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_func_shl_load=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ac_cv_func_shl_load=no
10781 rm -f conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10784 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10785 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10786 if test $ac_cv_func_shl_load = yes; then
10787 lt_cv_dlopen="shl_load"
10789 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 ac_check_lib_save_LIBS=$LIBS
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10803 /* Override any gcc2 internal prototype to avoid an error. */
10807 /* We use char because int might match the return type of a gcc2
10808 builtin and then its argument prototype would still apply. */
10818 rm -f conftest.$ac_objext conftest$ac_exeext
10819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10820 (eval $ac_link) 2>conftest.er1
10822 grep -v '^ *+' conftest.er1 >conftest.err
10824 cat conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try='test -z "$ac_c_werror_flag"
10828 || test ! -s conftest.err'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; } &&
10834 { ac_try='test -s conftest$ac_exeext'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; }; then
10840 ac_cv_lib_dld_shl_load=yes
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10845 ac_cv_lib_dld_shl_load=no
10847 rm -f conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10851 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10852 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10853 if test $ac_cv_lib_dld_shl_load = yes; then
10854 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10856 echo "$as_me:$LINENO: checking for dlopen" >&5
10857 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10858 if test "${ac_cv_func_dlopen+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10869 #define dlopen innocuous_dlopen
10871 /* System header to define __stub macros and hopefully few prototypes,
10872 which can conflict with char dlopen (); below.
10873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10874 <limits.h> exists even on freestanding compilers. */
10877 # include <limits.h>
10879 # include <assert.h>
10884 /* Override any gcc2 internal prototype to avoid an error. */
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10892 /* The GNU C library defines this for functions which it implements
10893 to always fail with ENOSYS. Some functions are actually named
10894 something starting with __ and the normal name is an alias. */
10895 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10898 char (*f) () = dlopen;
10907 return f != dlopen;
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>conftest.er1
10916 grep -v '^ *+' conftest.er1 >conftest.err
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag"
10922 || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest$ac_exeext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 ac_cv_func_dlopen=yes
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_cv_func_dlopen=no
10941 rm -f conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
10944 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10945 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10946 if test $ac_cv_func_dlopen = yes; then
10947 lt_cv_dlopen="dlopen"
10949 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 ac_check_lib_save_LIBS=$LIBS
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10963 /* Override any gcc2 internal prototype to avoid an error. */
10967 /* We use char because int might match the return type of a gcc2
10968 builtin and then its argument prototype would still apply. */
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980 (eval $ac_link) 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_c_werror_flag"
10988 || test ! -s conftest.err'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest$ac_exeext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 ac_cv_lib_dl_dlopen=yes
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 ac_cv_lib_dl_dlopen=no
11007 rm -f conftest.err conftest.$ac_objext \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11011 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11012 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11013 if test $ac_cv_lib_dl_dlopen = yes; then
11014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11016 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11017 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-lsvld $LIBS"
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11030 /* Override any gcc2 internal prototype to avoid an error. */
11034 /* We use char because int might match the return type of a gcc2
11035 builtin and then its argument prototype would still apply. */
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047 (eval $ac_link) 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -z "$ac_c_werror_flag"
11055 || test ! -s conftest.err'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_cv_lib_svld_dlopen=yes
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 ac_cv_lib_svld_dlopen=no
11074 rm -f conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11078 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11079 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11080 if test $ac_cv_lib_svld_dlopen = yes; then
11081 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11083 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11084 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11085 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 ac_check_lib_save_LIBS=$LIBS
11090 cat >conftest.$ac_ext <<_ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11097 /* Override any gcc2 internal prototype to avoid an error. */
11101 /* We use char because int might match the return type of a gcc2
11102 builtin and then its argument prototype would still apply. */
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>conftest.er1
11116 grep -v '^ *+' conftest.er1 >conftest.err
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try='test -z "$ac_c_werror_flag"
11122 || test ! -s conftest.err'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest$ac_exeext'
11129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 ac_cv_lib_dld_dld_link=yes
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 ac_cv_lib_dld_dld_link=no
11141 rm -f conftest.err conftest.$ac_objext \
11142 conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11145 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11146 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11147 if test $ac_cv_lib_dld_dld_link = yes; then
11148 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11169 if test "x$lt_cv_dlopen" != xno; then
11175 case $lt_cv_dlopen in
11177 save_CPPFLAGS="$CPPFLAGS"
11178 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11180 save_LDFLAGS="$LDFLAGS"
11181 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11184 LIBS="$lt_cv_dlopen_libs $LIBS"
11186 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11187 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11188 if test "${lt_cv_dlopen_self+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 if test "$cross_compiling" = yes; then :
11192 lt_cv_dlopen_self=cross
11194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11195 lt_status=$lt_dlunknown
11196 cat > conftest.$ac_ext <<EOF
11197 #line 11197 "configure"
11198 #include "confdefs.h"
11207 # define LT_DLGLOBAL RTLD_GLOBAL
11210 # define LT_DLGLOBAL DL_GLOBAL
11212 # define LT_DLGLOBAL 0
11216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11217 find out it does not work in some platform. */
11218 #ifndef LT_DLLAZY_OR_NOW
11220 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11223 # define LT_DLLAZY_OR_NOW DL_LAZY
11226 # define LT_DLLAZY_OR_NOW RTLD_NOW
11229 # define LT_DLLAZY_OR_NOW DL_NOW
11231 # define LT_DLLAZY_OR_NOW 0
11239 extern "C" void exit (int);
11242 void fnord() { int i=42;}
11245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11246 int status = $lt_dlunknown;
11250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11251 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11252 /* dlclose (self); */
11258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259 (eval $ac_link) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11263 (./conftest; exit; ) 2>/dev/null
11265 case x$lt_status in
11266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11268 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11271 # compilation failed
11272 lt_cv_dlopen_self=no
11279 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11280 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11282 if test "x$lt_cv_dlopen_self" = xyes; then
11283 LDFLAGS="$LDFLAGS $link_static_flag"
11284 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11285 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11286 if test "${lt_cv_dlopen_self_static+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 if test "$cross_compiling" = yes; then :
11290 lt_cv_dlopen_self_static=cross
11292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11293 lt_status=$lt_dlunknown
11294 cat > conftest.$ac_ext <<EOF
11295 #line 11295 "configure"
11296 #include "confdefs.h"
11305 # define LT_DLGLOBAL RTLD_GLOBAL
11308 # define LT_DLGLOBAL DL_GLOBAL
11310 # define LT_DLGLOBAL 0
11314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11315 find out it does not work in some platform. */
11316 #ifndef LT_DLLAZY_OR_NOW
11318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11321 # define LT_DLLAZY_OR_NOW DL_LAZY
11324 # define LT_DLLAZY_OR_NOW RTLD_NOW
11327 # define LT_DLLAZY_OR_NOW DL_NOW
11329 # define LT_DLLAZY_OR_NOW 0
11337 extern "C" void exit (int);
11340 void fnord() { int i=42;}
11343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11344 int status = $lt_dlunknown;
11348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11350 /* dlclose (self); */
11356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11357 (eval $ac_link) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11361 (./conftest; exit; ) 2>/dev/null
11363 case x$lt_status in
11364 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11365 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11366 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11369 # compilation failed
11370 lt_cv_dlopen_self_static=no
11377 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11378 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11381 CPPFLAGS="$save_CPPFLAGS"
11382 LDFLAGS="$save_LDFLAGS"
11387 case $lt_cv_dlopen_self in
11388 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11389 *) enable_dlopen_self=unknown ;;
11392 case $lt_cv_dlopen_self_static in
11393 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11394 *) enable_dlopen_self_static=unknown ;;
11399 # Report which librarie types wil actually be built
11400 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11401 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11402 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11403 echo "${ECHO_T}$can_build_shared" >&6
11405 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11406 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11407 test "$can_build_shared" = "no" && enable_shared=no
11409 # On AIX, shared libraries and static libraries use the same namespace, and
11410 # are all built from PIC.
11413 test "$enable_shared" = yes && enable_static=no
11414 if test -n "$RANLIB"; then
11415 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11416 postinstall_cmds='$RANLIB $lib'
11421 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11422 test "$enable_shared" = yes && enable_static=no
11426 echo "$as_me:$LINENO: result: $enable_shared" >&5
11427 echo "${ECHO_T}$enable_shared" >&6
11429 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11430 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11431 # Make sure either enable_shared or enable_static is yes.
11432 test "$enable_shared" = yes || enable_static=yes
11433 echo "$as_me:$LINENO: result: $enable_static" >&5
11434 echo "${ECHO_T}$enable_static" >&6
11436 # The else clause should only fire when bootstrapping the
11437 # libtool distribution, otherwise you forgot to ship ltmain.sh
11438 # with your package, and you will get complaints that there are
11439 # no rules to generate ltmain.sh.
11440 if test -f "$ltmain"; then
11441 # See if we are running on zsh, and set the options which allow our commands through
11442 # without removal of \ escapes.
11443 if test -n "${ZSH_VERSION+set}" ; then
11444 setopt NO_GLOB_SUBST
11446 # Now quote all the things that may contain metacharacters while being
11447 # careful not to overquote the AC_SUBSTed values. We take copies of the
11448 # variables and quote the copies for generation of the libtool script.
11449 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11451 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11452 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11453 deplibs_check_method reload_flag reload_cmds need_locks \
11454 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11455 lt_cv_sys_global_symbol_to_c_name_address \
11456 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11457 old_postinstall_cmds old_postuninstall_cmds \
11461 lt_prog_compiler_wl \
11462 lt_prog_compiler_pic \
11463 lt_prog_compiler_static \
11464 lt_prog_compiler_no_builtin_flag \
11465 export_dynamic_flag_spec \
11466 thread_safe_flag_spec \
11467 whole_archive_flag_spec \
11468 enable_shared_with_static_runtimes \
11470 old_archive_from_new_cmds \
11475 compiler_lib_search_path \
11477 archive_expsym_cmds \
11479 postuninstall_cmds \
11480 old_archive_from_expsyms_cmds \
11481 allow_undefined_flag \
11482 no_undefined_flag \
11483 export_symbols_cmds \
11484 hardcode_libdir_flag_spec \
11485 hardcode_libdir_flag_spec_ld \
11486 hardcode_libdir_separator \
11487 hardcode_automatic \
11489 module_expsym_cmds \
11490 lt_cv_prog_compiler_c_o \
11492 include_expsyms; do
11495 old_archive_cmds | \
11496 old_archive_from_new_cmds | \
11498 archive_expsym_cmds | \
11500 module_expsym_cmds | \
11501 old_archive_from_expsyms_cmds | \
11502 export_symbols_cmds | \
11503 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11504 postinstall_cmds | postuninstall_cmds | \
11505 old_postinstall_cmds | old_postuninstall_cmds | \
11506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11507 # Double-quote double-evaled strings.
11508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11517 *'\$0 --fallback-echo"')
11518 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11522 cfgfile="${ofile}T"
11523 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11525 { echo "$as_me:$LINENO: creating $ofile" >&5
11526 echo "$as_me: creating $ofile" >&6;}
11528 cat <<__EOF__ >> "$cfgfile"
11531 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11532 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11533 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11535 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11536 # Free Software Foundation, Inc.
11538 # This file is part of GNU Libtool:
11539 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11541 # This program is free software; you can redistribute it and/or modify
11542 # it under the terms of the GNU General Public License as published by
11543 # the Free Software Foundation; either version 2 of the License, or
11544 # (at your option) any later version.
11546 # This program is distributed in the hope that it will be useful, but
11547 # WITHOUT ANY WARRANTY; without even the implied warranty of
11548 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11549 # General Public License for more details.
11551 # You should have received a copy of the GNU General Public License
11552 # along with this program; if not, write to the Free Software
11553 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11555 # As a special exception to the GNU General Public License, if you
11556 # distribute this file as part of a program that contains a
11557 # configuration script generated by Autoconf, you may include it under
11558 # the same distribution terms that you use for the rest of that program.
11560 # A sed program that does not truncate output.
11563 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11564 Xsed="$SED -e 1s/^X//"
11566 # The HP-UX ksh and POSIX shell print the target directory to stdout
11567 # if CDPATH is set.
11568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11570 # The names of the tagged configurations supported by this script.
11573 # ### BEGIN LIBTOOL CONFIG
11575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11577 # Shell to use when invoking shell scripts.
11580 # Whether or not to build shared libraries.
11581 build_libtool_libs=$enable_shared
11583 # Whether or not to build static libraries.
11584 build_old_libs=$enable_static
11586 # Whether or not to add -lc for building shared libraries.
11587 build_libtool_need_lc=$archive_cmds_need_lc
11589 # Whether or not to disallow shared libs when runtime libs are static
11590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11592 # Whether or not to optimize for fast installation.
11593 fast_install=$enable_fast_install
11596 host_alias=$host_alias
11600 # The build system.
11601 build_alias=$build_alias
11605 # An echo program that does not interpret backslashes.
11610 AR_FLAGS=$lt_AR_FLAGS
11615 # A language-specific compiler.
11618 # Is the compiler the GNU C compiler?
11624 # The linker used to build libraries.
11627 # Whether we need hard or soft links.
11630 # A BSD-compatible nm program.
11633 # A symbol stripping program
11636 # Used to examine libraries when file_magic_cmd begins "file"
11637 MAGIC_CMD=$MAGIC_CMD
11639 # Used on cygwin: DLL creation program.
11642 # Used on cygwin: object dumper.
11645 # Used on cygwin: assembler.
11648 # The name of the directory that contains temporary libtool files.
11651 # How to create reloadable object files.
11652 reload_flag=$lt_reload_flag
11653 reload_cmds=$lt_reload_cmds
11655 # How to pass a linker flag through the compiler.
11656 wl=$lt_lt_prog_compiler_wl
11658 # Object file suffix (normally "o").
11659 objext="$ac_objext"
11661 # Old archive suffix (normally "a").
11664 # Shared library suffix (normally ".so").
11665 shrext_cmds='$shrext_cmds'
11667 # Executable file suffix (normally "").
11670 # Additional compiler flags for building library objects.
11671 pic_flag=$lt_lt_prog_compiler_pic
11674 # What is the maximum length of a command?
11675 max_cmd_len=$lt_cv_sys_max_cmd_len
11677 # Does compiler simultaneously support -c and -o options?
11678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11680 # Must we lock files when doing compilation?
11681 need_locks=$lt_need_locks
11683 # Do we need the lib prefix for modules?
11684 need_lib_prefix=$need_lib_prefix
11686 # Do we need a version for libraries?
11687 need_version=$need_version
11689 # Whether dlopen is supported.
11690 dlopen_support=$enable_dlopen
11692 # Whether dlopen of programs is supported.
11693 dlopen_self=$enable_dlopen_self
11695 # Whether dlopen of statically linked programs is supported.
11696 dlopen_self_static=$enable_dlopen_self_static
11698 # Compiler flag to prevent dynamic linking.
11699 link_static_flag=$lt_lt_prog_compiler_static
11701 # Compiler flag to turn off builtin functions.
11702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11704 # Compiler flag to allow reflexive dlopens.
11705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11707 # Compiler flag to generate shared objects directly from archives.
11708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11710 # Compiler flag to generate thread-safe objects.
11711 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11713 # Library versioning type.
11714 version_type=$version_type
11716 # Format of library name prefix.
11717 libname_spec=$lt_libname_spec
11719 # List of archive names. First name is the real one, the rest are links.
11720 # The last name is the one that the linker finds with -lNAME.
11721 library_names_spec=$lt_library_names_spec
11723 # The coded name of the library, if different from the real name.
11724 soname_spec=$lt_soname_spec
11726 # Commands used to build and install an old-style archive.
11728 old_archive_cmds=$lt_old_archive_cmds
11729 old_postinstall_cmds=$lt_old_postinstall_cmds
11730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11732 # Create an old-style archive from a shared archive.
11733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11735 # Create a temporary old-style archive to link instead of a shared archive.
11736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11738 # Commands used to build and install a shared archive.
11739 archive_cmds=$lt_archive_cmds
11740 archive_expsym_cmds=$lt_archive_expsym_cmds
11741 postinstall_cmds=$lt_postinstall_cmds
11742 postuninstall_cmds=$lt_postuninstall_cmds
11744 # Commands used to build a loadable module (assumed same as above if empty)
11745 module_cmds=$lt_module_cmds
11746 module_expsym_cmds=$lt_module_expsym_cmds
11748 # Commands to strip libraries.
11749 old_striplib=$lt_old_striplib
11750 striplib=$lt_striplib
11752 # Dependencies to place before the objects being linked to create a
11754 predep_objects=$lt_predep_objects
11756 # Dependencies to place after the objects being linked to create a
11758 postdep_objects=$lt_postdep_objects
11760 # Dependencies to place before the objects being linked to create a
11762 predeps=$lt_predeps
11764 # Dependencies to place after the objects being linked to create a
11766 postdeps=$lt_postdeps
11768 # The library search path used internally by the compiler when linking
11769 # a shared library.
11770 compiler_lib_search_path=$lt_compiler_lib_search_path
11772 # Method to check whether dependent libraries are shared objects.
11773 deplibs_check_method=$lt_deplibs_check_method
11775 # Command to use when deplibs_check_method == file_magic.
11776 file_magic_cmd=$lt_file_magic_cmd
11778 # Flag that allows shared libraries with undefined symbols to be built.
11779 allow_undefined_flag=$lt_allow_undefined_flag
11781 # Flag that forces no undefined symbols.
11782 no_undefined_flag=$lt_no_undefined_flag
11784 # Commands used to finish a libtool library installation in a directory.
11785 finish_cmds=$lt_finish_cmds
11787 # Same as above, but a single script fragment to be evaled but not shown.
11788 finish_eval=$lt_finish_eval
11790 # Take the output of nm and produce a listing of raw symbols and C names.
11791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11793 # Transform the output of nm in a proper C declaration
11794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11796 # Transform the output of nm in a C name address pair
11797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11799 # This is the shared library runtime path variable.
11800 runpath_var=$runpath_var
11802 # This is the shared library path variable.
11803 shlibpath_var=$shlibpath_var
11805 # Is shlibpath searched before the hard-coded library search path?
11806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11808 # How to hardcode a shared library path into an executable.
11809 hardcode_action=$hardcode_action
11811 # Whether we should hardcode library paths into libraries.
11812 hardcode_into_libs=$hardcode_into_libs
11814 # Flag to hardcode \$libdir into a binary during linking.
11815 # This must work even if \$libdir does not exist.
11816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11818 # If ld is used when linking, flag to hardcode \$libdir into
11819 # a binary during linking. This must work even if \$libdir does
11821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11823 # Whether we need a single -rpath flag with a separated argument.
11824 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11827 # resulting binary.
11828 hardcode_direct=$hardcode_direct
11830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11831 # resulting binary.
11832 hardcode_minus_L=$hardcode_minus_L
11834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11835 # the resulting binary.
11836 hardcode_shlibpath_var=$hardcode_shlibpath_var
11838 # Set to yes if building a shared library automatically hardcodes DIR into the library
11839 # and all subsequent libraries and executables linked against it.
11840 hardcode_automatic=$hardcode_automatic
11842 # Variables whose values should be saved in libtool wrapper scripts and
11843 # restored at relink time.
11844 variables_saved_for_relink="$variables_saved_for_relink"
11846 # Whether libtool must link a program against all its dependency libraries.
11847 link_all_deplibs=$link_all_deplibs
11849 # Compile-time system search path for libraries
11850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11852 # Run-time system search path for libraries
11853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11855 # Fix the shell variable \$srcfile for the compiler.
11856 fix_srcfile_path="$fix_srcfile_path"
11858 # Set to yes if exported symbols are required.
11859 always_export_symbols=$always_export_symbols
11861 # The commands to list exported symbols.
11862 export_symbols_cmds=$lt_export_symbols_cmds
11864 # The commands to extract the exported symbol list from a shared archive.
11865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11867 # Symbols that should not be listed in the preloaded symbols.
11868 exclude_expsyms=$lt_exclude_expsyms
11870 # Symbols that must always be exported.
11871 include_expsyms=$lt_include_expsyms
11873 # ### END LIBTOOL CONFIG
11880 cat <<\EOF >> "$cfgfile"
11882 # AIX sometimes has problems with the GCC collect2 program. For some
11883 # reason, if we set the COLLECT_NAMES environment variable, the problems
11884 # vanish in a puff of smoke.
11885 if test "X${COLLECT_NAMES+set}" != Xset; then
11887 export COLLECT_NAMES
11893 # We use sed instead of cat because bash on DJGPP gets confused if
11894 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11895 # text mode, it properly converts lines to CR/LF. This bash problem
11896 # is reportedly fixed, but why not run on old versions too?
11897 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11899 mv -f "$cfgfile" "$ofile" || \
11900 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11904 # If there is no Makefile yet, we rely on a make rule to execute
11905 # `config.status --recheck' to rerun these tests and create the
11906 # libtool script then.
11907 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11908 if test -f "$ltmain_in"; then
11909 test -f Makefile && make "$ltmain"
11915 ac_cpp='$CPP $CPPFLAGS'
11916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11923 # Check whether --with-tags or --without-tags was given.
11924 if test "${with_tags+set}" = set; then
11925 withval="$with_tags"
11926 tagnames="$withval"
11929 if test -f "$ltmain" && test -n "$tagnames"; then
11930 if test ! -f "${ofile}"; then
11931 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11932 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11935 if test -z "$LTCC"; then
11936 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11937 if test -z "$LTCC"; then
11938 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11939 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11942 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11946 # Extract list of available tagged configurations in $ofile.
11947 # Note that this assumes the entire list is on one line.
11948 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11951 for tagname in $tagnames; do
11953 # Check whether tagname contains only valid characters
11954 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11956 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11957 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11958 { (exit 1); exit 1; }; }
11962 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11964 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11965 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11966 { (exit 1); exit 1; }; }
11969 # Update the list of available tags.
11970 if test -n "$tagname"; then
11971 echo appending configuration tag \"$tagname\" to $ofile
11975 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11976 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11977 (test "X$CXX" != "Xg++"))) ; then
11979 ac_cpp='$CXXCPP $CPPFLAGS'
11980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11987 archive_cmds_need_lc_CXX=no
11988 allow_undefined_flag_CXX=
11989 always_export_symbols_CXX=no
11990 archive_expsym_cmds_CXX=
11991 export_dynamic_flag_spec_CXX=
11992 hardcode_direct_CXX=no
11993 hardcode_libdir_flag_spec_CXX=
11994 hardcode_libdir_flag_spec_ld_CXX=
11995 hardcode_libdir_separator_CXX=
11996 hardcode_minus_L_CXX=no
11997 hardcode_automatic_CXX=no
11999 module_expsym_cmds_CXX=
12000 link_all_deplibs_CXX=unknown
12001 old_archive_cmds_CXX=$old_archive_cmds
12002 no_undefined_flag_CXX=
12003 whole_archive_flag_spec_CXX=
12004 enable_shared_with_static_runtimes_CXX=no
12006 # Dependencies to place before and after the object being linked:
12007 predep_objects_CXX=
12008 postdep_objects_CXX=
12011 compiler_lib_search_path_CXX=
12013 # Source file extension for C++ test sources.
12016 # Object file extension for compiled C++ test sources.
12020 # Code to be used in simple compile tests
12021 lt_simple_compile_test_code="int some_variable = 0;\n"
12023 # Code to be used in simple link tests
12024 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12026 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12028 # If no C compiler was specified, use CC.
12031 # Allow CC to be a program name with arguments.
12035 # save warnings/boilerplate of simple test code
12036 ac_outfile=conftest.$ac_objext
12037 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12038 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12039 _lt_compiler_boilerplate=`cat conftest.err`
12042 ac_outfile=conftest.$ac_objext
12043 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12044 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12045 _lt_linker_boilerplate=`cat conftest.err`
12049 # Allow CC to be a program name with arguments.
12054 lt_save_with_gnu_ld=$with_gnu_ld
12055 lt_save_path_LD=$lt_cv_path_LD
12056 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12057 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12059 unset lt_cv_prog_gnu_ld
12061 if test -n "${lt_cv_path_LDCXX+set}"; then
12062 lt_cv_path_LD=$lt_cv_path_LDCXX
12064 unset lt_cv_path_LD
12066 test -z "${LDCXX+set}" || LD=$LDCXX
12070 for cc_temp in $compiler""; do
12072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12078 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12081 # We don't want -fno-exception wen compiling C++ code, so set the
12082 # no_builtin_flag separately
12083 if test "$GXX" = yes; then
12084 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12086 lt_prog_compiler_no_builtin_flag_CXX=
12089 if test "$GXX" = yes; then
12090 # Set up default GNU C++ configuration
12093 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12094 if test "${with_gnu_ld+set}" = set; then
12095 withval="$with_gnu_ld"
12096 test "$withval" = no || with_gnu_ld=yes
12101 if test "$GCC" = yes; then
12102 # Check if gcc -print-prog-name=ld gives a path.
12103 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12104 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12107 # gcc leaves a trailing carriage return which upsets mingw
12108 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12110 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12113 # Accept absolute paths.
12115 re_direlt='/[^/][^/]*/\.\./'
12116 # Canonicalize the pathname of ld
12117 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12118 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12119 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12121 test -z "$LD" && LD="$ac_prog"
12124 # If it fails, then pretend we aren't using GCC.
12128 # If it is relative, then search for the first ld in PATH.
12129 with_gnu_ld=unknown
12132 elif test "$with_gnu_ld" = yes; then
12133 echo "$as_me:$LINENO: checking for GNU ld" >&5
12134 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12136 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12137 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12139 if test "${lt_cv_path_LD+set}" = set; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 if test -z "$LD"; then
12143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12144 for ac_dir in $PATH; do
12146 test -z "$ac_dir" && ac_dir=.
12147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12148 lt_cv_path_LD="$ac_dir/$ac_prog"
12149 # Check to see if the program is GNU ld. I'd rather use --version,
12150 # but apparently some GNU ld's only accept -v.
12151 # Break only if it was the GNU/non-GNU ld that we prefer.
12152 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12153 *GNU* | *'with BFD'*)
12154 test "$with_gnu_ld" != no && break
12157 test "$with_gnu_ld" != yes && break
12164 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12168 LD="$lt_cv_path_LD"
12169 if test -n "$LD"; then
12170 echo "$as_me:$LINENO: result: $LD" >&5
12171 echo "${ECHO_T}$LD" >&6
12173 echo "$as_me:$LINENO: result: no" >&5
12174 echo "${ECHO_T}no" >&6
12176 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12177 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12178 { (exit 1); exit 1; }; }
12179 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12180 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12181 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12185 case `$LD -v 2>&1 </dev/null` in
12186 *GNU* | *'with BFD'*)
12187 lt_cv_prog_gnu_ld=yes
12190 lt_cv_prog_gnu_ld=no
12194 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12195 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12196 with_gnu_ld=$lt_cv_prog_gnu_ld
12200 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12201 # archiving commands below assume that GNU ld is being used.
12202 if test "$with_gnu_ld" = yes; then
12203 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12204 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'
12206 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12209 # If archive_cmds runs LD, not CC, wlarc should be empty
12210 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12211 # investigate it a little bit more. (MM)
12214 # ancient GNU ld didn't support --whole-archive et. al.
12215 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12216 grep 'no-whole-archive' > /dev/null; then
12217 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12219 whole_archive_flag_spec_CXX=
12225 # A generic and very simple default shared library creation
12226 # command for GNU C++ for the case where it uses the native
12227 # linker, instead of GNU ld. If possible, this setting should
12228 # overridden to take advantage of the native linker features on
12229 # the platform it is being used on.
12230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12233 # Commands to make compiler produce verbose output that lists
12234 # what "hidden" libraries, object files and flags are used when
12235 # linking a shared library.
12236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12244 # PORTME: fill in a description of your system's C++ link characteristics
12245 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12246 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12250 # FIXME: insert proper C++ library support
12254 if test "$host_cpu" = ia64; then
12255 # On IA64, the linker does run time linking by default, so we don't
12256 # have to do anything special.
12257 aix_use_runtimelinking=no
12258 exp_sym_flag='-Bexport'
12261 aix_use_runtimelinking=no
12263 # Test if we are trying to use run time linking or normal
12264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12265 # need to do runtime linking.
12266 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12267 for ld_flag in $LDFLAGS; do
12270 aix_use_runtimelinking=yes
12277 exp_sym_flag='-bexport'
12278 no_entry_flag='-bnoentry'
12281 # When large executables or shared objects are built, AIX ld can
12282 # have problems creating the table of contents. If linking a library
12283 # or program results in "error TOC overflow" add -mminimal-toc to
12284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12287 archive_cmds_CXX=''
12288 hardcode_direct_CXX=yes
12289 hardcode_libdir_separator_CXX=':'
12290 link_all_deplibs_CXX=yes
12292 if test "$GXX" = yes; then
12293 case $host_os in aix4.[012]|aix4.[012].*)
12294 # We only want to do this on AIX 4.2 and lower, the check
12295 # below for broken collect2 doesn't work under 4.3+
12296 collect2name=`${CC} -print-prog-name=collect2`
12297 if test -f "$collect2name" && \
12298 strings "$collect2name" | grep resolve_lib_name >/dev/null
12300 # We have reworked collect2
12301 hardcode_direct_CXX=yes
12303 # We have old collect2
12304 hardcode_direct_CXX=unsupported
12305 # It fails to find uninstalled libraries when the uninstalled
12306 # path is not listed in the libpath. Setting hardcode_minus_L
12307 # to unsupported forces relinking
12308 hardcode_minus_L_CXX=yes
12309 hardcode_libdir_flag_spec_CXX='-L$libdir'
12310 hardcode_libdir_separator_CXX=
12313 shared_flag='-shared'
12314 if test "$aix_use_runtimelinking" = yes; then
12315 shared_flag="$shared_flag "'${wl}-G'
12319 if test "$host_cpu" = ia64; then
12320 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12321 # chokes on -Wl,-G. The following line is correct:
12324 if test "$aix_use_runtimelinking" = yes; then
12325 shared_flag='${wl}-G'
12327 shared_flag='${wl}-bM:SRE'
12332 # It seems that -bexpall does not export symbols beginning with
12333 # underscore (_), so it is better to generate a list of symbols to export.
12334 always_export_symbols_CXX=yes
12335 if test "$aix_use_runtimelinking" = yes; then
12336 # Warning - without using the other runtime loading flags (-brtl),
12337 # -berok will link without error, but may produce a broken library.
12338 allow_undefined_flag_CXX='-berok'
12339 # Determine the default libpath from the value encoded in an empty executable.
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_cxx_werror_flag"
12365 || test ! -s conftest.err'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12380 # Check for a 64-bit object if we didn't find anything.
12381 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; }
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12388 rm -f conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12392 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12394 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"
12396 if test "$host_cpu" = ia64; then
12397 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12398 allow_undefined_flag_CXX="-z nodefs"
12399 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"
12401 # Determine the default libpath from the value encoded in an empty executable.
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419 (eval $ac_link) 2>conftest.er1
12421 grep -v '^ *+' conftest.er1 >conftest.err
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
12426 { ac_try='test -z "$ac_cxx_werror_flag"
12427 || test ! -s conftest.err'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest$ac_exeext'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12442 # Check for a 64-bit object if we didn't find anything.
12443 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; }
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12450 rm -f conftest.err conftest.$ac_objext \
12451 conftest$ac_exeext conftest.$ac_ext
12452 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12454 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12455 # Warning - without using the other run time loading flags,
12456 # -berok will link without error, but may produce a broken library.
12457 no_undefined_flag_CXX=' ${wl}-bernotok'
12458 allow_undefined_flag_CXX=' ${wl}-berok'
12459 # -bexpall does not export symbols beginning with underscore (_)
12460 always_export_symbols_CXX=yes
12461 # Exported symbols can be pulled into shared objects from archives
12462 whole_archive_flag_spec_CXX=' '
12463 archive_cmds_need_lc_CXX=yes
12464 # This is similar to how AIX traditionally builds it's shared libraries.
12465 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'
12470 case $cc_basename in
12472 # FIXME: insert proper C++ library support
12479 cygwin* | mingw* | pw32*)
12480 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12481 # as there is no search path for DLLs.
12482 hardcode_libdir_flag_spec_CXX='-L$libdir'
12483 allow_undefined_flag_CXX=unsupported
12484 always_export_symbols_CXX=no
12485 enable_shared_with_static_runtimes_CXX=yes
12487 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12488 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'
12489 # If the export-symbols file already is a .def file (1st line
12490 # is EXPORTS), use it as is; otherwise, prepend...
12491 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12492 cp $export_symbols $output_objdir/$soname.def;
12494 echo EXPORTS > $output_objdir/$soname.def;
12495 cat $export_symbols >> $output_objdir/$soname.def;
12497 $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'
12502 darwin* | rhapsody*)
12504 rhapsody* | darwin1.[012])
12505 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12508 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12509 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12511 case ${MACOSX_DEPLOYMENT_TARGET} in
12513 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12516 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12522 archive_cmds_need_lc_CXX=no
12523 hardcode_direct_CXX=no
12524 hardcode_automatic_CXX=yes
12525 hardcode_shlibpath_var_CXX=unsupported
12526 whole_archive_flag_spec_CXX=''
12527 link_all_deplibs_CXX=yes
12529 if test "$GXX" = yes ; then
12530 lt_int_apple_cc_single_mod=no
12531 output_verbose_link_cmd='echo'
12532 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12533 lt_int_apple_cc_single_mod=yes
12535 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12536 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12538 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'
12540 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12541 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12542 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12543 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}'
12545 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}'
12547 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}'
12549 case $cc_basename in
12551 output_verbose_link_cmd='echo'
12552 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'
12553 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12554 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12555 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}'
12556 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}'
12566 case $cc_basename in
12568 # FIXME: insert proper C++ library support
12572 # Green Hills C++ Compiler
12573 # FIXME: insert proper C++ library support
12577 # FIXME: insert proper C++ library support
12583 # C++ shared libraries reported to be fairly broken before switch to ELF
12587 archive_cmds_need_lc_CXX=no
12589 freebsd* | kfreebsd*-gnu | dragonfly*)
12590 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12598 hardcode_libdir_separator_CXX=:
12599 export_dynamic_flag_spec_CXX='${wl}-E'
12600 hardcode_direct_CXX=yes
12601 hardcode_minus_L_CXX=yes # Not in the search PATH,
12602 # but as the default
12603 # location of the library.
12605 case $cc_basename in
12607 # FIXME: insert proper C++ library support
12611 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'
12612 # Commands to make compiler produce verbose output that lists
12613 # what "hidden" libraries, object files and flags are used when
12614 # linking a shared library.
12616 # There doesn't appear to be a way to prevent this compiler from
12617 # explicitly linking system object files so we need to strip them
12618 # from the output so that they don't get included in the library
12620 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'
12623 if test "$GXX" = yes; then
12624 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'
12626 # FIXME: insert proper C++ library support
12633 if test $with_gnu_ld = no; then
12634 case "$host_cpu" in
12636 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12637 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12638 hardcode_libdir_separator_CXX=:
12641 hardcode_libdir_flag_spec_CXX='-L$libdir'
12644 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12645 hardcode_libdir_separator_CXX=:
12646 export_dynamic_flag_spec_CXX='${wl}-E'
12650 case "$host_cpu" in
12652 hardcode_direct_CXX=no
12653 hardcode_shlibpath_var_CXX=no
12656 hardcode_direct_CXX=no
12657 hardcode_shlibpath_var_CXX=no
12658 hardcode_minus_L_CXX=yes # Not in the search PATH,
12659 # but as the default
12660 # location of the library.
12663 hardcode_direct_CXX=yes
12664 hardcode_minus_L_CXX=yes # Not in the search PATH,
12665 # but as the default
12666 # location of the library.
12670 case $cc_basename in
12672 # FIXME: insert proper C++ library support
12676 case "$host_cpu" in
12678 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12681 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12684 # Commands to make compiler produce verbose output that lists
12685 # what "hidden" libraries, object files and flags are used when
12686 # linking a shared library.
12688 # There doesn't appear to be a way to prevent this compiler from
12689 # explicitly linking system object files so we need to strip them
12690 # from the output so that they don't get included in the library
12692 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'
12695 if test "$GXX" = yes; then
12696 if test $with_gnu_ld = no; then
12697 case "$host_cpu" in
12699 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12702 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'
12707 # FIXME: insert proper C++ library support
12714 case $cc_basename in
12717 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'
12719 # Archives containing C++ object files must be created using
12720 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12721 # necessary to make sure instantiated templates are included
12723 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12726 if test "$GXX" = yes; then
12727 if test "$with_gnu_ld" = no; then
12728 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'
12730 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'
12733 link_all_deplibs_CXX=yes
12736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12737 hardcode_libdir_separator_CXX=:
12740 case $cc_basename in
12742 # Kuck and Associates, Inc. (KAI) C++ Compiler
12744 # KCC will only create a shared library if the output file
12745 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12746 # to its proper name (with version) after linking.
12747 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12748 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'
12749 # Commands to make compiler produce verbose output that lists
12750 # what "hidden" libraries, object files and flags are used when
12751 # linking a shared library.
12753 # There doesn't appear to be a way to prevent this compiler from
12754 # explicitly linking system object files so we need to strip them
12755 # from the output so that they don't get included in the library
12757 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'
12759 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12762 # Archives containing C++ object files must be created using
12763 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12764 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12769 # version 8.0 and above of icpc choke on multiply defined symbols
12770 # if we add $predep_objects and $postdep_objects, however 7.1 and
12771 # earlier do not add the objects themselves.
12772 case `$CC -V 2>&1` in
12774 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12775 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'
12777 *) # Version 8.0 or newer
12780 ia64*) tmp_idyn=' -i_dynamic';;
12782 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12783 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'
12786 archive_cmds_need_lc_CXX=no
12787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12789 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12792 # Portland Group C++ compiler
12793 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12794 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'
12796 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12798 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'
12802 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803 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'
12805 runpath_var=LD_RUN_PATH
12806 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12807 hardcode_libdir_separator_CXX=:
12809 # Commands to make compiler produce verbose output that lists
12810 # what "hidden" libraries, object files and flags are used when
12811 # linking a shared library.
12813 # There doesn't appear to be a way to prevent this compiler from
12814 # explicitly linking system object files so we need to strip them
12815 # from the output so that they don't get included in the library
12817 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'
12822 # FIXME: insert proper C++ library support
12826 # FIXME: insert proper C++ library support
12830 case $cc_basename in
12832 # FIXME: insert proper C++ library support
12836 # FIXME: insert proper C++ library support
12842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12843 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12845 hardcode_libdir_flag_spec_CXX='-R$libdir'
12846 hardcode_direct_CXX=yes
12847 hardcode_shlibpath_var_CXX=no
12849 # Workaround some broken pre-1.5 toolchains
12850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12853 # C++ shared libraries are fairly broken
12857 hardcode_direct_CXX=yes
12858 hardcode_shlibpath_var_CXX=no
12859 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12862 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12863 export_dynamic_flag_spec_CXX='${wl}-E'
12864 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12866 output_verbose_link_cmd='echo'
12869 case $cc_basename in
12871 # Kuck and Associates, Inc. (KAI) C++ Compiler
12873 # KCC will only create a shared library if the output file
12874 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12875 # to its proper name (with version) after linking.
12876 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'
12878 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12879 hardcode_libdir_separator_CXX=:
12881 # Archives containing C++ object files must be created using
12882 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12883 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12887 # Rational C++ 2.4.1
12888 # FIXME: insert proper C++ library support
12892 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12893 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'
12895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12896 hardcode_libdir_separator_CXX=:
12898 # Commands to make compiler produce verbose output that lists
12899 # what "hidden" libraries, object files and flags are used when
12900 # linking a shared library.
12902 # There doesn't appear to be a way to prevent this compiler from
12903 # explicitly linking system object files so we need to strip them
12904 # from the output so that they don't get included in the library
12906 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'
12909 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12910 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12911 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'
12913 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12914 hardcode_libdir_separator_CXX=:
12916 # Commands to make compiler produce verbose output that lists
12917 # what "hidden" libraries, object files and flags are used when
12918 # linking a shared library.
12919 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12922 # FIXME: insert proper C++ library support
12929 case $cc_basename in
12931 # Kuck and Associates, Inc. (KAI) C++ Compiler
12933 # KCC will only create a shared library if the output file
12934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12935 # to its proper name (with version) after linking.
12936 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'
12938 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12939 hardcode_libdir_separator_CXX=:
12941 # Archives containing C++ object files must be created using
12942 # the KAI C++ compiler.
12943 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12946 # Rational C++ 2.4.1
12947 # FIXME: insert proper C++ library support
12951 allow_undefined_flag_CXX=' -expect_unresolved \*'
12952 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'
12953 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12954 echo "-hidden">> $lib.exp~
12955 $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~
12958 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12959 hardcode_libdir_separator_CXX=:
12961 # Commands to make compiler produce verbose output that lists
12962 # what "hidden" libraries, object files and flags are used when
12963 # linking a shared library.
12965 # There doesn't appear to be a way to prevent this compiler from
12966 # explicitly linking system object files so we need to strip them
12967 # from the output so that they don't get included in the library
12969 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'
12972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12973 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12974 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'
12976 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12977 hardcode_libdir_separator_CXX=:
12979 # Commands to make compiler produce verbose output that lists
12980 # what "hidden" libraries, object files and flags are used when
12981 # linking a shared library.
12982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12985 # FIXME: insert proper C++ library support
12992 # FIXME: insert proper C++ library support
12996 archive_cmds_need_lc_CXX=no
12997 case $cc_basename in
12999 # FIXME: insert proper C++ library support
13003 # FIXME: insert proper C++ library support
13009 case $cc_basename in
13012 # FIXME: insert proper C++ library support
13017 # FIXME: insert proper C++ library support
13021 # FIXME: insert proper C++ library support
13027 case $cc_basename in
13029 # Sun C++ 4.2, 5.x and Centerline C++
13030 no_undefined_flag_CXX=' -zdefs'
13031 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13033 $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'
13035 hardcode_libdir_flag_spec_CXX='-R$libdir'
13036 hardcode_shlibpath_var_CXX=no
13038 solaris2.[0-5] | solaris2.[0-5].*) ;;
13040 # The C++ compiler is used as linker so we must use $wl
13041 # flag to pass the commands to the underlying system
13042 # linker. We must also pass each convience library through
13043 # to the system linker between allextract/defaultextract.
13044 # The C++ compiler will combine linker options so we
13045 # cannot just pass the convience library names through
13047 # Supported since Solaris 2.6 (maybe 2.5.1?)
13048 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'
13051 link_all_deplibs_CXX=yes
13053 # Commands to make compiler produce verbose output that lists
13054 # what "hidden" libraries, object files and flags are used when
13055 # linking a shared library.
13057 # There doesn't appear to be a way to prevent this compiler from
13058 # explicitly linking system object files so we need to strip them
13059 # from the output so that they don't get included in the library
13061 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'
13063 # Archives containing C++ object files must be created using
13064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13065 # necessary to make sure instantiated templates are included
13067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13070 # Green Hills C++ Compiler
13071 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13073 # The C++ compiler must be used to create the archive.
13074 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13077 # GNU C++ compiler with Solaris linker
13078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13079 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13080 if $CC --version | grep -v '^2\.7' > /dev/null; then
13081 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13082 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13083 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13085 # Commands to make compiler produce verbose output that lists
13086 # what "hidden" libraries, object files and flags are used when
13087 # linking a shared library.
13088 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13090 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13092 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13093 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13094 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13096 # Commands to make compiler produce verbose output that lists
13097 # what "hidden" libraries, object files and flags are used when
13098 # linking a shared library.
13099 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13102 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13107 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13108 archive_cmds_need_lc_CXX=no
13111 case $cc_basename in
13113 # NonStop-UX NCC 3.20
13114 # FIXME: insert proper C++ library support
13118 # FIXME: insert proper C++ library support
13124 # FIXME: insert proper C++ library support
13128 # FIXME: insert proper C++ library support
13132 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13133 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13134 test "$ld_shlibs_CXX" = no && can_build_shared=no
13140 cat > conftest.$ac_ext <<EOF
13144 Foo (void) { a = 0; }
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; then
13155 # Parse the compiler output and extract the necessary
13156 # objects, libraries and library flags.
13158 # Sentinel used to keep track of whether or not we are before
13159 # the conftest object file.
13160 pre_test_object_deps_done=no
13162 # The `*' in the case matches for architectures that use `case' in
13163 # $output_verbose_cmd can trigger glob expansion during the loop
13164 # eval without this substitution.
13165 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13167 for p in `eval $output_verbose_link_cmd`; do
13171 # Some compilers place space between "-{L,R}" and the path.
13172 # Remove the space.
13173 if test $p = "-L" \
13174 || test $p = "-R"; then
13181 if test "$pre_test_object_deps_done" = no; then
13184 # Internal compiler library paths should come after those
13185 # provided the user. The postdeps already come after the
13186 # user supplied libs so there is no need to process them.
13187 if test -z "$compiler_lib_search_path_CXX"; then
13188 compiler_lib_search_path_CXX="${prev}${p}"
13190 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13193 # The "-l" case would never come before the object being
13194 # linked, so don't bother handling this case.
13197 if test -z "$postdeps_CXX"; then
13198 postdeps_CXX="${prev}${p}"
13200 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13206 # This assumes that the test object file only shows up
13207 # once in the compiler output.
13208 if test "$p" = "conftest.$objext"; then
13209 pre_test_object_deps_done=yes
13213 if test "$pre_test_object_deps_done" = no; then
13214 if test -z "$predep_objects_CXX"; then
13215 predep_objects_CXX="$p"
13217 predep_objects_CXX="$predep_objects_CXX $p"
13220 if test -z "$postdep_objects_CXX"; then
13221 postdep_objects_CXX="$p"
13223 postdep_objects_CXX="$postdep_objects_CXX $p"
13228 *) ;; # Ignore the rest.
13236 echo "libtool.m4: error: problem compiling CXX test program"
13239 $rm -f confest.$objext
13241 case " $postdeps_CXX " in
13242 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13245 lt_prog_compiler_wl_CXX=
13246 lt_prog_compiler_pic_CXX=
13247 lt_prog_compiler_static_CXX=
13249 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13250 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13252 # C++ specific cases for pic, static, wl, etc.
13253 if test "$GXX" = yes; then
13254 lt_prog_compiler_wl_CXX='-Wl,'
13255 lt_prog_compiler_static_CXX='-static'
13259 # All AIX code is PIC.
13260 if test "$host_cpu" = ia64; then
13261 # AIX 5 now supports IA64 processor
13262 lt_prog_compiler_static_CXX='-Bstatic'
13266 # FIXME: we need at least 68020 code to build shared libraries, but
13267 # adding the `-m68020' flag to GCC prevents building anything better,
13269 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13271 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13272 # PIC is the default for these OSes.
13274 mingw* | os2* | pw32*)
13275 # This hack is so that the source file can tell whether it is being
13276 # built for inclusion in a dll (and should export symbols for example).
13277 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13279 darwin* | rhapsody*)
13280 # PIC is the default on this platform
13281 # Common symbols not allowed in MH_DYLIB files
13282 lt_prog_compiler_pic_CXX='-fno-common'
13285 # DJGPP does not support shared libraries at all
13286 lt_prog_compiler_pic_CXX=
13289 if test -d /usr/nec; then
13290 lt_prog_compiler_pic_CXX=-Kconform_pic
13294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13295 # not for PA HP-UX.
13296 case "$host_cpu" in
13300 lt_prog_compiler_pic_CXX='-fPIC'
13305 lt_prog_compiler_pic_CXX='-fPIC'
13311 # All AIX code is PIC.
13312 if test "$host_cpu" = ia64; then
13313 # AIX 5 now supports IA64 processor
13314 lt_prog_compiler_static_CXX='-Bstatic'
13316 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13320 case $cc_basename in
13322 # Green Hills C++ Compiler
13323 # _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"
13328 # PIC is the default on this platform
13329 # Common symbols not allowed in MH_DYLIB files
13330 case $cc_basename in
13332 lt_prog_compiler_pic_CXX='-qnocommon'
13333 lt_prog_compiler_wl_CXX='-Wl,'
13338 case $cc_basename in
13340 lt_prog_compiler_pic_CXX='-KPIC'
13343 # Green Hills C++ Compiler
13344 lt_prog_compiler_pic_CXX='-pic'
13350 freebsd* | kfreebsd*-gnu | dragonfly*)
13351 # FreeBSD uses GNU C++
13353 hpux9* | hpux10* | hpux11*)
13354 case $cc_basename in
13356 lt_prog_compiler_wl_CXX='-Wl,'
13357 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13358 if test "$host_cpu" != ia64; then
13359 lt_prog_compiler_pic_CXX='+Z'
13363 lt_prog_compiler_wl_CXX='-Wl,'
13364 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13365 case "$host_cpu" in
13370 lt_prog_compiler_pic_CXX='+Z'
13378 irix5* | irix6* | nonstopux*)
13379 case $cc_basename in
13381 lt_prog_compiler_wl_CXX='-Wl,'
13382 lt_prog_compiler_static_CXX='-non_shared'
13383 # CC pic flag -KPIC is the default.
13390 case $cc_basename in
13393 lt_prog_compiler_wl_CXX='--backend -Wl,'
13394 lt_prog_compiler_pic_CXX='-fPIC'
13398 lt_prog_compiler_wl_CXX='-Wl,'
13399 lt_prog_compiler_pic_CXX='-KPIC'
13400 lt_prog_compiler_static_CXX='-static'
13403 # Portland Group C++ compiler.
13404 lt_prog_compiler_wl_CXX='-Wl,'
13405 lt_prog_compiler_pic_CXX='-fpic'
13406 lt_prog_compiler_static_CXX='-static'
13410 # Make sure the PIC flag is empty. It appears that all Alpha
13411 # Linux and Compaq Tru64 Unix objects are PIC.
13412 lt_prog_compiler_pic_CXX=
13413 lt_prog_compiler_static_CXX='-non_shared'
13424 case $cc_basename in
13426 lt_prog_compiler_pic_CXX='-W c,exportall'
13434 osf3* | osf4* | osf5*)
13435 case $cc_basename in
13437 lt_prog_compiler_wl_CXX='--backend -Wl,'
13440 # Rational C++ 2.4.1
13441 lt_prog_compiler_pic_CXX='-pic'
13444 # Digital/Compaq C++
13445 lt_prog_compiler_wl_CXX='-Wl,'
13446 # Make sure the PIC flag is empty. It appears that all Alpha
13447 # Linux and Compaq Tru64 Unix objects are PIC.
13448 lt_prog_compiler_pic_CXX=
13449 lt_prog_compiler_static_CXX='-non_shared'
13458 case $cc_basename in
13460 lt_prog_compiler_pic_CXX='-fPIC'
13467 case $cc_basename in
13469 # Sun C++ 4.2, 5.x and Centerline C++
13470 lt_prog_compiler_pic_CXX='-KPIC'
13471 lt_prog_compiler_static_CXX='-Bstatic'
13472 lt_prog_compiler_wl_CXX='-Qoption ld '
13475 # Green Hills C++ Compiler
13476 lt_prog_compiler_pic_CXX='-PIC'
13483 case $cc_basename in
13486 lt_prog_compiler_pic_CXX='-pic'
13487 lt_prog_compiler_static_CXX='-Bstatic'
13491 lt_prog_compiler_pic_CXX='-pic'
13498 case $cc_basename in
13500 # NonStop-UX NCC 3.20
13501 lt_prog_compiler_pic_CXX='-KPIC'
13512 lt_prog_compiler_can_build_shared_CXX=no
13517 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13518 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13521 # Check to make sure the PIC flag actually works.
13523 if test -n "$lt_prog_compiler_pic_CXX"; then
13525 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13526 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13527 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 lt_prog_compiler_pic_works_CXX=no
13531 ac_outfile=conftest.$ac_objext
13532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13533 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13534 # Insert the option either (1) after the last *FLAGS variable, or
13535 # (2) before a word containing "conftest.", or (3) at the end.
13536 # Note that $ac_compile itself does not contain backslashes and begins
13537 # with a dollar sign (not a hyphen), so the echo should work correctly.
13538 # The option is referenced via a variable to avoid confusing sed.
13539 lt_compile=`echo "$ac_compile" | $SED \
13540 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13542 -e 's:$: $lt_compiler_flag:'`
13543 (eval echo "\"\$as_me:13543: $lt_compile\"" >&5)
13544 (eval "$lt_compile" 2>conftest.err)
13546 cat conftest.err >&5
13547 echo "$as_me:13547: \$? = $ac_status" >&5
13548 if (exit $ac_status) && test -s "$ac_outfile"; then
13549 # The compiler can only warn and ignore the option if not recognized
13550 # So say no if there are warnings other than the usual output.
13551 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13552 $SED '/^$/d' conftest.err >conftest.er2
13553 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13554 lt_prog_compiler_pic_works_CXX=yes
13560 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13561 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13563 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13564 case $lt_prog_compiler_pic_CXX in
13566 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13569 lt_prog_compiler_pic_CXX=
13570 lt_prog_compiler_can_build_shared_CXX=no
13575 # For platforms which do not support PIC, -DPIC is meaningless:
13577 lt_prog_compiler_pic_CXX=
13580 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13586 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 lt_cv_prog_compiler_c_o_CXX=no
13590 $rm -r conftest 2>/dev/null
13594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13596 lt_compiler_flag="-o out/conftest2.$ac_objext"
13597 # Insert the option either (1) after the last *FLAGS variable, or
13598 # (2) before a word containing "conftest.", or (3) at the end.
13599 # Note that $ac_compile itself does not contain backslashes and begins
13600 # with a dollar sign (not a hyphen), so the echo should work correctly.
13601 lt_compile=`echo "$ac_compile" | $SED \
13602 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13604 -e 's:$: $lt_compiler_flag:'`
13605 (eval echo "\"\$as_me:13605: $lt_compile\"" >&5)
13606 (eval "$lt_compile" 2>out/conftest.err)
13608 cat out/conftest.err >&5
13609 echo "$as_me:13609: \$? = $ac_status" >&5
13610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13612 # The compiler can only warn and ignore the option if not recognized
13613 # So say no if there are warnings
13614 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13615 $SED '/^$/d' out/conftest.err >out/conftest.er2
13616 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13617 lt_cv_prog_compiler_c_o_CXX=yes
13622 # SGI C++ compiler will create directory out/ii_files/ for
13623 # template instantiation
13624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13625 $rm out/* && rmdir out
13631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13635 hard_links="nottested"
13636 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13637 # do not overwrite the value of need_locks provided by the user
13638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13644 ln conftest.a conftest.b 2>&5 || hard_links=no
13645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13646 echo "$as_me:$LINENO: result: $hard_links" >&5
13647 echo "${ECHO_T}$hard_links" >&6
13648 if test "$hard_links" = no; then
13649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13663 # If we're using GNU nm, then we don't want the "-C" option.
13664 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13665 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13666 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'
13668 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'
13672 export_symbols_cmds_CXX="$ltdll_cmds"
13675 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'
13678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13682 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13683 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13684 test "$ld_shlibs_CXX" = no && can_build_shared=no
13686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13687 if test "$GCC" = yes; then
13688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13692 # Do we need to explicitly link libc?
13694 case "x$archive_cmds_need_lc_CXX" in
13696 # Assume -lc should be added
13697 archive_cmds_need_lc_CXX=yes
13699 if test "$enable_shared" = yes && test "$GCC" = yes; then
13700 case $archive_cmds_CXX in
13702 # FIXME: we may have to deal with multi-command sequences.
13705 # Test whether the compiler implicitly links with -lc since on some
13706 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13707 # to ld, don't add -lc before -lgcc.
13708 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13709 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714 (eval $ac_compile) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } 2>conftest.err; then
13720 libobjs=conftest.$ac_objext
13722 wl=$lt_prog_compiler_wl_CXX
13728 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13729 allow_undefined_flag_CXX=
13730 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13731 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }
13736 archive_cmds_need_lc_CXX=no
13738 archive_cmds_need_lc_CXX=yes
13740 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13742 cat conftest.err 1>&5
13745 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13746 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13753 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13754 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13755 library_names_spec=
13756 libname_spec='lib$name'
13760 postuninstall_cmds=
13764 shlibpath_overrides_runpath=unknown
13766 dynamic_linker="$host_os ld.so"
13767 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13768 if test "$GCC" = yes; then
13769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13770 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13771 # if the path contains ";" then we assume it to be the separator
13772 # otherwise default to the standard path separator (i.e. ":") - it is
13773 # assumed that no part of a normal pathname contains ";" but that should
13774 # okay in the real world where ";" in dirpaths is itself problematic.
13775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13782 need_lib_prefix=unknown
13783 hardcode_into_libs=no
13785 # when you set need_version to no, make sure it does not cause -set_version
13786 # flags to be left without arguments
13787 need_version=unknown
13792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13793 shlibpath_var=LIBPATH
13795 # AIX 3 has no versioning support, so we append a major version to the name.
13796 soname_spec='${libname}${release}${shared_ext}$major'
13803 hardcode_into_libs=yes
13804 if test "$host_cpu" = ia64; then
13805 # AIX 5 supports IA64
13806 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13807 shlibpath_var=LD_LIBRARY_PATH
13809 # With GCC up to 2.95.x, collect2 would create an import file
13810 # for dependence libraries. The import file would start with
13811 # the line `#! .'. This would cause the generated library to
13812 # depend on `.', always an invalid library. This was fixed in
13813 # development snapshots of GCC prior to 3.0.
13815 aix4 | aix4.[01] | aix4.[01].*)
13816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13818 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13821 can_build_shared=no
13825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13826 # soname into executable. Probably we can add versioning support to
13827 # collect2, so additional links can be useful in future.
13828 if test "$aix_use_runtimelinking" = yes; then
13829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13830 # instead of lib<name>.a to let people know that these are not
13831 # typical AIX shared libraries.
13832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13834 # We preserve .a as extension for shared libraries through AIX4.2
13835 # and later when we are not doing run time linking.
13836 library_names_spec='${libname}${release}.a $libname.a'
13837 soname_spec='${libname}${release}${shared_ext}$major'
13839 shlibpath_var=LIBPATH
13844 library_names_spec='$libname.ixlibrary $libname.a'
13845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13846 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'
13850 library_names_spec='${libname}${shared_ext}'
13851 dynamic_linker="$host_os ld.so"
13852 shlibpath_var=LIBRARY_PATH
13858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13859 soname_spec='${libname}${release}${shared_ext}$major'
13860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13861 shlibpath_var=LD_LIBRARY_PATH
13862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13864 # the default ld.so.conf also contains /usr/contrib/lib and
13865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13866 # libtool to hard-code these into programs
13869 cygwin* | mingw* | pw32*)
13870 version_type=windows
13875 case $GCC,$host_os in
13876 yes,cygwin* | yes,mingw* | yes,pw32*)
13877 library_names_spec='$libname.dll.a'
13878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13879 postinstall_cmds='base_file=`basename \${file}`~
13880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13881 dldir=$destdir/`dirname \$dlpath`~
13882 test -d \$dldir || mkdir -p \$dldir~
13883 $install_prog $dir/$dlname \$dldir/$dlname'
13884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13885 dlpath=$dir/\$dldll~
13887 shlibpath_overrides_runpath=yes
13891 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13892 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13893 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13896 # MinGW DLLs use traditional 'lib' prefix
13897 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13899 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13900 # It is most probably a Windows format PATH printed by
13901 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13902 # path with ; separators, and with drive letters. We can handle the
13903 # drive letters (cygwin fileutils understands them), so leave them,
13904 # especially as we might pass files found there to a mingw objdump,
13905 # which wouldn't understand a cygwinified path. Ahh.
13906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13912 # pw32 DLLs use 'pw' prefix rather than 'lib'
13913 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13919 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13922 dynamic_linker='Win32 ld.exe'
13923 # FIXME: first we should search . and the directory the executable is in
13927 darwin* | rhapsody*)
13928 dynamic_linker="$host_os dyld"
13929 version_type=darwin
13932 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13933 soname_spec='${libname}${release}${major}$shared_ext'
13934 shlibpath_overrides_runpath=yes
13935 shlibpath_var=DYLD_LIBRARY_PATH
13936 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13937 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13938 if test "$GCC" = yes; then
13939 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"`
13941 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 shlibpath_var=LD_LIBRARY_PATH
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 shlibpath_var=LD_LIBRARY_PATH
13966 shlibpath_overrides_runpath=no
13967 hardcode_into_libs=yes
13968 dynamic_linker='GNU ld.so'
13971 freebsd* | dragonfly*)
13972 # DragonFly does not have aout. When/if they implement a new
13973 # versioning mechanism, adjust this.
13974 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13975 version_type=freebsd-$objformat
13976 case $version_type in
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13987 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=yes
13992 freebsd3.[01]* | freebsdelf3.[01]*)
13993 shlibpath_overrides_runpath=yes
13994 hardcode_into_libs=yes
13997 shlibpath_overrides_runpath=no
13998 hardcode_into_libs=yes
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14008 soname_spec='${libname}${release}${shared_ext}$major'
14009 shlibpath_var=LD_LIBRARY_PATH
14010 hardcode_into_libs=yes
14013 hpux9* | hpux10* | hpux11*)
14014 # Give a soname corresponding to the major version so that dld.sl refuses to
14015 # link against other versions.
14019 case "$host_cpu" in
14022 hardcode_into_libs=yes
14023 dynamic_linker="$host_os dld.so"
14024 shlibpath_var=LD_LIBRARY_PATH
14025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027 soname_spec='${libname}${release}${shared_ext}$major'
14028 if test "X$HPUX_IA64_MODE" = X32; then
14029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14037 hardcode_into_libs=yes
14038 dynamic_linker="$host_os dld.sl"
14039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14042 soname_spec='${libname}${release}${shared_ext}$major'
14043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14048 dynamic_linker="$host_os dld.sl"
14049 shlibpath_var=SHLIB_PATH
14050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14052 soname_spec='${libname}${release}${shared_ext}$major'
14055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14056 postinstall_cmds='chmod 555 $lib'
14059 irix5* | irix6* | nonstopux*)
14061 nonstopux*) version_type=nonstopux ;;
14063 if test "$lt_cv_prog_gnu_ld" = yes; then
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14074 irix5* | nonstopux*)
14075 libsuff= shlibsuff=
14078 case $LD in # libtool.m4 will add one of these switches to LD
14079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14080 libsuff= shlibsuff= libmagic=32-bit;;
14081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14082 libsuff=32 shlibsuff=N32 libmagic=N32;;
14083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14085 *) libsuff= shlibsuff= libmagic=never-match;;
14089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14090 shlibpath_overrides_runpath=no
14091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14093 hardcode_into_libs=yes
14096 # No shared lib support for Linux oldld, aout, or coff.
14097 linux*oldld* | linux*aout* | linux*coff*)
14101 # This must be Linux ELF.
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 shlibpath_overrides_runpath=no
14111 # This implies no fast_install, which is unacceptable.
14112 # Some rework will be needed to allow for fast_install
14113 # before this can be enabled.
14114 hardcode_into_libs=yes
14116 # Append ld.so.conf contents to the search path
14117 if test -f /etc/ld.so.conf; then
14118 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' ' '`
14119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14122 # We used to test for /lib/ld.so.1 and disable shared libraries on
14123 # powerpc, because MkLinux only supported shared libraries with the
14124 # GNU dynamic linker. Since this was broken with cross compilers,
14125 # most powerpc-linux boxes support dynamic linking these days and
14126 # people can always --disable-shared, the test was removed, and we
14127 # assume the GNU/Linux dynamic linker is in use.
14128 dynamic_linker='GNU/Linux ld.so'
14135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14136 soname_spec='${libname}${release}${shared_ext}$major'
14137 shlibpath_var=LD_LIBRARY_PATH
14138 shlibpath_overrides_runpath=no
14139 hardcode_into_libs=yes
14140 dynamic_linker='GNU ld.so'
14147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14150 dynamic_linker='NetBSD (a.out) ld.so'
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 dynamic_linker='NetBSD ld.elf_so'
14156 shlibpath_var=LD_LIBRARY_PATH
14157 shlibpath_overrides_runpath=yes
14158 hardcode_into_libs=yes
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 shlibpath_overrides_runpath=yes
14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14173 soname_spec='${libname}${release}${shared_ext}$major'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 shlibpath_overrides_runpath=yes
14181 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14183 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14184 *) need_version=no ;;
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14188 shlibpath_var=LD_LIBRARY_PATH
14189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14191 openbsd2.[89] | openbsd2.[89].*)
14192 shlibpath_overrides_runpath=no
14195 shlibpath_overrides_runpath=yes
14199 shlibpath_overrides_runpath=yes
14204 libname_spec='$name'
14207 library_names_spec='$libname${shared_ext} $libname.a'
14208 dynamic_linker='OS/2 ld.exe'
14209 shlibpath_var=LIBPATH
14212 osf3* | osf4* | osf5*)
14216 soname_spec='${libname}${release}${shared_ext}$major'
14217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14218 shlibpath_var=LD_LIBRARY_PATH
14219 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14220 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14225 soname_spec='${libname}${release}${shared_ext}$major'
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14227 shlibpath_var=LD_LIBRARY_PATH
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235 soname_spec='${libname}${release}${shared_ext}$major'
14236 shlibpath_var=LD_LIBRARY_PATH
14237 shlibpath_overrides_runpath=yes
14238 hardcode_into_libs=yes
14239 # ldd complains unless libraries are executable
14240 postinstall_cmds='chmod +x $lib'
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14247 shlibpath_var=LD_LIBRARY_PATH
14248 shlibpath_overrides_runpath=yes
14249 if test "$with_gnu_ld" = yes; then
14255 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14258 soname_spec='${libname}${release}${shared_ext}$major'
14259 shlibpath_var=LD_LIBRARY_PATH
14260 case $host_vendor in
14262 shlibpath_overrides_runpath=no
14264 export_dynamic_flag_spec='${wl}-Blargedynsym'
14265 runpath_var=LD_RUN_PATH
14273 shlibpath_overrides_runpath=no
14274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14280 if test -d /usr/nec ;then
14282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14283 soname_spec='$libname${shared_ext}.$major'
14284 shlibpath_var=LD_LIBRARY_PATH
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 shlibpath_var=LD_LIBRARY_PATH
14299 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14300 echo "${ECHO_T}$dynamic_linker" >&6
14301 test "$dynamic_linker" = no && can_build_shared=no
14303 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14304 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14305 hardcode_action_CXX=
14306 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14307 test -n "$runpath_var_CXX" || \
14308 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14310 # We can hardcode non-existant directories.
14311 if test "$hardcode_direct_CXX" != no &&
14312 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14313 # have to relink, otherwise we might link with an installed library
14314 # when we should be linking with a yet-to-be-installed one
14315 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14316 test "$hardcode_minus_L_CXX" != no; then
14317 # Linking always hardcodes the temporary library directory.
14318 hardcode_action_CXX=relink
14320 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14321 hardcode_action_CXX=immediate
14324 # We cannot hardcode anything, or else we can only hardcode existing
14326 hardcode_action_CXX=unsupported
14328 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14329 echo "${ECHO_T}$hardcode_action_CXX" >&6
14331 if test "$hardcode_action_CXX" = relink; then
14332 # Fast installation is not supported
14333 enable_fast_install=no
14334 elif test "$shlibpath_overrides_runpath" = yes ||
14335 test "$enable_shared" = no; then
14336 # Fast installation is not necessary
14337 enable_fast_install=needless
14342 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14343 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14344 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14347 echo "$as_me:$LINENO: result: yes" >&5
14348 echo "${ECHO_T}yes" >&6
14350 # FIXME - insert some real tests, host_os isn't really good enough
14353 if test -n "$STRIP" ; then
14354 striplib="$STRIP -x"
14355 echo "$as_me:$LINENO: result: yes" >&5
14356 echo "${ECHO_T}yes" >&6
14358 echo "$as_me:$LINENO: result: no" >&5
14359 echo "${ECHO_T}no" >&6
14363 echo "$as_me:$LINENO: result: no" >&5
14364 echo "${ECHO_T}no" >&6
14369 if test "x$enable_dlopen" != xyes; then
14370 enable_dlopen=unknown
14371 enable_dlopen_self=unknown
14372 enable_dlopen_self_static=unknown
14379 lt_cv_dlopen="load_add_on"
14381 lt_cv_dlopen_self=yes
14385 lt_cv_dlopen="LoadLibrary"
14390 lt_cv_dlopen="dlopen"
14395 # if libdl is installed we need to link against it
14396 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 ac_check_lib_save_LIBS=$LIBS
14403 cat >conftest.$ac_ext <<_ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14410 /* Override any gcc2 internal prototype to avoid an error. */
14414 /* We use char because int might match the return type of a gcc2
14415 builtin and then its argument prototype would still apply. */
14425 rm -f conftest.$ac_objext conftest$ac_exeext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14427 (eval $ac_link) 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_cxx_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest$ac_exeext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_cv_lib_dl_dlopen=yes
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14452 ac_cv_lib_dl_dlopen=no
14454 rm -f conftest.err conftest.$ac_objext \
14455 conftest$ac_exeext conftest.$ac_ext
14456 LIBS=$ac_check_lib_save_LIBS
14458 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14459 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14460 if test $ac_cv_lib_dl_dlopen = yes; then
14461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14464 lt_cv_dlopen="dyld"
14466 lt_cv_dlopen_self=yes
14473 echo "$as_me:$LINENO: checking for shl_load" >&5
14474 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14475 if test "${ac_cv_func_shl_load+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 cat >conftest.$ac_ext <<_ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14486 #define shl_load innocuous_shl_load
14488 /* System header to define __stub macros and hopefully few prototypes,
14489 which can conflict with char shl_load (); below.
14490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14491 <limits.h> exists even on freestanding compilers. */
14494 # include <limits.h>
14496 # include <assert.h>
14501 /* Override any gcc2 internal prototype to avoid an error. */
14506 /* We use char because int might match the return type of a gcc2
14507 builtin and then its argument prototype would still apply. */
14509 /* The GNU C library defines this for functions which it implements
14510 to always fail with ENOSYS. Some functions are actually named
14511 something starting with __ and the normal name is an alias. */
14512 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14515 char (*f) () = shl_load;
14524 return f != shl_load;
14529 rm -f conftest.$ac_objext conftest$ac_exeext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14531 (eval $ac_link) 2>conftest.er1
14533 grep -v '^ *+' conftest.er1 >conftest.err
14535 cat conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } &&
14538 { ac_try='test -z "$ac_cxx_werror_flag"
14539 || test ! -s conftest.err'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; } &&
14545 { ac_try='test -s conftest$ac_exeext'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 ac_cv_func_shl_load=yes
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14556 ac_cv_func_shl_load=no
14558 rm -f conftest.err conftest.$ac_objext \
14559 conftest$ac_exeext conftest.$ac_ext
14561 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14562 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14563 if test $ac_cv_func_shl_load = yes; then
14564 lt_cv_dlopen="shl_load"
14566 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14567 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14568 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 ac_check_lib_save_LIBS=$LIBS
14573 cat >conftest.$ac_ext <<_ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14580 /* Override any gcc2 internal prototype to avoid an error. */
14584 /* We use char because int might match the return type of a gcc2
14585 builtin and then its argument prototype would still apply. */
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597 (eval $ac_link) 2>conftest.er1
14599 grep -v '^ *+' conftest.er1 >conftest.err
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try='test -z "$ac_cxx_werror_flag"
14605 || test ! -s conftest.err'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; } &&
14611 { ac_try='test -s conftest$ac_exeext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_cv_lib_dld_shl_load=yes
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_cv_lib_dld_shl_load=no
14624 rm -f conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
14628 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14629 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14630 if test $ac_cv_lib_dld_shl_load = yes; then
14631 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14633 echo "$as_me:$LINENO: checking for dlopen" >&5
14634 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14635 if test "${ac_cv_func_dlopen+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 cat >conftest.$ac_ext <<_ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14644 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14646 #define dlopen innocuous_dlopen
14648 /* System header to define __stub macros and hopefully few prototypes,
14649 which can conflict with char dlopen (); below.
14650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14651 <limits.h> exists even on freestanding compilers. */
14654 # include <limits.h>
14656 # include <assert.h>
14661 /* Override any gcc2 internal prototype to avoid an error. */
14666 /* We use char because int might match the return type of a gcc2
14667 builtin and then its argument prototype would still apply. */
14669 /* The GNU C library defines this for functions which it implements
14670 to always fail with ENOSYS. Some functions are actually named
14671 something starting with __ and the normal name is an alias. */
14672 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14675 char (*f) () = dlopen;
14684 return f != dlopen;
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14691 (eval $ac_link) 2>conftest.er1
14693 grep -v '^ *+' conftest.er1 >conftest.err
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
14698 { ac_try='test -z "$ac_cxx_werror_flag"
14699 || test ! -s conftest.err'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest$ac_exeext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_cv_func_dlopen=yes
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 ac_cv_func_dlopen=no
14718 rm -f conftest.err conftest.$ac_objext \
14719 conftest$ac_exeext conftest.$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14723 if test $ac_cv_func_dlopen = yes; then
14724 lt_cv_dlopen="dlopen"
14726 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14727 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 ac_check_lib_save_LIBS=$LIBS
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14740 /* Override any gcc2 internal prototype to avoid an error. */
14744 /* We use char because int might match the return type of a gcc2
14745 builtin and then its argument prototype would still apply. */
14755 rm -f conftest.$ac_objext conftest$ac_exeext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14757 (eval $ac_link) 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -z "$ac_cxx_werror_flag"
14765 || test ! -s conftest.err'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; } &&
14771 { ac_try='test -s conftest$ac_exeext'
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 ac_cv_lib_dl_dlopen=yes
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_cv_lib_dl_dlopen=no
14784 rm -f conftest.err conftest.$ac_objext \
14785 conftest$ac_exeext conftest.$ac_ext
14786 LIBS=$ac_check_lib_save_LIBS
14788 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14789 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14790 if test $ac_cv_lib_dl_dlopen = yes; then
14791 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14793 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14794 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14795 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 ac_check_lib_save_LIBS=$LIBS
14799 LIBS="-lsvld $LIBS"
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14807 /* Override any gcc2 internal prototype to avoid an error. */
14811 /* We use char because int might match the return type of a gcc2
14812 builtin and then its argument prototype would still apply. */
14822 rm -f conftest.$ac_objext conftest$ac_exeext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824 (eval $ac_link) 2>conftest.er1
14826 grep -v '^ *+' conftest.er1 >conftest.err
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
14831 { ac_try='test -z "$ac_cxx_werror_flag"
14832 || test ! -s conftest.err'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest$ac_exeext'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 ac_cv_lib_svld_dlopen=yes
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_cv_lib_svld_dlopen=no
14851 rm -f conftest.err conftest.$ac_objext \
14852 conftest$ac_exeext conftest.$ac_ext
14853 LIBS=$ac_check_lib_save_LIBS
14855 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14856 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14857 if test $ac_cv_lib_svld_dlopen = yes; then
14858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14860 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 ac_check_lib_save_LIBS=$LIBS
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14874 /* Override any gcc2 internal prototype to avoid an error. */
14878 /* We use char because int might match the return type of a gcc2
14879 builtin and then its argument prototype would still apply. */
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891 (eval $ac_link) 2>conftest.er1
14893 grep -v '^ *+' conftest.er1 >conftest.err
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
14898 { ac_try='test -z "$ac_cxx_werror_flag"
14899 || test ! -s conftest.err'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest$ac_exeext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_cv_lib_dld_dld_link=yes
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 ac_cv_lib_dld_dld_link=no
14918 rm -f conftest.err conftest.$ac_objext \
14919 conftest$ac_exeext conftest.$ac_ext
14920 LIBS=$ac_check_lib_save_LIBS
14922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14923 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14924 if test $ac_cv_lib_dld_dld_link = yes; then
14925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14946 if test "x$lt_cv_dlopen" != xno; then
14952 case $lt_cv_dlopen in
14954 save_CPPFLAGS="$CPPFLAGS"
14955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14957 save_LDFLAGS="$LDFLAGS"
14958 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14961 LIBS="$lt_cv_dlopen_libs $LIBS"
14963 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14964 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14965 if test "${lt_cv_dlopen_self+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 if test "$cross_compiling" = yes; then :
14969 lt_cv_dlopen_self=cross
14971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14972 lt_status=$lt_dlunknown
14973 cat > conftest.$ac_ext <<EOF
14974 #line 14974 "configure"
14975 #include "confdefs.h"
14984 # define LT_DLGLOBAL RTLD_GLOBAL
14987 # define LT_DLGLOBAL DL_GLOBAL
14989 # define LT_DLGLOBAL 0
14993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14994 find out it does not work in some platform. */
14995 #ifndef LT_DLLAZY_OR_NOW
14997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15000 # define LT_DLLAZY_OR_NOW DL_LAZY
15003 # define LT_DLLAZY_OR_NOW RTLD_NOW
15006 # define LT_DLLAZY_OR_NOW DL_NOW
15008 # define LT_DLLAZY_OR_NOW 0
15016 extern "C" void exit (int);
15019 void fnord() { int i=42;}
15022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15023 int status = $lt_dlunknown;
15027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15028 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15029 /* dlclose (self); */
15035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15036 (eval $ac_link) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15040 (./conftest; exit; ) 2>/dev/null
15042 case x$lt_status in
15043 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15044 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15045 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15048 # compilation failed
15049 lt_cv_dlopen_self=no
15056 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15057 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15059 if test "x$lt_cv_dlopen_self" = xyes; then
15060 LDFLAGS="$LDFLAGS $link_static_flag"
15061 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15062 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15063 if test "${lt_cv_dlopen_self_static+set}" = set; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 if test "$cross_compiling" = yes; then :
15067 lt_cv_dlopen_self_static=cross
15069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15070 lt_status=$lt_dlunknown
15071 cat > conftest.$ac_ext <<EOF
15072 #line 15072 "configure"
15073 #include "confdefs.h"
15082 # define LT_DLGLOBAL RTLD_GLOBAL
15085 # define LT_DLGLOBAL DL_GLOBAL
15087 # define LT_DLGLOBAL 0
15091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15092 find out it does not work in some platform. */
15093 #ifndef LT_DLLAZY_OR_NOW
15095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15098 # define LT_DLLAZY_OR_NOW DL_LAZY
15101 # define LT_DLLAZY_OR_NOW RTLD_NOW
15104 # define LT_DLLAZY_OR_NOW DL_NOW
15106 # define LT_DLLAZY_OR_NOW 0
15114 extern "C" void exit (int);
15117 void fnord() { int i=42;}
15120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15121 int status = $lt_dlunknown;
15125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15127 /* dlclose (self); */
15133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134 (eval $ac_link) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15138 (./conftest; exit; ) 2>/dev/null
15140 case x$lt_status in
15141 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15142 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15143 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15146 # compilation failed
15147 lt_cv_dlopen_self_static=no
15154 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15155 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15158 CPPFLAGS="$save_CPPFLAGS"
15159 LDFLAGS="$save_LDFLAGS"
15164 case $lt_cv_dlopen_self in
15165 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15166 *) enable_dlopen_self=unknown ;;
15169 case $lt_cv_dlopen_self_static in
15170 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15171 *) enable_dlopen_self_static=unknown ;;
15176 # The else clause should only fire when bootstrapping the
15177 # libtool distribution, otherwise you forgot to ship ltmain.sh
15178 # with your package, and you will get complaints that there are
15179 # no rules to generate ltmain.sh.
15180 if test -f "$ltmain"; then
15181 # See if we are running on zsh, and set the options which allow our commands through
15182 # without removal of \ escapes.
15183 if test -n "${ZSH_VERSION+set}" ; then
15184 setopt NO_GLOB_SUBST
15186 # Now quote all the things that may contain metacharacters while being
15187 # careful not to overquote the AC_SUBSTed values. We take copies of the
15188 # variables and quote the copies for generation of the libtool script.
15189 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15191 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15192 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15193 deplibs_check_method reload_flag reload_cmds need_locks \
15194 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15195 lt_cv_sys_global_symbol_to_c_name_address \
15196 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15197 old_postinstall_cmds old_postuninstall_cmds \
15201 lt_prog_compiler_wl_CXX \
15202 lt_prog_compiler_pic_CXX \
15203 lt_prog_compiler_static_CXX \
15204 lt_prog_compiler_no_builtin_flag_CXX \
15205 export_dynamic_flag_spec_CXX \
15206 thread_safe_flag_spec_CXX \
15207 whole_archive_flag_spec_CXX \
15208 enable_shared_with_static_runtimes_CXX \
15209 old_archive_cmds_CXX \
15210 old_archive_from_new_cmds_CXX \
15211 predep_objects_CXX \
15212 postdep_objects_CXX \
15215 compiler_lib_search_path_CXX \
15217 archive_expsym_cmds_CXX \
15218 postinstall_cmds_CXX \
15219 postuninstall_cmds_CXX \
15220 old_archive_from_expsyms_cmds_CXX \
15221 allow_undefined_flag_CXX \
15222 no_undefined_flag_CXX \
15223 export_symbols_cmds_CXX \
15224 hardcode_libdir_flag_spec_CXX \
15225 hardcode_libdir_flag_spec_ld_CXX \
15226 hardcode_libdir_separator_CXX \
15227 hardcode_automatic_CXX \
15229 module_expsym_cmds_CXX \
15230 lt_cv_prog_compiler_c_o_CXX \
15231 exclude_expsyms_CXX \
15232 include_expsyms_CXX; do
15235 old_archive_cmds_CXX | \
15236 old_archive_from_new_cmds_CXX | \
15237 archive_cmds_CXX | \
15238 archive_expsym_cmds_CXX | \
15239 module_cmds_CXX | \
15240 module_expsym_cmds_CXX | \
15241 old_archive_from_expsyms_cmds_CXX | \
15242 export_symbols_cmds_CXX | \
15243 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15244 postinstall_cmds | postuninstall_cmds | \
15245 old_postinstall_cmds | old_postuninstall_cmds | \
15246 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15247 # Double-quote double-evaled strings.
15248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15251 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15257 *'\$0 --fallback-echo"')
15258 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15264 cat <<__EOF__ >> "$cfgfile"
15265 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15267 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15269 # Shell to use when invoking shell scripts.
15272 # Whether or not to build shared libraries.
15273 build_libtool_libs=$enable_shared
15275 # Whether or not to build static libraries.
15276 build_old_libs=$enable_static
15278 # Whether or not to add -lc for building shared libraries.
15279 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15281 # Whether or not to disallow shared libs when runtime libs are static
15282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15284 # Whether or not to optimize for fast installation.
15285 fast_install=$enable_fast_install
15288 host_alias=$host_alias
15292 # The build system.
15293 build_alias=$build_alias
15297 # An echo program that does not interpret backslashes.
15302 AR_FLAGS=$lt_AR_FLAGS
15307 # A language-specific compiler.
15308 CC=$lt_compiler_CXX
15310 # Is the compiler the GNU C compiler?
15316 # The linker used to build libraries.
15319 # Whether we need hard or soft links.
15322 # A BSD-compatible nm program.
15325 # A symbol stripping program
15328 # Used to examine libraries when file_magic_cmd begins "file"
15329 MAGIC_CMD=$MAGIC_CMD
15331 # Used on cygwin: DLL creation program.
15334 # Used on cygwin: object dumper.
15337 # Used on cygwin: assembler.
15340 # The name of the directory that contains temporary libtool files.
15343 # How to create reloadable object files.
15344 reload_flag=$lt_reload_flag
15345 reload_cmds=$lt_reload_cmds
15347 # How to pass a linker flag through the compiler.
15348 wl=$lt_lt_prog_compiler_wl_CXX
15350 # Object file suffix (normally "o").
15351 objext="$ac_objext"
15353 # Old archive suffix (normally "a").
15356 # Shared library suffix (normally ".so").
15357 shrext_cmds='$shrext_cmds'
15359 # Executable file suffix (normally "").
15362 # Additional compiler flags for building library objects.
15363 pic_flag=$lt_lt_prog_compiler_pic_CXX
15366 # What is the maximum length of a command?
15367 max_cmd_len=$lt_cv_sys_max_cmd_len
15369 # Does compiler simultaneously support -c and -o options?
15370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15372 # Must we lock files when doing compilation?
15373 need_locks=$lt_need_locks
15375 # Do we need the lib prefix for modules?
15376 need_lib_prefix=$need_lib_prefix
15378 # Do we need a version for libraries?
15379 need_version=$need_version
15381 # Whether dlopen is supported.
15382 dlopen_support=$enable_dlopen
15384 # Whether dlopen of programs is supported.
15385 dlopen_self=$enable_dlopen_self
15387 # Whether dlopen of statically linked programs is supported.
15388 dlopen_self_static=$enable_dlopen_self_static
15390 # Compiler flag to prevent dynamic linking.
15391 link_static_flag=$lt_lt_prog_compiler_static_CXX
15393 # Compiler flag to turn off builtin functions.
15394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15396 # Compiler flag to allow reflexive dlopens.
15397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15399 # Compiler flag to generate shared objects directly from archives.
15400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15402 # Compiler flag to generate thread-safe objects.
15403 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15405 # Library versioning type.
15406 version_type=$version_type
15408 # Format of library name prefix.
15409 libname_spec=$lt_libname_spec
15411 # List of archive names. First name is the real one, the rest are links.
15412 # The last name is the one that the linker finds with -lNAME.
15413 library_names_spec=$lt_library_names_spec
15415 # The coded name of the library, if different from the real name.
15416 soname_spec=$lt_soname_spec
15418 # Commands used to build and install an old-style archive.
15420 old_archive_cmds=$lt_old_archive_cmds_CXX
15421 old_postinstall_cmds=$lt_old_postinstall_cmds
15422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15424 # Create an old-style archive from a shared archive.
15425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15427 # Create a temporary old-style archive to link instead of a shared archive.
15428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15430 # Commands used to build and install a shared archive.
15431 archive_cmds=$lt_archive_cmds_CXX
15432 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15433 postinstall_cmds=$lt_postinstall_cmds
15434 postuninstall_cmds=$lt_postuninstall_cmds
15436 # Commands used to build a loadable module (assumed same as above if empty)
15437 module_cmds=$lt_module_cmds_CXX
15438 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15440 # Commands to strip libraries.
15441 old_striplib=$lt_old_striplib
15442 striplib=$lt_striplib
15444 # Dependencies to place before the objects being linked to create a
15446 predep_objects=$lt_predep_objects_CXX
15448 # Dependencies to place after the objects being linked to create a
15450 postdep_objects=$lt_postdep_objects_CXX
15452 # Dependencies to place before the objects being linked to create a
15454 predeps=$lt_predeps_CXX
15456 # Dependencies to place after the objects being linked to create a
15458 postdeps=$lt_postdeps_CXX
15460 # The library search path used internally by the compiler when linking
15461 # a shared library.
15462 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15464 # Method to check whether dependent libraries are shared objects.
15465 deplibs_check_method=$lt_deplibs_check_method
15467 # Command to use when deplibs_check_method == file_magic.
15468 file_magic_cmd=$lt_file_magic_cmd
15470 # Flag that allows shared libraries with undefined symbols to be built.
15471 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15473 # Flag that forces no undefined symbols.
15474 no_undefined_flag=$lt_no_undefined_flag_CXX
15476 # Commands used to finish a libtool library installation in a directory.
15477 finish_cmds=$lt_finish_cmds
15479 # Same as above, but a single script fragment to be evaled but not shown.
15480 finish_eval=$lt_finish_eval
15482 # Take the output of nm and produce a listing of raw symbols and C names.
15483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15485 # Transform the output of nm in a proper C declaration
15486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15488 # Transform the output of nm in a C name address pair
15489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15491 # This is the shared library runtime path variable.
15492 runpath_var=$runpath_var
15494 # This is the shared library path variable.
15495 shlibpath_var=$shlibpath_var
15497 # Is shlibpath searched before the hard-coded library search path?
15498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15500 # How to hardcode a shared library path into an executable.
15501 hardcode_action=$hardcode_action_CXX
15503 # Whether we should hardcode library paths into libraries.
15504 hardcode_into_libs=$hardcode_into_libs
15506 # Flag to hardcode \$libdir into a binary during linking.
15507 # This must work even if \$libdir does not exist.
15508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15510 # If ld is used when linking, flag to hardcode \$libdir into
15511 # a binary during linking. This must work even if \$libdir does
15513 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15515 # Whether we need a single -rpath flag with a separated argument.
15516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15518 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15519 # resulting binary.
15520 hardcode_direct=$hardcode_direct_CXX
15522 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15523 # resulting binary.
15524 hardcode_minus_L=$hardcode_minus_L_CXX
15526 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15527 # the resulting binary.
15528 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15530 # Set to yes if building a shared library automatically hardcodes DIR into the library
15531 # and all subsequent libraries and executables linked against it.
15532 hardcode_automatic=$hardcode_automatic_CXX
15534 # Variables whose values should be saved in libtool wrapper scripts and
15535 # restored at relink time.
15536 variables_saved_for_relink="$variables_saved_for_relink"
15538 # Whether libtool must link a program against all its dependency libraries.
15539 link_all_deplibs=$link_all_deplibs_CXX
15541 # Compile-time system search path for libraries
15542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15544 # Run-time system search path for libraries
15545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15547 # Fix the shell variable \$srcfile for the compiler.
15548 fix_srcfile_path="$fix_srcfile_path_CXX"
15550 # Set to yes if exported symbols are required.
15551 always_export_symbols=$always_export_symbols_CXX
15553 # The commands to list exported symbols.
15554 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15556 # The commands to extract the exported symbol list from a shared archive.
15557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15559 # Symbols that should not be listed in the preloaded symbols.
15560 exclude_expsyms=$lt_exclude_expsyms_CXX
15562 # Symbols that must always be exported.
15563 include_expsyms=$lt_include_expsyms_CXX
15565 # ### END LIBTOOL TAG CONFIG: $tagname
15571 # If there is no Makefile yet, we rely on a make rule to execute
15572 # `config.status --recheck' to rerun these tests and create the
15573 # libtool script then.
15574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15575 if test -f "$ltmain_in"; then
15576 test -f Makefile && make "$ltmain"
15582 ac_cpp='$CPP $CPPFLAGS'
15583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15591 with_gnu_ldcxx=$with_gnu_ld
15592 with_gnu_ld=$lt_save_with_gnu_ld
15593 lt_cv_path_LDCXX=$lt_cv_path_LD
15594 lt_cv_path_LD=$lt_save_path_LD
15595 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15596 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15604 if test -n "$F77" && test "X$F77" != "Xno"; then
15607 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15608 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15609 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15612 archive_cmds_need_lc_F77=no
15613 allow_undefined_flag_F77=
15614 always_export_symbols_F77=no
15615 archive_expsym_cmds_F77=
15616 export_dynamic_flag_spec_F77=
15617 hardcode_direct_F77=no
15618 hardcode_libdir_flag_spec_F77=
15619 hardcode_libdir_flag_spec_ld_F77=
15620 hardcode_libdir_separator_F77=
15621 hardcode_minus_L_F77=no
15622 hardcode_automatic_F77=no
15624 module_expsym_cmds_F77=
15625 link_all_deplibs_F77=unknown
15626 old_archive_cmds_F77=$old_archive_cmds
15627 no_undefined_flag_F77=
15628 whole_archive_flag_spec_F77=
15629 enable_shared_with_static_runtimes_F77=no
15631 # Source file extension for f77 test sources.
15634 # Object file extension for compiled f77 test sources.
15638 # Code to be used in simple compile tests
15639 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15641 # Code to be used in simple link tests
15642 lt_simple_link_test_code=" program t\n end\n"
15644 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15646 # If no C compiler was specified, use CC.
15649 # Allow CC to be a program name with arguments.
15653 # save warnings/boilerplate of simple test code
15654 ac_outfile=conftest.$ac_objext
15655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15657 _lt_compiler_boilerplate=`cat conftest.err`
15660 ac_outfile=conftest.$ac_objext
15661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15663 _lt_linker_boilerplate=`cat conftest.err`
15667 # Allow CC to be a program name with arguments.
15672 for cc_temp in $compiler""; do
15674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15683 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15684 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15685 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15686 echo "${ECHO_T}$can_build_shared" >&6
15688 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15689 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15690 test "$can_build_shared" = "no" && enable_shared=no
15692 # On AIX, shared libraries and static libraries use the same namespace, and
15693 # are all built from PIC.
15696 test "$enable_shared" = yes && enable_static=no
15697 if test -n "$RANLIB"; then
15698 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15699 postinstall_cmds='$RANLIB $lib'
15703 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15704 test "$enable_shared" = yes && enable_static=no
15708 echo "$as_me:$LINENO: result: $enable_shared" >&5
15709 echo "${ECHO_T}$enable_shared" >&6
15711 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15712 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15713 # Make sure either enable_shared or enable_static is yes.
15714 test "$enable_shared" = yes || enable_static=yes
15715 echo "$as_me:$LINENO: result: $enable_static" >&5
15716 echo "${ECHO_T}$enable_static" >&6
15718 test "$ld_shlibs_F77" = no && can_build_shared=no
15723 lt_prog_compiler_wl_F77=
15724 lt_prog_compiler_pic_F77=
15725 lt_prog_compiler_static_F77=
15727 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15728 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15730 if test "$GCC" = yes; then
15731 lt_prog_compiler_wl_F77='-Wl,'
15732 lt_prog_compiler_static_F77='-static'
15736 # All AIX code is PIC.
15737 if test "$host_cpu" = ia64; then
15738 # AIX 5 now supports IA64 processor
15739 lt_prog_compiler_static_F77='-Bstatic'
15744 # FIXME: we need at least 68020 code to build shared libraries, but
15745 # adding the `-m68020' flag to GCC prevents building anything better,
15747 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15750 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15751 # PIC is the default for these OSes.
15754 mingw* | pw32* | os2*)
15755 # This hack is so that the source file can tell whether it is being
15756 # built for inclusion in a dll (and should export symbols for example).
15757 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15760 darwin* | rhapsody*)
15761 # PIC is the default on this platform
15762 # Common symbols not allowed in MH_DYLIB files
15763 lt_prog_compiler_pic_F77='-fno-common'
15767 # Just because we use GCC doesn't mean we suddenly get shared libraries
15768 # on systems that don't support them.
15769 lt_prog_compiler_can_build_shared_F77=no
15774 if test -d /usr/nec; then
15775 lt_prog_compiler_pic_F77=-Kconform_pic
15780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15781 # not for PA HP-UX.
15782 case "$host_cpu" in
15787 lt_prog_compiler_pic_F77='-fPIC'
15793 lt_prog_compiler_pic_F77='-fPIC'
15797 # PORTME Check for flag to pass linker flags through the system compiler.
15800 lt_prog_compiler_wl_F77='-Wl,'
15801 if test "$host_cpu" = ia64; then
15802 # AIX 5 now supports IA64 processor
15803 lt_prog_compiler_static_F77='-Bstatic'
15805 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15809 # PIC is the default on this platform
15810 # Common symbols not allowed in MH_DYLIB files
15811 case $cc_basename in
15813 lt_prog_compiler_pic_F77='-qnocommon'
15814 lt_prog_compiler_wl_F77='-Wl,'
15819 mingw* | pw32* | os2*)
15820 # This hack is so that the source file can tell whether it is being
15821 # built for inclusion in a dll (and should export symbols for example).
15822 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15825 hpux9* | hpux10* | hpux11*)
15826 lt_prog_compiler_wl_F77='-Wl,'
15827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15828 # not for PA HP-UX.
15829 case "$host_cpu" in
15834 lt_prog_compiler_pic_F77='+Z'
15837 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15838 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15841 irix5* | irix6* | nonstopux*)
15842 lt_prog_compiler_wl_F77='-Wl,'
15843 # PIC (with -KPIC) is the default.
15844 lt_prog_compiler_static_F77='-non_shared'
15848 lt_prog_compiler_pic_F77='-KPIC'
15849 lt_prog_compiler_static_F77='-Bstatic'
15853 case $cc_basename in
15855 lt_prog_compiler_wl_F77='-Wl,'
15856 lt_prog_compiler_pic_F77='-KPIC'
15857 lt_prog_compiler_static_F77='-static'
15859 pgcc* | pgf77* | pgf90*)
15860 # Portland Group compilers (*not* the Pentium gcc compiler,
15861 # which looks to be a dead project)
15862 lt_prog_compiler_wl_F77='-Wl,'
15863 lt_prog_compiler_pic_F77='-fpic'
15864 lt_prog_compiler_static_F77='-static'
15867 lt_prog_compiler_wl_F77='-Wl,'
15868 # All Alpha code is PIC.
15869 lt_prog_compiler_static_F77='-non_shared'
15874 osf3* | osf4* | osf5*)
15875 lt_prog_compiler_wl_F77='-Wl,'
15876 # All OSF/1 code is PIC.
15877 lt_prog_compiler_static_F77='-non_shared'
15881 lt_prog_compiler_pic_F77='-Kpic'
15882 lt_prog_compiler_static_F77='-dn'
15886 lt_prog_compiler_pic_F77='-KPIC'
15887 lt_prog_compiler_static_F77='-Bstatic'
15888 case $cc_basename in
15889 f77* | f90* | f95*)
15890 lt_prog_compiler_wl_F77='-Qoption ld ';;
15892 lt_prog_compiler_wl_F77='-Wl,';;
15897 lt_prog_compiler_wl_F77='-Qoption ld '
15898 lt_prog_compiler_pic_F77='-PIC'
15899 lt_prog_compiler_static_F77='-Bstatic'
15902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15903 lt_prog_compiler_wl_F77='-Wl,'
15904 lt_prog_compiler_pic_F77='-KPIC'
15905 lt_prog_compiler_static_F77='-Bstatic'
15909 if test -d /usr/nec ;then
15910 lt_prog_compiler_pic_F77='-Kconform_pic'
15911 lt_prog_compiler_static_F77='-Bstatic'
15916 lt_prog_compiler_wl_F77='-Wl,'
15917 lt_prog_compiler_can_build_shared_F77=no
15921 lt_prog_compiler_pic_F77='-pic'
15922 lt_prog_compiler_static_F77='-Bstatic'
15926 lt_prog_compiler_can_build_shared_F77=no
15931 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15932 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15935 # Check to make sure the PIC flag actually works.
15937 if test -n "$lt_prog_compiler_pic_F77"; then
15939 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15940 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15941 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 lt_prog_compiler_pic_works_F77=no
15945 ac_outfile=conftest.$ac_objext
15946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15947 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15948 # Insert the option either (1) after the last *FLAGS variable, or
15949 # (2) before a word containing "conftest.", or (3) at the end.
15950 # Note that $ac_compile itself does not contain backslashes and begins
15951 # with a dollar sign (not a hyphen), so the echo should work correctly.
15952 # The option is referenced via a variable to avoid confusing sed.
15953 lt_compile=`echo "$ac_compile" | $SED \
15954 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15956 -e 's:$: $lt_compiler_flag:'`
15957 (eval echo "\"\$as_me:15957: $lt_compile\"" >&5)
15958 (eval "$lt_compile" 2>conftest.err)
15960 cat conftest.err >&5
15961 echo "$as_me:15961: \$? = $ac_status" >&5
15962 if (exit $ac_status) && test -s "$ac_outfile"; then
15963 # The compiler can only warn and ignore the option if not recognized
15964 # So say no if there are warnings other than the usual output.
15965 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15966 $SED '/^$/d' conftest.err >conftest.er2
15967 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15968 lt_prog_compiler_pic_works_F77=yes
15974 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15975 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15977 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15978 case $lt_prog_compiler_pic_F77 in
15980 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15983 lt_prog_compiler_pic_F77=
15984 lt_prog_compiler_can_build_shared_F77=no
15989 # For platforms which do not support PIC, -DPIC is meaningless:
15991 lt_prog_compiler_pic_F77=
15994 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15998 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15999 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16000 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 lt_cv_prog_compiler_c_o_F77=no
16004 $rm -r conftest 2>/dev/null
16008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16010 lt_compiler_flag="-o out/conftest2.$ac_objext"
16011 # Insert the option either (1) after the last *FLAGS variable, or
16012 # (2) before a word containing "conftest.", or (3) at the end.
16013 # Note that $ac_compile itself does not contain backslashes and begins
16014 # with a dollar sign (not a hyphen), so the echo should work correctly.
16015 lt_compile=`echo "$ac_compile" | $SED \
16016 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16018 -e 's:$: $lt_compiler_flag:'`
16019 (eval echo "\"\$as_me:16019: $lt_compile\"" >&5)
16020 (eval "$lt_compile" 2>out/conftest.err)
16022 cat out/conftest.err >&5
16023 echo "$as_me:16023: \$? = $ac_status" >&5
16024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16026 # The compiler can only warn and ignore the option if not recognized
16027 # So say no if there are warnings
16028 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16029 $SED '/^$/d' out/conftest.err >out/conftest.er2
16030 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16031 lt_cv_prog_compiler_c_o_F77=yes
16036 # SGI C++ compiler will create directory out/ii_files/ for
16037 # template instantiation
16038 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16039 $rm out/* && rmdir out
16045 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16046 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16049 hard_links="nottested"
16050 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16051 # do not overwrite the value of need_locks provided by the user
16052 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16053 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16058 ln conftest.a conftest.b 2>&5 || hard_links=no
16059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16060 echo "$as_me:$LINENO: result: $hard_links" >&5
16061 echo "${ECHO_T}$hard_links" >&6
16062 if test "$hard_links" = no; then
16063 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16064 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16071 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16072 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16075 allow_undefined_flag_F77=
16076 enable_shared_with_static_runtimes_F77=no
16078 archive_expsym_cmds_F77=
16079 old_archive_From_new_cmds_F77=
16080 old_archive_from_expsyms_cmds_F77=
16081 export_dynamic_flag_spec_F77=
16082 whole_archive_flag_spec_F77=
16083 thread_safe_flag_spec_F77=
16084 hardcode_libdir_flag_spec_F77=
16085 hardcode_libdir_flag_spec_ld_F77=
16086 hardcode_libdir_separator_F77=
16087 hardcode_direct_F77=no
16088 hardcode_minus_L_F77=no
16089 hardcode_shlibpath_var_F77=unsupported
16090 link_all_deplibs_F77=unknown
16091 hardcode_automatic_F77=no
16093 module_expsym_cmds_F77=
16094 always_export_symbols_F77=no
16095 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16096 # include_expsyms should be a list of space-separated symbols to be *always*
16097 # included in the symbol list
16098 include_expsyms_F77=
16099 # exclude_expsyms can be an extended regexp of symbols to exclude
16100 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16101 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16102 # as well as any symbol that contains `d'.
16103 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16104 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16105 # platforms (ab)use it in PIC code, but their linkers get confused if
16106 # the symbol is explicitly referenced. Since portable code cannot
16107 # rely on this symbol name, it's probably fine to never include it in
16108 # preloaded symbol tables.
16109 extract_expsyms_cmds=
16110 # Just being paranoid about ensuring that cc_basename is set.
16111 for cc_temp in $compiler""; do
16113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16122 cygwin* | mingw* | pw32*)
16123 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16124 # When not using gcc, we currently assume that we are using
16125 # Microsoft Visual C++.
16126 if test "$GCC" != yes; then
16136 if test "$with_gnu_ld" = yes; then
16137 # If archive_cmds runs LD, not CC, wlarc should be empty
16140 # Set some defaults for GNU ld with shared library support. These
16141 # are reset later if shared libraries are not supported. Putting them
16142 # here allows them to be overridden if necessary.
16143 runpath_var=LD_RUN_PATH
16144 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16145 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16146 # ancient GNU ld didn't support --whole-archive et. al.
16147 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16148 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16150 whole_archive_flag_spec_F77=
16152 supports_anon_versioning=no
16153 case `$LD -v 2>/dev/null` in
16154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16157 *\ 2.11.*) ;; # other 2.11 versions
16158 *) supports_anon_versioning=yes ;;
16161 # See if GNU ld supports shared libraries.
16163 aix3* | aix4* | aix5*)
16164 # On AIX/PPC, the GNU linker is very broken
16165 if test "$host_cpu" != ia64; then
16169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16170 *** to be unable to reliably create shared libraries on AIX.
16171 *** Therefore, libtool is disabling shared libraries support. If you
16172 *** really care for shared libraries, you may want to modify your PATH
16173 *** so that a non-GNU linker is found, and then restart.
16180 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)'
16181 hardcode_libdir_flag_spec_F77='-L$libdir'
16182 hardcode_minus_L_F77=yes
16184 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16185 # that the semantics of dynamic libraries on AmigaOS, at least up
16186 # to version 4, is to share data among multiple programs linked
16187 # with the same dynamic library. Since this doesn't match the
16188 # behavior of shared libraries on other platforms, we can't use
16194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16195 allow_undefined_flag_F77=unsupported
16196 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16197 # support --undefined. This deserves some investigation. FIXME
16198 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16204 cygwin* | mingw* | pw32*)
16205 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16206 # as there is no search path for DLLs.
16207 hardcode_libdir_flag_spec_F77='-L$libdir'
16208 allow_undefined_flag_F77=unsupported
16209 always_export_symbols_F77=no
16210 enable_shared_with_static_runtimes_F77=yes
16211 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16213 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16214 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16215 # If the export-symbols file already is a .def file (1st line
16216 # is EXPORTS), use it as is; otherwise, prepend...
16217 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16218 cp $export_symbols $output_objdir/$soname.def;
16220 echo EXPORTS > $output_objdir/$soname.def;
16221 cat $export_symbols >> $output_objdir/$soname.def;
16223 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16232 case $cc_basename,$host_cpu in
16233 pgcc*) # Portland Group C compiler
16234 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'
16235 tmp_addflag=' $pic_flag'
16237 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16238 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'
16239 tmp_addflag=' $pic_flag -Mnomain' ;;
16240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16241 tmp_addflag=' -i_dynamic' ;;
16242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16243 tmp_addflag=' -i_dynamic -nofor_main' ;;
16244 ifc* | ifort*) # Intel Fortran compiler
16245 tmp_addflag=' -nofor_main' ;;
16247 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16249 if test $supports_anon_versioning = yes; then
16250 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16252 $echo "local: *; };" >> $output_objdir/$libname.ver~
16253 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16262 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16266 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16271 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16276 *** create shared libraries on Solaris systems. Therefore, libtool
16277 *** is disabling shared libraries support. We urge you to upgrade GNU
16278 *** binutils to release 2.9.1 or newer. Another option is to modify
16279 *** your PATH or compiler configuration so that the native linker is
16280 *** used, and then restart.
16283 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16285 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16292 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16294 hardcode_direct_F77=yes
16295 hardcode_shlibpath_var_F77=no
16299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16301 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16308 if test "$ld_shlibs_F77" = no; then
16310 hardcode_libdir_flag_spec_F77=
16311 export_dynamic_flag_spec_F77=
16312 whole_archive_flag_spec_F77=
16315 # PORTME fill in a description of your system's linker (not GNU ld)
16318 allow_undefined_flag_F77=unsupported
16319 always_export_symbols_F77=yes
16320 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'
16321 # Note: this linker hardcodes the directories in LIBPATH if there
16322 # are no directories specified by -L.
16323 hardcode_minus_L_F77=yes
16324 if test "$GCC" = yes && test -z "$link_static_flag"; then
16325 # Neither direct hardcoding nor static linking is supported with a
16327 hardcode_direct_F77=unsupported
16332 if test "$host_cpu" = ia64; then
16333 # On IA64, the linker does run time linking by default, so we don't
16334 # have to do anything special.
16335 aix_use_runtimelinking=no
16336 exp_sym_flag='-Bexport'
16339 # If we're using GNU nm, then we don't want the "-C" option.
16340 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16341 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16342 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'
16344 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'
16346 aix_use_runtimelinking=no
16348 # Test if we are trying to use run time linking or normal
16349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16350 # need to do runtime linking.
16351 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16352 for ld_flag in $LDFLAGS; do
16353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16354 aix_use_runtimelinking=yes
16360 exp_sym_flag='-bexport'
16361 no_entry_flag='-bnoentry'
16364 # When large executables or shared objects are built, AIX ld can
16365 # have problems creating the table of contents. If linking a library
16366 # or program results in "error TOC overflow" add -mminimal-toc to
16367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16370 archive_cmds_F77=''
16371 hardcode_direct_F77=yes
16372 hardcode_libdir_separator_F77=':'
16373 link_all_deplibs_F77=yes
16375 if test "$GCC" = yes; then
16376 case $host_os in aix4.[012]|aix4.[012].*)
16377 # We only want to do this on AIX 4.2 and lower, the check
16378 # below for broken collect2 doesn't work under 4.3+
16379 collect2name=`${CC} -print-prog-name=collect2`
16380 if test -f "$collect2name" && \
16381 strings "$collect2name" | grep resolve_lib_name >/dev/null
16383 # We have reworked collect2
16384 hardcode_direct_F77=yes
16386 # We have old collect2
16387 hardcode_direct_F77=unsupported
16388 # It fails to find uninstalled libraries when the uninstalled
16389 # path is not listed in the libpath. Setting hardcode_minus_L
16390 # to unsupported forces relinking
16391 hardcode_minus_L_F77=yes
16392 hardcode_libdir_flag_spec_F77='-L$libdir'
16393 hardcode_libdir_separator_F77=
16396 shared_flag='-shared'
16397 if test "$aix_use_runtimelinking" = yes; then
16398 shared_flag="$shared_flag "'${wl}-G'
16402 if test "$host_cpu" = ia64; then
16403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16404 # chokes on -Wl,-G. The following line is correct:
16407 if test "$aix_use_runtimelinking" = yes; then
16408 shared_flag='${wl}-G'
16410 shared_flag='${wl}-bM:SRE'
16415 # It seems that -bexpall does not export symbols beginning with
16416 # underscore (_), so it is better to generate a list of symbols to export.
16417 always_export_symbols_F77=yes
16418 if test "$aix_use_runtimelinking" = yes; then
16419 # Warning - without using the other runtime loading flags (-brtl),
16420 # -berok will link without error, but may produce a broken library.
16421 allow_undefined_flag_F77='-berok'
16422 # Determine the default libpath from the value encoded in an empty executable.
16423 cat >conftest.$ac_ext <<_ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430 (eval $ac_link) 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_f77_werror_flag"
16438 || test ! -s conftest.err'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest$ac_exeext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16453 # Check for a 64-bit object if we didn't find anything.
16454 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; }
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16461 rm -f conftest.err conftest.$ac_objext \
16462 conftest$ac_exeext conftest.$ac_ext
16463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16465 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16466 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"
16468 if test "$host_cpu" = ia64; then
16469 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16470 allow_undefined_flag_F77="-z nodefs"
16471 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"
16473 # Determine the default libpath from the value encoded in an empty executable.
16474 cat >conftest.$ac_ext <<_ACEOF
16479 rm -f conftest.$ac_objext conftest$ac_exeext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16481 (eval $ac_link) 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_f77_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest$ac_exeext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16504 # Check for a 64-bit object if we didn't find anything.
16505 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; }
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16512 rm -f conftest.err conftest.$ac_objext \
16513 conftest$ac_exeext conftest.$ac_ext
16514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16516 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16517 # Warning - without using the other run time loading flags,
16518 # -berok will link without error, but may produce a broken library.
16519 no_undefined_flag_F77=' ${wl}-bernotok'
16520 allow_undefined_flag_F77=' ${wl}-berok'
16521 # -bexpall does not export symbols beginning with underscore (_)
16522 always_export_symbols_F77=yes
16523 # Exported symbols can be pulled into shared objects from archives
16524 whole_archive_flag_spec_F77=' '
16525 archive_cmds_need_lc_F77=yes
16526 # This is similar to how AIX traditionally builds it's shared libraries.
16527 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'
16533 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)'
16534 hardcode_libdir_flag_spec_F77='-L$libdir'
16535 hardcode_minus_L_F77=yes
16536 # see comment about different semantics on the GNU ld section
16541 export_dynamic_flag_spec_F77=-rdynamic
16544 cygwin* | mingw* | pw32*)
16545 # When not using gcc, we currently assume that we are using
16546 # Microsoft Visual C++.
16547 # hardcode_libdir_flag_spec is actually meaningless, as there is
16548 # no search path for DLLs.
16549 hardcode_libdir_flag_spec_F77=' '
16550 allow_undefined_flag_F77=unsupported
16551 # Tell ltmain to make .lib files, not .a files.
16553 # Tell ltmain to make .dll files, not .so files.
16555 # FIXME: Setting linknames here is a bad hack.
16556 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16557 # The linker will automatically build a .lib file if we build a DLL.
16558 old_archive_From_new_cmds_F77='true'
16559 # FIXME: Should let the user specify the lib program.
16560 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16561 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16562 enable_shared_with_static_runtimes_F77=yes
16565 darwin* | rhapsody*)
16567 rhapsody* | darwin1.[012])
16568 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16571 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16572 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16574 case ${MACOSX_DEPLOYMENT_TARGET} in
16576 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16579 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16585 archive_cmds_need_lc_F77=no
16586 hardcode_direct_F77=no
16587 hardcode_automatic_F77=yes
16588 hardcode_shlibpath_var_F77=unsupported
16589 whole_archive_flag_spec_F77=''
16590 link_all_deplibs_F77=yes
16591 if test "$GCC" = yes ; then
16592 output_verbose_link_cmd='echo'
16593 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16594 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16595 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16596 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}'
16597 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}'
16599 case $cc_basename in
16601 output_verbose_link_cmd='echo'
16602 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16603 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16605 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}'
16606 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}'
16616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_libdir_flag_spec_F77='-L$libdir'
16618 hardcode_shlibpath_var_F77=no
16625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16626 # support. Future versions do this automatically, but an explicit c++rt0.o
16627 # does not break anything, and helps significantly (at the cost of a little
16630 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16631 hardcode_libdir_flag_spec_F77='-R$libdir'
16632 hardcode_direct_F77=yes
16633 hardcode_shlibpath_var_F77=no
16636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_direct_F77=yes
16640 hardcode_minus_L_F77=yes
16641 hardcode_shlibpath_var_F77=no
16644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16645 freebsd* | kfreebsd*-gnu | dragonfly*)
16646 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16647 hardcode_libdir_flag_spec_F77='-R$libdir'
16648 hardcode_direct_F77=yes
16649 hardcode_shlibpath_var_F77=no
16653 if test "$GCC" = yes; then
16654 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'
16656 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'
16658 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16659 hardcode_libdir_separator_F77=:
16660 hardcode_direct_F77=yes
16662 # hardcode_minus_L: Not really in the search PATH,
16663 # but as the default location of the library.
16664 hardcode_minus_L_F77=yes
16665 export_dynamic_flag_spec_F77='${wl}-E'
16669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16670 case "$host_cpu" in
16672 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16675 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16679 case "$host_cpu" in
16681 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16684 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16688 if test "$with_gnu_ld" = no; then
16689 case "$host_cpu" in
16691 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16692 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16693 hardcode_libdir_separator_F77=:
16694 hardcode_direct_F77=no
16695 hardcode_shlibpath_var_F77=no
16698 hardcode_libdir_flag_spec_F77='-L$libdir'
16699 hardcode_direct_F77=no
16700 hardcode_shlibpath_var_F77=no
16702 # hardcode_minus_L: Not really in the search PATH,
16703 # but as the default location of the library.
16704 hardcode_minus_L_F77=yes
16707 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16708 hardcode_libdir_separator_F77=:
16709 hardcode_direct_F77=yes
16710 export_dynamic_flag_spec_F77='${wl}-E'
16712 # hardcode_minus_L: Not really in the search PATH,
16713 # but as the default location of the library.
16714 hardcode_minus_L_F77=yes
16720 irix5* | irix6* | nonstopux*)
16721 if test "$GCC" = yes; then
16722 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'
16724 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'
16725 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16727 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16728 hardcode_libdir_separator_F77=:
16729 link_all_deplibs_F77=yes
16733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16734 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16736 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16738 hardcode_libdir_flag_spec_F77='-R$libdir'
16739 hardcode_direct_F77=yes
16740 hardcode_shlibpath_var_F77=no
16744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16745 hardcode_direct_F77=yes
16746 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16747 hardcode_libdir_separator_F77=:
16748 hardcode_shlibpath_var_F77=no
16752 hardcode_direct_F77=yes
16753 hardcode_shlibpath_var_F77=no
16754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16755 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16756 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16757 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16758 export_dynamic_flag_spec_F77='${wl}-E'
16761 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16762 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16763 hardcode_libdir_flag_spec_F77='-R$libdir'
16766 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16767 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16774 hardcode_libdir_flag_spec_F77='-L$libdir'
16775 hardcode_minus_L_F77=yes
16776 allow_undefined_flag_F77=unsupported
16777 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'
16778 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16782 if test "$GCC" = yes; then
16783 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16784 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'
16786 allow_undefined_flag_F77=' -expect_unresolved \*'
16787 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'
16789 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16790 hardcode_libdir_separator_F77=:
16793 osf4* | osf5*) # as osf3* with the addition of -msym flag
16794 if test "$GCC" = yes; then
16795 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16796 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'
16797 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16799 allow_undefined_flag_F77=' -expect_unresolved \*'
16800 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'
16801 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~
16802 $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'
16804 # Both c and cxx compiler support -rpath directly
16805 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16807 hardcode_libdir_separator_F77=:
16811 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16812 hardcode_shlibpath_var_F77=no
16813 export_dynamic_flag_spec_F77='${wl}-Bexport'
16814 runpath_var=LD_RUN_PATH
16815 hardcode_runpath_var=yes
16819 no_undefined_flag_F77=' -z text'
16820 if test "$GCC" = yes; then
16822 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16823 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16824 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16827 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16828 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16831 hardcode_libdir_flag_spec_F77='-R$libdir'
16832 hardcode_shlibpath_var_F77=no
16834 solaris2.[0-5] | solaris2.[0-5].*) ;;
16836 # The compiler driver will combine linker options so we
16837 # cannot just pass the convience library names through
16838 # without $wl, iff we do not link with $LD.
16839 # Luckily, gcc supports the same syntax we need for Sun Studio.
16840 # Supported since Solaris 2.6 (maybe 2.5.1?)
16843 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16845 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' ;;
16848 link_all_deplibs_F77=yes
16852 if test "x$host_vendor" = xsequent; then
16853 # Use $CC to link under sequent, because it throws in some extra .o
16854 # files that make .init and .fini sections work.
16855 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16857 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16859 hardcode_libdir_flag_spec_F77='-L$libdir'
16860 hardcode_direct_F77=yes
16861 hardcode_minus_L_F77=yes
16862 hardcode_shlibpath_var_F77=no
16866 case $host_vendor in
16868 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16869 hardcode_direct_F77=yes # is this really true???
16872 ## LD is ld it makes a PLAMLIB
16873 ## CC just makes a GrossModule.
16874 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16875 reload_cmds_F77='$CC -r -o $output$reload_objs'
16876 hardcode_direct_F77=no
16879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16880 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16883 runpath_var='LD_RUN_PATH'
16884 hardcode_shlibpath_var_F77=no
16888 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16889 hardcode_shlibpath_var_F77=no
16890 export_dynamic_flag_spec_F77='-Bexport'
16894 if test -d /usr/nec; then
16895 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16896 hardcode_shlibpath_var_F77=no
16897 runpath_var=LD_RUN_PATH
16898 hardcode_runpath_var=yes
16904 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16905 hardcode_direct_F77=yes
16906 hardcode_minus_L_F77=no
16907 hardcode_shlibpath_var_F77=no
16908 hardcode_runpath_var=yes
16909 runpath_var=LD_RUN_PATH
16912 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16913 no_undefined_flag_F77='${wl}-z ${wl}text'
16914 if test "$GCC" = yes; then
16915 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16917 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16919 runpath_var='LD_RUN_PATH'
16920 hardcode_shlibpath_var_F77=no
16924 no_undefined_flag_F77=' -z text'
16925 # $CC -shared without GNU ld will not create a library from C++
16926 # object files and a static libstdc++, better avoid it by now
16927 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16928 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16930 hardcode_libdir_flag_spec_F77=
16931 hardcode_shlibpath_var_F77=no
16932 runpath_var='LD_RUN_PATH'
16936 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16937 hardcode_libdir_flag_spec_F77='-L$libdir'
16938 hardcode_shlibpath_var_F77=no
16947 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16948 echo "${ECHO_T}$ld_shlibs_F77" >&6
16949 test "$ld_shlibs_F77" = no && can_build_shared=no
16951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16952 if test "$GCC" = yes; then
16953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16957 # Do we need to explicitly link libc?
16959 case "x$archive_cmds_need_lc_F77" in
16961 # Assume -lc should be added
16962 archive_cmds_need_lc_F77=yes
16964 if test "$enable_shared" = yes && test "$GCC" = yes; then
16965 case $archive_cmds_F77 in
16967 # FIXME: we may have to deal with multi-command sequences.
16970 # Test whether the compiler implicitly links with -lc since on some
16971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16972 # to ld, don't add -lc before -lgcc.
16973 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16974 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16979 (eval $ac_compile) 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } 2>conftest.err; then
16985 libobjs=conftest.$ac_objext
16987 wl=$lt_prog_compiler_wl_F77
16993 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16994 allow_undefined_flag_F77=
16995 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16996 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }
17001 archive_cmds_need_lc_F77=no
17003 archive_cmds_need_lc_F77=yes
17005 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17007 cat conftest.err 1>&5
17010 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17011 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17018 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17020 library_names_spec=
17021 libname_spec='lib$name'
17025 postuninstall_cmds=
17029 shlibpath_overrides_runpath=unknown
17031 dynamic_linker="$host_os ld.so"
17032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17033 if test "$GCC" = yes; then
17034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17035 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17036 # if the path contains ";" then we assume it to be the separator
17037 # otherwise default to the standard path separator (i.e. ":") - it is
17038 # assumed that no part of a normal pathname contains ";" but that should
17039 # okay in the real world where ";" in dirpaths is itself problematic.
17040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17047 need_lib_prefix=unknown
17048 hardcode_into_libs=no
17050 # when you set need_version to no, make sure it does not cause -set_version
17051 # flags to be left without arguments
17052 need_version=unknown
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17058 shlibpath_var=LIBPATH
17060 # AIX 3 has no versioning support, so we append a major version to the name.
17061 soname_spec='${libname}${release}${shared_ext}$major'
17068 hardcode_into_libs=yes
17069 if test "$host_cpu" = ia64; then
17070 # AIX 5 supports IA64
17071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17072 shlibpath_var=LD_LIBRARY_PATH
17074 # With GCC up to 2.95.x, collect2 would create an import file
17075 # for dependence libraries. The import file would start with
17076 # the line `#! .'. This would cause the generated library to
17077 # depend on `.', always an invalid library. This was fixed in
17078 # development snapshots of GCC prior to 3.0.
17080 aix4 | aix4.[01] | aix4.[01].*)
17081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17086 can_build_shared=no
17090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17091 # soname into executable. Probably we can add versioning support to
17092 # collect2, so additional links can be useful in future.
17093 if test "$aix_use_runtimelinking" = yes; then
17094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17095 # instead of lib<name>.a to let people know that these are not
17096 # typical AIX shared libraries.
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 # We preserve .a as extension for shared libraries through AIX4.2
17100 # and later when we are not doing run time linking.
17101 library_names_spec='${libname}${release}.a $libname.a'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17104 shlibpath_var=LIBPATH
17109 library_names_spec='$libname.ixlibrary $libname.a'
17110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17111 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'
17115 library_names_spec='${libname}${shared_ext}'
17116 dynamic_linker="$host_os ld.so"
17117 shlibpath_var=LIBRARY_PATH
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124 soname_spec='${libname}${release}${shared_ext}$major'
17125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17129 # the default ld.so.conf also contains /usr/contrib/lib and
17130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17131 # libtool to hard-code these into programs
17134 cygwin* | mingw* | pw32*)
17135 version_type=windows
17140 case $GCC,$host_os in
17141 yes,cygwin* | yes,mingw* | yes,pw32*)
17142 library_names_spec='$libname.dll.a'
17143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17144 postinstall_cmds='base_file=`basename \${file}`~
17145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17146 dldir=$destdir/`dirname \$dlpath`~
17147 test -d \$dldir || mkdir -p \$dldir~
17148 $install_prog $dir/$dlname \$dldir/$dlname'
17149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17150 dlpath=$dir/\$dldll~
17152 shlibpath_overrides_runpath=yes
17156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17158 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17161 # MinGW DLLs use traditional 'lib' prefix
17162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17164 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17165 # It is most probably a Windows format PATH printed by
17166 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17167 # path with ; separators, and with drive letters. We can handle the
17168 # drive letters (cygwin fileutils understands them), so leave them,
17169 # especially as we might pass files found there to a mingw objdump,
17170 # which wouldn't understand a cygwinified path. Ahh.
17171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17177 # pw32 DLLs use 'pw' prefix rather than 'lib'
17178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17187 dynamic_linker='Win32 ld.exe'
17188 # FIXME: first we should search . and the directory the executable is in
17192 darwin* | rhapsody*)
17193 dynamic_linker="$host_os dyld"
17194 version_type=darwin
17197 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17198 soname_spec='${libname}${release}${major}$shared_ext'
17199 shlibpath_overrides_runpath=yes
17200 shlibpath_var=DYLD_LIBRARY_PATH
17201 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17202 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17203 if test "$GCC" = yes; then
17204 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"`
17206 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17216 soname_spec='${libname}${release}${shared_ext}$major'
17217 shlibpath_var=LD_LIBRARY_PATH
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 shlibpath_var=LD_LIBRARY_PATH
17231 shlibpath_overrides_runpath=no
17232 hardcode_into_libs=yes
17233 dynamic_linker='GNU ld.so'
17236 freebsd* | dragonfly*)
17237 # DragonFly does not have aout. When/if they implement a new
17238 # versioning mechanism, adjust this.
17239 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17240 version_type=freebsd-$objformat
17241 case $version_type in
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17252 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=yes
17257 freebsd3.[01]* | freebsdelf3.[01]*)
17258 shlibpath_overrides_runpath=yes
17259 hardcode_into_libs=yes
17262 shlibpath_overrides_runpath=no
17263 hardcode_into_libs=yes
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 hardcode_into_libs=yes
17278 hpux9* | hpux10* | hpux11*)
17279 # Give a soname corresponding to the major version so that dld.sl refuses to
17280 # link against other versions.
17284 case "$host_cpu" in
17287 hardcode_into_libs=yes
17288 dynamic_linker="$host_os dld.so"
17289 shlibpath_var=LD_LIBRARY_PATH
17290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 soname_spec='${libname}${release}${shared_ext}$major'
17293 if test "X$HPUX_IA64_MODE" = X32; then
17294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17302 hardcode_into_libs=yes
17303 dynamic_linker="$host_os dld.sl"
17304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307 soname_spec='${libname}${release}${shared_ext}$major'
17308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17313 dynamic_linker="$host_os dld.sl"
17314 shlibpath_var=SHLIB_PATH
17315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17320 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17321 postinstall_cmds='chmod 555 $lib'
17324 irix5* | irix6* | nonstopux*)
17326 nonstopux*) version_type=nonstopux ;;
17328 if test "$lt_cv_prog_gnu_ld" = yes; then
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17339 irix5* | nonstopux*)
17340 libsuff= shlibsuff=
17343 case $LD in # libtool.m4 will add one of these switches to LD
17344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17345 libsuff= shlibsuff= libmagic=32-bit;;
17346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17347 libsuff=32 shlibsuff=N32 libmagic=N32;;
17348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17350 *) libsuff= shlibsuff= libmagic=never-match;;
17354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17355 shlibpath_overrides_runpath=no
17356 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17357 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17358 hardcode_into_libs=yes
17361 # No shared lib support for Linux oldld, aout, or coff.
17362 linux*oldld* | linux*aout* | linux*coff*)
17366 # This must be Linux ELF.
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 shlibpath_overrides_runpath=no
17376 # This implies no fast_install, which is unacceptable.
17377 # Some rework will be needed to allow for fast_install
17378 # before this can be enabled.
17379 hardcode_into_libs=yes
17381 # Append ld.so.conf contents to the search path
17382 if test -f /etc/ld.so.conf; then
17383 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' ' '`
17384 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17387 # We used to test for /lib/ld.so.1 and disable shared libraries on
17388 # powerpc, because MkLinux only supported shared libraries with the
17389 # GNU dynamic linker. Since this was broken with cross compilers,
17390 # most powerpc-linux boxes support dynamic linking these days and
17391 # people can always --disable-shared, the test was removed, and we
17392 # assume the GNU/Linux dynamic linker is in use.
17393 dynamic_linker='GNU/Linux ld.so'
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 shlibpath_var=LD_LIBRARY_PATH
17403 shlibpath_overrides_runpath=no
17404 hardcode_into_libs=yes
17405 dynamic_linker='GNU ld.so'
17412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415 dynamic_linker='NetBSD (a.out) ld.so'
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 dynamic_linker='NetBSD ld.elf_so'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath=yes
17423 hardcode_into_libs=yes
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 shlibpath_var=LD_LIBRARY_PATH
17430 shlibpath_overrides_runpath=yes
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 shlibpath_overrides_runpath=yes
17446 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17448 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17449 *) need_version=no ;;
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17456 openbsd2.[89] | openbsd2.[89].*)
17457 shlibpath_overrides_runpath=no
17460 shlibpath_overrides_runpath=yes
17464 shlibpath_overrides_runpath=yes
17469 libname_spec='$name'
17472 library_names_spec='$libname${shared_ext} $libname.a'
17473 dynamic_linker='OS/2 ld.exe'
17474 shlibpath_var=LIBPATH
17477 osf3* | osf4* | osf5*)
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483 shlibpath_var=LD_LIBRARY_PATH
17484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17490 soname_spec='${libname}${release}${shared_ext}$major'
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 shlibpath_var=LD_LIBRARY_PATH
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 soname_spec='${libname}${release}${shared_ext}$major'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 shlibpath_overrides_runpath=yes
17503 hardcode_into_libs=yes
17504 # ldd complains unless libraries are executable
17505 postinstall_cmds='chmod +x $lib'
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 shlibpath_overrides_runpath=yes
17514 if test "$with_gnu_ld" = yes; then
17520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17523 soname_spec='${libname}${release}${shared_ext}$major'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 case $host_vendor in
17527 shlibpath_overrides_runpath=no
17529 export_dynamic_flag_spec='${wl}-Blargedynsym'
17530 runpath_var=LD_RUN_PATH
17538 shlibpath_overrides_runpath=no
17539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17545 if test -d /usr/nec ;then
17547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17548 soname_spec='$libname${shared_ext}.$major'
17549 shlibpath_var=LD_LIBRARY_PATH
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556 soname_spec='${libname}${release}${shared_ext}$major'
17557 shlibpath_var=LD_LIBRARY_PATH
17564 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17565 echo "${ECHO_T}$dynamic_linker" >&6
17566 test "$dynamic_linker" = no && can_build_shared=no
17568 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17569 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17570 hardcode_action_F77=
17571 if test -n "$hardcode_libdir_flag_spec_F77" || \
17572 test -n "$runpath_var_F77" || \
17573 test "X$hardcode_automatic_F77" = "Xyes" ; then
17575 # We can hardcode non-existant directories.
17576 if test "$hardcode_direct_F77" != no &&
17577 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17578 # have to relink, otherwise we might link with an installed library
17579 # when we should be linking with a yet-to-be-installed one
17580 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17581 test "$hardcode_minus_L_F77" != no; then
17582 # Linking always hardcodes the temporary library directory.
17583 hardcode_action_F77=relink
17585 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17586 hardcode_action_F77=immediate
17589 # We cannot hardcode anything, or else we can only hardcode existing
17591 hardcode_action_F77=unsupported
17593 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17594 echo "${ECHO_T}$hardcode_action_F77" >&6
17596 if test "$hardcode_action_F77" = relink; then
17597 # Fast installation is not supported
17598 enable_fast_install=no
17599 elif test "$shlibpath_overrides_runpath" = yes ||
17600 test "$enable_shared" = no; then
17601 # Fast installation is not necessary
17602 enable_fast_install=needless
17607 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17608 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17609 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17610 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17611 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17612 echo "$as_me:$LINENO: result: yes" >&5
17613 echo "${ECHO_T}yes" >&6
17615 # FIXME - insert some real tests, host_os isn't really good enough
17618 if test -n "$STRIP" ; then
17619 striplib="$STRIP -x"
17620 echo "$as_me:$LINENO: result: yes" >&5
17621 echo "${ECHO_T}yes" >&6
17623 echo "$as_me:$LINENO: result: no" >&5
17624 echo "${ECHO_T}no" >&6
17628 echo "$as_me:$LINENO: result: no" >&5
17629 echo "${ECHO_T}no" >&6
17636 # The else clause should only fire when bootstrapping the
17637 # libtool distribution, otherwise you forgot to ship ltmain.sh
17638 # with your package, and you will get complaints that there are
17639 # no rules to generate ltmain.sh.
17640 if test -f "$ltmain"; then
17641 # See if we are running on zsh, and set the options which allow our commands through
17642 # without removal of \ escapes.
17643 if test -n "${ZSH_VERSION+set}" ; then
17644 setopt NO_GLOB_SUBST
17646 # Now quote all the things that may contain metacharacters while being
17647 # careful not to overquote the AC_SUBSTed values. We take copies of the
17648 # variables and quote the copies for generation of the libtool script.
17649 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17651 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17652 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17653 deplibs_check_method reload_flag reload_cmds need_locks \
17654 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17655 lt_cv_sys_global_symbol_to_c_name_address \
17656 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17657 old_postinstall_cmds old_postuninstall_cmds \
17661 lt_prog_compiler_wl_F77 \
17662 lt_prog_compiler_pic_F77 \
17663 lt_prog_compiler_static_F77 \
17664 lt_prog_compiler_no_builtin_flag_F77 \
17665 export_dynamic_flag_spec_F77 \
17666 thread_safe_flag_spec_F77 \
17667 whole_archive_flag_spec_F77 \
17668 enable_shared_with_static_runtimes_F77 \
17669 old_archive_cmds_F77 \
17670 old_archive_from_new_cmds_F77 \
17671 predep_objects_F77 \
17672 postdep_objects_F77 \
17675 compiler_lib_search_path_F77 \
17677 archive_expsym_cmds_F77 \
17678 postinstall_cmds_F77 \
17679 postuninstall_cmds_F77 \
17680 old_archive_from_expsyms_cmds_F77 \
17681 allow_undefined_flag_F77 \
17682 no_undefined_flag_F77 \
17683 export_symbols_cmds_F77 \
17684 hardcode_libdir_flag_spec_F77 \
17685 hardcode_libdir_flag_spec_ld_F77 \
17686 hardcode_libdir_separator_F77 \
17687 hardcode_automatic_F77 \
17689 module_expsym_cmds_F77 \
17690 lt_cv_prog_compiler_c_o_F77 \
17691 exclude_expsyms_F77 \
17692 include_expsyms_F77; do
17695 old_archive_cmds_F77 | \
17696 old_archive_from_new_cmds_F77 | \
17697 archive_cmds_F77 | \
17698 archive_expsym_cmds_F77 | \
17699 module_cmds_F77 | \
17700 module_expsym_cmds_F77 | \
17701 old_archive_from_expsyms_cmds_F77 | \
17702 export_symbols_cmds_F77 | \
17703 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17704 postinstall_cmds | postuninstall_cmds | \
17705 old_postinstall_cmds | old_postuninstall_cmds | \
17706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17707 # Double-quote double-evaled strings.
17708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17717 *'\$0 --fallback-echo"')
17718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17724 cat <<__EOF__ >> "$cfgfile"
17725 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17729 # Shell to use when invoking shell scripts.
17732 # Whether or not to build shared libraries.
17733 build_libtool_libs=$enable_shared
17735 # Whether or not to build static libraries.
17736 build_old_libs=$enable_static
17738 # Whether or not to add -lc for building shared libraries.
17739 build_libtool_need_lc=$archive_cmds_need_lc_F77
17741 # Whether or not to disallow shared libs when runtime libs are static
17742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17744 # Whether or not to optimize for fast installation.
17745 fast_install=$enable_fast_install
17748 host_alias=$host_alias
17752 # The build system.
17753 build_alias=$build_alias
17757 # An echo program that does not interpret backslashes.
17762 AR_FLAGS=$lt_AR_FLAGS
17767 # A language-specific compiler.
17768 CC=$lt_compiler_F77
17770 # Is the compiler the GNU C compiler?
17776 # The linker used to build libraries.
17779 # Whether we need hard or soft links.
17782 # A BSD-compatible nm program.
17785 # A symbol stripping program
17788 # Used to examine libraries when file_magic_cmd begins "file"
17789 MAGIC_CMD=$MAGIC_CMD
17791 # Used on cygwin: DLL creation program.
17794 # Used on cygwin: object dumper.
17797 # Used on cygwin: assembler.
17800 # The name of the directory that contains temporary libtool files.
17803 # How to create reloadable object files.
17804 reload_flag=$lt_reload_flag
17805 reload_cmds=$lt_reload_cmds
17807 # How to pass a linker flag through the compiler.
17808 wl=$lt_lt_prog_compiler_wl_F77
17810 # Object file suffix (normally "o").
17811 objext="$ac_objext"
17813 # Old archive suffix (normally "a").
17816 # Shared library suffix (normally ".so").
17817 shrext_cmds='$shrext_cmds'
17819 # Executable file suffix (normally "").
17822 # Additional compiler flags for building library objects.
17823 pic_flag=$lt_lt_prog_compiler_pic_F77
17826 # What is the maximum length of a command?
17827 max_cmd_len=$lt_cv_sys_max_cmd_len
17829 # Does compiler simultaneously support -c and -o options?
17830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17832 # Must we lock files when doing compilation?
17833 need_locks=$lt_need_locks
17835 # Do we need the lib prefix for modules?
17836 need_lib_prefix=$need_lib_prefix
17838 # Do we need a version for libraries?
17839 need_version=$need_version
17841 # Whether dlopen is supported.
17842 dlopen_support=$enable_dlopen
17844 # Whether dlopen of programs is supported.
17845 dlopen_self=$enable_dlopen_self
17847 # Whether dlopen of statically linked programs is supported.
17848 dlopen_self_static=$enable_dlopen_self_static
17850 # Compiler flag to prevent dynamic linking.
17851 link_static_flag=$lt_lt_prog_compiler_static_F77
17853 # Compiler flag to turn off builtin functions.
17854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17856 # Compiler flag to allow reflexive dlopens.
17857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17859 # Compiler flag to generate shared objects directly from archives.
17860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17862 # Compiler flag to generate thread-safe objects.
17863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17865 # Library versioning type.
17866 version_type=$version_type
17868 # Format of library name prefix.
17869 libname_spec=$lt_libname_spec
17871 # List of archive names. First name is the real one, the rest are links.
17872 # The last name is the one that the linker finds with -lNAME.
17873 library_names_spec=$lt_library_names_spec
17875 # The coded name of the library, if different from the real name.
17876 soname_spec=$lt_soname_spec
17878 # Commands used to build and install an old-style archive.
17880 old_archive_cmds=$lt_old_archive_cmds_F77
17881 old_postinstall_cmds=$lt_old_postinstall_cmds
17882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17884 # Create an old-style archive from a shared archive.
17885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17887 # Create a temporary old-style archive to link instead of a shared archive.
17888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17890 # Commands used to build and install a shared archive.
17891 archive_cmds=$lt_archive_cmds_F77
17892 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17893 postinstall_cmds=$lt_postinstall_cmds
17894 postuninstall_cmds=$lt_postuninstall_cmds
17896 # Commands used to build a loadable module (assumed same as above if empty)
17897 module_cmds=$lt_module_cmds_F77
17898 module_expsym_cmds=$lt_module_expsym_cmds_F77
17900 # Commands to strip libraries.
17901 old_striplib=$lt_old_striplib
17902 striplib=$lt_striplib
17904 # Dependencies to place before the objects being linked to create a
17906 predep_objects=$lt_predep_objects_F77
17908 # Dependencies to place after the objects being linked to create a
17910 postdep_objects=$lt_postdep_objects_F77
17912 # Dependencies to place before the objects being linked to create a
17914 predeps=$lt_predeps_F77
17916 # Dependencies to place after the objects being linked to create a
17918 postdeps=$lt_postdeps_F77
17920 # The library search path used internally by the compiler when linking
17921 # a shared library.
17922 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17924 # Method to check whether dependent libraries are shared objects.
17925 deplibs_check_method=$lt_deplibs_check_method
17927 # Command to use when deplibs_check_method == file_magic.
17928 file_magic_cmd=$lt_file_magic_cmd
17930 # Flag that allows shared libraries with undefined symbols to be built.
17931 allow_undefined_flag=$lt_allow_undefined_flag_F77
17933 # Flag that forces no undefined symbols.
17934 no_undefined_flag=$lt_no_undefined_flag_F77
17936 # Commands used to finish a libtool library installation in a directory.
17937 finish_cmds=$lt_finish_cmds
17939 # Same as above, but a single script fragment to be evaled but not shown.
17940 finish_eval=$lt_finish_eval
17942 # Take the output of nm and produce a listing of raw symbols and C names.
17943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17945 # Transform the output of nm in a proper C declaration
17946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17948 # Transform the output of nm in a C name address pair
17949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17951 # This is the shared library runtime path variable.
17952 runpath_var=$runpath_var
17954 # This is the shared library path variable.
17955 shlibpath_var=$shlibpath_var
17957 # Is shlibpath searched before the hard-coded library search path?
17958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17960 # How to hardcode a shared library path into an executable.
17961 hardcode_action=$hardcode_action_F77
17963 # Whether we should hardcode library paths into libraries.
17964 hardcode_into_libs=$hardcode_into_libs
17966 # Flag to hardcode \$libdir into a binary during linking.
17967 # This must work even if \$libdir does not exist.
17968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17970 # If ld is used when linking, flag to hardcode \$libdir into
17971 # a binary during linking. This must work even if \$libdir does
17973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17975 # Whether we need a single -rpath flag with a separated argument.
17976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17979 # resulting binary.
17980 hardcode_direct=$hardcode_direct_F77
17982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17983 # resulting binary.
17984 hardcode_minus_L=$hardcode_minus_L_F77
17986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17987 # the resulting binary.
17988 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17990 # Set to yes if building a shared library automatically hardcodes DIR into the library
17991 # and all subsequent libraries and executables linked against it.
17992 hardcode_automatic=$hardcode_automatic_F77
17994 # Variables whose values should be saved in libtool wrapper scripts and
17995 # restored at relink time.
17996 variables_saved_for_relink="$variables_saved_for_relink"
17998 # Whether libtool must link a program against all its dependency libraries.
17999 link_all_deplibs=$link_all_deplibs_F77
18001 # Compile-time system search path for libraries
18002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18004 # Run-time system search path for libraries
18005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18007 # Fix the shell variable \$srcfile for the compiler.
18008 fix_srcfile_path="$fix_srcfile_path_F77"
18010 # Set to yes if exported symbols are required.
18011 always_export_symbols=$always_export_symbols_F77
18013 # The commands to list exported symbols.
18014 export_symbols_cmds=$lt_export_symbols_cmds_F77
18016 # The commands to extract the exported symbol list from a shared archive.
18017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18019 # Symbols that should not be listed in the preloaded symbols.
18020 exclude_expsyms=$lt_exclude_expsyms_F77
18022 # Symbols that must always be exported.
18023 include_expsyms=$lt_include_expsyms_F77
18025 # ### END LIBTOOL TAG CONFIG: $tagname
18031 # If there is no Makefile yet, we rely on a make rule to execute
18032 # `config.status --recheck' to rerun these tests and create the
18033 # libtool script then.
18034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18035 if test -f "$ltmain_in"; then
18036 test -f Makefile && make "$ltmain"
18042 ac_cpp='$CPP $CPPFLAGS'
18043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18055 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18059 # Source file extension for Java test sources.
18062 # Object file extension for compiled Java test sources.
18066 # Code to be used in simple compile tests
18067 lt_simple_compile_test_code="class foo {}\n"
18069 # Code to be used in simple link tests
18070 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18074 # If no C compiler was specified, use CC.
18077 # Allow CC to be a program name with arguments.
18081 # save warnings/boilerplate of simple test code
18082 ac_outfile=conftest.$ac_objext
18083 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18084 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18085 _lt_compiler_boilerplate=`cat conftest.err`
18088 ac_outfile=conftest.$ac_objext
18089 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18090 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18091 _lt_linker_boilerplate=`cat conftest.err`
18095 # Allow CC to be a program name with arguments.
18100 for cc_temp in $compiler""; do
18102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18111 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18112 archive_cmds_need_lc_GCJ=no
18114 old_archive_cmds_GCJ=$old_archive_cmds
18117 lt_prog_compiler_no_builtin_flag_GCJ=
18119 if test "$GCC" = yes; then
18120 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18123 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18124 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18125 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18128 lt_cv_prog_compiler_rtti_exceptions=no
18129 ac_outfile=conftest.$ac_objext
18130 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18131 lt_compiler_flag="-fno-rtti -fno-exceptions"
18132 # Insert the option either (1) after the last *FLAGS variable, or
18133 # (2) before a word containing "conftest.", or (3) at the end.
18134 # Note that $ac_compile itself does not contain backslashes and begins
18135 # with a dollar sign (not a hyphen), so the echo should work correctly.
18136 # The option is referenced via a variable to avoid confusing sed.
18137 lt_compile=`echo "$ac_compile" | $SED \
18138 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18140 -e 's:$: $lt_compiler_flag:'`
18141 (eval echo "\"\$as_me:18141: $lt_compile\"" >&5)
18142 (eval "$lt_compile" 2>conftest.err)
18144 cat conftest.err >&5
18145 echo "$as_me:18145: \$? = $ac_status" >&5
18146 if (exit $ac_status) && test -s "$ac_outfile"; then
18147 # The compiler can only warn and ignore the option if not recognized
18148 # So say no if there are warnings other than the usual output.
18149 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18150 $SED '/^$/d' conftest.err >conftest.er2
18151 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18152 lt_cv_prog_compiler_rtti_exceptions=yes
18158 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18159 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18161 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18162 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18169 lt_prog_compiler_wl_GCJ=
18170 lt_prog_compiler_pic_GCJ=
18171 lt_prog_compiler_static_GCJ=
18173 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18174 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18176 if test "$GCC" = yes; then
18177 lt_prog_compiler_wl_GCJ='-Wl,'
18178 lt_prog_compiler_static_GCJ='-static'
18182 # All AIX code is PIC.
18183 if test "$host_cpu" = ia64; then
18184 # AIX 5 now supports IA64 processor
18185 lt_prog_compiler_static_GCJ='-Bstatic'
18190 # FIXME: we need at least 68020 code to build shared libraries, but
18191 # adding the `-m68020' flag to GCC prevents building anything better,
18193 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18196 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18197 # PIC is the default for these OSes.
18200 mingw* | pw32* | os2*)
18201 # This hack is so that the source file can tell whether it is being
18202 # built for inclusion in a dll (and should export symbols for example).
18203 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18206 darwin* | rhapsody*)
18207 # PIC is the default on this platform
18208 # Common symbols not allowed in MH_DYLIB files
18209 lt_prog_compiler_pic_GCJ='-fno-common'
18213 # Just because we use GCC doesn't mean we suddenly get shared libraries
18214 # on systems that don't support them.
18215 lt_prog_compiler_can_build_shared_GCJ=no
18220 if test -d /usr/nec; then
18221 lt_prog_compiler_pic_GCJ=-Kconform_pic
18226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18227 # not for PA HP-UX.
18228 case "$host_cpu" in
18233 lt_prog_compiler_pic_GCJ='-fPIC'
18239 lt_prog_compiler_pic_GCJ='-fPIC'
18243 # PORTME Check for flag to pass linker flags through the system compiler.
18246 lt_prog_compiler_wl_GCJ='-Wl,'
18247 if test "$host_cpu" = ia64; then
18248 # AIX 5 now supports IA64 processor
18249 lt_prog_compiler_static_GCJ='-Bstatic'
18251 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18255 # PIC is the default on this platform
18256 # Common symbols not allowed in MH_DYLIB files
18257 case $cc_basename in
18259 lt_prog_compiler_pic_GCJ='-qnocommon'
18260 lt_prog_compiler_wl_GCJ='-Wl,'
18265 mingw* | pw32* | os2*)
18266 # This hack is so that the source file can tell whether it is being
18267 # built for inclusion in a dll (and should export symbols for example).
18268 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18271 hpux9* | hpux10* | hpux11*)
18272 lt_prog_compiler_wl_GCJ='-Wl,'
18273 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18274 # not for PA HP-UX.
18275 case "$host_cpu" in
18280 lt_prog_compiler_pic_GCJ='+Z'
18283 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18284 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18287 irix5* | irix6* | nonstopux*)
18288 lt_prog_compiler_wl_GCJ='-Wl,'
18289 # PIC (with -KPIC) is the default.
18290 lt_prog_compiler_static_GCJ='-non_shared'
18294 lt_prog_compiler_pic_GCJ='-KPIC'
18295 lt_prog_compiler_static_GCJ='-Bstatic'
18299 case $cc_basename in
18301 lt_prog_compiler_wl_GCJ='-Wl,'
18302 lt_prog_compiler_pic_GCJ='-KPIC'
18303 lt_prog_compiler_static_GCJ='-static'
18305 pgcc* | pgf77* | pgf90*)
18306 # Portland Group compilers (*not* the Pentium gcc compiler,
18307 # which looks to be a dead project)
18308 lt_prog_compiler_wl_GCJ='-Wl,'
18309 lt_prog_compiler_pic_GCJ='-fpic'
18310 lt_prog_compiler_static_GCJ='-static'
18313 lt_prog_compiler_wl_GCJ='-Wl,'
18314 # All Alpha code is PIC.
18315 lt_prog_compiler_static_GCJ='-non_shared'
18320 osf3* | osf4* | osf5*)
18321 lt_prog_compiler_wl_GCJ='-Wl,'
18322 # All OSF/1 code is PIC.
18323 lt_prog_compiler_static_GCJ='-non_shared'
18327 lt_prog_compiler_pic_GCJ='-Kpic'
18328 lt_prog_compiler_static_GCJ='-dn'
18332 lt_prog_compiler_pic_GCJ='-KPIC'
18333 lt_prog_compiler_static_GCJ='-Bstatic'
18334 case $cc_basename in
18335 f77* | f90* | f95*)
18336 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18338 lt_prog_compiler_wl_GCJ='-Wl,';;
18343 lt_prog_compiler_wl_GCJ='-Qoption ld '
18344 lt_prog_compiler_pic_GCJ='-PIC'
18345 lt_prog_compiler_static_GCJ='-Bstatic'
18348 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18349 lt_prog_compiler_wl_GCJ='-Wl,'
18350 lt_prog_compiler_pic_GCJ='-KPIC'
18351 lt_prog_compiler_static_GCJ='-Bstatic'
18355 if test -d /usr/nec ;then
18356 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18357 lt_prog_compiler_static_GCJ='-Bstatic'
18362 lt_prog_compiler_wl_GCJ='-Wl,'
18363 lt_prog_compiler_can_build_shared_GCJ=no
18367 lt_prog_compiler_pic_GCJ='-pic'
18368 lt_prog_compiler_static_GCJ='-Bstatic'
18372 lt_prog_compiler_can_build_shared_GCJ=no
18377 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18378 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18381 # Check to make sure the PIC flag actually works.
18383 if test -n "$lt_prog_compiler_pic_GCJ"; then
18385 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18386 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18387 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 lt_prog_compiler_pic_works_GCJ=no
18391 ac_outfile=conftest.$ac_objext
18392 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18393 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18394 # Insert the option either (1) after the last *FLAGS variable, or
18395 # (2) before a word containing "conftest.", or (3) at the end.
18396 # Note that $ac_compile itself does not contain backslashes and begins
18397 # with a dollar sign (not a hyphen), so the echo should work correctly.
18398 # The option is referenced via a variable to avoid confusing sed.
18399 lt_compile=`echo "$ac_compile" | $SED \
18400 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18402 -e 's:$: $lt_compiler_flag:'`
18403 (eval echo "\"\$as_me:18403: $lt_compile\"" >&5)
18404 (eval "$lt_compile" 2>conftest.err)
18406 cat conftest.err >&5
18407 echo "$as_me:18407: \$? = $ac_status" >&5
18408 if (exit $ac_status) && test -s "$ac_outfile"; then
18409 # The compiler can only warn and ignore the option if not recognized
18410 # So say no if there are warnings other than the usual output.
18411 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18412 $SED '/^$/d' conftest.err >conftest.er2
18413 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18414 lt_prog_compiler_pic_works_GCJ=yes
18420 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18421 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18423 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18424 case $lt_prog_compiler_pic_GCJ in
18426 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18429 lt_prog_compiler_pic_GCJ=
18430 lt_prog_compiler_can_build_shared_GCJ=no
18435 # For platforms which do not support PIC, -DPIC is meaningless:
18437 lt_prog_compiler_pic_GCJ=
18440 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18444 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18445 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18446 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 lt_cv_prog_compiler_c_o_GCJ=no
18450 $rm -r conftest 2>/dev/null
18454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18456 lt_compiler_flag="-o out/conftest2.$ac_objext"
18457 # Insert the option either (1) after the last *FLAGS variable, or
18458 # (2) before a word containing "conftest.", or (3) at the end.
18459 # Note that $ac_compile itself does not contain backslashes and begins
18460 # with a dollar sign (not a hyphen), so the echo should work correctly.
18461 lt_compile=`echo "$ac_compile" | $SED \
18462 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18464 -e 's:$: $lt_compiler_flag:'`
18465 (eval echo "\"\$as_me:18465: $lt_compile\"" >&5)
18466 (eval "$lt_compile" 2>out/conftest.err)
18468 cat out/conftest.err >&5
18469 echo "$as_me:18469: \$? = $ac_status" >&5
18470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18472 # The compiler can only warn and ignore the option if not recognized
18473 # So say no if there are warnings
18474 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18475 $SED '/^$/d' out/conftest.err >out/conftest.er2
18476 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18477 lt_cv_prog_compiler_c_o_GCJ=yes
18482 # SGI C++ compiler will create directory out/ii_files/ for
18483 # template instantiation
18484 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18485 $rm out/* && rmdir out
18491 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18492 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18495 hard_links="nottested"
18496 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18497 # do not overwrite the value of need_locks provided by the user
18498 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18499 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18504 ln conftest.a conftest.b 2>&5 || hard_links=no
18505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18506 echo "$as_me:$LINENO: result: $hard_links" >&5
18507 echo "${ECHO_T}$hard_links" >&6
18508 if test "$hard_links" = no; then
18509 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18510 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18517 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18521 allow_undefined_flag_GCJ=
18522 enable_shared_with_static_runtimes_GCJ=no
18524 archive_expsym_cmds_GCJ=
18525 old_archive_From_new_cmds_GCJ=
18526 old_archive_from_expsyms_cmds_GCJ=
18527 export_dynamic_flag_spec_GCJ=
18528 whole_archive_flag_spec_GCJ=
18529 thread_safe_flag_spec_GCJ=
18530 hardcode_libdir_flag_spec_GCJ=
18531 hardcode_libdir_flag_spec_ld_GCJ=
18532 hardcode_libdir_separator_GCJ=
18533 hardcode_direct_GCJ=no
18534 hardcode_minus_L_GCJ=no
18535 hardcode_shlibpath_var_GCJ=unsupported
18536 link_all_deplibs_GCJ=unknown
18537 hardcode_automatic_GCJ=no
18539 module_expsym_cmds_GCJ=
18540 always_export_symbols_GCJ=no
18541 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18542 # include_expsyms should be a list of space-separated symbols to be *always*
18543 # included in the symbol list
18544 include_expsyms_GCJ=
18545 # exclude_expsyms can be an extended regexp of symbols to exclude
18546 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18548 # as well as any symbol that contains `d'.
18549 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18551 # platforms (ab)use it in PIC code, but their linkers get confused if
18552 # the symbol is explicitly referenced. Since portable code cannot
18553 # rely on this symbol name, it's probably fine to never include it in
18554 # preloaded symbol tables.
18555 extract_expsyms_cmds=
18556 # Just being paranoid about ensuring that cc_basename is set.
18557 for cc_temp in $compiler""; do
18559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18565 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18568 cygwin* | mingw* | pw32*)
18569 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18570 # When not using gcc, we currently assume that we are using
18571 # Microsoft Visual C++.
18572 if test "$GCC" != yes; then
18582 if test "$with_gnu_ld" = yes; then
18583 # If archive_cmds runs LD, not CC, wlarc should be empty
18586 # Set some defaults for GNU ld with shared library support. These
18587 # are reset later if shared libraries are not supported. Putting them
18588 # here allows them to be overridden if necessary.
18589 runpath_var=LD_RUN_PATH
18590 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18591 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18592 # ancient GNU ld didn't support --whole-archive et. al.
18593 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18594 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18596 whole_archive_flag_spec_GCJ=
18598 supports_anon_versioning=no
18599 case `$LD -v 2>/dev/null` in
18600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18603 *\ 2.11.*) ;; # other 2.11 versions
18604 *) supports_anon_versioning=yes ;;
18607 # See if GNU ld supports shared libraries.
18609 aix3* | aix4* | aix5*)
18610 # On AIX/PPC, the GNU linker is very broken
18611 if test "$host_cpu" != ia64; then
18615 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18616 *** to be unable to reliably create shared libraries on AIX.
18617 *** Therefore, libtool is disabling shared libraries support. If you
18618 *** really care for shared libraries, you may want to modify your PATH
18619 *** so that a non-GNU linker is found, and then restart.
18626 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)'
18627 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18628 hardcode_minus_L_GCJ=yes
18630 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18631 # that the semantics of dynamic libraries on AmigaOS, at least up
18632 # to version 4, is to share data among multiple programs linked
18633 # with the same dynamic library. Since this doesn't match the
18634 # behavior of shared libraries on other platforms, we can't use
18640 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18641 allow_undefined_flag_GCJ=unsupported
18642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18643 # support --undefined. This deserves some investigation. FIXME
18644 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18650 cygwin* | mingw* | pw32*)
18651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18652 # as there is no search path for DLLs.
18653 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18654 allow_undefined_flag_GCJ=unsupported
18655 always_export_symbols_GCJ=no
18656 enable_shared_with_static_runtimes_GCJ=yes
18657 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18660 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18661 # If the export-symbols file already is a .def file (1st line
18662 # is EXPORTS), use it as is; otherwise, prepend...
18663 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18664 cp $export_symbols $output_objdir/$soname.def;
18666 echo EXPORTS > $output_objdir/$soname.def;
18667 cat $export_symbols >> $output_objdir/$soname.def;
18669 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18678 case $cc_basename,$host_cpu in
18679 pgcc*) # Portland Group C compiler
18680 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'
18681 tmp_addflag=' $pic_flag'
18683 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18684 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'
18685 tmp_addflag=' $pic_flag -Mnomain' ;;
18686 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18687 tmp_addflag=' -i_dynamic' ;;
18688 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18689 tmp_addflag=' -i_dynamic -nofor_main' ;;
18690 ifc* | ifort*) # Intel Fortran compiler
18691 tmp_addflag=' -nofor_main' ;;
18693 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18695 if test $supports_anon_versioning = yes; then
18696 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18697 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18698 $echo "local: *; };" >> $output_objdir/$libname.ver~
18699 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18708 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18711 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18712 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18717 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18721 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18722 *** create shared libraries on Solaris systems. Therefore, libtool
18723 *** is disabling shared libraries support. We urge you to upgrade GNU
18724 *** binutils to release 2.9.1 or newer. Another option is to modify
18725 *** your PATH or compiler configuration so that the native linker is
18726 *** used, and then restart.
18729 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18730 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18731 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18738 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18740 hardcode_direct_GCJ=yes
18741 hardcode_shlibpath_var_GCJ=no
18745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18746 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18747 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18754 if test "$ld_shlibs_GCJ" = no; then
18756 hardcode_libdir_flag_spec_GCJ=
18757 export_dynamic_flag_spec_GCJ=
18758 whole_archive_flag_spec_GCJ=
18761 # PORTME fill in a description of your system's linker (not GNU ld)
18764 allow_undefined_flag_GCJ=unsupported
18765 always_export_symbols_GCJ=yes
18766 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'
18767 # Note: this linker hardcodes the directories in LIBPATH if there
18768 # are no directories specified by -L.
18769 hardcode_minus_L_GCJ=yes
18770 if test "$GCC" = yes && test -z "$link_static_flag"; then
18771 # Neither direct hardcoding nor static linking is supported with a
18773 hardcode_direct_GCJ=unsupported
18778 if test "$host_cpu" = ia64; then
18779 # On IA64, the linker does run time linking by default, so we don't
18780 # have to do anything special.
18781 aix_use_runtimelinking=no
18782 exp_sym_flag='-Bexport'
18785 # If we're using GNU nm, then we don't want the "-C" option.
18786 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18787 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18788 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'
18790 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'
18792 aix_use_runtimelinking=no
18794 # Test if we are trying to use run time linking or normal
18795 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18796 # need to do runtime linking.
18797 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18798 for ld_flag in $LDFLAGS; do
18799 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18800 aix_use_runtimelinking=yes
18806 exp_sym_flag='-bexport'
18807 no_entry_flag='-bnoentry'
18810 # When large executables or shared objects are built, AIX ld can
18811 # have problems creating the table of contents. If linking a library
18812 # or program results in "error TOC overflow" add -mminimal-toc to
18813 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18814 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18816 archive_cmds_GCJ=''
18817 hardcode_direct_GCJ=yes
18818 hardcode_libdir_separator_GCJ=':'
18819 link_all_deplibs_GCJ=yes
18821 if test "$GCC" = yes; then
18822 case $host_os in aix4.[012]|aix4.[012].*)
18823 # We only want to do this on AIX 4.2 and lower, the check
18824 # below for broken collect2 doesn't work under 4.3+
18825 collect2name=`${CC} -print-prog-name=collect2`
18826 if test -f "$collect2name" && \
18827 strings "$collect2name" | grep resolve_lib_name >/dev/null
18829 # We have reworked collect2
18830 hardcode_direct_GCJ=yes
18832 # We have old collect2
18833 hardcode_direct_GCJ=unsupported
18834 # It fails to find uninstalled libraries when the uninstalled
18835 # path is not listed in the libpath. Setting hardcode_minus_L
18836 # to unsupported forces relinking
18837 hardcode_minus_L_GCJ=yes
18838 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18839 hardcode_libdir_separator_GCJ=
18842 shared_flag='-shared'
18843 if test "$aix_use_runtimelinking" = yes; then
18844 shared_flag="$shared_flag "'${wl}-G'
18848 if test "$host_cpu" = ia64; then
18849 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18850 # chokes on -Wl,-G. The following line is correct:
18853 if test "$aix_use_runtimelinking" = yes; then
18854 shared_flag='${wl}-G'
18856 shared_flag='${wl}-bM:SRE'
18861 # It seems that -bexpall does not export symbols beginning with
18862 # underscore (_), so it is better to generate a list of symbols to export.
18863 always_export_symbols_GCJ=yes
18864 if test "$aix_use_runtimelinking" = yes; then
18865 # Warning - without using the other runtime loading flags (-brtl),
18866 # -berok will link without error, but may produce a broken library.
18867 allow_undefined_flag_GCJ='-berok'
18868 # Determine the default libpath from the value encoded in an empty executable.
18869 cat >conftest.$ac_ext <<_ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18884 rm -f conftest.$ac_objext conftest$ac_exeext
18885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18886 (eval $ac_link) 2>conftest.er1
18888 grep -v '^ *+' conftest.er1 >conftest.err
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -z "$ac_c_werror_flag"
18894 || test ! -s conftest.err'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; } &&
18900 { ac_try='test -s conftest$ac_exeext'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18909 # Check for a 64-bit object if we didn't find anything.
18910 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; }
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18917 rm -f conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18921 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18922 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"
18924 if test "$host_cpu" = ia64; then
18925 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18926 allow_undefined_flag_GCJ="-z nodefs"
18927 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"
18929 # Determine the default libpath from the value encoded in an empty executable.
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18947 (eval $ac_link) 2>conftest.er1
18949 grep -v '^ *+' conftest.er1 >conftest.err
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -z "$ac_c_werror_flag"
18955 || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18970 # Check for a 64-bit object if we didn't find anything.
18971 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; }
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18978 rm -f conftest.err conftest.$ac_objext \
18979 conftest$ac_exeext conftest.$ac_ext
18980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18982 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18983 # Warning - without using the other run time loading flags,
18984 # -berok will link without error, but may produce a broken library.
18985 no_undefined_flag_GCJ=' ${wl}-bernotok'
18986 allow_undefined_flag_GCJ=' ${wl}-berok'
18987 # -bexpall does not export symbols beginning with underscore (_)
18988 always_export_symbols_GCJ=yes
18989 # Exported symbols can be pulled into shared objects from archives
18990 whole_archive_flag_spec_GCJ=' '
18991 archive_cmds_need_lc_GCJ=yes
18992 # This is similar to how AIX traditionally builds it's shared libraries.
18993 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'
18999 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)'
19000 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19001 hardcode_minus_L_GCJ=yes
19002 # see comment about different semantics on the GNU ld section
19007 export_dynamic_flag_spec_GCJ=-rdynamic
19010 cygwin* | mingw* | pw32*)
19011 # When not using gcc, we currently assume that we are using
19012 # Microsoft Visual C++.
19013 # hardcode_libdir_flag_spec is actually meaningless, as there is
19014 # no search path for DLLs.
19015 hardcode_libdir_flag_spec_GCJ=' '
19016 allow_undefined_flag_GCJ=unsupported
19017 # Tell ltmain to make .lib files, not .a files.
19019 # Tell ltmain to make .dll files, not .so files.
19021 # FIXME: Setting linknames here is a bad hack.
19022 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19023 # The linker will automatically build a .lib file if we build a DLL.
19024 old_archive_From_new_cmds_GCJ='true'
19025 # FIXME: Should let the user specify the lib program.
19026 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19027 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19028 enable_shared_with_static_runtimes_GCJ=yes
19031 darwin* | rhapsody*)
19033 rhapsody* | darwin1.[012])
19034 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19037 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19038 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19040 case ${MACOSX_DEPLOYMENT_TARGET} in
19042 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19045 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19051 archive_cmds_need_lc_GCJ=no
19052 hardcode_direct_GCJ=no
19053 hardcode_automatic_GCJ=yes
19054 hardcode_shlibpath_var_GCJ=unsupported
19055 whole_archive_flag_spec_GCJ=''
19056 link_all_deplibs_GCJ=yes
19057 if test "$GCC" = yes ; then
19058 output_verbose_link_cmd='echo'
19059 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19060 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19061 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19062 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}'
19063 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}'
19065 case $cc_basename in
19067 output_verbose_link_cmd='echo'
19068 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19069 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19071 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}'
19072 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}'
19082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19084 hardcode_shlibpath_var_GCJ=no
19091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19092 # support. Future versions do this automatically, but an explicit c++rt0.o
19093 # does not break anything, and helps significantly (at the cost of a little
19096 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19097 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19098 hardcode_direct_GCJ=yes
19099 hardcode_shlibpath_var_GCJ=no
19102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19104 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19105 hardcode_direct_GCJ=yes
19106 hardcode_minus_L_GCJ=yes
19107 hardcode_shlibpath_var_GCJ=no
19110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19111 freebsd* | kfreebsd*-gnu | dragonfly*)
19112 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19113 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19114 hardcode_direct_GCJ=yes
19115 hardcode_shlibpath_var_GCJ=no
19119 if test "$GCC" = yes; then
19120 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'
19122 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'
19124 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19125 hardcode_libdir_separator_GCJ=:
19126 hardcode_direct_GCJ=yes
19128 # hardcode_minus_L: Not really in the search PATH,
19129 # but as the default location of the library.
19130 hardcode_minus_L_GCJ=yes
19131 export_dynamic_flag_spec_GCJ='${wl}-E'
19135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19136 case "$host_cpu" in
19138 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19141 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19145 case "$host_cpu" in
19147 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19150 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19154 if test "$with_gnu_ld" = no; then
19155 case "$host_cpu" in
19157 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19158 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19159 hardcode_libdir_separator_GCJ=:
19160 hardcode_direct_GCJ=no
19161 hardcode_shlibpath_var_GCJ=no
19164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19165 hardcode_direct_GCJ=no
19166 hardcode_shlibpath_var_GCJ=no
19168 # hardcode_minus_L: Not really in the search PATH,
19169 # but as the default location of the library.
19170 hardcode_minus_L_GCJ=yes
19173 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19174 hardcode_libdir_separator_GCJ=:
19175 hardcode_direct_GCJ=yes
19176 export_dynamic_flag_spec_GCJ='${wl}-E'
19178 # hardcode_minus_L: Not really in the search PATH,
19179 # but as the default location of the library.
19180 hardcode_minus_L_GCJ=yes
19186 irix5* | irix6* | nonstopux*)
19187 if test "$GCC" = yes; then
19188 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'
19190 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'
19191 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19193 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19194 hardcode_libdir_separator_GCJ=:
19195 link_all_deplibs_GCJ=yes
19199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19200 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19202 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19204 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19205 hardcode_direct_GCJ=yes
19206 hardcode_shlibpath_var_GCJ=no
19210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19211 hardcode_direct_GCJ=yes
19212 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19213 hardcode_libdir_separator_GCJ=:
19214 hardcode_shlibpath_var_GCJ=no
19218 hardcode_direct_GCJ=yes
19219 hardcode_shlibpath_var_GCJ=no
19220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19221 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19222 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19223 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19224 export_dynamic_flag_spec_GCJ='${wl}-E'
19227 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19228 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19229 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19232 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19233 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19241 hardcode_minus_L_GCJ=yes
19242 allow_undefined_flag_GCJ=unsupported
19243 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'
19244 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19248 if test "$GCC" = yes; then
19249 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19250 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'
19252 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19253 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'
19255 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19256 hardcode_libdir_separator_GCJ=:
19259 osf4* | osf5*) # as osf3* with the addition of -msym flag
19260 if test "$GCC" = yes; then
19261 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19262 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'
19263 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19265 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19266 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'
19267 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~
19268 $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'
19270 # Both c and cxx compiler support -rpath directly
19271 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19273 hardcode_libdir_separator_GCJ=:
19277 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19278 hardcode_shlibpath_var_GCJ=no
19279 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19280 runpath_var=LD_RUN_PATH
19281 hardcode_runpath_var=yes
19285 no_undefined_flag_GCJ=' -z text'
19286 if test "$GCC" = yes; then
19288 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19289 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19290 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19293 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19294 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19295 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19298 hardcode_shlibpath_var_GCJ=no
19300 solaris2.[0-5] | solaris2.[0-5].*) ;;
19302 # The compiler driver will combine linker options so we
19303 # cannot just pass the convience library names through
19304 # without $wl, iff we do not link with $LD.
19305 # Luckily, gcc supports the same syntax we need for Sun Studio.
19306 # Supported since Solaris 2.6 (maybe 2.5.1?)
19309 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19311 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' ;;
19314 link_all_deplibs_GCJ=yes
19318 if test "x$host_vendor" = xsequent; then
19319 # Use $CC to link under sequent, because it throws in some extra .o
19320 # files that make .init and .fini sections work.
19321 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19323 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19325 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19326 hardcode_direct_GCJ=yes
19327 hardcode_minus_L_GCJ=yes
19328 hardcode_shlibpath_var_GCJ=no
19332 case $host_vendor in
19334 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19335 hardcode_direct_GCJ=yes # is this really true???
19338 ## LD is ld it makes a PLAMLIB
19339 ## CC just makes a GrossModule.
19340 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19341 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19342 hardcode_direct_GCJ=no
19345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19346 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19349 runpath_var='LD_RUN_PATH'
19350 hardcode_shlibpath_var_GCJ=no
19354 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19355 hardcode_shlibpath_var_GCJ=no
19356 export_dynamic_flag_spec_GCJ='-Bexport'
19360 if test -d /usr/nec; then
19361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19362 hardcode_shlibpath_var_GCJ=no
19363 runpath_var=LD_RUN_PATH
19364 hardcode_runpath_var=yes
19370 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19371 hardcode_direct_GCJ=yes
19372 hardcode_minus_L_GCJ=no
19373 hardcode_shlibpath_var_GCJ=no
19374 hardcode_runpath_var=yes
19375 runpath_var=LD_RUN_PATH
19378 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19379 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19380 if test "$GCC" = yes; then
19381 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19383 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19385 runpath_var='LD_RUN_PATH'
19386 hardcode_shlibpath_var_GCJ=no
19390 no_undefined_flag_GCJ=' -z text'
19391 # $CC -shared without GNU ld will not create a library from C++
19392 # object files and a static libstdc++, better avoid it by now
19393 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19394 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19396 hardcode_libdir_flag_spec_GCJ=
19397 hardcode_shlibpath_var_GCJ=no
19398 runpath_var='LD_RUN_PATH'
19402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19404 hardcode_shlibpath_var_GCJ=no
19413 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19414 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19415 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19418 if test "$GCC" = yes; then
19419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19423 # Do we need to explicitly link libc?
19425 case "x$archive_cmds_need_lc_GCJ" in
19427 # Assume -lc should be added
19428 archive_cmds_need_lc_GCJ=yes
19430 if test "$enable_shared" = yes && test "$GCC" = yes; then
19431 case $archive_cmds_GCJ in
19433 # FIXME: we may have to deal with multi-command sequences.
19436 # Test whether the compiler implicitly links with -lc since on some
19437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19438 # to ld, don't add -lc before -lgcc.
19439 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19440 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19442 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19445 (eval $ac_compile) 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } 2>conftest.err; then
19451 libobjs=conftest.$ac_objext
19453 wl=$lt_prog_compiler_wl_GCJ
19459 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19460 allow_undefined_flag_GCJ=
19461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19462 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }
19467 archive_cmds_need_lc_GCJ=no
19469 archive_cmds_need_lc_GCJ=yes
19471 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19473 cat conftest.err 1>&5
19476 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19477 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19484 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19486 library_names_spec=
19487 libname_spec='lib$name'
19491 postuninstall_cmds=
19495 shlibpath_overrides_runpath=unknown
19497 dynamic_linker="$host_os ld.so"
19498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19499 if test "$GCC" = yes; then
19500 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19501 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19502 # if the path contains ";" then we assume it to be the separator
19503 # otherwise default to the standard path separator (i.e. ":") - it is
19504 # assumed that no part of a normal pathname contains ";" but that should
19505 # okay in the real world where ";" in dirpaths is itself problematic.
19506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19511 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19513 need_lib_prefix=unknown
19514 hardcode_into_libs=no
19516 # when you set need_version to no, make sure it does not cause -set_version
19517 # flags to be left without arguments
19518 need_version=unknown
19523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19524 shlibpath_var=LIBPATH
19526 # AIX 3 has no versioning support, so we append a major version to the name.
19527 soname_spec='${libname}${release}${shared_ext}$major'
19534 hardcode_into_libs=yes
19535 if test "$host_cpu" = ia64; then
19536 # AIX 5 supports IA64
19537 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19538 shlibpath_var=LD_LIBRARY_PATH
19540 # With GCC up to 2.95.x, collect2 would create an import file
19541 # for dependence libraries. The import file would start with
19542 # the line `#! .'. This would cause the generated library to
19543 # depend on `.', always an invalid library. This was fixed in
19544 # development snapshots of GCC prior to 3.0.
19546 aix4 | aix4.[01] | aix4.[01].*)
19547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19549 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19552 can_build_shared=no
19556 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19557 # soname into executable. Probably we can add versioning support to
19558 # collect2, so additional links can be useful in future.
19559 if test "$aix_use_runtimelinking" = yes; then
19560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19561 # instead of lib<name>.a to let people know that these are not
19562 # typical AIX shared libraries.
19563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19565 # We preserve .a as extension for shared libraries through AIX4.2
19566 # and later when we are not doing run time linking.
19567 library_names_spec='${libname}${release}.a $libname.a'
19568 soname_spec='${libname}${release}${shared_ext}$major'
19570 shlibpath_var=LIBPATH
19575 library_names_spec='$libname.ixlibrary $libname.a'
19576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19577 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'
19581 library_names_spec='${libname}${shared_ext}'
19582 dynamic_linker="$host_os ld.so"
19583 shlibpath_var=LIBRARY_PATH
19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590 soname_spec='${libname}${release}${shared_ext}$major'
19591 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19592 shlibpath_var=LD_LIBRARY_PATH
19593 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19594 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19595 # the default ld.so.conf also contains /usr/contrib/lib and
19596 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19597 # libtool to hard-code these into programs
19600 cygwin* | mingw* | pw32*)
19601 version_type=windows
19606 case $GCC,$host_os in
19607 yes,cygwin* | yes,mingw* | yes,pw32*)
19608 library_names_spec='$libname.dll.a'
19609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19610 postinstall_cmds='base_file=`basename \${file}`~
19611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19612 dldir=$destdir/`dirname \$dlpath`~
19613 test -d \$dldir || mkdir -p \$dldir~
19614 $install_prog $dir/$dlname \$dldir/$dlname'
19615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19616 dlpath=$dir/\$dldll~
19618 shlibpath_overrides_runpath=yes
19622 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19623 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19624 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19627 # MinGW DLLs use traditional 'lib' prefix
19628 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19629 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19630 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19631 # It is most probably a Windows format PATH printed by
19632 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19633 # path with ; separators, and with drive letters. We can handle the
19634 # drive letters (cygwin fileutils understands them), so leave them,
19635 # especially as we might pass files found there to a mingw objdump,
19636 # which wouldn't understand a cygwinified path. Ahh.
19637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19643 # pw32 DLLs use 'pw' prefix rather than 'lib'
19644 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19650 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19653 dynamic_linker='Win32 ld.exe'
19654 # FIXME: first we should search . and the directory the executable is in
19658 darwin* | rhapsody*)
19659 dynamic_linker="$host_os dyld"
19660 version_type=darwin
19663 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19664 soname_spec='${libname}${release}${major}$shared_ext'
19665 shlibpath_overrides_runpath=yes
19666 shlibpath_var=DYLD_LIBRARY_PATH
19667 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19668 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19669 if test "$GCC" = yes; then
19670 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"`
19672 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19682 soname_spec='${libname}${release}${shared_ext}$major'
19683 shlibpath_var=LD_LIBRARY_PATH
19694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19695 soname_spec='${libname}${release}${shared_ext}$major'
19696 shlibpath_var=LD_LIBRARY_PATH
19697 shlibpath_overrides_runpath=no
19698 hardcode_into_libs=yes
19699 dynamic_linker='GNU ld.so'
19702 freebsd* | dragonfly*)
19703 # DragonFly does not have aout. When/if they implement a new
19704 # versioning mechanism, adjust this.
19705 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19706 version_type=freebsd-$objformat
19707 case $version_type in
19709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19718 shlibpath_var=LD_LIBRARY_PATH
19721 shlibpath_overrides_runpath=yes
19723 freebsd3.[01]* | freebsdelf3.[01]*)
19724 shlibpath_overrides_runpath=yes
19725 hardcode_into_libs=yes
19728 shlibpath_overrides_runpath=no
19729 hardcode_into_libs=yes
19738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19739 soname_spec='${libname}${release}${shared_ext}$major'
19740 shlibpath_var=LD_LIBRARY_PATH
19741 hardcode_into_libs=yes
19744 hpux9* | hpux10* | hpux11*)
19745 # Give a soname corresponding to the major version so that dld.sl refuses to
19746 # link against other versions.
19750 case "$host_cpu" in
19753 hardcode_into_libs=yes
19754 dynamic_linker="$host_os dld.so"
19755 shlibpath_var=LD_LIBRARY_PATH
19756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19758 soname_spec='${libname}${release}${shared_ext}$major'
19759 if test "X$HPUX_IA64_MODE" = X32; then
19760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19768 hardcode_into_libs=yes
19769 dynamic_linker="$host_os dld.sl"
19770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19773 soname_spec='${libname}${release}${shared_ext}$major'
19774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19779 dynamic_linker="$host_os dld.sl"
19780 shlibpath_var=SHLIB_PATH
19781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19783 soname_spec='${libname}${release}${shared_ext}$major'
19786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19787 postinstall_cmds='chmod 555 $lib'
19790 irix5* | irix6* | nonstopux*)
19792 nonstopux*) version_type=nonstopux ;;
19794 if test "$lt_cv_prog_gnu_ld" = yes; then
19802 soname_spec='${libname}${release}${shared_ext}$major'
19803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19805 irix5* | nonstopux*)
19806 libsuff= shlibsuff=
19809 case $LD in # libtool.m4 will add one of these switches to LD
19810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19811 libsuff= shlibsuff= libmagic=32-bit;;
19812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19813 libsuff=32 shlibsuff=N32 libmagic=N32;;
19814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19815 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19816 *) libsuff= shlibsuff= libmagic=never-match;;
19820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19821 shlibpath_overrides_runpath=no
19822 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19823 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19824 hardcode_into_libs=yes
19827 # No shared lib support for Linux oldld, aout, or coff.
19828 linux*oldld* | linux*aout* | linux*coff*)
19832 # This must be Linux ELF.
19837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19838 soname_spec='${libname}${release}${shared_ext}$major'
19839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19840 shlibpath_var=LD_LIBRARY_PATH
19841 shlibpath_overrides_runpath=no
19842 # This implies no fast_install, which is unacceptable.
19843 # Some rework will be needed to allow for fast_install
19844 # before this can be enabled.
19845 hardcode_into_libs=yes
19847 # Append ld.so.conf contents to the search path
19848 if test -f /etc/ld.so.conf; then
19849 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' ' '`
19850 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19853 # We used to test for /lib/ld.so.1 and disable shared libraries on
19854 # powerpc, because MkLinux only supported shared libraries with the
19855 # GNU dynamic linker. Since this was broken with cross compilers,
19856 # most powerpc-linux boxes support dynamic linking these days and
19857 # people can always --disable-shared, the test was removed, and we
19858 # assume the GNU/Linux dynamic linker is in use.
19859 dynamic_linker='GNU/Linux ld.so'
19866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19867 soname_spec='${libname}${release}${shared_ext}$major'
19868 shlibpath_var=LD_LIBRARY_PATH
19869 shlibpath_overrides_runpath=no
19870 hardcode_into_libs=yes
19871 dynamic_linker='GNU ld.so'
19878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19881 dynamic_linker='NetBSD (a.out) ld.so'
19883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19884 soname_spec='${libname}${release}${shared_ext}$major'
19885 dynamic_linker='NetBSD ld.elf_so'
19887 shlibpath_var=LD_LIBRARY_PATH
19888 shlibpath_overrides_runpath=yes
19889 hardcode_into_libs=yes
19894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19895 shlibpath_var=LD_LIBRARY_PATH
19896 shlibpath_overrides_runpath=yes
19903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19904 soname_spec='${libname}${release}${shared_ext}$major'
19905 shlibpath_var=LD_LIBRARY_PATH
19906 shlibpath_overrides_runpath=yes
19912 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19914 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19915 *) need_version=no ;;
19917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19919 shlibpath_var=LD_LIBRARY_PATH
19920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19922 openbsd2.[89] | openbsd2.[89].*)
19923 shlibpath_overrides_runpath=no
19926 shlibpath_overrides_runpath=yes
19930 shlibpath_overrides_runpath=yes
19935 libname_spec='$name'
19938 library_names_spec='$libname${shared_ext} $libname.a'
19939 dynamic_linker='OS/2 ld.exe'
19940 shlibpath_var=LIBPATH
19943 osf3* | osf4* | osf5*)
19947 soname_spec='${libname}${release}${shared_ext}$major'
19948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19949 shlibpath_var=LD_LIBRARY_PATH
19950 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19951 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19956 soname_spec='${libname}${release}${shared_ext}$major'
19957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19958 shlibpath_var=LD_LIBRARY_PATH
19965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19966 soname_spec='${libname}${release}${shared_ext}$major'
19967 shlibpath_var=LD_LIBRARY_PATH
19968 shlibpath_overrides_runpath=yes
19969 hardcode_into_libs=yes
19970 # ldd complains unless libraries are executable
19971 postinstall_cmds='chmod +x $lib'
19976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19978 shlibpath_var=LD_LIBRARY_PATH
19979 shlibpath_overrides_runpath=yes
19980 if test "$with_gnu_ld" = yes; then
19986 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19989 soname_spec='${libname}${release}${shared_ext}$major'
19990 shlibpath_var=LD_LIBRARY_PATH
19991 case $host_vendor in
19993 shlibpath_overrides_runpath=no
19995 export_dynamic_flag_spec='${wl}-Blargedynsym'
19996 runpath_var=LD_RUN_PATH
20004 shlibpath_overrides_runpath=no
20005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20011 if test -d /usr/nec ;then
20013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20014 soname_spec='$libname${shared_ext}.$major'
20015 shlibpath_var=LD_LIBRARY_PATH
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022 soname_spec='${libname}${release}${shared_ext}$major'
20023 shlibpath_var=LD_LIBRARY_PATH
20030 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20031 echo "${ECHO_T}$dynamic_linker" >&6
20032 test "$dynamic_linker" = no && can_build_shared=no
20034 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20035 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20036 hardcode_action_GCJ=
20037 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20038 test -n "$runpath_var_GCJ" || \
20039 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20041 # We can hardcode non-existant directories.
20042 if test "$hardcode_direct_GCJ" != no &&
20043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20044 # have to relink, otherwise we might link with an installed library
20045 # when we should be linking with a yet-to-be-installed one
20046 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20047 test "$hardcode_minus_L_GCJ" != no; then
20048 # Linking always hardcodes the temporary library directory.
20049 hardcode_action_GCJ=relink
20051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20052 hardcode_action_GCJ=immediate
20055 # We cannot hardcode anything, or else we can only hardcode existing
20057 hardcode_action_GCJ=unsupported
20059 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20060 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20062 if test "$hardcode_action_GCJ" = relink; then
20063 # Fast installation is not supported
20064 enable_fast_install=no
20065 elif test "$shlibpath_overrides_runpath" = yes ||
20066 test "$enable_shared" = no; then
20067 # Fast installation is not necessary
20068 enable_fast_install=needless
20073 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20074 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20075 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20076 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20077 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20078 echo "$as_me:$LINENO: result: yes" >&5
20079 echo "${ECHO_T}yes" >&6
20081 # FIXME - insert some real tests, host_os isn't really good enough
20084 if test -n "$STRIP" ; then
20085 striplib="$STRIP -x"
20086 echo "$as_me:$LINENO: result: yes" >&5
20087 echo "${ECHO_T}yes" >&6
20089 echo "$as_me:$LINENO: result: no" >&5
20090 echo "${ECHO_T}no" >&6
20094 echo "$as_me:$LINENO: result: no" >&5
20095 echo "${ECHO_T}no" >&6
20100 if test "x$enable_dlopen" != xyes; then
20101 enable_dlopen=unknown
20102 enable_dlopen_self=unknown
20103 enable_dlopen_self_static=unknown
20110 lt_cv_dlopen="load_add_on"
20112 lt_cv_dlopen_self=yes
20116 lt_cv_dlopen="LoadLibrary"
20121 lt_cv_dlopen="dlopen"
20126 # if libdl is installed we need to link against it
20127 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20128 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20129 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 ac_check_lib_save_LIBS=$LIBS
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20141 /* Override any gcc2 internal prototype to avoid an error. */
20145 /* We use char because int might match the return type of a gcc2
20146 builtin and then its argument prototype would still apply. */
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20158 (eval $ac_link) 2>conftest.er1
20160 grep -v '^ *+' conftest.er1 >conftest.err
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } &&
20165 { ac_try='test -z "$ac_c_werror_flag"
20166 || test ! -s conftest.err'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest$ac_exeext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20178 ac_cv_lib_dl_dlopen=yes
20180 echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20183 ac_cv_lib_dl_dlopen=no
20185 rm -f conftest.err conftest.$ac_objext \
20186 conftest$ac_exeext conftest.$ac_ext
20187 LIBS=$ac_check_lib_save_LIBS
20189 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20190 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20191 if test $ac_cv_lib_dl_dlopen = yes; then
20192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20195 lt_cv_dlopen="dyld"
20197 lt_cv_dlopen_self=yes
20204 echo "$as_me:$LINENO: checking for shl_load" >&5
20205 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20206 if test "${ac_cv_func_shl_load+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20217 #define shl_load innocuous_shl_load
20219 /* System header to define __stub macros and hopefully few prototypes,
20220 which can conflict with char shl_load (); below.
20221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20222 <limits.h> exists even on freestanding compilers. */
20225 # include <limits.h>
20227 # include <assert.h>
20232 /* Override any gcc2 internal prototype to avoid an error. */
20237 /* We use char because int might match the return type of a gcc2
20238 builtin and then its argument prototype would still apply. */
20240 /* The GNU C library defines this for functions which it implements
20241 to always fail with ENOSYS. Some functions are actually named
20242 something starting with __ and the normal name is an alias. */
20243 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20246 char (*f) () = shl_load;
20255 return f != shl_load;
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20262 (eval $ac_link) 2>conftest.er1
20264 grep -v '^ *+' conftest.er1 >conftest.err
20266 cat conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } &&
20269 { ac_try='test -z "$ac_c_werror_flag"
20270 || test ! -s conftest.err'
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; } &&
20276 { ac_try='test -s conftest$ac_exeext'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_cv_func_shl_load=yes
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ac_cv_func_shl_load=no
20289 rm -f conftest.err conftest.$ac_objext \
20290 conftest$ac_exeext conftest.$ac_ext
20292 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20293 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20294 if test $ac_cv_func_shl_load = yes; then
20295 lt_cv_dlopen="shl_load"
20297 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20298 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20299 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 ac_check_lib_save_LIBS=$LIBS
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20311 /* Override any gcc2 internal prototype to avoid an error. */
20315 /* We use char because int might match the return type of a gcc2
20316 builtin and then its argument prototype would still apply. */
20326 rm -f conftest.$ac_objext conftest$ac_exeext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20328 (eval $ac_link) 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag"
20336 || test ! -s conftest.err'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest$ac_exeext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_lib_dld_shl_load=yes
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_cv_lib_dld_shl_load=no
20355 rm -f conftest.err conftest.$ac_objext \
20356 conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20359 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20360 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20361 if test $ac_cv_lib_dld_shl_load = yes; then
20362 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20364 echo "$as_me:$LINENO: checking for dlopen" >&5
20365 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20366 if test "${ac_cv_func_dlopen+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20377 #define dlopen innocuous_dlopen
20379 /* System header to define __stub macros and hopefully few prototypes,
20380 which can conflict with char dlopen (); below.
20381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20382 <limits.h> exists even on freestanding compilers. */
20385 # include <limits.h>
20387 # include <assert.h>
20392 /* Override any gcc2 internal prototype to avoid an error. */
20397 /* We use char because int might match the return type of a gcc2
20398 builtin and then its argument prototype would still apply. */
20400 /* The GNU C library defines this for functions which it implements
20401 to always fail with ENOSYS. Some functions are actually named
20402 something starting with __ and the normal name is an alias. */
20403 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20406 char (*f) () = dlopen;
20415 return f != dlopen;
20420 rm -f conftest.$ac_objext conftest$ac_exeext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20422 (eval $ac_link) 2>conftest.er1
20424 grep -v '^ *+' conftest.er1 >conftest.err
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest$ac_exeext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 ac_cv_func_dlopen=yes
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_cv_func_dlopen=no
20449 rm -f conftest.err conftest.$ac_objext \
20450 conftest$ac_exeext conftest.$ac_ext
20452 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20453 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20454 if test $ac_cv_func_dlopen = yes; then
20455 lt_cv_dlopen="dlopen"
20457 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20458 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 ac_check_lib_save_LIBS=$LIBS
20464 cat >conftest.$ac_ext <<_ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20471 /* Override any gcc2 internal prototype to avoid an error. */
20475 /* We use char because int might match the return type of a gcc2
20476 builtin and then its argument prototype would still apply. */
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488 (eval $ac_link) 2>conftest.er1
20490 grep -v '^ *+' conftest.er1 >conftest.err
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag"
20496 || test ! -s conftest.err'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try='test -s conftest$ac_exeext'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_cv_lib_dl_dlopen=yes
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ac_cv_lib_dl_dlopen=no
20515 rm -f conftest.err conftest.$ac_objext \
20516 conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20519 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20520 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20521 if test $ac_cv_lib_dl_dlopen = yes; then
20522 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20524 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20525 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20526 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 ac_check_lib_save_LIBS=$LIBS
20530 LIBS="-lsvld $LIBS"
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20538 /* Override any gcc2 internal prototype to avoid an error. */
20542 /* We use char because int might match the return type of a gcc2
20543 builtin and then its argument prototype would still apply. */
20553 rm -f conftest.$ac_objext conftest$ac_exeext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20555 (eval $ac_link) 2>conftest.er1
20557 grep -v '^ *+' conftest.er1 >conftest.err
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
20562 { ac_try='test -z "$ac_c_werror_flag"
20563 || test ! -s conftest.err'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; } &&
20569 { ac_try='test -s conftest$ac_exeext'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
20575 ac_cv_lib_svld_dlopen=yes
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ac_cv_lib_svld_dlopen=no
20582 rm -f conftest.err conftest.$ac_objext \
20583 conftest$ac_exeext conftest.$ac_ext
20584 LIBS=$ac_check_lib_save_LIBS
20586 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20587 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20588 if test $ac_cv_lib_svld_dlopen = yes; then
20589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20591 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20592 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20593 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 ac_check_lib_save_LIBS=$LIBS
20598 cat >conftest.$ac_ext <<_ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20605 /* Override any gcc2 internal prototype to avoid an error. */
20609 /* We use char because int might match the return type of a gcc2
20610 builtin and then its argument prototype would still apply. */
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622 (eval $ac_link) 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -z "$ac_c_werror_flag"
20630 || test ! -s conftest.err'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; } &&
20636 { ac_try='test -s conftest$ac_exeext'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
20642 ac_cv_lib_dld_dld_link=yes
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 ac_cv_lib_dld_dld_link=no
20649 rm -f conftest.err conftest.$ac_objext \
20650 conftest$ac_exeext conftest.$ac_ext
20651 LIBS=$ac_check_lib_save_LIBS
20653 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20654 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20655 if test $ac_cv_lib_dld_dld_link = yes; then
20656 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20677 if test "x$lt_cv_dlopen" != xno; then
20683 case $lt_cv_dlopen in
20685 save_CPPFLAGS="$CPPFLAGS"
20686 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20688 save_LDFLAGS="$LDFLAGS"
20689 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20692 LIBS="$lt_cv_dlopen_libs $LIBS"
20694 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20695 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20696 if test "${lt_cv_dlopen_self+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 if test "$cross_compiling" = yes; then :
20700 lt_cv_dlopen_self=cross
20702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20703 lt_status=$lt_dlunknown
20704 cat > conftest.$ac_ext <<EOF
20705 #line 20705 "configure"
20706 #include "confdefs.h"
20715 # define LT_DLGLOBAL RTLD_GLOBAL
20718 # define LT_DLGLOBAL DL_GLOBAL
20720 # define LT_DLGLOBAL 0
20724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20725 find out it does not work in some platform. */
20726 #ifndef LT_DLLAZY_OR_NOW
20728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20731 # define LT_DLLAZY_OR_NOW DL_LAZY
20734 # define LT_DLLAZY_OR_NOW RTLD_NOW
20737 # define LT_DLLAZY_OR_NOW DL_NOW
20739 # define LT_DLLAZY_OR_NOW 0
20747 extern "C" void exit (int);
20750 void fnord() { int i=42;}
20753 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20754 int status = $lt_dlunknown;
20758 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20759 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20760 /* dlclose (self); */
20766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20767 (eval $ac_link) 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20771 (./conftest; exit; ) 2>/dev/null
20773 case x$lt_status in
20774 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20775 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20776 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20779 # compilation failed
20780 lt_cv_dlopen_self=no
20787 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20788 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20790 if test "x$lt_cv_dlopen_self" = xyes; then
20791 LDFLAGS="$LDFLAGS $link_static_flag"
20792 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20793 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20794 if test "${lt_cv_dlopen_self_static+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 if test "$cross_compiling" = yes; then :
20798 lt_cv_dlopen_self_static=cross
20800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20801 lt_status=$lt_dlunknown
20802 cat > conftest.$ac_ext <<EOF
20803 #line 20803 "configure"
20804 #include "confdefs.h"
20813 # define LT_DLGLOBAL RTLD_GLOBAL
20816 # define LT_DLGLOBAL DL_GLOBAL
20818 # define LT_DLGLOBAL 0
20822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20823 find out it does not work in some platform. */
20824 #ifndef LT_DLLAZY_OR_NOW
20826 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20829 # define LT_DLLAZY_OR_NOW DL_LAZY
20832 # define LT_DLLAZY_OR_NOW RTLD_NOW
20835 # define LT_DLLAZY_OR_NOW DL_NOW
20837 # define LT_DLLAZY_OR_NOW 0
20845 extern "C" void exit (int);
20848 void fnord() { int i=42;}
20851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20852 int status = $lt_dlunknown;
20856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20857 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20858 /* dlclose (self); */
20864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865 (eval $ac_link) 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20869 (./conftest; exit; ) 2>/dev/null
20871 case x$lt_status in
20872 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20873 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20874 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20877 # compilation failed
20878 lt_cv_dlopen_self_static=no
20885 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20886 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20889 CPPFLAGS="$save_CPPFLAGS"
20890 LDFLAGS="$save_LDFLAGS"
20895 case $lt_cv_dlopen_self in
20896 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20897 *) enable_dlopen_self=unknown ;;
20900 case $lt_cv_dlopen_self_static in
20901 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20902 *) enable_dlopen_self_static=unknown ;;
20907 # The else clause should only fire when bootstrapping the
20908 # libtool distribution, otherwise you forgot to ship ltmain.sh
20909 # with your package, and you will get complaints that there are
20910 # no rules to generate ltmain.sh.
20911 if test -f "$ltmain"; then
20912 # See if we are running on zsh, and set the options which allow our commands through
20913 # without removal of \ escapes.
20914 if test -n "${ZSH_VERSION+set}" ; then
20915 setopt NO_GLOB_SUBST
20917 # Now quote all the things that may contain metacharacters while being
20918 # careful not to overquote the AC_SUBSTed values. We take copies of the
20919 # variables and quote the copies for generation of the libtool script.
20920 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20922 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20923 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20924 deplibs_check_method reload_flag reload_cmds need_locks \
20925 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20926 lt_cv_sys_global_symbol_to_c_name_address \
20927 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20928 old_postinstall_cmds old_postuninstall_cmds \
20932 lt_prog_compiler_wl_GCJ \
20933 lt_prog_compiler_pic_GCJ \
20934 lt_prog_compiler_static_GCJ \
20935 lt_prog_compiler_no_builtin_flag_GCJ \
20936 export_dynamic_flag_spec_GCJ \
20937 thread_safe_flag_spec_GCJ \
20938 whole_archive_flag_spec_GCJ \
20939 enable_shared_with_static_runtimes_GCJ \
20940 old_archive_cmds_GCJ \
20941 old_archive_from_new_cmds_GCJ \
20942 predep_objects_GCJ \
20943 postdep_objects_GCJ \
20946 compiler_lib_search_path_GCJ \
20948 archive_expsym_cmds_GCJ \
20949 postinstall_cmds_GCJ \
20950 postuninstall_cmds_GCJ \
20951 old_archive_from_expsyms_cmds_GCJ \
20952 allow_undefined_flag_GCJ \
20953 no_undefined_flag_GCJ \
20954 export_symbols_cmds_GCJ \
20955 hardcode_libdir_flag_spec_GCJ \
20956 hardcode_libdir_flag_spec_ld_GCJ \
20957 hardcode_libdir_separator_GCJ \
20958 hardcode_automatic_GCJ \
20960 module_expsym_cmds_GCJ \
20961 lt_cv_prog_compiler_c_o_GCJ \
20962 exclude_expsyms_GCJ \
20963 include_expsyms_GCJ; do
20966 old_archive_cmds_GCJ | \
20967 old_archive_from_new_cmds_GCJ | \
20968 archive_cmds_GCJ | \
20969 archive_expsym_cmds_GCJ | \
20970 module_cmds_GCJ | \
20971 module_expsym_cmds_GCJ | \
20972 old_archive_from_expsyms_cmds_GCJ | \
20973 export_symbols_cmds_GCJ | \
20974 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20975 postinstall_cmds | postuninstall_cmds | \
20976 old_postinstall_cmds | old_postuninstall_cmds | \
20977 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20978 # Double-quote double-evaled strings.
20979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20988 *'\$0 --fallback-echo"')
20989 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20995 cat <<__EOF__ >> "$cfgfile"
20996 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21000 # Shell to use when invoking shell scripts.
21003 # Whether or not to build shared libraries.
21004 build_libtool_libs=$enable_shared
21006 # Whether or not to build static libraries.
21007 build_old_libs=$enable_static
21009 # Whether or not to add -lc for building shared libraries.
21010 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21012 # Whether or not to disallow shared libs when runtime libs are static
21013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21015 # Whether or not to optimize for fast installation.
21016 fast_install=$enable_fast_install
21019 host_alias=$host_alias
21023 # The build system.
21024 build_alias=$build_alias
21028 # An echo program that does not interpret backslashes.
21033 AR_FLAGS=$lt_AR_FLAGS
21038 # A language-specific compiler.
21039 CC=$lt_compiler_GCJ
21041 # Is the compiler the GNU C compiler?
21047 # The linker used to build libraries.
21050 # Whether we need hard or soft links.
21053 # A BSD-compatible nm program.
21056 # A symbol stripping program
21059 # Used to examine libraries when file_magic_cmd begins "file"
21060 MAGIC_CMD=$MAGIC_CMD
21062 # Used on cygwin: DLL creation program.
21065 # Used on cygwin: object dumper.
21068 # Used on cygwin: assembler.
21071 # The name of the directory that contains temporary libtool files.
21074 # How to create reloadable object files.
21075 reload_flag=$lt_reload_flag
21076 reload_cmds=$lt_reload_cmds
21078 # How to pass a linker flag through the compiler.
21079 wl=$lt_lt_prog_compiler_wl_GCJ
21081 # Object file suffix (normally "o").
21082 objext="$ac_objext"
21084 # Old archive suffix (normally "a").
21087 # Shared library suffix (normally ".so").
21088 shrext_cmds='$shrext_cmds'
21090 # Executable file suffix (normally "").
21093 # Additional compiler flags for building library objects.
21094 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21097 # What is the maximum length of a command?
21098 max_cmd_len=$lt_cv_sys_max_cmd_len
21100 # Does compiler simultaneously support -c and -o options?
21101 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21103 # Must we lock files when doing compilation?
21104 need_locks=$lt_need_locks
21106 # Do we need the lib prefix for modules?
21107 need_lib_prefix=$need_lib_prefix
21109 # Do we need a version for libraries?
21110 need_version=$need_version
21112 # Whether dlopen is supported.
21113 dlopen_support=$enable_dlopen
21115 # Whether dlopen of programs is supported.
21116 dlopen_self=$enable_dlopen_self
21118 # Whether dlopen of statically linked programs is supported.
21119 dlopen_self_static=$enable_dlopen_self_static
21121 # Compiler flag to prevent dynamic linking.
21122 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21124 # Compiler flag to turn off builtin functions.
21125 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21127 # Compiler flag to allow reflexive dlopens.
21128 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21130 # Compiler flag to generate shared objects directly from archives.
21131 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21133 # Compiler flag to generate thread-safe objects.
21134 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21136 # Library versioning type.
21137 version_type=$version_type
21139 # Format of library name prefix.
21140 libname_spec=$lt_libname_spec
21142 # List of archive names. First name is the real one, the rest are links.
21143 # The last name is the one that the linker finds with -lNAME.
21144 library_names_spec=$lt_library_names_spec
21146 # The coded name of the library, if different from the real name.
21147 soname_spec=$lt_soname_spec
21149 # Commands used to build and install an old-style archive.
21151 old_archive_cmds=$lt_old_archive_cmds_GCJ
21152 old_postinstall_cmds=$lt_old_postinstall_cmds
21153 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21155 # Create an old-style archive from a shared archive.
21156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21158 # Create a temporary old-style archive to link instead of a shared archive.
21159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21161 # Commands used to build and install a shared archive.
21162 archive_cmds=$lt_archive_cmds_GCJ
21163 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21164 postinstall_cmds=$lt_postinstall_cmds
21165 postuninstall_cmds=$lt_postuninstall_cmds
21167 # Commands used to build a loadable module (assumed same as above if empty)
21168 module_cmds=$lt_module_cmds_GCJ
21169 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21171 # Commands to strip libraries.
21172 old_striplib=$lt_old_striplib
21173 striplib=$lt_striplib
21175 # Dependencies to place before the objects being linked to create a
21177 predep_objects=$lt_predep_objects_GCJ
21179 # Dependencies to place after the objects being linked to create a
21181 postdep_objects=$lt_postdep_objects_GCJ
21183 # Dependencies to place before the objects being linked to create a
21185 predeps=$lt_predeps_GCJ
21187 # Dependencies to place after the objects being linked to create a
21189 postdeps=$lt_postdeps_GCJ
21191 # The library search path used internally by the compiler when linking
21192 # a shared library.
21193 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21195 # Method to check whether dependent libraries are shared objects.
21196 deplibs_check_method=$lt_deplibs_check_method
21198 # Command to use when deplibs_check_method == file_magic.
21199 file_magic_cmd=$lt_file_magic_cmd
21201 # Flag that allows shared libraries with undefined symbols to be built.
21202 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21204 # Flag that forces no undefined symbols.
21205 no_undefined_flag=$lt_no_undefined_flag_GCJ
21207 # Commands used to finish a libtool library installation in a directory.
21208 finish_cmds=$lt_finish_cmds
21210 # Same as above, but a single script fragment to be evaled but not shown.
21211 finish_eval=$lt_finish_eval
21213 # Take the output of nm and produce a listing of raw symbols and C names.
21214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21216 # Transform the output of nm in a proper C declaration
21217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21219 # Transform the output of nm in a C name address pair
21220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21222 # This is the shared library runtime path variable.
21223 runpath_var=$runpath_var
21225 # This is the shared library path variable.
21226 shlibpath_var=$shlibpath_var
21228 # Is shlibpath searched before the hard-coded library search path?
21229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21231 # How to hardcode a shared library path into an executable.
21232 hardcode_action=$hardcode_action_GCJ
21234 # Whether we should hardcode library paths into libraries.
21235 hardcode_into_libs=$hardcode_into_libs
21237 # Flag to hardcode \$libdir into a binary during linking.
21238 # This must work even if \$libdir does not exist.
21239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21241 # If ld is used when linking, flag to hardcode \$libdir into
21242 # a binary during linking. This must work even if \$libdir does
21244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21246 # Whether we need a single -rpath flag with a separated argument.
21247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21250 # resulting binary.
21251 hardcode_direct=$hardcode_direct_GCJ
21253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21254 # resulting binary.
21255 hardcode_minus_L=$hardcode_minus_L_GCJ
21257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21258 # the resulting binary.
21259 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21261 # Set to yes if building a shared library automatically hardcodes DIR into the library
21262 # and all subsequent libraries and executables linked against it.
21263 hardcode_automatic=$hardcode_automatic_GCJ
21265 # Variables whose values should be saved in libtool wrapper scripts and
21266 # restored at relink time.
21267 variables_saved_for_relink="$variables_saved_for_relink"
21269 # Whether libtool must link a program against all its dependency libraries.
21270 link_all_deplibs=$link_all_deplibs_GCJ
21272 # Compile-time system search path for libraries
21273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21275 # Run-time system search path for libraries
21276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21278 # Fix the shell variable \$srcfile for the compiler.
21279 fix_srcfile_path="$fix_srcfile_path_GCJ"
21281 # Set to yes if exported symbols are required.
21282 always_export_symbols=$always_export_symbols_GCJ
21284 # The commands to list exported symbols.
21285 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21287 # The commands to extract the exported symbol list from a shared archive.
21288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21290 # Symbols that should not be listed in the preloaded symbols.
21291 exclude_expsyms=$lt_exclude_expsyms_GCJ
21293 # Symbols that must always be exported.
21294 include_expsyms=$lt_include_expsyms_GCJ
21296 # ### END LIBTOOL TAG CONFIG: $tagname
21302 # If there is no Makefile yet, we rely on a make rule to execute
21303 # `config.status --recheck' to rerun these tests and create the
21304 # libtool script then.
21305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21306 if test -f "$ltmain_in"; then
21307 test -f Makefile && make "$ltmain"
21313 ac_cpp='$CPP $CPPFLAGS'
21314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21329 # Source file extension for RC test sources.
21332 # Object file extension for compiled RC test sources.
21336 # Code to be used in simple compile tests
21337 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21339 # Code to be used in simple link tests
21340 lt_simple_link_test_code="$lt_simple_compile_test_code"
21342 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21344 # If no C compiler was specified, use CC.
21347 # Allow CC to be a program name with arguments.
21351 # save warnings/boilerplate of simple test code
21352 ac_outfile=conftest.$ac_objext
21353 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21355 _lt_compiler_boilerplate=`cat conftest.err`
21358 ac_outfile=conftest.$ac_objext
21359 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21361 _lt_linker_boilerplate=`cat conftest.err`
21365 # Allow CC to be a program name with arguments.
21370 for cc_temp in $compiler""; do
21372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21380 lt_cv_prog_compiler_c_o_RC=yes
21382 # The else clause should only fire when bootstrapping the
21383 # libtool distribution, otherwise you forgot to ship ltmain.sh
21384 # with your package, and you will get complaints that there are
21385 # no rules to generate ltmain.sh.
21386 if test -f "$ltmain"; then
21387 # See if we are running on zsh, and set the options which allow our commands through
21388 # without removal of \ escapes.
21389 if test -n "${ZSH_VERSION+set}" ; then
21390 setopt NO_GLOB_SUBST
21392 # Now quote all the things that may contain metacharacters while being
21393 # careful not to overquote the AC_SUBSTed values. We take copies of the
21394 # variables and quote the copies for generation of the libtool script.
21395 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21397 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21398 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21399 deplibs_check_method reload_flag reload_cmds need_locks \
21400 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21401 lt_cv_sys_global_symbol_to_c_name_address \
21402 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21403 old_postinstall_cmds old_postuninstall_cmds \
21407 lt_prog_compiler_wl_RC \
21408 lt_prog_compiler_pic_RC \
21409 lt_prog_compiler_static_RC \
21410 lt_prog_compiler_no_builtin_flag_RC \
21411 export_dynamic_flag_spec_RC \
21412 thread_safe_flag_spec_RC \
21413 whole_archive_flag_spec_RC \
21414 enable_shared_with_static_runtimes_RC \
21415 old_archive_cmds_RC \
21416 old_archive_from_new_cmds_RC \
21417 predep_objects_RC \
21418 postdep_objects_RC \
21421 compiler_lib_search_path_RC \
21423 archive_expsym_cmds_RC \
21424 postinstall_cmds_RC \
21425 postuninstall_cmds_RC \
21426 old_archive_from_expsyms_cmds_RC \
21427 allow_undefined_flag_RC \
21428 no_undefined_flag_RC \
21429 export_symbols_cmds_RC \
21430 hardcode_libdir_flag_spec_RC \
21431 hardcode_libdir_flag_spec_ld_RC \
21432 hardcode_libdir_separator_RC \
21433 hardcode_automatic_RC \
21435 module_expsym_cmds_RC \
21436 lt_cv_prog_compiler_c_o_RC \
21437 exclude_expsyms_RC \
21438 include_expsyms_RC; do
21441 old_archive_cmds_RC | \
21442 old_archive_from_new_cmds_RC | \
21443 archive_cmds_RC | \
21444 archive_expsym_cmds_RC | \
21446 module_expsym_cmds_RC | \
21447 old_archive_from_expsyms_cmds_RC | \
21448 export_symbols_cmds_RC | \
21449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21450 postinstall_cmds | postuninstall_cmds | \
21451 old_postinstall_cmds | old_postuninstall_cmds | \
21452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21453 # Double-quote double-evaled strings.
21454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21463 *'\$0 --fallback-echo"')
21464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21470 cat <<__EOF__ >> "$cfgfile"
21471 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21473 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21475 # Shell to use when invoking shell scripts.
21478 # Whether or not to build shared libraries.
21479 build_libtool_libs=$enable_shared
21481 # Whether or not to build static libraries.
21482 build_old_libs=$enable_static
21484 # Whether or not to add -lc for building shared libraries.
21485 build_libtool_need_lc=$archive_cmds_need_lc_RC
21487 # Whether or not to disallow shared libs when runtime libs are static
21488 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21490 # Whether or not to optimize for fast installation.
21491 fast_install=$enable_fast_install
21494 host_alias=$host_alias
21498 # The build system.
21499 build_alias=$build_alias
21503 # An echo program that does not interpret backslashes.
21508 AR_FLAGS=$lt_AR_FLAGS
21513 # A language-specific compiler.
21516 # Is the compiler the GNU C compiler?
21522 # The linker used to build libraries.
21525 # Whether we need hard or soft links.
21528 # A BSD-compatible nm program.
21531 # A symbol stripping program
21534 # Used to examine libraries when file_magic_cmd begins "file"
21535 MAGIC_CMD=$MAGIC_CMD
21537 # Used on cygwin: DLL creation program.
21540 # Used on cygwin: object dumper.
21543 # Used on cygwin: assembler.
21546 # The name of the directory that contains temporary libtool files.
21549 # How to create reloadable object files.
21550 reload_flag=$lt_reload_flag
21551 reload_cmds=$lt_reload_cmds
21553 # How to pass a linker flag through the compiler.
21554 wl=$lt_lt_prog_compiler_wl_RC
21556 # Object file suffix (normally "o").
21557 objext="$ac_objext"
21559 # Old archive suffix (normally "a").
21562 # Shared library suffix (normally ".so").
21563 shrext_cmds='$shrext_cmds'
21565 # Executable file suffix (normally "").
21568 # Additional compiler flags for building library objects.
21569 pic_flag=$lt_lt_prog_compiler_pic_RC
21572 # What is the maximum length of a command?
21573 max_cmd_len=$lt_cv_sys_max_cmd_len
21575 # Does compiler simultaneously support -c and -o options?
21576 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21578 # Must we lock files when doing compilation?
21579 need_locks=$lt_need_locks
21581 # Do we need the lib prefix for modules?
21582 need_lib_prefix=$need_lib_prefix
21584 # Do we need a version for libraries?
21585 need_version=$need_version
21587 # Whether dlopen is supported.
21588 dlopen_support=$enable_dlopen
21590 # Whether dlopen of programs is supported.
21591 dlopen_self=$enable_dlopen_self
21593 # Whether dlopen of statically linked programs is supported.
21594 dlopen_self_static=$enable_dlopen_self_static
21596 # Compiler flag to prevent dynamic linking.
21597 link_static_flag=$lt_lt_prog_compiler_static_RC
21599 # Compiler flag to turn off builtin functions.
21600 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21602 # Compiler flag to allow reflexive dlopens.
21603 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21605 # Compiler flag to generate shared objects directly from archives.
21606 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21608 # Compiler flag to generate thread-safe objects.
21609 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21611 # Library versioning type.
21612 version_type=$version_type
21614 # Format of library name prefix.
21615 libname_spec=$lt_libname_spec
21617 # List of archive names. First name is the real one, the rest are links.
21618 # The last name is the one that the linker finds with -lNAME.
21619 library_names_spec=$lt_library_names_spec
21621 # The coded name of the library, if different from the real name.
21622 soname_spec=$lt_soname_spec
21624 # Commands used to build and install an old-style archive.
21626 old_archive_cmds=$lt_old_archive_cmds_RC
21627 old_postinstall_cmds=$lt_old_postinstall_cmds
21628 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21630 # Create an old-style archive from a shared archive.
21631 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21633 # Create a temporary old-style archive to link instead of a shared archive.
21634 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21636 # Commands used to build and install a shared archive.
21637 archive_cmds=$lt_archive_cmds_RC
21638 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21639 postinstall_cmds=$lt_postinstall_cmds
21640 postuninstall_cmds=$lt_postuninstall_cmds
21642 # Commands used to build a loadable module (assumed same as above if empty)
21643 module_cmds=$lt_module_cmds_RC
21644 module_expsym_cmds=$lt_module_expsym_cmds_RC
21646 # Commands to strip libraries.
21647 old_striplib=$lt_old_striplib
21648 striplib=$lt_striplib
21650 # Dependencies to place before the objects being linked to create a
21652 predep_objects=$lt_predep_objects_RC
21654 # Dependencies to place after the objects being linked to create a
21656 postdep_objects=$lt_postdep_objects_RC
21658 # Dependencies to place before the objects being linked to create a
21660 predeps=$lt_predeps_RC
21662 # Dependencies to place after the objects being linked to create a
21664 postdeps=$lt_postdeps_RC
21666 # The library search path used internally by the compiler when linking
21667 # a shared library.
21668 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21670 # Method to check whether dependent libraries are shared objects.
21671 deplibs_check_method=$lt_deplibs_check_method
21673 # Command to use when deplibs_check_method == file_magic.
21674 file_magic_cmd=$lt_file_magic_cmd
21676 # Flag that allows shared libraries with undefined symbols to be built.
21677 allow_undefined_flag=$lt_allow_undefined_flag_RC
21679 # Flag that forces no undefined symbols.
21680 no_undefined_flag=$lt_no_undefined_flag_RC
21682 # Commands used to finish a libtool library installation in a directory.
21683 finish_cmds=$lt_finish_cmds
21685 # Same as above, but a single script fragment to be evaled but not shown.
21686 finish_eval=$lt_finish_eval
21688 # Take the output of nm and produce a listing of raw symbols and C names.
21689 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21691 # Transform the output of nm in a proper C declaration
21692 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21694 # Transform the output of nm in a C name address pair
21695 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21697 # This is the shared library runtime path variable.
21698 runpath_var=$runpath_var
21700 # This is the shared library path variable.
21701 shlibpath_var=$shlibpath_var
21703 # Is shlibpath searched before the hard-coded library search path?
21704 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21706 # How to hardcode a shared library path into an executable.
21707 hardcode_action=$hardcode_action_RC
21709 # Whether we should hardcode library paths into libraries.
21710 hardcode_into_libs=$hardcode_into_libs
21712 # Flag to hardcode \$libdir into a binary during linking.
21713 # This must work even if \$libdir does not exist.
21714 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21716 # If ld is used when linking, flag to hardcode \$libdir into
21717 # a binary during linking. This must work even if \$libdir does
21719 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21721 # Whether we need a single -rpath flag with a separated argument.
21722 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21724 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21725 # resulting binary.
21726 hardcode_direct=$hardcode_direct_RC
21728 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21729 # resulting binary.
21730 hardcode_minus_L=$hardcode_minus_L_RC
21732 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21733 # the resulting binary.
21734 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21736 # Set to yes if building a shared library automatically hardcodes DIR into the library
21737 # and all subsequent libraries and executables linked against it.
21738 hardcode_automatic=$hardcode_automatic_RC
21740 # Variables whose values should be saved in libtool wrapper scripts and
21741 # restored at relink time.
21742 variables_saved_for_relink="$variables_saved_for_relink"
21744 # Whether libtool must link a program against all its dependency libraries.
21745 link_all_deplibs=$link_all_deplibs_RC
21747 # Compile-time system search path for libraries
21748 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21750 # Run-time system search path for libraries
21751 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21753 # Fix the shell variable \$srcfile for the compiler.
21754 fix_srcfile_path="$fix_srcfile_path_RC"
21756 # Set to yes if exported symbols are required.
21757 always_export_symbols=$always_export_symbols_RC
21759 # The commands to list exported symbols.
21760 export_symbols_cmds=$lt_export_symbols_cmds_RC
21762 # The commands to extract the exported symbol list from a shared archive.
21763 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21765 # Symbols that should not be listed in the preloaded symbols.
21766 exclude_expsyms=$lt_exclude_expsyms_RC
21768 # Symbols that must always be exported.
21769 include_expsyms=$lt_include_expsyms_RC
21771 # ### END LIBTOOL TAG CONFIG: $tagname
21777 # If there is no Makefile yet, we rely on a make rule to execute
21778 # `config.status --recheck' to rerun these tests and create the
21779 # libtool script then.
21780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21781 if test -f "$ltmain_in"; then
21782 test -f Makefile && make "$ltmain"
21788 ac_cpp='$CPP $CPPFLAGS'
21789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21798 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21799 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21800 { (exit 1); exit 1; }; }
21804 # Append the new tag name to the list of available tags.
21805 if test -n "$tagname" ; then
21806 available_tags="$available_tags $tagname"
21812 # Now substitute the updated list of available tags.
21813 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21814 mv "${ofile}T" "$ofile"
21818 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21819 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21820 { (exit 1); exit 1; }; }
21826 # This can be used to rebuild libtool when needed
21827 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21829 # Always use our own libtool.
21830 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21832 # Prevent multiple expansion
21855 if test $ol_enable_perl != no ; then
21856 # Extract the first word of "perl", so it can be a program name with args.
21857 set dummy perl; ac_word=$2
21858 echo "$as_me:$LINENO: checking for $ac_word" >&5
21859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21860 if test "${ac_cv_path_PERLBIN+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21865 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21869 for as_dir in $PATH
21872 test -z "$as_dir" && as_dir=.
21873 for ac_exec_ext in '' $ac_executable_extensions; do
21874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21875 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21882 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21886 PERLBIN=$ac_cv_path_PERLBIN
21888 if test -n "$PERLBIN"; then
21889 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21890 echo "${ECHO_T}$PERLBIN" >&6
21892 echo "$as_me:$LINENO: result: no" >&5
21893 echo "${ECHO_T}no" >&6
21897 if test "no$PERLBIN" = "no" ; then
21898 if test $ol_enable_perl = yes ; then
21899 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21900 echo "$as_me: error: could not locate perl" >&2;}
21901 { (exit 1); exit 1; }; }
21905 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21906 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21908 if test x"$ol_enable_perl" = "xyes" ; then
21909 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21911 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21918 ac_cpp='$CPP $CPPFLAGS'
21919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21922 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21923 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21924 # On Suns, sometimes $CPP names a directory.
21925 if test -n "$CPP" && test -d "$CPP"; then
21928 if test -z "$CPP"; then
21929 if test "${ac_cv_prog_CPP+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21932 # Double quotes because CPP needs to be expanded
21933 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21935 ac_preproc_ok=false
21936 for ac_c_preproc_warn_flag in '' yes
21938 # Use a header file that comes with gcc, so configuring glibc
21939 # with a fresh cross-compiler works.
21940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21941 # <limits.h> exists even on freestanding compilers.
21942 # On the NeXT, cc -E runs the code through the compiler's parser,
21943 # not just through cpp. "Syntax error" is here to catch this case.
21944 cat >conftest.$ac_ext <<_ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21951 # include <limits.h>
21953 # include <assert.h>
21957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } >/dev/null; then
21965 if test -s conftest.err; then
21966 ac_cpp_err=$ac_c_preproc_warn_flag
21967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21974 if test -z "$ac_cpp_err"; then
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 # Broken: fails on valid input.
21983 rm -f conftest.err conftest.$ac_ext
21985 # OK, works on sane cases. Now check whether non-existent headers
21986 # can be detected and how.
21987 cat >conftest.$ac_ext <<_ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21993 #include <ac_nonexistent.h>
21995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21998 grep -v '^ *+' conftest.er1 >conftest.err
22000 cat conftest.err >&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } >/dev/null; then
22003 if test -s conftest.err; then
22004 ac_cpp_err=$ac_c_preproc_warn_flag
22005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22012 if test -z "$ac_cpp_err"; then
22013 # Broken: success on invalid input.
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 # Passes both tests.
22023 rm -f conftest.err conftest.$ac_ext
22026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22027 rm -f conftest.err conftest.$ac_ext
22028 if $ac_preproc_ok; then
22033 ac_cv_prog_CPP=$CPP
22036 CPP=$ac_cv_prog_CPP
22038 ac_cv_prog_CPP=$CPP
22040 echo "$as_me:$LINENO: result: $CPP" >&5
22041 echo "${ECHO_T}$CPP" >&6
22042 ac_preproc_ok=false
22043 for ac_c_preproc_warn_flag in '' yes
22045 # Use a header file that comes with gcc, so configuring glibc
22046 # with a fresh cross-compiler works.
22047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22048 # <limits.h> exists even on freestanding compilers.
22049 # On the NeXT, cc -E runs the code through the compiler's parser,
22050 # not just through cpp. "Syntax error" is here to catch this case.
22051 cat >conftest.$ac_ext <<_ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22058 # include <limits.h>
22060 # include <assert.h>
22064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22067 grep -v '^ *+' conftest.er1 >conftest.err
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } >/dev/null; then
22072 if test -s conftest.err; then
22073 ac_cpp_err=$ac_c_preproc_warn_flag
22074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22081 if test -z "$ac_cpp_err"; then
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 # Broken: fails on valid input.
22090 rm -f conftest.err conftest.$ac_ext
22092 # OK, works on sane cases. Now check whether non-existent headers
22093 # can be detected and how.
22094 cat >conftest.$ac_ext <<_ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h. */
22100 #include <ac_nonexistent.h>
22102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22105 grep -v '^ *+' conftest.er1 >conftest.err
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } >/dev/null; then
22110 if test -s conftest.err; then
22111 ac_cpp_err=$ac_c_preproc_warn_flag
22112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22119 if test -z "$ac_cpp_err"; then
22120 # Broken: success on invalid input.
22123 echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22126 # Passes both tests.
22130 rm -f conftest.err conftest.$ac_ext
22133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22134 rm -f conftest.err conftest.$ac_ext
22135 if $ac_preproc_ok; then
22138 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22139 See \`config.log' for more details." >&5
22140 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22141 See \`config.log' for more details." >&2;}
22142 { (exit 1); exit 1; }; }
22146 ac_cpp='$CPP $CPPFLAGS'
22147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22155 cat >>confdefs.h <<_ACEOF
22156 #define EXEEXT "${EXEEXT}"
22160 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22161 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22162 if test "${ac_cv_lib_be_be_app+set}" = set; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22165 ac_check_lib_save_LIBS=$LIBS
22166 LIBS="-lbe -lroot -lnet $LIBS"
22167 cat >conftest.$ac_ext <<_ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22174 /* Override any gcc2 internal prototype to avoid an error. */
22178 /* We use char because int might match the return type of a gcc2
22179 builtin and then its argument prototype would still apply. */
22189 rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22191 (eval $ac_link) 2>conftest.er1
22193 grep -v '^ *+' conftest.er1 >conftest.err
22195 cat conftest.err >&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } &&
22198 { ac_try='test -z "$ac_c_werror_flag"
22199 || test ! -s conftest.err'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; } &&
22205 { ac_try='test -s conftest$ac_exeext'
22206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; }; then
22211 ac_cv_lib_be_be_app=yes
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_cv_lib_be_be_app=no
22218 rm -f conftest.err conftest.$ac_objext \
22219 conftest$ac_exeext conftest.$ac_ext
22220 LIBS=$ac_check_lib_save_LIBS
22222 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22223 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22224 if test $ac_cv_lib_be_be_app = yes; then
22225 LIBS="$LIBS -lbe -lroot -lnet"
22232 ac_cpp='$CPP $CPPFLAGS'
22233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22236 if test -n "$ac_tool_prefix"; then
22237 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22238 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22239 echo "$as_me:$LINENO: checking for $ac_word" >&5
22240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22241 if test "${ac_cv_prog_CC+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 if test -n "$CC"; then
22245 ac_cv_prog_CC="$CC" # Let the user override the test.
22247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22248 for as_dir in $PATH
22251 test -z "$as_dir" && as_dir=.
22252 for ac_exec_ext in '' $ac_executable_extensions; do
22253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22254 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22264 if test -n "$CC"; then
22265 echo "$as_me:$LINENO: result: $CC" >&5
22266 echo "${ECHO_T}$CC" >&6
22268 echo "$as_me:$LINENO: result: no" >&5
22269 echo "${ECHO_T}no" >&6
22273 if test -z "$ac_cv_prog_CC"; then
22275 # Extract the first word of "gcc", so it can be a program name with args.
22276 set dummy gcc; ac_word=$2
22277 echo "$as_me:$LINENO: checking for $ac_word" >&5
22278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 if test -n "$ac_ct_CC"; then
22283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22286 for as_dir in $PATH
22289 test -z "$as_dir" && as_dir=.
22290 for ac_exec_ext in '' $ac_executable_extensions; do
22291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22292 ac_cv_prog_ac_ct_CC="gcc"
22293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22302 if test -n "$ac_ct_CC"; then
22303 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22304 echo "${ECHO_T}$ac_ct_CC" >&6
22306 echo "$as_me:$LINENO: result: no" >&5
22307 echo "${ECHO_T}no" >&6
22312 CC="$ac_cv_prog_CC"
22315 if test -z "$CC"; then
22316 if test -n "$ac_tool_prefix"; then
22317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22318 set dummy ${ac_tool_prefix}cc; ac_word=$2
22319 echo "$as_me:$LINENO: checking for $ac_word" >&5
22320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22321 if test "${ac_cv_prog_CC+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 if test -n "$CC"; then
22325 ac_cv_prog_CC="$CC" # Let the user override the test.
22327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22328 for as_dir in $PATH
22331 test -z "$as_dir" && as_dir=.
22332 for ac_exec_ext in '' $ac_executable_extensions; do
22333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22334 ac_cv_prog_CC="${ac_tool_prefix}cc"
22335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22344 if test -n "$CC"; then
22345 echo "$as_me:$LINENO: result: $CC" >&5
22346 echo "${ECHO_T}$CC" >&6
22348 echo "$as_me:$LINENO: result: no" >&5
22349 echo "${ECHO_T}no" >&6
22353 if test -z "$ac_cv_prog_CC"; then
22355 # Extract the first word of "cc", so it can be a program name with args.
22356 set dummy cc; ac_word=$2
22357 echo "$as_me:$LINENO: checking for $ac_word" >&5
22358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22360 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 if test -n "$ac_ct_CC"; then
22363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22366 for as_dir in $PATH
22369 test -z "$as_dir" && as_dir=.
22370 for ac_exec_ext in '' $ac_executable_extensions; do
22371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22372 ac_cv_prog_ac_ct_CC="cc"
22373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22382 if test -n "$ac_ct_CC"; then
22383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22384 echo "${ECHO_T}$ac_ct_CC" >&6
22386 echo "$as_me:$LINENO: result: no" >&5
22387 echo "${ECHO_T}no" >&6
22392 CC="$ac_cv_prog_CC"
22396 if test -z "$CC"; then
22397 # Extract the first word of "cc", so it can be a program name with args.
22398 set dummy cc; ac_word=$2
22399 echo "$as_me:$LINENO: checking for $ac_word" >&5
22400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22401 if test "${ac_cv_prog_CC+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 if test -n "$CC"; then
22405 ac_cv_prog_CC="$CC" # Let the user override the test.
22407 ac_prog_rejected=no
22408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22409 for as_dir in $PATH
22412 test -z "$as_dir" && as_dir=.
22413 for ac_exec_ext in '' $ac_executable_extensions; do
22414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22416 ac_prog_rejected=yes
22420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22426 if test $ac_prog_rejected = yes; then
22427 # We found a bogon in the path, so make sure we never use it.
22428 set dummy $ac_cv_prog_CC
22430 if test $# != 0; then
22431 # We chose a different compiler from the bogus one.
22432 # However, it has the same basename, so the bogon will be chosen
22433 # first if we set CC to just the basename; use the full file name.
22435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22441 if test -n "$CC"; then
22442 echo "$as_me:$LINENO: result: $CC" >&5
22443 echo "${ECHO_T}$CC" >&6
22445 echo "$as_me:$LINENO: result: no" >&5
22446 echo "${ECHO_T}no" >&6
22450 if test -z "$CC"; then
22451 if test -n "$ac_tool_prefix"; then
22454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22456 echo "$as_me:$LINENO: checking for $ac_word" >&5
22457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22458 if test "${ac_cv_prog_CC+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 if test -n "$CC"; then
22462 ac_cv_prog_CC="$CC" # Let the user override the test.
22464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22465 for as_dir in $PATH
22468 test -z "$as_dir" && as_dir=.
22469 for ac_exec_ext in '' $ac_executable_extensions; do
22470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22471 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22481 if test -n "$CC"; then
22482 echo "$as_me:$LINENO: result: $CC" >&5
22483 echo "${ECHO_T}$CC" >&6
22485 echo "$as_me:$LINENO: result: no" >&5
22486 echo "${ECHO_T}no" >&6
22489 test -n "$CC" && break
22492 if test -z "$CC"; then
22496 # Extract the first word of "$ac_prog", so it can be a program name with args.
22497 set dummy $ac_prog; ac_word=$2
22498 echo "$as_me:$LINENO: checking for $ac_word" >&5
22499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 if test -n "$ac_ct_CC"; then
22504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22507 for as_dir in $PATH
22510 test -z "$as_dir" && as_dir=.
22511 for ac_exec_ext in '' $ac_executable_extensions; do
22512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22513 ac_cv_prog_ac_ct_CC="$ac_prog"
22514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22523 if test -n "$ac_ct_CC"; then
22524 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22525 echo "${ECHO_T}$ac_ct_CC" >&6
22527 echo "$as_me:$LINENO: result: no" >&5
22528 echo "${ECHO_T}no" >&6
22531 test -n "$ac_ct_CC" && break
22540 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22541 See \`config.log' for more details." >&5
22542 echo "$as_me: error: no acceptable C compiler found in \$PATH
22543 See \`config.log' for more details." >&2;}
22544 { (exit 1); exit 1; }; }
22546 # Provide some information about the compiler.
22547 echo "$as_me:$LINENO:" \
22548 "checking for C compiler version" >&5
22549 ac_compiler=`set X $ac_compile; echo $2`
22550 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22551 (eval $ac_compiler --version </dev/null >&5) 2>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }
22555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22556 (eval $ac_compiler -v </dev/null >&5) 2>&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }
22560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22561 (eval $ac_compiler -V </dev/null >&5) 2>&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }
22566 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22567 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22568 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22589 rm -f conftest.$ac_objext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22591 (eval $ac_compile) 2>conftest.er1
22593 grep -v '^ *+' conftest.er1 >conftest.err
22595 cat conftest.err >&5
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); } &&
22598 { ac_try='test -z "$ac_c_werror_flag"
22599 || test ! -s conftest.err'
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; } &&
22605 { ac_try='test -s conftest.$ac_objext'
22606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 (eval $ac_try) 2>&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; }; then
22611 ac_compiler_gnu=yes
22613 echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22619 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22622 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22623 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22624 GCC=`test $ac_compiler_gnu = yes && echo yes`
22625 ac_test_CFLAGS=${CFLAGS+set}
22626 ac_save_CFLAGS=$CFLAGS
22628 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22629 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22630 if test "${ac_cv_prog_cc_g+set}" = set; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22633 cat >conftest.$ac_ext <<_ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22648 rm -f conftest.$ac_objext
22649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22650 (eval $ac_compile) 2>conftest.er1
22652 grep -v '^ *+' conftest.er1 >conftest.err
22654 cat conftest.err >&5
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } &&
22657 { ac_try='test -z "$ac_c_werror_flag"
22658 || test ! -s conftest.err'
22659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660 (eval $ac_try) 2>&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); }; } &&
22664 { ac_try='test -s conftest.$ac_objext'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; }; then
22670 ac_cv_prog_cc_g=yes
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22679 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22680 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22681 if test "$ac_test_CFLAGS" = set; then
22682 CFLAGS=$ac_save_CFLAGS
22683 elif test $ac_cv_prog_cc_g = yes; then
22684 if test "$GCC" = yes; then
22690 if test "$GCC" = yes; then
22696 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22697 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22698 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 ac_cv_prog_cc_stdc=no
22703 cat >conftest.$ac_ext <<_ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22709 #include <stdarg.h>
22711 #include <sys/types.h>
22712 #include <sys/stat.h>
22713 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22714 struct buf { int x; };
22715 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22716 static char *e (p, i)
22722 static char *f (char * (*g) (char **, int), char **p, ...)
22727 s = g (p, va_arg (v,int));
22732 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22733 function prototypes and stuff, but not '\xHH' hex character constants.
22734 These don't provoke an error unfortunately, instead are silently treated
22735 as 'x'. The following induces an error, until -std1 is added to get
22736 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22737 array size at least. It's necessary to write '\x00'==0 to get something
22738 that's true only with -std1. */
22739 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22741 int test (int i, double x);
22742 struct s1 {int (*f) (int a);};
22743 struct s2 {int (*f) (double a);};
22744 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22750 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22755 # Don't try gcc -ansi; that turns off useful extensions and
22756 # breaks some systems' header files.
22757 # AIX -qlanglvl=ansi
22758 # Ultrix and OSF/1 -std1
22759 # HP-UX 10.20 and later -Ae
22760 # HP-UX older versions -Aa -D_HPUX_SOURCE
22761 # SVR4 -Xc -D__EXTENSIONS__
22762 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22764 CC="$ac_save_CC $ac_arg"
22765 rm -f conftest.$ac_objext
22766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22767 (eval $ac_compile) 2>conftest.er1
22769 grep -v '^ *+' conftest.er1 >conftest.err
22771 cat conftest.err >&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } &&
22774 { ac_try='test -z "$ac_c_werror_flag"
22775 || test ! -s conftest.err'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; } &&
22781 { ac_try='test -s conftest.$ac_objext'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; }; then
22787 ac_cv_prog_cc_stdc=$ac_arg
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22794 rm -f conftest.err conftest.$ac_objext
22796 rm -f conftest.$ac_ext conftest.$ac_objext
22801 case "x$ac_cv_prog_cc_stdc" in
22803 echo "$as_me:$LINENO: result: none needed" >&5
22804 echo "${ECHO_T}none needed" >&6 ;;
22806 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22807 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22808 CC="$CC $ac_cv_prog_cc_stdc" ;;
22811 # Some people use a C++ compiler to compile C. Since we use `exit',
22812 # in C++ we need to declare it. In case someone uses the same compiler
22813 # for both compiling C and C++ we need to have the C++ compiler decide
22814 # the declaration of exit, since it's the most demanding environment.
22815 cat >conftest.$ac_ext <<_ACEOF
22816 #ifndef __cplusplus
22820 rm -f conftest.$ac_objext
22821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22822 (eval $ac_compile) 2>conftest.er1
22824 grep -v '^ *+' conftest.er1 >conftest.err
22826 cat conftest.err >&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } &&
22829 { ac_try='test -z "$ac_c_werror_flag"
22830 || test ! -s conftest.err'
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; } &&
22836 { ac_try='test -s conftest.$ac_objext'
22837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838 (eval $ac_try) 2>&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); }; }; then
22842 for ac_declaration in \
22844 'extern "C" void std::exit (int) throw (); using std::exit;' \
22845 'extern "C" void std::exit (int); using std::exit;' \
22846 'extern "C" void exit (int) throw ();' \
22847 'extern "C" void exit (int);' \
22850 cat >conftest.$ac_ext <<_ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22857 #include <stdlib.h>
22866 rm -f conftest.$ac_objext
22867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22868 (eval $ac_compile) 2>conftest.er1
22870 grep -v '^ *+' conftest.er1 >conftest.err
22872 cat conftest.err >&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } &&
22875 { ac_try='test -z "$ac_c_werror_flag"
22876 || test ! -s conftest.err'
22877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; } &&
22882 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22896 cat >conftest.$ac_ext <<_ACEOF
22899 cat confdefs.h >>conftest.$ac_ext
22900 cat >>conftest.$ac_ext <<_ACEOF
22901 /* end confdefs.h. */
22911 rm -f conftest.$ac_objext
22912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22913 (eval $ac_compile) 2>conftest.er1
22915 grep -v '^ *+' conftest.er1 >conftest.err
22917 cat conftest.err >&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } &&
22920 { ac_try='test -z "$ac_c_werror_flag"
22921 || test ! -s conftest.err'
22922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22923 (eval $ac_try) 2>&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); }; } &&
22927 { ac_try='test -s conftest.$ac_objext'
22928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929 (eval $ac_try) 2>&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; }; then
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22942 if test -n "$ac_declaration"; then
22943 echo '#ifdef __cplusplus' >>confdefs.h
22944 echo $ac_declaration >>confdefs.h
22945 echo '#endif' >>confdefs.h
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22955 ac_cpp='$CPP $CPPFLAGS'
22956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22960 depcc="$CC" am_compiler_list=
22962 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22963 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22964 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22968 # We make a subdir and do the tests there. Otherwise we can end up
22969 # making bogus files that we don't know about and never remove. For
22970 # instance it was reported that on HP-UX the gcc test will end up
22971 # making a dummy file named `D' -- because `-MD' means `put the output
22974 # Copy depcomp to subdir because otherwise we won't find it if we're
22975 # using a relative directory.
22976 cp "$am_depcomp" conftest.dir
22978 # We will build objects and dependencies in a subdirectory because
22979 # it helps to detect inapplicable dependency modes. For instance
22980 # both Tru64's cc and ICC support -MD to output dependencies as a
22981 # side effect of compilation, but ICC will put the dependencies in
22982 # the current directory while Tru64 will put them in the object
22986 am_cv_CC_dependencies_compiler_type=none
22987 if test "$am_compiler_list" = ""; then
22988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22990 for depmode in $am_compiler_list; do
22991 # Setup a source with many dependencies, because some compilers
22992 # like to wrap large dependency lists on column 80 (with \), and
22993 # we should not choose a depcomp mode which is confused by this.
22995 # We need to recreate these files for each test, as the compiler may
22996 # overwrite some of them when testing with obscure command lines.
22997 # This happens at least with the AIX C compiler.
22999 for i in 1 2 3 4 5 6; do
23000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23002 # Solaris 8's {/usr,}/bin/sh.
23003 touch sub/conftst$i.h
23005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23009 # after this tag, mechanisms are not by side-effect, so they'll
23010 # only be used when explicitly requested
23011 if test "x$enable_dependency_tracking" = xyes; then
23019 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23020 # mode. It turns out that the SunPro C++ compiler does not properly
23021 # handle `-M -o', and we need to detect this.
23022 if depmode=$depmode \
23023 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23025 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23026 >/dev/null 2>conftest.err &&
23027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23028 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23030 # icc doesn't choke on unknown options, it will just issue warnings
23031 # or remarks (even with -Werror). So we grep stderr for any message
23032 # that says an option was ignored or not supported.
23033 # When given -MP, icc 7.0 and 7.1 complain thusly:
23034 # icc: Command line warning: ignoring option '-M'; no argument required
23035 # The diagnosis changed in icc 8.0:
23036 # icc: Command line remark: option '-MP' not supported
23037 if (grep 'ignoring option' conftest.err ||
23038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23039 am_cv_CC_dependencies_compiler_type=$depmode
23046 rm -rf conftest.dir
23048 am_cv_CC_dependencies_compiler_type=none
23052 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
23053 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
23054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
23059 test "x$enable_dependency_tracking" != xno \
23060 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
23061 am__fastdepCC_TRUE=
23062 am__fastdepCC_FALSE='#'
23064 am__fastdepCC_TRUE='#'
23065 am__fastdepCC_FALSE=
23069 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
23070 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
23071 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
23072 { (exit 1); exit 1; }; }
23075 # test for make depend flag
23078 if test -z "${MKDEP}"; then
23079 OL_MKDEP="${CC-cc}"
23080 if test -z "${MKDEP_FLAGS}"; then
23081 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
23082 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
23083 if test "${ol_cv_mkdep+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23088 for flag in "-M" "-xM"; do
23089 cat > conftest.c <<EOF
23092 if { ac_try='$OL_MKDEP $flag conftest.c'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; } \
23098 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
23100 if test ! -f conftest."${ac_object}" ; then
23102 OL_MKDEP_FLAGS="$flag"
23110 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
23111 echo "${ECHO_T}$ol_cv_mkdep" >&6
23114 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23118 OL_MKDEP="${MKDEP}"
23119 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23124 if test "${ol_cv_mkdep}" = no ; then
23125 # this will soon become an error
23126 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23127 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23130 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23131 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23132 if test "${ac_cv_lib_s_afopen+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 ac_check_lib_save_LIBS=$LIBS
23137 cat >conftest.$ac_ext <<_ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23144 /* Override any gcc2 internal prototype to avoid an error. */
23148 /* We use char because int might match the return type of a gcc2
23149 builtin and then its argument prototype would still apply. */
23159 rm -f conftest.$ac_objext conftest$ac_exeext
23160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23161 (eval $ac_link) 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } &&
23168 { ac_try='test -z "$ac_c_werror_flag"
23169 || test ! -s conftest.err'
23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171 (eval $ac_try) 2>&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; } &&
23175 { ac_try='test -s conftest$ac_exeext'
23176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177 (eval $ac_try) 2>&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 ac_cv_lib_s_afopen=yes
23183 echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23186 ac_cv_lib_s_afopen=no
23188 rm -f conftest.err conftest.$ac_objext \
23189 conftest$ac_exeext conftest.$ac_ext
23190 LIBS=$ac_check_lib_save_LIBS
23192 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23193 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23194 if test $ac_cv_lib_s_afopen = yes; then
23198 cat >>confdefs.h <<\_ACEOF
23199 #define HAVE_AIX_SECURITY 1
23208 ac_cv_func_getopt=no
23210 cat >>confdefs.h <<\_ACEOF
23211 #define BOTH_STRINGS_H 1
23218 WITH_MODULES_ENABLED=no
23219 if test $ol_enable_modules != no ; then
23221 for ac_header in ltdl.h
23223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23225 echo "$as_me:$LINENO: checking for $ac_header" >&5
23226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23233 # Is the header compilable?
23234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23236 cat >conftest.$ac_ext <<_ACEOF
23239 cat confdefs.h >>conftest.$ac_ext
23240 cat >>conftest.$ac_ext <<_ACEOF
23241 /* end confdefs.h. */
23242 $ac_includes_default
23243 #include <$ac_header>
23245 rm -f conftest.$ac_objext
23246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23247 (eval $ac_compile) 2>conftest.er1
23249 grep -v '^ *+' conftest.er1 >conftest.err
23251 cat conftest.err >&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); } &&
23254 { ac_try='test -z "$ac_c_werror_flag"
23255 || test ! -s conftest.err'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; } &&
23261 { ac_try='test -s conftest.$ac_objext'
23262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23263 (eval $ac_try) 2>&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); }; }; then
23267 ac_header_compiler=yes
23269 echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23272 ac_header_compiler=no
23274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23276 echo "${ECHO_T}$ac_header_compiler" >&6
23278 # Is the header present?
23279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23281 cat >conftest.$ac_ext <<_ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h. */
23287 #include <$ac_header>
23289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } >/dev/null; then
23297 if test -s conftest.err; then
23298 ac_cpp_err=$ac_c_preproc_warn_flag
23299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23306 if test -z "$ac_cpp_err"; then
23307 ac_header_preproc=yes
23309 echo "$as_me: failed program was:" >&5
23310 sed 's/^/| /' conftest.$ac_ext >&5
23312 ac_header_preproc=no
23314 rm -f conftest.err conftest.$ac_ext
23315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23316 echo "${ECHO_T}$ac_header_preproc" >&6
23318 # So? What about this header?
23319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23325 ac_header_preproc=yes
23328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23342 ## ------------------------------------------ ##
23343 ## Report this to the AC_PACKAGE_NAME lists. ##
23344 ## ------------------------------------------ ##
23347 sed "s/^/$as_me: WARNING: /" >&2
23350 echo "$as_me:$LINENO: checking for $ac_header" >&5
23351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23353 echo $ECHO_N "(cached) $ECHO_C" >&6
23355 eval "$as_ac_Header=\$ac_header_preproc"
23357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23362 cat >>confdefs.h <<_ACEOF
23363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23371 if test $ac_cv_header_ltdl_h = no ; then
23372 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23373 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23374 { (exit 1); exit 1; }; }
23377 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23378 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23379 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23380 echo $ECHO_N "(cached) $ECHO_C" >&6
23382 ac_check_lib_save_LIBS=$LIBS
23383 LIBS="-lltdl $LIBS"
23384 cat >conftest.$ac_ext <<_ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h. */
23391 /* Override any gcc2 internal prototype to avoid an error. */
23395 /* We use char because int might match the return type of a gcc2
23396 builtin and then its argument prototype would still apply. */
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408 (eval $ac_link) 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } &&
23415 { ac_try='test -z "$ac_c_werror_flag"
23416 || test ! -s conftest.err'
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; } &&
23422 { ac_try='test -s conftest$ac_exeext'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; }; then
23428 ac_cv_lib_ltdl_lt_dlinit=yes
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ac_cv_lib_ltdl_lt_dlinit=no
23435 rm -f conftest.err conftest.$ac_objext \
23436 conftest$ac_exeext conftest.$ac_ext
23437 LIBS=$ac_check_lib_save_LIBS
23439 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23440 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23441 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23443 MODULES_LIBS=-lltdl
23445 cat >>confdefs.h <<\_ACEOF
23446 #define HAVE_LIBLTDL 1
23453 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23454 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23455 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23456 { (exit 1); exit 1; }; }
23458 ol_link_modules=yes
23459 WITH_MODULES_ENABLED=yes
23462 for i in $Backends; do
23463 eval "ol_tmp=\$ol_enable_$i"
23464 if test $ol_tmp = mod ; then
23465 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23466 echo "$as_me: WARNING: building static $i backend" >&2;}
23467 eval "ol_enable_$i=yes"
23470 for i in $Overlays; do
23471 eval "ol_tmp=\$ol_enable_$i"
23472 if test $ol_tmp = mod ; then
23473 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23474 echo "$as_me: WARNING: building static $i overlay" >&2;}
23475 eval "ol_enable_$i=yes"
23481 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23482 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23483 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23484 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 cat >conftest.$ac_ext <<_ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23495 #include <__ASCII__/generate_error.h>
23499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23502 grep -v '^ *+' conftest.er1 >conftest.err
23504 cat conftest.err >&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } >/dev/null; then
23507 if test -s conftest.err; then
23508 ac_cpp_err=$ac_c_preproc_warn_flag
23509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23516 if test -z "$ac_cpp_err"; then
23517 ol_cv_cpp_ebcdic=yes
23519 echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23522 ol_cv_cpp_ebcdic=no
23524 rm -f conftest.err conftest.$ac_ext
23526 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23527 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23528 if test $ol_cv_cpp_ebcdic = yes ; then
23530 cat >>confdefs.h <<\_ACEOF
23531 #define HAVE_EBCDIC 1
23536 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23537 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23538 if test "${ol_cv_header_stdc+set}" = set; then
23539 echo $ECHO_N "(cached) $ECHO_C" >&6
23541 cat >conftest.$ac_ext <<_ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 #include <stdlib.h>
23548 #include <stdarg.h>
23549 #include <string.h>
23552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23555 grep -v '^ *+' conftest.er1 >conftest.err
23557 cat conftest.err >&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); } >/dev/null; then
23560 if test -s conftest.err; then
23561 ac_cpp_err=$ac_c_preproc_warn_flag
23562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23569 if test -z "$ac_cpp_err"; then
23570 ol_cv_header_stdc=yes
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 ol_cv_header_stdc=no
23577 rm -f conftest.err conftest.$ac_ext
23579 if test $ol_cv_header_stdc = yes; then
23580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23581 cat >conftest.$ac_ext <<_ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23587 #include <string.h>
23590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23591 $EGREP "memchr" >/dev/null 2>&1; then
23594 ol_cv_header_stdc=no
23600 if test $ol_cv_header_stdc = yes; then
23601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23602 cat >conftest.$ac_ext <<_ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23608 #include <stdlib.h>
23611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23612 $EGREP "free" >/dev/null 2>&1; then
23615 ol_cv_header_stdc=no
23621 if test $ol_cv_header_stdc = yes; then
23622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23623 if test "$cross_compiling" = yes; then
23626 cat >conftest.$ac_ext <<_ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h. */
23633 #ifndef HAVE_EBCDIC
23634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23637 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23638 || ('j' <= (c) && (c) <= 'r') \
23639 || ('s' <= (c) && (c) <= 'z'))
23640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23643 int main () { int i; for (i = 0; i < 256; i++)
23644 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23648 rm -f conftest$ac_exeext
23649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650 (eval $ac_link) 2>&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23655 (eval $ac_try) 2>&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); }; }; then
23661 echo "$as_me: program exited with status $ac_status" >&5
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23665 ( exit $ac_status )
23666 ol_cv_header_stdc=no
23668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23672 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23673 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23674 if test $ol_cv_header_stdc = yes; then
23675 cat >>confdefs.h <<\_ACEOF
23676 #define STDC_HEADERS 1
23680 ac_cv_header_stdc=disable
23683 if test $ol_cv_header_stdc != yes; then
23684 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23685 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23693 ac_header_dirent=no
23694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23695 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23696 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23697 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23701 cat >conftest.$ac_ext <<_ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h. */
23707 #include <sys/types.h>
23719 rm -f conftest.$ac_objext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23721 (eval $ac_compile) 2>conftest.er1
23723 grep -v '^ *+' conftest.er1 >conftest.err
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } &&
23728 { ac_try='test -z "$ac_c_werror_flag"
23729 || test ! -s conftest.err'
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; } &&
23735 { ac_try='test -s conftest.$ac_objext'
23736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737 (eval $ac_try) 2>&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; }; then
23741 eval "$as_ac_Header=yes"
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23746 eval "$as_ac_Header=no"
23748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23753 cat >>confdefs.h <<_ACEOF
23754 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23757 ac_header_dirent=$ac_hdr; break
23761 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23762 if test $ac_header_dirent = dirent.h; then
23763 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23765 if test "${ac_cv_search_opendir+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23768 ac_func_search_save_LIBS=$LIBS
23769 ac_cv_search_opendir=no
23770 cat >conftest.$ac_ext <<_ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h. */
23777 /* Override any gcc2 internal prototype to avoid an error. */
23781 /* We use char because int might match the return type of a gcc2
23782 builtin and then its argument prototype would still apply. */
23792 rm -f conftest.$ac_objext conftest$ac_exeext
23793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23794 (eval $ac_link) 2>conftest.er1
23796 grep -v '^ *+' conftest.er1 >conftest.err
23798 cat conftest.err >&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } &&
23801 { ac_try='test -z "$ac_c_werror_flag"
23802 || test ! -s conftest.err'
23803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23804 (eval $ac_try) 2>&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); }; } &&
23808 { ac_try='test -s conftest$ac_exeext'
23809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810 (eval $ac_try) 2>&5
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); }; }; then
23814 ac_cv_search_opendir="none required"
23816 echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23820 rm -f conftest.err conftest.$ac_objext \
23821 conftest$ac_exeext conftest.$ac_ext
23822 if test "$ac_cv_search_opendir" = no; then
23823 for ac_lib in dir; do
23824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23825 cat >conftest.$ac_ext <<_ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23832 /* Override any gcc2 internal prototype to avoid an error. */
23836 /* We use char because int might match the return type of a gcc2
23837 builtin and then its argument prototype would still apply. */
23847 rm -f conftest.$ac_objext conftest$ac_exeext
23848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23849 (eval $ac_link) 2>conftest.er1
23851 grep -v '^ *+' conftest.er1 >conftest.err
23853 cat conftest.err >&5
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); } &&
23856 { ac_try='test -z "$ac_c_werror_flag"
23857 || test ! -s conftest.err'
23858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859 (eval $ac_try) 2>&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; } &&
23863 { ac_try='test -s conftest$ac_exeext'
23864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865 (eval $ac_try) 2>&5
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); }; }; then
23869 ac_cv_search_opendir="-l$ac_lib"
23872 echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23876 rm -f conftest.err conftest.$ac_objext \
23877 conftest$ac_exeext conftest.$ac_ext
23880 LIBS=$ac_func_search_save_LIBS
23882 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23883 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23884 if test "$ac_cv_search_opendir" != no; then
23885 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23890 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23891 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23892 if test "${ac_cv_search_opendir+set}" = set; then
23893 echo $ECHO_N "(cached) $ECHO_C" >&6
23895 ac_func_search_save_LIBS=$LIBS
23896 ac_cv_search_opendir=no
23897 cat >conftest.$ac_ext <<_ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h. */
23904 /* Override any gcc2 internal prototype to avoid an error. */
23908 /* We use char because int might match the return type of a gcc2
23909 builtin and then its argument prototype would still apply. */
23919 rm -f conftest.$ac_objext conftest$ac_exeext
23920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23921 (eval $ac_link) 2>conftest.er1
23923 grep -v '^ *+' conftest.er1 >conftest.err
23925 cat conftest.err >&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } &&
23928 { ac_try='test -z "$ac_c_werror_flag"
23929 || test ! -s conftest.err'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; } &&
23935 { ac_try='test -s conftest$ac_exeext'
23936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937 (eval $ac_try) 2>&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23941 ac_cv_search_opendir="none required"
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23947 rm -f conftest.err conftest.$ac_objext \
23948 conftest$ac_exeext conftest.$ac_ext
23949 if test "$ac_cv_search_opendir" = no; then
23950 for ac_lib in x; do
23951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23959 /* Override any gcc2 internal prototype to avoid an error. */
23963 /* We use char because int might match the return type of a gcc2
23964 builtin and then its argument prototype would still apply. */
23974 rm -f conftest.$ac_objext conftest$ac_exeext
23975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23976 (eval $ac_link) 2>conftest.er1
23978 grep -v '^ *+' conftest.er1 >conftest.err
23980 cat conftest.err >&5
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } &&
23983 { ac_try='test -z "$ac_c_werror_flag"
23984 || test ! -s conftest.err'
23985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986 (eval $ac_try) 2>&5
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); }; } &&
23990 { ac_try='test -s conftest$ac_exeext'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 ac_cv_search_opendir="-l$ac_lib"
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24003 rm -f conftest.err conftest.$ac_objext \
24004 conftest$ac_exeext conftest.$ac_ext
24007 LIBS=$ac_func_search_save_LIBS
24009 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24010 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24011 if test "$ac_cv_search_opendir" != no; then
24012 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24018 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24019 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
24020 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24023 cat >conftest.$ac_ext <<_ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h. */
24029 #include <sys/types.h>
24030 #include <sys/wait.h>
24031 #ifndef WEXITSTATUS
24032 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
24035 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24043 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24048 rm -f conftest.$ac_objext
24049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24050 (eval $ac_compile) 2>conftest.er1
24052 grep -v '^ *+' conftest.er1 >conftest.err
24054 cat conftest.err >&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } &&
24057 { ac_try='test -z "$ac_c_werror_flag"
24058 || test ! -s conftest.err'
24059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); }; } &&
24064 { ac_try='test -s conftest.$ac_objext'
24065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066 (eval $ac_try) 2>&5
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); }; }; then
24070 ac_cv_header_sys_wait_h=yes
24072 echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 ac_cv_header_sys_wait_h=no
24077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24079 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24080 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
24081 if test $ac_cv_header_sys_wait_h = yes; then
24083 cat >>confdefs.h <<\_ACEOF
24084 #define HAVE_SYS_WAIT_H 1
24089 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
24090 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
24091 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
24092 echo $ECHO_N "(cached) $ECHO_C" >&6
24094 cat >conftest.$ac_ext <<_ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h. */
24100 #include <sys/types.h>
24101 #include <termios.h>
24107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24108 $EGREP "yes" >/dev/null 2>&1; then
24109 ac_cv_sys_tiocgwinsz_in_termios_h=yes
24111 ac_cv_sys_tiocgwinsz_in_termios_h=no
24116 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
24117 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24119 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24120 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24121 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24122 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24125 cat >conftest.$ac_ext <<_ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h. */
24131 #include <sys/types.h>
24132 #include <sys/ioctl.h>
24138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24139 $EGREP "yes" >/dev/null 2>&1; then
24140 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24142 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24147 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24148 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24150 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24152 cat >>confdefs.h <<\_ACEOF
24153 #define GWINSZ_IN_SYS_IOCTL 1
24257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24259 echo "$as_me:$LINENO: checking for $ac_header" >&5
24260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
24264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24267 # Is the header compilable?
24268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24270 cat >conftest.$ac_ext <<_ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h. */
24276 $ac_includes_default
24277 #include <$ac_header>
24279 rm -f conftest.$ac_objext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24281 (eval $ac_compile) 2>conftest.er1
24283 grep -v '^ *+' conftest.er1 >conftest.err
24285 cat conftest.err >&5
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } &&
24288 { ac_try='test -z "$ac_c_werror_flag"
24289 || test ! -s conftest.err'
24290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24291 (eval $ac_try) 2>&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); }; } &&
24295 { ac_try='test -s conftest.$ac_objext'
24296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297 (eval $ac_try) 2>&5
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; }; then
24301 ac_header_compiler=yes
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24306 ac_header_compiler=no
24308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24310 echo "${ECHO_T}$ac_header_compiler" >&6
24312 # Is the header present?
24313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24315 cat >conftest.$ac_ext <<_ACEOF
24318 cat confdefs.h >>conftest.$ac_ext
24319 cat >>conftest.$ac_ext <<_ACEOF
24320 /* end confdefs.h. */
24321 #include <$ac_header>
24323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24326 grep -v '^ *+' conftest.er1 >conftest.err
24328 cat conftest.err >&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } >/dev/null; then
24331 if test -s conftest.err; then
24332 ac_cpp_err=$ac_c_preproc_warn_flag
24333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24340 if test -z "$ac_cpp_err"; then
24341 ac_header_preproc=yes
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24346 ac_header_preproc=no
24348 rm -f conftest.err conftest.$ac_ext
24349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24350 echo "${ECHO_T}$ac_header_preproc" >&6
24352 # So? What about this header?
24353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24359 ac_header_preproc=yes
24362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24376 ## ------------------------------------------ ##
24377 ## Report this to the AC_PACKAGE_NAME lists. ##
24378 ## ------------------------------------------ ##
24381 sed "s/^/$as_me: WARNING: /" >&2
24384 echo "$as_me:$LINENO: checking for $ac_header" >&5
24385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24389 eval "$as_ac_Header=\$ac_header_preproc"
24391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24396 cat >>confdefs.h <<_ACEOF
24397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24406 for ac_header in resolv.h
24408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24409 echo "$as_me:$LINENO: checking for $ac_header" >&5
24410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24412 echo $ECHO_N "(cached) $ECHO_C" >&6
24414 cat >conftest.$ac_ext <<_ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h. */
24420 $ac_includes_default
24421 #include <netinet/in.h>
24424 #include <$ac_header>
24426 rm -f conftest.$ac_objext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24428 (eval $ac_compile) 2>conftest.er1
24430 grep -v '^ *+' conftest.er1 >conftest.err
24432 cat conftest.err >&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); } &&
24435 { ac_try='test -z "$ac_c_werror_flag"
24436 || test ! -s conftest.err'
24437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438 (eval $ac_try) 2>&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; } &&
24442 { ac_try='test -s conftest.$ac_objext'
24443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444 (eval $ac_try) 2>&5
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; }; then
24448 eval "$as_ac_Header=yes"
24450 echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 eval "$as_ac_Header=no"
24455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24460 cat >>confdefs.h <<_ACEOF
24461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24470 for ac_header in sys/ucred.h
24472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24473 echo "$as_me:$LINENO: checking for $ac_header" >&5
24474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24478 cat >conftest.$ac_ext <<_ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 $ac_includes_default
24485 #ifdef HAVE_SYS_PARAM_H
24486 #include <sys/param.h>
24490 #include <$ac_header>
24492 rm -f conftest.$ac_objext
24493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24494 (eval $ac_compile) 2>conftest.er1
24496 grep -v '^ *+' conftest.er1 >conftest.err
24498 cat conftest.err >&5
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); } &&
24501 { ac_try='test -z "$ac_c_werror_flag"
24502 || test ! -s conftest.err'
24503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504 (eval $ac_try) 2>&5
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); }; } &&
24508 { ac_try='test -s conftest.$ac_objext'
24509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24510 (eval $ac_try) 2>&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); }; }; then
24514 eval "$as_ac_Header=yes"
24516 echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24519 eval "$as_ac_Header=no"
24521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24526 cat >>confdefs.h <<_ACEOF
24527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24538 for ac_func in sigaction sigset
24540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24541 echo "$as_me:$LINENO: checking for $ac_func" >&5
24542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24543 if eval "test \"\${$as_ac_var+set}\" = set"; then
24544 echo $ECHO_N "(cached) $ECHO_C" >&6
24546 cat >conftest.$ac_ext <<_ACEOF
24549 cat confdefs.h >>conftest.$ac_ext
24550 cat >>conftest.$ac_ext <<_ACEOF
24551 /* end confdefs.h. */
24552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24554 #define $ac_func innocuous_$ac_func
24556 /* System header to define __stub macros and hopefully few prototypes,
24557 which can conflict with char $ac_func (); below.
24558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24559 <limits.h> exists even on freestanding compilers. */
24562 # include <limits.h>
24564 # include <assert.h>
24569 /* Override any gcc2 internal prototype to avoid an error. */
24574 /* We use char because int might match the return type of a gcc2
24575 builtin and then its argument prototype would still apply. */
24577 /* The GNU C library defines this for functions which it implements
24578 to always fail with ENOSYS. Some functions are actually named
24579 something starting with __ and the normal name is an alias. */
24580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24583 char (*f) () = $ac_func;
24592 return f != $ac_func;
24597 rm -f conftest.$ac_objext conftest$ac_exeext
24598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24599 (eval $ac_link) 2>conftest.er1
24601 grep -v '^ *+' conftest.er1 >conftest.err
24603 cat conftest.err >&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); } &&
24606 { ac_try='test -z "$ac_c_werror_flag"
24607 || test ! -s conftest.err'
24608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609 (eval $ac_try) 2>&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; } &&
24613 { ac_try='test -s conftest$ac_exeext'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 eval "$as_ac_var=yes"
24621 echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24624 eval "$as_ac_var=no"
24626 rm -f conftest.err conftest.$ac_objext \
24627 conftest$ac_exeext conftest.$ac_ext
24629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24631 if test `eval echo '${'$as_ac_var'}'` = yes; then
24632 cat >>confdefs.h <<_ACEOF
24633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24640 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24642 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24643 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24644 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24645 echo $ECHO_N "(cached) $ECHO_C" >&6
24647 ac_check_lib_save_LIBS=$LIBS
24649 cat >conftest.$ac_ext <<_ACEOF
24652 cat confdefs.h >>conftest.$ac_ext
24653 cat >>conftest.$ac_ext <<_ACEOF
24654 /* end confdefs.h. */
24656 /* Override any gcc2 internal prototype to avoid an error. */
24660 /* We use char because int might match the return type of a gcc2
24661 builtin and then its argument prototype would still apply. */
24671 rm -f conftest.$ac_objext conftest$ac_exeext
24672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24673 (eval $ac_link) 2>conftest.er1
24675 grep -v '^ *+' conftest.er1 >conftest.err
24677 cat conftest.err >&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } &&
24680 { ac_try='test -z "$ac_c_werror_flag"
24681 || test ! -s conftest.err'
24682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683 (eval $ac_try) 2>&5
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); }; } &&
24687 { ac_try='test -s conftest$ac_exeext'
24688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689 (eval $ac_try) 2>&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; }; then
24693 ac_cv_lib_V3_sigset=yes
24695 echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24698 ac_cv_lib_V3_sigset=no
24700 rm -f conftest.err conftest.$ac_objext \
24701 conftest$ac_exeext conftest.$ac_ext
24702 LIBS=$ac_check_lib_save_LIBS
24704 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24705 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24706 if test $ac_cv_lib_V3_sigset = yes; then
24707 cat >>confdefs.h <<_ACEOF
24708 #define HAVE_LIBV3 1
24717 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24718 echo "$as_me:$LINENO: checking for winsock" >&5
24719 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24720 if test "${ol_cv_winsock+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24724 for curlib in ws2_32 wsock32; do
24725 LIBS="$LIBS -l$curlib"
24726 cat >conftest.$ac_ext <<_ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h. */
24732 #include <winsock.h>
24739 select(0,NULL,NULL,NULL,NULL);
24741 gethostname(NULL,0);
24747 rm -f conftest.$ac_objext conftest$ac_exeext
24748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24749 (eval $ac_link) 2>conftest.er1
24751 grep -v '^ *+' conftest.er1 >conftest.err
24753 cat conftest.err >&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); } &&
24756 { ac_try='test -z "$ac_c_werror_flag"
24757 || test ! -s conftest.err'
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; } &&
24763 { ac_try='test -s conftest$ac_exeext'
24764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765 (eval $ac_try) 2>&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); }; }; then
24771 echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24776 rm -f conftest.err conftest.$ac_objext \
24777 conftest$ac_exeext conftest.$ac_ext
24779 if test $ol_cv_winsock = yes; then
24781 cat >>confdefs.h <<\_ACEOF
24782 #define HAVE_WINSOCK 1
24785 ac_cv_func_socket=yes
24786 ac_cv_func_select=yes
24787 ac_cv_func_closesocket=yes
24788 ac_cv_func_gethostname=yes
24789 if test $curlib = ws2_32; then
24790 ol_cv_winsock=winsock2
24792 cat >>confdefs.h <<\_ACEOF
24793 #define HAVE_WINSOCK2 1
24802 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24803 echo "${ECHO_T}$ol_cv_winsock" >&6
24807 echo "$as_me:$LINENO: checking for socket" >&5
24808 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24809 if test "${ac_cv_func_socket+set}" = set; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24812 cat >conftest.$ac_ext <<_ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24818 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24820 #define socket innocuous_socket
24822 /* System header to define __stub macros and hopefully few prototypes,
24823 which can conflict with char socket (); below.
24824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24825 <limits.h> exists even on freestanding compilers. */
24828 # include <limits.h>
24830 # include <assert.h>
24835 /* Override any gcc2 internal prototype to avoid an error. */
24840 /* We use char because int might match the return type of a gcc2
24841 builtin and then its argument prototype would still apply. */
24843 /* The GNU C library defines this for functions which it implements
24844 to always fail with ENOSYS. Some functions are actually named
24845 something starting with __ and the normal name is an alias. */
24846 #if defined (__stub_socket) || defined (__stub___socket)
24849 char (*f) () = socket;
24858 return f != socket;
24863 rm -f conftest.$ac_objext conftest$ac_exeext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24865 (eval $ac_link) 2>conftest.er1
24867 grep -v '^ *+' conftest.er1 >conftest.err
24869 cat conftest.err >&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } &&
24872 { ac_try='test -z "$ac_c_werror_flag"
24873 || test ! -s conftest.err'
24874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875 (eval $ac_try) 2>&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); }; } &&
24879 { ac_try='test -s conftest$ac_exeext'
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; }; then
24885 ac_cv_func_socket=yes
24887 echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24890 ac_cv_func_socket=no
24892 rm -f conftest.err conftest.$ac_objext \
24893 conftest$ac_exeext conftest.$ac_ext
24895 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24896 echo "${ECHO_T}$ac_cv_func_socket" >&6
24897 if test $ac_cv_func_socket = yes; then
24902 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24903 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24904 if test "${ac_cv_lib_socket_main+set}" = set; then
24905 echo $ECHO_N "(cached) $ECHO_C" >&6
24907 ac_check_lib_save_LIBS=$LIBS
24908 LIBS="-lsocket $LIBS"
24909 cat >conftest.$ac_ext <<_ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h. */
24925 rm -f conftest.$ac_objext conftest$ac_exeext
24926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24927 (eval $ac_link) 2>conftest.er1
24929 grep -v '^ *+' conftest.er1 >conftest.err
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } &&
24934 { ac_try='test -z "$ac_c_werror_flag"
24935 || test ! -s conftest.err'
24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; } &&
24941 { ac_try='test -s conftest$ac_exeext'
24942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943 (eval $ac_try) 2>&5
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); }; }; then
24947 ac_cv_lib_socket_main=yes
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24952 ac_cv_lib_socket_main=no
24954 rm -f conftest.err conftest.$ac_objext \
24955 conftest$ac_exeext conftest.$ac_ext
24956 LIBS=$ac_check_lib_save_LIBS
24958 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24959 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24960 if test $ac_cv_lib_socket_main = yes; then
24961 cat >>confdefs.h <<_ACEOF
24962 #define HAVE_LIBSOCKET 1
24965 LIBS="-lsocket $LIBS"
24970 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24971 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24972 if test "${ac_cv_lib_net_main+set}" = set; then
24973 echo $ECHO_N "(cached) $ECHO_C" >&6
24975 ac_check_lib_save_LIBS=$LIBS
24977 cat >conftest.$ac_ext <<_ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24993 rm -f conftest.$ac_objext conftest$ac_exeext
24994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24995 (eval $ac_link) 2>conftest.er1
24997 grep -v '^ *+' conftest.er1 >conftest.err
24999 cat conftest.err >&5
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); } &&
25002 { ac_try='test -z "$ac_c_werror_flag"
25003 || test ! -s conftest.err'
25004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005 (eval $ac_try) 2>&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; } &&
25009 { ac_try='test -s conftest$ac_exeext'
25010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011 (eval $ac_try) 2>&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; }; then
25015 ac_cv_lib_net_main=yes
25017 echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25020 ac_cv_lib_net_main=no
25022 rm -f conftest.err conftest.$ac_objext \
25023 conftest$ac_exeext conftest.$ac_ext
25024 LIBS=$ac_check_lib_save_LIBS
25026 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
25027 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
25028 if test $ac_cv_lib_net_main = yes; then
25029 cat >>confdefs.h <<_ACEOF
25030 #define HAVE_LIBNET 1
25038 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
25039 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
25040 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
25041 echo $ECHO_N "(cached) $ECHO_C" >&6
25043 ac_check_lib_save_LIBS=$LIBS
25044 LIBS="-lnsl_s $LIBS"
25045 cat >conftest.$ac_ext <<_ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h. */
25061 rm -f conftest.$ac_objext conftest$ac_exeext
25062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25063 (eval $ac_link) 2>conftest.er1
25065 grep -v '^ *+' conftest.er1 >conftest.err
25067 cat conftest.err >&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } &&
25070 { ac_try='test -z "$ac_c_werror_flag"
25071 || test ! -s conftest.err'
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; } &&
25077 { ac_try='test -s conftest$ac_exeext'
25078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25079 (eval $ac_try) 2>&5
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); }; }; then
25083 ac_cv_lib_nsl_s_main=yes
25085 echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25088 ac_cv_lib_nsl_s_main=no
25090 rm -f conftest.err conftest.$ac_objext \
25091 conftest$ac_exeext conftest.$ac_ext
25092 LIBS=$ac_check_lib_save_LIBS
25094 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
25095 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
25096 if test $ac_cv_lib_nsl_s_main = yes; then
25097 cat >>confdefs.h <<_ACEOF
25098 #define HAVE_LIBNSL_S 1
25101 LIBS="-lnsl_s $LIBS"
25106 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
25107 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
25108 if test "${ac_cv_lib_nsl_main+set}" = set; then
25109 echo $ECHO_N "(cached) $ECHO_C" >&6
25111 ac_check_lib_save_LIBS=$LIBS
25113 cat >conftest.$ac_ext <<_ACEOF
25116 cat confdefs.h >>conftest.$ac_ext
25117 cat >>conftest.$ac_ext <<_ACEOF
25118 /* end confdefs.h. */
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25131 (eval $ac_link) 2>conftest.er1
25133 grep -v '^ *+' conftest.er1 >conftest.err
25135 cat conftest.err >&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); } &&
25138 { ac_try='test -z "$ac_c_werror_flag"
25139 || test ! -s conftest.err'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; } &&
25145 { ac_try='test -s conftest$ac_exeext'
25146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147 (eval $ac_try) 2>&5
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); }; }; then
25151 ac_cv_lib_nsl_main=yes
25153 echo "$as_me: failed program was:" >&5
25154 sed 's/^/| /' conftest.$ac_ext >&5
25156 ac_cv_lib_nsl_main=no
25158 rm -f conftest.err conftest.$ac_objext \
25159 conftest$ac_exeext conftest.$ac_ext
25160 LIBS=$ac_check_lib_save_LIBS
25162 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25163 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25164 if test $ac_cv_lib_nsl_main = yes; then
25165 cat >>confdefs.h <<_ACEOF
25166 #define HAVE_LIBNSL 1
25174 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25175 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25176 if test "${ac_cv_lib_inet_socket+set}" = set; then
25177 echo $ECHO_N "(cached) $ECHO_C" >&6
25179 ac_check_lib_save_LIBS=$LIBS
25180 LIBS="-linet $LIBS"
25181 cat >conftest.$ac_ext <<_ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25188 /* Override any gcc2 internal prototype to avoid an error. */
25192 /* We use char because int might match the return type of a gcc2
25193 builtin and then its argument prototype would still apply. */
25203 rm -f conftest.$ac_objext conftest$ac_exeext
25204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25205 (eval $ac_link) 2>conftest.er1
25207 grep -v '^ *+' conftest.er1 >conftest.err
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } &&
25212 { ac_try='test -z "$ac_c_werror_flag"
25213 || test ! -s conftest.err'
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; } &&
25219 { ac_try='test -s conftest$ac_exeext'
25220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25221 (eval $ac_try) 2>&5
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); }; }; then
25225 ac_cv_lib_inet_socket=yes
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ac_cv_lib_inet_socket=no
25232 rm -f conftest.err conftest.$ac_objext \
25233 conftest$ac_exeext conftest.$ac_ext
25234 LIBS=$ac_check_lib_save_LIBS
25236 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25237 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25238 if test $ac_cv_lib_inet_socket = yes; then
25239 cat >>confdefs.h <<_ACEOF
25240 #define HAVE_LIBINET 1
25243 LIBS="-linet $LIBS"
25248 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25249 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25250 if test "${ac_cv_lib_gen_main+set}" = set; then
25251 echo $ECHO_N "(cached) $ECHO_C" >&6
25253 ac_check_lib_save_LIBS=$LIBS
25255 cat >conftest.$ac_ext <<_ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h. */
25271 rm -f conftest.$ac_objext conftest$ac_exeext
25272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25273 (eval $ac_link) 2>conftest.er1
25275 grep -v '^ *+' conftest.er1 >conftest.err
25277 cat conftest.err >&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); } &&
25280 { ac_try='test -z "$ac_c_werror_flag"
25281 || test ! -s conftest.err'
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; } &&
25287 { ac_try='test -s conftest$ac_exeext'
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
25293 ac_cv_lib_gen_main=yes
25295 echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25298 ac_cv_lib_gen_main=no
25300 rm -f conftest.err conftest.$ac_objext \
25301 conftest$ac_exeext conftest.$ac_ext
25302 LIBS=$ac_check_lib_save_LIBS
25304 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25305 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25306 if test $ac_cv_lib_gen_main = yes; then
25307 cat >>confdefs.h <<_ACEOF
25308 #define HAVE_LIBGEN 1
25319 echo "$as_me:$LINENO: checking for select" >&5
25320 echo $ECHO_N "checking for select... $ECHO_C" >&6
25321 if test "${ac_cv_func_select+set}" = set; then
25322 echo $ECHO_N "(cached) $ECHO_C" >&6
25324 cat >conftest.$ac_ext <<_ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h. */
25330 /* Define select to an innocuous variant, in case <limits.h> declares select.
25331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25332 #define select innocuous_select
25334 /* System header to define __stub macros and hopefully few prototypes,
25335 which can conflict with char select (); below.
25336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25337 <limits.h> exists even on freestanding compilers. */
25340 # include <limits.h>
25342 # include <assert.h>
25347 /* Override any gcc2 internal prototype to avoid an error. */
25352 /* We use char because int might match the return type of a gcc2
25353 builtin and then its argument prototype would still apply. */
25355 /* The GNU C library defines this for functions which it implements
25356 to always fail with ENOSYS. Some functions are actually named
25357 something starting with __ and the normal name is an alias. */
25358 #if defined (__stub_select) || defined (__stub___select)
25361 char (*f) () = select;
25370 return f != select;
25375 rm -f conftest.$ac_objext conftest$ac_exeext
25376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25377 (eval $ac_link) 2>conftest.er1
25379 grep -v '^ *+' conftest.er1 >conftest.err
25381 cat conftest.err >&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); } &&
25384 { ac_try='test -z "$ac_c_werror_flag"
25385 || test ! -s conftest.err'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; } &&
25391 { ac_try='test -s conftest$ac_exeext'
25392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393 (eval $ac_try) 2>&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); }; }; then
25397 ac_cv_func_select=yes
25399 echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25402 ac_cv_func_select=no
25404 rm -f conftest.err conftest.$ac_objext \
25405 conftest$ac_exeext conftest.$ac_ext
25407 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25408 echo "${ECHO_T}$ac_cv_func_select" >&6
25409 if test $ac_cv_func_select = yes; then
25412 { { echo "$as_me:$LINENO: error: select() required." >&5
25413 echo "$as_me: error: select() required." >&2;}
25414 { (exit 1); exit 1; }; }
25418 if test "${ac_cv_header_winsock_h}" != yes; then
25421 for ac_header in sys/select.h sys/socket.h
25423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25425 echo "$as_me:$LINENO: checking for $ac_header" >&5
25426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25428 echo $ECHO_N "(cached) $ECHO_C" >&6
25430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25433 # Is the header compilable?
25434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25436 cat >conftest.$ac_ext <<_ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 $ac_includes_default
25443 #include <$ac_header>
25445 rm -f conftest.$ac_objext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25447 (eval $ac_compile) 2>conftest.er1
25449 grep -v '^ *+' conftest.er1 >conftest.err
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
25454 { ac_try='test -z "$ac_c_werror_flag"
25455 || test ! -s conftest.err'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; } &&
25461 { ac_try='test -s conftest.$ac_objext'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 ac_header_compiler=yes
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25472 ac_header_compiler=no
25474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25476 echo "${ECHO_T}$ac_header_compiler" >&6
25478 # Is the header present?
25479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 #include <$ac_header>
25489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25492 grep -v '^ *+' conftest.er1 >conftest.err
25494 cat conftest.err >&5
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); } >/dev/null; then
25497 if test -s conftest.err; then
25498 ac_cpp_err=$ac_c_preproc_warn_flag
25499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25506 if test -z "$ac_cpp_err"; then
25507 ac_header_preproc=yes
25509 echo "$as_me: failed program was:" >&5
25510 sed 's/^/| /' conftest.$ac_ext >&5
25512 ac_header_preproc=no
25514 rm -f conftest.err conftest.$ac_ext
25515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25516 echo "${ECHO_T}$ac_header_preproc" >&6
25518 # So? What about this header?
25519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25525 ac_header_preproc=yes
25528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25542 ## ------------------------------------------ ##
25543 ## Report this to the AC_PACKAGE_NAME lists. ##
25544 ## ------------------------------------------ ##
25547 sed "s/^/$as_me: WARNING: /" >&2
25550 echo "$as_me:$LINENO: checking for $ac_header" >&5
25551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25555 eval "$as_ac_Header=\$ac_header_preproc"
25557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25562 cat >>confdefs.h <<_ACEOF
25563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25570 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25571 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25572 if test "${ac_cv_func_select_args+set}" = set; then
25573 echo $ECHO_N "(cached) $ECHO_C" >&6
25575 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25576 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25577 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25578 cat >conftest.$ac_ext <<_ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25584 $ac_includes_default
25585 #if HAVE_SYS_SELECT_H
25586 # include <sys/select.h>
25588 #if HAVE_SYS_SOCKET_H
25589 # include <sys/socket.h>
25595 extern int select ($ac_arg1,
25596 $ac_arg234, $ac_arg234, $ac_arg234,
25602 rm -f conftest.$ac_objext
25603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25604 (eval $ac_compile) 2>conftest.er1
25606 grep -v '^ *+' conftest.er1 >conftest.err
25608 cat conftest.err >&5
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); } &&
25611 { ac_try='test -z "$ac_c_werror_flag"
25612 || test ! -s conftest.err'
25613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614 (eval $ac_try) 2>&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); }; } &&
25618 { ac_try='test -s conftest.$ac_objext'
25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620 (eval $ac_try) 2>&5
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; }; then
25624 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25626 echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25634 # Provide a safe default value.
25635 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25638 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25639 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25640 ac_save_IFS=$IFS; IFS=','
25641 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25645 cat >>confdefs.h <<_ACEOF
25646 #define SELECT_TYPE_ARG1 $1
25650 cat >>confdefs.h <<_ACEOF
25651 #define SELECT_TYPE_ARG234 ($2)
25655 cat >>confdefs.h <<_ACEOF
25656 #define SELECT_TYPE_ARG5 ($3)
25665 for ac_func in poll
25667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25668 echo "$as_me:$LINENO: checking for $ac_func" >&5
25669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25670 if eval "test \"\${$as_ac_var+set}\" = set"; then
25671 echo $ECHO_N "(cached) $ECHO_C" >&6
25673 cat >conftest.$ac_ext <<_ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h. */
25679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25681 #define $ac_func innocuous_$ac_func
25683 /* System header to define __stub macros and hopefully few prototypes,
25684 which can conflict with char $ac_func (); below.
25685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25686 <limits.h> exists even on freestanding compilers. */
25689 # include <limits.h>
25691 # include <assert.h>
25696 /* Override any gcc2 internal prototype to avoid an error. */
25701 /* We use char because int might match the return type of a gcc2
25702 builtin and then its argument prototype would still apply. */
25704 /* The GNU C library defines this for functions which it implements
25705 to always fail with ENOSYS. Some functions are actually named
25706 something starting with __ and the normal name is an alias. */
25707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25710 char (*f) () = $ac_func;
25719 return f != $ac_func;
25724 rm -f conftest.$ac_objext conftest$ac_exeext
25725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25726 (eval $ac_link) 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } &&
25733 { ac_try='test -z "$ac_c_werror_flag"
25734 || test ! -s conftest.err'
25735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736 (eval $ac_try) 2>&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; } &&
25740 { ac_try='test -s conftest$ac_exeext'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; }; then
25746 eval "$as_ac_var=yes"
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25751 eval "$as_ac_var=no"
25753 rm -f conftest.err conftest.$ac_objext \
25754 conftest$ac_exeext conftest.$ac_ext
25756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25758 if test `eval echo '${'$as_ac_var'}'` = yes; then
25759 cat >>confdefs.h <<_ACEOF
25760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25767 for ac_header in poll.h
25769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25771 echo "$as_me:$LINENO: checking for $ac_header" >&5
25772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25774 echo $ECHO_N "(cached) $ECHO_C" >&6
25776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25779 # Is the header compilable?
25780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25782 cat >conftest.$ac_ext <<_ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h. */
25788 $ac_includes_default
25789 #include <$ac_header>
25791 rm -f conftest.$ac_objext
25792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25793 (eval $ac_compile) 2>conftest.er1
25795 grep -v '^ *+' conftest.er1 >conftest.err
25797 cat conftest.err >&5
25798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); } &&
25800 { ac_try='test -z "$ac_c_werror_flag"
25801 || test ! -s conftest.err'
25802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25803 (eval $ac_try) 2>&5
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); }; } &&
25807 { ac_try='test -s conftest.$ac_objext'
25808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25809 (eval $ac_try) 2>&5
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); }; }; then
25813 ac_header_compiler=yes
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818 ac_header_compiler=no
25820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25822 echo "${ECHO_T}$ac_header_compiler" >&6
25824 # Is the header present?
25825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25827 cat >conftest.$ac_ext <<_ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25833 #include <$ac_header>
25835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25838 grep -v '^ *+' conftest.er1 >conftest.err
25840 cat conftest.err >&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } >/dev/null; then
25843 if test -s conftest.err; then
25844 ac_cpp_err=$ac_c_preproc_warn_flag
25845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25852 if test -z "$ac_cpp_err"; then
25853 ac_header_preproc=yes
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25858 ac_header_preproc=no
25860 rm -f conftest.err conftest.$ac_ext
25861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25862 echo "${ECHO_T}$ac_header_preproc" >&6
25864 # So? What about this header?
25865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25871 ac_header_preproc=yes
25874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25888 ## ------------------------------------------ ##
25889 ## Report this to the AC_PACKAGE_NAME lists. ##
25890 ## ------------------------------------------ ##
25893 sed "s/^/$as_me: WARNING: /" >&2
25896 echo "$as_me:$LINENO: checking for $ac_header" >&5
25897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 eval "$as_ac_Header=\$ac_header_preproc"
25903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25908 cat >>confdefs.h <<_ACEOF
25909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25918 for ac_header in sys/epoll.h
25920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25922 echo "$as_me:$LINENO: checking for $ac_header" >&5
25923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25925 echo $ECHO_N "(cached) $ECHO_C" >&6
25927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25930 # Is the header compilable?
25931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25933 cat >conftest.$ac_ext <<_ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h. */
25939 $ac_includes_default
25940 #include <$ac_header>
25942 rm -f conftest.$ac_objext
25943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25944 (eval $ac_compile) 2>conftest.er1
25946 grep -v '^ *+' conftest.er1 >conftest.err
25948 cat conftest.err >&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); } &&
25951 { ac_try='test -z "$ac_c_werror_flag"
25952 || test ! -s conftest.err'
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; } &&
25958 { ac_try='test -s conftest.$ac_objext'
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; }; then
25964 ac_header_compiler=yes
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 ac_header_compiler=no
25971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25973 echo "${ECHO_T}$ac_header_compiler" >&6
25975 # Is the header present?
25976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25978 cat >conftest.$ac_ext <<_ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h. */
25984 #include <$ac_header>
25986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25989 grep -v '^ *+' conftest.er1 >conftest.err
25991 cat conftest.err >&5
25992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993 (exit $ac_status); } >/dev/null; then
25994 if test -s conftest.err; then
25995 ac_cpp_err=$ac_c_preproc_warn_flag
25996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26003 if test -z "$ac_cpp_err"; then
26004 ac_header_preproc=yes
26006 echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26009 ac_header_preproc=no
26011 rm -f conftest.err conftest.$ac_ext
26012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26013 echo "${ECHO_T}$ac_header_preproc" >&6
26015 # So? What about this header?
26016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26022 ac_header_preproc=yes
26025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26039 ## ------------------------------------------ ##
26040 ## Report this to the AC_PACKAGE_NAME lists. ##
26041 ## ------------------------------------------ ##
26044 sed "s/^/$as_me: WARNING: /" >&2
26047 echo "$as_me:$LINENO: checking for $ac_header" >&5
26048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26052 eval "$as_ac_Header=\$ac_header_preproc"
26054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26059 cat >>confdefs.h <<_ACEOF
26060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26067 if test "${ac_cv_header_sys_epoll_h}" = yes; then
26068 echo "$as_me:$LINENO: checking for epoll system call" >&5
26069 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
26070 if test "$cross_compiling" = yes; then
26071 echo "$as_me:$LINENO: result: no" >&5
26072 echo "${ECHO_T}no" >&6
26074 cat >conftest.$ac_ext <<_ACEOF
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h. */
26080 int main(int argc, char *argv)
26082 int epfd = epoll_create(256);
26083 exit (epfd == -1 ? 1 : 0);
26086 rm -f conftest$ac_exeext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26088 (eval $ac_link) 2>&5
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; }; then
26097 echo "$as_me:$LINENO: result: yes" >&5
26098 echo "${ECHO_T}yes" >&6
26100 cat >>confdefs.h <<\_ACEOF
26101 #define HAVE_EPOLL 1
26105 echo "$as_me: program exited with status $ac_status" >&5
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26109 ( exit $ac_status )
26110 echo "$as_me:$LINENO: result: no" >&5
26111 echo "${ECHO_T}no" >&6
26113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26118 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26119 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26120 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26121 echo $ECHO_N "(cached) $ECHO_C" >&6
26124 cat >conftest.$ac_ext <<_ACEOF
26127 cat confdefs.h >>conftest.$ac_ext
26128 cat >>conftest.$ac_ext <<_ACEOF
26129 /* end confdefs.h. */
26132 #include <sys/types.h>
26135 #include <stdlib.h>
26140 char *c = (char *) *sys_errlist
26145 rm -f conftest.$ac_objext
26146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26147 (eval $ac_compile) 2>conftest.er1
26149 grep -v '^ *+' conftest.er1 >conftest.err
26151 cat conftest.err >&5
26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); } &&
26154 { ac_try='test -z "$ac_c_werror_flag"
26155 || test ! -s conftest.err'
26156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26157 (eval $ac_try) 2>&5
26159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160 (exit $ac_status); }; } &&
26161 { ac_try='test -s conftest.$ac_objext'
26162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163 (eval $ac_try) 2>&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); }; }; then
26167 ol_cv_dcl_sys_errlist=yes
26168 ol_cv_have_sys_errlist=yes
26170 echo "$as_me: failed program was:" >&5
26171 sed 's/^/| /' conftest.$ac_ext >&5
26173 ol_cv_dcl_sys_errlist=no
26175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26177 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26178 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26180 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26181 if test $ol_cv_dcl_sys_errlist = no ; then
26183 cat >>confdefs.h <<\_ACEOF
26184 #define DECL_SYS_ERRLIST 1
26188 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26189 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26190 if test "${ol_cv_have_sys_errlist+set}" = set; then
26191 echo $ECHO_N "(cached) $ECHO_C" >&6
26194 cat >conftest.$ac_ext <<_ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h. */
26204 char *c = (char *) *sys_errlist
26209 rm -f conftest.$ac_objext conftest$ac_exeext
26210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26211 (eval $ac_link) 2>conftest.er1
26213 grep -v '^ *+' conftest.er1 >conftest.err
26215 cat conftest.err >&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); } &&
26218 { ac_try='test -z "$ac_c_werror_flag"
26219 || test ! -s conftest.err'
26220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221 (eval $ac_try) 2>&5
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); }; } &&
26225 { ac_try='test -s conftest$ac_exeext'
26226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227 (eval $ac_try) 2>&5
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); }; }; then
26231 ol_cv_have_sys_errlist=yes
26233 echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26236 ol_cv_have_sys_errlist=no
26238 rm -f conftest.err conftest.$ac_objext \
26239 conftest$ac_exeext conftest.$ac_ext
26241 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26242 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26244 if test $ol_cv_have_sys_errlist = yes ; then
26246 cat >>confdefs.h <<\_ACEOF
26247 #define HAVE_SYS_ERRLIST 1
26253 for ac_func in strerror strerror_r
26255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26256 echo "$as_me:$LINENO: checking for $ac_func" >&5
26257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26258 if eval "test \"\${$as_ac_var+set}\" = set"; then
26259 echo $ECHO_N "(cached) $ECHO_C" >&6
26261 cat >conftest.$ac_ext <<_ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h. */
26267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26269 #define $ac_func innocuous_$ac_func
26271 /* System header to define __stub macros and hopefully few prototypes,
26272 which can conflict with char $ac_func (); below.
26273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26274 <limits.h> exists even on freestanding compilers. */
26277 # include <limits.h>
26279 # include <assert.h>
26284 /* Override any gcc2 internal prototype to avoid an error. */
26289 /* We use char because int might match the return type of a gcc2
26290 builtin and then its argument prototype would still apply. */
26292 /* The GNU C library defines this for functions which it implements
26293 to always fail with ENOSYS. Some functions are actually named
26294 something starting with __ and the normal name is an alias. */
26295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26298 char (*f) () = $ac_func;
26307 return f != $ac_func;
26312 rm -f conftest.$ac_objext conftest$ac_exeext
26313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26314 (eval $ac_link) 2>conftest.er1
26316 grep -v '^ *+' conftest.er1 >conftest.err
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } &&
26321 { ac_try='test -z "$ac_c_werror_flag"
26322 || test ! -s conftest.err'
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; } &&
26328 { ac_try='test -s conftest$ac_exeext'
26329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330 (eval $ac_try) 2>&5
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); }; }; then
26334 eval "$as_ac_var=yes"
26336 echo "$as_me: failed program was:" >&5
26337 sed 's/^/| /' conftest.$ac_ext >&5
26339 eval "$as_ac_var=no"
26341 rm -f conftest.err conftest.$ac_objext \
26342 conftest$ac_exeext conftest.$ac_ext
26344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26346 if test `eval echo '${'$as_ac_var'}'` = yes; then
26347 cat >>confdefs.h <<_ACEOF
26348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26354 ol_cv_func_strerror_r=no
26355 if test "${ac_cv_func_strerror_r}" = yes ; then
26356 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26357 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26358 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26359 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 cat >conftest.$ac_ext <<_ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h. */
26368 #include <string.h>
26370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26371 $EGREP "strerror_r" >/dev/null 2>&1; then
26372 ol_decl_strerror_r=yes
26374 ol_decl_strerror_r=no
26378 if test $ol_decl_strerror_r = yes ; then
26379 cat >conftest.$ac_ext <<_ACEOF
26382 cat confdefs.h >>conftest.$ac_ext
26383 cat >>conftest.$ac_ext <<_ACEOF
26384 /* end confdefs.h. */
26385 #include <string.h>
26389 /* from autoconf 2.59 */
26391 char x = *strerror_r (0, buf, sizeof buf);
26392 char *p = strerror_r (0, buf, sizeof buf);
26398 rm -f conftest.$ac_objext
26399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26400 (eval $ac_compile) 2>conftest.er1
26402 grep -v '^ *+' conftest.er1 >conftest.err
26404 cat conftest.err >&5
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); } &&
26407 { ac_try='test -z "$ac_c_werror_flag"
26408 || test ! -s conftest.err'
26409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410 (eval $ac_try) 2>&5
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); }; } &&
26414 { ac_try='test -s conftest.$ac_objext'
26415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416 (eval $ac_try) 2>&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); }; }; then
26420 ol_cv_nonposix_strerror_r=yes
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26425 ol_cv_nonposix_strerror_r=no
26427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26429 if test "$cross_compiling" = yes; then
26430 ol_cv_nonposix_strerror=no
26432 cat >conftest.$ac_ext <<_ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h. */
26442 strerror_r( 1, buf, sizeof buf );
26443 exit( buf[0] == 0 );
26447 rm -f conftest$ac_exeext
26448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26449 (eval $ac_link) 2>&5
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26454 (eval $ac_try) 2>&5
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); }; }; then
26458 ol_cv_nonposix_strerror_r=yes
26460 echo "$as_me: program exited with status $ac_status" >&5
26461 echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26464 ( exit $ac_status )
26465 ol_cv_nonposix_strerror=no
26467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26472 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26473 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26474 if test $ol_cv_nonposix_strerror_r = yes ; then
26476 cat >>confdefs.h <<\_ACEOF
26477 #define HAVE_NONPOSIX_STRERROR_R 1
26482 elif test "${ac_cv_func_strerror}" = no ; then
26483 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26484 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26485 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26486 echo $ECHO_N "(cached) $ECHO_C" >&6
26489 cat >conftest.$ac_ext <<_ACEOF
26492 cat confdefs.h >>conftest.$ac_ext
26493 cat >>conftest.$ac_ext <<_ACEOF
26494 /* end confdefs.h. */
26497 #include <sys/types.h>
26500 #include <stdlib.h>
26505 char *c = (char *) *sys_errlist
26510 rm -f conftest.$ac_objext
26511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26512 (eval $ac_compile) 2>conftest.er1
26514 grep -v '^ *+' conftest.er1 >conftest.err
26516 cat conftest.err >&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); } &&
26519 { ac_try='test -z "$ac_c_werror_flag"
26520 || test ! -s conftest.err'
26521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26522 (eval $ac_try) 2>&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); }; } &&
26526 { ac_try='test -s conftest.$ac_objext'
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; }; then
26532 ol_cv_dcl_sys_errlist=yes
26533 ol_cv_have_sys_errlist=yes
26535 echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26538 ol_cv_dcl_sys_errlist=no
26540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26542 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26543 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26545 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26546 if test $ol_cv_dcl_sys_errlist = no ; then
26548 cat >>confdefs.h <<\_ACEOF
26549 #define DECL_SYS_ERRLIST 1
26553 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26554 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26555 if test "${ol_cv_have_sys_errlist+set}" = set; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26559 cat >conftest.$ac_ext <<_ACEOF
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h. */
26569 char *c = (char *) *sys_errlist
26574 rm -f conftest.$ac_objext conftest$ac_exeext
26575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26576 (eval $ac_link) 2>conftest.er1
26578 grep -v '^ *+' conftest.er1 >conftest.err
26580 cat conftest.err >&5
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } &&
26583 { ac_try='test -z "$ac_c_werror_flag"
26584 || test ! -s conftest.err'
26585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586 (eval $ac_try) 2>&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); }; } &&
26590 { ac_try='test -s conftest$ac_exeext'
26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; }; then
26596 ol_cv_have_sys_errlist=yes
26598 echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26601 ol_cv_have_sys_errlist=no
26603 rm -f conftest.err conftest.$ac_objext \
26604 conftest$ac_exeext conftest.$ac_ext
26606 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26607 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26609 if test $ol_cv_have_sys_errlist = yes ; then
26611 cat >>confdefs.h <<\_ACEOF
26612 #define HAVE_SYS_ERRLIST 1
26621 for ac_header in regex.h
26623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26625 echo "$as_me:$LINENO: checking for $ac_header" >&5
26626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26628 echo $ECHO_N "(cached) $ECHO_C" >&6
26630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26633 # Is the header compilable?
26634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26636 cat >conftest.$ac_ext <<_ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h. */
26642 $ac_includes_default
26643 #include <$ac_header>
26645 rm -f conftest.$ac_objext
26646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26647 (eval $ac_compile) 2>conftest.er1
26649 grep -v '^ *+' conftest.er1 >conftest.err
26651 cat conftest.err >&5
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); } &&
26654 { ac_try='test -z "$ac_c_werror_flag"
26655 || test ! -s conftest.err'
26656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26657 (eval $ac_try) 2>&5
26659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); }; } &&
26661 { ac_try='test -s conftest.$ac_objext'
26662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663 (eval $ac_try) 2>&5
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); }; }; then
26667 ac_header_compiler=yes
26669 echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26672 ac_header_compiler=no
26674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26676 echo "${ECHO_T}$ac_header_compiler" >&6
26678 # Is the header present?
26679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26681 cat >conftest.$ac_ext <<_ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26687 #include <$ac_header>
26689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26692 grep -v '^ *+' conftest.er1 >conftest.err
26694 cat conftest.err >&5
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); } >/dev/null; then
26697 if test -s conftest.err; then
26698 ac_cpp_err=$ac_c_preproc_warn_flag
26699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26706 if test -z "$ac_cpp_err"; then
26707 ac_header_preproc=yes
26709 echo "$as_me: failed program was:" >&5
26710 sed 's/^/| /' conftest.$ac_ext >&5
26712 ac_header_preproc=no
26714 rm -f conftest.err conftest.$ac_ext
26715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26716 echo "${ECHO_T}$ac_header_preproc" >&6
26718 # So? What about this header?
26719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26725 ac_header_preproc=yes
26728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26742 ## ------------------------------------------ ##
26743 ## Report this to the AC_PACKAGE_NAME lists. ##
26744 ## ------------------------------------------ ##
26747 sed "s/^/$as_me: WARNING: /" >&2
26750 echo "$as_me:$LINENO: checking for $ac_header" >&5
26751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26753 echo $ECHO_N "(cached) $ECHO_C" >&6
26755 eval "$as_ac_Header=\$ac_header_preproc"
26757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26762 cat >>confdefs.h <<_ACEOF
26763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26770 if test "$ac_cv_header_regex_h" != yes ; then
26771 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26772 echo "$as_me: error: POSIX regex.h required." >&2;}
26773 { (exit 1); exit 1; }; }
26775 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26776 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26777 if test "${ac_cv_search_regfree+set}" = set; then
26778 echo $ECHO_N "(cached) $ECHO_C" >&6
26780 ac_func_search_save_LIBS=$LIBS
26781 ac_cv_search_regfree=no
26782 cat >conftest.$ac_ext <<_ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h. */
26789 /* Override any gcc2 internal prototype to avoid an error. */
26793 /* We use char because int might match the return type of a gcc2
26794 builtin and then its argument prototype would still apply. */
26804 rm -f conftest.$ac_objext conftest$ac_exeext
26805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26806 (eval $ac_link) 2>conftest.er1
26808 grep -v '^ *+' conftest.er1 >conftest.err
26810 cat conftest.err >&5
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } &&
26813 { ac_try='test -z "$ac_c_werror_flag"
26814 || test ! -s conftest.err'
26815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 (eval $ac_try) 2>&5
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; } &&
26820 { ac_try='test -s conftest$ac_exeext'
26821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822 (eval $ac_try) 2>&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; }; then
26826 ac_cv_search_regfree="none required"
26828 echo "$as_me: failed program was:" >&5
26829 sed 's/^/| /' conftest.$ac_ext >&5
26832 rm -f conftest.err conftest.$ac_objext \
26833 conftest$ac_exeext conftest.$ac_ext
26834 if test "$ac_cv_search_regfree" = no; then
26835 for ac_lib in regex gnuregex; do
26836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26837 cat >conftest.$ac_ext <<_ACEOF
26840 cat confdefs.h >>conftest.$ac_ext
26841 cat >>conftest.$ac_ext <<_ACEOF
26842 /* end confdefs.h. */
26844 /* Override any gcc2 internal prototype to avoid an error. */
26848 /* We use char because int might match the return type of a gcc2
26849 builtin and then its argument prototype would still apply. */
26859 rm -f conftest.$ac_objext conftest$ac_exeext
26860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26861 (eval $ac_link) 2>conftest.er1
26863 grep -v '^ *+' conftest.er1 >conftest.err
26865 cat conftest.err >&5
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); } &&
26868 { ac_try='test -z "$ac_c_werror_flag"
26869 || test ! -s conftest.err'
26870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26871 (eval $ac_try) 2>&5
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); }; } &&
26875 { ac_try='test -s conftest$ac_exeext'
26876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877 (eval $ac_try) 2>&5
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; }; then
26881 ac_cv_search_regfree="-l$ac_lib"
26884 echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26888 rm -f conftest.err conftest.$ac_objext \
26889 conftest$ac_exeext conftest.$ac_ext
26892 LIBS=$ac_func_search_save_LIBS
26894 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26895 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26896 if test "$ac_cv_search_regfree" != no; then
26897 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26900 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26901 echo "$as_me: error: POSIX regex required." >&2;}
26902 { (exit 1); exit 1; }; }
26907 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26908 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26909 if test "${ol_cv_c_posix_regex+set}" = set; then
26910 echo $ECHO_N "(cached) $ECHO_C" >&6
26913 if test "$cross_compiling" = yes; then
26914 ol_cv_c_posix_regex=cross
26916 cat >conftest.$ac_ext <<_ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26923 #include <sys/types.h>
26925 static char *pattern, *string;
26933 if(regcomp(&re, pattern, 0)) {
26937 string = "ALL MATCH";
26939 rc = regexec(&re, string, 0, (void*)0, 0);
26946 rm -f conftest$ac_exeext
26947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26948 (eval $ac_link) 2>&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953 (eval $ac_try) 2>&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; }; then
26957 ol_cv_c_posix_regex=yes
26959 echo "$as_me: program exited with status $ac_status" >&5
26960 echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963 ( exit $ac_status )
26964 ol_cv_c_posix_regex=no
26966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26969 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26970 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26972 if test "$ol_cv_c_posix_regex" = no ; then
26973 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26974 echo "$as_me: error: broken POSIX regex!" >&2;}
26975 { (exit 1); exit 1; }; }
26981 for ac_header in sys/uuid.h
26983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26985 echo "$as_me:$LINENO: checking for $ac_header" >&5
26986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26988 echo $ECHO_N "(cached) $ECHO_C" >&6
26990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26993 # Is the header compilable?
26994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26996 cat >conftest.$ac_ext <<_ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h. */
27002 $ac_includes_default
27003 #include <$ac_header>
27005 rm -f conftest.$ac_objext
27006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27007 (eval $ac_compile) 2>conftest.er1
27009 grep -v '^ *+' conftest.er1 >conftest.err
27011 cat conftest.err >&5
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); } &&
27014 { ac_try='test -z "$ac_c_werror_flag"
27015 || test ! -s conftest.err'
27016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017 (eval $ac_try) 2>&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; } &&
27021 { ac_try='test -s conftest.$ac_objext'
27022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; }; then
27027 ac_header_compiler=yes
27029 echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27032 ac_header_compiler=no
27034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27036 echo "${ECHO_T}$ac_header_compiler" >&6
27038 # Is the header present?
27039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27041 cat >conftest.$ac_ext <<_ACEOF
27044 cat confdefs.h >>conftest.$ac_ext
27045 cat >>conftest.$ac_ext <<_ACEOF
27046 /* end confdefs.h. */
27047 #include <$ac_header>
27049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27052 grep -v '^ *+' conftest.er1 >conftest.err
27054 cat conftest.err >&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } >/dev/null; then
27057 if test -s conftest.err; then
27058 ac_cpp_err=$ac_c_preproc_warn_flag
27059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27066 if test -z "$ac_cpp_err"; then
27067 ac_header_preproc=yes
27069 echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27072 ac_header_preproc=no
27074 rm -f conftest.err conftest.$ac_ext
27075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27076 echo "${ECHO_T}$ac_header_preproc" >&6
27078 # So? What about this header?
27079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27085 ac_header_preproc=yes
27088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27102 ## ------------------------------------------ ##
27103 ## Report this to the AC_PACKAGE_NAME lists. ##
27104 ## ------------------------------------------ ##
27107 sed "s/^/$as_me: WARNING: /" >&2
27110 echo "$as_me:$LINENO: checking for $ac_header" >&5
27111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27115 eval "$as_ac_Header=\$ac_header_preproc"
27117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27122 cat >>confdefs.h <<_ACEOF
27123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27130 if test $ac_cv_header_sys_uuid_h = yes ; then
27132 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27133 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27134 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27135 echo $ECHO_N "(cached) $ECHO_C" >&6
27137 ac_func_search_save_LIBS=$LIBS
27138 ac_cv_search_uuid_to_str=no
27139 cat >conftest.$ac_ext <<_ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h. */
27146 /* Override any gcc2 internal prototype to avoid an error. */
27150 /* We use char because int might match the return type of a gcc2
27151 builtin and then its argument prototype would still apply. */
27152 char uuid_to_str ();
27161 rm -f conftest.$ac_objext conftest$ac_exeext
27162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27163 (eval $ac_link) 2>conftest.er1
27165 grep -v '^ *+' conftest.er1 >conftest.err
27167 cat conftest.err >&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } &&
27170 { ac_try='test -z "$ac_c_werror_flag"
27171 || test ! -s conftest.err'
27172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173 (eval $ac_try) 2>&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; } &&
27177 { ac_try='test -s conftest$ac_exeext'
27178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27179 (eval $ac_try) 2>&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); }; }; then
27183 ac_cv_search_uuid_to_str="none required"
27185 echo "$as_me: failed program was:" >&5
27186 sed 's/^/| /' conftest.$ac_ext >&5
27189 rm -f conftest.err conftest.$ac_objext \
27190 conftest$ac_exeext conftest.$ac_ext
27191 if test "$ac_cv_search_uuid_to_str" = no; then
27192 for ac_lib in uuid; do
27193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27194 cat >conftest.$ac_ext <<_ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27201 /* Override any gcc2 internal prototype to avoid an error. */
27205 /* We use char because int might match the return type of a gcc2
27206 builtin and then its argument prototype would still apply. */
27207 char uuid_to_str ();
27216 rm -f conftest.$ac_objext conftest$ac_exeext
27217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27218 (eval $ac_link) 2>conftest.er1
27220 grep -v '^ *+' conftest.er1 >conftest.err
27222 cat conftest.err >&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); } &&
27225 { ac_try='test -z "$ac_c_werror_flag"
27226 || test ! -s conftest.err'
27227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27228 (eval $ac_try) 2>&5
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; } &&
27232 { ac_try='test -s conftest$ac_exeext'
27233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234 (eval $ac_try) 2>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; }; then
27238 ac_cv_search_uuid_to_str="-l$ac_lib"
27241 echo "$as_me: failed program was:" >&5
27242 sed 's/^/| /' conftest.$ac_ext >&5
27245 rm -f conftest.err conftest.$ac_objext \
27246 conftest$ac_exeext conftest.$ac_ext
27249 LIBS=$ac_func_search_save_LIBS
27251 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27252 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27253 if test "$ac_cv_search_uuid_to_str" != no; then
27254 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27262 if test have_uuid = yes ; then
27264 cat >>confdefs.h <<\_ACEOF
27265 #define HAVE_UUID_TO_STR 1
27269 test "$ac_cv_search_uuid_to_str" = "none required" || \
27270 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27274 if test $have_uuid = no ; then
27275 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27276 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27278 LIBS="$LIBS -lrpcrt4"
27279 cat >conftest.$ac_ext <<_ACEOF
27282 cat confdefs.h >>conftest.$ac_ext
27283 cat >>conftest.$ac_ext <<_ACEOF
27284 /* end confdefs.h. */
27286 int __stdcall UuidCreate(void *);
27287 int __stdcall UuidToStringA(void *,void **);
27294 UuidToStringA(0,0);
27300 rm -f conftest.$ac_objext conftest$ac_exeext
27301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27302 (eval $ac_link) 2>conftest.er1
27304 grep -v '^ *+' conftest.er1 >conftest.err
27306 cat conftest.err >&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); } &&
27309 { ac_try='test -z "$ac_c_werror_flag"
27310 || test ! -s conftest.err'
27311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312 (eval $ac_try) 2>&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; } &&
27316 { ac_try='test -s conftest$ac_exeext'
27317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27318 (eval $ac_try) 2>&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); }; }; then
27324 echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27329 rm -f conftest.err conftest.$ac_objext \
27330 conftest$ac_exeext conftest.$ac_ext
27331 if test $need_rpcrt = yes; then
27332 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27335 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27336 echo "${ECHO_T}$need_rpcrt" >&6
27339 ol_cv_lib_resolver=no
27340 if test $ol_cv_lib_resolver = no ; then
27341 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27342 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27343 if test "${ol_cv_resolver_none+set}" = set; then
27344 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 LIBS="$ol_RESOLVER_LIB $LIBS"
27351 cat >conftest.$ac_ext <<_ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h. */
27358 #ifdef HAVE_SYS_TYPES_H
27359 # include <sys/types.h>
27361 #include <netinet/in.h>
27362 #ifdef HAVE_ARPA_NAMESER_H
27363 # include <arpa/nameser.h>
27365 #ifdef HAVE_RESOLV_H
27366 # include <resolv.h>
27374 char *request = NULL;
27375 unsigned char reply[64*1024];
27376 unsigned char host[64*1024];
27380 /* Bind 8/9 interface */
27381 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27383 /* Bind 4 interface */
27387 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27391 /* Bind 8/9 interface */
27393 #elif defined(HFIXEDSZ)
27394 /* Bind 4 interface w/ HFIXEDSZ */
27397 /* Bind 4 interface w/o HFIXEDSZ */
27398 p += sizeof(HEADER);
27400 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27406 rm -f conftest.$ac_objext conftest$ac_exeext
27407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27408 (eval $ac_link) 2>conftest.er1
27410 grep -v '^ *+' conftest.er1 >conftest.err
27412 cat conftest.err >&5
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); } &&
27415 { ac_try='test -z "$ac_c_werror_flag"
27416 || test ! -s conftest.err'
27417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27418 (eval $ac_try) 2>&5
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; } &&
27422 { ac_try='test -s conftest$ac_exeext'
27423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27424 (eval $ac_try) 2>&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); }; }; then
27428 ol_cv_resolver_none=yes
27430 echo "$as_me: failed program was:" >&5
27431 sed 's/^/| /' conftest.$ac_ext >&5
27433 ol_cv_resolver_none=no
27435 rm -f conftest.err conftest.$ac_objext \
27436 conftest$ac_exeext conftest.$ac_ext
27441 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27442 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27444 if test $ol_cv_resolver_none = yes ; then
27445 ol_cv_lib_resolver=yes
27449 if test $ol_cv_lib_resolver = no ; then
27450 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27451 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27452 if test "${ol_cv_resolver_resolv+set}" = set; then
27453 echo $ECHO_N "(cached) $ECHO_C" >&6
27456 ol_RESOLVER_LIB=-lresolv
27458 LIBS="$ol_RESOLVER_LIB $LIBS"
27460 cat >conftest.$ac_ext <<_ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h. */
27467 #ifdef HAVE_SYS_TYPES_H
27468 # include <sys/types.h>
27470 #include <netinet/in.h>
27471 #ifdef HAVE_ARPA_NAMESER_H
27472 # include <arpa/nameser.h>
27474 #ifdef HAVE_RESOLV_H
27475 # include <resolv.h>
27483 char *request = NULL;
27484 unsigned char reply[64*1024];
27485 unsigned char host[64*1024];
27489 /* Bind 8/9 interface */
27490 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27492 /* Bind 4 interface */
27496 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27500 /* Bind 8/9 interface */
27502 #elif defined(HFIXEDSZ)
27503 /* Bind 4 interface w/ HFIXEDSZ */
27506 /* Bind 4 interface w/o HFIXEDSZ */
27507 p += sizeof(HEADER);
27509 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27515 rm -f conftest.$ac_objext conftest$ac_exeext
27516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27517 (eval $ac_link) 2>conftest.er1
27519 grep -v '^ *+' conftest.er1 >conftest.err
27521 cat conftest.err >&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } &&
27524 { ac_try='test -z "$ac_c_werror_flag"
27525 || test ! -s conftest.err'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; } &&
27531 { ac_try='test -s conftest$ac_exeext'
27532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533 (eval $ac_try) 2>&5
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); }; }; then
27537 ol_cv_resolver_resolv=yes
27539 echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.$ac_ext >&5
27542 ol_cv_resolver_resolv=no
27544 rm -f conftest.err conftest.$ac_objext \
27545 conftest$ac_exeext conftest.$ac_ext
27550 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27551 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27553 if test $ol_cv_resolver_resolv = yes ; then
27554 ol_cv_lib_resolver=-lresolv
27558 if test $ol_cv_lib_resolver = no ; then
27559 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27560 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27561 if test "${ol_cv_resolver_bind+set}" = set; then
27562 echo $ECHO_N "(cached) $ECHO_C" >&6
27565 ol_RESOLVER_LIB=-lbind
27567 LIBS="$ol_RESOLVER_LIB $LIBS"
27569 cat >conftest.$ac_ext <<_ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h. */
27576 #ifdef HAVE_SYS_TYPES_H
27577 # include <sys/types.h>
27579 #include <netinet/in.h>
27580 #ifdef HAVE_ARPA_NAMESER_H
27581 # include <arpa/nameser.h>
27583 #ifdef HAVE_RESOLV_H
27584 # include <resolv.h>
27592 char *request = NULL;
27593 unsigned char reply[64*1024];
27594 unsigned char host[64*1024];
27598 /* Bind 8/9 interface */
27599 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27601 /* Bind 4 interface */
27605 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27609 /* Bind 8/9 interface */
27611 #elif defined(HFIXEDSZ)
27612 /* Bind 4 interface w/ HFIXEDSZ */
27615 /* Bind 4 interface w/o HFIXEDSZ */
27616 p += sizeof(HEADER);
27618 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27624 rm -f conftest.$ac_objext conftest$ac_exeext
27625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27626 (eval $ac_link) 2>conftest.er1
27628 grep -v '^ *+' conftest.er1 >conftest.err
27630 cat conftest.err >&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } &&
27633 { ac_try='test -z "$ac_c_werror_flag"
27634 || test ! -s conftest.err'
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; } &&
27640 { ac_try='test -s conftest$ac_exeext'
27641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642 (eval $ac_try) 2>&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; }; then
27646 ol_cv_resolver_bind=yes
27648 echo "$as_me: failed program was:" >&5
27649 sed 's/^/| /' conftest.$ac_ext >&5
27651 ol_cv_resolver_bind=no
27653 rm -f conftest.err conftest.$ac_objext \
27654 conftest$ac_exeext conftest.$ac_ext
27659 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27660 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27662 if test $ol_cv_resolver_bind = yes ; then
27663 ol_cv_lib_resolver=-lbind
27670 if test "$ol_cv_lib_resolver" != no ; then
27672 cat >>confdefs.h <<\_ACEOF
27673 #define HAVE_RES_QUERY 1
27677 if test "$ol_enable_dnssrv" != no ; then
27681 if test "$ol_cv_lib_resolver" != yes ; then
27682 LIBS="$ol_cv_lib_resolver $LIBS"
27686 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27687 if test "$ol_link_dnssrv" = no ; then
27688 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27689 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27690 { (exit 1); exit 1; }; }
27693 ol_enable_dnssrv=no
27697 for ac_func in hstrerror
27699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27700 echo "$as_me:$LINENO: checking for $ac_func" >&5
27701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27702 if eval "test \"\${$as_ac_var+set}\" = set"; then
27703 echo $ECHO_N "(cached) $ECHO_C" >&6
27705 cat >conftest.$ac_ext <<_ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h. */
27711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27713 #define $ac_func innocuous_$ac_func
27715 /* System header to define __stub macros and hopefully few prototypes,
27716 which can conflict with char $ac_func (); below.
27717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27718 <limits.h> exists even on freestanding compilers. */
27721 # include <limits.h>
27723 # include <assert.h>
27728 /* Override any gcc2 internal prototype to avoid an error. */
27733 /* We use char because int might match the return type of a gcc2
27734 builtin and then its argument prototype would still apply. */
27736 /* The GNU C library defines this for functions which it implements
27737 to always fail with ENOSYS. Some functions are actually named
27738 something starting with __ and the normal name is an alias. */
27739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27742 char (*f) () = $ac_func;
27751 return f != $ac_func;
27756 rm -f conftest.$ac_objext conftest$ac_exeext
27757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27758 (eval $ac_link) 2>conftest.er1
27760 grep -v '^ *+' conftest.er1 >conftest.err
27762 cat conftest.err >&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } &&
27765 { ac_try='test -z "$ac_c_werror_flag"
27766 || test ! -s conftest.err'
27767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768 (eval $ac_try) 2>&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); }; } &&
27772 { ac_try='test -s conftest$ac_exeext'
27773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774 (eval $ac_try) 2>&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; }; then
27778 eval "$as_ac_var=yes"
27780 echo "$as_me: failed program was:" >&5
27781 sed 's/^/| /' conftest.$ac_ext >&5
27783 eval "$as_ac_var=no"
27785 rm -f conftest.err conftest.$ac_objext \
27786 conftest$ac_exeext conftest.$ac_ext
27788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27790 if test `eval echo '${'$as_ac_var'}'` = yes; then
27791 cat >>confdefs.h <<_ACEOF
27792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27803 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27806 echo "$as_me:$LINENO: checking for $ac_func" >&5
27807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27808 if eval "test \"\${$as_ac_var+set}\" = set"; then
27809 echo $ECHO_N "(cached) $ECHO_C" >&6
27811 cat >conftest.$ac_ext <<_ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h. */
27817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27819 #define $ac_func innocuous_$ac_func
27821 /* System header to define __stub macros and hopefully few prototypes,
27822 which can conflict with char $ac_func (); below.
27823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27824 <limits.h> exists even on freestanding compilers. */
27827 # include <limits.h>
27829 # include <assert.h>
27834 /* Override any gcc2 internal prototype to avoid an error. */
27839 /* We use char because int might match the return type of a gcc2
27840 builtin and then its argument prototype would still apply. */
27842 /* The GNU C library defines this for functions which it implements
27843 to always fail with ENOSYS. Some functions are actually named
27844 something starting with __ and the normal name is an alias. */
27845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27848 char (*f) () = $ac_func;
27857 return f != $ac_func;
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27864 (eval $ac_link) 2>conftest.er1
27866 grep -v '^ *+' conftest.er1 >conftest.err
27868 cat conftest.err >&5
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); } &&
27871 { ac_try='test -z "$ac_c_werror_flag"
27872 || test ! -s conftest.err'
27873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874 (eval $ac_try) 2>&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; } &&
27878 { ac_try='test -s conftest$ac_exeext'
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; }; then
27884 eval "$as_ac_var=yes"
27886 echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27889 eval "$as_ac_var=no"
27891 rm -f conftest.err conftest.$ac_objext \
27892 conftest$ac_exeext conftest.$ac_ext
27894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27896 if test `eval echo '${'$as_ac_var'}'` = yes; then
27897 cat >>confdefs.h <<_ACEOF
27898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27906 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27907 if test $ol_enable_ipv6 = yes ; then
27908 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27909 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27910 { (exit 1); exit 1; }; }
27912 elif test $ol_enable_ipv6 != no ; then
27913 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27914 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27915 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27916 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 cat >conftest.$ac_ext <<_ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h. */
27926 # include <netinet/in.h>
27927 # ifdef INET6_ADDRSTRLEN
27928 __has_inet6_addrstrlen__;
27932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27933 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27934 ol_cv_inet6_addrstrlen=yes
27936 ol_cv_inet6_addrstrlen=no
27941 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27942 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27945 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27946 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27947 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27948 echo $ECHO_N "(cached) $ECHO_C" >&6
27951 cat >conftest.$ac_ext <<_ACEOF
27954 cat confdefs.h >>conftest.$ac_ext
27955 cat >>conftest.$ac_ext <<_ACEOF
27956 /* end confdefs.h. */
27958 #include <sys/types.h>
27959 #include <sys/socket.h>
27965 struct sockaddr_storage ss;
27971 rm -f conftest.$ac_objext
27972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27973 (eval $ac_compile) 2>conftest.er1
27975 grep -v '^ *+' conftest.er1 >conftest.err
27977 cat conftest.err >&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
27980 { ac_try='test -z "$ac_c_werror_flag"
27981 || test ! -s conftest.err'
27982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983 (eval $ac_try) 2>&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); }; } &&
27987 { ac_try='test -s conftest.$ac_objext'
27988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989 (eval $ac_try) 2>&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; }; then
27993 ol_cv_struct_sockaddr_storage=yes
27995 echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27998 ol_cv_struct_sockaddr_storage=no
28000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28002 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
28003 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
28005 if test $ol_cv_inet6_addrstrlen = yes \
28006 -a $ol_cv_struct_sockaddr_storage = yes ; then
28008 elif test $ol_enable_ipv6 = yes \
28009 -a $ol_cv_inet6_addrstrlen = no ; then
28010 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
28011 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
28012 { (exit 1); exit 1; }; }
28013 elif test $ol_enable_ipv6 = yes \
28014 -a $ol_cv_struct_sockaddr_storage = no ; then
28015 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
28016 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
28017 { (exit 1); exit 1; }; }
28021 if test $ol_enable_local != no ; then
28023 for ac_header in sys/un.h
28025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28027 echo "$as_me:$LINENO: checking for $ac_header" >&5
28028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28030 echo $ECHO_N "(cached) $ECHO_C" >&6
28032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28035 # Is the header compilable?
28036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28038 cat >conftest.$ac_ext <<_ACEOF
28041 cat confdefs.h >>conftest.$ac_ext
28042 cat >>conftest.$ac_ext <<_ACEOF
28043 /* end confdefs.h. */
28044 $ac_includes_default
28045 #include <$ac_header>
28047 rm -f conftest.$ac_objext
28048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28049 (eval $ac_compile) 2>conftest.er1
28051 grep -v '^ *+' conftest.er1 >conftest.err
28053 cat conftest.err >&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } &&
28056 { ac_try='test -z "$ac_c_werror_flag"
28057 || test ! -s conftest.err'
28058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28059 (eval $ac_try) 2>&5
28061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062 (exit $ac_status); }; } &&
28063 { ac_try='test -s conftest.$ac_objext'
28064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28065 (eval $ac_try) 2>&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); }; }; then
28069 ac_header_compiler=yes
28071 echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28074 ac_header_compiler=no
28076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28078 echo "${ECHO_T}$ac_header_compiler" >&6
28080 # Is the header present?
28081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28083 cat >conftest.$ac_ext <<_ACEOF
28086 cat confdefs.h >>conftest.$ac_ext
28087 cat >>conftest.$ac_ext <<_ACEOF
28088 /* end confdefs.h. */
28089 #include <$ac_header>
28091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28094 grep -v '^ *+' conftest.er1 >conftest.err
28096 cat conftest.err >&5
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); } >/dev/null; then
28099 if test -s conftest.err; then
28100 ac_cpp_err=$ac_c_preproc_warn_flag
28101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28108 if test -z "$ac_cpp_err"; then
28109 ac_header_preproc=yes
28111 echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28114 ac_header_preproc=no
28116 rm -f conftest.err conftest.$ac_ext
28117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28118 echo "${ECHO_T}$ac_header_preproc" >&6
28120 # So? What about this header?
28121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28127 ac_header_preproc=yes
28130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28144 ## ------------------------------------------ ##
28145 ## Report this to the AC_PACKAGE_NAME lists. ##
28146 ## ------------------------------------------ ##
28149 sed "s/^/$as_me: WARNING: /" >&2
28152 echo "$as_me:$LINENO: checking for $ac_header" >&5
28153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28155 echo $ECHO_N "(cached) $ECHO_C" >&6
28157 eval "$as_ac_Header=\$ac_header_preproc"
28159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28164 cat >>confdefs.h <<_ACEOF
28165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28173 if test $ol_enable_local = auto ; then
28174 ol_enable_local=$ac_cv_header_sys_un_h
28175 elif test $ac_cv_header_sys_un_h = no ; then
28176 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28177 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28178 { (exit 1); exit 1; }; }
28186 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28187 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28188 -o $ol_with_kerberos = k425 ; then
28191 for ac_header in krb5.h
28193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28195 echo "$as_me:$LINENO: checking for $ac_header" >&5
28196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28198 echo $ECHO_N "(cached) $ECHO_C" >&6
28200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28203 # Is the header compilable?
28204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28212 $ac_includes_default
28213 #include <$ac_header>
28215 rm -f conftest.$ac_objext
28216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28217 (eval $ac_compile) 2>conftest.er1
28219 grep -v '^ *+' conftest.er1 >conftest.err
28221 cat conftest.err >&5
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); } &&
28224 { ac_try='test -z "$ac_c_werror_flag"
28225 || test ! -s conftest.err'
28226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28227 (eval $ac_try) 2>&5
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); }; } &&
28231 { ac_try='test -s conftest.$ac_objext'
28232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28233 (eval $ac_try) 2>&5
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
28237 ac_header_compiler=yes
28239 echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28242 ac_header_compiler=no
28244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28246 echo "${ECHO_T}$ac_header_compiler" >&6
28248 # Is the header present?
28249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28251 cat >conftest.$ac_ext <<_ACEOF
28254 cat confdefs.h >>conftest.$ac_ext
28255 cat >>conftest.$ac_ext <<_ACEOF
28256 /* end confdefs.h. */
28257 #include <$ac_header>
28259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28262 grep -v '^ *+' conftest.er1 >conftest.err
28264 cat conftest.err >&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); } >/dev/null; then
28267 if test -s conftest.err; then
28268 ac_cpp_err=$ac_c_preproc_warn_flag
28269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28276 if test -z "$ac_cpp_err"; then
28277 ac_header_preproc=yes
28279 echo "$as_me: failed program was:" >&5
28280 sed 's/^/| /' conftest.$ac_ext >&5
28282 ac_header_preproc=no
28284 rm -f conftest.err conftest.$ac_ext
28285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28286 echo "${ECHO_T}$ac_header_preproc" >&6
28288 # So? What about this header?
28289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28295 ac_header_preproc=yes
28298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28312 ## ------------------------------------------ ##
28313 ## Report this to the AC_PACKAGE_NAME lists. ##
28314 ## ------------------------------------------ ##
28317 sed "s/^/$as_me: WARNING: /" >&2
28320 echo "$as_me:$LINENO: checking for $ac_header" >&5
28321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28323 echo $ECHO_N "(cached) $ECHO_C" >&6
28325 eval "$as_ac_Header=\$ac_header_preproc"
28327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28332 cat >>confdefs.h <<_ACEOF
28333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28341 if test $ac_cv_header_krb5_h = yes ; then
28343 for ac_header in heim_err.h
28345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28347 echo "$as_me:$LINENO: checking for $ac_header" >&5
28348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28350 echo $ECHO_N "(cached) $ECHO_C" >&6
28352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28355 # Is the header compilable?
28356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28358 cat >conftest.$ac_ext <<_ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h. */
28364 $ac_includes_default
28365 #include <$ac_header>
28367 rm -f conftest.$ac_objext
28368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28369 (eval $ac_compile) 2>conftest.er1
28371 grep -v '^ *+' conftest.er1 >conftest.err
28373 cat conftest.err >&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } &&
28376 { ac_try='test -z "$ac_c_werror_flag"
28377 || test ! -s conftest.err'
28378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379 (eval $ac_try) 2>&5
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; } &&
28383 { ac_try='test -s conftest.$ac_objext'
28384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28385 (eval $ac_try) 2>&5
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; }; then
28389 ac_header_compiler=yes
28391 echo "$as_me: failed program was:" >&5
28392 sed 's/^/| /' conftest.$ac_ext >&5
28394 ac_header_compiler=no
28396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28398 echo "${ECHO_T}$ac_header_compiler" >&6
28400 # Is the header present?
28401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28403 cat >conftest.$ac_ext <<_ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h. */
28409 #include <$ac_header>
28411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28414 grep -v '^ *+' conftest.er1 >conftest.err
28416 cat conftest.err >&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } >/dev/null; then
28419 if test -s conftest.err; then
28420 ac_cpp_err=$ac_c_preproc_warn_flag
28421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28428 if test -z "$ac_cpp_err"; then
28429 ac_header_preproc=yes
28431 echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28434 ac_header_preproc=no
28436 rm -f conftest.err conftest.$ac_ext
28437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28438 echo "${ECHO_T}$ac_header_preproc" >&6
28440 # So? What about this header?
28441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28447 ac_header_preproc=yes
28450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28464 ## ------------------------------------------ ##
28465 ## Report this to the AC_PACKAGE_NAME lists. ##
28466 ## ------------------------------------------ ##
28469 sed "s/^/$as_me: WARNING: /" >&2
28472 echo "$as_me:$LINENO: checking for $ac_header" >&5
28473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28475 echo $ECHO_N "(cached) $ECHO_C" >&6
28477 eval "$as_ac_Header=\$ac_header_preproc"
28479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28484 cat >>confdefs.h <<_ACEOF
28485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28492 if test $ac_cv_header_heim_err_h = yes ; then
28498 if test $krb5_impl = mit; then
28499 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28500 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28501 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28502 echo $ECHO_N "(cached) $ECHO_C" >&6
28504 ac_check_lib_save_LIBS=$LIBS
28505 LIBS="-lk5crypto $LIBS"
28506 cat >conftest.$ac_ext <<_ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h. */
28522 rm -f conftest.$ac_objext conftest$ac_exeext
28523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28524 (eval $ac_link) 2>conftest.er1
28526 grep -v '^ *+' conftest.er1 >conftest.err
28528 cat conftest.err >&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } &&
28531 { ac_try='test -z "$ac_c_werror_flag"
28532 || test ! -s conftest.err'
28533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534 (eval $ac_try) 2>&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); }; } &&
28538 { ac_try='test -s conftest$ac_exeext'
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
28544 ac_cv_lib_k5crypto_main=yes
28546 echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28549 ac_cv_lib_k5crypto_main=no
28551 rm -f conftest.err conftest.$ac_objext \
28552 conftest$ac_exeext conftest.$ac_ext
28553 LIBS=$ac_check_lib_save_LIBS
28555 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28556 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28557 if test $ac_cv_lib_k5crypto_main = yes; then
28558 krb5crypto=k5crypto
28564 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28565 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28566 if test "${ac_cv_lib_krb5_main+set}" = set; then
28567 echo $ECHO_N "(cached) $ECHO_C" >&6
28569 ac_check_lib_save_LIBS=$LIBS
28570 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28571 cat >conftest.$ac_ext <<_ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h. */
28587 rm -f conftest.$ac_objext conftest$ac_exeext
28588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28589 (eval $ac_link) 2>conftest.er1
28591 grep -v '^ *+' conftest.er1 >conftest.err
28593 cat conftest.err >&5
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); } &&
28596 { ac_try='test -z "$ac_c_werror_flag"
28597 || test ! -s conftest.err'
28598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599 (eval $ac_try) 2>&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; } &&
28603 { ac_try='test -s conftest$ac_exeext'
28604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605 (eval $ac_try) 2>&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
28609 ac_cv_lib_krb5_main=yes
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28614 ac_cv_lib_krb5_main=no
28616 rm -f conftest.err conftest.$ac_objext \
28617 conftest$ac_exeext conftest.$ac_ext
28618 LIBS=$ac_check_lib_save_LIBS
28620 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28621 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28622 if test $ac_cv_lib_krb5_main = yes; then
28624 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28630 elif test $krb5_impl = heimdal; then
28631 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28632 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28633 if test "${ac_cv_lib_des_main+set}" = set; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28636 ac_check_lib_save_LIBS=$LIBS
28638 cat >conftest.$ac_ext <<_ACEOF
28641 cat confdefs.h >>conftest.$ac_ext
28642 cat >>conftest.$ac_ext <<_ACEOF
28643 /* end confdefs.h. */
28654 rm -f conftest.$ac_objext conftest$ac_exeext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28656 (eval $ac_link) 2>conftest.er1
28658 grep -v '^ *+' conftest.er1 >conftest.err
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
28663 { ac_try='test -z "$ac_c_werror_flag"
28664 || test ! -s conftest.err'
28665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666 (eval $ac_try) 2>&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); }; } &&
28670 { ac_try='test -s conftest$ac_exeext'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; }; then
28676 ac_cv_lib_des_main=yes
28678 echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28681 ac_cv_lib_des_main=no
28683 rm -f conftest.err conftest.$ac_objext \
28684 conftest$ac_exeext conftest.$ac_ext
28685 LIBS=$ac_check_lib_save_LIBS
28687 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28688 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28689 if test $ac_cv_lib_des_main = yes; then
28696 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28697 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28698 if test "${ac_cv_lib_krb5_main+set}" = set; then
28699 echo $ECHO_N "(cached) $ECHO_C" >&6
28701 ac_check_lib_save_LIBS=$LIBS
28702 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28703 cat >conftest.$ac_ext <<_ACEOF
28706 cat confdefs.h >>conftest.$ac_ext
28707 cat >>conftest.$ac_ext <<_ACEOF
28708 /* end confdefs.h. */
28719 rm -f conftest.$ac_objext conftest$ac_exeext
28720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28721 (eval $ac_link) 2>conftest.er1
28723 grep -v '^ *+' conftest.er1 >conftest.err
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } &&
28728 { ac_try='test -z "$ac_c_werror_flag"
28729 || test ! -s conftest.err'
28730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28731 (eval $ac_try) 2>&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); }; } &&
28735 { ac_try='test -s conftest$ac_exeext'
28736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737 (eval $ac_try) 2>&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; }; then
28741 ac_cv_lib_krb5_main=yes
28743 echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28746 ac_cv_lib_krb5_main=no
28748 rm -f conftest.err conftest.$ac_objext \
28749 conftest$ac_exeext conftest.$ac_ext
28750 LIBS=$ac_check_lib_save_LIBS
28752 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28753 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28754 if test $ac_cv_lib_krb5_main = yes; then
28756 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28763 cat >>confdefs.h <<\_ACEOF
28764 #define HAVE_HEIMDAL_KERBEROS 1
28770 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28771 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28774 if test $have_krb5 = yes ; then
28778 cat >>confdefs.h <<\_ACEOF
28779 #define HAVE_KRB5 1
28783 if test $ol_with_kerberos = k5only ; then
28784 ol_with_kerberos=found
28787 elif test $ol_with_kerberos != auto ; then
28788 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28789 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28790 { (exit 1); exit 1; }; }
28796 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28797 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28801 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28805 echo "$as_me:$LINENO: checking for $ac_header" >&5
28806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28808 echo $ECHO_N "(cached) $ECHO_C" >&6
28810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28813 # Is the header compilable?
28814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28816 cat >conftest.$ac_ext <<_ACEOF
28819 cat confdefs.h >>conftest.$ac_ext
28820 cat >>conftest.$ac_ext <<_ACEOF
28821 /* end confdefs.h. */
28822 $ac_includes_default
28823 #include <$ac_header>
28825 rm -f conftest.$ac_objext
28826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28827 (eval $ac_compile) 2>conftest.er1
28829 grep -v '^ *+' conftest.er1 >conftest.err
28831 cat conftest.err >&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); } &&
28834 { ac_try='test -z "$ac_c_werror_flag"
28835 || test ! -s conftest.err'
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest.$ac_objext'
28842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
28847 ac_header_compiler=yes
28849 echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28852 ac_header_compiler=no
28854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28856 echo "${ECHO_T}$ac_header_compiler" >&6
28858 # Is the header present?
28859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28861 cat >conftest.$ac_ext <<_ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h. */
28867 #include <$ac_header>
28869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28872 grep -v '^ *+' conftest.er1 >conftest.err
28874 cat conftest.err >&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } >/dev/null; then
28877 if test -s conftest.err; then
28878 ac_cpp_err=$ac_c_preproc_warn_flag
28879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28886 if test -z "$ac_cpp_err"; then
28887 ac_header_preproc=yes
28889 echo "$as_me: failed program was:" >&5
28890 sed 's/^/| /' conftest.$ac_ext >&5
28892 ac_header_preproc=no
28894 rm -f conftest.err conftest.$ac_ext
28895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28896 echo "${ECHO_T}$ac_header_preproc" >&6
28898 # So? What about this header?
28899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28905 ac_header_preproc=yes
28908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28922 ## ------------------------------------------ ##
28923 ## Report this to the AC_PACKAGE_NAME lists. ##
28924 ## ------------------------------------------ ##
28927 sed "s/^/$as_me: WARNING: /" >&2
28930 echo "$as_me:$LINENO: checking for $ac_header" >&5
28931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28933 echo $ECHO_N "(cached) $ECHO_C" >&6
28935 eval "$as_ac_Header=\$ac_header_preproc"
28937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28942 cat >>confdefs.h <<_ACEOF
28943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28951 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28952 if test $krb5_impl = mit; then
28953 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28954 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28955 if test "${ac_cv_lib_krb4_main+set}" = set; then
28956 echo $ECHO_N "(cached) $ECHO_C" >&6
28958 ac_check_lib_save_LIBS=$LIBS
28959 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28960 cat >conftest.$ac_ext <<_ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h. */
28976 rm -f conftest.$ac_objext conftest$ac_exeext
28977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28978 (eval $ac_link) 2>conftest.er1
28980 grep -v '^ *+' conftest.er1 >conftest.err
28982 cat conftest.err >&5
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); } &&
28985 { ac_try='test -z "$ac_c_werror_flag"
28986 || test ! -s conftest.err'
28987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988 (eval $ac_try) 2>&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; } &&
28992 { ac_try='test -s conftest$ac_exeext'
28993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994 (eval $ac_try) 2>&5
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; }; then
28998 ac_cv_lib_krb4_main=yes
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 ac_cv_lib_krb4_main=no
29005 rm -f conftest.err conftest.$ac_objext \
29006 conftest$ac_exeext conftest.$ac_ext
29007 LIBS=$ac_check_lib_save_LIBS
29009 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29010 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29011 if test $ac_cv_lib_krb4_main = yes; then
29013 KRB4_LIBS="-lkrb4 -ldes425"
29019 elif test $krb5_impl = heimdal; then
29020 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
29021 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
29022 if test "${ac_cv_lib_krb4_main+set}" = set; then
29023 echo $ECHO_N "(cached) $ECHO_C" >&6
29025 ac_check_lib_save_LIBS=$LIBS
29026 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
29027 cat >conftest.$ac_ext <<_ACEOF
29030 cat confdefs.h >>conftest.$ac_ext
29031 cat >>conftest.$ac_ext <<_ACEOF
29032 /* end confdefs.h. */
29043 rm -f conftest.$ac_objext conftest$ac_exeext
29044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29045 (eval $ac_link) 2>conftest.er1
29047 grep -v '^ *+' conftest.er1 >conftest.err
29049 cat conftest.err >&5
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); } &&
29052 { ac_try='test -z "$ac_c_werror_flag"
29053 || test ! -s conftest.err'
29054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055 (eval $ac_try) 2>&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; } &&
29059 { ac_try='test -s conftest$ac_exeext'
29060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061 (eval $ac_try) 2>&5
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; }; then
29065 ac_cv_lib_krb4_main=yes
29067 echo "$as_me: failed program was:" >&5
29068 sed 's/^/| /' conftest.$ac_ext >&5
29070 ac_cv_lib_krb4_main=no
29072 rm -f conftest.err conftest.$ac_objext \
29073 conftest$ac_exeext conftest.$ac_ext
29074 LIBS=$ac_check_lib_save_LIBS
29076 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29077 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29078 if test $ac_cv_lib_krb4_main = yes; then
29088 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
29089 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
29092 if test $have_k425 = yes ; then
29093 ol_with_kerberos=found
29097 cat >>confdefs.h <<\_ACEOF
29098 #define HAVE_KRB425 1
29102 cat >>confdefs.h <<\_ACEOF
29103 #define HAVE_KRB4 1
29107 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
29108 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
29109 if test "${ol_cv_var_des_debug+set}" = set; then
29110 echo $ECHO_N "(cached) $ECHO_C" >&6
29114 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
29115 cat >conftest.$ac_ext <<_ACEOF
29118 cat confdefs.h >>conftest.$ac_ext
29119 cat >>conftest.$ac_ext <<_ACEOF
29120 /* end confdefs.h. */
29122 #include <kerberosIV/krb.h>
29123 #include <kerberosIV/des.h>
29124 extern int des_debug;
29136 rm -f conftest.$ac_objext conftest$ac_exeext
29137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29138 (eval $ac_link) 2>conftest.er1
29140 grep -v '^ *+' conftest.er1 >conftest.err
29142 cat conftest.err >&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); } &&
29145 { ac_try='test -z "$ac_c_werror_flag"
29146 || test ! -s conftest.err'
29147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148 (eval $ac_try) 2>&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; } &&
29152 { ac_try='test -s conftest$ac_exeext'
29153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154 (eval $ac_try) 2>&5
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; }; then
29158 ol_cv_var_des_debug=yes
29160 echo "$as_me: failed program was:" >&5
29161 sed 's/^/| /' conftest.$ac_ext >&5
29163 ol_cv_var_des_debug=no
29165 rm -f conftest.err conftest.$ac_objext \
29166 conftest$ac_exeext conftest.$ac_ext
29170 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29171 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29173 if test $ol_cv_var_des_debug = yes ; then
29175 cat >>confdefs.h <<\_ACEOF
29176 #define HAVE_DES_DEBUG 1
29186 if test $ol_link_krb5 = yes ; then
29187 ol_with_kerberos=found
29190 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29191 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29196 for ac_header in krb.h des.h krb-archaeology.h
29198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29200 echo "$as_me:$LINENO: checking for $ac_header" >&5
29201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29203 echo $ECHO_N "(cached) $ECHO_C" >&6
29205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29208 # Is the header compilable?
29209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29211 cat >conftest.$ac_ext <<_ACEOF
29214 cat confdefs.h >>conftest.$ac_ext
29215 cat >>conftest.$ac_ext <<_ACEOF
29216 /* end confdefs.h. */
29217 $ac_includes_default
29218 #include <$ac_header>
29220 rm -f conftest.$ac_objext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29222 (eval $ac_compile) 2>conftest.er1
29224 grep -v '^ *+' conftest.er1 >conftest.err
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } &&
29229 { ac_try='test -z "$ac_c_werror_flag"
29230 || test ! -s conftest.err'
29231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232 (eval $ac_try) 2>&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; } &&
29236 { ac_try='test -s conftest.$ac_objext'
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; }; then
29242 ac_header_compiler=yes
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29247 ac_header_compiler=no
29249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29251 echo "${ECHO_T}$ac_header_compiler" >&6
29253 # Is the header present?
29254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29256 cat >conftest.$ac_ext <<_ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h. */
29262 #include <$ac_header>
29264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29267 grep -v '^ *+' conftest.er1 >conftest.err
29269 cat conftest.err >&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } >/dev/null; then
29272 if test -s conftest.err; then
29273 ac_cpp_err=$ac_c_preproc_warn_flag
29274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29281 if test -z "$ac_cpp_err"; then
29282 ac_header_preproc=yes
29284 echo "$as_me: failed program was:" >&5
29285 sed 's/^/| /' conftest.$ac_ext >&5
29287 ac_header_preproc=no
29289 rm -f conftest.err conftest.$ac_ext
29290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29291 echo "${ECHO_T}$ac_header_preproc" >&6
29293 # So? What about this header?
29294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29300 ac_header_preproc=yes
29303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29317 ## ------------------------------------------ ##
29318 ## Report this to the AC_PACKAGE_NAME lists. ##
29319 ## ------------------------------------------ ##
29322 sed "s/^/$as_me: WARNING: /" >&2
29325 echo "$as_me:$LINENO: checking for $ac_header" >&5
29326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29328 echo $ECHO_N "(cached) $ECHO_C" >&6
29330 eval "$as_ac_Header=\$ac_header_preproc"
29332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29337 cat >>confdefs.h <<_ACEOF
29338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29346 if test $ac_cv_header_krb_h = yes ; then
29347 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29348 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29349 if test "${ac_cv_lib_krb_main+set}" = set; then
29350 echo $ECHO_N "(cached) $ECHO_C" >&6
29352 ac_check_lib_save_LIBS=$LIBS
29353 LIBS="-lkrb -ldes $LIBS"
29354 cat >conftest.$ac_ext <<_ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h. */
29370 rm -f conftest.$ac_objext conftest$ac_exeext
29371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29372 (eval $ac_link) 2>conftest.er1
29374 grep -v '^ *+' conftest.er1 >conftest.err
29376 cat conftest.err >&5
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); } &&
29379 { ac_try='test -z "$ac_c_werror_flag"
29380 || test ! -s conftest.err'
29381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; } &&
29386 { ac_try='test -s conftest$ac_exeext'
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; }; then
29392 ac_cv_lib_krb_main=yes
29394 echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29397 ac_cv_lib_krb_main=no
29399 rm -f conftest.err conftest.$ac_objext \
29400 conftest$ac_exeext conftest.$ac_ext
29401 LIBS=$ac_check_lib_save_LIBS
29403 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29404 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29405 if test $ac_cv_lib_krb_main = yes; then
29412 if test $have_k4 = yes ; then
29413 ol_with_kerberos=found
29417 cat >>confdefs.h <<\_ACEOF
29418 #define HAVE_KRB4 1
29422 KRB4_LIBS="-lkrb -ldes"
29424 if test $ac_cv_header_krb_archaeology_h = yes ; then
29426 cat >>confdefs.h <<\_ACEOF
29427 #define HAVE_KTH_KERBEROS 1
29435 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29438 elif test $ol_enable_kbind = yes ; then
29439 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29440 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29441 { (exit 1); exit 1; }; }
29444 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29446 cat >>confdefs.h <<\_ACEOF
29447 #define HAVE_KERBEROS 1
29451 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29452 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29453 echo "$as_me: error: Kerberos detection failed" >&2;}
29454 { (exit 1); exit 1; }; }
29459 if test $ol_with_tls != no ; then
29462 for ac_header in openssl/ssl.h ssl.h
29464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29466 echo "$as_me:$LINENO: checking for $ac_header" >&5
29467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29469 echo $ECHO_N "(cached) $ECHO_C" >&6
29471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29474 # Is the header compilable?
29475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29477 cat >conftest.$ac_ext <<_ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h. */
29483 $ac_includes_default
29484 #include <$ac_header>
29486 rm -f conftest.$ac_objext
29487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29488 (eval $ac_compile) 2>conftest.er1
29490 grep -v '^ *+' conftest.er1 >conftest.err
29492 cat conftest.err >&5
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } &&
29495 { ac_try='test -z "$ac_c_werror_flag"
29496 || test ! -s conftest.err'
29497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29498 (eval $ac_try) 2>&5
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; } &&
29502 { ac_try='test -s conftest.$ac_objext'
29503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29504 (eval $ac_try) 2>&5
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); }; }; then
29508 ac_header_compiler=yes
29510 echo "$as_me: failed program was:" >&5
29511 sed 's/^/| /' conftest.$ac_ext >&5
29513 ac_header_compiler=no
29515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29517 echo "${ECHO_T}$ac_header_compiler" >&6
29519 # Is the header present?
29520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29522 cat >conftest.$ac_ext <<_ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 #include <$ac_header>
29530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29533 grep -v '^ *+' conftest.er1 >conftest.err
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } >/dev/null; then
29538 if test -s conftest.err; then
29539 ac_cpp_err=$ac_c_preproc_warn_flag
29540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29547 if test -z "$ac_cpp_err"; then
29548 ac_header_preproc=yes
29550 echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29553 ac_header_preproc=no
29555 rm -f conftest.err conftest.$ac_ext
29556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29557 echo "${ECHO_T}$ac_header_preproc" >&6
29559 # So? What about this header?
29560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29566 ac_header_preproc=yes
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29583 ## ------------------------------------------ ##
29584 ## Report this to the AC_PACKAGE_NAME lists. ##
29585 ## ------------------------------------------ ##
29588 sed "s/^/$as_me: WARNING: /" >&2
29591 echo "$as_me:$LINENO: checking for $ac_header" >&5
29592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29596 eval "$as_ac_Header=\$ac_header_preproc"
29598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29603 cat >>confdefs.h <<_ACEOF
29604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29612 if test $ac_cv_header_openssl_ssl_h = yes \
29613 -o $ac_cv_header_ssl_h = yes ; then
29614 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29615 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29616 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29617 echo $ECHO_N "(cached) $ECHO_C" >&6
29619 ac_check_lib_save_LIBS=$LIBS
29620 LIBS="-lssl -lcrypto $LIBS"
29621 cat >conftest.$ac_ext <<_ACEOF
29624 cat confdefs.h >>conftest.$ac_ext
29625 cat >>conftest.$ac_ext <<_ACEOF
29626 /* end confdefs.h. */
29628 /* Override any gcc2 internal prototype to avoid an error. */
29632 /* We use char because int might match the return type of a gcc2
29633 builtin and then its argument prototype would still apply. */
29634 char SSLeay_add_ssl_algorithms ();
29638 SSLeay_add_ssl_algorithms ();
29643 rm -f conftest.$ac_objext conftest$ac_exeext
29644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29645 (eval $ac_link) 2>conftest.er1
29647 grep -v '^ *+' conftest.er1 >conftest.err
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } &&
29652 { ac_try='test -z "$ac_c_werror_flag"
29653 || test ! -s conftest.err'
29654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655 (eval $ac_try) 2>&5
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); }; } &&
29659 { ac_try='test -s conftest$ac_exeext'
29660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29661 (eval $ac_try) 2>&5
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); }; }; then
29665 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29667 echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29670 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29672 rm -f conftest.err conftest.$ac_objext \
29673 conftest$ac_exeext conftest.$ac_ext
29674 LIBS=$ac_check_lib_save_LIBS
29676 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29677 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29678 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29686 if test $have_ssleay = no ; then
29687 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29688 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29689 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29690 echo $ECHO_N "(cached) $ECHO_C" >&6
29692 ac_check_lib_save_LIBS=$LIBS
29693 LIBS="-lssl -lcrypto $LIBS"
29694 cat >conftest.$ac_ext <<_ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h. */
29701 /* Override any gcc2 internal prototype to avoid an error. */
29705 /* We use char because int might match the return type of a gcc2
29706 builtin and then its argument prototype would still apply. */
29707 char SSL_library_init ();
29711 SSL_library_init ();
29716 rm -f conftest.$ac_objext conftest$ac_exeext
29717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29718 (eval $ac_link) 2>conftest.er1
29720 grep -v '^ *+' conftest.er1 >conftest.err
29722 cat conftest.err >&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } &&
29725 { ac_try='test -z "$ac_c_werror_flag"
29726 || test ! -s conftest.err'
29727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728 (eval $ac_try) 2>&5
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; } &&
29732 { ac_try='test -s conftest$ac_exeext'
29733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734 (eval $ac_try) 2>&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); }; }; then
29738 ac_cv_lib_ssl_SSL_library_init=yes
29740 echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29743 ac_cv_lib_ssl_SSL_library_init=no
29745 rm -f conftest.err conftest.$ac_objext \
29746 conftest$ac_exeext conftest.$ac_ext
29747 LIBS=$ac_check_lib_save_LIBS
29749 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29750 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29751 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29760 if test $have_ssleay = no ; then
29761 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29762 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29763 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29766 ac_check_lib_save_LIBS=$LIBS
29767 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29768 cat >conftest.$ac_ext <<_ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h. */
29775 /* Override any gcc2 internal prototype to avoid an error. */
29779 /* We use char because int might match the return type of a gcc2
29780 builtin and then its argument prototype would still apply. */
29781 char ssl3_accept ();
29790 rm -f conftest.$ac_objext conftest$ac_exeext
29791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29792 (eval $ac_link) 2>conftest.er1
29794 grep -v '^ *+' conftest.er1 >conftest.err
29796 cat conftest.err >&5
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798 (exit $ac_status); } &&
29799 { ac_try='test -z "$ac_c_werror_flag"
29800 || test ! -s conftest.err'
29801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29802 (eval $ac_try) 2>&5
29804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); }; } &&
29806 { ac_try='test -s conftest$ac_exeext'
29807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29808 (eval $ac_try) 2>&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; }; then
29812 ac_cv_lib_ssl_ssl3_accept=yes
29814 echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29817 ac_cv_lib_ssl_ssl3_accept=no
29819 rm -f conftest.err conftest.$ac_objext \
29820 conftest$ac_exeext conftest.$ac_ext
29821 LIBS=$ac_check_lib_save_LIBS
29823 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29824 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29825 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29834 if test $have_ssleay = yes ; then
29839 cat >>confdefs.h <<\_ACEOF
29840 #define HAVE_SSLEAY 1
29844 if test $need_rsaref = yes; then
29846 cat >>confdefs.h <<\_ACEOF
29847 #define HAVE_RSAREF 1
29851 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29853 TLS_LIBS="-lssl -lcrypto"
29856 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29857 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29858 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
29862 cat >conftest.$ac_ext <<_ACEOF
29865 cat confdefs.h >>conftest.$ac_ext
29866 cat >>conftest.$ac_ext <<_ACEOF
29867 /* end confdefs.h. */
29869 #ifdef HAVE_OPENSSL_SSL_H
29870 #include <openssl/ssl.h>
29875 /* Require 0.9.7d+ */
29876 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29877 char *__ssl_compat = "0.9.7d";
29881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29882 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29883 ol_cv_ssl_crl_compat=yes
29885 ol_cv_ssl_crl_compat=no
29890 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29891 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29893 if test $ol_cv_ssl_crl_compat = no ; then
29897 cat >>confdefs.h <<\_ACEOF
29898 #define HAVE_OPENSSL_CRL 1
29905 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29906 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29910 if test $ol_link_tls = yes ; then
29912 cat >>confdefs.h <<\_ACEOF
29918 elif test $ol_with_tls = auto ; then
29919 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29920 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29921 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29922 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29924 elif test $ol_with_tls != no ; then
29925 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29926 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29927 { (exit 1); exit 1; }; }
29930 if test $ol_enable_lmpasswd != no; then
29931 if test $ol_link_tls != yes ; then
29932 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29933 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29934 { (exit 1); exit 1; }; }
29938 cat >>confdefs.h <<\_ACEOF
29939 #define SLAPD_LMHASH 1
29946 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29947 -o $ol_with_threads = nt ; then
29950 echo "$as_me:$LINENO: checking for _beginthread" >&5
29951 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29952 if test "${ac_cv_func__beginthread+set}" = set; then
29953 echo $ECHO_N "(cached) $ECHO_C" >&6
29955 cat >conftest.$ac_ext <<_ACEOF
29958 cat confdefs.h >>conftest.$ac_ext
29959 cat >>conftest.$ac_ext <<_ACEOF
29960 /* end confdefs.h. */
29961 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29963 #define _beginthread innocuous__beginthread
29965 /* System header to define __stub macros and hopefully few prototypes,
29966 which can conflict with char _beginthread (); below.
29967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29968 <limits.h> exists even on freestanding compilers. */
29971 # include <limits.h>
29973 # include <assert.h>
29976 #undef _beginthread
29978 /* Override any gcc2 internal prototype to avoid an error. */
29983 /* We use char because int might match the return type of a gcc2
29984 builtin and then its argument prototype would still apply. */
29985 char _beginthread ();
29986 /* The GNU C library defines this for functions which it implements
29987 to always fail with ENOSYS. Some functions are actually named
29988 something starting with __ and the normal name is an alias. */
29989 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29992 char (*f) () = _beginthread;
30001 return f != _beginthread;
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30008 (eval $ac_link) 2>conftest.er1
30010 grep -v '^ *+' conftest.er1 >conftest.err
30012 cat conftest.err >&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } &&
30015 { ac_try='test -z "$ac_c_werror_flag"
30016 || test ! -s conftest.err'
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; } &&
30022 { ac_try='test -s conftest$ac_exeext'
30023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024 (eval $ac_try) 2>&5
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); }; }; then
30028 ac_cv_func__beginthread=yes
30030 echo "$as_me: failed program was:" >&5
30031 sed 's/^/| /' conftest.$ac_ext >&5
30033 ac_cv_func__beginthread=no
30035 rm -f conftest.err conftest.$ac_objext \
30036 conftest$ac_exeext conftest.$ac_ext
30038 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
30039 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
30042 if test $ac_cv_func__beginthread = yes ; then
30044 cat >>confdefs.h <<\_ACEOF
30045 #define HAVE_NT_THREADS 1
30048 ol_cv_nt_threads=yes
30052 if test "$ol_cv_nt_threads" = yes ; then
30054 ol_with_threads=found
30055 ol_with_yielding_select=yes
30058 cat >>confdefs.h <<\_ACEOF
30059 #define HAVE_NT_SERVICE_MANAGER 1
30063 cat >>confdefs.h <<\_ACEOF
30064 #define HAVE_NT_EVENT_LOG 1
30069 if test $ol_with_threads = nt ; then
30070 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
30071 echo "$as_me: error: could not locate NT Threads" >&2;}
30072 { (exit 1); exit 1; }; }
30076 if test $ol_with_threads = auto -o $ol_with_threads = yes \
30077 -o $ol_with_threads = posix ; then
30080 for ac_header in pthread.h
30082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30084 echo "$as_me:$LINENO: checking for $ac_header" >&5
30085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30087 echo $ECHO_N "(cached) $ECHO_C" >&6
30089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30092 # Is the header compilable?
30093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30095 cat >conftest.$ac_ext <<_ACEOF
30098 cat confdefs.h >>conftest.$ac_ext
30099 cat >>conftest.$ac_ext <<_ACEOF
30100 /* end confdefs.h. */
30101 $ac_includes_default
30102 #include <$ac_header>
30104 rm -f conftest.$ac_objext
30105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30106 (eval $ac_compile) 2>conftest.er1
30108 grep -v '^ *+' conftest.er1 >conftest.err
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); } &&
30113 { ac_try='test -z "$ac_c_werror_flag"
30114 || test ! -s conftest.err'
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; } &&
30120 { ac_try='test -s conftest.$ac_objext'
30121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30122 (eval $ac_try) 2>&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; }; then
30126 ac_header_compiler=yes
30128 echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30131 ac_header_compiler=no
30133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30135 echo "${ECHO_T}$ac_header_compiler" >&6
30137 # Is the header present?
30138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30140 cat >conftest.$ac_ext <<_ACEOF
30143 cat confdefs.h >>conftest.$ac_ext
30144 cat >>conftest.$ac_ext <<_ACEOF
30145 /* end confdefs.h. */
30146 #include <$ac_header>
30148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30151 grep -v '^ *+' conftest.er1 >conftest.err
30153 cat conftest.err >&5
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); } >/dev/null; then
30156 if test -s conftest.err; then
30157 ac_cpp_err=$ac_c_preproc_warn_flag
30158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30165 if test -z "$ac_cpp_err"; then
30166 ac_header_preproc=yes
30168 echo "$as_me: failed program was:" >&5
30169 sed 's/^/| /' conftest.$ac_ext >&5
30171 ac_header_preproc=no
30173 rm -f conftest.err conftest.$ac_ext
30174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30175 echo "${ECHO_T}$ac_header_preproc" >&6
30177 # So? What about this header?
30178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30184 ac_header_preproc=yes
30187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30201 ## ------------------------------------------ ##
30202 ## Report this to the AC_PACKAGE_NAME lists. ##
30203 ## ------------------------------------------ ##
30206 sed "s/^/$as_me: WARNING: /" >&2
30209 echo "$as_me:$LINENO: checking for $ac_header" >&5
30210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30212 echo $ECHO_N "(cached) $ECHO_C" >&6
30214 eval "$as_ac_Header=\$ac_header_preproc"
30216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30221 cat >>confdefs.h <<_ACEOF
30222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30230 if test $ac_cv_header_pthread_h = yes ; then
30231 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30232 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30233 if test "${ol_cv_pthread_version+set}" = set; then
30234 echo $ECHO_N "(cached) $ECHO_C" >&6
30237 cat >conftest.$ac_ext <<_ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h. */
30244 # include <pthread.h>
30250 int i = PTHREAD_CREATE_JOINABLE;
30256 rm -f conftest.$ac_objext
30257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30258 (eval $ac_compile) 2>conftest.er1
30260 grep -v '^ *+' conftest.er1 >conftest.err
30262 cat conftest.err >&5
30263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); } &&
30265 { ac_try='test -z "$ac_c_werror_flag"
30266 || test ! -s conftest.err'
30267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268 (eval $ac_try) 2>&5
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; } &&
30272 { ac_try='test -s conftest.$ac_objext'
30273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274 (eval $ac_try) 2>&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; }; then
30279 cat >conftest.$ac_ext <<_ACEOF
30282 cat confdefs.h >>conftest.$ac_ext
30283 cat >>conftest.$ac_ext <<_ACEOF
30284 /* end confdefs.h. */
30285 #include <pthread.h>
30288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30289 $EGREP "pthread_detach" >/dev/null 2>&1; then
30290 ol_cv_pthread_version=10
30292 ol_cv_pthread_version=8
30297 echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.$ac_ext >&5
30301 cat >conftest.$ac_ext <<_ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h. */
30308 # include <pthread.h>
30309 # ifdef PTHREAD_CREATE_UNDETACHED
30314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30315 $EGREP "draft7" >/dev/null 2>&1; then
30316 ol_cv_pthread_version=7
30319 cat >conftest.$ac_ext <<_ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h. */
30325 #include <pthread.h>
30328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30329 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30330 ol_cv_pthread_version=6
30333 cat >conftest.$ac_ext <<_ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h. */
30340 # include <pthread.h>
30341 #ifdef PTHREAD_MUTEX_INITIALIZER
30346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30347 $EGREP "draft5" >/dev/null 2>&1; then
30348 ol_cv_pthread_version=5
30350 ol_cv_pthread_version=4
30361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30364 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30365 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30368 if test $ol_cv_pthread_version != 0 ; then
30370 cat >>confdefs.h <<_ACEOF
30371 #define HAVE_PTHREADS $ol_cv_pthread_version
30375 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30376 echo "$as_me: error: unknown pthread version" >&2;}
30377 { (exit 1); exit 1; }; }
30380 # consider threads found
30381 ol_with_threads=found
30384 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30385 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30386 if test "${ol_cv_header_linux_threads+set}" = set; then
30387 echo $ECHO_N "(cached) $ECHO_C" >&6
30389 cat >conftest.$ac_ext <<_ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h. */
30395 #include <pthread.h>
30397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30398 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30399 ol_cv_header_linux_threads=yes
30401 ol_cv_header_linux_threads=no
30407 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30408 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30409 if test $ol_cv_header_linux_threads = yes; then
30411 cat >>confdefs.h <<\_ACEOF
30412 #define HAVE_LINUX_THREADS 1
30418 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30419 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30420 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30421 echo $ECHO_N "(cached) $ECHO_C" >&6
30423 cat >conftest.$ac_ext <<_ACEOF
30426 cat confdefs.h >>conftest.$ac_ext
30427 cat >>conftest.$ac_ext <<_ACEOF
30428 /* end confdefs.h. */
30429 #include <pthread.h>
30430 #ifdef _POSIX_THREAD_IS_GNU_PTH
30435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30436 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30437 ol_cv_header_gnu_pth_pthread_h=yes
30439 ol_cv_header_gnu_pth_pthread_h=no
30445 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30446 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30449 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30451 for ac_header in sched.h
30453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30455 echo "$as_me:$LINENO: checking for $ac_header" >&5
30456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30458 echo $ECHO_N "(cached) $ECHO_C" >&6
30460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30463 # Is the header compilable?
30464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30466 cat >conftest.$ac_ext <<_ACEOF
30469 cat confdefs.h >>conftest.$ac_ext
30470 cat >>conftest.$ac_ext <<_ACEOF
30471 /* end confdefs.h. */
30472 $ac_includes_default
30473 #include <$ac_header>
30475 rm -f conftest.$ac_objext
30476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30477 (eval $ac_compile) 2>conftest.er1
30479 grep -v '^ *+' conftest.er1 >conftest.err
30481 cat conftest.err >&5
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); } &&
30484 { ac_try='test -z "$ac_c_werror_flag"
30485 || test ! -s conftest.err'
30486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30487 (eval $ac_try) 2>&5
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); }; } &&
30491 { ac_try='test -s conftest.$ac_objext'
30492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30493 (eval $ac_try) 2>&5
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); }; }; then
30497 ac_header_compiler=yes
30499 echo "$as_me: failed program was:" >&5
30500 sed 's/^/| /' conftest.$ac_ext >&5
30502 ac_header_compiler=no
30504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30506 echo "${ECHO_T}$ac_header_compiler" >&6
30508 # Is the header present?
30509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30511 cat >conftest.$ac_ext <<_ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h. */
30517 #include <$ac_header>
30519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30522 grep -v '^ *+' conftest.er1 >conftest.err
30524 cat conftest.err >&5
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); } >/dev/null; then
30527 if test -s conftest.err; then
30528 ac_cpp_err=$ac_c_preproc_warn_flag
30529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30536 if test -z "$ac_cpp_err"; then
30537 ac_header_preproc=yes
30539 echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30542 ac_header_preproc=no
30544 rm -f conftest.err conftest.$ac_ext
30545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30546 echo "${ECHO_T}$ac_header_preproc" >&6
30548 # So? What about this header?
30549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30555 ac_header_preproc=yes
30558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30572 ## ------------------------------------------ ##
30573 ## Report this to the AC_PACKAGE_NAME lists. ##
30574 ## ------------------------------------------ ##
30577 sed "s/^/$as_me: WARNING: /" >&2
30580 echo "$as_me:$LINENO: checking for $ac_header" >&5
30581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30583 echo $ECHO_N "(cached) $ECHO_C" >&6
30585 eval "$as_ac_Header=\$ac_header_preproc"
30587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30592 cat >>confdefs.h <<_ACEOF
30593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30603 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30604 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30605 if test "${ol_cv_pthread_create+set}" = set; then
30606 echo $ECHO_N "(cached) $ECHO_C" >&6
30609 if test "$cross_compiling" = yes; then
30610 cat >conftest.$ac_ext <<_ACEOF
30613 cat confdefs.h >>conftest.$ac_ext
30614 cat >>conftest.$ac_ext <<_ACEOF
30615 /* end confdefs.h. */
30617 /* pthread test headers */
30618 #include <pthread.h>
30619 #if HAVE_PTHREADS < 7
30623 #define NULL (void*)0
30626 static void *task(p)
30629 return (void *) (p == NULL);
30636 /* pthread test function */
30637 #ifndef PTHREAD_CREATE_DETACHED
30638 #define PTHREAD_CREATE_DETACHED 1
30642 int detach = PTHREAD_CREATE_DETACHED;
30644 #if HAVE_PTHREADS > 4
30645 /* Final pthreads */
30646 pthread_attr_t attr;
30648 status = pthread_attr_init(&attr);
30649 if( status ) return status;
30651 #if HAVE_PTHREADS < 7
30652 status = pthread_attr_setdetachstate(&attr, &detach);
30653 if( status < 0 ) status = errno;
30655 status = pthread_attr_setdetachstate(&attr, detach);
30657 if( status ) return status;
30658 status = pthread_create( &t, &attr, task, NULL );
30659 #if HAVE_PTHREADS < 7
30660 if( status < 0 ) status = errno;
30662 if( status ) return status;
30664 /* Draft 4 pthreads */
30665 status = pthread_create( &t, pthread_attr_default, task, NULL );
30666 if( status ) return errno;
30668 /* give thread a chance to complete */
30669 /* it should remain joinable and hence detachable */
30672 status = pthread_detach( &t );
30673 if( status ) return errno;
30676 #ifdef HAVE_LINUX_THREADS
30677 pthread_kill_other_threads_np();
30686 rm -f conftest.$ac_objext conftest$ac_exeext
30687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30688 (eval $ac_link) 2>conftest.er1
30690 grep -v '^ *+' conftest.er1 >conftest.err
30692 cat conftest.err >&5
30693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694 (exit $ac_status); } &&
30695 { ac_try='test -z "$ac_c_werror_flag"
30696 || test ! -s conftest.err'
30697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698 (eval $ac_try) 2>&5
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); }; } &&
30702 { ac_try='test -s conftest$ac_exeext'
30703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30704 (eval $ac_try) 2>&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); }; }; then
30708 ol_cv_pthread_create=yes
30710 echo "$as_me: failed program was:" >&5
30711 sed 's/^/| /' conftest.$ac_ext >&5
30713 ol_cv_pthread_create=no
30715 rm -f conftest.err conftest.$ac_objext \
30716 conftest$ac_exeext conftest.$ac_ext
30718 cat >conftest.$ac_ext <<_ACEOF
30721 cat confdefs.h >>conftest.$ac_ext
30722 cat >>conftest.$ac_ext <<_ACEOF
30723 /* end confdefs.h. */
30725 /* pthread test headers */
30726 #include <pthread.h>
30727 #if HAVE_PTHREADS < 7
30731 #define NULL (void*)0
30734 static void *task(p)
30737 return (void *) (p == NULL);
30741 int main(argc, argv)
30746 /* pthread test function */
30747 #ifndef PTHREAD_CREATE_DETACHED
30748 #define PTHREAD_CREATE_DETACHED 1
30752 int detach = PTHREAD_CREATE_DETACHED;
30754 #if HAVE_PTHREADS > 4
30755 /* Final pthreads */
30756 pthread_attr_t attr;
30758 status = pthread_attr_init(&attr);
30759 if( status ) return status;
30761 #if HAVE_PTHREADS < 7
30762 status = pthread_attr_setdetachstate(&attr, &detach);
30763 if( status < 0 ) status = errno;
30765 status = pthread_attr_setdetachstate(&attr, detach);
30767 if( status ) return status;
30768 status = pthread_create( &t, &attr, task, NULL );
30769 #if HAVE_PTHREADS < 7
30770 if( status < 0 ) status = errno;
30772 if( status ) return status;
30774 /* Draft 4 pthreads */
30775 status = pthread_create( &t, pthread_attr_default, task, NULL );
30776 if( status ) return errno;
30778 /* give thread a chance to complete */
30779 /* it should remain joinable and hence detachable */
30782 status = pthread_detach( &t );
30783 if( status ) return errno;
30786 #ifdef HAVE_LINUX_THREADS
30787 pthread_kill_other_threads_np();
30795 rm -f conftest$ac_exeext
30796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30797 (eval $ac_link) 2>&5
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30802 (eval $ac_try) 2>&5
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); }; }; then
30806 ol_cv_pthread_create=yes
30808 echo "$as_me: program exited with status $ac_status" >&5
30809 echo "$as_me: failed program was:" >&5
30810 sed 's/^/| /' conftest.$ac_ext >&5
30812 ( exit $ac_status )
30813 ol_cv_pthread_create=no
30815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30818 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30819 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30821 if test $ol_cv_pthread_create != no ; then
30822 ol_link_threads=posix
30823 ol_link_pthreads=""
30826 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30827 if test "$ol_link_threads" = no ; then
30829 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30830 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30831 if test "${ol_cv_pthread_kthread+set}" = set; then
30832 echo $ECHO_N "(cached) $ECHO_C" >&6
30837 LIBS="-kthread $LIBS"
30839 if test "$cross_compiling" = yes; then
30840 cat >conftest.$ac_ext <<_ACEOF
30843 cat confdefs.h >>conftest.$ac_ext
30844 cat >>conftest.$ac_ext <<_ACEOF
30845 /* end confdefs.h. */
30847 /* pthread test headers */
30848 #include <pthread.h>
30849 #if HAVE_PTHREADS < 7
30853 #define NULL (void*)0
30856 static void *task(p)
30859 return (void *) (p == NULL);
30866 /* pthread test function */
30867 #ifndef PTHREAD_CREATE_DETACHED
30868 #define PTHREAD_CREATE_DETACHED 1
30872 int detach = PTHREAD_CREATE_DETACHED;
30874 #if HAVE_PTHREADS > 4
30875 /* Final pthreads */
30876 pthread_attr_t attr;
30878 status = pthread_attr_init(&attr);
30879 if( status ) return status;
30881 #if HAVE_PTHREADS < 7
30882 status = pthread_attr_setdetachstate(&attr, &detach);
30883 if( status < 0 ) status = errno;
30885 status = pthread_attr_setdetachstate(&attr, detach);
30887 if( status ) return status;
30888 status = pthread_create( &t, &attr, task, NULL );
30889 #if HAVE_PTHREADS < 7
30890 if( status < 0 ) status = errno;
30892 if( status ) return status;
30894 /* Draft 4 pthreads */
30895 status = pthread_create( &t, pthread_attr_default, task, NULL );
30896 if( status ) return errno;
30898 /* give thread a chance to complete */
30899 /* it should remain joinable and hence detachable */
30902 status = pthread_detach( &t );
30903 if( status ) return errno;
30906 #ifdef HAVE_LINUX_THREADS
30907 pthread_kill_other_threads_np();
30916 rm -f conftest.$ac_objext conftest$ac_exeext
30917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30918 (eval $ac_link) 2>conftest.er1
30920 grep -v '^ *+' conftest.er1 >conftest.err
30922 cat conftest.err >&5
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); } &&
30925 { ac_try='test -z "$ac_c_werror_flag"
30926 || test ! -s conftest.err'
30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928 (eval $ac_try) 2>&5
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); }; } &&
30932 { ac_try='test -s conftest$ac_exeext'
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; }; then
30938 ol_cv_pthread_kthread=yes
30940 echo "$as_me: failed program was:" >&5
30941 sed 's/^/| /' conftest.$ac_ext >&5
30943 ol_cv_pthread_kthread=no
30945 rm -f conftest.err conftest.$ac_objext \
30946 conftest$ac_exeext conftest.$ac_ext
30948 cat >conftest.$ac_ext <<_ACEOF
30951 cat confdefs.h >>conftest.$ac_ext
30952 cat >>conftest.$ac_ext <<_ACEOF
30953 /* end confdefs.h. */
30955 /* pthread test headers */
30956 #include <pthread.h>
30957 #if HAVE_PTHREADS < 7
30961 #define NULL (void*)0
30964 static void *task(p)
30967 return (void *) (p == NULL);
30971 int main(argc, argv)
30976 /* pthread test function */
30977 #ifndef PTHREAD_CREATE_DETACHED
30978 #define PTHREAD_CREATE_DETACHED 1
30982 int detach = PTHREAD_CREATE_DETACHED;
30984 #if HAVE_PTHREADS > 4
30985 /* Final pthreads */
30986 pthread_attr_t attr;
30988 status = pthread_attr_init(&attr);
30989 if( status ) return status;
30991 #if HAVE_PTHREADS < 7
30992 status = pthread_attr_setdetachstate(&attr, &detach);
30993 if( status < 0 ) status = errno;
30995 status = pthread_attr_setdetachstate(&attr, detach);
30997 if( status ) return status;
30998 status = pthread_create( &t, &attr, task, NULL );
30999 #if HAVE_PTHREADS < 7
31000 if( status < 0 ) status = errno;
31002 if( status ) return status;
31004 /* Draft 4 pthreads */
31005 status = pthread_create( &t, pthread_attr_default, task, NULL );
31006 if( status ) return errno;
31008 /* give thread a chance to complete */
31009 /* it should remain joinable and hence detachable */
31012 status = pthread_detach( &t );
31013 if( status ) return errno;
31016 #ifdef HAVE_LINUX_THREADS
31017 pthread_kill_other_threads_np();
31025 rm -f conftest$ac_exeext
31026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31027 (eval $ac_link) 2>&5
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032 (eval $ac_try) 2>&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; }; then
31036 ol_cv_pthread_kthread=yes
31038 echo "$as_me: program exited with status $ac_status" >&5
31039 echo "$as_me: failed program was:" >&5
31040 sed 's/^/| /' conftest.$ac_ext >&5
31042 ( exit $ac_status )
31043 ol_cv_pthread_kthread=no
31045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31052 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
31053 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
31055 if test $ol_cv_pthread_kthread = yes ; then
31056 ol_link_pthreads="-kthread"
31057 ol_link_threads=posix
31061 # Pthread try link: -pthread (ol_cv_pthread_pthread)
31062 if test "$ol_link_threads" = no ; then
31064 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
31065 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
31066 if test "${ol_cv_pthread_pthread+set}" = set; then
31067 echo $ECHO_N "(cached) $ECHO_C" >&6
31072 LIBS="-pthread $LIBS"
31074 if test "$cross_compiling" = yes; then
31075 cat >conftest.$ac_ext <<_ACEOF
31078 cat confdefs.h >>conftest.$ac_ext
31079 cat >>conftest.$ac_ext <<_ACEOF
31080 /* end confdefs.h. */
31082 /* pthread test headers */
31083 #include <pthread.h>
31084 #if HAVE_PTHREADS < 7
31088 #define NULL (void*)0
31091 static void *task(p)
31094 return (void *) (p == NULL);
31101 /* pthread test function */
31102 #ifndef PTHREAD_CREATE_DETACHED
31103 #define PTHREAD_CREATE_DETACHED 1
31107 int detach = PTHREAD_CREATE_DETACHED;
31109 #if HAVE_PTHREADS > 4
31110 /* Final pthreads */
31111 pthread_attr_t attr;
31113 status = pthread_attr_init(&attr);
31114 if( status ) return status;
31116 #if HAVE_PTHREADS < 7
31117 status = pthread_attr_setdetachstate(&attr, &detach);
31118 if( status < 0 ) status = errno;
31120 status = pthread_attr_setdetachstate(&attr, detach);
31122 if( status ) return status;
31123 status = pthread_create( &t, &attr, task, NULL );
31124 #if HAVE_PTHREADS < 7
31125 if( status < 0 ) status = errno;
31127 if( status ) return status;
31129 /* Draft 4 pthreads */
31130 status = pthread_create( &t, pthread_attr_default, task, NULL );
31131 if( status ) return errno;
31133 /* give thread a chance to complete */
31134 /* it should remain joinable and hence detachable */
31137 status = pthread_detach( &t );
31138 if( status ) return errno;
31141 #ifdef HAVE_LINUX_THREADS
31142 pthread_kill_other_threads_np();
31151 rm -f conftest.$ac_objext conftest$ac_exeext
31152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31153 (eval $ac_link) 2>conftest.er1
31155 grep -v '^ *+' conftest.er1 >conftest.err
31157 cat conftest.err >&5
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); } &&
31160 { ac_try='test -z "$ac_c_werror_flag"
31161 || test ! -s conftest.err'
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; } &&
31167 { ac_try='test -s conftest$ac_exeext'
31168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31169 (eval $ac_try) 2>&5
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); }; }; then
31173 ol_cv_pthread_pthread=yes
31175 echo "$as_me: failed program was:" >&5
31176 sed 's/^/| /' conftest.$ac_ext >&5
31178 ol_cv_pthread_pthread=no
31180 rm -f conftest.err conftest.$ac_objext \
31181 conftest$ac_exeext conftest.$ac_ext
31183 cat >conftest.$ac_ext <<_ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h. */
31190 /* pthread test headers */
31191 #include <pthread.h>
31192 #if HAVE_PTHREADS < 7
31196 #define NULL (void*)0
31199 static void *task(p)
31202 return (void *) (p == NULL);
31206 int main(argc, argv)
31211 /* pthread test function */
31212 #ifndef PTHREAD_CREATE_DETACHED
31213 #define PTHREAD_CREATE_DETACHED 1
31217 int detach = PTHREAD_CREATE_DETACHED;
31219 #if HAVE_PTHREADS > 4
31220 /* Final pthreads */
31221 pthread_attr_t attr;
31223 status = pthread_attr_init(&attr);
31224 if( status ) return status;
31226 #if HAVE_PTHREADS < 7
31227 status = pthread_attr_setdetachstate(&attr, &detach);
31228 if( status < 0 ) status = errno;
31230 status = pthread_attr_setdetachstate(&attr, detach);
31232 if( status ) return status;
31233 status = pthread_create( &t, &attr, task, NULL );
31234 #if HAVE_PTHREADS < 7
31235 if( status < 0 ) status = errno;
31237 if( status ) return status;
31239 /* Draft 4 pthreads */
31240 status = pthread_create( &t, pthread_attr_default, task, NULL );
31241 if( status ) return errno;
31243 /* give thread a chance to complete */
31244 /* it should remain joinable and hence detachable */
31247 status = pthread_detach( &t );
31248 if( status ) return errno;
31251 #ifdef HAVE_LINUX_THREADS
31252 pthread_kill_other_threads_np();
31260 rm -f conftest$ac_exeext
31261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31262 (eval $ac_link) 2>&5
31264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267 (eval $ac_try) 2>&5
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); }; }; then
31271 ol_cv_pthread_pthread=yes
31273 echo "$as_me: program exited with status $ac_status" >&5
31274 echo "$as_me: failed program was:" >&5
31275 sed 's/^/| /' conftest.$ac_ext >&5
31277 ( exit $ac_status )
31278 ol_cv_pthread_pthread=no
31280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31287 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31288 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31290 if test $ol_cv_pthread_pthread = yes ; then
31291 ol_link_pthreads="-pthread"
31292 ol_link_threads=posix
31296 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31297 if test "$ol_link_threads" = no ; then
31299 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31300 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31301 if test "${ol_cv_pthread_pthreads+set}" = set; then
31302 echo $ECHO_N "(cached) $ECHO_C" >&6
31307 LIBS="-pthreads $LIBS"
31309 if test "$cross_compiling" = yes; then
31310 cat >conftest.$ac_ext <<_ACEOF
31313 cat confdefs.h >>conftest.$ac_ext
31314 cat >>conftest.$ac_ext <<_ACEOF
31315 /* end confdefs.h. */
31317 /* pthread test headers */
31318 #include <pthread.h>
31319 #if HAVE_PTHREADS < 7
31323 #define NULL (void*)0
31326 static void *task(p)
31329 return (void *) (p == NULL);
31336 /* pthread test function */
31337 #ifndef PTHREAD_CREATE_DETACHED
31338 #define PTHREAD_CREATE_DETACHED 1
31342 int detach = PTHREAD_CREATE_DETACHED;
31344 #if HAVE_PTHREADS > 4
31345 /* Final pthreads */
31346 pthread_attr_t attr;
31348 status = pthread_attr_init(&attr);
31349 if( status ) return status;
31351 #if HAVE_PTHREADS < 7
31352 status = pthread_attr_setdetachstate(&attr, &detach);
31353 if( status < 0 ) status = errno;
31355 status = pthread_attr_setdetachstate(&attr, detach);
31357 if( status ) return status;
31358 status = pthread_create( &t, &attr, task, NULL );
31359 #if HAVE_PTHREADS < 7
31360 if( status < 0 ) status = errno;
31362 if( status ) return status;
31364 /* Draft 4 pthreads */
31365 status = pthread_create( &t, pthread_attr_default, task, NULL );
31366 if( status ) return errno;
31368 /* give thread a chance to complete */
31369 /* it should remain joinable and hence detachable */
31372 status = pthread_detach( &t );
31373 if( status ) return errno;
31376 #ifdef HAVE_LINUX_THREADS
31377 pthread_kill_other_threads_np();
31386 rm -f conftest.$ac_objext conftest$ac_exeext
31387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31388 (eval $ac_link) 2>conftest.er1
31390 grep -v '^ *+' conftest.er1 >conftest.err
31392 cat conftest.err >&5
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); } &&
31395 { ac_try='test -z "$ac_c_werror_flag"
31396 || test ! -s conftest.err'
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; } &&
31402 { ac_try='test -s conftest$ac_exeext'
31403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31404 (eval $ac_try) 2>&5
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); }; }; then
31408 ol_cv_pthread_pthreads=yes
31410 echo "$as_me: failed program was:" >&5
31411 sed 's/^/| /' conftest.$ac_ext >&5
31413 ol_cv_pthread_pthreads=no
31415 rm -f conftest.err conftest.$ac_objext \
31416 conftest$ac_exeext conftest.$ac_ext
31418 cat >conftest.$ac_ext <<_ACEOF
31421 cat confdefs.h >>conftest.$ac_ext
31422 cat >>conftest.$ac_ext <<_ACEOF
31423 /* end confdefs.h. */
31425 /* pthread test headers */
31426 #include <pthread.h>
31427 #if HAVE_PTHREADS < 7
31431 #define NULL (void*)0
31434 static void *task(p)
31437 return (void *) (p == NULL);
31441 int main(argc, argv)
31446 /* pthread test function */
31447 #ifndef PTHREAD_CREATE_DETACHED
31448 #define PTHREAD_CREATE_DETACHED 1
31452 int detach = PTHREAD_CREATE_DETACHED;
31454 #if HAVE_PTHREADS > 4
31455 /* Final pthreads */
31456 pthread_attr_t attr;
31458 status = pthread_attr_init(&attr);
31459 if( status ) return status;
31461 #if HAVE_PTHREADS < 7
31462 status = pthread_attr_setdetachstate(&attr, &detach);
31463 if( status < 0 ) status = errno;
31465 status = pthread_attr_setdetachstate(&attr, detach);
31467 if( status ) return status;
31468 status = pthread_create( &t, &attr, task, NULL );
31469 #if HAVE_PTHREADS < 7
31470 if( status < 0 ) status = errno;
31472 if( status ) return status;
31474 /* Draft 4 pthreads */
31475 status = pthread_create( &t, pthread_attr_default, task, NULL );
31476 if( status ) return errno;
31478 /* give thread a chance to complete */
31479 /* it should remain joinable and hence detachable */
31482 status = pthread_detach( &t );
31483 if( status ) return errno;
31486 #ifdef HAVE_LINUX_THREADS
31487 pthread_kill_other_threads_np();
31495 rm -f conftest$ac_exeext
31496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31497 (eval $ac_link) 2>&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31502 (eval $ac_try) 2>&5
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; }; then
31506 ol_cv_pthread_pthreads=yes
31508 echo "$as_me: program exited with status $ac_status" >&5
31509 echo "$as_me: failed program was:" >&5
31510 sed 's/^/| /' conftest.$ac_ext >&5
31512 ( exit $ac_status )
31513 ol_cv_pthread_pthreads=no
31515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31522 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31523 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31525 if test $ol_cv_pthread_pthreads = yes ; then
31526 ol_link_pthreads="-pthreads"
31527 ol_link_threads=posix
31531 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31532 if test "$ol_link_threads" = no ; then
31534 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31535 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31536 if test "${ol_cv_pthread_mthreads+set}" = set; then
31537 echo $ECHO_N "(cached) $ECHO_C" >&6
31542 LIBS="-mthreads $LIBS"
31544 if test "$cross_compiling" = yes; then
31545 cat >conftest.$ac_ext <<_ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h. */
31552 /* pthread test headers */
31553 #include <pthread.h>
31554 #if HAVE_PTHREADS < 7
31558 #define NULL (void*)0
31561 static void *task(p)
31564 return (void *) (p == NULL);
31571 /* pthread test function */
31572 #ifndef PTHREAD_CREATE_DETACHED
31573 #define PTHREAD_CREATE_DETACHED 1
31577 int detach = PTHREAD_CREATE_DETACHED;
31579 #if HAVE_PTHREADS > 4
31580 /* Final pthreads */
31581 pthread_attr_t attr;
31583 status = pthread_attr_init(&attr);
31584 if( status ) return status;
31586 #if HAVE_PTHREADS < 7
31587 status = pthread_attr_setdetachstate(&attr, &detach);
31588 if( status < 0 ) status = errno;
31590 status = pthread_attr_setdetachstate(&attr, detach);
31592 if( status ) return status;
31593 status = pthread_create( &t, &attr, task, NULL );
31594 #if HAVE_PTHREADS < 7
31595 if( status < 0 ) status = errno;
31597 if( status ) return status;
31599 /* Draft 4 pthreads */
31600 status = pthread_create( &t, pthread_attr_default, task, NULL );
31601 if( status ) return errno;
31603 /* give thread a chance to complete */
31604 /* it should remain joinable and hence detachable */
31607 status = pthread_detach( &t );
31608 if( status ) return errno;
31611 #ifdef HAVE_LINUX_THREADS
31612 pthread_kill_other_threads_np();
31621 rm -f conftest.$ac_objext conftest$ac_exeext
31622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31623 (eval $ac_link) 2>conftest.er1
31625 grep -v '^ *+' conftest.er1 >conftest.err
31627 cat conftest.err >&5
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); } &&
31630 { ac_try='test -z "$ac_c_werror_flag"
31631 || test ! -s conftest.err'
31632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31633 (eval $ac_try) 2>&5
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; } &&
31637 { ac_try='test -s conftest$ac_exeext'
31638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31639 (eval $ac_try) 2>&5
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); }; }; then
31643 ol_cv_pthread_mthreads=yes
31645 echo "$as_me: failed program was:" >&5
31646 sed 's/^/| /' conftest.$ac_ext >&5
31648 ol_cv_pthread_mthreads=no
31650 rm -f conftest.err conftest.$ac_objext \
31651 conftest$ac_exeext conftest.$ac_ext
31653 cat >conftest.$ac_ext <<_ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h. */
31660 /* pthread test headers */
31661 #include <pthread.h>
31662 #if HAVE_PTHREADS < 7
31666 #define NULL (void*)0
31669 static void *task(p)
31672 return (void *) (p == NULL);
31676 int main(argc, argv)
31681 /* pthread test function */
31682 #ifndef PTHREAD_CREATE_DETACHED
31683 #define PTHREAD_CREATE_DETACHED 1
31687 int detach = PTHREAD_CREATE_DETACHED;
31689 #if HAVE_PTHREADS > 4
31690 /* Final pthreads */
31691 pthread_attr_t attr;
31693 status = pthread_attr_init(&attr);
31694 if( status ) return status;
31696 #if HAVE_PTHREADS < 7
31697 status = pthread_attr_setdetachstate(&attr, &detach);
31698 if( status < 0 ) status = errno;
31700 status = pthread_attr_setdetachstate(&attr, detach);
31702 if( status ) return status;
31703 status = pthread_create( &t, &attr, task, NULL );
31704 #if HAVE_PTHREADS < 7
31705 if( status < 0 ) status = errno;
31707 if( status ) return status;
31709 /* Draft 4 pthreads */
31710 status = pthread_create( &t, pthread_attr_default, task, NULL );
31711 if( status ) return errno;
31713 /* give thread a chance to complete */
31714 /* it should remain joinable and hence detachable */
31717 status = pthread_detach( &t );
31718 if( status ) return errno;
31721 #ifdef HAVE_LINUX_THREADS
31722 pthread_kill_other_threads_np();
31730 rm -f conftest$ac_exeext
31731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31732 (eval $ac_link) 2>&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737 (eval $ac_try) 2>&5
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); }; }; then
31741 ol_cv_pthread_mthreads=yes
31743 echo "$as_me: program exited with status $ac_status" >&5
31744 echo "$as_me: failed program was:" >&5
31745 sed 's/^/| /' conftest.$ac_ext >&5
31747 ( exit $ac_status )
31748 ol_cv_pthread_mthreads=no
31750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31757 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31758 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31760 if test $ol_cv_pthread_mthreads = yes ; then
31761 ol_link_pthreads="-mthreads"
31762 ol_link_threads=posix
31766 # Pthread try link: -thread (ol_cv_pthread_thread)
31767 if test "$ol_link_threads" = no ; then
31769 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31770 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31771 if test "${ol_cv_pthread_thread+set}" = set; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31777 LIBS="-thread $LIBS"
31779 if test "$cross_compiling" = yes; then
31780 cat >conftest.$ac_ext <<_ACEOF
31783 cat confdefs.h >>conftest.$ac_ext
31784 cat >>conftest.$ac_ext <<_ACEOF
31785 /* end confdefs.h. */
31787 /* pthread test headers */
31788 #include <pthread.h>
31789 #if HAVE_PTHREADS < 7
31793 #define NULL (void*)0
31796 static void *task(p)
31799 return (void *) (p == NULL);
31806 /* pthread test function */
31807 #ifndef PTHREAD_CREATE_DETACHED
31808 #define PTHREAD_CREATE_DETACHED 1
31812 int detach = PTHREAD_CREATE_DETACHED;
31814 #if HAVE_PTHREADS > 4
31815 /* Final pthreads */
31816 pthread_attr_t attr;
31818 status = pthread_attr_init(&attr);
31819 if( status ) return status;
31821 #if HAVE_PTHREADS < 7
31822 status = pthread_attr_setdetachstate(&attr, &detach);
31823 if( status < 0 ) status = errno;
31825 status = pthread_attr_setdetachstate(&attr, detach);
31827 if( status ) return status;
31828 status = pthread_create( &t, &attr, task, NULL );
31829 #if HAVE_PTHREADS < 7
31830 if( status < 0 ) status = errno;
31832 if( status ) return status;
31834 /* Draft 4 pthreads */
31835 status = pthread_create( &t, pthread_attr_default, task, NULL );
31836 if( status ) return errno;
31838 /* give thread a chance to complete */
31839 /* it should remain joinable and hence detachable */
31842 status = pthread_detach( &t );
31843 if( status ) return errno;
31846 #ifdef HAVE_LINUX_THREADS
31847 pthread_kill_other_threads_np();
31856 rm -f conftest.$ac_objext conftest$ac_exeext
31857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31858 (eval $ac_link) 2>conftest.er1
31860 grep -v '^ *+' conftest.er1 >conftest.err
31862 cat conftest.err >&5
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); } &&
31865 { ac_try='test -z "$ac_c_werror_flag"
31866 || test ! -s conftest.err'
31867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868 (eval $ac_try) 2>&5
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; } &&
31872 { ac_try='test -s conftest$ac_exeext'
31873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31874 (eval $ac_try) 2>&5
31876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877 (exit $ac_status); }; }; then
31878 ol_cv_pthread_thread=yes
31880 echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31883 ol_cv_pthread_thread=no
31885 rm -f conftest.err conftest.$ac_objext \
31886 conftest$ac_exeext conftest.$ac_ext
31888 cat >conftest.$ac_ext <<_ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h. */
31895 /* pthread test headers */
31896 #include <pthread.h>
31897 #if HAVE_PTHREADS < 7
31901 #define NULL (void*)0
31904 static void *task(p)
31907 return (void *) (p == NULL);
31911 int main(argc, argv)
31916 /* pthread test function */
31917 #ifndef PTHREAD_CREATE_DETACHED
31918 #define PTHREAD_CREATE_DETACHED 1
31922 int detach = PTHREAD_CREATE_DETACHED;
31924 #if HAVE_PTHREADS > 4
31925 /* Final pthreads */
31926 pthread_attr_t attr;
31928 status = pthread_attr_init(&attr);
31929 if( status ) return status;
31931 #if HAVE_PTHREADS < 7
31932 status = pthread_attr_setdetachstate(&attr, &detach);
31933 if( status < 0 ) status = errno;
31935 status = pthread_attr_setdetachstate(&attr, detach);
31937 if( status ) return status;
31938 status = pthread_create( &t, &attr, task, NULL );
31939 #if HAVE_PTHREADS < 7
31940 if( status < 0 ) status = errno;
31942 if( status ) return status;
31944 /* Draft 4 pthreads */
31945 status = pthread_create( &t, pthread_attr_default, task, NULL );
31946 if( status ) return errno;
31948 /* give thread a chance to complete */
31949 /* it should remain joinable and hence detachable */
31952 status = pthread_detach( &t );
31953 if( status ) return errno;
31956 #ifdef HAVE_LINUX_THREADS
31957 pthread_kill_other_threads_np();
31965 rm -f conftest$ac_exeext
31966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31967 (eval $ac_link) 2>&5
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31972 (eval $ac_try) 2>&5
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); }; }; then
31976 ol_cv_pthread_thread=yes
31978 echo "$as_me: program exited with status $ac_status" >&5
31979 echo "$as_me: failed program was:" >&5
31980 sed 's/^/| /' conftest.$ac_ext >&5
31982 ( exit $ac_status )
31983 ol_cv_pthread_thread=no
31985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31992 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31993 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31995 if test $ol_cv_pthread_thread = yes ; then
31996 ol_link_pthreads="-thread"
31997 ol_link_threads=posix
32002 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
32003 if test "$ol_link_threads" = no ; then
32004 # try -lpthread -lmach -lexc -lc_r
32005 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
32006 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
32007 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
32008 echo $ECHO_N "(cached) $ECHO_C" >&6
32013 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
32015 if test "$cross_compiling" = yes; then
32016 cat >conftest.$ac_ext <<_ACEOF
32019 cat confdefs.h >>conftest.$ac_ext
32020 cat >>conftest.$ac_ext <<_ACEOF
32021 /* end confdefs.h. */
32023 /* pthread test headers */
32024 #include <pthread.h>
32025 #if HAVE_PTHREADS < 7
32029 #define NULL (void*)0
32032 static void *task(p)
32035 return (void *) (p == NULL);
32042 /* pthread test function */
32043 #ifndef PTHREAD_CREATE_DETACHED
32044 #define PTHREAD_CREATE_DETACHED 1
32048 int detach = PTHREAD_CREATE_DETACHED;
32050 #if HAVE_PTHREADS > 4
32051 /* Final pthreads */
32052 pthread_attr_t attr;
32054 status = pthread_attr_init(&attr);
32055 if( status ) return status;
32057 #if HAVE_PTHREADS < 7
32058 status = pthread_attr_setdetachstate(&attr, &detach);
32059 if( status < 0 ) status = errno;
32061 status = pthread_attr_setdetachstate(&attr, detach);
32063 if( status ) return status;
32064 status = pthread_create( &t, &attr, task, NULL );
32065 #if HAVE_PTHREADS < 7
32066 if( status < 0 ) status = errno;
32068 if( status ) return status;
32070 /* Draft 4 pthreads */
32071 status = pthread_create( &t, pthread_attr_default, task, NULL );
32072 if( status ) return errno;
32074 /* give thread a chance to complete */
32075 /* it should remain joinable and hence detachable */
32078 status = pthread_detach( &t );
32079 if( status ) return errno;
32082 #ifdef HAVE_LINUX_THREADS
32083 pthread_kill_other_threads_np();
32092 rm -f conftest.$ac_objext conftest$ac_exeext
32093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32094 (eval $ac_link) 2>conftest.er1
32096 grep -v '^ *+' conftest.er1 >conftest.err
32098 cat conftest.err >&5
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); } &&
32101 { ac_try='test -z "$ac_c_werror_flag"
32102 || test ! -s conftest.err'
32103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104 (eval $ac_try) 2>&5
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); }; } &&
32108 { ac_try='test -s conftest$ac_exeext'
32109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32110 (eval $ac_try) 2>&5
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); }; }; then
32114 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32116 echo "$as_me: failed program was:" >&5
32117 sed 's/^/| /' conftest.$ac_ext >&5
32119 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32121 rm -f conftest.err conftest.$ac_objext \
32122 conftest$ac_exeext conftest.$ac_ext
32124 cat >conftest.$ac_ext <<_ACEOF
32127 cat confdefs.h >>conftest.$ac_ext
32128 cat >>conftest.$ac_ext <<_ACEOF
32129 /* end confdefs.h. */
32131 /* pthread test headers */
32132 #include <pthread.h>
32133 #if HAVE_PTHREADS < 7
32137 #define NULL (void*)0
32140 static void *task(p)
32143 return (void *) (p == NULL);
32147 int main(argc, argv)
32152 /* pthread test function */
32153 #ifndef PTHREAD_CREATE_DETACHED
32154 #define PTHREAD_CREATE_DETACHED 1
32158 int detach = PTHREAD_CREATE_DETACHED;
32160 #if HAVE_PTHREADS > 4
32161 /* Final pthreads */
32162 pthread_attr_t attr;
32164 status = pthread_attr_init(&attr);
32165 if( status ) return status;
32167 #if HAVE_PTHREADS < 7
32168 status = pthread_attr_setdetachstate(&attr, &detach);
32169 if( status < 0 ) status = errno;
32171 status = pthread_attr_setdetachstate(&attr, detach);
32173 if( status ) return status;
32174 status = pthread_create( &t, &attr, task, NULL );
32175 #if HAVE_PTHREADS < 7
32176 if( status < 0 ) status = errno;
32178 if( status ) return status;
32180 /* Draft 4 pthreads */
32181 status = pthread_create( &t, pthread_attr_default, task, NULL );
32182 if( status ) return errno;
32184 /* give thread a chance to complete */
32185 /* it should remain joinable and hence detachable */
32188 status = pthread_detach( &t );
32189 if( status ) return errno;
32192 #ifdef HAVE_LINUX_THREADS
32193 pthread_kill_other_threads_np();
32201 rm -f conftest$ac_exeext
32202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32203 (eval $ac_link) 2>&5
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208 (eval $ac_try) 2>&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; }; then
32212 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32214 echo "$as_me: program exited with status $ac_status" >&5
32215 echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32218 ( exit $ac_status )
32219 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32228 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32229 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32231 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32232 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32233 ol_link_threads=posix
32237 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32238 if test "$ol_link_threads" = no ; then
32239 # try -lpthread -lmach -lexc
32240 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32241 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32242 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32243 echo $ECHO_N "(cached) $ECHO_C" >&6
32248 LIBS="-lpthread -lmach -lexc $LIBS"
32250 if test "$cross_compiling" = yes; then
32251 cat >conftest.$ac_ext <<_ACEOF
32254 cat confdefs.h >>conftest.$ac_ext
32255 cat >>conftest.$ac_ext <<_ACEOF
32256 /* end confdefs.h. */
32258 /* pthread test headers */
32259 #include <pthread.h>
32260 #if HAVE_PTHREADS < 7
32264 #define NULL (void*)0
32267 static void *task(p)
32270 return (void *) (p == NULL);
32277 /* pthread test function */
32278 #ifndef PTHREAD_CREATE_DETACHED
32279 #define PTHREAD_CREATE_DETACHED 1
32283 int detach = PTHREAD_CREATE_DETACHED;
32285 #if HAVE_PTHREADS > 4
32286 /* Final pthreads */
32287 pthread_attr_t attr;
32289 status = pthread_attr_init(&attr);
32290 if( status ) return status;
32292 #if HAVE_PTHREADS < 7
32293 status = pthread_attr_setdetachstate(&attr, &detach);
32294 if( status < 0 ) status = errno;
32296 status = pthread_attr_setdetachstate(&attr, detach);
32298 if( status ) return status;
32299 status = pthread_create( &t, &attr, task, NULL );
32300 #if HAVE_PTHREADS < 7
32301 if( status < 0 ) status = errno;
32303 if( status ) return status;
32305 /* Draft 4 pthreads */
32306 status = pthread_create( &t, pthread_attr_default, task, NULL );
32307 if( status ) return errno;
32309 /* give thread a chance to complete */
32310 /* it should remain joinable and hence detachable */
32313 status = pthread_detach( &t );
32314 if( status ) return errno;
32317 #ifdef HAVE_LINUX_THREADS
32318 pthread_kill_other_threads_np();
32327 rm -f conftest.$ac_objext conftest$ac_exeext
32328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32329 (eval $ac_link) 2>conftest.er1
32331 grep -v '^ *+' conftest.er1 >conftest.err
32333 cat conftest.err >&5
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); } &&
32336 { ac_try='test -z "$ac_c_werror_flag"
32337 || test ! -s conftest.err'
32338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32339 (eval $ac_try) 2>&5
32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342 (exit $ac_status); }; } &&
32343 { ac_try='test -s conftest$ac_exeext'
32344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32345 (eval $ac_try) 2>&5
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); }; }; then
32349 ol_cv_pthread_lpthread_lmach_lexc=yes
32351 echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.$ac_ext >&5
32354 ol_cv_pthread_lpthread_lmach_lexc=no
32356 rm -f conftest.err conftest.$ac_objext \
32357 conftest$ac_exeext conftest.$ac_ext
32359 cat >conftest.$ac_ext <<_ACEOF
32362 cat confdefs.h >>conftest.$ac_ext
32363 cat >>conftest.$ac_ext <<_ACEOF
32364 /* end confdefs.h. */
32366 /* pthread test headers */
32367 #include <pthread.h>
32368 #if HAVE_PTHREADS < 7
32372 #define NULL (void*)0
32375 static void *task(p)
32378 return (void *) (p == NULL);
32382 int main(argc, argv)
32387 /* pthread test function */
32388 #ifndef PTHREAD_CREATE_DETACHED
32389 #define PTHREAD_CREATE_DETACHED 1
32393 int detach = PTHREAD_CREATE_DETACHED;
32395 #if HAVE_PTHREADS > 4
32396 /* Final pthreads */
32397 pthread_attr_t attr;
32399 status = pthread_attr_init(&attr);
32400 if( status ) return status;
32402 #if HAVE_PTHREADS < 7
32403 status = pthread_attr_setdetachstate(&attr, &detach);
32404 if( status < 0 ) status = errno;
32406 status = pthread_attr_setdetachstate(&attr, detach);
32408 if( status ) return status;
32409 status = pthread_create( &t, &attr, task, NULL );
32410 #if HAVE_PTHREADS < 7
32411 if( status < 0 ) status = errno;
32413 if( status ) return status;
32415 /* Draft 4 pthreads */
32416 status = pthread_create( &t, pthread_attr_default, task, NULL );
32417 if( status ) return errno;
32419 /* give thread a chance to complete */
32420 /* it should remain joinable and hence detachable */
32423 status = pthread_detach( &t );
32424 if( status ) return errno;
32427 #ifdef HAVE_LINUX_THREADS
32428 pthread_kill_other_threads_np();
32436 rm -f conftest$ac_exeext
32437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32438 (eval $ac_link) 2>&5
32440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32443 (eval $ac_try) 2>&5
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; }; then
32447 ol_cv_pthread_lpthread_lmach_lexc=yes
32449 echo "$as_me: program exited with status $ac_status" >&5
32450 echo "$as_me: failed program was:" >&5
32451 sed 's/^/| /' conftest.$ac_ext >&5
32453 ( exit $ac_status )
32454 ol_cv_pthread_lpthread_lmach_lexc=no
32456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32463 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32464 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32466 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32467 ol_link_pthreads="-lpthread -lmach -lexc"
32468 ol_link_threads=posix
32473 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32474 if test "$ol_link_threads" = no ; then
32475 # try -lpthread -Wl,-woff,85
32476 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32477 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32478 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32479 echo $ECHO_N "(cached) $ECHO_C" >&6
32484 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32486 if test "$cross_compiling" = yes; then
32487 cat >conftest.$ac_ext <<_ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h. */
32494 /* pthread test headers */
32495 #include <pthread.h>
32496 #if HAVE_PTHREADS < 7
32500 #define NULL (void*)0
32503 static void *task(p)
32506 return (void *) (p == NULL);
32513 /* pthread test function */
32514 #ifndef PTHREAD_CREATE_DETACHED
32515 #define PTHREAD_CREATE_DETACHED 1
32519 int detach = PTHREAD_CREATE_DETACHED;
32521 #if HAVE_PTHREADS > 4
32522 /* Final pthreads */
32523 pthread_attr_t attr;
32525 status = pthread_attr_init(&attr);
32526 if( status ) return status;
32528 #if HAVE_PTHREADS < 7
32529 status = pthread_attr_setdetachstate(&attr, &detach);
32530 if( status < 0 ) status = errno;
32532 status = pthread_attr_setdetachstate(&attr, detach);
32534 if( status ) return status;
32535 status = pthread_create( &t, &attr, task, NULL );
32536 #if HAVE_PTHREADS < 7
32537 if( status < 0 ) status = errno;
32539 if( status ) return status;
32541 /* Draft 4 pthreads */
32542 status = pthread_create( &t, pthread_attr_default, task, NULL );
32543 if( status ) return errno;
32545 /* give thread a chance to complete */
32546 /* it should remain joinable and hence detachable */
32549 status = pthread_detach( &t );
32550 if( status ) return errno;
32553 #ifdef HAVE_LINUX_THREADS
32554 pthread_kill_other_threads_np();
32563 rm -f conftest.$ac_objext conftest$ac_exeext
32564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32565 (eval $ac_link) 2>conftest.er1
32567 grep -v '^ *+' conftest.er1 >conftest.err
32569 cat conftest.err >&5
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); } &&
32572 { ac_try='test -z "$ac_c_werror_flag"
32573 || test ! -s conftest.err'
32574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32575 (eval $ac_try) 2>&5
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); }; } &&
32579 { ac_try='test -s conftest$ac_exeext'
32580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581 (eval $ac_try) 2>&5
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); }; }; then
32585 ol_cv_pthread_lib_lpthread_woff=yes
32587 echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32590 ol_cv_pthread_lib_lpthread_woff=no
32592 rm -f conftest.err conftest.$ac_objext \
32593 conftest$ac_exeext conftest.$ac_ext
32595 cat >conftest.$ac_ext <<_ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h. */
32602 /* pthread test headers */
32603 #include <pthread.h>
32604 #if HAVE_PTHREADS < 7
32608 #define NULL (void*)0
32611 static void *task(p)
32614 return (void *) (p == NULL);
32618 int main(argc, argv)
32623 /* pthread test function */
32624 #ifndef PTHREAD_CREATE_DETACHED
32625 #define PTHREAD_CREATE_DETACHED 1
32629 int detach = PTHREAD_CREATE_DETACHED;
32631 #if HAVE_PTHREADS > 4
32632 /* Final pthreads */
32633 pthread_attr_t attr;
32635 status = pthread_attr_init(&attr);
32636 if( status ) return status;
32638 #if HAVE_PTHREADS < 7
32639 status = pthread_attr_setdetachstate(&attr, &detach);
32640 if( status < 0 ) status = errno;
32642 status = pthread_attr_setdetachstate(&attr, detach);
32644 if( status ) return status;
32645 status = pthread_create( &t, &attr, task, NULL );
32646 #if HAVE_PTHREADS < 7
32647 if( status < 0 ) status = errno;
32649 if( status ) return status;
32651 /* Draft 4 pthreads */
32652 status = pthread_create( &t, pthread_attr_default, task, NULL );
32653 if( status ) return errno;
32655 /* give thread a chance to complete */
32656 /* it should remain joinable and hence detachable */
32659 status = pthread_detach( &t );
32660 if( status ) return errno;
32663 #ifdef HAVE_LINUX_THREADS
32664 pthread_kill_other_threads_np();
32672 rm -f conftest$ac_exeext
32673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32674 (eval $ac_link) 2>&5
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32679 (eval $ac_try) 2>&5
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); }; }; then
32683 ol_cv_pthread_lib_lpthread_woff=yes
32685 echo "$as_me: program exited with status $ac_status" >&5
32686 echo "$as_me: failed program was:" >&5
32687 sed 's/^/| /' conftest.$ac_ext >&5
32689 ( exit $ac_status )
32690 ol_cv_pthread_lib_lpthread_woff=no
32692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32699 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32700 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32702 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32703 ol_link_pthreads="-lpthread -Wl,-woff,85"
32704 ol_link_threads=posix
32709 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32710 if test "$ol_link_threads" = no ; then
32712 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32713 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32714 if test "${ol_cv_pthread_lpthread+set}" = set; then
32715 echo $ECHO_N "(cached) $ECHO_C" >&6
32720 LIBS="-lpthread $LIBS"
32722 if test "$cross_compiling" = yes; then
32723 cat >conftest.$ac_ext <<_ACEOF
32726 cat confdefs.h >>conftest.$ac_ext
32727 cat >>conftest.$ac_ext <<_ACEOF
32728 /* end confdefs.h. */
32730 /* pthread test headers */
32731 #include <pthread.h>
32732 #if HAVE_PTHREADS < 7
32736 #define NULL (void*)0
32739 static void *task(p)
32742 return (void *) (p == NULL);
32749 /* pthread test function */
32750 #ifndef PTHREAD_CREATE_DETACHED
32751 #define PTHREAD_CREATE_DETACHED 1
32755 int detach = PTHREAD_CREATE_DETACHED;
32757 #if HAVE_PTHREADS > 4
32758 /* Final pthreads */
32759 pthread_attr_t attr;
32761 status = pthread_attr_init(&attr);
32762 if( status ) return status;
32764 #if HAVE_PTHREADS < 7
32765 status = pthread_attr_setdetachstate(&attr, &detach);
32766 if( status < 0 ) status = errno;
32768 status = pthread_attr_setdetachstate(&attr, detach);
32770 if( status ) return status;
32771 status = pthread_create( &t, &attr, task, NULL );
32772 #if HAVE_PTHREADS < 7
32773 if( status < 0 ) status = errno;
32775 if( status ) return status;
32777 /* Draft 4 pthreads */
32778 status = pthread_create( &t, pthread_attr_default, task, NULL );
32779 if( status ) return errno;
32781 /* give thread a chance to complete */
32782 /* it should remain joinable and hence detachable */
32785 status = pthread_detach( &t );
32786 if( status ) return errno;
32789 #ifdef HAVE_LINUX_THREADS
32790 pthread_kill_other_threads_np();
32799 rm -f conftest.$ac_objext conftest$ac_exeext
32800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32801 (eval $ac_link) 2>conftest.er1
32803 grep -v '^ *+' conftest.er1 >conftest.err
32805 cat conftest.err >&5
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); } &&
32808 { ac_try='test -z "$ac_c_werror_flag"
32809 || test ! -s conftest.err'
32810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32811 (eval $ac_try) 2>&5
32813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814 (exit $ac_status); }; } &&
32815 { ac_try='test -s conftest$ac_exeext'
32816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32817 (eval $ac_try) 2>&5
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); }; }; then
32821 ol_cv_pthread_lpthread=yes
32823 echo "$as_me: failed program was:" >&5
32824 sed 's/^/| /' conftest.$ac_ext >&5
32826 ol_cv_pthread_lpthread=no
32828 rm -f conftest.err conftest.$ac_objext \
32829 conftest$ac_exeext conftest.$ac_ext
32831 cat >conftest.$ac_ext <<_ACEOF
32834 cat confdefs.h >>conftest.$ac_ext
32835 cat >>conftest.$ac_ext <<_ACEOF
32836 /* end confdefs.h. */
32838 /* pthread test headers */
32839 #include <pthread.h>
32840 #if HAVE_PTHREADS < 7
32844 #define NULL (void*)0
32847 static void *task(p)
32850 return (void *) (p == NULL);
32854 int main(argc, argv)
32859 /* pthread test function */
32860 #ifndef PTHREAD_CREATE_DETACHED
32861 #define PTHREAD_CREATE_DETACHED 1
32865 int detach = PTHREAD_CREATE_DETACHED;
32867 #if HAVE_PTHREADS > 4
32868 /* Final pthreads */
32869 pthread_attr_t attr;
32871 status = pthread_attr_init(&attr);
32872 if( status ) return status;
32874 #if HAVE_PTHREADS < 7
32875 status = pthread_attr_setdetachstate(&attr, &detach);
32876 if( status < 0 ) status = errno;
32878 status = pthread_attr_setdetachstate(&attr, detach);
32880 if( status ) return status;
32881 status = pthread_create( &t, &attr, task, NULL );
32882 #if HAVE_PTHREADS < 7
32883 if( status < 0 ) status = errno;
32885 if( status ) return status;
32887 /* Draft 4 pthreads */
32888 status = pthread_create( &t, pthread_attr_default, task, NULL );
32889 if( status ) return errno;
32891 /* give thread a chance to complete */
32892 /* it should remain joinable and hence detachable */
32895 status = pthread_detach( &t );
32896 if( status ) return errno;
32899 #ifdef HAVE_LINUX_THREADS
32900 pthread_kill_other_threads_np();
32908 rm -f conftest$ac_exeext
32909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32910 (eval $ac_link) 2>&5
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32915 (eval $ac_try) 2>&5
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); }; }; then
32919 ol_cv_pthread_lpthread=yes
32921 echo "$as_me: program exited with status $ac_status" >&5
32922 echo "$as_me: failed program was:" >&5
32923 sed 's/^/| /' conftest.$ac_ext >&5
32925 ( exit $ac_status )
32926 ol_cv_pthread_lpthread=no
32928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32935 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32936 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32938 if test $ol_cv_pthread_lpthread = yes ; then
32939 ol_link_pthreads="-lpthread"
32940 ol_link_threads=posix
32944 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32945 if test "$ol_link_threads" = no ; then
32947 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32948 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32949 if test "${ol_cv_pthread_lc_r+set}" = set; then
32950 echo $ECHO_N "(cached) $ECHO_C" >&6
32957 if test "$cross_compiling" = yes; then
32958 cat >conftest.$ac_ext <<_ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h. */
32965 /* pthread test headers */
32966 #include <pthread.h>
32967 #if HAVE_PTHREADS < 7
32971 #define NULL (void*)0
32974 static void *task(p)
32977 return (void *) (p == NULL);
32984 /* pthread test function */
32985 #ifndef PTHREAD_CREATE_DETACHED
32986 #define PTHREAD_CREATE_DETACHED 1
32990 int detach = PTHREAD_CREATE_DETACHED;
32992 #if HAVE_PTHREADS > 4
32993 /* Final pthreads */
32994 pthread_attr_t attr;
32996 status = pthread_attr_init(&attr);
32997 if( status ) return status;
32999 #if HAVE_PTHREADS < 7
33000 status = pthread_attr_setdetachstate(&attr, &detach);
33001 if( status < 0 ) status = errno;
33003 status = pthread_attr_setdetachstate(&attr, detach);
33005 if( status ) return status;
33006 status = pthread_create( &t, &attr, task, NULL );
33007 #if HAVE_PTHREADS < 7
33008 if( status < 0 ) status = errno;
33010 if( status ) return status;
33012 /* Draft 4 pthreads */
33013 status = pthread_create( &t, pthread_attr_default, task, NULL );
33014 if( status ) return errno;
33016 /* give thread a chance to complete */
33017 /* it should remain joinable and hence detachable */
33020 status = pthread_detach( &t );
33021 if( status ) return errno;
33024 #ifdef HAVE_LINUX_THREADS
33025 pthread_kill_other_threads_np();
33034 rm -f conftest.$ac_objext conftest$ac_exeext
33035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33036 (eval $ac_link) 2>conftest.er1
33038 grep -v '^ *+' conftest.er1 >conftest.err
33040 cat conftest.err >&5
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); } &&
33043 { ac_try='test -z "$ac_c_werror_flag"
33044 || test ! -s conftest.err'
33045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33046 (eval $ac_try) 2>&5
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); }; } &&
33050 { ac_try='test -s conftest$ac_exeext'
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052 (eval $ac_try) 2>&5
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; }; then
33056 ol_cv_pthread_lc_r=yes
33058 echo "$as_me: failed program was:" >&5
33059 sed 's/^/| /' conftest.$ac_ext >&5
33061 ol_cv_pthread_lc_r=no
33063 rm -f conftest.err conftest.$ac_objext \
33064 conftest$ac_exeext conftest.$ac_ext
33066 cat >conftest.$ac_ext <<_ACEOF
33069 cat confdefs.h >>conftest.$ac_ext
33070 cat >>conftest.$ac_ext <<_ACEOF
33071 /* end confdefs.h. */
33073 /* pthread test headers */
33074 #include <pthread.h>
33075 #if HAVE_PTHREADS < 7
33079 #define NULL (void*)0
33082 static void *task(p)
33085 return (void *) (p == NULL);
33089 int main(argc, argv)
33094 /* pthread test function */
33095 #ifndef PTHREAD_CREATE_DETACHED
33096 #define PTHREAD_CREATE_DETACHED 1
33100 int detach = PTHREAD_CREATE_DETACHED;
33102 #if HAVE_PTHREADS > 4
33103 /* Final pthreads */
33104 pthread_attr_t attr;
33106 status = pthread_attr_init(&attr);
33107 if( status ) return status;
33109 #if HAVE_PTHREADS < 7
33110 status = pthread_attr_setdetachstate(&attr, &detach);
33111 if( status < 0 ) status = errno;
33113 status = pthread_attr_setdetachstate(&attr, detach);
33115 if( status ) return status;
33116 status = pthread_create( &t, &attr, task, NULL );
33117 #if HAVE_PTHREADS < 7
33118 if( status < 0 ) status = errno;
33120 if( status ) return status;
33122 /* Draft 4 pthreads */
33123 status = pthread_create( &t, pthread_attr_default, task, NULL );
33124 if( status ) return errno;
33126 /* give thread a chance to complete */
33127 /* it should remain joinable and hence detachable */
33130 status = pthread_detach( &t );
33131 if( status ) return errno;
33134 #ifdef HAVE_LINUX_THREADS
33135 pthread_kill_other_threads_np();
33143 rm -f conftest$ac_exeext
33144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33145 (eval $ac_link) 2>&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33150 (eval $ac_try) 2>&5
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); }; }; then
33154 ol_cv_pthread_lc_r=yes
33156 echo "$as_me: program exited with status $ac_status" >&5
33157 echo "$as_me: failed program was:" >&5
33158 sed 's/^/| /' conftest.$ac_ext >&5
33160 ( exit $ac_status )
33161 ol_cv_pthread_lc_r=no
33163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33170 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33171 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33173 if test $ol_cv_pthread_lc_r = yes ; then
33174 ol_link_pthreads="-lc_r"
33175 ol_link_threads=posix
33180 # Pthread try link: -threads (ol_cv_pthread_threads)
33181 if test "$ol_link_threads" = no ; then
33183 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33184 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33185 if test "${ol_cv_pthread_threads+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33191 LIBS="-threads $LIBS"
33193 if test "$cross_compiling" = yes; then
33194 cat >conftest.$ac_ext <<_ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h. */
33201 /* pthread test headers */
33202 #include <pthread.h>
33203 #if HAVE_PTHREADS < 7
33207 #define NULL (void*)0
33210 static void *task(p)
33213 return (void *) (p == NULL);
33220 /* pthread test function */
33221 #ifndef PTHREAD_CREATE_DETACHED
33222 #define PTHREAD_CREATE_DETACHED 1
33226 int detach = PTHREAD_CREATE_DETACHED;
33228 #if HAVE_PTHREADS > 4
33229 /* Final pthreads */
33230 pthread_attr_t attr;
33232 status = pthread_attr_init(&attr);
33233 if( status ) return status;
33235 #if HAVE_PTHREADS < 7
33236 status = pthread_attr_setdetachstate(&attr, &detach);
33237 if( status < 0 ) status = errno;
33239 status = pthread_attr_setdetachstate(&attr, detach);
33241 if( status ) return status;
33242 status = pthread_create( &t, &attr, task, NULL );
33243 #if HAVE_PTHREADS < 7
33244 if( status < 0 ) status = errno;
33246 if( status ) return status;
33248 /* Draft 4 pthreads */
33249 status = pthread_create( &t, pthread_attr_default, task, NULL );
33250 if( status ) return errno;
33252 /* give thread a chance to complete */
33253 /* it should remain joinable and hence detachable */
33256 status = pthread_detach( &t );
33257 if( status ) return errno;
33260 #ifdef HAVE_LINUX_THREADS
33261 pthread_kill_other_threads_np();
33270 rm -f conftest.$ac_objext conftest$ac_exeext
33271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33272 (eval $ac_link) 2>conftest.er1
33274 grep -v '^ *+' conftest.er1 >conftest.err
33276 cat conftest.err >&5
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); } &&
33279 { ac_try='test -z "$ac_c_werror_flag"
33280 || test ! -s conftest.err'
33281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33282 (eval $ac_try) 2>&5
33284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285 (exit $ac_status); }; } &&
33286 { ac_try='test -s conftest$ac_exeext'
33287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288 (eval $ac_try) 2>&5
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; }; then
33292 ol_cv_pthread_threads=yes
33294 echo "$as_me: failed program was:" >&5
33295 sed 's/^/| /' conftest.$ac_ext >&5
33297 ol_cv_pthread_threads=no
33299 rm -f conftest.err conftest.$ac_objext \
33300 conftest$ac_exeext conftest.$ac_ext
33302 cat >conftest.$ac_ext <<_ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h. */
33309 /* pthread test headers */
33310 #include <pthread.h>
33311 #if HAVE_PTHREADS < 7
33315 #define NULL (void*)0
33318 static void *task(p)
33321 return (void *) (p == NULL);
33325 int main(argc, argv)
33330 /* pthread test function */
33331 #ifndef PTHREAD_CREATE_DETACHED
33332 #define PTHREAD_CREATE_DETACHED 1
33336 int detach = PTHREAD_CREATE_DETACHED;
33338 #if HAVE_PTHREADS > 4
33339 /* Final pthreads */
33340 pthread_attr_t attr;
33342 status = pthread_attr_init(&attr);
33343 if( status ) return status;
33345 #if HAVE_PTHREADS < 7
33346 status = pthread_attr_setdetachstate(&attr, &detach);
33347 if( status < 0 ) status = errno;
33349 status = pthread_attr_setdetachstate(&attr, detach);
33351 if( status ) return status;
33352 status = pthread_create( &t, &attr, task, NULL );
33353 #if HAVE_PTHREADS < 7
33354 if( status < 0 ) status = errno;
33356 if( status ) return status;
33358 /* Draft 4 pthreads */
33359 status = pthread_create( &t, pthread_attr_default, task, NULL );
33360 if( status ) return errno;
33362 /* give thread a chance to complete */
33363 /* it should remain joinable and hence detachable */
33366 status = pthread_detach( &t );
33367 if( status ) return errno;
33370 #ifdef HAVE_LINUX_THREADS
33371 pthread_kill_other_threads_np();
33379 rm -f conftest$ac_exeext
33380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33381 (eval $ac_link) 2>&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33386 (eval $ac_try) 2>&5
33388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389 (exit $ac_status); }; }; then
33390 ol_cv_pthread_threads=yes
33392 echo "$as_me: program exited with status $ac_status" >&5
33393 echo "$as_me: failed program was:" >&5
33394 sed 's/^/| /' conftest.$ac_ext >&5
33396 ( exit $ac_status )
33397 ol_cv_pthread_threads=no
33399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33406 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33407 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33409 if test $ol_cv_pthread_threads = yes ; then
33410 ol_link_pthreads="-threads"
33411 ol_link_threads=posix
33416 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33417 if test "$ol_link_threads" = no ; then
33418 # try -lpthreads -lmach -lexc -lc_r
33419 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33420 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33421 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33422 echo $ECHO_N "(cached) $ECHO_C" >&6
33427 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33429 if test "$cross_compiling" = yes; then
33430 cat >conftest.$ac_ext <<_ACEOF
33433 cat confdefs.h >>conftest.$ac_ext
33434 cat >>conftest.$ac_ext <<_ACEOF
33435 /* end confdefs.h. */
33437 /* pthread test headers */
33438 #include <pthread.h>
33439 #if HAVE_PTHREADS < 7
33443 #define NULL (void*)0
33446 static void *task(p)
33449 return (void *) (p == NULL);
33456 /* pthread test function */
33457 #ifndef PTHREAD_CREATE_DETACHED
33458 #define PTHREAD_CREATE_DETACHED 1
33462 int detach = PTHREAD_CREATE_DETACHED;
33464 #if HAVE_PTHREADS > 4
33465 /* Final pthreads */
33466 pthread_attr_t attr;
33468 status = pthread_attr_init(&attr);
33469 if( status ) return status;
33471 #if HAVE_PTHREADS < 7
33472 status = pthread_attr_setdetachstate(&attr, &detach);
33473 if( status < 0 ) status = errno;
33475 status = pthread_attr_setdetachstate(&attr, detach);
33477 if( status ) return status;
33478 status = pthread_create( &t, &attr, task, NULL );
33479 #if HAVE_PTHREADS < 7
33480 if( status < 0 ) status = errno;
33482 if( status ) return status;
33484 /* Draft 4 pthreads */
33485 status = pthread_create( &t, pthread_attr_default, task, NULL );
33486 if( status ) return errno;
33488 /* give thread a chance to complete */
33489 /* it should remain joinable and hence detachable */
33492 status = pthread_detach( &t );
33493 if( status ) return errno;
33496 #ifdef HAVE_LINUX_THREADS
33497 pthread_kill_other_threads_np();
33506 rm -f conftest.$ac_objext conftest$ac_exeext
33507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33508 (eval $ac_link) 2>conftest.er1
33510 grep -v '^ *+' conftest.er1 >conftest.err
33512 cat conftest.err >&5
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); } &&
33515 { ac_try='test -z "$ac_c_werror_flag"
33516 || test ! -s conftest.err'
33517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33518 (eval $ac_try) 2>&5
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); }; } &&
33522 { ac_try='test -s conftest$ac_exeext'
33523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524 (eval $ac_try) 2>&5
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); }; }; then
33528 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33530 echo "$as_me: failed program was:" >&5
33531 sed 's/^/| /' conftest.$ac_ext >&5
33533 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33535 rm -f conftest.err conftest.$ac_objext \
33536 conftest$ac_exeext conftest.$ac_ext
33538 cat >conftest.$ac_ext <<_ACEOF
33541 cat confdefs.h >>conftest.$ac_ext
33542 cat >>conftest.$ac_ext <<_ACEOF
33543 /* end confdefs.h. */
33545 /* pthread test headers */
33546 #include <pthread.h>
33547 #if HAVE_PTHREADS < 7
33551 #define NULL (void*)0
33554 static void *task(p)
33557 return (void *) (p == NULL);
33561 int main(argc, argv)
33566 /* pthread test function */
33567 #ifndef PTHREAD_CREATE_DETACHED
33568 #define PTHREAD_CREATE_DETACHED 1
33572 int detach = PTHREAD_CREATE_DETACHED;
33574 #if HAVE_PTHREADS > 4
33575 /* Final pthreads */
33576 pthread_attr_t attr;
33578 status = pthread_attr_init(&attr);
33579 if( status ) return status;
33581 #if HAVE_PTHREADS < 7
33582 status = pthread_attr_setdetachstate(&attr, &detach);
33583 if( status < 0 ) status = errno;
33585 status = pthread_attr_setdetachstate(&attr, detach);
33587 if( status ) return status;
33588 status = pthread_create( &t, &attr, task, NULL );
33589 #if HAVE_PTHREADS < 7
33590 if( status < 0 ) status = errno;
33592 if( status ) return status;
33594 /* Draft 4 pthreads */
33595 status = pthread_create( &t, pthread_attr_default, task, NULL );
33596 if( status ) return errno;
33598 /* give thread a chance to complete */
33599 /* it should remain joinable and hence detachable */
33602 status = pthread_detach( &t );
33603 if( status ) return errno;
33606 #ifdef HAVE_LINUX_THREADS
33607 pthread_kill_other_threads_np();
33615 rm -f conftest$ac_exeext
33616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33617 (eval $ac_link) 2>&5
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33622 (eval $ac_try) 2>&5
33624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625 (exit $ac_status); }; }; then
33626 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33628 echo "$as_me: program exited with status $ac_status" >&5
33629 echo "$as_me: failed program was:" >&5
33630 sed 's/^/| /' conftest.$ac_ext >&5
33632 ( exit $ac_status )
33633 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33642 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33643 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33645 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33646 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33647 ol_link_threads=posix
33651 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33652 if test "$ol_link_threads" = no ; then
33653 # try -lpthreads -lmach -lexc
33654 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33655 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33656 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33657 echo $ECHO_N "(cached) $ECHO_C" >&6
33662 LIBS="-lpthreads -lmach -lexc $LIBS"
33664 if test "$cross_compiling" = yes; then
33665 cat >conftest.$ac_ext <<_ACEOF
33668 cat confdefs.h >>conftest.$ac_ext
33669 cat >>conftest.$ac_ext <<_ACEOF
33670 /* end confdefs.h. */
33672 /* pthread test headers */
33673 #include <pthread.h>
33674 #if HAVE_PTHREADS < 7
33678 #define NULL (void*)0
33681 static void *task(p)
33684 return (void *) (p == NULL);
33691 /* pthread test function */
33692 #ifndef PTHREAD_CREATE_DETACHED
33693 #define PTHREAD_CREATE_DETACHED 1
33697 int detach = PTHREAD_CREATE_DETACHED;
33699 #if HAVE_PTHREADS > 4
33700 /* Final pthreads */
33701 pthread_attr_t attr;
33703 status = pthread_attr_init(&attr);
33704 if( status ) return status;
33706 #if HAVE_PTHREADS < 7
33707 status = pthread_attr_setdetachstate(&attr, &detach);
33708 if( status < 0 ) status = errno;
33710 status = pthread_attr_setdetachstate(&attr, detach);
33712 if( status ) return status;
33713 status = pthread_create( &t, &attr, task, NULL );
33714 #if HAVE_PTHREADS < 7
33715 if( status < 0 ) status = errno;
33717 if( status ) return status;
33719 /* Draft 4 pthreads */
33720 status = pthread_create( &t, pthread_attr_default, task, NULL );
33721 if( status ) return errno;
33723 /* give thread a chance to complete */
33724 /* it should remain joinable and hence detachable */
33727 status = pthread_detach( &t );
33728 if( status ) return errno;
33731 #ifdef HAVE_LINUX_THREADS
33732 pthread_kill_other_threads_np();
33741 rm -f conftest.$ac_objext conftest$ac_exeext
33742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33743 (eval $ac_link) 2>conftest.er1
33745 grep -v '^ *+' conftest.er1 >conftest.err
33747 cat conftest.err >&5
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); } &&
33750 { ac_try='test -z "$ac_c_werror_flag"
33751 || test ! -s conftest.err'
33752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33753 (eval $ac_try) 2>&5
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); }; } &&
33757 { ac_try='test -s conftest$ac_exeext'
33758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33759 (eval $ac_try) 2>&5
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); }; }; then
33763 ol_cv_pthread_lpthreads_lmach_lexc=yes
33765 echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33768 ol_cv_pthread_lpthreads_lmach_lexc=no
33770 rm -f conftest.err conftest.$ac_objext \
33771 conftest$ac_exeext conftest.$ac_ext
33773 cat >conftest.$ac_ext <<_ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h. */
33780 /* pthread test headers */
33781 #include <pthread.h>
33782 #if HAVE_PTHREADS < 7
33786 #define NULL (void*)0
33789 static void *task(p)
33792 return (void *) (p == NULL);
33796 int main(argc, argv)
33801 /* pthread test function */
33802 #ifndef PTHREAD_CREATE_DETACHED
33803 #define PTHREAD_CREATE_DETACHED 1
33807 int detach = PTHREAD_CREATE_DETACHED;
33809 #if HAVE_PTHREADS > 4
33810 /* Final pthreads */
33811 pthread_attr_t attr;
33813 status = pthread_attr_init(&attr);
33814 if( status ) return status;
33816 #if HAVE_PTHREADS < 7
33817 status = pthread_attr_setdetachstate(&attr, &detach);
33818 if( status < 0 ) status = errno;
33820 status = pthread_attr_setdetachstate(&attr, detach);
33822 if( status ) return status;
33823 status = pthread_create( &t, &attr, task, NULL );
33824 #if HAVE_PTHREADS < 7
33825 if( status < 0 ) status = errno;
33827 if( status ) return status;
33829 /* Draft 4 pthreads */
33830 status = pthread_create( &t, pthread_attr_default, task, NULL );
33831 if( status ) return errno;
33833 /* give thread a chance to complete */
33834 /* it should remain joinable and hence detachable */
33837 status = pthread_detach( &t );
33838 if( status ) return errno;
33841 #ifdef HAVE_LINUX_THREADS
33842 pthread_kill_other_threads_np();
33850 rm -f conftest$ac_exeext
33851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33852 (eval $ac_link) 2>&5
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33857 (eval $ac_try) 2>&5
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); }; }; then
33861 ol_cv_pthread_lpthreads_lmach_lexc=yes
33863 echo "$as_me: program exited with status $ac_status" >&5
33864 echo "$as_me: failed program was:" >&5
33865 sed 's/^/| /' conftest.$ac_ext >&5
33867 ( exit $ac_status )
33868 ol_cv_pthread_lpthreads_lmach_lexc=no
33870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33877 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33878 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33880 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33881 ol_link_pthreads="-lpthreads -lmach -lexc"
33882 ol_link_threads=posix
33886 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33887 if test "$ol_link_threads" = no ; then
33888 # try -lpthreads -lexc
33889 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33890 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33891 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33892 echo $ECHO_N "(cached) $ECHO_C" >&6
33897 LIBS="-lpthreads -lexc $LIBS"
33899 if test "$cross_compiling" = yes; then
33900 cat >conftest.$ac_ext <<_ACEOF
33903 cat confdefs.h >>conftest.$ac_ext
33904 cat >>conftest.$ac_ext <<_ACEOF
33905 /* end confdefs.h. */
33907 /* pthread test headers */
33908 #include <pthread.h>
33909 #if HAVE_PTHREADS < 7
33913 #define NULL (void*)0
33916 static void *task(p)
33919 return (void *) (p == NULL);
33926 /* pthread test function */
33927 #ifndef PTHREAD_CREATE_DETACHED
33928 #define PTHREAD_CREATE_DETACHED 1
33932 int detach = PTHREAD_CREATE_DETACHED;
33934 #if HAVE_PTHREADS > 4
33935 /* Final pthreads */
33936 pthread_attr_t attr;
33938 status = pthread_attr_init(&attr);
33939 if( status ) return status;
33941 #if HAVE_PTHREADS < 7
33942 status = pthread_attr_setdetachstate(&attr, &detach);
33943 if( status < 0 ) status = errno;
33945 status = pthread_attr_setdetachstate(&attr, detach);
33947 if( status ) return status;
33948 status = pthread_create( &t, &attr, task, NULL );
33949 #if HAVE_PTHREADS < 7
33950 if( status < 0 ) status = errno;
33952 if( status ) return status;
33954 /* Draft 4 pthreads */
33955 status = pthread_create( &t, pthread_attr_default, task, NULL );
33956 if( status ) return errno;
33958 /* give thread a chance to complete */
33959 /* it should remain joinable and hence detachable */
33962 status = pthread_detach( &t );
33963 if( status ) return errno;
33966 #ifdef HAVE_LINUX_THREADS
33967 pthread_kill_other_threads_np();
33976 rm -f conftest.$ac_objext conftest$ac_exeext
33977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33978 (eval $ac_link) 2>conftest.er1
33980 grep -v '^ *+' conftest.er1 >conftest.err
33982 cat conftest.err >&5
33983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984 (exit $ac_status); } &&
33985 { ac_try='test -z "$ac_c_werror_flag"
33986 || test ! -s conftest.err'
33987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33988 (eval $ac_try) 2>&5
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); }; } &&
33992 { ac_try='test -s conftest$ac_exeext'
33993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33994 (eval $ac_try) 2>&5
33996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33997 (exit $ac_status); }; }; then
33998 ol_cv_pthread_lpthreads_lexc=yes
34000 echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34003 ol_cv_pthread_lpthreads_lexc=no
34005 rm -f conftest.err conftest.$ac_objext \
34006 conftest$ac_exeext conftest.$ac_ext
34008 cat >conftest.$ac_ext <<_ACEOF
34011 cat confdefs.h >>conftest.$ac_ext
34012 cat >>conftest.$ac_ext <<_ACEOF
34013 /* end confdefs.h. */
34015 /* pthread test headers */
34016 #include <pthread.h>
34017 #if HAVE_PTHREADS < 7
34021 #define NULL (void*)0
34024 static void *task(p)
34027 return (void *) (p == NULL);
34031 int main(argc, argv)
34036 /* pthread test function */
34037 #ifndef PTHREAD_CREATE_DETACHED
34038 #define PTHREAD_CREATE_DETACHED 1
34042 int detach = PTHREAD_CREATE_DETACHED;
34044 #if HAVE_PTHREADS > 4
34045 /* Final pthreads */
34046 pthread_attr_t attr;
34048 status = pthread_attr_init(&attr);
34049 if( status ) return status;
34051 #if HAVE_PTHREADS < 7
34052 status = pthread_attr_setdetachstate(&attr, &detach);
34053 if( status < 0 ) status = errno;
34055 status = pthread_attr_setdetachstate(&attr, detach);
34057 if( status ) return status;
34058 status = pthread_create( &t, &attr, task, NULL );
34059 #if HAVE_PTHREADS < 7
34060 if( status < 0 ) status = errno;
34062 if( status ) return status;
34064 /* Draft 4 pthreads */
34065 status = pthread_create( &t, pthread_attr_default, task, NULL );
34066 if( status ) return errno;
34068 /* give thread a chance to complete */
34069 /* it should remain joinable and hence detachable */
34072 status = pthread_detach( &t );
34073 if( status ) return errno;
34076 #ifdef HAVE_LINUX_THREADS
34077 pthread_kill_other_threads_np();
34085 rm -f conftest$ac_exeext
34086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34087 (eval $ac_link) 2>&5
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092 (eval $ac_try) 2>&5
34094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095 (exit $ac_status); }; }; then
34096 ol_cv_pthread_lpthreads_lexc=yes
34098 echo "$as_me: program exited with status $ac_status" >&5
34099 echo "$as_me: failed program was:" >&5
34100 sed 's/^/| /' conftest.$ac_ext >&5
34102 ( exit $ac_status )
34103 ol_cv_pthread_lpthreads_lexc=no
34105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34112 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
34113 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
34115 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
34116 ol_link_pthreads="-lpthreads -lexc"
34117 ol_link_threads=posix
34122 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
34123 if test "$ol_link_threads" = no ; then
34125 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
34126 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
34127 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
34133 LIBS="-lpthreads $LIBS"
34135 if test "$cross_compiling" = yes; then
34136 cat >conftest.$ac_ext <<_ACEOF
34139 cat confdefs.h >>conftest.$ac_ext
34140 cat >>conftest.$ac_ext <<_ACEOF
34141 /* end confdefs.h. */
34143 /* pthread test headers */
34144 #include <pthread.h>
34145 #if HAVE_PTHREADS < 7
34149 #define NULL (void*)0
34152 static void *task(p)
34155 return (void *) (p == NULL);
34162 /* pthread test function */
34163 #ifndef PTHREAD_CREATE_DETACHED
34164 #define PTHREAD_CREATE_DETACHED 1
34168 int detach = PTHREAD_CREATE_DETACHED;
34170 #if HAVE_PTHREADS > 4
34171 /* Final pthreads */
34172 pthread_attr_t attr;
34174 status = pthread_attr_init(&attr);
34175 if( status ) return status;
34177 #if HAVE_PTHREADS < 7
34178 status = pthread_attr_setdetachstate(&attr, &detach);
34179 if( status < 0 ) status = errno;
34181 status = pthread_attr_setdetachstate(&attr, detach);
34183 if( status ) return status;
34184 status = pthread_create( &t, &attr, task, NULL );
34185 #if HAVE_PTHREADS < 7
34186 if( status < 0 ) status = errno;
34188 if( status ) return status;
34190 /* Draft 4 pthreads */
34191 status = pthread_create( &t, pthread_attr_default, task, NULL );
34192 if( status ) return errno;
34194 /* give thread a chance to complete */
34195 /* it should remain joinable and hence detachable */
34198 status = pthread_detach( &t );
34199 if( status ) return errno;
34202 #ifdef HAVE_LINUX_THREADS
34203 pthread_kill_other_threads_np();
34212 rm -f conftest.$ac_objext conftest$ac_exeext
34213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34214 (eval $ac_link) 2>conftest.er1
34216 grep -v '^ *+' conftest.er1 >conftest.err
34218 cat conftest.err >&5
34219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220 (exit $ac_status); } &&
34221 { ac_try='test -z "$ac_c_werror_flag"
34222 || test ! -s conftest.err'
34223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34224 (eval $ac_try) 2>&5
34226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227 (exit $ac_status); }; } &&
34228 { ac_try='test -s conftest$ac_exeext'
34229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34230 (eval $ac_try) 2>&5
34232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34233 (exit $ac_status); }; }; then
34234 ol_cv_pthread_lib_lpthreads=yes
34236 echo "$as_me: failed program was:" >&5
34237 sed 's/^/| /' conftest.$ac_ext >&5
34239 ol_cv_pthread_lib_lpthreads=no
34241 rm -f conftest.err conftest.$ac_objext \
34242 conftest$ac_exeext conftest.$ac_ext
34244 cat >conftest.$ac_ext <<_ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h. */
34251 /* pthread test headers */
34252 #include <pthread.h>
34253 #if HAVE_PTHREADS < 7
34257 #define NULL (void*)0
34260 static void *task(p)
34263 return (void *) (p == NULL);
34267 int main(argc, argv)
34272 /* pthread test function */
34273 #ifndef PTHREAD_CREATE_DETACHED
34274 #define PTHREAD_CREATE_DETACHED 1
34278 int detach = PTHREAD_CREATE_DETACHED;
34280 #if HAVE_PTHREADS > 4
34281 /* Final pthreads */
34282 pthread_attr_t attr;
34284 status = pthread_attr_init(&attr);
34285 if( status ) return status;
34287 #if HAVE_PTHREADS < 7
34288 status = pthread_attr_setdetachstate(&attr, &detach);
34289 if( status < 0 ) status = errno;
34291 status = pthread_attr_setdetachstate(&attr, detach);
34293 if( status ) return status;
34294 status = pthread_create( &t, &attr, task, NULL );
34295 #if HAVE_PTHREADS < 7
34296 if( status < 0 ) status = errno;
34298 if( status ) return status;
34300 /* Draft 4 pthreads */
34301 status = pthread_create( &t, pthread_attr_default, task, NULL );
34302 if( status ) return errno;
34304 /* give thread a chance to complete */
34305 /* it should remain joinable and hence detachable */
34308 status = pthread_detach( &t );
34309 if( status ) return errno;
34312 #ifdef HAVE_LINUX_THREADS
34313 pthread_kill_other_threads_np();
34321 rm -f conftest$ac_exeext
34322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34323 (eval $ac_link) 2>&5
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328 (eval $ac_try) 2>&5
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; }; then
34332 ol_cv_pthread_lib_lpthreads=yes
34334 echo "$as_me: program exited with status $ac_status" >&5
34335 echo "$as_me: failed program was:" >&5
34336 sed 's/^/| /' conftest.$ac_ext >&5
34338 ( exit $ac_status )
34339 ol_cv_pthread_lib_lpthreads=no
34341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34348 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34349 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34351 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34352 ol_link_pthreads="-lpthreads"
34353 ol_link_threads=posix
34358 if test $ol_link_threads != no ; then
34359 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34361 save_CPPFLAGS="$CPPFLAGS"
34363 LIBS="$LTHREAD_LIBS $LIBS"
34368 for ac_func in sched_yield pthread_yield thr_yield
34370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34371 echo "$as_me:$LINENO: checking for $ac_func" >&5
34372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34373 if eval "test \"\${$as_ac_var+set}\" = set"; then
34374 echo $ECHO_N "(cached) $ECHO_C" >&6
34376 cat >conftest.$ac_ext <<_ACEOF
34379 cat confdefs.h >>conftest.$ac_ext
34380 cat >>conftest.$ac_ext <<_ACEOF
34381 /* end confdefs.h. */
34382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34384 #define $ac_func innocuous_$ac_func
34386 /* System header to define __stub macros and hopefully few prototypes,
34387 which can conflict with char $ac_func (); below.
34388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34389 <limits.h> exists even on freestanding compilers. */
34392 # include <limits.h>
34394 # include <assert.h>
34399 /* Override any gcc2 internal prototype to avoid an error. */
34404 /* We use char because int might match the return type of a gcc2
34405 builtin and then its argument prototype would still apply. */
34407 /* The GNU C library defines this for functions which it implements
34408 to always fail with ENOSYS. Some functions are actually named
34409 something starting with __ and the normal name is an alias. */
34410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34413 char (*f) () = $ac_func;
34422 return f != $ac_func;
34427 rm -f conftest.$ac_objext conftest$ac_exeext
34428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34429 (eval $ac_link) 2>conftest.er1
34431 grep -v '^ *+' conftest.er1 >conftest.err
34433 cat conftest.err >&5
34434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435 (exit $ac_status); } &&
34436 { ac_try='test -z "$ac_c_werror_flag"
34437 || test ! -s conftest.err'
34438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439 (eval $ac_try) 2>&5
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); }; } &&
34443 { ac_try='test -s conftest$ac_exeext'
34444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34445 (eval $ac_try) 2>&5
34447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 (exit $ac_status); }; }; then
34449 eval "$as_ac_var=yes"
34451 echo "$as_me: failed program was:" >&5
34452 sed 's/^/| /' conftest.$ac_ext >&5
34454 eval "$as_ac_var=no"
34456 rm -f conftest.err conftest.$ac_objext \
34457 conftest$ac_exeext conftest.$ac_ext
34459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34461 if test `eval echo '${'$as_ac_var'}'` = yes; then
34462 cat >>confdefs.h <<_ACEOF
34463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34470 if test $ac_cv_func_sched_yield = no -a \
34471 $ac_cv_func_pthread_yield = no -a \
34472 $ac_cv_func_thr_yield = no ; then
34473 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34474 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34475 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34476 echo $ECHO_N "(cached) $ECHO_C" >&6
34478 ac_check_lib_save_LIBS=$LIBS
34480 cat >conftest.$ac_ext <<_ACEOF
34483 cat confdefs.h >>conftest.$ac_ext
34484 cat >>conftest.$ac_ext <<_ACEOF
34485 /* end confdefs.h. */
34487 /* Override any gcc2 internal prototype to avoid an error. */
34491 /* We use char because int might match the return type of a gcc2
34492 builtin and then its argument prototype would still apply. */
34493 char sched_yield ();
34502 rm -f conftest.$ac_objext conftest$ac_exeext
34503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34504 (eval $ac_link) 2>conftest.er1
34506 grep -v '^ *+' conftest.er1 >conftest.err
34508 cat conftest.err >&5
34509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510 (exit $ac_status); } &&
34511 { ac_try='test -z "$ac_c_werror_flag"
34512 || test ! -s conftest.err'
34513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34514 (eval $ac_try) 2>&5
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); }; } &&
34518 { ac_try='test -s conftest$ac_exeext'
34519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34520 (eval $ac_try) 2>&5
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); }; }; then
34524 ac_cv_lib_rt_sched_yield=yes
34526 echo "$as_me: failed program was:" >&5
34527 sed 's/^/| /' conftest.$ac_ext >&5
34529 ac_cv_lib_rt_sched_yield=no
34531 rm -f conftest.err conftest.$ac_objext \
34532 conftest$ac_exeext conftest.$ac_ext
34533 LIBS=$ac_check_lib_save_LIBS
34535 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34536 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34537 if test $ac_cv_lib_rt_sched_yield = yes; then
34538 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34540 cat >>confdefs.h <<\_ACEOF
34541 #define HAVE_SCHED_YIELD 1
34544 ac_cv_func_sched_yield=yes
34546 ac_cv_func_sched_yield=no
34550 if test $ac_cv_func_sched_yield = no -a \
34551 $ac_cv_func_pthread_yield = no -a \
34552 "$ac_cv_func_thr_yield" = no ; then
34553 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34554 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34559 for ac_func in pthread_kill pthread_rwlock_destroy
34561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34562 echo "$as_me:$LINENO: checking for $ac_func" >&5
34563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34564 if eval "test \"\${$as_ac_var+set}\" = set"; then
34565 echo $ECHO_N "(cached) $ECHO_C" >&6
34567 cat >conftest.$ac_ext <<_ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h. */
34573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34575 #define $ac_func innocuous_$ac_func
34577 /* System header to define __stub macros and hopefully few prototypes,
34578 which can conflict with char $ac_func (); below.
34579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34580 <limits.h> exists even on freestanding compilers. */
34583 # include <limits.h>
34585 # include <assert.h>
34590 /* Override any gcc2 internal prototype to avoid an error. */
34595 /* We use char because int might match the return type of a gcc2
34596 builtin and then its argument prototype would still apply. */
34598 /* The GNU C library defines this for functions which it implements
34599 to always fail with ENOSYS. Some functions are actually named
34600 something starting with __ and the normal name is an alias. */
34601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34604 char (*f) () = $ac_func;
34613 return f != $ac_func;
34618 rm -f conftest.$ac_objext conftest$ac_exeext
34619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34620 (eval $ac_link) 2>conftest.er1
34622 grep -v '^ *+' conftest.er1 >conftest.err
34624 cat conftest.err >&5
34625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626 (exit $ac_status); } &&
34627 { ac_try='test -z "$ac_c_werror_flag"
34628 || test ! -s conftest.err'
34629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630 (eval $ac_try) 2>&5
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); }; } &&
34634 { ac_try='test -s conftest$ac_exeext'
34635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34636 (eval $ac_try) 2>&5
34638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34639 (exit $ac_status); }; }; then
34640 eval "$as_ac_var=yes"
34642 echo "$as_me: failed program was:" >&5
34643 sed 's/^/| /' conftest.$ac_ext >&5
34645 eval "$as_ac_var=no"
34647 rm -f conftest.err conftest.$ac_objext \
34648 conftest$ac_exeext conftest.$ac_ext
34650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34652 if test `eval echo '${'$as_ac_var'}'` = yes; then
34653 cat >>confdefs.h <<_ACEOF
34654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34661 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34662 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34663 if test "${ol_cv_func_pthread_detach+set}" = set; then
34664 echo $ECHO_N "(cached) $ECHO_C" >&6
34667 cat >conftest.$ac_ext <<_ACEOF
34670 cat confdefs.h >>conftest.$ac_ext
34671 cat >>conftest.$ac_ext <<_ACEOF
34672 /* end confdefs.h. */
34674 #include <pthread.h>
34676 #define NULL (void*)0
34682 pthread_detach(NULL);
34687 rm -f conftest.$ac_objext conftest$ac_exeext
34688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34689 (eval $ac_link) 2>conftest.er1
34691 grep -v '^ *+' conftest.er1 >conftest.err
34693 cat conftest.err >&5
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); } &&
34696 { ac_try='test -z "$ac_c_werror_flag"
34697 || test ! -s conftest.err'
34698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34699 (eval $ac_try) 2>&5
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); }; } &&
34703 { ac_try='test -s conftest$ac_exeext'
34704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34705 (eval $ac_try) 2>&5
34707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708 (exit $ac_status); }; }; then
34709 ol_cv_func_pthread_detach=yes
34711 echo "$as_me: failed program was:" >&5
34712 sed 's/^/| /' conftest.$ac_ext >&5
34714 ol_cv_func_pthread_detach=no
34716 rm -f conftest.err conftest.$ac_objext \
34717 conftest$ac_exeext conftest.$ac_ext
34720 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34721 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34723 if test $ol_cv_func_pthread_detach = no ; then
34724 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34725 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34726 { (exit 1); exit 1; }; }
34730 cat >>confdefs.h <<\_ACEOF
34731 #define HAVE_PTHREAD_DETACH 1
34740 pthread_setconcurrency \
34741 pthread_getconcurrency \
34742 thr_setconcurrency \
34743 thr_getconcurrency \
34746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34747 echo "$as_me:$LINENO: checking for $ac_func" >&5
34748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34749 if eval "test \"\${$as_ac_var+set}\" = set"; then
34750 echo $ECHO_N "(cached) $ECHO_C" >&6
34752 cat >conftest.$ac_ext <<_ACEOF
34755 cat confdefs.h >>conftest.$ac_ext
34756 cat >>conftest.$ac_ext <<_ACEOF
34757 /* end confdefs.h. */
34758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34760 #define $ac_func innocuous_$ac_func
34762 /* System header to define __stub macros and hopefully few prototypes,
34763 which can conflict with char $ac_func (); below.
34764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34765 <limits.h> exists even on freestanding compilers. */
34768 # include <limits.h>
34770 # include <assert.h>
34775 /* Override any gcc2 internal prototype to avoid an error. */
34780 /* We use char because int might match the return type of a gcc2
34781 builtin and then its argument prototype would still apply. */
34783 /* The GNU C library defines this for functions which it implements
34784 to always fail with ENOSYS. Some functions are actually named
34785 something starting with __ and the normal name is an alias. */
34786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34789 char (*f) () = $ac_func;
34798 return f != $ac_func;
34803 rm -f conftest.$ac_objext conftest$ac_exeext
34804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34805 (eval $ac_link) 2>conftest.er1
34807 grep -v '^ *+' conftest.er1 >conftest.err
34809 cat conftest.err >&5
34810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811 (exit $ac_status); } &&
34812 { ac_try='test -z "$ac_c_werror_flag"
34813 || test ! -s conftest.err'
34814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34815 (eval $ac_try) 2>&5
34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); }; } &&
34819 { ac_try='test -s conftest$ac_exeext'
34820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34821 (eval $ac_try) 2>&5
34823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); }; }; then
34825 eval "$as_ac_var=yes"
34827 echo "$as_me: failed program was:" >&5
34828 sed 's/^/| /' conftest.$ac_ext >&5
34830 eval "$as_ac_var=no"
34832 rm -f conftest.err conftest.$ac_objext \
34833 conftest$ac_exeext conftest.$ac_ext
34835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34837 if test `eval echo '${'$as_ac_var'}'` = yes; then
34838 cat >>confdefs.h <<_ACEOF
34839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34848 for ac_func in pthread_kill_other_threads_np
34850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34851 echo "$as_me:$LINENO: checking for $ac_func" >&5
34852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34853 if eval "test \"\${$as_ac_var+set}\" = set"; then
34854 echo $ECHO_N "(cached) $ECHO_C" >&6
34856 cat >conftest.$ac_ext <<_ACEOF
34859 cat confdefs.h >>conftest.$ac_ext
34860 cat >>conftest.$ac_ext <<_ACEOF
34861 /* end confdefs.h. */
34862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34864 #define $ac_func innocuous_$ac_func
34866 /* System header to define __stub macros and hopefully few prototypes,
34867 which can conflict with char $ac_func (); below.
34868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34869 <limits.h> exists even on freestanding compilers. */
34872 # include <limits.h>
34874 # include <assert.h>
34879 /* Override any gcc2 internal prototype to avoid an error. */
34884 /* We use char because int might match the return type of a gcc2
34885 builtin and then its argument prototype would still apply. */
34887 /* The GNU C library defines this for functions which it implements
34888 to always fail with ENOSYS. Some functions are actually named
34889 something starting with __ and the normal name is an alias. */
34890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34893 char (*f) () = $ac_func;
34902 return f != $ac_func;
34907 rm -f conftest.$ac_objext conftest$ac_exeext
34908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34909 (eval $ac_link) 2>conftest.er1
34911 grep -v '^ *+' conftest.er1 >conftest.err
34913 cat conftest.err >&5
34914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915 (exit $ac_status); } &&
34916 { ac_try='test -z "$ac_c_werror_flag"
34917 || test ! -s conftest.err'
34918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919 (eval $ac_try) 2>&5
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); }; } &&
34923 { ac_try='test -s conftest$ac_exeext'
34924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34925 (eval $ac_try) 2>&5
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); }; }; then
34929 eval "$as_ac_var=yes"
34931 echo "$as_me: failed program was:" >&5
34932 sed 's/^/| /' conftest.$ac_ext >&5
34934 eval "$as_ac_var=no"
34936 rm -f conftest.err conftest.$ac_objext \
34937 conftest$ac_exeext conftest.$ac_ext
34939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34941 if test `eval echo '${'$as_ac_var'}'` = yes; then
34942 cat >>confdefs.h <<_ACEOF
34943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34949 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34950 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34951 if test "${ol_cv_sys_linux_threads+set}" = set; then
34952 echo $ECHO_N "(cached) $ECHO_C" >&6
34954 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34956 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34957 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34962 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34963 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34964 if test "${ol_cv_linux_threads+set}" = set; then
34965 echo $ECHO_N "(cached) $ECHO_C" >&6
34968 if test $ol_cv_header_linux_threads = yes -a \
34969 $ol_cv_sys_linux_threads = yes; then
34970 ol_cv_linux_threads=yes
34971 elif test $ol_cv_header_linux_threads = no -a \
34972 $ol_cv_sys_linux_threads = no; then
34973 ol_cv_linux_threads=no
34975 ol_cv_linux_threads=error
34979 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34980 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34983 if test $ol_cv_linux_threads = error; then
34984 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34985 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34986 { (exit 1); exit 1; }; };
34989 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34990 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34991 if test "${ol_cv_pthread_create_works+set}" = set; then
34992 echo $ECHO_N "(cached) $ECHO_C" >&6
34995 if test "$cross_compiling" = yes; then
34996 ol_cv_pthread_create_works=yes
34998 cat >conftest.$ac_ext <<_ACEOF
35001 cat confdefs.h >>conftest.$ac_ext
35002 cat >>conftest.$ac_ext <<_ACEOF
35003 /* end confdefs.h. */
35005 /* pthread test headers */
35006 #include <pthread.h>
35007 #if HAVE_PTHREADS < 7
35011 #define NULL (void*)0
35014 static void *task(p)
35017 return (void *) (p == NULL);
35021 int main(argc, argv)
35026 /* pthread test function */
35027 #ifndef PTHREAD_CREATE_DETACHED
35028 #define PTHREAD_CREATE_DETACHED 1
35032 int detach = PTHREAD_CREATE_DETACHED;
35034 #if HAVE_PTHREADS > 4
35035 /* Final pthreads */
35036 pthread_attr_t attr;
35038 status = pthread_attr_init(&attr);
35039 if( status ) return status;
35041 #if HAVE_PTHREADS < 7
35042 status = pthread_attr_setdetachstate(&attr, &detach);
35043 if( status < 0 ) status = errno;
35045 status = pthread_attr_setdetachstate(&attr, detach);
35047 if( status ) return status;
35048 status = pthread_create( &t, &attr, task, NULL );
35049 #if HAVE_PTHREADS < 7
35050 if( status < 0 ) status = errno;
35052 if( status ) return status;
35054 /* Draft 4 pthreads */
35055 status = pthread_create( &t, pthread_attr_default, task, NULL );
35056 if( status ) return errno;
35058 /* give thread a chance to complete */
35059 /* it should remain joinable and hence detachable */
35062 status = pthread_detach( &t );
35063 if( status ) return errno;
35066 #ifdef HAVE_LINUX_THREADS
35067 pthread_kill_other_threads_np();
35075 rm -f conftest$ac_exeext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35077 (eval $ac_link) 2>&5
35079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35082 (eval $ac_try) 2>&5
35084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085 (exit $ac_status); }; }; then
35086 ol_cv_pthread_create_works=yes
35088 echo "$as_me: program exited with status $ac_status" >&5
35089 echo "$as_me: failed program was:" >&5
35090 sed 's/^/| /' conftest.$ac_ext >&5
35092 ( exit $ac_status )
35093 ol_cv_pthread_create_works=no
35095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35098 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
35099 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
35101 if test $ol_cv_pthread_create_works = no ; then
35102 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
35103 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
35104 { (exit 1); exit 1; }; }
35107 if test $ol_with_yielding_select = auto ; then
35108 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
35109 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
35110 if test "${ol_cv_pthread_select_yields+set}" = set; then
35111 echo $ECHO_N "(cached) $ECHO_C" >&6
35114 if test "$cross_compiling" = yes; then
35115 ol_cv_pthread_select_yields=cross
35117 cat >conftest.$ac_ext <<_ACEOF
35120 cat confdefs.h >>conftest.$ac_ext
35121 cat >>conftest.$ac_ext <<_ACEOF
35122 /* end confdefs.h. */
35124 #include <sys/types.h>
35125 #include <sys/time.h>
35126 #include <unistd.h>
35127 #include <pthread.h>
35129 #define NULL (void*) 0
35132 static int fildes[2];
35134 static void *task(p)
35146 FD_SET(fildes[0], &rfds);
35148 /* we're not interested in any fds */
35149 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35156 exit(0); /* if we exit here, the select blocked the whole process */
35159 int main(argc, argv)
35165 /* create a pipe to select */
35166 if(pipe(&fildes[0])) {
35171 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35172 (void) pthread_setconcurrency(2);
35174 #ifdef HAVE_THR_SETCONCURRENCY
35175 /* Set Solaris LWP concurrency to 2 */
35176 thr_setconcurrency(2);
35180 #if HAVE_PTHREADS < 6
35181 pthread_create(&t, pthread_attr_default, task, NULL);
35183 pthread_create(&t, NULL, task, NULL);
35186 /* make sure task runs first */
35189 #elif defined( HAVE_SCHED_YIELD )
35191 #elif defined( HAVE_PTHREAD_YIELD )
35198 rm -f conftest$ac_exeext
35199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35200 (eval $ac_link) 2>&5
35202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35205 (eval $ac_try) 2>&5
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); }; }; then
35209 ol_cv_pthread_select_yields=no
35211 echo "$as_me: program exited with status $ac_status" >&5
35212 echo "$as_me: failed program was:" >&5
35213 sed 's/^/| /' conftest.$ac_ext >&5
35215 ( exit $ac_status )
35216 ol_cv_pthread_select_yields=yes
35218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35221 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35222 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35224 if test $ol_cv_pthread_select_yields = cross ; then
35225 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35226 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35227 { (exit 1); exit 1; }; }
35230 if test $ol_cv_pthread_select_yields = yes ; then
35231 ol_with_yielding_select=yes
35235 CPPFLAGS="$save_CPPFLAGS"
35238 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35239 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35240 { (exit 1); exit 1; }; }
35244 if test $ol_with_threads = posix ; then
35245 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35246 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35247 { (exit 1); exit 1; }; }
35251 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35252 -o $ol_with_threads = mach ; then
35256 for ac_header in mach/cthreads.h cthreads.h
35258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35260 echo "$as_me:$LINENO: checking for $ac_header" >&5
35261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35263 echo $ECHO_N "(cached) $ECHO_C" >&6
35265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35268 # Is the header compilable?
35269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35271 cat >conftest.$ac_ext <<_ACEOF
35274 cat confdefs.h >>conftest.$ac_ext
35275 cat >>conftest.$ac_ext <<_ACEOF
35276 /* end confdefs.h. */
35277 $ac_includes_default
35278 #include <$ac_header>
35280 rm -f conftest.$ac_objext
35281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35282 (eval $ac_compile) 2>conftest.er1
35284 grep -v '^ *+' conftest.er1 >conftest.err
35286 cat conftest.err >&5
35287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288 (exit $ac_status); } &&
35289 { ac_try='test -z "$ac_c_werror_flag"
35290 || test ! -s conftest.err'
35291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35292 (eval $ac_try) 2>&5
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); }; } &&
35296 { ac_try='test -s conftest.$ac_objext'
35297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298 (eval $ac_try) 2>&5
35300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301 (exit $ac_status); }; }; then
35302 ac_header_compiler=yes
35304 echo "$as_me: failed program was:" >&5
35305 sed 's/^/| /' conftest.$ac_ext >&5
35307 ac_header_compiler=no
35309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35311 echo "${ECHO_T}$ac_header_compiler" >&6
35313 # Is the header present?
35314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35316 cat >conftest.$ac_ext <<_ACEOF
35319 cat confdefs.h >>conftest.$ac_ext
35320 cat >>conftest.$ac_ext <<_ACEOF
35321 /* end confdefs.h. */
35322 #include <$ac_header>
35324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35327 grep -v '^ *+' conftest.er1 >conftest.err
35329 cat conftest.err >&5
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); } >/dev/null; then
35332 if test -s conftest.err; then
35333 ac_cpp_err=$ac_c_preproc_warn_flag
35334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35341 if test -z "$ac_cpp_err"; then
35342 ac_header_preproc=yes
35344 echo "$as_me: failed program was:" >&5
35345 sed 's/^/| /' conftest.$ac_ext >&5
35347 ac_header_preproc=no
35349 rm -f conftest.err conftest.$ac_ext
35350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35351 echo "${ECHO_T}$ac_header_preproc" >&6
35353 # So? What about this header?
35354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35360 ac_header_preproc=yes
35363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35377 ## ------------------------------------------ ##
35378 ## Report this to the AC_PACKAGE_NAME lists. ##
35379 ## ------------------------------------------ ##
35382 sed "s/^/$as_me: WARNING: /" >&2
35385 echo "$as_me:$LINENO: checking for $ac_header" >&5
35386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35388 echo $ECHO_N "(cached) $ECHO_C" >&6
35390 eval "$as_ac_Header=\$ac_header_preproc"
35392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35397 cat >>confdefs.h <<_ACEOF
35398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35405 if test $ac_cv_header_mach_cthreads_h = yes ; then
35406 ol_with_threads=found
35408 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35409 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35410 if test "${ac_cv_func_cthread_fork+set}" = set; then
35411 echo $ECHO_N "(cached) $ECHO_C" >&6
35413 cat >conftest.$ac_ext <<_ACEOF
35416 cat confdefs.h >>conftest.$ac_ext
35417 cat >>conftest.$ac_ext <<_ACEOF
35418 /* end confdefs.h. */
35419 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35421 #define cthread_fork innocuous_cthread_fork
35423 /* System header to define __stub macros and hopefully few prototypes,
35424 which can conflict with char cthread_fork (); below.
35425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35426 <limits.h> exists even on freestanding compilers. */
35429 # include <limits.h>
35431 # include <assert.h>
35434 #undef cthread_fork
35436 /* Override any gcc2 internal prototype to avoid an error. */
35441 /* We use char because int might match the return type of a gcc2
35442 builtin and then its argument prototype would still apply. */
35443 char cthread_fork ();
35444 /* The GNU C library defines this for functions which it implements
35445 to always fail with ENOSYS. Some functions are actually named
35446 something starting with __ and the normal name is an alias. */
35447 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35450 char (*f) () = cthread_fork;
35459 return f != cthread_fork;
35464 rm -f conftest.$ac_objext conftest$ac_exeext
35465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35466 (eval $ac_link) 2>conftest.er1
35468 grep -v '^ *+' conftest.er1 >conftest.err
35470 cat conftest.err >&5
35471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472 (exit $ac_status); } &&
35473 { ac_try='test -z "$ac_c_werror_flag"
35474 || test ! -s conftest.err'
35475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35476 (eval $ac_try) 2>&5
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); }; } &&
35480 { ac_try='test -s conftest$ac_exeext'
35481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482 (eval $ac_try) 2>&5
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); }; }; then
35486 ac_cv_func_cthread_fork=yes
35488 echo "$as_me: failed program was:" >&5
35489 sed 's/^/| /' conftest.$ac_ext >&5
35491 ac_cv_func_cthread_fork=no
35493 rm -f conftest.err conftest.$ac_objext \
35494 conftest$ac_exeext conftest.$ac_ext
35496 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35497 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35498 if test $ac_cv_func_cthread_fork = yes; then
35499 ol_link_threads=yes
35503 if test $ol_link_threads = no ; then
35504 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35505 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35506 if test "${ol_cv_cthread_all_load+set}" = set; then
35507 echo $ECHO_N "(cached) $ECHO_C" >&6
35511 LIBS="-all_load $LIBS"
35512 cat >conftest.$ac_ext <<_ACEOF
35515 cat confdefs.h >>conftest.$ac_ext
35516 cat >>conftest.$ac_ext <<_ACEOF
35517 /* end confdefs.h. */
35518 #include <mach/cthreads.h>
35523 cthread_fork((void *)0, (void *)0);
35529 rm -f conftest.$ac_objext conftest$ac_exeext
35530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35531 (eval $ac_link) 2>conftest.er1
35533 grep -v '^ *+' conftest.er1 >conftest.err
35535 cat conftest.err >&5
35536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537 (exit $ac_status); } &&
35538 { ac_try='test -z "$ac_c_werror_flag"
35539 || test ! -s conftest.err'
35540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35541 (eval $ac_try) 2>&5
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); }; } &&
35545 { ac_try='test -s conftest$ac_exeext'
35546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35547 (eval $ac_try) 2>&5
35549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); }; }; then
35551 ol_cv_cthread_all_load=yes
35553 echo "$as_me: failed program was:" >&5
35554 sed 's/^/| /' conftest.$ac_ext >&5
35556 ol_cv_cthread_all_load=no
35558 rm -f conftest.err conftest.$ac_objext \
35559 conftest$ac_exeext conftest.$ac_ext
35563 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35564 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35566 if test $ol_cv_cthread_all_load = yes ; then
35567 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35568 ol_link_threads=mach
35569 ol_with_threads=found
35573 elif test $ac_cv_header_cthreads_h = yes ; then
35575 ol_with_threads=found
35578 LIBS="$LIBS -lthreads"
35579 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35580 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35581 if test "${ac_cv_func_cthread_fork+set}" = set; then
35582 echo $ECHO_N "(cached) $ECHO_C" >&6
35584 cat >conftest.$ac_ext <<_ACEOF
35587 cat confdefs.h >>conftest.$ac_ext
35588 cat >>conftest.$ac_ext <<_ACEOF
35589 /* end confdefs.h. */
35590 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35592 #define cthread_fork innocuous_cthread_fork
35594 /* System header to define __stub macros and hopefully few prototypes,
35595 which can conflict with char cthread_fork (); below.
35596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35597 <limits.h> exists even on freestanding compilers. */
35600 # include <limits.h>
35602 # include <assert.h>
35605 #undef cthread_fork
35607 /* Override any gcc2 internal prototype to avoid an error. */
35612 /* We use char because int might match the return type of a gcc2
35613 builtin and then its argument prototype would still apply. */
35614 char cthread_fork ();
35615 /* The GNU C library defines this for functions which it implements
35616 to always fail with ENOSYS. Some functions are actually named
35617 something starting with __ and the normal name is an alias. */
35618 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35621 char (*f) () = cthread_fork;
35630 return f != cthread_fork;
35635 rm -f conftest.$ac_objext conftest$ac_exeext
35636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35637 (eval $ac_link) 2>conftest.er1
35639 grep -v '^ *+' conftest.er1 >conftest.err
35641 cat conftest.err >&5
35642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643 (exit $ac_status); } &&
35644 { ac_try='test -z "$ac_c_werror_flag"
35645 || test ! -s conftest.err'
35646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647 (eval $ac_try) 2>&5
35649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); }; } &&
35651 { ac_try='test -s conftest$ac_exeext'
35652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653 (eval $ac_try) 2>&5
35655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656 (exit $ac_status); }; }; then
35657 ac_cv_func_cthread_fork=yes
35659 echo "$as_me: failed program was:" >&5
35660 sed 's/^/| /' conftest.$ac_ext >&5
35662 ac_cv_func_cthread_fork=no
35664 rm -f conftest.err conftest.$ac_objext \
35665 conftest$ac_exeext conftest.$ac_ext
35667 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35668 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35669 if test $ac_cv_func_cthread_fork = yes; then
35670 ol_link_threads=yes
35675 if test $ol_link_threads = yes ; then
35676 LTHREAD_LIBS="-lthreads"
35677 ol_link_threads=mach
35678 ol_with_threads=found
35680 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35681 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35682 { (exit 1); exit 1; }; }
35685 elif test $ol_with_threads = mach ; then
35686 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35687 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35688 { (exit 1); exit 1; }; }
35691 if test $ol_link_threads = mach ; then
35693 cat >>confdefs.h <<\_ACEOF
35694 #define HAVE_MACH_CTHREADS 1
35697 elif test $ol_with_threads = found ; then
35698 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35699 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35700 { (exit 1); exit 1; }; }
35704 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35705 -o $ol_with_threads = pth ; then
35708 for ac_header in pth.h
35710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35712 echo "$as_me:$LINENO: checking for $ac_header" >&5
35713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35715 echo $ECHO_N "(cached) $ECHO_C" >&6
35717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35720 # Is the header compilable?
35721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35723 cat >conftest.$ac_ext <<_ACEOF
35726 cat confdefs.h >>conftest.$ac_ext
35727 cat >>conftest.$ac_ext <<_ACEOF
35728 /* end confdefs.h. */
35729 $ac_includes_default
35730 #include <$ac_header>
35732 rm -f conftest.$ac_objext
35733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35734 (eval $ac_compile) 2>conftest.er1
35736 grep -v '^ *+' conftest.er1 >conftest.err
35738 cat conftest.err >&5
35739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740 (exit $ac_status); } &&
35741 { ac_try='test -z "$ac_c_werror_flag"
35742 || test ! -s conftest.err'
35743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35744 (eval $ac_try) 2>&5
35746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747 (exit $ac_status); }; } &&
35748 { ac_try='test -s conftest.$ac_objext'
35749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35750 (eval $ac_try) 2>&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); }; }; then
35754 ac_header_compiler=yes
35756 echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35759 ac_header_compiler=no
35761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35763 echo "${ECHO_T}$ac_header_compiler" >&6
35765 # Is the header present?
35766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35768 cat >conftest.$ac_ext <<_ACEOF
35771 cat confdefs.h >>conftest.$ac_ext
35772 cat >>conftest.$ac_ext <<_ACEOF
35773 /* end confdefs.h. */
35774 #include <$ac_header>
35776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35779 grep -v '^ *+' conftest.er1 >conftest.err
35781 cat conftest.err >&5
35782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35783 (exit $ac_status); } >/dev/null; then
35784 if test -s conftest.err; then
35785 ac_cpp_err=$ac_c_preproc_warn_flag
35786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35793 if test -z "$ac_cpp_err"; then
35794 ac_header_preproc=yes
35796 echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35799 ac_header_preproc=no
35801 rm -f conftest.err conftest.$ac_ext
35802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35803 echo "${ECHO_T}$ac_header_preproc" >&6
35805 # So? What about this header?
35806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35812 ac_header_preproc=yes
35815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35829 ## ------------------------------------------ ##
35830 ## Report this to the AC_PACKAGE_NAME lists. ##
35831 ## ------------------------------------------ ##
35834 sed "s/^/$as_me: WARNING: /" >&2
35837 echo "$as_me:$LINENO: checking for $ac_header" >&5
35838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35840 echo $ECHO_N "(cached) $ECHO_C" >&6
35842 eval "$as_ac_Header=\$ac_header_preproc"
35844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35849 cat >>confdefs.h <<_ACEOF
35850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35858 if test $ac_cv_header_pth_h = yes ; then
35859 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35860 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35861 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35862 echo $ECHO_N "(cached) $ECHO_C" >&6
35864 ac_check_lib_save_LIBS=$LIBS
35866 cat >conftest.$ac_ext <<_ACEOF
35869 cat confdefs.h >>conftest.$ac_ext
35870 cat >>conftest.$ac_ext <<_ACEOF
35871 /* end confdefs.h. */
35873 /* Override any gcc2 internal prototype to avoid an error. */
35877 /* We use char because int might match the return type of a gcc2
35878 builtin and then its argument prototype would still apply. */
35879 char pth_version ();
35888 rm -f conftest.$ac_objext conftest$ac_exeext
35889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35890 (eval $ac_link) 2>conftest.er1
35892 grep -v '^ *+' conftest.er1 >conftest.err
35894 cat conftest.err >&5
35895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896 (exit $ac_status); } &&
35897 { ac_try='test -z "$ac_c_werror_flag"
35898 || test ! -s conftest.err'
35899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35900 (eval $ac_try) 2>&5
35902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903 (exit $ac_status); }; } &&
35904 { ac_try='test -s conftest$ac_exeext'
35905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35906 (eval $ac_try) 2>&5
35908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909 (exit $ac_status); }; }; then
35910 ac_cv_lib_pth_pth_version=yes
35912 echo "$as_me: failed program was:" >&5
35913 sed 's/^/| /' conftest.$ac_ext >&5
35915 ac_cv_lib_pth_pth_version=no
35917 rm -f conftest.err conftest.$ac_objext \
35918 conftest$ac_exeext conftest.$ac_ext
35919 LIBS=$ac_check_lib_save_LIBS
35921 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35922 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35923 if test $ac_cv_lib_pth_pth_version = yes; then
35930 if test $have_pth = yes ; then
35932 cat >>confdefs.h <<\_ACEOF
35933 #define HAVE_GNU_PTH 1
35936 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35937 ol_link_threads=pth
35938 ol_with_threads=found
35940 if test $ol_with_yielding_select = auto ; then
35941 ol_with_yielding_select=yes
35947 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35948 -o $ol_with_threads = lwp ; then
35952 for ac_header in thread.h synch.h
35954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35956 echo "$as_me:$LINENO: checking for $ac_header" >&5
35957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35959 echo $ECHO_N "(cached) $ECHO_C" >&6
35961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35964 # Is the header compilable?
35965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35967 cat >conftest.$ac_ext <<_ACEOF
35970 cat confdefs.h >>conftest.$ac_ext
35971 cat >>conftest.$ac_ext <<_ACEOF
35972 /* end confdefs.h. */
35973 $ac_includes_default
35974 #include <$ac_header>
35976 rm -f conftest.$ac_objext
35977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35978 (eval $ac_compile) 2>conftest.er1
35980 grep -v '^ *+' conftest.er1 >conftest.err
35982 cat conftest.err >&5
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); } &&
35985 { ac_try='test -z "$ac_c_werror_flag"
35986 || test ! -s conftest.err'
35987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35988 (eval $ac_try) 2>&5
35990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35991 (exit $ac_status); }; } &&
35992 { ac_try='test -s conftest.$ac_objext'
35993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35994 (eval $ac_try) 2>&5
35996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997 (exit $ac_status); }; }; then
35998 ac_header_compiler=yes
36000 echo "$as_me: failed program was:" >&5
36001 sed 's/^/| /' conftest.$ac_ext >&5
36003 ac_header_compiler=no
36005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36007 echo "${ECHO_T}$ac_header_compiler" >&6
36009 # Is the header present?
36010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36012 cat >conftest.$ac_ext <<_ACEOF
36015 cat confdefs.h >>conftest.$ac_ext
36016 cat >>conftest.$ac_ext <<_ACEOF
36017 /* end confdefs.h. */
36018 #include <$ac_header>
36020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36023 grep -v '^ *+' conftest.er1 >conftest.err
36025 cat conftest.err >&5
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); } >/dev/null; then
36028 if test -s conftest.err; then
36029 ac_cpp_err=$ac_c_preproc_warn_flag
36030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36037 if test -z "$ac_cpp_err"; then
36038 ac_header_preproc=yes
36040 echo "$as_me: failed program was:" >&5
36041 sed 's/^/| /' conftest.$ac_ext >&5
36043 ac_header_preproc=no
36045 rm -f conftest.err conftest.$ac_ext
36046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36047 echo "${ECHO_T}$ac_header_preproc" >&6
36049 # So? What about this header?
36050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36056 ac_header_preproc=yes
36059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36073 ## ------------------------------------------ ##
36074 ## Report this to the AC_PACKAGE_NAME lists. ##
36075 ## ------------------------------------------ ##
36078 sed "s/^/$as_me: WARNING: /" >&2
36081 echo "$as_me:$LINENO: checking for $ac_header" >&5
36082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36084 echo $ECHO_N "(cached) $ECHO_C" >&6
36086 eval "$as_ac_Header=\$ac_header_preproc"
36088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36093 cat >>confdefs.h <<_ACEOF
36094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36101 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
36102 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
36103 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
36104 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
36105 echo $ECHO_N "(cached) $ECHO_C" >&6
36107 ac_check_lib_save_LIBS=$LIBS
36108 LIBS="-lthread $LIBS"
36109 cat >conftest.$ac_ext <<_ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h. */
36116 /* Override any gcc2 internal prototype to avoid an error. */
36120 /* We use char because int might match the return type of a gcc2
36121 builtin and then its argument prototype would still apply. */
36122 char thr_create ();
36131 rm -f conftest.$ac_objext conftest$ac_exeext
36132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36133 (eval $ac_link) 2>conftest.er1
36135 grep -v '^ *+' conftest.er1 >conftest.err
36137 cat conftest.err >&5
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); } &&
36140 { ac_try='test -z "$ac_c_werror_flag"
36141 || test ! -s conftest.err'
36142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143 (eval $ac_try) 2>&5
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); }; } &&
36147 { ac_try='test -s conftest$ac_exeext'
36148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36149 (eval $ac_try) 2>&5
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); }; }; then
36153 ac_cv_lib_thread_thr_create=yes
36155 echo "$as_me: failed program was:" >&5
36156 sed 's/^/| /' conftest.$ac_ext >&5
36158 ac_cv_lib_thread_thr_create=no
36160 rm -f conftest.err conftest.$ac_objext \
36161 conftest$ac_exeext conftest.$ac_ext
36162 LIBS=$ac_check_lib_save_LIBS
36164 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36165 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36166 if test $ac_cv_lib_thread_thr_create = yes; then
36173 if test $have_thr = yes ; then
36175 cat >>confdefs.h <<\_ACEOF
36179 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36180 ol_link_threads=thr
36182 if test $ol_with_yielding_select = auto ; then
36183 ol_with_yielding_select=yes
36189 thr_setconcurrency \
36190 thr_getconcurrency \
36193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36194 echo "$as_me:$LINENO: checking for $ac_func" >&5
36195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36196 if eval "test \"\${$as_ac_var+set}\" = set"; then
36197 echo $ECHO_N "(cached) $ECHO_C" >&6
36199 cat >conftest.$ac_ext <<_ACEOF
36202 cat confdefs.h >>conftest.$ac_ext
36203 cat >>conftest.$ac_ext <<_ACEOF
36204 /* end confdefs.h. */
36205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36207 #define $ac_func innocuous_$ac_func
36209 /* System header to define __stub macros and hopefully few prototypes,
36210 which can conflict with char $ac_func (); below.
36211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36212 <limits.h> exists even on freestanding compilers. */
36215 # include <limits.h>
36217 # include <assert.h>
36222 /* Override any gcc2 internal prototype to avoid an error. */
36227 /* We use char because int might match the return type of a gcc2
36228 builtin and then its argument prototype would still apply. */
36230 /* The GNU C library defines this for functions which it implements
36231 to always fail with ENOSYS. Some functions are actually named
36232 something starting with __ and the normal name is an alias. */
36233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36236 char (*f) () = $ac_func;
36245 return f != $ac_func;
36250 rm -f conftest.$ac_objext conftest$ac_exeext
36251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36252 (eval $ac_link) 2>conftest.er1
36254 grep -v '^ *+' conftest.er1 >conftest.err
36256 cat conftest.err >&5
36257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 (exit $ac_status); } &&
36259 { ac_try='test -z "$ac_c_werror_flag"
36260 || test ! -s conftest.err'
36261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36262 (eval $ac_try) 2>&5
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); }; } &&
36266 { ac_try='test -s conftest$ac_exeext'
36267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36268 (eval $ac_try) 2>&5
36270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271 (exit $ac_status); }; }; then
36272 eval "$as_ac_var=yes"
36274 echo "$as_me: failed program was:" >&5
36275 sed 's/^/| /' conftest.$ac_ext >&5
36277 eval "$as_ac_var=no"
36279 rm -f conftest.err conftest.$ac_objext \
36280 conftest$ac_exeext conftest.$ac_ext
36282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36284 if test `eval echo '${'$as_ac_var'}'` = yes; then
36285 cat >>confdefs.h <<_ACEOF
36286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36296 for ac_header in lwp/lwp.h
36298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36300 echo "$as_me:$LINENO: checking for $ac_header" >&5
36301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36303 echo $ECHO_N "(cached) $ECHO_C" >&6
36305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36308 # Is the header compilable?
36309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36311 cat >conftest.$ac_ext <<_ACEOF
36314 cat confdefs.h >>conftest.$ac_ext
36315 cat >>conftest.$ac_ext <<_ACEOF
36316 /* end confdefs.h. */
36317 $ac_includes_default
36318 #include <$ac_header>
36320 rm -f conftest.$ac_objext
36321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36322 (eval $ac_compile) 2>conftest.er1
36324 grep -v '^ *+' conftest.er1 >conftest.err
36326 cat conftest.err >&5
36327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328 (exit $ac_status); } &&
36329 { ac_try='test -z "$ac_c_werror_flag"
36330 || test ! -s conftest.err'
36331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36332 (eval $ac_try) 2>&5
36334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335 (exit $ac_status); }; } &&
36336 { ac_try='test -s conftest.$ac_objext'
36337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36338 (eval $ac_try) 2>&5
36340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341 (exit $ac_status); }; }; then
36342 ac_header_compiler=yes
36344 echo "$as_me: failed program was:" >&5
36345 sed 's/^/| /' conftest.$ac_ext >&5
36347 ac_header_compiler=no
36349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36351 echo "${ECHO_T}$ac_header_compiler" >&6
36353 # Is the header present?
36354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36356 cat >conftest.$ac_ext <<_ACEOF
36359 cat confdefs.h >>conftest.$ac_ext
36360 cat >>conftest.$ac_ext <<_ACEOF
36361 /* end confdefs.h. */
36362 #include <$ac_header>
36364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36367 grep -v '^ *+' conftest.er1 >conftest.err
36369 cat conftest.err >&5
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); } >/dev/null; then
36372 if test -s conftest.err; then
36373 ac_cpp_err=$ac_c_preproc_warn_flag
36374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36381 if test -z "$ac_cpp_err"; then
36382 ac_header_preproc=yes
36384 echo "$as_me: failed program was:" >&5
36385 sed 's/^/| /' conftest.$ac_ext >&5
36387 ac_header_preproc=no
36389 rm -f conftest.err conftest.$ac_ext
36390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36391 echo "${ECHO_T}$ac_header_preproc" >&6
36393 # So? What about this header?
36394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36400 ac_header_preproc=yes
36403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36417 ## ------------------------------------------ ##
36418 ## Report this to the AC_PACKAGE_NAME lists. ##
36419 ## ------------------------------------------ ##
36422 sed "s/^/$as_me: WARNING: /" >&2
36425 echo "$as_me:$LINENO: checking for $ac_header" >&5
36426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36428 echo $ECHO_N "(cached) $ECHO_C" >&6
36430 eval "$as_ac_Header=\$ac_header_preproc"
36432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36437 cat >>confdefs.h <<_ACEOF
36438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36445 if test $ac_cv_header_lwp_lwp_h = yes ; then
36446 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36447 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36448 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36449 echo $ECHO_N "(cached) $ECHO_C" >&6
36451 ac_check_lib_save_LIBS=$LIBS
36453 cat >conftest.$ac_ext <<_ACEOF
36456 cat confdefs.h >>conftest.$ac_ext
36457 cat >>conftest.$ac_ext <<_ACEOF
36458 /* end confdefs.h. */
36460 /* Override any gcc2 internal prototype to avoid an error. */
36464 /* We use char because int might match the return type of a gcc2
36465 builtin and then its argument prototype would still apply. */
36466 char lwp_create ();
36475 rm -f conftest.$ac_objext conftest$ac_exeext
36476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36477 (eval $ac_link) 2>conftest.er1
36479 grep -v '^ *+' conftest.er1 >conftest.err
36481 cat conftest.err >&5
36482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483 (exit $ac_status); } &&
36484 { ac_try='test -z "$ac_c_werror_flag"
36485 || test ! -s conftest.err'
36486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36487 (eval $ac_try) 2>&5
36489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490 (exit $ac_status); }; } &&
36491 { ac_try='test -s conftest$ac_exeext'
36492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36493 (eval $ac_try) 2>&5
36495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496 (exit $ac_status); }; }; then
36497 ac_cv_lib_lwp_lwp_create=yes
36499 echo "$as_me: failed program was:" >&5
36500 sed 's/^/| /' conftest.$ac_ext >&5
36502 ac_cv_lib_lwp_lwp_create=no
36504 rm -f conftest.err conftest.$ac_objext \
36505 conftest$ac_exeext conftest.$ac_ext
36506 LIBS=$ac_check_lib_save_LIBS
36508 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36509 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36510 if test $ac_cv_lib_lwp_lwp_create = yes; then
36517 if test $have_lwp = yes ; then
36519 cat >>confdefs.h <<\_ACEOF
36523 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36524 ol_link_threads=lwp
36526 if test $ol_with_yielding_select = auto ; then
36527 ol_with_yielding_select=no
36533 if test $ol_with_yielding_select = yes ; then
36535 cat >>confdefs.h <<\_ACEOF
36536 #define HAVE_YIELDING_SELECT 1
36541 if test $ol_with_threads = manual ; then
36542 ol_link_threads=yes
36544 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36545 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36549 for ac_header in pthread.h sched.h
36551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36553 echo "$as_me:$LINENO: checking for $ac_header" >&5
36554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36556 echo $ECHO_N "(cached) $ECHO_C" >&6
36558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36561 # Is the header compilable?
36562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36564 cat >conftest.$ac_ext <<_ACEOF
36567 cat confdefs.h >>conftest.$ac_ext
36568 cat >>conftest.$ac_ext <<_ACEOF
36569 /* end confdefs.h. */
36570 $ac_includes_default
36571 #include <$ac_header>
36573 rm -f conftest.$ac_objext
36574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36575 (eval $ac_compile) 2>conftest.er1
36577 grep -v '^ *+' conftest.er1 >conftest.err
36579 cat conftest.err >&5
36580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581 (exit $ac_status); } &&
36582 { ac_try='test -z "$ac_c_werror_flag"
36583 || test ! -s conftest.err'
36584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585 (eval $ac_try) 2>&5
36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 (exit $ac_status); }; } &&
36589 { ac_try='test -s conftest.$ac_objext'
36590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591 (eval $ac_try) 2>&5
36593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594 (exit $ac_status); }; }; then
36595 ac_header_compiler=yes
36597 echo "$as_me: failed program was:" >&5
36598 sed 's/^/| /' conftest.$ac_ext >&5
36600 ac_header_compiler=no
36602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36604 echo "${ECHO_T}$ac_header_compiler" >&6
36606 # Is the header present?
36607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36609 cat >conftest.$ac_ext <<_ACEOF
36612 cat confdefs.h >>conftest.$ac_ext
36613 cat >>conftest.$ac_ext <<_ACEOF
36614 /* end confdefs.h. */
36615 #include <$ac_header>
36617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36620 grep -v '^ *+' conftest.er1 >conftest.err
36622 cat conftest.err >&5
36623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624 (exit $ac_status); } >/dev/null; then
36625 if test -s conftest.err; then
36626 ac_cpp_err=$ac_c_preproc_warn_flag
36627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36634 if test -z "$ac_cpp_err"; then
36635 ac_header_preproc=yes
36637 echo "$as_me: failed program was:" >&5
36638 sed 's/^/| /' conftest.$ac_ext >&5
36640 ac_header_preproc=no
36642 rm -f conftest.err conftest.$ac_ext
36643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36644 echo "${ECHO_T}$ac_header_preproc" >&6
36646 # So? What about this header?
36647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36653 ac_header_preproc=yes
36656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36670 ## ------------------------------------------ ##
36671 ## Report this to the AC_PACKAGE_NAME lists. ##
36672 ## ------------------------------------------ ##
36675 sed "s/^/$as_me: WARNING: /" >&2
36678 echo "$as_me:$LINENO: checking for $ac_header" >&5
36679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36681 echo $ECHO_N "(cached) $ECHO_C" >&6
36683 eval "$as_ac_Header=\$ac_header_preproc"
36685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36690 cat >>confdefs.h <<_ACEOF
36691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36700 for ac_func in sched_yield pthread_yield
36702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36703 echo "$as_me:$LINENO: checking for $ac_func" >&5
36704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36705 if eval "test \"\${$as_ac_var+set}\" = set"; then
36706 echo $ECHO_N "(cached) $ECHO_C" >&6
36708 cat >conftest.$ac_ext <<_ACEOF
36711 cat confdefs.h >>conftest.$ac_ext
36712 cat >>conftest.$ac_ext <<_ACEOF
36713 /* end confdefs.h. */
36714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36716 #define $ac_func innocuous_$ac_func
36718 /* System header to define __stub macros and hopefully few prototypes,
36719 which can conflict with char $ac_func (); below.
36720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36721 <limits.h> exists even on freestanding compilers. */
36724 # include <limits.h>
36726 # include <assert.h>
36731 /* Override any gcc2 internal prototype to avoid an error. */
36736 /* We use char because int might match the return type of a gcc2
36737 builtin and then its argument prototype would still apply. */
36739 /* The GNU C library defines this for functions which it implements
36740 to always fail with ENOSYS. Some functions are actually named
36741 something starting with __ and the normal name is an alias. */
36742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36745 char (*f) () = $ac_func;
36754 return f != $ac_func;
36759 rm -f conftest.$ac_objext conftest$ac_exeext
36760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36761 (eval $ac_link) 2>conftest.er1
36763 grep -v '^ *+' conftest.er1 >conftest.err
36765 cat conftest.err >&5
36766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767 (exit $ac_status); } &&
36768 { ac_try='test -z "$ac_c_werror_flag"
36769 || test ! -s conftest.err'
36770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36771 (eval $ac_try) 2>&5
36773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774 (exit $ac_status); }; } &&
36775 { ac_try='test -s conftest$ac_exeext'
36776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36777 (eval $ac_try) 2>&5
36779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36780 (exit $ac_status); }; }; then
36781 eval "$as_ac_var=yes"
36783 echo "$as_me: failed program was:" >&5
36784 sed 's/^/| /' conftest.$ac_ext >&5
36786 eval "$as_ac_var=no"
36788 rm -f conftest.err conftest.$ac_objext \
36789 conftest$ac_exeext conftest.$ac_ext
36791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36793 if test `eval echo '${'$as_ac_var'}'` = yes; then
36794 cat >>confdefs.h <<_ACEOF
36795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36802 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36803 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36804 if test "${ol_cv_header_linux_threads+set}" = set; then
36805 echo $ECHO_N "(cached) $ECHO_C" >&6
36807 cat >conftest.$ac_ext <<_ACEOF
36810 cat confdefs.h >>conftest.$ac_ext
36811 cat >>conftest.$ac_ext <<_ACEOF
36812 /* end confdefs.h. */
36813 #include <pthread.h>
36815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36816 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36817 ol_cv_header_linux_threads=yes
36819 ol_cv_header_linux_threads=no
36825 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36826 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36827 if test $ol_cv_header_linux_threads = yes; then
36829 cat >>confdefs.h <<\_ACEOF
36830 #define HAVE_LINUX_THREADS 1
36837 for ac_header in mach/cthreads.h
36839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36841 echo "$as_me:$LINENO: checking for $ac_header" >&5
36842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36844 echo $ECHO_N "(cached) $ECHO_C" >&6
36846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36849 # Is the header compilable?
36850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36852 cat >conftest.$ac_ext <<_ACEOF
36855 cat confdefs.h >>conftest.$ac_ext
36856 cat >>conftest.$ac_ext <<_ACEOF
36857 /* end confdefs.h. */
36858 $ac_includes_default
36859 #include <$ac_header>
36861 rm -f conftest.$ac_objext
36862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36863 (eval $ac_compile) 2>conftest.er1
36865 grep -v '^ *+' conftest.er1 >conftest.err
36867 cat conftest.err >&5
36868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); } &&
36870 { ac_try='test -z "$ac_c_werror_flag"
36871 || test ! -s conftest.err'
36872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873 (eval $ac_try) 2>&5
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); }; } &&
36877 { ac_try='test -s conftest.$ac_objext'
36878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879 (eval $ac_try) 2>&5
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; }; then
36883 ac_header_compiler=yes
36885 echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36888 ac_header_compiler=no
36890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36892 echo "${ECHO_T}$ac_header_compiler" >&6
36894 # Is the header present?
36895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36897 cat >conftest.$ac_ext <<_ACEOF
36900 cat confdefs.h >>conftest.$ac_ext
36901 cat >>conftest.$ac_ext <<_ACEOF
36902 /* end confdefs.h. */
36903 #include <$ac_header>
36905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36908 grep -v '^ *+' conftest.er1 >conftest.err
36910 cat conftest.err >&5
36911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912 (exit $ac_status); } >/dev/null; then
36913 if test -s conftest.err; then
36914 ac_cpp_err=$ac_c_preproc_warn_flag
36915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36922 if test -z "$ac_cpp_err"; then
36923 ac_header_preproc=yes
36925 echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36928 ac_header_preproc=no
36930 rm -f conftest.err conftest.$ac_ext
36931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36932 echo "${ECHO_T}$ac_header_preproc" >&6
36934 # So? What about this header?
36935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36941 ac_header_preproc=yes
36944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36958 ## ------------------------------------------ ##
36959 ## Report this to the AC_PACKAGE_NAME lists. ##
36960 ## ------------------------------------------ ##
36963 sed "s/^/$as_me: WARNING: /" >&2
36966 echo "$as_me:$LINENO: checking for $ac_header" >&5
36967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36969 echo $ECHO_N "(cached) $ECHO_C" >&6
36971 eval "$as_ac_Header=\$ac_header_preproc"
36973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36978 cat >>confdefs.h <<_ACEOF
36979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36987 for ac_header in lwp/lwp.h
36989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36991 echo "$as_me:$LINENO: checking for $ac_header" >&5
36992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36994 echo $ECHO_N "(cached) $ECHO_C" >&6
36996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36999 # Is the header compilable?
37000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37002 cat >conftest.$ac_ext <<_ACEOF
37005 cat confdefs.h >>conftest.$ac_ext
37006 cat >>conftest.$ac_ext <<_ACEOF
37007 /* end confdefs.h. */
37008 $ac_includes_default
37009 #include <$ac_header>
37011 rm -f conftest.$ac_objext
37012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37013 (eval $ac_compile) 2>conftest.er1
37015 grep -v '^ *+' conftest.er1 >conftest.err
37017 cat conftest.err >&5
37018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); } &&
37020 { ac_try='test -z "$ac_c_werror_flag"
37021 || test ! -s conftest.err'
37022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023 (eval $ac_try) 2>&5
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); }; } &&
37027 { ac_try='test -s conftest.$ac_objext'
37028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37029 (eval $ac_try) 2>&5
37031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); }; }; then
37033 ac_header_compiler=yes
37035 echo "$as_me: failed program was:" >&5
37036 sed 's/^/| /' conftest.$ac_ext >&5
37038 ac_header_compiler=no
37040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37042 echo "${ECHO_T}$ac_header_compiler" >&6
37044 # Is the header present?
37045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37047 cat >conftest.$ac_ext <<_ACEOF
37050 cat confdefs.h >>conftest.$ac_ext
37051 cat >>conftest.$ac_ext <<_ACEOF
37052 /* end confdefs.h. */
37053 #include <$ac_header>
37055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37058 grep -v '^ *+' conftest.er1 >conftest.err
37060 cat conftest.err >&5
37061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062 (exit $ac_status); } >/dev/null; then
37063 if test -s conftest.err; then
37064 ac_cpp_err=$ac_c_preproc_warn_flag
37065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37072 if test -z "$ac_cpp_err"; then
37073 ac_header_preproc=yes
37075 echo "$as_me: failed program was:" >&5
37076 sed 's/^/| /' conftest.$ac_ext >&5
37078 ac_header_preproc=no
37080 rm -f conftest.err conftest.$ac_ext
37081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37082 echo "${ECHO_T}$ac_header_preproc" >&6
37084 # So? What about this header?
37085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37091 ac_header_preproc=yes
37094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37108 ## ------------------------------------------ ##
37109 ## Report this to the AC_PACKAGE_NAME lists. ##
37110 ## ------------------------------------------ ##
37113 sed "s/^/$as_me: WARNING: /" >&2
37116 echo "$as_me:$LINENO: checking for $ac_header" >&5
37117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37119 echo $ECHO_N "(cached) $ECHO_C" >&6
37121 eval "$as_ac_Header=\$ac_header_preproc"
37123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37128 cat >>confdefs.h <<_ACEOF
37129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37138 for ac_header in thread.h synch.h
37140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37142 echo "$as_me:$LINENO: checking for $ac_header" >&5
37143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37145 echo $ECHO_N "(cached) $ECHO_C" >&6
37147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37150 # Is the header compilable?
37151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37153 cat >conftest.$ac_ext <<_ACEOF
37156 cat confdefs.h >>conftest.$ac_ext
37157 cat >>conftest.$ac_ext <<_ACEOF
37158 /* end confdefs.h. */
37159 $ac_includes_default
37160 #include <$ac_header>
37162 rm -f conftest.$ac_objext
37163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37164 (eval $ac_compile) 2>conftest.er1
37166 grep -v '^ *+' conftest.er1 >conftest.err
37168 cat conftest.err >&5
37169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170 (exit $ac_status); } &&
37171 { ac_try='test -z "$ac_c_werror_flag"
37172 || test ! -s conftest.err'
37173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174 (eval $ac_try) 2>&5
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); }; } &&
37178 { ac_try='test -s conftest.$ac_objext'
37179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37180 (eval $ac_try) 2>&5
37182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183 (exit $ac_status); }; }; then
37184 ac_header_compiler=yes
37186 echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37189 ac_header_compiler=no
37191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37193 echo "${ECHO_T}$ac_header_compiler" >&6
37195 # Is the header present?
37196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37198 cat >conftest.$ac_ext <<_ACEOF
37201 cat confdefs.h >>conftest.$ac_ext
37202 cat >>conftest.$ac_ext <<_ACEOF
37203 /* end confdefs.h. */
37204 #include <$ac_header>
37206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37209 grep -v '^ *+' conftest.er1 >conftest.err
37211 cat conftest.err >&5
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); } >/dev/null; then
37214 if test -s conftest.err; then
37215 ac_cpp_err=$ac_c_preproc_warn_flag
37216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37223 if test -z "$ac_cpp_err"; then
37224 ac_header_preproc=yes
37226 echo "$as_me: failed program was:" >&5
37227 sed 's/^/| /' conftest.$ac_ext >&5
37229 ac_header_preproc=no
37231 rm -f conftest.err conftest.$ac_ext
37232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37233 echo "${ECHO_T}$ac_header_preproc" >&6
37235 # So? What about this header?
37236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37242 ac_header_preproc=yes
37245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37259 ## ------------------------------------------ ##
37260 ## Report this to the AC_PACKAGE_NAME lists. ##
37261 ## ------------------------------------------ ##
37264 sed "s/^/$as_me: WARNING: /" >&2
37267 echo "$as_me:$LINENO: checking for $ac_header" >&5
37268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37270 echo $ECHO_N "(cached) $ECHO_C" >&6
37272 eval "$as_ac_Header=\$ac_header_preproc"
37274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37279 cat >>confdefs.h <<_ACEOF
37280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37289 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37290 cat >>confdefs.h <<\_ACEOF
37291 #define REENTRANT 1
37294 cat >>confdefs.h <<\_ACEOF
37295 #define _REENTRANT 1
37298 cat >>confdefs.h <<\_ACEOF
37299 #define THREAD_SAFE 1
37302 cat >>confdefs.h <<\_ACEOF
37303 #define _THREAD_SAFE 1
37306 cat >>confdefs.h <<\_ACEOF
37307 #define THREADSAFE 1
37310 cat >>confdefs.h <<\_ACEOF
37311 #define _THREADSAFE 1
37314 cat >>confdefs.h <<\_ACEOF
37315 #define _SGI_MP_SOURCE 1
37319 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37320 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37321 if test "${ol_cv_errno_thread_specific+set}" = set; then
37322 echo $ECHO_N "(cached) $ECHO_C" >&6
37325 cat >conftest.$ac_ext <<_ACEOF
37328 cat confdefs.h >>conftest.$ac_ext
37329 cat >>conftest.$ac_ext <<_ACEOF
37330 /* end confdefs.h. */
37340 rm -f conftest.$ac_objext conftest$ac_exeext
37341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37342 (eval $ac_link) 2>conftest.er1
37344 grep -v '^ *+' conftest.er1 >conftest.err
37346 cat conftest.err >&5
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); } &&
37349 { ac_try='test -z "$ac_c_werror_flag"
37350 || test ! -s conftest.err'
37351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352 (eval $ac_try) 2>&5
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); }; } &&
37356 { ac_try='test -s conftest$ac_exeext'
37357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358 (eval $ac_try) 2>&5
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); }; }; then
37362 ol_cv_errno_thread_specific=yes
37364 echo "$as_me: failed program was:" >&5
37365 sed 's/^/| /' conftest.$ac_ext >&5
37367 ol_cv_errno_thread_specific=no
37369 rm -f conftest.err conftest.$ac_objext \
37370 conftest$ac_exeext conftest.$ac_ext
37373 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37374 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37376 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37377 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37378 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37379 echo $ECHO_N "(cached) $ECHO_C" >&6
37382 cat >conftest.$ac_ext <<_ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h. */
37397 rm -f conftest.$ac_objext conftest$ac_exeext
37398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37399 (eval $ac_link) 2>conftest.er1
37401 grep -v '^ *+' conftest.er1 >conftest.err
37403 cat conftest.err >&5
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); } &&
37406 { ac_try='test -z "$ac_c_werror_flag"
37407 || test ! -s conftest.err'
37408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409 (eval $ac_try) 2>&5
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); }; } &&
37413 { ac_try='test -s conftest$ac_exeext'
37414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415 (eval $ac_try) 2>&5
37417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); }; }; then
37419 ol_cv_h_errno_thread_specific=yes
37421 echo "$as_me: failed program was:" >&5
37422 sed 's/^/| /' conftest.$ac_ext >&5
37424 ol_cv_h_errno_thread_specific=no
37426 rm -f conftest.err conftest.$ac_objext \
37427 conftest$ac_exeext conftest.$ac_ext
37430 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37431 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37433 if test $ol_cv_errno_thread_specific != yes \
37434 -o $ol_cv_h_errno_thread_specific != yes ; then
37435 LIBS="$LTHREAD_LIBS $LIBS"
37441 if test $ol_link_threads = no ; then
37442 if test $ol_with_threads = yes ; then
37443 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37444 echo "$as_me: error: no suitable thread support" >&2;}
37445 { (exit 1); exit 1; }; }
37448 if test $ol_with_threads = auto ; then
37449 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37450 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37455 cat >>confdefs.h <<\_ACEOF
37456 #define NO_THREADS 1
37462 if test $ol_link_threads != no ; then
37464 cat >>confdefs.h <<\_ACEOF
37465 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37475 gethostbyname_r gethostbyaddr_r \
37478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37479 echo "$as_me:$LINENO: checking for $ac_func" >&5
37480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37481 if eval "test \"\${$as_ac_var+set}\" = set"; then
37482 echo $ECHO_N "(cached) $ECHO_C" >&6
37484 cat >conftest.$ac_ext <<_ACEOF
37487 cat confdefs.h >>conftest.$ac_ext
37488 cat >>conftest.$ac_ext <<_ACEOF
37489 /* end confdefs.h. */
37490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37492 #define $ac_func innocuous_$ac_func
37494 /* System header to define __stub macros and hopefully few prototypes,
37495 which can conflict with char $ac_func (); below.
37496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37497 <limits.h> exists even on freestanding compilers. */
37500 # include <limits.h>
37502 # include <assert.h>
37507 /* Override any gcc2 internal prototype to avoid an error. */
37512 /* We use char because int might match the return type of a gcc2
37513 builtin and then its argument prototype would still apply. */
37515 /* The GNU C library defines this for functions which it implements
37516 to always fail with ENOSYS. Some functions are actually named
37517 something starting with __ and the normal name is an alias. */
37518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37521 char (*f) () = $ac_func;
37530 return f != $ac_func;
37535 rm -f conftest.$ac_objext conftest$ac_exeext
37536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37537 (eval $ac_link) 2>conftest.er1
37539 grep -v '^ *+' conftest.er1 >conftest.err
37541 cat conftest.err >&5
37542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543 (exit $ac_status); } &&
37544 { ac_try='test -z "$ac_c_werror_flag"
37545 || test ! -s conftest.err'
37546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37547 (eval $ac_try) 2>&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); }; } &&
37551 { ac_try='test -s conftest$ac_exeext'
37552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37553 (eval $ac_try) 2>&5
37555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556 (exit $ac_status); }; }; then
37557 eval "$as_ac_var=yes"
37559 echo "$as_me: failed program was:" >&5
37560 sed 's/^/| /' conftest.$ac_ext >&5
37562 eval "$as_ac_var=no"
37564 rm -f conftest.err conftest.$ac_objext \
37565 conftest$ac_exeext conftest.$ac_ext
37567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37569 if test `eval echo '${'$as_ac_var'}'` = yes; then
37570 cat >>confdefs.h <<_ACEOF
37571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37578 if test "$ac_cv_func_ctime_r" = no ; then
37579 ol_cv_func_ctime_r_nargs=0
37581 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37582 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37583 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37584 echo $ECHO_N "(cached) $ECHO_C" >&6
37586 cat >conftest.$ac_ext <<_ACEOF
37589 cat confdefs.h >>conftest.$ac_ext
37590 cat >>conftest.$ac_ext <<_ACEOF
37591 /* end confdefs.h. */
37596 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37601 rm -f conftest.$ac_objext
37602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37603 (eval $ac_compile) 2>conftest.er1
37605 grep -v '^ *+' conftest.er1 >conftest.err
37607 cat conftest.err >&5
37608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609 (exit $ac_status); } &&
37610 { ac_try='test -z "$ac_c_werror_flag"
37611 || test ! -s conftest.err'
37612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37613 (eval $ac_try) 2>&5
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); }; } &&
37617 { ac_try='test -s conftest.$ac_objext'
37618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37619 (eval $ac_try) 2>&5
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); }; }; then
37623 ol_cv_func_ctime_r_nargs3=yes
37625 echo "$as_me: failed program was:" >&5
37626 sed 's/^/| /' conftest.$ac_ext >&5
37628 ol_cv_func_ctime_r_nargs3=no
37630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37632 cat >conftest.$ac_ext <<_ACEOF
37635 cat confdefs.h >>conftest.$ac_ext
37636 cat >>conftest.$ac_ext <<_ACEOF
37637 /* end confdefs.h. */
37642 time_t ti; char *buffer; ctime_r(&ti,buffer);
37647 rm -f conftest.$ac_objext
37648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37649 (eval $ac_compile) 2>conftest.er1
37651 grep -v '^ *+' conftest.er1 >conftest.err
37653 cat conftest.err >&5
37654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655 (exit $ac_status); } &&
37656 { ac_try='test -z "$ac_c_werror_flag"
37657 || test ! -s conftest.err'
37658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37659 (eval $ac_try) 2>&5
37661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662 (exit $ac_status); }; } &&
37663 { ac_try='test -s conftest.$ac_objext'
37664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37665 (eval $ac_try) 2>&5
37667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668 (exit $ac_status); }; }; then
37669 ol_cv_func_ctime_r_nargs2=yes
37671 echo "$as_me: failed program was:" >&5
37672 sed 's/^/| /' conftest.$ac_ext >&5
37674 ol_cv_func_ctime_r_nargs2=no
37676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37678 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37679 $ol_cv_func_ctime_r_nargs2 = no ; then
37681 ol_cv_func_ctime_r_nargs=3
37683 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37684 $ol_cv_func_ctime_r_nargs2 = yes ; then
37686 ol_cv_func_ctime_r_nargs=2
37689 ol_cv_func_ctime_r_nargs=0
37693 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37694 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37696 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37698 cat >>confdefs.h <<_ACEOF
37699 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37706 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37707 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37708 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37709 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37710 echo $ECHO_N "(cached) $ECHO_C" >&6
37712 cat >conftest.$ac_ext <<_ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h. */
37718 #include <sys/types.h>
37719 #include <sys/socket.h>
37720 #include <netinet/in.h>
37722 #define BUFSIZE (sizeof(struct hostent)+10)
37726 struct hostent hent; char buffer[BUFSIZE];
37727 int bufsize=BUFSIZE;int h_errno;
37728 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37729 buffer, bufsize, &h_errno);
37734 rm -f conftest.$ac_objext
37735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37736 (eval $ac_compile) 2>conftest.er1
37738 grep -v '^ *+' conftest.er1 >conftest.err
37740 cat conftest.err >&5
37741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37742 (exit $ac_status); } &&
37743 { ac_try='test -z "$ac_c_werror_flag"
37744 || test ! -s conftest.err'
37745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37746 (eval $ac_try) 2>&5
37748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749 (exit $ac_status); }; } &&
37750 { ac_try='test -s conftest.$ac_objext'
37751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37752 (eval $ac_try) 2>&5
37754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755 (exit $ac_status); }; }; then
37756 ol_cv_func_gethostbyname_r_nargs5=yes
37758 echo "$as_me: failed program was:" >&5
37759 sed 's/^/| /' conftest.$ac_ext >&5
37761 ol_cv_func_gethostbyname_r_nargs5=no
37763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37765 cat >conftest.$ac_ext <<_ACEOF
37768 cat confdefs.h >>conftest.$ac_ext
37769 cat >>conftest.$ac_ext <<_ACEOF
37770 /* end confdefs.h. */
37771 #include <sys/types.h>
37772 #include <sys/socket.h>
37773 #include <netinet/in.h>
37775 #define BUFSIZE (sizeof(struct hostent)+10)
37779 struct hostent hent;struct hostent *rhent;
37780 char buffer[BUFSIZE];
37781 int bufsize=BUFSIZE;int h_errno;
37782 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37788 rm -f conftest.$ac_objext
37789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37790 (eval $ac_compile) 2>conftest.er1
37792 grep -v '^ *+' conftest.er1 >conftest.err
37794 cat conftest.err >&5
37795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796 (exit $ac_status); } &&
37797 { ac_try='test -z "$ac_c_werror_flag"
37798 || test ! -s conftest.err'
37799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37800 (eval $ac_try) 2>&5
37802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803 (exit $ac_status); }; } &&
37804 { ac_try='test -s conftest.$ac_objext'
37805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37806 (eval $ac_try) 2>&5
37808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809 (exit $ac_status); }; }; then
37810 ol_cv_func_gethostbyname_r_nargs6=yes
37812 echo "$as_me: failed program was:" >&5
37813 sed 's/^/| /' conftest.$ac_ext >&5
37815 ol_cv_func_gethostbyname_r_nargs6=no
37817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37819 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37820 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37822 ol_cv_func_gethostbyname_r_nargs=5
37824 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37825 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37827 ol_cv_func_gethostbyname_r_nargs=6
37830 ol_cv_func_gethostbyname_r_nargs=0
37834 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37835 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37836 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37838 cat >>confdefs.h <<_ACEOF
37839 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37845 ol_cv_func_gethostbyname_r_nargs=0
37848 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37849 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37850 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37851 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37852 echo $ECHO_N "(cached) $ECHO_C" >&6
37854 cat >conftest.$ac_ext <<_ACEOF
37857 cat confdefs.h >>conftest.$ac_ext
37858 cat >>conftest.$ac_ext <<_ACEOF
37859 /* end confdefs.h. */
37860 #include <sys/types.h>
37861 #include <sys/socket.h>
37862 #include <netinet/in.h>
37864 #define BUFSIZE (sizeof(struct hostent)+10)
37868 struct hostent hent; char buffer[BUFSIZE];
37869 struct in_addr add;
37870 size_t alen=sizeof(struct in_addr);
37871 int bufsize=BUFSIZE;int h_errno;
37872 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37873 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37878 rm -f conftest.$ac_objext
37879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37880 (eval $ac_compile) 2>conftest.er1
37882 grep -v '^ *+' conftest.er1 >conftest.err
37884 cat conftest.err >&5
37885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); } &&
37887 { ac_try='test -z "$ac_c_werror_flag"
37888 || test ! -s conftest.err'
37889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37890 (eval $ac_try) 2>&5
37892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37893 (exit $ac_status); }; } &&
37894 { ac_try='test -s conftest.$ac_objext'
37895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37896 (eval $ac_try) 2>&5
37898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899 (exit $ac_status); }; }; then
37900 ol_cv_func_gethostbyaddr_r_nargs7=yes
37902 echo "$as_me: failed program was:" >&5
37903 sed 's/^/| /' conftest.$ac_ext >&5
37905 ol_cv_func_gethostbyaddr_r_nargs7=no
37907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37909 cat >conftest.$ac_ext <<_ACEOF
37912 cat confdefs.h >>conftest.$ac_ext
37913 cat >>conftest.$ac_ext <<_ACEOF
37914 /* end confdefs.h. */
37915 #include <sys/types.h>
37916 #include <sys/socket.h>
37917 #include <netinet/in.h>
37919 #define BUFSIZE (sizeof(struct hostent)+10)
37923 struct hostent hent;
37924 struct hostent *rhent; char buffer[BUFSIZE];
37925 struct in_addr add;
37926 size_t alen=sizeof(struct in_addr);
37927 int bufsize=BUFSIZE;int h_errno;
37928 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37929 alen, AF_INET, &hent, buffer, bufsize,
37935 rm -f conftest.$ac_objext
37936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37937 (eval $ac_compile) 2>conftest.er1
37939 grep -v '^ *+' conftest.er1 >conftest.err
37941 cat conftest.err >&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); } &&
37944 { ac_try='test -z "$ac_c_werror_flag"
37945 || test ! -s conftest.err'
37946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37947 (eval $ac_try) 2>&5
37949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950 (exit $ac_status); }; } &&
37951 { ac_try='test -s conftest.$ac_objext'
37952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37953 (eval $ac_try) 2>&5
37955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956 (exit $ac_status); }; }; then
37957 ol_cv_func_gethostbyaddr_r_nargs8=yes
37959 echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37962 ol_cv_func_gethostbyaddr_r_nargs8=no
37964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37966 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37967 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37969 ol_cv_func_gethostbyaddr_r_nargs=7
37971 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37972 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37974 ol_cv_func_gethostbyaddr_r_nargs=8
37977 ol_cv_func_gethostbyaddr_r_nargs=0
37981 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37982 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37983 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37985 cat >>confdefs.h <<_ACEOF
37986 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37992 ol_cv_func_gethostbyaddr_r_nargs=0
37997 if test $ol_enable_ldbm_api = auto \
37998 -o $ol_enable_ldbm_api = berkeley \
37999 -o $ol_enable_ldbm_api = bcompat ; then
38001 if test $ol_enable_ldbm_api = bcompat; then \
38004 for ac_header in db_185.h db.h
38006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38008 echo "$as_me:$LINENO: checking for $ac_header" >&5
38009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38011 echo $ECHO_N "(cached) $ECHO_C" >&6
38013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38016 # Is the header compilable?
38017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38019 cat >conftest.$ac_ext <<_ACEOF
38022 cat confdefs.h >>conftest.$ac_ext
38023 cat >>conftest.$ac_ext <<_ACEOF
38024 /* end confdefs.h. */
38025 $ac_includes_default
38026 #include <$ac_header>
38028 rm -f conftest.$ac_objext
38029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38030 (eval $ac_compile) 2>conftest.er1
38032 grep -v '^ *+' conftest.er1 >conftest.err
38034 cat conftest.err >&5
38035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036 (exit $ac_status); } &&
38037 { ac_try='test -z "$ac_c_werror_flag"
38038 || test ! -s conftest.err'
38039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040 (eval $ac_try) 2>&5
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); }; } &&
38044 { ac_try='test -s conftest.$ac_objext'
38045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38046 (eval $ac_try) 2>&5
38048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049 (exit $ac_status); }; }; then
38050 ac_header_compiler=yes
38052 echo "$as_me: failed program was:" >&5
38053 sed 's/^/| /' conftest.$ac_ext >&5
38055 ac_header_compiler=no
38057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38059 echo "${ECHO_T}$ac_header_compiler" >&6
38061 # Is the header present?
38062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38064 cat >conftest.$ac_ext <<_ACEOF
38067 cat confdefs.h >>conftest.$ac_ext
38068 cat >>conftest.$ac_ext <<_ACEOF
38069 /* end confdefs.h. */
38070 #include <$ac_header>
38072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38075 grep -v '^ *+' conftest.er1 >conftest.err
38077 cat conftest.err >&5
38078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079 (exit $ac_status); } >/dev/null; then
38080 if test -s conftest.err; then
38081 ac_cpp_err=$ac_c_preproc_warn_flag
38082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38089 if test -z "$ac_cpp_err"; then
38090 ac_header_preproc=yes
38092 echo "$as_me: failed program was:" >&5
38093 sed 's/^/| /' conftest.$ac_ext >&5
38095 ac_header_preproc=no
38097 rm -f conftest.err conftest.$ac_ext
38098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38099 echo "${ECHO_T}$ac_header_preproc" >&6
38101 # So? What about this header?
38102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38108 ac_header_preproc=yes
38111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38125 ## ------------------------------------------ ##
38126 ## Report this to the AC_PACKAGE_NAME lists. ##
38127 ## ------------------------------------------ ##
38130 sed "s/^/$as_me: WARNING: /" >&2
38133 echo "$as_me:$LINENO: checking for $ac_header" >&5
38134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38136 echo $ECHO_N "(cached) $ECHO_C" >&6
38138 eval "$as_ac_Header=\$ac_header_preproc"
38140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38145 cat >>confdefs.h <<_ACEOF
38146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38153 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38154 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38155 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38156 if test "${ol_cv_header_db1+set}" = set; then
38157 echo $ECHO_N "(cached) $ECHO_C" >&6
38160 cat >conftest.$ac_ext <<_ACEOF
38163 cat confdefs.h >>conftest.$ac_ext
38164 cat >>conftest.$ac_ext <<_ACEOF
38165 /* end confdefs.h. */
38168 # include <db_185.h>
38173 /* this check could be improved */
38174 #ifndef DB_VERSION_MAJOR
38175 # define DB_VERSION_MAJOR 1
38178 #if DB_VERSION_MAJOR == 1
38183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38184 $EGREP "__db_version_1" >/dev/null 2>&1; then
38185 ol_cv_header_db1=yes
38187 ol_cv_header_db1=no
38192 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38193 echo "${ECHO_T}$ol_cv_header_db1" >&6
38195 if test $ol_cv_header_db1 = yes ; then
38197 if test $ol_cv_lib_db = no ; then
38198 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38199 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38200 if test "${ol_cv_db_none+set}" = set; then
38201 echo $ECHO_N "(cached) $ECHO_C" >&6
38206 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38208 cat >conftest.$ac_ext <<_ACEOF
38211 cat confdefs.h >>conftest.$ac_ext
38212 cat >>conftest.$ac_ext <<_ACEOF
38213 /* end confdefs.h. */
38215 #ifdef HAVE_DB_185_H
38216 # include <db_185.h>
38221 #ifndef DB_VERSION_MAJOR
38222 # define DB_VERSION_MAJOR 1
38226 #define NULL ((void*)0)
38233 #if DB_VERSION_MAJOR > 1
38236 int major, minor, patch;
38238 version = db_version( &major, &minor, &patch );
38240 if( major != DB_VERSION_MAJOR ||
38241 minor < DB_VERSION_MINOR )
38243 printf("Berkeley DB version mismatch\n"
38244 "\theader: %s\n\tlibrary: %s\n",
38245 DB_VERSION_STRING, version);
38251 #if DB_VERSION_MAJOR > 2
38252 db_env_create( NULL, 0 );
38253 #elif DB_VERSION_MAJOR > 1
38254 db_appexit( NULL );
38256 (void) dbopen( NULL, 0, 0, 0, NULL);
38263 rm -f conftest.$ac_objext conftest$ac_exeext
38264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38265 (eval $ac_link) 2>conftest.er1
38267 grep -v '^ *+' conftest.er1 >conftest.err
38269 cat conftest.err >&5
38270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271 (exit $ac_status); } &&
38272 { ac_try='test -z "$ac_c_werror_flag"
38273 || test ! -s conftest.err'
38274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38275 (eval $ac_try) 2>&5
38277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278 (exit $ac_status); }; } &&
38279 { ac_try='test -s conftest$ac_exeext'
38280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38281 (eval $ac_try) 2>&5
38283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284 (exit $ac_status); }; }; then
38287 echo "$as_me: failed program was:" >&5
38288 sed 's/^/| /' conftest.$ac_ext >&5
38292 rm -f conftest.err conftest.$ac_objext \
38293 conftest$ac_exeext conftest.$ac_ext
38298 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38299 echo "${ECHO_T}$ol_cv_db_none" >&6
38301 if test $ol_cv_db_none = yes ; then
38306 if test $ol_cv_lib_db = no ; then
38307 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38308 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38309 if test "${ol_cv_db_db43+set}" = set; then
38310 echo $ECHO_N "(cached) $ECHO_C" >&6
38315 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38317 cat >conftest.$ac_ext <<_ACEOF
38320 cat confdefs.h >>conftest.$ac_ext
38321 cat >>conftest.$ac_ext <<_ACEOF
38322 /* end confdefs.h. */
38324 #ifdef HAVE_DB_185_H
38325 # include <db_185.h>
38330 #ifndef DB_VERSION_MAJOR
38331 # define DB_VERSION_MAJOR 1
38335 #define NULL ((void*)0)
38342 #if DB_VERSION_MAJOR > 1
38345 int major, minor, patch;
38347 version = db_version( &major, &minor, &patch );
38349 if( major != DB_VERSION_MAJOR ||
38350 minor < DB_VERSION_MINOR )
38352 printf("Berkeley DB version mismatch\n"
38353 "\theader: %s\n\tlibrary: %s\n",
38354 DB_VERSION_STRING, version);
38360 #if DB_VERSION_MAJOR > 2
38361 db_env_create( NULL, 0 );
38362 #elif DB_VERSION_MAJOR > 1
38363 db_appexit( NULL );
38365 (void) dbopen( NULL, 0, 0, 0, NULL);
38372 rm -f conftest.$ac_objext conftest$ac_exeext
38373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38374 (eval $ac_link) 2>conftest.er1
38376 grep -v '^ *+' conftest.er1 >conftest.err
38378 cat conftest.err >&5
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); } &&
38381 { ac_try='test -z "$ac_c_werror_flag"
38382 || test ! -s conftest.err'
38383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38384 (eval $ac_try) 2>&5
38386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387 (exit $ac_status); }; } &&
38388 { ac_try='test -s conftest$ac_exeext'
38389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390 (eval $ac_try) 2>&5
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); }; }; then
38396 echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38401 rm -f conftest.err conftest.$ac_objext \
38402 conftest$ac_exeext conftest.$ac_ext
38407 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38408 echo "${ECHO_T}$ol_cv_db_db43" >&6
38410 if test $ol_cv_db_db43 = yes ; then
38411 ol_cv_lib_db=-ldb43
38415 if test $ol_cv_lib_db = no ; then
38416 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38417 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38418 if test "${ol_cv_db_db_43+set}" = set; then
38419 echo $ECHO_N "(cached) $ECHO_C" >&6
38424 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38426 cat >conftest.$ac_ext <<_ACEOF
38429 cat confdefs.h >>conftest.$ac_ext
38430 cat >>conftest.$ac_ext <<_ACEOF
38431 /* end confdefs.h. */
38433 #ifdef HAVE_DB_185_H
38434 # include <db_185.h>
38439 #ifndef DB_VERSION_MAJOR
38440 # define DB_VERSION_MAJOR 1
38444 #define NULL ((void*)0)
38451 #if DB_VERSION_MAJOR > 1
38454 int major, minor, patch;
38456 version = db_version( &major, &minor, &patch );
38458 if( major != DB_VERSION_MAJOR ||
38459 minor < DB_VERSION_MINOR )
38461 printf("Berkeley DB version mismatch\n"
38462 "\theader: %s\n\tlibrary: %s\n",
38463 DB_VERSION_STRING, version);
38469 #if DB_VERSION_MAJOR > 2
38470 db_env_create( NULL, 0 );
38471 #elif DB_VERSION_MAJOR > 1
38472 db_appexit( NULL );
38474 (void) dbopen( NULL, 0, 0, 0, NULL);
38481 rm -f conftest.$ac_objext conftest$ac_exeext
38482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38483 (eval $ac_link) 2>conftest.er1
38485 grep -v '^ *+' conftest.er1 >conftest.err
38487 cat conftest.err >&5
38488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489 (exit $ac_status); } &&
38490 { ac_try='test -z "$ac_c_werror_flag"
38491 || test ! -s conftest.err'
38492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38493 (eval $ac_try) 2>&5
38495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38496 (exit $ac_status); }; } &&
38497 { ac_try='test -s conftest$ac_exeext'
38498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38499 (eval $ac_try) 2>&5
38501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502 (exit $ac_status); }; }; then
38505 echo "$as_me: failed program was:" >&5
38506 sed 's/^/| /' conftest.$ac_ext >&5
38510 rm -f conftest.err conftest.$ac_objext \
38511 conftest$ac_exeext conftest.$ac_ext
38516 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38517 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38519 if test $ol_cv_db_db_43 = yes ; then
38520 ol_cv_lib_db=-ldb-43
38524 if test $ol_cv_lib_db = no ; then
38525 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38526 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38527 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38528 echo $ECHO_N "(cached) $ECHO_C" >&6
38533 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38535 cat >conftest.$ac_ext <<_ACEOF
38538 cat confdefs.h >>conftest.$ac_ext
38539 cat >>conftest.$ac_ext <<_ACEOF
38540 /* end confdefs.h. */
38542 #ifdef HAVE_DB_185_H
38543 # include <db_185.h>
38548 #ifndef DB_VERSION_MAJOR
38549 # define DB_VERSION_MAJOR 1
38553 #define NULL ((void*)0)
38560 #if DB_VERSION_MAJOR > 1
38563 int major, minor, patch;
38565 version = db_version( &major, &minor, &patch );
38567 if( major != DB_VERSION_MAJOR ||
38568 minor < DB_VERSION_MINOR )
38570 printf("Berkeley DB version mismatch\n"
38571 "\theader: %s\n\tlibrary: %s\n",
38572 DB_VERSION_STRING, version);
38578 #if DB_VERSION_MAJOR > 2
38579 db_env_create( NULL, 0 );
38580 #elif DB_VERSION_MAJOR > 1
38581 db_appexit( NULL );
38583 (void) dbopen( NULL, 0, 0, 0, NULL);
38590 rm -f conftest.$ac_objext conftest$ac_exeext
38591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38592 (eval $ac_link) 2>conftest.er1
38594 grep -v '^ *+' conftest.er1 >conftest.err
38596 cat conftest.err >&5
38597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38598 (exit $ac_status); } &&
38599 { ac_try='test -z "$ac_c_werror_flag"
38600 || test ! -s conftest.err'
38601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38602 (eval $ac_try) 2>&5
38604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605 (exit $ac_status); }; } &&
38606 { ac_try='test -s conftest$ac_exeext'
38607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38608 (eval $ac_try) 2>&5
38610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611 (exit $ac_status); }; }; then
38612 ol_cv_db_db_4_dot_3=yes
38614 echo "$as_me: failed program was:" >&5
38615 sed 's/^/| /' conftest.$ac_ext >&5
38617 ol_cv_db_db_4_dot_3=no
38619 rm -f conftest.err conftest.$ac_objext \
38620 conftest$ac_exeext conftest.$ac_ext
38625 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38626 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38628 if test $ol_cv_db_db_4_dot_3 = yes ; then
38629 ol_cv_lib_db=-ldb-4.3
38633 if test $ol_cv_lib_db = no ; then
38634 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38635 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38636 if test "${ol_cv_db_db_4_3+set}" = set; then
38637 echo $ECHO_N "(cached) $ECHO_C" >&6
38642 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38644 cat >conftest.$ac_ext <<_ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h. */
38651 #ifdef HAVE_DB_185_H
38652 # include <db_185.h>
38657 #ifndef DB_VERSION_MAJOR
38658 # define DB_VERSION_MAJOR 1
38662 #define NULL ((void*)0)
38669 #if DB_VERSION_MAJOR > 1
38672 int major, minor, patch;
38674 version = db_version( &major, &minor, &patch );
38676 if( major != DB_VERSION_MAJOR ||
38677 minor < DB_VERSION_MINOR )
38679 printf("Berkeley DB version mismatch\n"
38680 "\theader: %s\n\tlibrary: %s\n",
38681 DB_VERSION_STRING, version);
38687 #if DB_VERSION_MAJOR > 2
38688 db_env_create( NULL, 0 );
38689 #elif DB_VERSION_MAJOR > 1
38690 db_appexit( NULL );
38692 (void) dbopen( NULL, 0, 0, 0, NULL);
38699 rm -f conftest.$ac_objext conftest$ac_exeext
38700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38701 (eval $ac_link) 2>conftest.er1
38703 grep -v '^ *+' conftest.er1 >conftest.err
38705 cat conftest.err >&5
38706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707 (exit $ac_status); } &&
38708 { ac_try='test -z "$ac_c_werror_flag"
38709 || test ! -s conftest.err'
38710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38711 (eval $ac_try) 2>&5
38713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38714 (exit $ac_status); }; } &&
38715 { ac_try='test -s conftest$ac_exeext'
38716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38717 (eval $ac_try) 2>&5
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); }; }; then
38721 ol_cv_db_db_4_3=yes
38723 echo "$as_me: failed program was:" >&5
38724 sed 's/^/| /' conftest.$ac_ext >&5
38728 rm -f conftest.err conftest.$ac_objext \
38729 conftest$ac_exeext conftest.$ac_ext
38734 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38735 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38737 if test $ol_cv_db_db_4_3 = yes ; then
38738 ol_cv_lib_db=-ldb-4-3
38742 if test $ol_cv_lib_db = no ; then
38743 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38744 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38745 if test "${ol_cv_db_db42+set}" = set; then
38746 echo $ECHO_N "(cached) $ECHO_C" >&6
38751 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38753 cat >conftest.$ac_ext <<_ACEOF
38756 cat confdefs.h >>conftest.$ac_ext
38757 cat >>conftest.$ac_ext <<_ACEOF
38758 /* end confdefs.h. */
38760 #ifdef HAVE_DB_185_H
38761 # include <db_185.h>
38766 #ifndef DB_VERSION_MAJOR
38767 # define DB_VERSION_MAJOR 1
38771 #define NULL ((void*)0)
38778 #if DB_VERSION_MAJOR > 1
38781 int major, minor, patch;
38783 version = db_version( &major, &minor, &patch );
38785 if( major != DB_VERSION_MAJOR ||
38786 minor < DB_VERSION_MINOR )
38788 printf("Berkeley DB version mismatch\n"
38789 "\theader: %s\n\tlibrary: %s\n",
38790 DB_VERSION_STRING, version);
38796 #if DB_VERSION_MAJOR > 2
38797 db_env_create( NULL, 0 );
38798 #elif DB_VERSION_MAJOR > 1
38799 db_appexit( NULL );
38801 (void) dbopen( NULL, 0, 0, 0, NULL);
38808 rm -f conftest.$ac_objext conftest$ac_exeext
38809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38810 (eval $ac_link) 2>conftest.er1
38812 grep -v '^ *+' conftest.er1 >conftest.err
38814 cat conftest.err >&5
38815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816 (exit $ac_status); } &&
38817 { ac_try='test -z "$ac_c_werror_flag"
38818 || test ! -s conftest.err'
38819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38820 (eval $ac_try) 2>&5
38822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823 (exit $ac_status); }; } &&
38824 { ac_try='test -s conftest$ac_exeext'
38825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826 (eval $ac_try) 2>&5
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); }; }; then
38832 echo "$as_me: failed program was:" >&5
38833 sed 's/^/| /' conftest.$ac_ext >&5
38837 rm -f conftest.err conftest.$ac_objext \
38838 conftest$ac_exeext conftest.$ac_ext
38843 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38844 echo "${ECHO_T}$ol_cv_db_db42" >&6
38846 if test $ol_cv_db_db42 = yes ; then
38847 ol_cv_lib_db=-ldb42
38851 if test $ol_cv_lib_db = no ; then
38852 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38853 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38854 if test "${ol_cv_db_db_42+set}" = set; then
38855 echo $ECHO_N "(cached) $ECHO_C" >&6
38860 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38862 cat >conftest.$ac_ext <<_ACEOF
38865 cat confdefs.h >>conftest.$ac_ext
38866 cat >>conftest.$ac_ext <<_ACEOF
38867 /* end confdefs.h. */
38869 #ifdef HAVE_DB_185_H
38870 # include <db_185.h>
38875 #ifndef DB_VERSION_MAJOR
38876 # define DB_VERSION_MAJOR 1
38880 #define NULL ((void*)0)
38887 #if DB_VERSION_MAJOR > 1
38890 int major, minor, patch;
38892 version = db_version( &major, &minor, &patch );
38894 if( major != DB_VERSION_MAJOR ||
38895 minor < DB_VERSION_MINOR )
38897 printf("Berkeley DB version mismatch\n"
38898 "\theader: %s\n\tlibrary: %s\n",
38899 DB_VERSION_STRING, version);
38905 #if DB_VERSION_MAJOR > 2
38906 db_env_create( NULL, 0 );
38907 #elif DB_VERSION_MAJOR > 1
38908 db_appexit( NULL );
38910 (void) dbopen( NULL, 0, 0, 0, NULL);
38917 rm -f conftest.$ac_objext conftest$ac_exeext
38918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38919 (eval $ac_link) 2>conftest.er1
38921 grep -v '^ *+' conftest.er1 >conftest.err
38923 cat conftest.err >&5
38924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38925 (exit $ac_status); } &&
38926 { ac_try='test -z "$ac_c_werror_flag"
38927 || test ! -s conftest.err'
38928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38929 (eval $ac_try) 2>&5
38931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932 (exit $ac_status); }; } &&
38933 { ac_try='test -s conftest$ac_exeext'
38934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38935 (eval $ac_try) 2>&5
38937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938 (exit $ac_status); }; }; then
38941 echo "$as_me: failed program was:" >&5
38942 sed 's/^/| /' conftest.$ac_ext >&5
38946 rm -f conftest.err conftest.$ac_objext \
38947 conftest$ac_exeext conftest.$ac_ext
38952 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38953 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38955 if test $ol_cv_db_db_42 = yes ; then
38956 ol_cv_lib_db=-ldb-42
38960 if test $ol_cv_lib_db = no ; then
38961 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38962 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38963 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38964 echo $ECHO_N "(cached) $ECHO_C" >&6
38969 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38971 cat >conftest.$ac_ext <<_ACEOF
38974 cat confdefs.h >>conftest.$ac_ext
38975 cat >>conftest.$ac_ext <<_ACEOF
38976 /* end confdefs.h. */
38978 #ifdef HAVE_DB_185_H
38979 # include <db_185.h>
38984 #ifndef DB_VERSION_MAJOR
38985 # define DB_VERSION_MAJOR 1
38989 #define NULL ((void*)0)
38996 #if DB_VERSION_MAJOR > 1
38999 int major, minor, patch;
39001 version = db_version( &major, &minor, &patch );
39003 if( major != DB_VERSION_MAJOR ||
39004 minor < DB_VERSION_MINOR )
39006 printf("Berkeley DB version mismatch\n"
39007 "\theader: %s\n\tlibrary: %s\n",
39008 DB_VERSION_STRING, version);
39014 #if DB_VERSION_MAJOR > 2
39015 db_env_create( NULL, 0 );
39016 #elif DB_VERSION_MAJOR > 1
39017 db_appexit( NULL );
39019 (void) dbopen( NULL, 0, 0, 0, NULL);
39026 rm -f conftest.$ac_objext conftest$ac_exeext
39027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39028 (eval $ac_link) 2>conftest.er1
39030 grep -v '^ *+' conftest.er1 >conftest.err
39032 cat conftest.err >&5
39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034 (exit $ac_status); } &&
39035 { ac_try='test -z "$ac_c_werror_flag"
39036 || test ! -s conftest.err'
39037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39038 (eval $ac_try) 2>&5
39040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39041 (exit $ac_status); }; } &&
39042 { ac_try='test -s conftest$ac_exeext'
39043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39044 (eval $ac_try) 2>&5
39046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047 (exit $ac_status); }; }; then
39048 ol_cv_db_db_4_dot_2=yes
39050 echo "$as_me: failed program was:" >&5
39051 sed 's/^/| /' conftest.$ac_ext >&5
39053 ol_cv_db_db_4_dot_2=no
39055 rm -f conftest.err conftest.$ac_objext \
39056 conftest$ac_exeext conftest.$ac_ext
39061 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
39062 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
39064 if test $ol_cv_db_db_4_dot_2 = yes ; then
39065 ol_cv_lib_db=-ldb-4.2
39069 if test $ol_cv_lib_db = no ; then
39070 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
39071 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
39072 if test "${ol_cv_db_db_4_2+set}" = set; then
39073 echo $ECHO_N "(cached) $ECHO_C" >&6
39078 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39080 cat >conftest.$ac_ext <<_ACEOF
39083 cat confdefs.h >>conftest.$ac_ext
39084 cat >>conftest.$ac_ext <<_ACEOF
39085 /* end confdefs.h. */
39087 #ifdef HAVE_DB_185_H
39088 # include <db_185.h>
39093 #ifndef DB_VERSION_MAJOR
39094 # define DB_VERSION_MAJOR 1
39098 #define NULL ((void*)0)
39105 #if DB_VERSION_MAJOR > 1
39108 int major, minor, patch;
39110 version = db_version( &major, &minor, &patch );
39112 if( major != DB_VERSION_MAJOR ||
39113 minor < DB_VERSION_MINOR )
39115 printf("Berkeley DB version mismatch\n"
39116 "\theader: %s\n\tlibrary: %s\n",
39117 DB_VERSION_STRING, version);
39123 #if DB_VERSION_MAJOR > 2
39124 db_env_create( NULL, 0 );
39125 #elif DB_VERSION_MAJOR > 1
39126 db_appexit( NULL );
39128 (void) dbopen( NULL, 0, 0, 0, NULL);
39135 rm -f conftest.$ac_objext conftest$ac_exeext
39136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39137 (eval $ac_link) 2>conftest.er1
39139 grep -v '^ *+' conftest.er1 >conftest.err
39141 cat conftest.err >&5
39142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39143 (exit $ac_status); } &&
39144 { ac_try='test -z "$ac_c_werror_flag"
39145 || test ! -s conftest.err'
39146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39147 (eval $ac_try) 2>&5
39149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 (exit $ac_status); }; } &&
39151 { ac_try='test -s conftest$ac_exeext'
39152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39153 (eval $ac_try) 2>&5
39155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 (exit $ac_status); }; }; then
39157 ol_cv_db_db_4_2=yes
39159 echo "$as_me: failed program was:" >&5
39160 sed 's/^/| /' conftest.$ac_ext >&5
39164 rm -f conftest.err conftest.$ac_objext \
39165 conftest$ac_exeext conftest.$ac_ext
39170 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39171 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39173 if test $ol_cv_db_db_4_2 = yes ; then
39174 ol_cv_lib_db=-ldb-4-2
39178 if test $ol_cv_lib_db = no ; then
39179 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39180 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39181 if test "${ol_cv_db_db_4+set}" = set; then
39182 echo $ECHO_N "(cached) $ECHO_C" >&6
39187 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39189 cat >conftest.$ac_ext <<_ACEOF
39192 cat confdefs.h >>conftest.$ac_ext
39193 cat >>conftest.$ac_ext <<_ACEOF
39194 /* end confdefs.h. */
39196 #ifdef HAVE_DB_185_H
39197 # include <db_185.h>
39202 #ifndef DB_VERSION_MAJOR
39203 # define DB_VERSION_MAJOR 1
39207 #define NULL ((void*)0)
39214 #if DB_VERSION_MAJOR > 1
39217 int major, minor, patch;
39219 version = db_version( &major, &minor, &patch );
39221 if( major != DB_VERSION_MAJOR ||
39222 minor < DB_VERSION_MINOR )
39224 printf("Berkeley DB version mismatch\n"
39225 "\theader: %s\n\tlibrary: %s\n",
39226 DB_VERSION_STRING, version);
39232 #if DB_VERSION_MAJOR > 2
39233 db_env_create( NULL, 0 );
39234 #elif DB_VERSION_MAJOR > 1
39235 db_appexit( NULL );
39237 (void) dbopen( NULL, 0, 0, 0, NULL);
39244 rm -f conftest.$ac_objext conftest$ac_exeext
39245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39246 (eval $ac_link) 2>conftest.er1
39248 grep -v '^ *+' conftest.er1 >conftest.err
39250 cat conftest.err >&5
39251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39252 (exit $ac_status); } &&
39253 { ac_try='test -z "$ac_c_werror_flag"
39254 || test ! -s conftest.err'
39255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39256 (eval $ac_try) 2>&5
39258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39259 (exit $ac_status); }; } &&
39260 { ac_try='test -s conftest$ac_exeext'
39261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39262 (eval $ac_try) 2>&5
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); }; }; then
39268 echo "$as_me: failed program was:" >&5
39269 sed 's/^/| /' conftest.$ac_ext >&5
39273 rm -f conftest.err conftest.$ac_objext \
39274 conftest$ac_exeext conftest.$ac_ext
39279 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39280 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39282 if test $ol_cv_db_db_4 = yes ; then
39283 ol_cv_lib_db=-ldb-4
39287 if test $ol_cv_lib_db = no ; then
39288 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39289 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39290 if test "${ol_cv_db_db4+set}" = set; then
39291 echo $ECHO_N "(cached) $ECHO_C" >&6
39296 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39298 cat >conftest.$ac_ext <<_ACEOF
39301 cat confdefs.h >>conftest.$ac_ext
39302 cat >>conftest.$ac_ext <<_ACEOF
39303 /* end confdefs.h. */
39305 #ifdef HAVE_DB_185_H
39306 # include <db_185.h>
39311 #ifndef DB_VERSION_MAJOR
39312 # define DB_VERSION_MAJOR 1
39316 #define NULL ((void*)0)
39323 #if DB_VERSION_MAJOR > 1
39326 int major, minor, patch;
39328 version = db_version( &major, &minor, &patch );
39330 if( major != DB_VERSION_MAJOR ||
39331 minor < DB_VERSION_MINOR )
39333 printf("Berkeley DB version mismatch\n"
39334 "\theader: %s\n\tlibrary: %s\n",
39335 DB_VERSION_STRING, version);
39341 #if DB_VERSION_MAJOR > 2
39342 db_env_create( NULL, 0 );
39343 #elif DB_VERSION_MAJOR > 1
39344 db_appexit( NULL );
39346 (void) dbopen( NULL, 0, 0, 0, NULL);
39353 rm -f conftest.$ac_objext conftest$ac_exeext
39354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39355 (eval $ac_link) 2>conftest.er1
39357 grep -v '^ *+' conftest.er1 >conftest.err
39359 cat conftest.err >&5
39360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39361 (exit $ac_status); } &&
39362 { ac_try='test -z "$ac_c_werror_flag"
39363 || test ! -s conftest.err'
39364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39365 (eval $ac_try) 2>&5
39367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39368 (exit $ac_status); }; } &&
39369 { ac_try='test -s conftest$ac_exeext'
39370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39371 (eval $ac_try) 2>&5
39373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39374 (exit $ac_status); }; }; then
39377 echo "$as_me: failed program was:" >&5
39378 sed 's/^/| /' conftest.$ac_ext >&5
39382 rm -f conftest.err conftest.$ac_objext \
39383 conftest$ac_exeext conftest.$ac_ext
39388 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39389 echo "${ECHO_T}$ol_cv_db_db4" >&6
39391 if test $ol_cv_db_db4 = yes ; then
39396 if test $ol_cv_lib_db = no ; then
39397 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39398 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39399 if test "${ol_cv_db_db+set}" = set; then
39400 echo $ECHO_N "(cached) $ECHO_C" >&6
39405 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39407 cat >conftest.$ac_ext <<_ACEOF
39410 cat confdefs.h >>conftest.$ac_ext
39411 cat >>conftest.$ac_ext <<_ACEOF
39412 /* end confdefs.h. */
39414 #ifdef HAVE_DB_185_H
39415 # include <db_185.h>
39420 #ifndef DB_VERSION_MAJOR
39421 # define DB_VERSION_MAJOR 1
39425 #define NULL ((void*)0)
39432 #if DB_VERSION_MAJOR > 1
39435 int major, minor, patch;
39437 version = db_version( &major, &minor, &patch );
39439 if( major != DB_VERSION_MAJOR ||
39440 minor < DB_VERSION_MINOR )
39442 printf("Berkeley DB version mismatch\n"
39443 "\theader: %s\n\tlibrary: %s\n",
39444 DB_VERSION_STRING, version);
39450 #if DB_VERSION_MAJOR > 2
39451 db_env_create( NULL, 0 );
39452 #elif DB_VERSION_MAJOR > 1
39453 db_appexit( NULL );
39455 (void) dbopen( NULL, 0, 0, 0, NULL);
39462 rm -f conftest.$ac_objext conftest$ac_exeext
39463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39464 (eval $ac_link) 2>conftest.er1
39466 grep -v '^ *+' conftest.er1 >conftest.err
39468 cat conftest.err >&5
39469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470 (exit $ac_status); } &&
39471 { ac_try='test -z "$ac_c_werror_flag"
39472 || test ! -s conftest.err'
39473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474 (eval $ac_try) 2>&5
39476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); }; } &&
39478 { ac_try='test -s conftest$ac_exeext'
39479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39480 (eval $ac_try) 2>&5
39482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483 (exit $ac_status); }; }; then
39486 echo "$as_me: failed program was:" >&5
39487 sed 's/^/| /' conftest.$ac_ext >&5
39491 rm -f conftest.err conftest.$ac_objext \
39492 conftest$ac_exeext conftest.$ac_ext
39497 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39498 echo "${ECHO_T}$ol_cv_db_db" >&6
39500 if test $ol_cv_db_db = yes ; then
39505 if test $ol_cv_lib_db = no ; then
39506 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39507 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39508 if test "${ol_cv_db_db41+set}" = set; then
39509 echo $ECHO_N "(cached) $ECHO_C" >&6
39514 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39516 cat >conftest.$ac_ext <<_ACEOF
39519 cat confdefs.h >>conftest.$ac_ext
39520 cat >>conftest.$ac_ext <<_ACEOF
39521 /* end confdefs.h. */
39523 #ifdef HAVE_DB_185_H
39524 # include <db_185.h>
39529 #ifndef DB_VERSION_MAJOR
39530 # define DB_VERSION_MAJOR 1
39534 #define NULL ((void*)0)
39541 #if DB_VERSION_MAJOR > 1
39544 int major, minor, patch;
39546 version = db_version( &major, &minor, &patch );
39548 if( major != DB_VERSION_MAJOR ||
39549 minor < DB_VERSION_MINOR )
39551 printf("Berkeley DB version mismatch\n"
39552 "\theader: %s\n\tlibrary: %s\n",
39553 DB_VERSION_STRING, version);
39559 #if DB_VERSION_MAJOR > 2
39560 db_env_create( NULL, 0 );
39561 #elif DB_VERSION_MAJOR > 1
39562 db_appexit( NULL );
39564 (void) dbopen( NULL, 0, 0, 0, NULL);
39571 rm -f conftest.$ac_objext conftest$ac_exeext
39572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39573 (eval $ac_link) 2>conftest.er1
39575 grep -v '^ *+' conftest.er1 >conftest.err
39577 cat conftest.err >&5
39578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39579 (exit $ac_status); } &&
39580 { ac_try='test -z "$ac_c_werror_flag"
39581 || test ! -s conftest.err'
39582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39583 (eval $ac_try) 2>&5
39585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586 (exit $ac_status); }; } &&
39587 { ac_try='test -s conftest$ac_exeext'
39588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39589 (eval $ac_try) 2>&5
39591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592 (exit $ac_status); }; }; then
39595 echo "$as_me: failed program was:" >&5
39596 sed 's/^/| /' conftest.$ac_ext >&5
39600 rm -f conftest.err conftest.$ac_objext \
39601 conftest$ac_exeext conftest.$ac_ext
39606 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39607 echo "${ECHO_T}$ol_cv_db_db41" >&6
39609 if test $ol_cv_db_db41 = yes ; then
39610 ol_cv_lib_db=-ldb41
39614 if test $ol_cv_lib_db = no ; then
39615 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39616 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39617 if test "${ol_cv_db_db_41+set}" = set; then
39618 echo $ECHO_N "(cached) $ECHO_C" >&6
39623 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39625 cat >conftest.$ac_ext <<_ACEOF
39628 cat confdefs.h >>conftest.$ac_ext
39629 cat >>conftest.$ac_ext <<_ACEOF
39630 /* end confdefs.h. */
39632 #ifdef HAVE_DB_185_H
39633 # include <db_185.h>
39638 #ifndef DB_VERSION_MAJOR
39639 # define DB_VERSION_MAJOR 1
39643 #define NULL ((void*)0)
39650 #if DB_VERSION_MAJOR > 1
39653 int major, minor, patch;
39655 version = db_version( &major, &minor, &patch );
39657 if( major != DB_VERSION_MAJOR ||
39658 minor < DB_VERSION_MINOR )
39660 printf("Berkeley DB version mismatch\n"
39661 "\theader: %s\n\tlibrary: %s\n",
39662 DB_VERSION_STRING, version);
39668 #if DB_VERSION_MAJOR > 2
39669 db_env_create( NULL, 0 );
39670 #elif DB_VERSION_MAJOR > 1
39671 db_appexit( NULL );
39673 (void) dbopen( NULL, 0, 0, 0, NULL);
39680 rm -f conftest.$ac_objext conftest$ac_exeext
39681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39682 (eval $ac_link) 2>conftest.er1
39684 grep -v '^ *+' conftest.er1 >conftest.err
39686 cat conftest.err >&5
39687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39688 (exit $ac_status); } &&
39689 { ac_try='test -z "$ac_c_werror_flag"
39690 || test ! -s conftest.err'
39691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39692 (eval $ac_try) 2>&5
39694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695 (exit $ac_status); }; } &&
39696 { ac_try='test -s conftest$ac_exeext'
39697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39698 (eval $ac_try) 2>&5
39700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701 (exit $ac_status); }; }; then
39704 echo "$as_me: failed program was:" >&5
39705 sed 's/^/| /' conftest.$ac_ext >&5
39709 rm -f conftest.err conftest.$ac_objext \
39710 conftest$ac_exeext conftest.$ac_ext
39715 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39716 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39718 if test $ol_cv_db_db_41 = yes ; then
39719 ol_cv_lib_db=-ldb-41
39723 if test $ol_cv_lib_db = no ; then
39724 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39725 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39726 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39727 echo $ECHO_N "(cached) $ECHO_C" >&6
39732 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39734 cat >conftest.$ac_ext <<_ACEOF
39737 cat confdefs.h >>conftest.$ac_ext
39738 cat >>conftest.$ac_ext <<_ACEOF
39739 /* end confdefs.h. */
39741 #ifdef HAVE_DB_185_H
39742 # include <db_185.h>
39747 #ifndef DB_VERSION_MAJOR
39748 # define DB_VERSION_MAJOR 1
39752 #define NULL ((void*)0)
39759 #if DB_VERSION_MAJOR > 1
39762 int major, minor, patch;
39764 version = db_version( &major, &minor, &patch );
39766 if( major != DB_VERSION_MAJOR ||
39767 minor < DB_VERSION_MINOR )
39769 printf("Berkeley DB version mismatch\n"
39770 "\theader: %s\n\tlibrary: %s\n",
39771 DB_VERSION_STRING, version);
39777 #if DB_VERSION_MAJOR > 2
39778 db_env_create( NULL, 0 );
39779 #elif DB_VERSION_MAJOR > 1
39780 db_appexit( NULL );
39782 (void) dbopen( NULL, 0, 0, 0, NULL);
39789 rm -f conftest.$ac_objext conftest$ac_exeext
39790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39791 (eval $ac_link) 2>conftest.er1
39793 grep -v '^ *+' conftest.er1 >conftest.err
39795 cat conftest.err >&5
39796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797 (exit $ac_status); } &&
39798 { ac_try='test -z "$ac_c_werror_flag"
39799 || test ! -s conftest.err'
39800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801 (eval $ac_try) 2>&5
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); }; } &&
39805 { ac_try='test -s conftest$ac_exeext'
39806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39807 (eval $ac_try) 2>&5
39809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810 (exit $ac_status); }; }; then
39811 ol_cv_db_db_4_dot_1=yes
39813 echo "$as_me: failed program was:" >&5
39814 sed 's/^/| /' conftest.$ac_ext >&5
39816 ol_cv_db_db_4_dot_1=no
39818 rm -f conftest.err conftest.$ac_objext \
39819 conftest$ac_exeext conftest.$ac_ext
39824 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39825 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39827 if test $ol_cv_db_db_4_dot_1 = yes ; then
39828 ol_cv_lib_db=-ldb-4.1
39832 if test $ol_cv_lib_db = no ; then
39833 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39834 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39835 if test "${ol_cv_db_db_4_1+set}" = set; then
39836 echo $ECHO_N "(cached) $ECHO_C" >&6
39841 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39843 cat >conftest.$ac_ext <<_ACEOF
39846 cat confdefs.h >>conftest.$ac_ext
39847 cat >>conftest.$ac_ext <<_ACEOF
39848 /* end confdefs.h. */
39850 #ifdef HAVE_DB_185_H
39851 # include <db_185.h>
39856 #ifndef DB_VERSION_MAJOR
39857 # define DB_VERSION_MAJOR 1
39861 #define NULL ((void*)0)
39868 #if DB_VERSION_MAJOR > 1
39871 int major, minor, patch;
39873 version = db_version( &major, &minor, &patch );
39875 if( major != DB_VERSION_MAJOR ||
39876 minor < DB_VERSION_MINOR )
39878 printf("Berkeley DB version mismatch\n"
39879 "\theader: %s\n\tlibrary: %s\n",
39880 DB_VERSION_STRING, version);
39886 #if DB_VERSION_MAJOR > 2
39887 db_env_create( NULL, 0 );
39888 #elif DB_VERSION_MAJOR > 1
39889 db_appexit( NULL );
39891 (void) dbopen( NULL, 0, 0, 0, NULL);
39898 rm -f conftest.$ac_objext conftest$ac_exeext
39899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39900 (eval $ac_link) 2>conftest.er1
39902 grep -v '^ *+' conftest.er1 >conftest.err
39904 cat conftest.err >&5
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); } &&
39907 { ac_try='test -z "$ac_c_werror_flag"
39908 || test ! -s conftest.err'
39909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910 (eval $ac_try) 2>&5
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); }; } &&
39914 { ac_try='test -s conftest$ac_exeext'
39915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39916 (eval $ac_try) 2>&5
39918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919 (exit $ac_status); }; }; then
39920 ol_cv_db_db_4_1=yes
39922 echo "$as_me: failed program was:" >&5
39923 sed 's/^/| /' conftest.$ac_ext >&5
39927 rm -f conftest.err conftest.$ac_objext \
39928 conftest$ac_exeext conftest.$ac_ext
39933 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39934 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39936 if test $ol_cv_db_db_4_1 = yes ; then
39937 ol_cv_lib_db=-ldb-4-1
39941 if test $ol_cv_lib_db = no ; then
39942 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39943 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39944 if test "${ol_cv_db_db3+set}" = set; then
39945 echo $ECHO_N "(cached) $ECHO_C" >&6
39950 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39952 cat >conftest.$ac_ext <<_ACEOF
39955 cat confdefs.h >>conftest.$ac_ext
39956 cat >>conftest.$ac_ext <<_ACEOF
39957 /* end confdefs.h. */
39959 #ifdef HAVE_DB_185_H
39960 # include <db_185.h>
39965 #ifndef DB_VERSION_MAJOR
39966 # define DB_VERSION_MAJOR 1
39970 #define NULL ((void*)0)
39977 #if DB_VERSION_MAJOR > 1
39980 int major, minor, patch;
39982 version = db_version( &major, &minor, &patch );
39984 if( major != DB_VERSION_MAJOR ||
39985 minor < DB_VERSION_MINOR )
39987 printf("Berkeley DB version mismatch\n"
39988 "\theader: %s\n\tlibrary: %s\n",
39989 DB_VERSION_STRING, version);
39995 #if DB_VERSION_MAJOR > 2
39996 db_env_create( NULL, 0 );
39997 #elif DB_VERSION_MAJOR > 1
39998 db_appexit( NULL );
40000 (void) dbopen( NULL, 0, 0, 0, NULL);
40007 rm -f conftest.$ac_objext conftest$ac_exeext
40008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40009 (eval $ac_link) 2>conftest.er1
40011 grep -v '^ *+' conftest.er1 >conftest.err
40013 cat conftest.err >&5
40014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015 (exit $ac_status); } &&
40016 { ac_try='test -z "$ac_c_werror_flag"
40017 || test ! -s conftest.err'
40018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40019 (eval $ac_try) 2>&5
40021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022 (exit $ac_status); }; } &&
40023 { ac_try='test -s conftest$ac_exeext'
40024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40025 (eval $ac_try) 2>&5
40027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40028 (exit $ac_status); }; }; then
40031 echo "$as_me: failed program was:" >&5
40032 sed 's/^/| /' conftest.$ac_ext >&5
40036 rm -f conftest.err conftest.$ac_objext \
40037 conftest$ac_exeext conftest.$ac_ext
40042 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
40043 echo "${ECHO_T}$ol_cv_db_db3" >&6
40045 if test $ol_cv_db_db3 = yes ; then
40050 if test $ol_cv_lib_db = no ; then
40051 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
40052 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
40053 if test "${ol_cv_db_db_3+set}" = set; then
40054 echo $ECHO_N "(cached) $ECHO_C" >&6
40059 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40061 cat >conftest.$ac_ext <<_ACEOF
40064 cat confdefs.h >>conftest.$ac_ext
40065 cat >>conftest.$ac_ext <<_ACEOF
40066 /* end confdefs.h. */
40068 #ifdef HAVE_DB_185_H
40069 # include <db_185.h>
40074 #ifndef DB_VERSION_MAJOR
40075 # define DB_VERSION_MAJOR 1
40079 #define NULL ((void*)0)
40086 #if DB_VERSION_MAJOR > 1
40089 int major, minor, patch;
40091 version = db_version( &major, &minor, &patch );
40093 if( major != DB_VERSION_MAJOR ||
40094 minor < DB_VERSION_MINOR )
40096 printf("Berkeley DB version mismatch\n"
40097 "\theader: %s\n\tlibrary: %s\n",
40098 DB_VERSION_STRING, version);
40104 #if DB_VERSION_MAJOR > 2
40105 db_env_create( NULL, 0 );
40106 #elif DB_VERSION_MAJOR > 1
40107 db_appexit( NULL );
40109 (void) dbopen( NULL, 0, 0, 0, NULL);
40116 rm -f conftest.$ac_objext conftest$ac_exeext
40117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40118 (eval $ac_link) 2>conftest.er1
40120 grep -v '^ *+' conftest.er1 >conftest.err
40122 cat conftest.err >&5
40123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40124 (exit $ac_status); } &&
40125 { ac_try='test -z "$ac_c_werror_flag"
40126 || test ! -s conftest.err'
40127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40128 (eval $ac_try) 2>&5
40130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40131 (exit $ac_status); }; } &&
40132 { ac_try='test -s conftest$ac_exeext'
40133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40134 (eval $ac_try) 2>&5
40136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137 (exit $ac_status); }; }; then
40140 echo "$as_me: failed program was:" >&5
40141 sed 's/^/| /' conftest.$ac_ext >&5
40145 rm -f conftest.err conftest.$ac_objext \
40146 conftest$ac_exeext conftest.$ac_ext
40151 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40152 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40154 if test $ol_cv_db_db_3 = yes ; then
40155 ol_cv_lib_db=-ldb-3
40159 if test $ol_cv_lib_db = no ; then
40160 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40161 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40162 if test "${ol_cv_db_db2+set}" = set; then
40163 echo $ECHO_N "(cached) $ECHO_C" >&6
40168 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40170 cat >conftest.$ac_ext <<_ACEOF
40173 cat confdefs.h >>conftest.$ac_ext
40174 cat >>conftest.$ac_ext <<_ACEOF
40175 /* end confdefs.h. */
40177 #ifdef HAVE_DB_185_H
40178 # include <db_185.h>
40183 #ifndef DB_VERSION_MAJOR
40184 # define DB_VERSION_MAJOR 1
40188 #define NULL ((void*)0)
40195 #if DB_VERSION_MAJOR > 1
40198 int major, minor, patch;
40200 version = db_version( &major, &minor, &patch );
40202 if( major != DB_VERSION_MAJOR ||
40203 minor < DB_VERSION_MINOR )
40205 printf("Berkeley DB version mismatch\n"
40206 "\theader: %s\n\tlibrary: %s\n",
40207 DB_VERSION_STRING, version);
40213 #if DB_VERSION_MAJOR > 2
40214 db_env_create( NULL, 0 );
40215 #elif DB_VERSION_MAJOR > 1
40216 db_appexit( NULL );
40218 (void) dbopen( NULL, 0, 0, 0, NULL);
40225 rm -f conftest.$ac_objext conftest$ac_exeext
40226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40227 (eval $ac_link) 2>conftest.er1
40229 grep -v '^ *+' conftest.er1 >conftest.err
40231 cat conftest.err >&5
40232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233 (exit $ac_status); } &&
40234 { ac_try='test -z "$ac_c_werror_flag"
40235 || test ! -s conftest.err'
40236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40237 (eval $ac_try) 2>&5
40239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40240 (exit $ac_status); }; } &&
40241 { ac_try='test -s conftest$ac_exeext'
40242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40243 (eval $ac_try) 2>&5
40245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40246 (exit $ac_status); }; }; then
40249 echo "$as_me: failed program was:" >&5
40250 sed 's/^/| /' conftest.$ac_ext >&5
40254 rm -f conftest.err conftest.$ac_objext \
40255 conftest$ac_exeext conftest.$ac_ext
40260 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40261 echo "${ECHO_T}$ol_cv_db_db2" >&6
40263 if test $ol_cv_db_db2 = yes ; then
40268 if test $ol_cv_lib_db = no ; then
40269 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40270 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40271 if test "${ol_cv_db_db_2+set}" = set; then
40272 echo $ECHO_N "(cached) $ECHO_C" >&6
40277 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40279 cat >conftest.$ac_ext <<_ACEOF
40282 cat confdefs.h >>conftest.$ac_ext
40283 cat >>conftest.$ac_ext <<_ACEOF
40284 /* end confdefs.h. */
40286 #ifdef HAVE_DB_185_H
40287 # include <db_185.h>
40292 #ifndef DB_VERSION_MAJOR
40293 # define DB_VERSION_MAJOR 1
40297 #define NULL ((void*)0)
40304 #if DB_VERSION_MAJOR > 1
40307 int major, minor, patch;
40309 version = db_version( &major, &minor, &patch );
40311 if( major != DB_VERSION_MAJOR ||
40312 minor < DB_VERSION_MINOR )
40314 printf("Berkeley DB version mismatch\n"
40315 "\theader: %s\n\tlibrary: %s\n",
40316 DB_VERSION_STRING, version);
40322 #if DB_VERSION_MAJOR > 2
40323 db_env_create( NULL, 0 );
40324 #elif DB_VERSION_MAJOR > 1
40325 db_appexit( NULL );
40327 (void) dbopen( NULL, 0, 0, 0, NULL);
40334 rm -f conftest.$ac_objext conftest$ac_exeext
40335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40336 (eval $ac_link) 2>conftest.er1
40338 grep -v '^ *+' conftest.er1 >conftest.err
40340 cat conftest.err >&5
40341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342 (exit $ac_status); } &&
40343 { ac_try='test -z "$ac_c_werror_flag"
40344 || test ! -s conftest.err'
40345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40346 (eval $ac_try) 2>&5
40348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40349 (exit $ac_status); }; } &&
40350 { ac_try='test -s conftest$ac_exeext'
40351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40352 (eval $ac_try) 2>&5
40354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40355 (exit $ac_status); }; }; then
40358 echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40363 rm -f conftest.err conftest.$ac_objext \
40364 conftest$ac_exeext conftest.$ac_ext
40369 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40370 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40372 if test $ol_cv_db_db_2 = yes ; then
40373 ol_cv_lib_db=-ldb-2
40377 if test $ol_cv_lib_db = no ; then
40378 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40379 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40380 if test "${ol_cv_db_db1+set}" = set; then
40381 echo $ECHO_N "(cached) $ECHO_C" >&6
40386 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40388 cat >conftest.$ac_ext <<_ACEOF
40391 cat confdefs.h >>conftest.$ac_ext
40392 cat >>conftest.$ac_ext <<_ACEOF
40393 /* end confdefs.h. */
40395 #ifdef HAVE_DB_185_H
40396 # include <db_185.h>
40401 #ifndef DB_VERSION_MAJOR
40402 # define DB_VERSION_MAJOR 1
40406 #define NULL ((void*)0)
40413 #if DB_VERSION_MAJOR > 1
40416 int major, minor, patch;
40418 version = db_version( &major, &minor, &patch );
40420 if( major != DB_VERSION_MAJOR ||
40421 minor < DB_VERSION_MINOR )
40423 printf("Berkeley DB version mismatch\n"
40424 "\theader: %s\n\tlibrary: %s\n",
40425 DB_VERSION_STRING, version);
40431 #if DB_VERSION_MAJOR > 2
40432 db_env_create( NULL, 0 );
40433 #elif DB_VERSION_MAJOR > 1
40434 db_appexit( NULL );
40436 (void) dbopen( NULL, 0, 0, 0, NULL);
40443 rm -f conftest.$ac_objext conftest$ac_exeext
40444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40445 (eval $ac_link) 2>conftest.er1
40447 grep -v '^ *+' conftest.er1 >conftest.err
40449 cat conftest.err >&5
40450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451 (exit $ac_status); } &&
40452 { ac_try='test -z "$ac_c_werror_flag"
40453 || test ! -s conftest.err'
40454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40455 (eval $ac_try) 2>&5
40457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458 (exit $ac_status); }; } &&
40459 { ac_try='test -s conftest$ac_exeext'
40460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40461 (eval $ac_try) 2>&5
40463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40464 (exit $ac_status); }; }; then
40467 echo "$as_me: failed program was:" >&5
40468 sed 's/^/| /' conftest.$ac_ext >&5
40472 rm -f conftest.err conftest.$ac_objext \
40473 conftest$ac_exeext conftest.$ac_ext
40478 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40479 echo "${ECHO_T}$ol_cv_db_db1" >&6
40481 if test $ol_cv_db_db1 = yes ; then
40486 if test $ol_cv_lib_db = no ; then
40487 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40488 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40489 if test "${ol_cv_db_db_1+set}" = set; then
40490 echo $ECHO_N "(cached) $ECHO_C" >&6
40495 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40497 cat >conftest.$ac_ext <<_ACEOF
40500 cat confdefs.h >>conftest.$ac_ext
40501 cat >>conftest.$ac_ext <<_ACEOF
40502 /* end confdefs.h. */
40504 #ifdef HAVE_DB_185_H
40505 # include <db_185.h>
40510 #ifndef DB_VERSION_MAJOR
40511 # define DB_VERSION_MAJOR 1
40515 #define NULL ((void*)0)
40522 #if DB_VERSION_MAJOR > 1
40525 int major, minor, patch;
40527 version = db_version( &major, &minor, &patch );
40529 if( major != DB_VERSION_MAJOR ||
40530 minor < DB_VERSION_MINOR )
40532 printf("Berkeley DB version mismatch\n"
40533 "\theader: %s\n\tlibrary: %s\n",
40534 DB_VERSION_STRING, version);
40540 #if DB_VERSION_MAJOR > 2
40541 db_env_create( NULL, 0 );
40542 #elif DB_VERSION_MAJOR > 1
40543 db_appexit( NULL );
40545 (void) dbopen( NULL, 0, 0, 0, NULL);
40552 rm -f conftest.$ac_objext conftest$ac_exeext
40553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40554 (eval $ac_link) 2>conftest.er1
40556 grep -v '^ *+' conftest.er1 >conftest.err
40558 cat conftest.err >&5
40559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40560 (exit $ac_status); } &&
40561 { ac_try='test -z "$ac_c_werror_flag"
40562 || test ! -s conftest.err'
40563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40564 (eval $ac_try) 2>&5
40566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40567 (exit $ac_status); }; } &&
40568 { ac_try='test -s conftest$ac_exeext'
40569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40570 (eval $ac_try) 2>&5
40572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40573 (exit $ac_status); }; }; then
40576 echo "$as_me: failed program was:" >&5
40577 sed 's/^/| /' conftest.$ac_ext >&5
40581 rm -f conftest.err conftest.$ac_objext \
40582 conftest$ac_exeext conftest.$ac_ext
40587 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40588 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40590 if test $ol_cv_db_db_1 = yes ; then
40591 ol_cv_lib_db=-ldb-1
40596 if test "$ol_cv_lib_db" != no ; then
40597 ol_cv_berkeley_db=yes
40603 ol_cv_berkeley_db=no
40605 for ac_header in db.h
40607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40609 echo "$as_me:$LINENO: checking for $ac_header" >&5
40610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40612 echo $ECHO_N "(cached) $ECHO_C" >&6
40614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40617 # Is the header compilable?
40618 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40620 cat >conftest.$ac_ext <<_ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h. */
40626 $ac_includes_default
40627 #include <$ac_header>
40629 rm -f conftest.$ac_objext
40630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40631 (eval $ac_compile) 2>conftest.er1
40633 grep -v '^ *+' conftest.er1 >conftest.err
40635 cat conftest.err >&5
40636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637 (exit $ac_status); } &&
40638 { ac_try='test -z "$ac_c_werror_flag"
40639 || test ! -s conftest.err'
40640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40641 (eval $ac_try) 2>&5
40643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); }; } &&
40645 { ac_try='test -s conftest.$ac_objext'
40646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40647 (eval $ac_try) 2>&5
40649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650 (exit $ac_status); }; }; then
40651 ac_header_compiler=yes
40653 echo "$as_me: failed program was:" >&5
40654 sed 's/^/| /' conftest.$ac_ext >&5
40656 ac_header_compiler=no
40658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40660 echo "${ECHO_T}$ac_header_compiler" >&6
40662 # Is the header present?
40663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40665 cat >conftest.$ac_ext <<_ACEOF
40668 cat confdefs.h >>conftest.$ac_ext
40669 cat >>conftest.$ac_ext <<_ACEOF
40670 /* end confdefs.h. */
40671 #include <$ac_header>
40673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40676 grep -v '^ *+' conftest.er1 >conftest.err
40678 cat conftest.err >&5
40679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40680 (exit $ac_status); } >/dev/null; then
40681 if test -s conftest.err; then
40682 ac_cpp_err=$ac_c_preproc_warn_flag
40683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40690 if test -z "$ac_cpp_err"; then
40691 ac_header_preproc=yes
40693 echo "$as_me: failed program was:" >&5
40694 sed 's/^/| /' conftest.$ac_ext >&5
40696 ac_header_preproc=no
40698 rm -f conftest.err conftest.$ac_ext
40699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40700 echo "${ECHO_T}$ac_header_preproc" >&6
40702 # So? What about this header?
40703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40709 ac_header_preproc=yes
40712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40726 ## ------------------------------------------ ##
40727 ## Report this to the AC_PACKAGE_NAME lists. ##
40728 ## ------------------------------------------ ##
40731 sed "s/^/$as_me: WARNING: /" >&2
40734 echo "$as_me:$LINENO: checking for $ac_header" >&5
40735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40737 echo $ECHO_N "(cached) $ECHO_C" >&6
40739 eval "$as_ac_Header=\$ac_header_preproc"
40741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40746 cat >>confdefs.h <<_ACEOF
40747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40754 if test $ac_cv_header_db_h = yes; then
40756 if test $ol_cv_lib_db = no ; then
40757 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40758 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40759 if test "${ol_cv_db_none+set}" = set; then
40760 echo $ECHO_N "(cached) $ECHO_C" >&6
40765 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40767 cat >conftest.$ac_ext <<_ACEOF
40770 cat confdefs.h >>conftest.$ac_ext
40771 cat >>conftest.$ac_ext <<_ACEOF
40772 /* end confdefs.h. */
40774 #ifdef HAVE_DB_185_H
40775 # include <db_185.h>
40780 #ifndef DB_VERSION_MAJOR
40781 # define DB_VERSION_MAJOR 1
40785 #define NULL ((void*)0)
40792 #if DB_VERSION_MAJOR > 1
40795 int major, minor, patch;
40797 version = db_version( &major, &minor, &patch );
40799 if( major != DB_VERSION_MAJOR ||
40800 minor < DB_VERSION_MINOR )
40802 printf("Berkeley DB version mismatch\n"
40803 "\theader: %s\n\tlibrary: %s\n",
40804 DB_VERSION_STRING, version);
40810 #if DB_VERSION_MAJOR > 2
40811 db_env_create( NULL, 0 );
40812 #elif DB_VERSION_MAJOR > 1
40813 db_appexit( NULL );
40815 (void) dbopen( NULL, 0, 0, 0, NULL);
40822 rm -f conftest.$ac_objext conftest$ac_exeext
40823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40824 (eval $ac_link) 2>conftest.er1
40826 grep -v '^ *+' conftest.er1 >conftest.err
40828 cat conftest.err >&5
40829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40830 (exit $ac_status); } &&
40831 { ac_try='test -z "$ac_c_werror_flag"
40832 || test ! -s conftest.err'
40833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40834 (eval $ac_try) 2>&5
40836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40837 (exit $ac_status); }; } &&
40838 { ac_try='test -s conftest$ac_exeext'
40839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40840 (eval $ac_try) 2>&5
40842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); }; }; then
40846 echo "$as_me: failed program was:" >&5
40847 sed 's/^/| /' conftest.$ac_ext >&5
40851 rm -f conftest.err conftest.$ac_objext \
40852 conftest$ac_exeext conftest.$ac_ext
40857 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40858 echo "${ECHO_T}$ol_cv_db_none" >&6
40860 if test $ol_cv_db_none = yes ; then
40865 if test $ol_cv_lib_db = no ; then
40866 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40867 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40868 if test "${ol_cv_db_db43+set}" = set; then
40869 echo $ECHO_N "(cached) $ECHO_C" >&6
40874 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40876 cat >conftest.$ac_ext <<_ACEOF
40879 cat confdefs.h >>conftest.$ac_ext
40880 cat >>conftest.$ac_ext <<_ACEOF
40881 /* end confdefs.h. */
40883 #ifdef HAVE_DB_185_H
40884 # include <db_185.h>
40889 #ifndef DB_VERSION_MAJOR
40890 # define DB_VERSION_MAJOR 1
40894 #define NULL ((void*)0)
40901 #if DB_VERSION_MAJOR > 1
40904 int major, minor, patch;
40906 version = db_version( &major, &minor, &patch );
40908 if( major != DB_VERSION_MAJOR ||
40909 minor < DB_VERSION_MINOR )
40911 printf("Berkeley DB version mismatch\n"
40912 "\theader: %s\n\tlibrary: %s\n",
40913 DB_VERSION_STRING, version);
40919 #if DB_VERSION_MAJOR > 2
40920 db_env_create( NULL, 0 );
40921 #elif DB_VERSION_MAJOR > 1
40922 db_appexit( NULL );
40924 (void) dbopen( NULL, 0, 0, 0, NULL);
40931 rm -f conftest.$ac_objext conftest$ac_exeext
40932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40933 (eval $ac_link) 2>conftest.er1
40935 grep -v '^ *+' conftest.er1 >conftest.err
40937 cat conftest.err >&5
40938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939 (exit $ac_status); } &&
40940 { ac_try='test -z "$ac_c_werror_flag"
40941 || test ! -s conftest.err'
40942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40943 (eval $ac_try) 2>&5
40945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40946 (exit $ac_status); }; } &&
40947 { ac_try='test -s conftest$ac_exeext'
40948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40949 (eval $ac_try) 2>&5
40951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40952 (exit $ac_status); }; }; then
40955 echo "$as_me: failed program was:" >&5
40956 sed 's/^/| /' conftest.$ac_ext >&5
40960 rm -f conftest.err conftest.$ac_objext \
40961 conftest$ac_exeext conftest.$ac_ext
40966 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40967 echo "${ECHO_T}$ol_cv_db_db43" >&6
40969 if test $ol_cv_db_db43 = yes ; then
40970 ol_cv_lib_db=-ldb43
40974 if test $ol_cv_lib_db = no ; then
40975 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40976 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40977 if test "${ol_cv_db_db_43+set}" = set; then
40978 echo $ECHO_N "(cached) $ECHO_C" >&6
40983 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40985 cat >conftest.$ac_ext <<_ACEOF
40988 cat confdefs.h >>conftest.$ac_ext
40989 cat >>conftest.$ac_ext <<_ACEOF
40990 /* end confdefs.h. */
40992 #ifdef HAVE_DB_185_H
40993 # include <db_185.h>
40998 #ifndef DB_VERSION_MAJOR
40999 # define DB_VERSION_MAJOR 1
41003 #define NULL ((void*)0)
41010 #if DB_VERSION_MAJOR > 1
41013 int major, minor, patch;
41015 version = db_version( &major, &minor, &patch );
41017 if( major != DB_VERSION_MAJOR ||
41018 minor < DB_VERSION_MINOR )
41020 printf("Berkeley DB version mismatch\n"
41021 "\theader: %s\n\tlibrary: %s\n",
41022 DB_VERSION_STRING, version);
41028 #if DB_VERSION_MAJOR > 2
41029 db_env_create( NULL, 0 );
41030 #elif DB_VERSION_MAJOR > 1
41031 db_appexit( NULL );
41033 (void) dbopen( NULL, 0, 0, 0, NULL);
41040 rm -f conftest.$ac_objext conftest$ac_exeext
41041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41042 (eval $ac_link) 2>conftest.er1
41044 grep -v '^ *+' conftest.er1 >conftest.err
41046 cat conftest.err >&5
41047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048 (exit $ac_status); } &&
41049 { ac_try='test -z "$ac_c_werror_flag"
41050 || test ! -s conftest.err'
41051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41052 (eval $ac_try) 2>&5
41054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41055 (exit $ac_status); }; } &&
41056 { ac_try='test -s conftest$ac_exeext'
41057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41058 (eval $ac_try) 2>&5
41060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061 (exit $ac_status); }; }; then
41064 echo "$as_me: failed program was:" >&5
41065 sed 's/^/| /' conftest.$ac_ext >&5
41069 rm -f conftest.err conftest.$ac_objext \
41070 conftest$ac_exeext conftest.$ac_ext
41075 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
41076 echo "${ECHO_T}$ol_cv_db_db_43" >&6
41078 if test $ol_cv_db_db_43 = yes ; then
41079 ol_cv_lib_db=-ldb-43
41083 if test $ol_cv_lib_db = no ; then
41084 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
41085 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
41086 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
41087 echo $ECHO_N "(cached) $ECHO_C" >&6
41092 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41094 cat >conftest.$ac_ext <<_ACEOF
41097 cat confdefs.h >>conftest.$ac_ext
41098 cat >>conftest.$ac_ext <<_ACEOF
41099 /* end confdefs.h. */
41101 #ifdef HAVE_DB_185_H
41102 # include <db_185.h>
41107 #ifndef DB_VERSION_MAJOR
41108 # define DB_VERSION_MAJOR 1
41112 #define NULL ((void*)0)
41119 #if DB_VERSION_MAJOR > 1
41122 int major, minor, patch;
41124 version = db_version( &major, &minor, &patch );
41126 if( major != DB_VERSION_MAJOR ||
41127 minor < DB_VERSION_MINOR )
41129 printf("Berkeley DB version mismatch\n"
41130 "\theader: %s\n\tlibrary: %s\n",
41131 DB_VERSION_STRING, version);
41137 #if DB_VERSION_MAJOR > 2
41138 db_env_create( NULL, 0 );
41139 #elif DB_VERSION_MAJOR > 1
41140 db_appexit( NULL );
41142 (void) dbopen( NULL, 0, 0, 0, NULL);
41149 rm -f conftest.$ac_objext conftest$ac_exeext
41150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41151 (eval $ac_link) 2>conftest.er1
41153 grep -v '^ *+' conftest.er1 >conftest.err
41155 cat conftest.err >&5
41156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41157 (exit $ac_status); } &&
41158 { ac_try='test -z "$ac_c_werror_flag"
41159 || test ! -s conftest.err'
41160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41161 (eval $ac_try) 2>&5
41163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41164 (exit $ac_status); }; } &&
41165 { ac_try='test -s conftest$ac_exeext'
41166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41167 (eval $ac_try) 2>&5
41169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41170 (exit $ac_status); }; }; then
41171 ol_cv_db_db_4_dot_3=yes
41173 echo "$as_me: failed program was:" >&5
41174 sed 's/^/| /' conftest.$ac_ext >&5
41176 ol_cv_db_db_4_dot_3=no
41178 rm -f conftest.err conftest.$ac_objext \
41179 conftest$ac_exeext conftest.$ac_ext
41184 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41185 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41187 if test $ol_cv_db_db_4_dot_3 = yes ; then
41188 ol_cv_lib_db=-ldb-4.3
41192 if test $ol_cv_lib_db = no ; then
41193 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41194 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41195 if test "${ol_cv_db_db_4_3+set}" = set; then
41196 echo $ECHO_N "(cached) $ECHO_C" >&6
41201 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41203 cat >conftest.$ac_ext <<_ACEOF
41206 cat confdefs.h >>conftest.$ac_ext
41207 cat >>conftest.$ac_ext <<_ACEOF
41208 /* end confdefs.h. */
41210 #ifdef HAVE_DB_185_H
41211 # include <db_185.h>
41216 #ifndef DB_VERSION_MAJOR
41217 # define DB_VERSION_MAJOR 1
41221 #define NULL ((void*)0)
41228 #if DB_VERSION_MAJOR > 1
41231 int major, minor, patch;
41233 version = db_version( &major, &minor, &patch );
41235 if( major != DB_VERSION_MAJOR ||
41236 minor < DB_VERSION_MINOR )
41238 printf("Berkeley DB version mismatch\n"
41239 "\theader: %s\n\tlibrary: %s\n",
41240 DB_VERSION_STRING, version);
41246 #if DB_VERSION_MAJOR > 2
41247 db_env_create( NULL, 0 );
41248 #elif DB_VERSION_MAJOR > 1
41249 db_appexit( NULL );
41251 (void) dbopen( NULL, 0, 0, 0, NULL);
41258 rm -f conftest.$ac_objext conftest$ac_exeext
41259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41260 (eval $ac_link) 2>conftest.er1
41262 grep -v '^ *+' conftest.er1 >conftest.err
41264 cat conftest.err >&5
41265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266 (exit $ac_status); } &&
41267 { ac_try='test -z "$ac_c_werror_flag"
41268 || test ! -s conftest.err'
41269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41270 (eval $ac_try) 2>&5
41272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273 (exit $ac_status); }; } &&
41274 { ac_try='test -s conftest$ac_exeext'
41275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41276 (eval $ac_try) 2>&5
41278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279 (exit $ac_status); }; }; then
41280 ol_cv_db_db_4_3=yes
41282 echo "$as_me: failed program was:" >&5
41283 sed 's/^/| /' conftest.$ac_ext >&5
41287 rm -f conftest.err conftest.$ac_objext \
41288 conftest$ac_exeext conftest.$ac_ext
41293 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41294 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41296 if test $ol_cv_db_db_4_3 = yes ; then
41297 ol_cv_lib_db=-ldb-4-3
41301 if test $ol_cv_lib_db = no ; then
41302 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41303 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41304 if test "${ol_cv_db_db42+set}" = set; then
41305 echo $ECHO_N "(cached) $ECHO_C" >&6
41310 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41312 cat >conftest.$ac_ext <<_ACEOF
41315 cat confdefs.h >>conftest.$ac_ext
41316 cat >>conftest.$ac_ext <<_ACEOF
41317 /* end confdefs.h. */
41319 #ifdef HAVE_DB_185_H
41320 # include <db_185.h>
41325 #ifndef DB_VERSION_MAJOR
41326 # define DB_VERSION_MAJOR 1
41330 #define NULL ((void*)0)
41337 #if DB_VERSION_MAJOR > 1
41340 int major, minor, patch;
41342 version = db_version( &major, &minor, &patch );
41344 if( major != DB_VERSION_MAJOR ||
41345 minor < DB_VERSION_MINOR )
41347 printf("Berkeley DB version mismatch\n"
41348 "\theader: %s\n\tlibrary: %s\n",
41349 DB_VERSION_STRING, version);
41355 #if DB_VERSION_MAJOR > 2
41356 db_env_create( NULL, 0 );
41357 #elif DB_VERSION_MAJOR > 1
41358 db_appexit( NULL );
41360 (void) dbopen( NULL, 0, 0, 0, NULL);
41367 rm -f conftest.$ac_objext conftest$ac_exeext
41368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41369 (eval $ac_link) 2>conftest.er1
41371 grep -v '^ *+' conftest.er1 >conftest.err
41373 cat conftest.err >&5
41374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41375 (exit $ac_status); } &&
41376 { ac_try='test -z "$ac_c_werror_flag"
41377 || test ! -s conftest.err'
41378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41379 (eval $ac_try) 2>&5
41381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41382 (exit $ac_status); }; } &&
41383 { ac_try='test -s conftest$ac_exeext'
41384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41385 (eval $ac_try) 2>&5
41387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388 (exit $ac_status); }; }; then
41391 echo "$as_me: failed program was:" >&5
41392 sed 's/^/| /' conftest.$ac_ext >&5
41396 rm -f conftest.err conftest.$ac_objext \
41397 conftest$ac_exeext conftest.$ac_ext
41402 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41403 echo "${ECHO_T}$ol_cv_db_db42" >&6
41405 if test $ol_cv_db_db42 = yes ; then
41406 ol_cv_lib_db=-ldb42
41410 if test $ol_cv_lib_db = no ; then
41411 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41412 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41413 if test "${ol_cv_db_db_42+set}" = set; then
41414 echo $ECHO_N "(cached) $ECHO_C" >&6
41419 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41421 cat >conftest.$ac_ext <<_ACEOF
41424 cat confdefs.h >>conftest.$ac_ext
41425 cat >>conftest.$ac_ext <<_ACEOF
41426 /* end confdefs.h. */
41428 #ifdef HAVE_DB_185_H
41429 # include <db_185.h>
41434 #ifndef DB_VERSION_MAJOR
41435 # define DB_VERSION_MAJOR 1
41439 #define NULL ((void*)0)
41446 #if DB_VERSION_MAJOR > 1
41449 int major, minor, patch;
41451 version = db_version( &major, &minor, &patch );
41453 if( major != DB_VERSION_MAJOR ||
41454 minor < DB_VERSION_MINOR )
41456 printf("Berkeley DB version mismatch\n"
41457 "\theader: %s\n\tlibrary: %s\n",
41458 DB_VERSION_STRING, version);
41464 #if DB_VERSION_MAJOR > 2
41465 db_env_create( NULL, 0 );
41466 #elif DB_VERSION_MAJOR > 1
41467 db_appexit( NULL );
41469 (void) dbopen( NULL, 0, 0, 0, NULL);
41476 rm -f conftest.$ac_objext conftest$ac_exeext
41477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41478 (eval $ac_link) 2>conftest.er1
41480 grep -v '^ *+' conftest.er1 >conftest.err
41482 cat conftest.err >&5
41483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484 (exit $ac_status); } &&
41485 { ac_try='test -z "$ac_c_werror_flag"
41486 || test ! -s conftest.err'
41487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41488 (eval $ac_try) 2>&5
41490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41491 (exit $ac_status); }; } &&
41492 { ac_try='test -s conftest$ac_exeext'
41493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41494 (eval $ac_try) 2>&5
41496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497 (exit $ac_status); }; }; then
41500 echo "$as_me: failed program was:" >&5
41501 sed 's/^/| /' conftest.$ac_ext >&5
41505 rm -f conftest.err conftest.$ac_objext \
41506 conftest$ac_exeext conftest.$ac_ext
41511 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41512 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41514 if test $ol_cv_db_db_42 = yes ; then
41515 ol_cv_lib_db=-ldb-42
41519 if test $ol_cv_lib_db = no ; then
41520 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41521 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41522 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41523 echo $ECHO_N "(cached) $ECHO_C" >&6
41528 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41530 cat >conftest.$ac_ext <<_ACEOF
41533 cat confdefs.h >>conftest.$ac_ext
41534 cat >>conftest.$ac_ext <<_ACEOF
41535 /* end confdefs.h. */
41537 #ifdef HAVE_DB_185_H
41538 # include <db_185.h>
41543 #ifndef DB_VERSION_MAJOR
41544 # define DB_VERSION_MAJOR 1
41548 #define NULL ((void*)0)
41555 #if DB_VERSION_MAJOR > 1
41558 int major, minor, patch;
41560 version = db_version( &major, &minor, &patch );
41562 if( major != DB_VERSION_MAJOR ||
41563 minor < DB_VERSION_MINOR )
41565 printf("Berkeley DB version mismatch\n"
41566 "\theader: %s\n\tlibrary: %s\n",
41567 DB_VERSION_STRING, version);
41573 #if DB_VERSION_MAJOR > 2
41574 db_env_create( NULL, 0 );
41575 #elif DB_VERSION_MAJOR > 1
41576 db_appexit( NULL );
41578 (void) dbopen( NULL, 0, 0, 0, NULL);
41585 rm -f conftest.$ac_objext conftest$ac_exeext
41586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41587 (eval $ac_link) 2>conftest.er1
41589 grep -v '^ *+' conftest.er1 >conftest.err
41591 cat conftest.err >&5
41592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41593 (exit $ac_status); } &&
41594 { ac_try='test -z "$ac_c_werror_flag"
41595 || test ! -s conftest.err'
41596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41597 (eval $ac_try) 2>&5
41599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41600 (exit $ac_status); }; } &&
41601 { ac_try='test -s conftest$ac_exeext'
41602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41603 (eval $ac_try) 2>&5
41605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41606 (exit $ac_status); }; }; then
41607 ol_cv_db_db_4_dot_2=yes
41609 echo "$as_me: failed program was:" >&5
41610 sed 's/^/| /' conftest.$ac_ext >&5
41612 ol_cv_db_db_4_dot_2=no
41614 rm -f conftest.err conftest.$ac_objext \
41615 conftest$ac_exeext conftest.$ac_ext
41620 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41621 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41623 if test $ol_cv_db_db_4_dot_2 = yes ; then
41624 ol_cv_lib_db=-ldb-4.2
41628 if test $ol_cv_lib_db = no ; then
41629 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41630 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41631 if test "${ol_cv_db_db_4_2+set}" = set; then
41632 echo $ECHO_N "(cached) $ECHO_C" >&6
41637 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41639 cat >conftest.$ac_ext <<_ACEOF
41642 cat confdefs.h >>conftest.$ac_ext
41643 cat >>conftest.$ac_ext <<_ACEOF
41644 /* end confdefs.h. */
41646 #ifdef HAVE_DB_185_H
41647 # include <db_185.h>
41652 #ifndef DB_VERSION_MAJOR
41653 # define DB_VERSION_MAJOR 1
41657 #define NULL ((void*)0)
41664 #if DB_VERSION_MAJOR > 1
41667 int major, minor, patch;
41669 version = db_version( &major, &minor, &patch );
41671 if( major != DB_VERSION_MAJOR ||
41672 minor < DB_VERSION_MINOR )
41674 printf("Berkeley DB version mismatch\n"
41675 "\theader: %s\n\tlibrary: %s\n",
41676 DB_VERSION_STRING, version);
41682 #if DB_VERSION_MAJOR > 2
41683 db_env_create( NULL, 0 );
41684 #elif DB_VERSION_MAJOR > 1
41685 db_appexit( NULL );
41687 (void) dbopen( NULL, 0, 0, 0, NULL);
41694 rm -f conftest.$ac_objext conftest$ac_exeext
41695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41696 (eval $ac_link) 2>conftest.er1
41698 grep -v '^ *+' conftest.er1 >conftest.err
41700 cat conftest.err >&5
41701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); } &&
41703 { ac_try='test -z "$ac_c_werror_flag"
41704 || test ! -s conftest.err'
41705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41706 (eval $ac_try) 2>&5
41708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41709 (exit $ac_status); }; } &&
41710 { ac_try='test -s conftest$ac_exeext'
41711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41712 (eval $ac_try) 2>&5
41714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715 (exit $ac_status); }; }; then
41716 ol_cv_db_db_4_2=yes
41718 echo "$as_me: failed program was:" >&5
41719 sed 's/^/| /' conftest.$ac_ext >&5
41723 rm -f conftest.err conftest.$ac_objext \
41724 conftest$ac_exeext conftest.$ac_ext
41729 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41730 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41732 if test $ol_cv_db_db_4_2 = yes ; then
41733 ol_cv_lib_db=-ldb-4-2
41737 if test $ol_cv_lib_db = no ; then
41738 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41739 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41740 if test "${ol_cv_db_db_4+set}" = set; then
41741 echo $ECHO_N "(cached) $ECHO_C" >&6
41746 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41748 cat >conftest.$ac_ext <<_ACEOF
41751 cat confdefs.h >>conftest.$ac_ext
41752 cat >>conftest.$ac_ext <<_ACEOF
41753 /* end confdefs.h. */
41755 #ifdef HAVE_DB_185_H
41756 # include <db_185.h>
41761 #ifndef DB_VERSION_MAJOR
41762 # define DB_VERSION_MAJOR 1
41766 #define NULL ((void*)0)
41773 #if DB_VERSION_MAJOR > 1
41776 int major, minor, patch;
41778 version = db_version( &major, &minor, &patch );
41780 if( major != DB_VERSION_MAJOR ||
41781 minor < DB_VERSION_MINOR )
41783 printf("Berkeley DB version mismatch\n"
41784 "\theader: %s\n\tlibrary: %s\n",
41785 DB_VERSION_STRING, version);
41791 #if DB_VERSION_MAJOR > 2
41792 db_env_create( NULL, 0 );
41793 #elif DB_VERSION_MAJOR > 1
41794 db_appexit( NULL );
41796 (void) dbopen( NULL, 0, 0, 0, NULL);
41803 rm -f conftest.$ac_objext conftest$ac_exeext
41804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41805 (eval $ac_link) 2>conftest.er1
41807 grep -v '^ *+' conftest.er1 >conftest.err
41809 cat conftest.err >&5
41810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41811 (exit $ac_status); } &&
41812 { ac_try='test -z "$ac_c_werror_flag"
41813 || test ! -s conftest.err'
41814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41815 (eval $ac_try) 2>&5
41817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818 (exit $ac_status); }; } &&
41819 { ac_try='test -s conftest$ac_exeext'
41820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41821 (eval $ac_try) 2>&5
41823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824 (exit $ac_status); }; }; then
41827 echo "$as_me: failed program was:" >&5
41828 sed 's/^/| /' conftest.$ac_ext >&5
41832 rm -f conftest.err conftest.$ac_objext \
41833 conftest$ac_exeext conftest.$ac_ext
41838 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41839 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41841 if test $ol_cv_db_db_4 = yes ; then
41842 ol_cv_lib_db=-ldb-4
41846 if test $ol_cv_lib_db = no ; then
41847 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41848 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41849 if test "${ol_cv_db_db4+set}" = set; then
41850 echo $ECHO_N "(cached) $ECHO_C" >&6
41855 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41857 cat >conftest.$ac_ext <<_ACEOF
41860 cat confdefs.h >>conftest.$ac_ext
41861 cat >>conftest.$ac_ext <<_ACEOF
41862 /* end confdefs.h. */
41864 #ifdef HAVE_DB_185_H
41865 # include <db_185.h>
41870 #ifndef DB_VERSION_MAJOR
41871 # define DB_VERSION_MAJOR 1
41875 #define NULL ((void*)0)
41882 #if DB_VERSION_MAJOR > 1
41885 int major, minor, patch;
41887 version = db_version( &major, &minor, &patch );
41889 if( major != DB_VERSION_MAJOR ||
41890 minor < DB_VERSION_MINOR )
41892 printf("Berkeley DB version mismatch\n"
41893 "\theader: %s\n\tlibrary: %s\n",
41894 DB_VERSION_STRING, version);
41900 #if DB_VERSION_MAJOR > 2
41901 db_env_create( NULL, 0 );
41902 #elif DB_VERSION_MAJOR > 1
41903 db_appexit( NULL );
41905 (void) dbopen( NULL, 0, 0, 0, NULL);
41912 rm -f conftest.$ac_objext conftest$ac_exeext
41913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41914 (eval $ac_link) 2>conftest.er1
41916 grep -v '^ *+' conftest.er1 >conftest.err
41918 cat conftest.err >&5
41919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41920 (exit $ac_status); } &&
41921 { ac_try='test -z "$ac_c_werror_flag"
41922 || test ! -s conftest.err'
41923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41924 (eval $ac_try) 2>&5
41926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41927 (exit $ac_status); }; } &&
41928 { ac_try='test -s conftest$ac_exeext'
41929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41930 (eval $ac_try) 2>&5
41932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933 (exit $ac_status); }; }; then
41936 echo "$as_me: failed program was:" >&5
41937 sed 's/^/| /' conftest.$ac_ext >&5
41941 rm -f conftest.err conftest.$ac_objext \
41942 conftest$ac_exeext conftest.$ac_ext
41947 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41948 echo "${ECHO_T}$ol_cv_db_db4" >&6
41950 if test $ol_cv_db_db4 = yes ; then
41955 if test $ol_cv_lib_db = no ; then
41956 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41957 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41958 if test "${ol_cv_db_db+set}" = set; then
41959 echo $ECHO_N "(cached) $ECHO_C" >&6
41964 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41966 cat >conftest.$ac_ext <<_ACEOF
41969 cat confdefs.h >>conftest.$ac_ext
41970 cat >>conftest.$ac_ext <<_ACEOF
41971 /* end confdefs.h. */
41973 #ifdef HAVE_DB_185_H
41974 # include <db_185.h>
41979 #ifndef DB_VERSION_MAJOR
41980 # define DB_VERSION_MAJOR 1
41984 #define NULL ((void*)0)
41991 #if DB_VERSION_MAJOR > 1
41994 int major, minor, patch;
41996 version = db_version( &major, &minor, &patch );
41998 if( major != DB_VERSION_MAJOR ||
41999 minor < DB_VERSION_MINOR )
42001 printf("Berkeley DB version mismatch\n"
42002 "\theader: %s\n\tlibrary: %s\n",
42003 DB_VERSION_STRING, version);
42009 #if DB_VERSION_MAJOR > 2
42010 db_env_create( NULL, 0 );
42011 #elif DB_VERSION_MAJOR > 1
42012 db_appexit( NULL );
42014 (void) dbopen( NULL, 0, 0, 0, NULL);
42021 rm -f conftest.$ac_objext conftest$ac_exeext
42022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42023 (eval $ac_link) 2>conftest.er1
42025 grep -v '^ *+' conftest.er1 >conftest.err
42027 cat conftest.err >&5
42028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42029 (exit $ac_status); } &&
42030 { ac_try='test -z "$ac_c_werror_flag"
42031 || test ! -s conftest.err'
42032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42033 (eval $ac_try) 2>&5
42035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42036 (exit $ac_status); }; } &&
42037 { ac_try='test -s conftest$ac_exeext'
42038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42039 (eval $ac_try) 2>&5
42041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42042 (exit $ac_status); }; }; then
42045 echo "$as_me: failed program was:" >&5
42046 sed 's/^/| /' conftest.$ac_ext >&5
42050 rm -f conftest.err conftest.$ac_objext \
42051 conftest$ac_exeext conftest.$ac_ext
42056 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
42057 echo "${ECHO_T}$ol_cv_db_db" >&6
42059 if test $ol_cv_db_db = yes ; then
42064 if test $ol_cv_lib_db = no ; then
42065 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
42066 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
42067 if test "${ol_cv_db_db41+set}" = set; then
42068 echo $ECHO_N "(cached) $ECHO_C" >&6
42073 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42075 cat >conftest.$ac_ext <<_ACEOF
42078 cat confdefs.h >>conftest.$ac_ext
42079 cat >>conftest.$ac_ext <<_ACEOF
42080 /* end confdefs.h. */
42082 #ifdef HAVE_DB_185_H
42083 # include <db_185.h>
42088 #ifndef DB_VERSION_MAJOR
42089 # define DB_VERSION_MAJOR 1
42093 #define NULL ((void*)0)
42100 #if DB_VERSION_MAJOR > 1
42103 int major, minor, patch;
42105 version = db_version( &major, &minor, &patch );
42107 if( major != DB_VERSION_MAJOR ||
42108 minor < DB_VERSION_MINOR )
42110 printf("Berkeley DB version mismatch\n"
42111 "\theader: %s\n\tlibrary: %s\n",
42112 DB_VERSION_STRING, version);
42118 #if DB_VERSION_MAJOR > 2
42119 db_env_create( NULL, 0 );
42120 #elif DB_VERSION_MAJOR > 1
42121 db_appexit( NULL );
42123 (void) dbopen( NULL, 0, 0, 0, NULL);
42130 rm -f conftest.$ac_objext conftest$ac_exeext
42131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42132 (eval $ac_link) 2>conftest.er1
42134 grep -v '^ *+' conftest.er1 >conftest.err
42136 cat conftest.err >&5
42137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138 (exit $ac_status); } &&
42139 { ac_try='test -z "$ac_c_werror_flag"
42140 || test ! -s conftest.err'
42141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42142 (eval $ac_try) 2>&5
42144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145 (exit $ac_status); }; } &&
42146 { ac_try='test -s conftest$ac_exeext'
42147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42148 (eval $ac_try) 2>&5
42150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151 (exit $ac_status); }; }; then
42154 echo "$as_me: failed program was:" >&5
42155 sed 's/^/| /' conftest.$ac_ext >&5
42159 rm -f conftest.err conftest.$ac_objext \
42160 conftest$ac_exeext conftest.$ac_ext
42165 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42166 echo "${ECHO_T}$ol_cv_db_db41" >&6
42168 if test $ol_cv_db_db41 = yes ; then
42169 ol_cv_lib_db=-ldb41
42173 if test $ol_cv_lib_db = no ; then
42174 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42175 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42176 if test "${ol_cv_db_db_41+set}" = set; then
42177 echo $ECHO_N "(cached) $ECHO_C" >&6
42182 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42184 cat >conftest.$ac_ext <<_ACEOF
42187 cat confdefs.h >>conftest.$ac_ext
42188 cat >>conftest.$ac_ext <<_ACEOF
42189 /* end confdefs.h. */
42191 #ifdef HAVE_DB_185_H
42192 # include <db_185.h>
42197 #ifndef DB_VERSION_MAJOR
42198 # define DB_VERSION_MAJOR 1
42202 #define NULL ((void*)0)
42209 #if DB_VERSION_MAJOR > 1
42212 int major, minor, patch;
42214 version = db_version( &major, &minor, &patch );
42216 if( major != DB_VERSION_MAJOR ||
42217 minor < DB_VERSION_MINOR )
42219 printf("Berkeley DB version mismatch\n"
42220 "\theader: %s\n\tlibrary: %s\n",
42221 DB_VERSION_STRING, version);
42227 #if DB_VERSION_MAJOR > 2
42228 db_env_create( NULL, 0 );
42229 #elif DB_VERSION_MAJOR > 1
42230 db_appexit( NULL );
42232 (void) dbopen( NULL, 0, 0, 0, NULL);
42239 rm -f conftest.$ac_objext conftest$ac_exeext
42240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42241 (eval $ac_link) 2>conftest.er1
42243 grep -v '^ *+' conftest.er1 >conftest.err
42245 cat conftest.err >&5
42246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247 (exit $ac_status); } &&
42248 { ac_try='test -z "$ac_c_werror_flag"
42249 || test ! -s conftest.err'
42250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42251 (eval $ac_try) 2>&5
42253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254 (exit $ac_status); }; } &&
42255 { ac_try='test -s conftest$ac_exeext'
42256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42257 (eval $ac_try) 2>&5
42259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42260 (exit $ac_status); }; }; then
42263 echo "$as_me: failed program was:" >&5
42264 sed 's/^/| /' conftest.$ac_ext >&5
42268 rm -f conftest.err conftest.$ac_objext \
42269 conftest$ac_exeext conftest.$ac_ext
42274 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42275 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42277 if test $ol_cv_db_db_41 = yes ; then
42278 ol_cv_lib_db=-ldb-41
42282 if test $ol_cv_lib_db = no ; then
42283 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42284 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42285 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42286 echo $ECHO_N "(cached) $ECHO_C" >&6
42291 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42293 cat >conftest.$ac_ext <<_ACEOF
42296 cat confdefs.h >>conftest.$ac_ext
42297 cat >>conftest.$ac_ext <<_ACEOF
42298 /* end confdefs.h. */
42300 #ifdef HAVE_DB_185_H
42301 # include <db_185.h>
42306 #ifndef DB_VERSION_MAJOR
42307 # define DB_VERSION_MAJOR 1
42311 #define NULL ((void*)0)
42318 #if DB_VERSION_MAJOR > 1
42321 int major, minor, patch;
42323 version = db_version( &major, &minor, &patch );
42325 if( major != DB_VERSION_MAJOR ||
42326 minor < DB_VERSION_MINOR )
42328 printf("Berkeley DB version mismatch\n"
42329 "\theader: %s\n\tlibrary: %s\n",
42330 DB_VERSION_STRING, version);
42336 #if DB_VERSION_MAJOR > 2
42337 db_env_create( NULL, 0 );
42338 #elif DB_VERSION_MAJOR > 1
42339 db_appexit( NULL );
42341 (void) dbopen( NULL, 0, 0, 0, NULL);
42348 rm -f conftest.$ac_objext conftest$ac_exeext
42349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42350 (eval $ac_link) 2>conftest.er1
42352 grep -v '^ *+' conftest.er1 >conftest.err
42354 cat conftest.err >&5
42355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42356 (exit $ac_status); } &&
42357 { ac_try='test -z "$ac_c_werror_flag"
42358 || test ! -s conftest.err'
42359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42360 (eval $ac_try) 2>&5
42362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42363 (exit $ac_status); }; } &&
42364 { ac_try='test -s conftest$ac_exeext'
42365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42366 (eval $ac_try) 2>&5
42368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42369 (exit $ac_status); }; }; then
42370 ol_cv_db_db_4_dot_1=yes
42372 echo "$as_me: failed program was:" >&5
42373 sed 's/^/| /' conftest.$ac_ext >&5
42375 ol_cv_db_db_4_dot_1=no
42377 rm -f conftest.err conftest.$ac_objext \
42378 conftest$ac_exeext conftest.$ac_ext
42383 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42384 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42386 if test $ol_cv_db_db_4_dot_1 = yes ; then
42387 ol_cv_lib_db=-ldb-4.1
42391 if test $ol_cv_lib_db = no ; then
42392 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42393 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42394 if test "${ol_cv_db_db_4_1+set}" = set; then
42395 echo $ECHO_N "(cached) $ECHO_C" >&6
42400 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42402 cat >conftest.$ac_ext <<_ACEOF
42405 cat confdefs.h >>conftest.$ac_ext
42406 cat >>conftest.$ac_ext <<_ACEOF
42407 /* end confdefs.h. */
42409 #ifdef HAVE_DB_185_H
42410 # include <db_185.h>
42415 #ifndef DB_VERSION_MAJOR
42416 # define DB_VERSION_MAJOR 1
42420 #define NULL ((void*)0)
42427 #if DB_VERSION_MAJOR > 1
42430 int major, minor, patch;
42432 version = db_version( &major, &minor, &patch );
42434 if( major != DB_VERSION_MAJOR ||
42435 minor < DB_VERSION_MINOR )
42437 printf("Berkeley DB version mismatch\n"
42438 "\theader: %s\n\tlibrary: %s\n",
42439 DB_VERSION_STRING, version);
42445 #if DB_VERSION_MAJOR > 2
42446 db_env_create( NULL, 0 );
42447 #elif DB_VERSION_MAJOR > 1
42448 db_appexit( NULL );
42450 (void) dbopen( NULL, 0, 0, 0, NULL);
42457 rm -f conftest.$ac_objext conftest$ac_exeext
42458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42459 (eval $ac_link) 2>conftest.er1
42461 grep -v '^ *+' conftest.er1 >conftest.err
42463 cat conftest.err >&5
42464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465 (exit $ac_status); } &&
42466 { ac_try='test -z "$ac_c_werror_flag"
42467 || test ! -s conftest.err'
42468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42469 (eval $ac_try) 2>&5
42471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42472 (exit $ac_status); }; } &&
42473 { ac_try='test -s conftest$ac_exeext'
42474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42475 (eval $ac_try) 2>&5
42477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478 (exit $ac_status); }; }; then
42479 ol_cv_db_db_4_1=yes
42481 echo "$as_me: failed program was:" >&5
42482 sed 's/^/| /' conftest.$ac_ext >&5
42486 rm -f conftest.err conftest.$ac_objext \
42487 conftest$ac_exeext conftest.$ac_ext
42492 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42493 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42495 if test $ol_cv_db_db_4_1 = yes ; then
42496 ol_cv_lib_db=-ldb-4-1
42500 if test $ol_cv_lib_db = no ; then
42501 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42502 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42503 if test "${ol_cv_db_db3+set}" = set; then
42504 echo $ECHO_N "(cached) $ECHO_C" >&6
42509 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42511 cat >conftest.$ac_ext <<_ACEOF
42514 cat confdefs.h >>conftest.$ac_ext
42515 cat >>conftest.$ac_ext <<_ACEOF
42516 /* end confdefs.h. */
42518 #ifdef HAVE_DB_185_H
42519 # include <db_185.h>
42524 #ifndef DB_VERSION_MAJOR
42525 # define DB_VERSION_MAJOR 1
42529 #define NULL ((void*)0)
42536 #if DB_VERSION_MAJOR > 1
42539 int major, minor, patch;
42541 version = db_version( &major, &minor, &patch );
42543 if( major != DB_VERSION_MAJOR ||
42544 minor < DB_VERSION_MINOR )
42546 printf("Berkeley DB version mismatch\n"
42547 "\theader: %s\n\tlibrary: %s\n",
42548 DB_VERSION_STRING, version);
42554 #if DB_VERSION_MAJOR > 2
42555 db_env_create( NULL, 0 );
42556 #elif DB_VERSION_MAJOR > 1
42557 db_appexit( NULL );
42559 (void) dbopen( NULL, 0, 0, 0, NULL);
42566 rm -f conftest.$ac_objext conftest$ac_exeext
42567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42568 (eval $ac_link) 2>conftest.er1
42570 grep -v '^ *+' conftest.er1 >conftest.err
42572 cat conftest.err >&5
42573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574 (exit $ac_status); } &&
42575 { ac_try='test -z "$ac_c_werror_flag"
42576 || test ! -s conftest.err'
42577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42578 (eval $ac_try) 2>&5
42580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581 (exit $ac_status); }; } &&
42582 { ac_try='test -s conftest$ac_exeext'
42583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42584 (eval $ac_try) 2>&5
42586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587 (exit $ac_status); }; }; then
42590 echo "$as_me: failed program was:" >&5
42591 sed 's/^/| /' conftest.$ac_ext >&5
42595 rm -f conftest.err conftest.$ac_objext \
42596 conftest$ac_exeext conftest.$ac_ext
42601 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42602 echo "${ECHO_T}$ol_cv_db_db3" >&6
42604 if test $ol_cv_db_db3 = yes ; then
42609 if test $ol_cv_lib_db = no ; then
42610 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42611 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42612 if test "${ol_cv_db_db_3+set}" = set; then
42613 echo $ECHO_N "(cached) $ECHO_C" >&6
42618 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42620 cat >conftest.$ac_ext <<_ACEOF
42623 cat confdefs.h >>conftest.$ac_ext
42624 cat >>conftest.$ac_ext <<_ACEOF
42625 /* end confdefs.h. */
42627 #ifdef HAVE_DB_185_H
42628 # include <db_185.h>
42633 #ifndef DB_VERSION_MAJOR
42634 # define DB_VERSION_MAJOR 1
42638 #define NULL ((void*)0)
42645 #if DB_VERSION_MAJOR > 1
42648 int major, minor, patch;
42650 version = db_version( &major, &minor, &patch );
42652 if( major != DB_VERSION_MAJOR ||
42653 minor < DB_VERSION_MINOR )
42655 printf("Berkeley DB version mismatch\n"
42656 "\theader: %s\n\tlibrary: %s\n",
42657 DB_VERSION_STRING, version);
42663 #if DB_VERSION_MAJOR > 2
42664 db_env_create( NULL, 0 );
42665 #elif DB_VERSION_MAJOR > 1
42666 db_appexit( NULL );
42668 (void) dbopen( NULL, 0, 0, 0, NULL);
42675 rm -f conftest.$ac_objext conftest$ac_exeext
42676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42677 (eval $ac_link) 2>conftest.er1
42679 grep -v '^ *+' conftest.er1 >conftest.err
42681 cat conftest.err >&5
42682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42683 (exit $ac_status); } &&
42684 { ac_try='test -z "$ac_c_werror_flag"
42685 || test ! -s conftest.err'
42686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42687 (eval $ac_try) 2>&5
42689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42690 (exit $ac_status); }; } &&
42691 { ac_try='test -s conftest$ac_exeext'
42692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42693 (eval $ac_try) 2>&5
42695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42696 (exit $ac_status); }; }; then
42699 echo "$as_me: failed program was:" >&5
42700 sed 's/^/| /' conftest.$ac_ext >&5
42704 rm -f conftest.err conftest.$ac_objext \
42705 conftest$ac_exeext conftest.$ac_ext
42710 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42711 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42713 if test $ol_cv_db_db_3 = yes ; then
42714 ol_cv_lib_db=-ldb-3
42718 if test $ol_cv_lib_db = no ; then
42719 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42720 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42721 if test "${ol_cv_db_db2+set}" = set; then
42722 echo $ECHO_N "(cached) $ECHO_C" >&6
42727 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42729 cat >conftest.$ac_ext <<_ACEOF
42732 cat confdefs.h >>conftest.$ac_ext
42733 cat >>conftest.$ac_ext <<_ACEOF
42734 /* end confdefs.h. */
42736 #ifdef HAVE_DB_185_H
42737 # include <db_185.h>
42742 #ifndef DB_VERSION_MAJOR
42743 # define DB_VERSION_MAJOR 1
42747 #define NULL ((void*)0)
42754 #if DB_VERSION_MAJOR > 1
42757 int major, minor, patch;
42759 version = db_version( &major, &minor, &patch );
42761 if( major != DB_VERSION_MAJOR ||
42762 minor < DB_VERSION_MINOR )
42764 printf("Berkeley DB version mismatch\n"
42765 "\theader: %s\n\tlibrary: %s\n",
42766 DB_VERSION_STRING, version);
42772 #if DB_VERSION_MAJOR > 2
42773 db_env_create( NULL, 0 );
42774 #elif DB_VERSION_MAJOR > 1
42775 db_appexit( NULL );
42777 (void) dbopen( NULL, 0, 0, 0, NULL);
42784 rm -f conftest.$ac_objext conftest$ac_exeext
42785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42786 (eval $ac_link) 2>conftest.er1
42788 grep -v '^ *+' conftest.er1 >conftest.err
42790 cat conftest.err >&5
42791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42792 (exit $ac_status); } &&
42793 { ac_try='test -z "$ac_c_werror_flag"
42794 || test ! -s conftest.err'
42795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42796 (eval $ac_try) 2>&5
42798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799 (exit $ac_status); }; } &&
42800 { ac_try='test -s conftest$ac_exeext'
42801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42802 (eval $ac_try) 2>&5
42804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42805 (exit $ac_status); }; }; then
42808 echo "$as_me: failed program was:" >&5
42809 sed 's/^/| /' conftest.$ac_ext >&5
42813 rm -f conftest.err conftest.$ac_objext \
42814 conftest$ac_exeext conftest.$ac_ext
42819 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42820 echo "${ECHO_T}$ol_cv_db_db2" >&6
42822 if test $ol_cv_db_db2 = yes ; then
42827 if test $ol_cv_lib_db = no ; then
42828 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42829 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42830 if test "${ol_cv_db_db_2+set}" = set; then
42831 echo $ECHO_N "(cached) $ECHO_C" >&6
42836 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42838 cat >conftest.$ac_ext <<_ACEOF
42841 cat confdefs.h >>conftest.$ac_ext
42842 cat >>conftest.$ac_ext <<_ACEOF
42843 /* end confdefs.h. */
42845 #ifdef HAVE_DB_185_H
42846 # include <db_185.h>
42851 #ifndef DB_VERSION_MAJOR
42852 # define DB_VERSION_MAJOR 1
42856 #define NULL ((void*)0)
42863 #if DB_VERSION_MAJOR > 1
42866 int major, minor, patch;
42868 version = db_version( &major, &minor, &patch );
42870 if( major != DB_VERSION_MAJOR ||
42871 minor < DB_VERSION_MINOR )
42873 printf("Berkeley DB version mismatch\n"
42874 "\theader: %s\n\tlibrary: %s\n",
42875 DB_VERSION_STRING, version);
42881 #if DB_VERSION_MAJOR > 2
42882 db_env_create( NULL, 0 );
42883 #elif DB_VERSION_MAJOR > 1
42884 db_appexit( NULL );
42886 (void) dbopen( NULL, 0, 0, 0, NULL);
42893 rm -f conftest.$ac_objext conftest$ac_exeext
42894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42895 (eval $ac_link) 2>conftest.er1
42897 grep -v '^ *+' conftest.er1 >conftest.err
42899 cat conftest.err >&5
42900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42901 (exit $ac_status); } &&
42902 { ac_try='test -z "$ac_c_werror_flag"
42903 || test ! -s conftest.err'
42904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42905 (eval $ac_try) 2>&5
42907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908 (exit $ac_status); }; } &&
42909 { ac_try='test -s conftest$ac_exeext'
42910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42911 (eval $ac_try) 2>&5
42913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914 (exit $ac_status); }; }; then
42917 echo "$as_me: failed program was:" >&5
42918 sed 's/^/| /' conftest.$ac_ext >&5
42922 rm -f conftest.err conftest.$ac_objext \
42923 conftest$ac_exeext conftest.$ac_ext
42928 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42929 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42931 if test $ol_cv_db_db_2 = yes ; then
42932 ol_cv_lib_db=-ldb-2
42936 if test $ol_cv_lib_db = no ; then
42937 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42938 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42939 if test "${ol_cv_db_db1+set}" = set; then
42940 echo $ECHO_N "(cached) $ECHO_C" >&6
42945 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42947 cat >conftest.$ac_ext <<_ACEOF
42950 cat confdefs.h >>conftest.$ac_ext
42951 cat >>conftest.$ac_ext <<_ACEOF
42952 /* end confdefs.h. */
42954 #ifdef HAVE_DB_185_H
42955 # include <db_185.h>
42960 #ifndef DB_VERSION_MAJOR
42961 # define DB_VERSION_MAJOR 1
42965 #define NULL ((void*)0)
42972 #if DB_VERSION_MAJOR > 1
42975 int major, minor, patch;
42977 version = db_version( &major, &minor, &patch );
42979 if( major != DB_VERSION_MAJOR ||
42980 minor < DB_VERSION_MINOR )
42982 printf("Berkeley DB version mismatch\n"
42983 "\theader: %s\n\tlibrary: %s\n",
42984 DB_VERSION_STRING, version);
42990 #if DB_VERSION_MAJOR > 2
42991 db_env_create( NULL, 0 );
42992 #elif DB_VERSION_MAJOR > 1
42993 db_appexit( NULL );
42995 (void) dbopen( NULL, 0, 0, 0, NULL);
43002 rm -f conftest.$ac_objext conftest$ac_exeext
43003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43004 (eval $ac_link) 2>conftest.er1
43006 grep -v '^ *+' conftest.er1 >conftest.err
43008 cat conftest.err >&5
43009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010 (exit $ac_status); } &&
43011 { ac_try='test -z "$ac_c_werror_flag"
43012 || test ! -s conftest.err'
43013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43014 (eval $ac_try) 2>&5
43016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43017 (exit $ac_status); }; } &&
43018 { ac_try='test -s conftest$ac_exeext'
43019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43020 (eval $ac_try) 2>&5
43022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43023 (exit $ac_status); }; }; then
43026 echo "$as_me: failed program was:" >&5
43027 sed 's/^/| /' conftest.$ac_ext >&5
43031 rm -f conftest.err conftest.$ac_objext \
43032 conftest$ac_exeext conftest.$ac_ext
43037 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
43038 echo "${ECHO_T}$ol_cv_db_db1" >&6
43040 if test $ol_cv_db_db1 = yes ; then
43045 if test $ol_cv_lib_db = no ; then
43046 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
43047 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
43048 if test "${ol_cv_db_db_1+set}" = set; then
43049 echo $ECHO_N "(cached) $ECHO_C" >&6
43054 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
43056 cat >conftest.$ac_ext <<_ACEOF
43059 cat confdefs.h >>conftest.$ac_ext
43060 cat >>conftest.$ac_ext <<_ACEOF
43061 /* end confdefs.h. */
43063 #ifdef HAVE_DB_185_H
43064 # include <db_185.h>
43069 #ifndef DB_VERSION_MAJOR
43070 # define DB_VERSION_MAJOR 1
43074 #define NULL ((void*)0)
43081 #if DB_VERSION_MAJOR > 1
43084 int major, minor, patch;
43086 version = db_version( &major, &minor, &patch );
43088 if( major != DB_VERSION_MAJOR ||
43089 minor < DB_VERSION_MINOR )
43091 printf("Berkeley DB version mismatch\n"
43092 "\theader: %s\n\tlibrary: %s\n",
43093 DB_VERSION_STRING, version);
43099 #if DB_VERSION_MAJOR > 2
43100 db_env_create( NULL, 0 );
43101 #elif DB_VERSION_MAJOR > 1
43102 db_appexit( NULL );
43104 (void) dbopen( NULL, 0, 0, 0, NULL);
43111 rm -f conftest.$ac_objext conftest$ac_exeext
43112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43113 (eval $ac_link) 2>conftest.er1
43115 grep -v '^ *+' conftest.er1 >conftest.err
43117 cat conftest.err >&5
43118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119 (exit $ac_status); } &&
43120 { ac_try='test -z "$ac_c_werror_flag"
43121 || test ! -s conftest.err'
43122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43123 (eval $ac_try) 2>&5
43125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43126 (exit $ac_status); }; } &&
43127 { ac_try='test -s conftest$ac_exeext'
43128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43129 (eval $ac_try) 2>&5
43131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132 (exit $ac_status); }; }; then
43135 echo "$as_me: failed program was:" >&5
43136 sed 's/^/| /' conftest.$ac_ext >&5
43140 rm -f conftest.err conftest.$ac_objext \
43141 conftest$ac_exeext conftest.$ac_ext
43146 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43147 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43149 if test $ol_cv_db_db_1 = yes ; then
43150 ol_cv_lib_db=-ldb-1
43155 if test "$ol_cv_lib_db" != no ; then
43156 ol_cv_berkeley_db=yes
43157 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43158 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43159 if test "${ol_cv_berkeley_db_version+set}" = set; then
43160 echo $ECHO_N "(cached) $ECHO_C" >&6
43164 LIBS="$LTHREAD_LIBS $LIBS"
43165 if test $ol_cv_lib_db != yes ; then
43166 LIBS="$ol_cv_lib_db $LIBS"
43169 if test "$cross_compiling" = yes; then
43170 ol_cv_berkeley_db_version=cross
43172 cat >conftest.$ac_ext <<_ACEOF
43175 cat confdefs.h >>conftest.$ac_ext
43176 cat >>conftest.$ac_ext <<_ACEOF
43177 /* end confdefs.h. */
43179 #ifdef HAVE_DB_185_H
43184 #ifndef DB_VERSION_MAJOR
43185 # define DB_VERSION_MAJOR 1
43188 #define NULL ((void *)0)
43192 #if DB_VERSION_MAJOR > 1
43194 int major, minor, patch;
43196 version = db_version( &major, &minor, &patch );
43198 if( major != DB_VERSION_MAJOR ||
43199 minor != DB_VERSION_MINOR ||
43200 patch != DB_VERSION_PATCH )
43202 printf("Berkeley DB version mismatch\n"
43203 "\theader: %s\n\tlibrary: %s\n",
43204 DB_VERSION_STRING, version);
43212 rm -f conftest$ac_exeext
43213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43214 (eval $ac_link) 2>&5
43216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43219 (eval $ac_try) 2>&5
43221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222 (exit $ac_status); }; }; then
43223 ol_cv_berkeley_db_version=yes
43225 echo "$as_me: program exited with status $ac_status" >&5
43226 echo "$as_me: failed program was:" >&5
43227 sed 's/^/| /' conftest.$ac_ext >&5
43229 ( exit $ac_status )
43230 ol_cv_berkeley_db_version=no
43232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43238 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43239 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43241 if test $ol_cv_berkeley_db_version = no ; then
43242 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43243 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43244 { (exit 1); exit 1; }; }
43247 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43248 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43249 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43250 echo $ECHO_N "(cached) $ECHO_C" >&6
43254 LIBS="$LTHREAD_LIBS $LIBS"
43255 if test $ol_cv_lib_db != yes ; then
43256 LIBS="$ol_cv_lib_db $LIBS"
43259 if test "$cross_compiling" = yes; then
43260 ol_cv_berkeley_db_thread=cross
43262 cat >conftest.$ac_ext <<_ACEOF
43265 cat confdefs.h >>conftest.$ac_ext
43266 cat >>conftest.$ac_ext <<_ACEOF
43267 /* end confdefs.h. */
43269 #ifdef HAVE_DB_185_H
43275 #define NULL ((void *)0)
43280 u_int32_t flags = DB_CREATE |
43286 #if DB_VERSION_MAJOR > 2
43287 DB_ENV *env = NULL;
43289 rc = db_env_create( &env, 0 );
43291 flags |= DB_INIT_MPOOL;
43292 #ifdef DB_MPOOL_PRIVATE
43293 flags |= DB_MPOOL_PRIVATE;
43297 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43301 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43302 rc = env->open( env, NULL, flags, 0 );
43304 rc = env->open( env, NULL, NULL, flags, 0 );
43308 rc = env->close( env, 0 );
43312 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43318 memset( &env, '\0', sizeof(env) );
43320 rc = db_appinit( NULL, NULL, &env, flags );
43323 db_appexit( &env );
43326 unlink("__db_mpool.share");
43327 unlink("__db_lock.share");
43333 rm -f conftest$ac_exeext
43334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43335 (eval $ac_link) 2>&5
43337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43340 (eval $ac_try) 2>&5
43342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43343 (exit $ac_status); }; }; then
43344 ol_cv_berkeley_db_thread=yes
43346 echo "$as_me: program exited with status $ac_status" >&5
43347 echo "$as_me: failed program was:" >&5
43348 sed 's/^/| /' conftest.$ac_ext >&5
43350 ( exit $ac_status )
43351 ol_cv_berkeley_db_thread=no
43353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43359 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43360 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43362 if test $ol_cv_berkeley_db_thread != no ; then
43364 cat >>confdefs.h <<\_ACEOF
43365 #define HAVE_BERKELEY_DB_THREAD 1
43375 if test $ol_cv_berkeley_db != no ; then
43377 cat >>confdefs.h <<\_ACEOF
43378 #define HAVE_BERKELEY_DB 1
43382 ol_link_ldbm=berkeley
43383 ol_enable_ldbm_api=berkeley
43385 if test $ol_enable_ldbm_type = hash ; then
43387 cat >>confdefs.h <<\_ACEOF
43388 #define LDBM_USE_DBHASH 1
43393 cat >>confdefs.h <<\_ACEOF
43394 #define LDBM_USE_DBBTREE 1
43399 if test $ol_cv_lib_db != yes ; then
43400 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43405 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43406 if test $ol_link_ldbm != berkeley ; then
43407 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43408 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43409 { (exit 1); exit 1; }; }
43411 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43412 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43413 if test "${ol_cv_bdb_compat+set}" = set; then
43414 echo $ECHO_N "(cached) $ECHO_C" >&6
43417 cat >conftest.$ac_ext <<_ACEOF
43420 cat confdefs.h >>conftest.$ac_ext
43421 cat >>conftest.$ac_ext <<_ACEOF
43422 /* end confdefs.h. */
43426 /* this check could be improved */
43427 #ifndef DB_VERSION_MAJOR
43428 # define DB_VERSION_MAJOR 1
43430 #ifndef DB_VERSION_MINOR
43431 # define DB_VERSION_MINOR 0
43434 /* require 4.2 or later */
43435 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43436 __db_version_compat
43440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43441 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43442 ol_cv_bdb_compat=yes
43444 ol_cv_bdb_compat=no
43449 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43450 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43453 if test $ol_cv_bdb_compat != yes ; then
43454 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43455 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43456 { (exit 1); exit 1; }; }
43461 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
43462 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43463 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43464 ol_enable_ldbm_api=none
43467 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
43468 echo "$as_me:$LINENO: checking for MDBM library" >&5
43469 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43470 if test "${ol_cv_lib_mdbm+set}" = set; then
43471 echo $ECHO_N "(cached) $ECHO_C" >&6
43474 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43475 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43476 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43477 echo $ECHO_N "(cached) $ECHO_C" >&6
43479 cat >conftest.$ac_ext <<_ACEOF
43482 cat confdefs.h >>conftest.$ac_ext
43483 cat >>conftest.$ac_ext <<_ACEOF
43484 /* end confdefs.h. */
43485 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43487 #define mdbm_set_chain innocuous_mdbm_set_chain
43489 /* System header to define __stub macros and hopefully few prototypes,
43490 which can conflict with char mdbm_set_chain (); below.
43491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43492 <limits.h> exists even on freestanding compilers. */
43495 # include <limits.h>
43497 # include <assert.h>
43500 #undef mdbm_set_chain
43502 /* Override any gcc2 internal prototype to avoid an error. */
43507 /* We use char because int might match the return type of a gcc2
43508 builtin and then its argument prototype would still apply. */
43509 char mdbm_set_chain ();
43510 /* The GNU C library defines this for functions which it implements
43511 to always fail with ENOSYS. Some functions are actually named
43512 something starting with __ and the normal name is an alias. */
43513 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43516 char (*f) () = mdbm_set_chain;
43525 return f != mdbm_set_chain;
43530 rm -f conftest.$ac_objext conftest$ac_exeext
43531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43532 (eval $ac_link) 2>conftest.er1
43534 grep -v '^ *+' conftest.er1 >conftest.err
43536 cat conftest.err >&5
43537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43538 (exit $ac_status); } &&
43539 { ac_try='test -z "$ac_c_werror_flag"
43540 || test ! -s conftest.err'
43541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43542 (eval $ac_try) 2>&5
43544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43545 (exit $ac_status); }; } &&
43546 { ac_try='test -s conftest$ac_exeext'
43547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43548 (eval $ac_try) 2>&5
43550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551 (exit $ac_status); }; }; then
43552 ac_cv_func_mdbm_set_chain=yes
43554 echo "$as_me: failed program was:" >&5
43555 sed 's/^/| /' conftest.$ac_ext >&5
43557 ac_cv_func_mdbm_set_chain=no
43559 rm -f conftest.err conftest.$ac_objext \
43560 conftest$ac_exeext conftest.$ac_ext
43562 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43563 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43564 if test $ac_cv_func_mdbm_set_chain = yes; then
43568 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43569 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43570 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43571 echo $ECHO_N "(cached) $ECHO_C" >&6
43573 ac_check_lib_save_LIBS=$LIBS
43574 LIBS="-lmdbm $LIBS"
43575 cat >conftest.$ac_ext <<_ACEOF
43578 cat confdefs.h >>conftest.$ac_ext
43579 cat >>conftest.$ac_ext <<_ACEOF
43580 /* end confdefs.h. */
43582 /* Override any gcc2 internal prototype to avoid an error. */
43586 /* We use char because int might match the return type of a gcc2
43587 builtin and then its argument prototype would still apply. */
43588 char mdbm_set_chain ();
43597 rm -f conftest.$ac_objext conftest$ac_exeext
43598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43599 (eval $ac_link) 2>conftest.er1
43601 grep -v '^ *+' conftest.er1 >conftest.err
43603 cat conftest.err >&5
43604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605 (exit $ac_status); } &&
43606 { ac_try='test -z "$ac_c_werror_flag"
43607 || test ! -s conftest.err'
43608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43609 (eval $ac_try) 2>&5
43611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43612 (exit $ac_status); }; } &&
43613 { ac_try='test -s conftest$ac_exeext'
43614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43615 (eval $ac_try) 2>&5
43617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618 (exit $ac_status); }; }; then
43619 ac_cv_lib_mdbm_mdbm_set_chain=yes
43621 echo "$as_me: failed program was:" >&5
43622 sed 's/^/| /' conftest.$ac_ext >&5
43624 ac_cv_lib_mdbm_mdbm_set_chain=no
43626 rm -f conftest.err conftest.$ac_objext \
43627 conftest$ac_exeext conftest.$ac_ext
43628 LIBS=$ac_check_lib_save_LIBS
43630 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43631 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43632 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43633 ol_cv_lib_mdbm=-lmdbm
43644 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43645 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43649 for ac_header in mdbm.h
43651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43653 echo "$as_me:$LINENO: checking for $ac_header" >&5
43654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43656 echo $ECHO_N "(cached) $ECHO_C" >&6
43658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43661 # Is the header compilable?
43662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43664 cat >conftest.$ac_ext <<_ACEOF
43667 cat confdefs.h >>conftest.$ac_ext
43668 cat >>conftest.$ac_ext <<_ACEOF
43669 /* end confdefs.h. */
43670 $ac_includes_default
43671 #include <$ac_header>
43673 rm -f conftest.$ac_objext
43674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43675 (eval $ac_compile) 2>conftest.er1
43677 grep -v '^ *+' conftest.er1 >conftest.err
43679 cat conftest.err >&5
43680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43681 (exit $ac_status); } &&
43682 { ac_try='test -z "$ac_c_werror_flag"
43683 || test ! -s conftest.err'
43684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43685 (eval $ac_try) 2>&5
43687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43688 (exit $ac_status); }; } &&
43689 { ac_try='test -s conftest.$ac_objext'
43690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43691 (eval $ac_try) 2>&5
43693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694 (exit $ac_status); }; }; then
43695 ac_header_compiler=yes
43697 echo "$as_me: failed program was:" >&5
43698 sed 's/^/| /' conftest.$ac_ext >&5
43700 ac_header_compiler=no
43702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43704 echo "${ECHO_T}$ac_header_compiler" >&6
43706 # Is the header present?
43707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43709 cat >conftest.$ac_ext <<_ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h. */
43715 #include <$ac_header>
43717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43720 grep -v '^ *+' conftest.er1 >conftest.err
43722 cat conftest.err >&5
43723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43724 (exit $ac_status); } >/dev/null; then
43725 if test -s conftest.err; then
43726 ac_cpp_err=$ac_c_preproc_warn_flag
43727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43734 if test -z "$ac_cpp_err"; then
43735 ac_header_preproc=yes
43737 echo "$as_me: failed program was:" >&5
43738 sed 's/^/| /' conftest.$ac_ext >&5
43740 ac_header_preproc=no
43742 rm -f conftest.err conftest.$ac_ext
43743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43744 echo "${ECHO_T}$ac_header_preproc" >&6
43746 # So? What about this header?
43747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43753 ac_header_preproc=yes
43756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43770 ## ------------------------------------------ ##
43771 ## Report this to the AC_PACKAGE_NAME lists. ##
43772 ## ------------------------------------------ ##
43775 sed "s/^/$as_me: WARNING: /" >&2
43778 echo "$as_me:$LINENO: checking for $ac_header" >&5
43779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43781 echo $ECHO_N "(cached) $ECHO_C" >&6
43783 eval "$as_ac_Header=\$ac_header_preproc"
43785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43790 cat >>confdefs.h <<_ACEOF
43791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43798 echo "$as_me:$LINENO: checking for db" >&5
43799 echo $ECHO_N "checking for db... $ECHO_C" >&6
43800 if test "${ol_cv_mdbm+set}" = set; then
43801 echo $ECHO_N "(cached) $ECHO_C" >&6
43804 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43811 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43812 echo "${ECHO_T}$ol_cv_mdbm" >&6
43813 if test $ol_cv_mdbm = yes ; then
43815 cat >>confdefs.h <<\_ACEOF
43816 #define HAVE_MDBM 1
43822 if test $ol_cv_mdbm = yes ; then
43824 ol_enable_ldbm_api=mdbm
43825 if test $ol_cv_lib_mdbm != yes ; then
43826 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43831 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
43832 echo "$as_me:$LINENO: checking for GDBM library" >&5
43833 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43834 if test "${ol_cv_lib_gdbm+set}" = set; then
43835 echo $ECHO_N "(cached) $ECHO_C" >&6
43838 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43839 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43840 if test "${ac_cv_func_gdbm_open+set}" = set; then
43841 echo $ECHO_N "(cached) $ECHO_C" >&6
43843 cat >conftest.$ac_ext <<_ACEOF
43846 cat confdefs.h >>conftest.$ac_ext
43847 cat >>conftest.$ac_ext <<_ACEOF
43848 /* end confdefs.h. */
43849 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43851 #define gdbm_open innocuous_gdbm_open
43853 /* System header to define __stub macros and hopefully few prototypes,
43854 which can conflict with char gdbm_open (); below.
43855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43856 <limits.h> exists even on freestanding compilers. */
43859 # include <limits.h>
43861 # include <assert.h>
43866 /* Override any gcc2 internal prototype to avoid an error. */
43871 /* We use char because int might match the return type of a gcc2
43872 builtin and then its argument prototype would still apply. */
43874 /* The GNU C library defines this for functions which it implements
43875 to always fail with ENOSYS. Some functions are actually named
43876 something starting with __ and the normal name is an alias. */
43877 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43880 char (*f) () = gdbm_open;
43889 return f != gdbm_open;
43894 rm -f conftest.$ac_objext conftest$ac_exeext
43895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43896 (eval $ac_link) 2>conftest.er1
43898 grep -v '^ *+' conftest.er1 >conftest.err
43900 cat conftest.err >&5
43901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43902 (exit $ac_status); } &&
43903 { ac_try='test -z "$ac_c_werror_flag"
43904 || test ! -s conftest.err'
43905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43906 (eval $ac_try) 2>&5
43908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43909 (exit $ac_status); }; } &&
43910 { ac_try='test -s conftest$ac_exeext'
43911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43912 (eval $ac_try) 2>&5
43914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43915 (exit $ac_status); }; }; then
43916 ac_cv_func_gdbm_open=yes
43918 echo "$as_me: failed program was:" >&5
43919 sed 's/^/| /' conftest.$ac_ext >&5
43921 ac_cv_func_gdbm_open=no
43923 rm -f conftest.err conftest.$ac_objext \
43924 conftest$ac_exeext conftest.$ac_ext
43926 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43927 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43928 if test $ac_cv_func_gdbm_open = yes; then
43932 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43933 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43934 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43935 echo $ECHO_N "(cached) $ECHO_C" >&6
43937 ac_check_lib_save_LIBS=$LIBS
43938 LIBS="-lgdbm $LIBS"
43939 cat >conftest.$ac_ext <<_ACEOF
43942 cat confdefs.h >>conftest.$ac_ext
43943 cat >>conftest.$ac_ext <<_ACEOF
43944 /* end confdefs.h. */
43946 /* Override any gcc2 internal prototype to avoid an error. */
43950 /* We use char because int might match the return type of a gcc2
43951 builtin and then its argument prototype would still apply. */
43961 rm -f conftest.$ac_objext conftest$ac_exeext
43962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43963 (eval $ac_link) 2>conftest.er1
43965 grep -v '^ *+' conftest.er1 >conftest.err
43967 cat conftest.err >&5
43968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43969 (exit $ac_status); } &&
43970 { ac_try='test -z "$ac_c_werror_flag"
43971 || test ! -s conftest.err'
43972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43973 (eval $ac_try) 2>&5
43975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43976 (exit $ac_status); }; } &&
43977 { ac_try='test -s conftest$ac_exeext'
43978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43979 (eval $ac_try) 2>&5
43981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43982 (exit $ac_status); }; }; then
43983 ac_cv_lib_gdbm_gdbm_open=yes
43985 echo "$as_me: failed program was:" >&5
43986 sed 's/^/| /' conftest.$ac_ext >&5
43988 ac_cv_lib_gdbm_gdbm_open=no
43990 rm -f conftest.err conftest.$ac_objext \
43991 conftest$ac_exeext conftest.$ac_ext
43992 LIBS=$ac_check_lib_save_LIBS
43994 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43995 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43996 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43997 ol_cv_lib_gdbm=-lgdbm
44008 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
44009 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
44013 for ac_header in gdbm.h
44015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44017 echo "$as_me:$LINENO: checking for $ac_header" >&5
44018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44020 echo $ECHO_N "(cached) $ECHO_C" >&6
44022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44025 # Is the header compilable?
44026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44028 cat >conftest.$ac_ext <<_ACEOF
44031 cat confdefs.h >>conftest.$ac_ext
44032 cat >>conftest.$ac_ext <<_ACEOF
44033 /* end confdefs.h. */
44034 $ac_includes_default
44035 #include <$ac_header>
44037 rm -f conftest.$ac_objext
44038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44039 (eval $ac_compile) 2>conftest.er1
44041 grep -v '^ *+' conftest.er1 >conftest.err
44043 cat conftest.err >&5
44044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44045 (exit $ac_status); } &&
44046 { ac_try='test -z "$ac_c_werror_flag"
44047 || test ! -s conftest.err'
44048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44049 (eval $ac_try) 2>&5
44051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052 (exit $ac_status); }; } &&
44053 { ac_try='test -s conftest.$ac_objext'
44054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44055 (eval $ac_try) 2>&5
44057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44058 (exit $ac_status); }; }; then
44059 ac_header_compiler=yes
44061 echo "$as_me: failed program was:" >&5
44062 sed 's/^/| /' conftest.$ac_ext >&5
44064 ac_header_compiler=no
44066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44068 echo "${ECHO_T}$ac_header_compiler" >&6
44070 # Is the header present?
44071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44073 cat >conftest.$ac_ext <<_ACEOF
44076 cat confdefs.h >>conftest.$ac_ext
44077 cat >>conftest.$ac_ext <<_ACEOF
44078 /* end confdefs.h. */
44079 #include <$ac_header>
44081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44084 grep -v '^ *+' conftest.er1 >conftest.err
44086 cat conftest.err >&5
44087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44088 (exit $ac_status); } >/dev/null; then
44089 if test -s conftest.err; then
44090 ac_cpp_err=$ac_c_preproc_warn_flag
44091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44098 if test -z "$ac_cpp_err"; then
44099 ac_header_preproc=yes
44101 echo "$as_me: failed program was:" >&5
44102 sed 's/^/| /' conftest.$ac_ext >&5
44104 ac_header_preproc=no
44106 rm -f conftest.err conftest.$ac_ext
44107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44108 echo "${ECHO_T}$ac_header_preproc" >&6
44110 # So? What about this header?
44111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44117 ac_header_preproc=yes
44120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44134 ## ------------------------------------------ ##
44135 ## Report this to the AC_PACKAGE_NAME lists. ##
44136 ## ------------------------------------------ ##
44139 sed "s/^/$as_me: WARNING: /" >&2
44142 echo "$as_me:$LINENO: checking for $ac_header" >&5
44143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44145 echo $ECHO_N "(cached) $ECHO_C" >&6
44147 eval "$as_ac_Header=\$ac_header_preproc"
44149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44154 cat >>confdefs.h <<_ACEOF
44155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44162 echo "$as_me:$LINENO: checking for db" >&5
44163 echo $ECHO_N "checking for db... $ECHO_C" >&6
44164 if test "${ol_cv_gdbm+set}" = set; then
44165 echo $ECHO_N "(cached) $ECHO_C" >&6
44168 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44175 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44176 echo "${ECHO_T}$ol_cv_gdbm" >&6
44177 if test $ol_cv_gdbm = yes ; then
44179 cat >>confdefs.h <<\_ACEOF
44180 #define HAVE_GDBM 1
44186 if test $ol_cv_gdbm = yes ; then
44188 ol_enable_ldbm_api=gdbm
44190 if test $ol_cv_lib_gdbm != yes ; then
44191 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44196 if test $ol_enable_ldbm_api = ndbm ; then
44197 echo "$as_me:$LINENO: checking for NDBM library" >&5
44198 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44199 if test "${ol_cv_lib_ndbm+set}" = set; then
44200 echo $ECHO_N "(cached) $ECHO_C" >&6
44203 echo "$as_me:$LINENO: checking for dbm_open" >&5
44204 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44205 if test "${ac_cv_func_dbm_open+set}" = set; then
44206 echo $ECHO_N "(cached) $ECHO_C" >&6
44208 cat >conftest.$ac_ext <<_ACEOF
44211 cat confdefs.h >>conftest.$ac_ext
44212 cat >>conftest.$ac_ext <<_ACEOF
44213 /* end confdefs.h. */
44214 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44216 #define dbm_open innocuous_dbm_open
44218 /* System header to define __stub macros and hopefully few prototypes,
44219 which can conflict with char dbm_open (); below.
44220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44221 <limits.h> exists even on freestanding compilers. */
44224 # include <limits.h>
44226 # include <assert.h>
44231 /* Override any gcc2 internal prototype to avoid an error. */
44236 /* We use char because int might match the return type of a gcc2
44237 builtin and then its argument prototype would still apply. */
44239 /* The GNU C library defines this for functions which it implements
44240 to always fail with ENOSYS. Some functions are actually named
44241 something starting with __ and the normal name is an alias. */
44242 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44245 char (*f) () = dbm_open;
44254 return f != dbm_open;
44259 rm -f conftest.$ac_objext conftest$ac_exeext
44260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44261 (eval $ac_link) 2>conftest.er1
44263 grep -v '^ *+' conftest.er1 >conftest.err
44265 cat conftest.err >&5
44266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44267 (exit $ac_status); } &&
44268 { ac_try='test -z "$ac_c_werror_flag"
44269 || test ! -s conftest.err'
44270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44271 (eval $ac_try) 2>&5
44273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44274 (exit $ac_status); }; } &&
44275 { ac_try='test -s conftest$ac_exeext'
44276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44277 (eval $ac_try) 2>&5
44279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44280 (exit $ac_status); }; }; then
44281 ac_cv_func_dbm_open=yes
44283 echo "$as_me: failed program was:" >&5
44284 sed 's/^/| /' conftest.$ac_ext >&5
44286 ac_cv_func_dbm_open=no
44288 rm -f conftest.err conftest.$ac_objext \
44289 conftest$ac_exeext conftest.$ac_ext
44291 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44292 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44293 if test $ac_cv_func_dbm_open = yes; then
44297 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44298 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44299 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44300 echo $ECHO_N "(cached) $ECHO_C" >&6
44302 ac_check_lib_save_LIBS=$LIBS
44303 LIBS="-lndbm $LIBS"
44304 cat >conftest.$ac_ext <<_ACEOF
44307 cat confdefs.h >>conftest.$ac_ext
44308 cat >>conftest.$ac_ext <<_ACEOF
44309 /* end confdefs.h. */
44311 /* Override any gcc2 internal prototype to avoid an error. */
44315 /* We use char because int might match the return type of a gcc2
44316 builtin and then its argument prototype would still apply. */
44326 rm -f conftest.$ac_objext conftest$ac_exeext
44327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44328 (eval $ac_link) 2>conftest.er1
44330 grep -v '^ *+' conftest.er1 >conftest.err
44332 cat conftest.err >&5
44333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44334 (exit $ac_status); } &&
44335 { ac_try='test -z "$ac_c_werror_flag"
44336 || test ! -s conftest.err'
44337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44338 (eval $ac_try) 2>&5
44340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44341 (exit $ac_status); }; } &&
44342 { ac_try='test -s conftest$ac_exeext'
44343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44344 (eval $ac_try) 2>&5
44346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44347 (exit $ac_status); }; }; then
44348 ac_cv_lib_ndbm_dbm_open=yes
44350 echo "$as_me: failed program was:" >&5
44351 sed 's/^/| /' conftest.$ac_ext >&5
44353 ac_cv_lib_ndbm_dbm_open=no
44355 rm -f conftest.err conftest.$ac_objext \
44356 conftest$ac_exeext conftest.$ac_ext
44357 LIBS=$ac_check_lib_save_LIBS
44359 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44360 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44361 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44362 ol_cv_lib_ndbm=-lndbm
44365 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44366 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44367 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44368 echo $ECHO_N "(cached) $ECHO_C" >&6
44370 ac_check_lib_save_LIBS=$LIBS
44372 cat >conftest.$ac_ext <<_ACEOF
44375 cat confdefs.h >>conftest.$ac_ext
44376 cat >>conftest.$ac_ext <<_ACEOF
44377 /* end confdefs.h. */
44379 /* Override any gcc2 internal prototype to avoid an error. */
44383 /* We use char because int might match the return type of a gcc2
44384 builtin and then its argument prototype would still apply. */
44394 rm -f conftest.$ac_objext conftest$ac_exeext
44395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44396 (eval $ac_link) 2>conftest.er1
44398 grep -v '^ *+' conftest.er1 >conftest.err
44400 cat conftest.err >&5
44401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44402 (exit $ac_status); } &&
44403 { ac_try='test -z "$ac_c_werror_flag"
44404 || test ! -s conftest.err'
44405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44406 (eval $ac_try) 2>&5
44408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44409 (exit $ac_status); }; } &&
44410 { ac_try='test -s conftest$ac_exeext'
44411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44412 (eval $ac_try) 2>&5
44414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44415 (exit $ac_status); }; }; then
44416 ac_cv_lib_dbm_dbm_open=yes
44418 echo "$as_me: failed program was:" >&5
44419 sed 's/^/| /' conftest.$ac_ext >&5
44421 ac_cv_lib_dbm_dbm_open=no
44423 rm -f conftest.err conftest.$ac_objext \
44424 conftest$ac_exeext conftest.$ac_ext
44425 LIBS=$ac_check_lib_save_LIBS
44427 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44428 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44429 if test $ac_cv_lib_dbm_dbm_open = yes; then
44430 ol_cv_lib_ndbm=-ldbm
44443 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44444 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44448 for ac_header in ndbm.h
44450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44452 echo "$as_me:$LINENO: checking for $ac_header" >&5
44453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44455 echo $ECHO_N "(cached) $ECHO_C" >&6
44457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44460 # Is the header compilable?
44461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44463 cat >conftest.$ac_ext <<_ACEOF
44466 cat confdefs.h >>conftest.$ac_ext
44467 cat >>conftest.$ac_ext <<_ACEOF
44468 /* end confdefs.h. */
44469 $ac_includes_default
44470 #include <$ac_header>
44472 rm -f conftest.$ac_objext
44473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44474 (eval $ac_compile) 2>conftest.er1
44476 grep -v '^ *+' conftest.er1 >conftest.err
44478 cat conftest.err >&5
44479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44480 (exit $ac_status); } &&
44481 { ac_try='test -z "$ac_c_werror_flag"
44482 || test ! -s conftest.err'
44483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44484 (eval $ac_try) 2>&5
44486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487 (exit $ac_status); }; } &&
44488 { ac_try='test -s conftest.$ac_objext'
44489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44490 (eval $ac_try) 2>&5
44492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44493 (exit $ac_status); }; }; then
44494 ac_header_compiler=yes
44496 echo "$as_me: failed program was:" >&5
44497 sed 's/^/| /' conftest.$ac_ext >&5
44499 ac_header_compiler=no
44501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44503 echo "${ECHO_T}$ac_header_compiler" >&6
44505 # Is the header present?
44506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44508 cat >conftest.$ac_ext <<_ACEOF
44511 cat confdefs.h >>conftest.$ac_ext
44512 cat >>conftest.$ac_ext <<_ACEOF
44513 /* end confdefs.h. */
44514 #include <$ac_header>
44516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44519 grep -v '^ *+' conftest.er1 >conftest.err
44521 cat conftest.err >&5
44522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44523 (exit $ac_status); } >/dev/null; then
44524 if test -s conftest.err; then
44525 ac_cpp_err=$ac_c_preproc_warn_flag
44526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44533 if test -z "$ac_cpp_err"; then
44534 ac_header_preproc=yes
44536 echo "$as_me: failed program was:" >&5
44537 sed 's/^/| /' conftest.$ac_ext >&5
44539 ac_header_preproc=no
44541 rm -f conftest.err conftest.$ac_ext
44542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44543 echo "${ECHO_T}$ac_header_preproc" >&6
44545 # So? What about this header?
44546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44552 ac_header_preproc=yes
44555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44569 ## ------------------------------------------ ##
44570 ## Report this to the AC_PACKAGE_NAME lists. ##
44571 ## ------------------------------------------ ##
44574 sed "s/^/$as_me: WARNING: /" >&2
44577 echo "$as_me:$LINENO: checking for $ac_header" >&5
44578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44580 echo $ECHO_N "(cached) $ECHO_C" >&6
44582 eval "$as_ac_Header=\$ac_header_preproc"
44584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44589 cat >>confdefs.h <<_ACEOF
44590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44597 echo "$as_me:$LINENO: checking for db" >&5
44598 echo $ECHO_N "checking for db... $ECHO_C" >&6
44599 if test "${ol_cv_ndbm+set}" = set; then
44600 echo $ECHO_N "(cached) $ECHO_C" >&6
44603 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44610 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44611 echo "${ECHO_T}$ol_cv_ndbm" >&6
44612 if test $ol_cv_ndbm = yes ; then
44614 cat >>confdefs.h <<\_ACEOF
44615 #define HAVE_NDBM 1
44621 if test $ol_cv_ndbm = yes ; then
44623 ol_enable_ldbm_api=ndbm
44625 if test $ol_cv_lib_ndbm != yes ; then
44626 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44631 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44632 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44633 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44634 { (exit 1); exit 1; }; }
44637 if test $ol_enable_bdb = yes -o \
44638 $ol_enable_hdb = yes -o \
44639 $ol_enable_ldbm = yes ; then
44640 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44644 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44645 BUILD_LIBS_DYNAMIC=shared
44647 cat >>confdefs.h <<\_ACEOF
44648 #define LDAP_LIBS_DYNAMIC 1
44653 BUILD_LIBS_DYNAMIC=static
44657 if test $ol_enable_wrappers != no ; then
44659 for ac_header in tcpd.h
44661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44663 echo "$as_me:$LINENO: checking for $ac_header" >&5
44664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44666 echo $ECHO_N "(cached) $ECHO_C" >&6
44668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44671 # Is the header compilable?
44672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44674 cat >conftest.$ac_ext <<_ACEOF
44677 cat confdefs.h >>conftest.$ac_ext
44678 cat >>conftest.$ac_ext <<_ACEOF
44679 /* end confdefs.h. */
44680 $ac_includes_default
44681 #include <$ac_header>
44683 rm -f conftest.$ac_objext
44684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44685 (eval $ac_compile) 2>conftest.er1
44687 grep -v '^ *+' conftest.er1 >conftest.err
44689 cat conftest.err >&5
44690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44691 (exit $ac_status); } &&
44692 { ac_try='test -z "$ac_c_werror_flag"
44693 || test ! -s conftest.err'
44694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44695 (eval $ac_try) 2>&5
44697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698 (exit $ac_status); }; } &&
44699 { ac_try='test -s conftest.$ac_objext'
44700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44701 (eval $ac_try) 2>&5
44703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44704 (exit $ac_status); }; }; then
44705 ac_header_compiler=yes
44707 echo "$as_me: failed program was:" >&5
44708 sed 's/^/| /' conftest.$ac_ext >&5
44710 ac_header_compiler=no
44712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44714 echo "${ECHO_T}$ac_header_compiler" >&6
44716 # Is the header present?
44717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44719 cat >conftest.$ac_ext <<_ACEOF
44722 cat confdefs.h >>conftest.$ac_ext
44723 cat >>conftest.$ac_ext <<_ACEOF
44724 /* end confdefs.h. */
44725 #include <$ac_header>
44727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44730 grep -v '^ *+' conftest.er1 >conftest.err
44732 cat conftest.err >&5
44733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44734 (exit $ac_status); } >/dev/null; then
44735 if test -s conftest.err; then
44736 ac_cpp_err=$ac_c_preproc_warn_flag
44737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44744 if test -z "$ac_cpp_err"; then
44745 ac_header_preproc=yes
44747 echo "$as_me: failed program was:" >&5
44748 sed 's/^/| /' conftest.$ac_ext >&5
44750 ac_header_preproc=no
44752 rm -f conftest.err conftest.$ac_ext
44753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44754 echo "${ECHO_T}$ac_header_preproc" >&6
44756 # So? What about this header?
44757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44763 ac_header_preproc=yes
44766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44780 ## ------------------------------------------ ##
44781 ## Report this to the AC_PACKAGE_NAME lists. ##
44782 ## ------------------------------------------ ##
44785 sed "s/^/$as_me: WARNING: /" >&2
44788 echo "$as_me:$LINENO: checking for $ac_header" >&5
44789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44791 echo $ECHO_N "(cached) $ECHO_C" >&6
44793 eval "$as_ac_Header=\$ac_header_preproc"
44795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44800 cat >>confdefs.h <<_ACEOF
44801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44804 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44805 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44807 LIBS="$LIBS -lwrap"
44808 cat >conftest.$ac_ext <<_ACEOF
44811 cat confdefs.h >>conftest.$ac_ext
44812 cat >>conftest.$ac_ext <<_ACEOF
44813 /* end confdefs.h. */
44816 int allow_severity = 0;
44817 int deny_severity = 0;
44819 struct request_info *req;
44831 rm -f conftest.$ac_objext conftest$ac_exeext
44832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44833 (eval $ac_link) 2>conftest.er1
44835 grep -v '^ *+' conftest.er1 >conftest.err
44837 cat conftest.err >&5
44838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44839 (exit $ac_status); } &&
44840 { ac_try='test -z "$ac_c_werror_flag"
44841 || test ! -s conftest.err'
44842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44843 (eval $ac_try) 2>&5
44845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44846 (exit $ac_status); }; } &&
44847 { ac_try='test -s conftest$ac_exeext'
44848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44849 (eval $ac_try) 2>&5
44851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44852 (exit $ac_status); }; }; then
44853 echo "$as_me:$LINENO: result: -lwrap" >&5
44854 echo "${ECHO_T}-lwrap" >&6
44858 echo "$as_me: failed program was:" >&5
44859 sed 's/^/| /' conftest.$ac_ext >&5
44863 cat >conftest.$ac_ext <<_ACEOF
44866 cat confdefs.h >>conftest.$ac_ext
44867 cat >>conftest.$ac_ext <<_ACEOF
44868 /* end confdefs.h. */
44871 int allow_severity = 0;
44872 int deny_severity = 0;
44874 struct request_info *req;
44886 rm -f conftest.$ac_objext conftest$ac_exeext
44887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44888 (eval $ac_link) 2>conftest.er1
44890 grep -v '^ *+' conftest.er1 >conftest.err
44892 cat conftest.err >&5
44893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44894 (exit $ac_status); } &&
44895 { ac_try='test -z "$ac_c_werror_flag"
44896 || test ! -s conftest.err'
44897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44898 (eval $ac_try) 2>&5
44900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44901 (exit $ac_status); }; } &&
44902 { ac_try='test -s conftest$ac_exeext'
44903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44904 (eval $ac_try) 2>&5
44906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44907 (exit $ac_status); }; }; then
44908 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44909 echo "${ECHO_T}-lwrap -lnsl" >&6
44911 LIBS="$save_LIBS -lnsl"
44913 echo "$as_me: failed program was:" >&5
44914 sed 's/^/| /' conftest.$ac_ext >&5
44917 echo "$as_me:$LINENO: result: no" >&5
44918 echo "${ECHO_T}no" >&6
44922 rm -f conftest.err conftest.$ac_objext \
44923 conftest$ac_exeext conftest.$ac_ext
44925 rm -f conftest.err conftest.$ac_objext \
44926 conftest$ac_exeext conftest.$ac_ext
44934 if test $have_wrappers = yes ; then
44936 cat >>confdefs.h <<\_ACEOF
44937 #define HAVE_TCPD 1
44941 elif test $ol_enable_wrappers = yes ; then
44942 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44943 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44944 { (exit 1); exit 1; }; }
44946 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44947 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44952 if test $ol_enable_syslog != no ; then
44953 echo "$as_me:$LINENO: checking for openlog" >&5
44954 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44955 if test "${ac_cv_func_openlog+set}" = set; then
44956 echo $ECHO_N "(cached) $ECHO_C" >&6
44958 cat >conftest.$ac_ext <<_ACEOF
44961 cat confdefs.h >>conftest.$ac_ext
44962 cat >>conftest.$ac_ext <<_ACEOF
44963 /* end confdefs.h. */
44964 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44966 #define openlog innocuous_openlog
44968 /* System header to define __stub macros and hopefully few prototypes,
44969 which can conflict with char openlog (); below.
44970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44971 <limits.h> exists even on freestanding compilers. */
44974 # include <limits.h>
44976 # include <assert.h>
44981 /* Override any gcc2 internal prototype to avoid an error. */
44986 /* We use char because int might match the return type of a gcc2
44987 builtin and then its argument prototype would still apply. */
44989 /* The GNU C library defines this for functions which it implements
44990 to always fail with ENOSYS. Some functions are actually named
44991 something starting with __ and the normal name is an alias. */
44992 #if defined (__stub_openlog) || defined (__stub___openlog)
44995 char (*f) () = openlog;
45004 return f != openlog;
45009 rm -f conftest.$ac_objext conftest$ac_exeext
45010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45011 (eval $ac_link) 2>conftest.er1
45013 grep -v '^ *+' conftest.er1 >conftest.err
45015 cat conftest.err >&5
45016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45017 (exit $ac_status); } &&
45018 { ac_try='test -z "$ac_c_werror_flag"
45019 || test ! -s conftest.err'
45020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45021 (eval $ac_try) 2>&5
45023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45024 (exit $ac_status); }; } &&
45025 { ac_try='test -s conftest$ac_exeext'
45026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45027 (eval $ac_try) 2>&5
45029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45030 (exit $ac_status); }; }; then
45031 ac_cv_func_openlog=yes
45033 echo "$as_me: failed program was:" >&5
45034 sed 's/^/| /' conftest.$ac_ext >&5
45036 ac_cv_func_openlog=no
45038 rm -f conftest.err conftest.$ac_objext \
45039 conftest$ac_exeext conftest.$ac_ext
45041 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
45042 echo "${ECHO_T}$ac_cv_func_openlog" >&6
45044 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
45045 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
45046 echo "$as_me: error: could not find syslog" >&2;}
45047 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
45049 ol_enable_syslog=$ac_cv_func_openlog
45053 if test $ol_enable_sql != no ; then
45056 for ac_header in sql.h sqlext.h
45058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45060 echo "$as_me:$LINENO: checking for $ac_header" >&5
45061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45063 echo $ECHO_N "(cached) $ECHO_C" >&6
45065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45068 # Is the header compilable?
45069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45071 cat >conftest.$ac_ext <<_ACEOF
45074 cat confdefs.h >>conftest.$ac_ext
45075 cat >>conftest.$ac_ext <<_ACEOF
45076 /* end confdefs.h. */
45077 $ac_includes_default
45078 #include <$ac_header>
45080 rm -f conftest.$ac_objext
45081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45082 (eval $ac_compile) 2>conftest.er1
45084 grep -v '^ *+' conftest.er1 >conftest.err
45086 cat conftest.err >&5
45087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45088 (exit $ac_status); } &&
45089 { ac_try='test -z "$ac_c_werror_flag"
45090 || test ! -s conftest.err'
45091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45092 (eval $ac_try) 2>&5
45094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45095 (exit $ac_status); }; } &&
45096 { ac_try='test -s conftest.$ac_objext'
45097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45098 (eval $ac_try) 2>&5
45100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45101 (exit $ac_status); }; }; then
45102 ac_header_compiler=yes
45104 echo "$as_me: failed program was:" >&5
45105 sed 's/^/| /' conftest.$ac_ext >&5
45107 ac_header_compiler=no
45109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45111 echo "${ECHO_T}$ac_header_compiler" >&6
45113 # Is the header present?
45114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45116 cat >conftest.$ac_ext <<_ACEOF
45119 cat confdefs.h >>conftest.$ac_ext
45120 cat >>conftest.$ac_ext <<_ACEOF
45121 /* end confdefs.h. */
45122 #include <$ac_header>
45124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45127 grep -v '^ *+' conftest.er1 >conftest.err
45129 cat conftest.err >&5
45130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45131 (exit $ac_status); } >/dev/null; then
45132 if test -s conftest.err; then
45133 ac_cpp_err=$ac_c_preproc_warn_flag
45134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45141 if test -z "$ac_cpp_err"; then
45142 ac_header_preproc=yes
45144 echo "$as_me: failed program was:" >&5
45145 sed 's/^/| /' conftest.$ac_ext >&5
45147 ac_header_preproc=no
45149 rm -f conftest.err conftest.$ac_ext
45150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45151 echo "${ECHO_T}$ac_header_preproc" >&6
45153 # So? What about this header?
45154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45160 ac_header_preproc=yes
45163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45177 ## ------------------------------------------ ##
45178 ## Report this to the AC_PACKAGE_NAME lists. ##
45179 ## ------------------------------------------ ##
45182 sed "s/^/$as_me: WARNING: /" >&2
45185 echo "$as_me:$LINENO: checking for $ac_header" >&5
45186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45188 echo $ECHO_N "(cached) $ECHO_C" >&6
45190 eval "$as_ac_Header=\$ac_header_preproc"
45192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45197 cat >>confdefs.h <<_ACEOF
45198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45203 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45204 echo "$as_me: error: could not locate SQL headers" >&2;}
45205 { (exit 1); exit 1; }; }
45213 LIBS="$LTHREAD_LIBS"
45215 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45216 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45217 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45218 echo $ECHO_N "(cached) $ECHO_C" >&6
45220 ac_check_lib_save_LIBS=$LIBS
45221 LIBS="-liodbc $LIBS"
45222 cat >conftest.$ac_ext <<_ACEOF
45225 cat confdefs.h >>conftest.$ac_ext
45226 cat >>conftest.$ac_ext <<_ACEOF
45227 /* end confdefs.h. */
45229 /* Override any gcc2 internal prototype to avoid an error. */
45233 /* We use char because int might match the return type of a gcc2
45234 builtin and then its argument prototype would still apply. */
45235 char SQLDriverConnect ();
45239 SQLDriverConnect ();
45244 rm -f conftest.$ac_objext conftest$ac_exeext
45245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45246 (eval $ac_link) 2>conftest.er1
45248 grep -v '^ *+' conftest.er1 >conftest.err
45250 cat conftest.err >&5
45251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45252 (exit $ac_status); } &&
45253 { ac_try='test -z "$ac_c_werror_flag"
45254 || test ! -s conftest.err'
45255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45256 (eval $ac_try) 2>&5
45258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45259 (exit $ac_status); }; } &&
45260 { ac_try='test -s conftest$ac_exeext'
45261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45262 (eval $ac_try) 2>&5
45264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45265 (exit $ac_status); }; }; then
45266 ac_cv_lib_iodbc_SQLDriverConnect=yes
45268 echo "$as_me: failed program was:" >&5
45269 sed 's/^/| /' conftest.$ac_ext >&5
45271 ac_cv_lib_iodbc_SQLDriverConnect=no
45273 rm -f conftest.err conftest.$ac_objext \
45274 conftest$ac_exeext conftest.$ac_ext
45275 LIBS=$ac_check_lib_save_LIBS
45277 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45278 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45279 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45285 if test $have_iodbc = yes ; then
45286 ol_link_sql="-liodbc"
45288 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45289 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45290 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45291 echo $ECHO_N "(cached) $ECHO_C" >&6
45293 ac_check_lib_save_LIBS=$LIBS
45294 LIBS="-lodbc $LIBS"
45295 cat >conftest.$ac_ext <<_ACEOF
45298 cat confdefs.h >>conftest.$ac_ext
45299 cat >>conftest.$ac_ext <<_ACEOF
45300 /* end confdefs.h. */
45302 /* Override any gcc2 internal prototype to avoid an error. */
45306 /* We use char because int might match the return type of a gcc2
45307 builtin and then its argument prototype would still apply. */
45308 char SQLDriverConnect ();
45312 SQLDriverConnect ();
45317 rm -f conftest.$ac_objext conftest$ac_exeext
45318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45319 (eval $ac_link) 2>conftest.er1
45321 grep -v '^ *+' conftest.er1 >conftest.err
45323 cat conftest.err >&5
45324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45325 (exit $ac_status); } &&
45326 { ac_try='test -z "$ac_c_werror_flag"
45327 || test ! -s conftest.err'
45328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45329 (eval $ac_try) 2>&5
45331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45332 (exit $ac_status); }; } &&
45333 { ac_try='test -s conftest$ac_exeext'
45334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45335 (eval $ac_try) 2>&5
45337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45338 (exit $ac_status); }; }; then
45339 ac_cv_lib_odbc_SQLDriverConnect=yes
45341 echo "$as_me: failed program was:" >&5
45342 sed 's/^/| /' conftest.$ac_ext >&5
45344 ac_cv_lib_odbc_SQLDriverConnect=no
45346 rm -f conftest.err conftest.$ac_objext \
45347 conftest$ac_exeext conftest.$ac_ext
45348 LIBS=$ac_check_lib_save_LIBS
45350 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45351 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45352 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45358 if test $have_odbc = yes ; then
45359 ol_link_sql="-lodbc"
45365 if test $ol_link_sql != no ; then
45366 SLAPD_SQL_LIBS="$ol_link_sql"
45368 elif test $ol_enable_sql != auto ; then
45369 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45370 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45371 { (exit 1); exit 1; }; }
45378 if test $ol_with_cyrus_sasl != no ; then
45381 for ac_header in sasl/sasl.h sasl.h
45383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45385 echo "$as_me:$LINENO: checking for $ac_header" >&5
45386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45388 echo $ECHO_N "(cached) $ECHO_C" >&6
45390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45393 # Is the header compilable?
45394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45396 cat >conftest.$ac_ext <<_ACEOF
45399 cat confdefs.h >>conftest.$ac_ext
45400 cat >>conftest.$ac_ext <<_ACEOF
45401 /* end confdefs.h. */
45402 $ac_includes_default
45403 #include <$ac_header>
45405 rm -f conftest.$ac_objext
45406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45407 (eval $ac_compile) 2>conftest.er1
45409 grep -v '^ *+' conftest.er1 >conftest.err
45411 cat conftest.err >&5
45412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413 (exit $ac_status); } &&
45414 { ac_try='test -z "$ac_c_werror_flag"
45415 || test ! -s conftest.err'
45416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45417 (eval $ac_try) 2>&5
45419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45420 (exit $ac_status); }; } &&
45421 { ac_try='test -s conftest.$ac_objext'
45422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45423 (eval $ac_try) 2>&5
45425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45426 (exit $ac_status); }; }; then
45427 ac_header_compiler=yes
45429 echo "$as_me: failed program was:" >&5
45430 sed 's/^/| /' conftest.$ac_ext >&5
45432 ac_header_compiler=no
45434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45436 echo "${ECHO_T}$ac_header_compiler" >&6
45438 # Is the header present?
45439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45441 cat >conftest.$ac_ext <<_ACEOF
45444 cat confdefs.h >>conftest.$ac_ext
45445 cat >>conftest.$ac_ext <<_ACEOF
45446 /* end confdefs.h. */
45447 #include <$ac_header>
45449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45452 grep -v '^ *+' conftest.er1 >conftest.err
45454 cat conftest.err >&5
45455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456 (exit $ac_status); } >/dev/null; then
45457 if test -s conftest.err; then
45458 ac_cpp_err=$ac_c_preproc_warn_flag
45459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45466 if test -z "$ac_cpp_err"; then
45467 ac_header_preproc=yes
45469 echo "$as_me: failed program was:" >&5
45470 sed 's/^/| /' conftest.$ac_ext >&5
45472 ac_header_preproc=no
45474 rm -f conftest.err conftest.$ac_ext
45475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45476 echo "${ECHO_T}$ac_header_preproc" >&6
45478 # So? What about this header?
45479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45485 ac_header_preproc=yes
45488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45502 ## ------------------------------------------ ##
45503 ## Report this to the AC_PACKAGE_NAME lists. ##
45504 ## ------------------------------------------ ##
45507 sed "s/^/$as_me: WARNING: /" >&2
45510 echo "$as_me:$LINENO: checking for $ac_header" >&5
45511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45513 echo $ECHO_N "(cached) $ECHO_C" >&6
45515 eval "$as_ac_Header=\$ac_header_preproc"
45517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45522 cat >>confdefs.h <<_ACEOF
45523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45531 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45532 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45533 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45534 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45535 echo $ECHO_N "(cached) $ECHO_C" >&6
45537 ac_check_lib_save_LIBS=$LIBS
45538 LIBS="-lsasl2 $LIBS"
45539 cat >conftest.$ac_ext <<_ACEOF
45542 cat confdefs.h >>conftest.$ac_ext
45543 cat >>conftest.$ac_ext <<_ACEOF
45544 /* end confdefs.h. */
45546 /* Override any gcc2 internal prototype to avoid an error. */
45550 /* We use char because int might match the return type of a gcc2
45551 builtin and then its argument prototype would still apply. */
45552 char sasl_client_init ();
45556 sasl_client_init ();
45561 rm -f conftest.$ac_objext conftest$ac_exeext
45562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45563 (eval $ac_link) 2>conftest.er1
45565 grep -v '^ *+' conftest.er1 >conftest.err
45567 cat conftest.err >&5
45568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45569 (exit $ac_status); } &&
45570 { ac_try='test -z "$ac_c_werror_flag"
45571 || test ! -s conftest.err'
45572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45573 (eval $ac_try) 2>&5
45575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45576 (exit $ac_status); }; } &&
45577 { ac_try='test -s conftest$ac_exeext'
45578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45579 (eval $ac_try) 2>&5
45581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45582 (exit $ac_status); }; }; then
45583 ac_cv_lib_sasl2_sasl_client_init=yes
45585 echo "$as_me: failed program was:" >&5
45586 sed 's/^/| /' conftest.$ac_ext >&5
45588 ac_cv_lib_sasl2_sasl_client_init=no
45590 rm -f conftest.err conftest.$ac_objext \
45591 conftest$ac_exeext conftest.$ac_ext
45592 LIBS=$ac_check_lib_save_LIBS
45594 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45595 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45596 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45597 ol_link_sasl="-lsasl2"
45599 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45600 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45601 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45602 echo $ECHO_N "(cached) $ECHO_C" >&6
45604 ac_check_lib_save_LIBS=$LIBS
45605 LIBS="-lsasl $LIBS"
45606 cat >conftest.$ac_ext <<_ACEOF
45609 cat confdefs.h >>conftest.$ac_ext
45610 cat >>conftest.$ac_ext <<_ACEOF
45611 /* end confdefs.h. */
45613 /* Override any gcc2 internal prototype to avoid an error. */
45617 /* We use char because int might match the return type of a gcc2
45618 builtin and then its argument prototype would still apply. */
45619 char sasl_client_init ();
45623 sasl_client_init ();
45628 rm -f conftest.$ac_objext conftest$ac_exeext
45629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45630 (eval $ac_link) 2>conftest.er1
45632 grep -v '^ *+' conftest.er1 >conftest.err
45634 cat conftest.err >&5
45635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45636 (exit $ac_status); } &&
45637 { ac_try='test -z "$ac_c_werror_flag"
45638 || test ! -s conftest.err'
45639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45640 (eval $ac_try) 2>&5
45642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45643 (exit $ac_status); }; } &&
45644 { ac_try='test -s conftest$ac_exeext'
45645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45646 (eval $ac_try) 2>&5
45648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45649 (exit $ac_status); }; }; then
45650 ac_cv_lib_sasl_sasl_client_init=yes
45652 echo "$as_me: failed program was:" >&5
45653 sed 's/^/| /' conftest.$ac_ext >&5
45655 ac_cv_lib_sasl_sasl_client_init=no
45657 rm -f conftest.err conftest.$ac_objext \
45658 conftest$ac_exeext conftest.$ac_ext
45659 LIBS=$ac_check_lib_save_LIBS
45661 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45662 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45663 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45664 ol_link_sasl="-lsasl"
45671 if test $ol_link_sasl = no ; then
45672 if test $ol_with_cyrus_sasl != auto ; then
45673 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45674 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45675 { (exit 1); exit 1; }; }
45677 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45678 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45679 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45680 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45681 if test $ol_link_tls = no ; then
45682 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45683 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45687 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45688 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45689 if test "${ol_cv_sasl_compat+set}" = set; then
45690 echo $ECHO_N "(cached) $ECHO_C" >&6
45693 cat >conftest.$ac_ext <<_ACEOF
45696 cat confdefs.h >>conftest.$ac_ext
45697 cat >>conftest.$ac_ext <<_ACEOF
45698 /* end confdefs.h. */
45700 #ifdef HAVE_SASL_SASL_H
45701 #include <sasl/sasl.h>
45706 /* Require 2.1.15+ */
45707 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45708 char *__sasl_compat = "2.2+ or better okay (we guess)";
45709 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45710 && SASL_VERSION_STEP >=15
45711 char *__sasl_compat = "2.1.15+ or better okay";
45715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45716 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45717 ol_cv_sasl_compat=yes
45719 ol_cv_sasl_compat=no
45724 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45725 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45727 if test $ol_cv_sasl_compat = no ; then
45729 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45730 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45731 { (exit 1); exit 1; }; }
45735 cat >>confdefs.h <<\_ACEOF
45736 #define HAVE_CYRUS_SASL 1
45739 SASL_LIBS="$ol_link_sasl"
45740 if test $ol_enable_spasswd != no ; then
45741 ol_link_spasswd=yes
45744 ac_save_LIBS="$LIBS"
45745 LIBS="$LIBS $ol_link_sasl"
45746 echo "$as_me:$LINENO: checking for sasl_version" >&5
45747 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45748 if test "${ac_cv_func_sasl_version+set}" = set; then
45749 echo $ECHO_N "(cached) $ECHO_C" >&6
45751 cat >conftest.$ac_ext <<_ACEOF
45754 cat confdefs.h >>conftest.$ac_ext
45755 cat >>conftest.$ac_ext <<_ACEOF
45756 /* end confdefs.h. */
45757 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45759 #define sasl_version innocuous_sasl_version
45761 /* System header to define __stub macros and hopefully few prototypes,
45762 which can conflict with char sasl_version (); below.
45763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45764 <limits.h> exists even on freestanding compilers. */
45767 # include <limits.h>
45769 # include <assert.h>
45772 #undef sasl_version
45774 /* Override any gcc2 internal prototype to avoid an error. */
45779 /* We use char because int might match the return type of a gcc2
45780 builtin and then its argument prototype would still apply. */
45781 char sasl_version ();
45782 /* The GNU C library defines this for functions which it implements
45783 to always fail with ENOSYS. Some functions are actually named
45784 something starting with __ and the normal name is an alias. */
45785 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45788 char (*f) () = sasl_version;
45797 return f != sasl_version;
45802 rm -f conftest.$ac_objext conftest$ac_exeext
45803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45804 (eval $ac_link) 2>conftest.er1
45806 grep -v '^ *+' conftest.er1 >conftest.err
45808 cat conftest.err >&5
45809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45810 (exit $ac_status); } &&
45811 { ac_try='test -z "$ac_c_werror_flag"
45812 || test ! -s conftest.err'
45813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45814 (eval $ac_try) 2>&5
45816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45817 (exit $ac_status); }; } &&
45818 { ac_try='test -s conftest$ac_exeext'
45819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45820 (eval $ac_try) 2>&5
45822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45823 (exit $ac_status); }; }; then
45824 ac_cv_func_sasl_version=yes
45826 echo "$as_me: failed program was:" >&5
45827 sed 's/^/| /' conftest.$ac_ext >&5
45829 ac_cv_func_sasl_version=no
45831 rm -f conftest.err conftest.$ac_objext \
45832 conftest$ac_exeext conftest.$ac_ext
45834 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45835 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45836 if test $ac_cv_func_sasl_version = yes; then
45838 cat >>confdefs.h <<\_ACEOF
45839 #define HAVE_SASL_VERSION 1
45844 LIBS="$ac_save_LIBS"
45850 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45851 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45852 if test $ol_link_tls = no ; then
45853 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45854 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45858 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45860 if test -r /dev/urandom ; then
45861 dev="/dev/urandom";
45862 elif test -r /idev/urandom ; then
45863 dev="/idev/urandom";
45864 elif test -r /dev/srandom ; then
45865 dev="/dev/srandom";
45866 elif test -r /dev/random ; then
45868 elif test -r /idev/random ; then
45869 dev="/idev/random";
45872 if test $dev != no ; then
45874 cat >>confdefs.h <<_ACEOF
45875 #define URANDOM_DEVICE "$dev"
45882 if test $ol_with_fetch != no ; then
45884 LIBS="-lfetch -lcom_err $LIBS"
45885 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45886 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45887 if test "${ol_cv_lib_fetch+set}" = set; then
45888 echo $ECHO_N "(cached) $ECHO_C" >&6
45891 cat >conftest.$ac_ext <<_ACEOF
45894 cat confdefs.h >>conftest.$ac_ext
45895 cat >>conftest.$ac_ext <<_ACEOF
45896 /* end confdefs.h. */
45898 #include <sys/param.h>
45904 struct url *u = fetchParseURL("file:///");
45909 rm -f conftest.$ac_objext conftest$ac_exeext
45910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45911 (eval $ac_link) 2>conftest.er1
45913 grep -v '^ *+' conftest.er1 >conftest.err
45915 cat conftest.err >&5
45916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45917 (exit $ac_status); } &&
45918 { ac_try='test -z "$ac_c_werror_flag"
45919 || test ! -s conftest.err'
45920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45921 (eval $ac_try) 2>&5
45923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45924 (exit $ac_status); }; } &&
45925 { ac_try='test -s conftest$ac_exeext'
45926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45927 (eval $ac_try) 2>&5
45929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930 (exit $ac_status); }; }; then
45931 ol_cv_lib_fetch=yes
45933 echo "$as_me: failed program was:" >&5
45934 sed 's/^/| /' conftest.$ac_ext >&5
45938 rm -f conftest.err conftest.$ac_objext \
45939 conftest$ac_exeext conftest.$ac_ext
45941 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45942 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45944 if test $ol_cv_lib_fetch != no ; then
45945 ol_link_fetch="-lfetch -lcom_err"
45947 cat >>confdefs.h <<\_ACEOF
45948 #define HAVE_FETCH 1
45954 if test $ol_cv_lib_fetch != no ; then
45955 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45956 ol_link_fetch=freebsd
45958 elif test $ol_with_fetch != auto ; then
45959 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45960 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45961 { (exit 1); exit 1; }; }
45965 if test $ol_enable_crypt != no ; then
45967 LIBS="$TLS_LIBS $LIBS"
45969 echo "$as_me:$LINENO: checking for crypt" >&5
45970 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45971 if test "${ac_cv_func_crypt+set}" = set; then
45972 echo $ECHO_N "(cached) $ECHO_C" >&6
45974 cat >conftest.$ac_ext <<_ACEOF
45977 cat confdefs.h >>conftest.$ac_ext
45978 cat >>conftest.$ac_ext <<_ACEOF
45979 /* end confdefs.h. */
45980 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45982 #define crypt innocuous_crypt
45984 /* System header to define __stub macros and hopefully few prototypes,
45985 which can conflict with char crypt (); below.
45986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45987 <limits.h> exists even on freestanding compilers. */
45990 # include <limits.h>
45992 # include <assert.h>
45997 /* Override any gcc2 internal prototype to avoid an error. */
46002 /* We use char because int might match the return type of a gcc2
46003 builtin and then its argument prototype would still apply. */
46005 /* The GNU C library defines this for functions which it implements
46006 to always fail with ENOSYS. Some functions are actually named
46007 something starting with __ and the normal name is an alias. */
46008 #if defined (__stub_crypt) || defined (__stub___crypt)
46011 char (*f) () = crypt;
46025 rm -f conftest.$ac_objext conftest$ac_exeext
46026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46027 (eval $ac_link) 2>conftest.er1
46029 grep -v '^ *+' conftest.er1 >conftest.err
46031 cat conftest.err >&5
46032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46033 (exit $ac_status); } &&
46034 { ac_try='test -z "$ac_c_werror_flag"
46035 || test ! -s conftest.err'
46036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46037 (eval $ac_try) 2>&5
46039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46040 (exit $ac_status); }; } &&
46041 { ac_try='test -s conftest$ac_exeext'
46042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46043 (eval $ac_try) 2>&5
46045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46046 (exit $ac_status); }; }; then
46047 ac_cv_func_crypt=yes
46049 echo "$as_me: failed program was:" >&5
46050 sed 's/^/| /' conftest.$ac_ext >&5
46052 ac_cv_func_crypt=no
46054 rm -f conftest.err conftest.$ac_objext \
46055 conftest$ac_exeext conftest.$ac_ext
46057 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
46058 echo "${ECHO_T}$ac_cv_func_crypt" >&6
46059 if test $ac_cv_func_crypt = yes; then
46064 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
46065 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
46066 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
46067 echo $ECHO_N "(cached) $ECHO_C" >&6
46069 ac_check_lib_save_LIBS=$LIBS
46070 LIBS="-lcrypt $LIBS"
46071 cat >conftest.$ac_ext <<_ACEOF
46074 cat confdefs.h >>conftest.$ac_ext
46075 cat >>conftest.$ac_ext <<_ACEOF
46076 /* end confdefs.h. */
46078 /* Override any gcc2 internal prototype to avoid an error. */
46082 /* We use char because int might match the return type of a gcc2
46083 builtin and then its argument prototype would still apply. */
46093 rm -f conftest.$ac_objext conftest$ac_exeext
46094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46095 (eval $ac_link) 2>conftest.er1
46097 grep -v '^ *+' conftest.er1 >conftest.err
46099 cat conftest.err >&5
46100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46101 (exit $ac_status); } &&
46102 { ac_try='test -z "$ac_c_werror_flag"
46103 || test ! -s conftest.err'
46104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46105 (eval $ac_try) 2>&5
46107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46108 (exit $ac_status); }; } &&
46109 { ac_try='test -s conftest$ac_exeext'
46110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46111 (eval $ac_try) 2>&5
46113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46114 (exit $ac_status); }; }; then
46115 ac_cv_lib_crypt_crypt=yes
46117 echo "$as_me: failed program was:" >&5
46118 sed 's/^/| /' conftest.$ac_ext >&5
46120 ac_cv_lib_crypt_crypt=no
46122 rm -f conftest.err conftest.$ac_objext \
46123 conftest$ac_exeext conftest.$ac_ext
46124 LIBS=$ac_check_lib_save_LIBS
46126 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
46127 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
46128 if test $ac_cv_lib_crypt_crypt = yes; then
46129 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46140 if test $have_crypt = yes ; then
46142 cat >>confdefs.h <<\_ACEOF
46143 #define HAVE_CRYPT 1
46147 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46148 echo "$as_me: WARNING: could not find crypt" >&2;}
46149 if test $ol_enable_crypt = yes ; then
46150 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46151 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46152 { (exit 1); exit 1; }; }
46155 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46156 echo "$as_me: WARNING: disabling crypt support" >&2;}
46161 if test $ol_enable_proctitle != no ; then
46162 echo "$as_me:$LINENO: checking for setproctitle" >&5
46163 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46164 if test "${ac_cv_func_setproctitle+set}" = set; then
46165 echo $ECHO_N "(cached) $ECHO_C" >&6
46167 cat >conftest.$ac_ext <<_ACEOF
46170 cat confdefs.h >>conftest.$ac_ext
46171 cat >>conftest.$ac_ext <<_ACEOF
46172 /* end confdefs.h. */
46173 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46175 #define setproctitle innocuous_setproctitle
46177 /* System header to define __stub macros and hopefully few prototypes,
46178 which can conflict with char setproctitle (); below.
46179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46180 <limits.h> exists even on freestanding compilers. */
46183 # include <limits.h>
46185 # include <assert.h>
46188 #undef setproctitle
46190 /* Override any gcc2 internal prototype to avoid an error. */
46195 /* We use char because int might match the return type of a gcc2
46196 builtin and then its argument prototype would still apply. */
46197 char setproctitle ();
46198 /* The GNU C library defines this for functions which it implements
46199 to always fail with ENOSYS. Some functions are actually named
46200 something starting with __ and the normal name is an alias. */
46201 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46204 char (*f) () = setproctitle;
46213 return f != setproctitle;
46218 rm -f conftest.$ac_objext conftest$ac_exeext
46219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46220 (eval $ac_link) 2>conftest.er1
46222 grep -v '^ *+' conftest.er1 >conftest.err
46224 cat conftest.err >&5
46225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46226 (exit $ac_status); } &&
46227 { ac_try='test -z "$ac_c_werror_flag"
46228 || test ! -s conftest.err'
46229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46230 (eval $ac_try) 2>&5
46232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46233 (exit $ac_status); }; } &&
46234 { ac_try='test -s conftest$ac_exeext'
46235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46236 (eval $ac_try) 2>&5
46238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46239 (exit $ac_status); }; }; then
46240 ac_cv_func_setproctitle=yes
46242 echo "$as_me: failed program was:" >&5
46243 sed 's/^/| /' conftest.$ac_ext >&5
46245 ac_cv_func_setproctitle=no
46247 rm -f conftest.err conftest.$ac_objext \
46248 conftest$ac_exeext conftest.$ac_ext
46250 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46251 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46252 if test $ac_cv_func_setproctitle = yes; then
46253 have_setproctitle=yes
46256 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46257 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46258 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46259 echo $ECHO_N "(cached) $ECHO_C" >&6
46261 ac_check_lib_save_LIBS=$LIBS
46262 LIBS="-lutil $LIBS"
46263 cat >conftest.$ac_ext <<_ACEOF
46266 cat confdefs.h >>conftest.$ac_ext
46267 cat >>conftest.$ac_ext <<_ACEOF
46268 /* end confdefs.h. */
46270 /* Override any gcc2 internal prototype to avoid an error. */
46274 /* We use char because int might match the return type of a gcc2
46275 builtin and then its argument prototype would still apply. */
46276 char setproctitle ();
46285 rm -f conftest.$ac_objext conftest$ac_exeext
46286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46287 (eval $ac_link) 2>conftest.er1
46289 grep -v '^ *+' conftest.er1 >conftest.err
46291 cat conftest.err >&5
46292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46293 (exit $ac_status); } &&
46294 { ac_try='test -z "$ac_c_werror_flag"
46295 || test ! -s conftest.err'
46296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46297 (eval $ac_try) 2>&5
46299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46300 (exit $ac_status); }; } &&
46301 { ac_try='test -s conftest$ac_exeext'
46302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46303 (eval $ac_try) 2>&5
46305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46306 (exit $ac_status); }; }; then
46307 ac_cv_lib_util_setproctitle=yes
46309 echo "$as_me: failed program was:" >&5
46310 sed 's/^/| /' conftest.$ac_ext >&5
46312 ac_cv_lib_util_setproctitle=no
46314 rm -f conftest.err conftest.$ac_objext \
46315 conftest$ac_exeext conftest.$ac_ext
46316 LIBS=$ac_check_lib_save_LIBS
46318 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46319 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46320 if test $ac_cv_lib_util_setproctitle = yes; then
46321 have_setproctitle=yes
46322 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46324 have_setproctitle=no
46326 "setproctitle.$ac_objext" | \
46327 *" setproctitle.$ac_objext" | \
46328 "setproctitle.$ac_objext "* | \
46329 *" setproctitle.$ac_objext "* ) ;;
46330 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46333 LIBSRCS="$LIBSRCS setproctitle.c"
46339 if test $have_setproctitle = yes ; then
46341 cat >>confdefs.h <<\_ACEOF
46342 #define HAVE_SETPROCTITLE 1
46348 if test $ol_enable_slp != no ; then
46350 for ac_header in slp.h
46352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46354 echo "$as_me:$LINENO: checking for $ac_header" >&5
46355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46357 echo $ECHO_N "(cached) $ECHO_C" >&6
46359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46362 # Is the header compilable?
46363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46365 cat >conftest.$ac_ext <<_ACEOF
46368 cat confdefs.h >>conftest.$ac_ext
46369 cat >>conftest.$ac_ext <<_ACEOF
46370 /* end confdefs.h. */
46371 $ac_includes_default
46372 #include <$ac_header>
46374 rm -f conftest.$ac_objext
46375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46376 (eval $ac_compile) 2>conftest.er1
46378 grep -v '^ *+' conftest.er1 >conftest.err
46380 cat conftest.err >&5
46381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46382 (exit $ac_status); } &&
46383 { ac_try='test -z "$ac_c_werror_flag"
46384 || test ! -s conftest.err'
46385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46386 (eval $ac_try) 2>&5
46388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46389 (exit $ac_status); }; } &&
46390 { ac_try='test -s conftest.$ac_objext'
46391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46392 (eval $ac_try) 2>&5
46394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46395 (exit $ac_status); }; }; then
46396 ac_header_compiler=yes
46398 echo "$as_me: failed program was:" >&5
46399 sed 's/^/| /' conftest.$ac_ext >&5
46401 ac_header_compiler=no
46403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46405 echo "${ECHO_T}$ac_header_compiler" >&6
46407 # Is the header present?
46408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46410 cat >conftest.$ac_ext <<_ACEOF
46413 cat confdefs.h >>conftest.$ac_ext
46414 cat >>conftest.$ac_ext <<_ACEOF
46415 /* end confdefs.h. */
46416 #include <$ac_header>
46418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46421 grep -v '^ *+' conftest.er1 >conftest.err
46423 cat conftest.err >&5
46424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46425 (exit $ac_status); } >/dev/null; then
46426 if test -s conftest.err; then
46427 ac_cpp_err=$ac_c_preproc_warn_flag
46428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46435 if test -z "$ac_cpp_err"; then
46436 ac_header_preproc=yes
46438 echo "$as_me: failed program was:" >&5
46439 sed 's/^/| /' conftest.$ac_ext >&5
46441 ac_header_preproc=no
46443 rm -f conftest.err conftest.$ac_ext
46444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46445 echo "${ECHO_T}$ac_header_preproc" >&6
46447 # So? What about this header?
46448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46454 ac_header_preproc=yes
46457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46471 ## ------------------------------------------ ##
46472 ## Report this to the AC_PACKAGE_NAME lists. ##
46473 ## ------------------------------------------ ##
46476 sed "s/^/$as_me: WARNING: /" >&2
46479 echo "$as_me:$LINENO: checking for $ac_header" >&5
46480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46482 echo $ECHO_N "(cached) $ECHO_C" >&6
46484 eval "$as_ac_Header=\$ac_header_preproc"
46486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46491 cat >>confdefs.h <<_ACEOF
46492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46500 if test $ac_cv_header_slp_h = yes ; then
46501 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46502 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46503 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46504 echo $ECHO_N "(cached) $ECHO_C" >&6
46506 ac_check_lib_save_LIBS=$LIBS
46508 cat >conftest.$ac_ext <<_ACEOF
46511 cat confdefs.h >>conftest.$ac_ext
46512 cat >>conftest.$ac_ext <<_ACEOF
46513 /* end confdefs.h. */
46515 /* Override any gcc2 internal prototype to avoid an error. */
46519 /* We use char because int might match the return type of a gcc2
46520 builtin and then its argument prototype would still apply. */
46530 rm -f conftest.$ac_objext conftest$ac_exeext
46531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46532 (eval $ac_link) 2>conftest.er1
46534 grep -v '^ *+' conftest.er1 >conftest.err
46536 cat conftest.err >&5
46537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46538 (exit $ac_status); } &&
46539 { ac_try='test -z "$ac_c_werror_flag"
46540 || test ! -s conftest.err'
46541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46542 (eval $ac_try) 2>&5
46544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46545 (exit $ac_status); }; } &&
46546 { ac_try='test -s conftest$ac_exeext'
46547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46548 (eval $ac_try) 2>&5
46550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46551 (exit $ac_status); }; }; then
46552 ac_cv_lib_slp_SLPOpen=yes
46554 echo "$as_me: failed program was:" >&5
46555 sed 's/^/| /' conftest.$ac_ext >&5
46557 ac_cv_lib_slp_SLPOpen=no
46559 rm -f conftest.err conftest.$ac_objext \
46560 conftest$ac_exeext conftest.$ac_ext
46561 LIBS=$ac_check_lib_save_LIBS
46563 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46564 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46565 if test $ac_cv_lib_slp_SLPOpen = yes; then
46571 if test $have_slp = yes ; then
46573 cat >>confdefs.h <<\_ACEOF
46577 SLAPD_SLP_LIBS=-lslp
46580 elif test $ol_enable_slp = yes ; then
46581 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46582 echo "$as_me: error: SLP not found" >&2;}
46583 { (exit 1); exit 1; }; }
46587 if test "$ol_with_multiple_precision" != "no" ; then
46593 for ac_header in openssl/bn.h bn.h
46595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46597 echo "$as_me:$LINENO: checking for $ac_header" >&5
46598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46600 echo $ECHO_N "(cached) $ECHO_C" >&6
46602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46605 # Is the header compilable?
46606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46608 cat >conftest.$ac_ext <<_ACEOF
46611 cat confdefs.h >>conftest.$ac_ext
46612 cat >>conftest.$ac_ext <<_ACEOF
46613 /* end confdefs.h. */
46614 $ac_includes_default
46615 #include <$ac_header>
46617 rm -f conftest.$ac_objext
46618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46619 (eval $ac_compile) 2>conftest.er1
46621 grep -v '^ *+' conftest.er1 >conftest.err
46623 cat conftest.err >&5
46624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46625 (exit $ac_status); } &&
46626 { ac_try='test -z "$ac_c_werror_flag"
46627 || test ! -s conftest.err'
46628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46629 (eval $ac_try) 2>&5
46631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46632 (exit $ac_status); }; } &&
46633 { ac_try='test -s conftest.$ac_objext'
46634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46635 (eval $ac_try) 2>&5
46637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46638 (exit $ac_status); }; }; then
46639 ac_header_compiler=yes
46641 echo "$as_me: failed program was:" >&5
46642 sed 's/^/| /' conftest.$ac_ext >&5
46644 ac_header_compiler=no
46646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46648 echo "${ECHO_T}$ac_header_compiler" >&6
46650 # Is the header present?
46651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46653 cat >conftest.$ac_ext <<_ACEOF
46656 cat confdefs.h >>conftest.$ac_ext
46657 cat >>conftest.$ac_ext <<_ACEOF
46658 /* end confdefs.h. */
46659 #include <$ac_header>
46661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46664 grep -v '^ *+' conftest.er1 >conftest.err
46666 cat conftest.err >&5
46667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46668 (exit $ac_status); } >/dev/null; then
46669 if test -s conftest.err; then
46670 ac_cpp_err=$ac_c_preproc_warn_flag
46671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46678 if test -z "$ac_cpp_err"; then
46679 ac_header_preproc=yes
46681 echo "$as_me: failed program was:" >&5
46682 sed 's/^/| /' conftest.$ac_ext >&5
46684 ac_header_preproc=no
46686 rm -f conftest.err conftest.$ac_ext
46687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46688 echo "${ECHO_T}$ac_header_preproc" >&6
46690 # So? What about this header?
46691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46697 ac_header_preproc=yes
46700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46714 ## ------------------------------------------ ##
46715 ## Report this to the AC_PACKAGE_NAME lists. ##
46716 ## ------------------------------------------ ##
46719 sed "s/^/$as_me: WARNING: /" >&2
46722 echo "$as_me:$LINENO: checking for $ac_header" >&5
46723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46725 echo $ECHO_N "(cached) $ECHO_C" >&6
46727 eval "$as_ac_Header=\$ac_header_preproc"
46729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46734 cat >>confdefs.h <<_ACEOF
46735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46744 for ac_header in openssl/crypto.h crypto.h
46746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46748 echo "$as_me:$LINENO: checking for $ac_header" >&5
46749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46751 echo $ECHO_N "(cached) $ECHO_C" >&6
46753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46756 # Is the header compilable?
46757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46759 cat >conftest.$ac_ext <<_ACEOF
46762 cat confdefs.h >>conftest.$ac_ext
46763 cat >>conftest.$ac_ext <<_ACEOF
46764 /* end confdefs.h. */
46765 $ac_includes_default
46766 #include <$ac_header>
46768 rm -f conftest.$ac_objext
46769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46770 (eval $ac_compile) 2>conftest.er1
46772 grep -v '^ *+' conftest.er1 >conftest.err
46774 cat conftest.err >&5
46775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46776 (exit $ac_status); } &&
46777 { ac_try='test -z "$ac_c_werror_flag"
46778 || test ! -s conftest.err'
46779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46780 (eval $ac_try) 2>&5
46782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46783 (exit $ac_status); }; } &&
46784 { ac_try='test -s conftest.$ac_objext'
46785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46786 (eval $ac_try) 2>&5
46788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46789 (exit $ac_status); }; }; then
46790 ac_header_compiler=yes
46792 echo "$as_me: failed program was:" >&5
46793 sed 's/^/| /' conftest.$ac_ext >&5
46795 ac_header_compiler=no
46797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46799 echo "${ECHO_T}$ac_header_compiler" >&6
46801 # Is the header present?
46802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46804 cat >conftest.$ac_ext <<_ACEOF
46807 cat confdefs.h >>conftest.$ac_ext
46808 cat >>conftest.$ac_ext <<_ACEOF
46809 /* end confdefs.h. */
46810 #include <$ac_header>
46812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46815 grep -v '^ *+' conftest.er1 >conftest.err
46817 cat conftest.err >&5
46818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46819 (exit $ac_status); } >/dev/null; then
46820 if test -s conftest.err; then
46821 ac_cpp_err=$ac_c_preproc_warn_flag
46822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46829 if test -z "$ac_cpp_err"; then
46830 ac_header_preproc=yes
46832 echo "$as_me: failed program was:" >&5
46833 sed 's/^/| /' conftest.$ac_ext >&5
46835 ac_header_preproc=no
46837 rm -f conftest.err conftest.$ac_ext
46838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46839 echo "${ECHO_T}$ac_header_preproc" >&6
46841 # So? What about this header?
46842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46848 ac_header_preproc=yes
46851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46865 ## ------------------------------------------ ##
46866 ## Report this to the AC_PACKAGE_NAME lists. ##
46867 ## ------------------------------------------ ##
46870 sed "s/^/$as_me: WARNING: /" >&2
46873 echo "$as_me:$LINENO: checking for $ac_header" >&5
46874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46876 echo $ECHO_N "(cached) $ECHO_C" >&6
46878 eval "$as_ac_Header=\$ac_header_preproc"
46880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46885 cat >>confdefs.h <<_ACEOF
46886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46894 for ac_header in gmp.h
46896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46898 echo "$as_me:$LINENO: checking for $ac_header" >&5
46899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46901 echo $ECHO_N "(cached) $ECHO_C" >&6
46903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46906 # Is the header compilable?
46907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46909 cat >conftest.$ac_ext <<_ACEOF
46912 cat confdefs.h >>conftest.$ac_ext
46913 cat >>conftest.$ac_ext <<_ACEOF
46914 /* end confdefs.h. */
46915 $ac_includes_default
46916 #include <$ac_header>
46918 rm -f conftest.$ac_objext
46919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46920 (eval $ac_compile) 2>conftest.er1
46922 grep -v '^ *+' conftest.er1 >conftest.err
46924 cat conftest.err >&5
46925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46926 (exit $ac_status); } &&
46927 { ac_try='test -z "$ac_c_werror_flag"
46928 || test ! -s conftest.err'
46929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46930 (eval $ac_try) 2>&5
46932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46933 (exit $ac_status); }; } &&
46934 { ac_try='test -s conftest.$ac_objext'
46935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46936 (eval $ac_try) 2>&5
46938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46939 (exit $ac_status); }; }; then
46940 ac_header_compiler=yes
46942 echo "$as_me: failed program was:" >&5
46943 sed 's/^/| /' conftest.$ac_ext >&5
46945 ac_header_compiler=no
46947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46949 echo "${ECHO_T}$ac_header_compiler" >&6
46951 # Is the header present?
46952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46954 cat >conftest.$ac_ext <<_ACEOF
46957 cat confdefs.h >>conftest.$ac_ext
46958 cat >>conftest.$ac_ext <<_ACEOF
46959 /* end confdefs.h. */
46960 #include <$ac_header>
46962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46965 grep -v '^ *+' conftest.er1 >conftest.err
46967 cat conftest.err >&5
46968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46969 (exit $ac_status); } >/dev/null; then
46970 if test -s conftest.err; then
46971 ac_cpp_err=$ac_c_preproc_warn_flag
46972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46979 if test -z "$ac_cpp_err"; then
46980 ac_header_preproc=yes
46982 echo "$as_me: failed program was:" >&5
46983 sed 's/^/| /' conftest.$ac_ext >&5
46985 ac_header_preproc=no
46987 rm -f conftest.err conftest.$ac_ext
46988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46989 echo "${ECHO_T}$ac_header_preproc" >&6
46991 # So? What about this header?
46992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46998 ac_header_preproc=yes
47001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47015 ## ------------------------------------------ ##
47016 ## Report this to the AC_PACKAGE_NAME lists. ##
47017 ## ------------------------------------------ ##
47020 sed "s/^/$as_me: WARNING: /" >&2
47023 echo "$as_me:$LINENO: checking for $ac_header" >&5
47024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47026 echo $ECHO_N "(cached) $ECHO_C" >&6
47028 eval "$as_ac_Header=\$ac_header_preproc"
47030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47035 cat >>confdefs.h <<_ACEOF
47036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47044 if test "$ol_with_tls" = "found" ; then
47046 ol_have_crypto_h=no
47048 if test "$ac_cv_header_openssl_bn_h" = "yes" \
47049 -o "$ac_cv_header_bn_h" = "yes" ; then
47053 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
47054 -o "$ac_cv_header_crypto_h" = "yes" ; then
47055 ol_have_crypto_h=yes
47058 if test "$ol_have_bn_h" = "yes" \
47059 -a "$ol_have_crypto_h" = "yes" ; then
47064 if test $ac_cv_header_gmp_h = yes ; then
47065 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
47066 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
47067 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
47068 echo $ECHO_N "(cached) $ECHO_C" >&6
47070 ac_check_lib_save_LIBS=$LIBS
47072 cat >conftest.$ac_ext <<_ACEOF
47075 cat confdefs.h >>conftest.$ac_ext
47076 cat >>conftest.$ac_ext <<_ACEOF
47077 /* end confdefs.h. */
47079 /* Override any gcc2 internal prototype to avoid an error. */
47083 /* We use char because int might match the return type of a gcc2
47084 builtin and then its argument prototype would still apply. */
47085 char __gmpz_add_ui ();
47094 rm -f conftest.$ac_objext conftest$ac_exeext
47095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47096 (eval $ac_link) 2>conftest.er1
47098 grep -v '^ *+' conftest.er1 >conftest.err
47100 cat conftest.err >&5
47101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47102 (exit $ac_status); } &&
47103 { ac_try='test -z "$ac_c_werror_flag"
47104 || test ! -s conftest.err'
47105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47106 (eval $ac_try) 2>&5
47108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47109 (exit $ac_status); }; } &&
47110 { ac_try='test -s conftest$ac_exeext'
47111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47112 (eval $ac_try) 2>&5
47114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47115 (exit $ac_status); }; }; then
47116 ac_cv_lib_gmp___gmpz_add_ui=yes
47118 echo "$as_me: failed program was:" >&5
47119 sed 's/^/| /' conftest.$ac_ext >&5
47121 ac_cv_lib_gmp___gmpz_add_ui=no
47123 rm -f conftest.err conftest.$ac_objext \
47124 conftest$ac_exeext conftest.$ac_ext
47125 LIBS=$ac_check_lib_save_LIBS
47127 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
47128 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47129 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47135 if test $have_gmp = yes ; then
47140 echo "$as_me:$LINENO: checking for multiple precision support" >&5
47141 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47143 ol_mp_support="none"
47144 case "$ol_with_multiple_precision" in
47146 if test "$ol_have_bignum" = "yes" ; then
47147 ol_mp_support="bignum"
47149 if test "$ol_have_gmp" = "yes" ; then
47150 ol_mp_support="gmp"
47155 if test "$ol_have_bignum" != "yes" ; then
47156 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47157 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47158 { (exit 1); exit 1; }; }
47160 ol_mp_support="bignum"
47163 if test "$ol_have_gmp" != "yes" ; then
47164 { { echo "$as_me:$LINENO: error: GMP not available" >&5
47165 echo "$as_me: error: GMP not available" >&2;}
47166 { (exit 1); exit 1; }; }
47168 ol_mp_support="gmp"
47171 if test "$ol_have_bignum" = "yes" ; then
47172 ol_mp_support="bignum"
47173 elif test "$ol_have_gmp" = "yes" ; then
47174 ol_mp_support="gmp"
47176 { { echo "$as_me:$LINENO: error: not available" >&5
47177 echo "$as_me: error: not available" >&2;}
47178 { (exit 1); exit 1; }; }
47183 case "$ol_mp_support" in
47186 cat >>confdefs.h <<\_ACEOF
47187 #define HAVE_BIGNUM 1
47193 cat >>confdefs.h <<\_ACEOF
47197 SLAPD_GMP_LIBS=-lgmp
47203 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47204 echo "${ECHO_T}$ol_mp_support" >&6
47208 echo "$as_me:$LINENO: checking for mode_t" >&5
47209 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47210 if test "${ac_cv_type_mode_t+set}" = set; then
47211 echo $ECHO_N "(cached) $ECHO_C" >&6
47213 cat >conftest.$ac_ext <<_ACEOF
47216 cat confdefs.h >>conftest.$ac_ext
47217 cat >>conftest.$ac_ext <<_ACEOF
47218 /* end confdefs.h. */
47219 $ac_includes_default
47225 if (sizeof (mode_t))
47231 rm -f conftest.$ac_objext
47232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47233 (eval $ac_compile) 2>conftest.er1
47235 grep -v '^ *+' conftest.er1 >conftest.err
47237 cat conftest.err >&5
47238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47239 (exit $ac_status); } &&
47240 { ac_try='test -z "$ac_c_werror_flag"
47241 || test ! -s conftest.err'
47242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47243 (eval $ac_try) 2>&5
47245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47246 (exit $ac_status); }; } &&
47247 { ac_try='test -s conftest.$ac_objext'
47248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47249 (eval $ac_try) 2>&5
47251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47252 (exit $ac_status); }; }; then
47253 ac_cv_type_mode_t=yes
47255 echo "$as_me: failed program was:" >&5
47256 sed 's/^/| /' conftest.$ac_ext >&5
47258 ac_cv_type_mode_t=no
47260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47262 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47263 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47264 if test $ac_cv_type_mode_t = yes; then
47268 cat >>confdefs.h <<_ACEOF
47274 echo "$as_me:$LINENO: checking for off_t" >&5
47275 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47276 if test "${ac_cv_type_off_t+set}" = set; then
47277 echo $ECHO_N "(cached) $ECHO_C" >&6
47279 cat >conftest.$ac_ext <<_ACEOF
47282 cat confdefs.h >>conftest.$ac_ext
47283 cat >>conftest.$ac_ext <<_ACEOF
47284 /* end confdefs.h. */
47285 $ac_includes_default
47291 if (sizeof (off_t))
47297 rm -f conftest.$ac_objext
47298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47299 (eval $ac_compile) 2>conftest.er1
47301 grep -v '^ *+' conftest.er1 >conftest.err
47303 cat conftest.err >&5
47304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47305 (exit $ac_status); } &&
47306 { ac_try='test -z "$ac_c_werror_flag"
47307 || test ! -s conftest.err'
47308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47309 (eval $ac_try) 2>&5
47311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47312 (exit $ac_status); }; } &&
47313 { ac_try='test -s conftest.$ac_objext'
47314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47315 (eval $ac_try) 2>&5
47317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47318 (exit $ac_status); }; }; then
47319 ac_cv_type_off_t=yes
47321 echo "$as_me: failed program was:" >&5
47322 sed 's/^/| /' conftest.$ac_ext >&5
47324 ac_cv_type_off_t=no
47326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47328 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47329 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47330 if test $ac_cv_type_off_t = yes; then
47334 cat >>confdefs.h <<_ACEOF
47340 echo "$as_me:$LINENO: checking for pid_t" >&5
47341 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47342 if test "${ac_cv_type_pid_t+set}" = set; then
47343 echo $ECHO_N "(cached) $ECHO_C" >&6
47345 cat >conftest.$ac_ext <<_ACEOF
47348 cat confdefs.h >>conftest.$ac_ext
47349 cat >>conftest.$ac_ext <<_ACEOF
47350 /* end confdefs.h. */
47351 $ac_includes_default
47357 if (sizeof (pid_t))
47363 rm -f conftest.$ac_objext
47364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47365 (eval $ac_compile) 2>conftest.er1
47367 grep -v '^ *+' conftest.er1 >conftest.err
47369 cat conftest.err >&5
47370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47371 (exit $ac_status); } &&
47372 { ac_try='test -z "$ac_c_werror_flag"
47373 || test ! -s conftest.err'
47374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47375 (eval $ac_try) 2>&5
47377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47378 (exit $ac_status); }; } &&
47379 { ac_try='test -s conftest.$ac_objext'
47380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47381 (eval $ac_try) 2>&5
47383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47384 (exit $ac_status); }; }; then
47385 ac_cv_type_pid_t=yes
47387 echo "$as_me: failed program was:" >&5
47388 sed 's/^/| /' conftest.$ac_ext >&5
47390 ac_cv_type_pid_t=no
47392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47394 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47395 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47396 if test $ac_cv_type_pid_t = yes; then
47400 cat >>confdefs.h <<_ACEOF
47406 echo "$as_me:$LINENO: checking for ssize_t" >&5
47407 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47408 if test "${ac_cv_type_ssize_t+set}" = set; then
47409 echo $ECHO_N "(cached) $ECHO_C" >&6
47411 cat >conftest.$ac_ext <<_ACEOF
47414 cat confdefs.h >>conftest.$ac_ext
47415 cat >>conftest.$ac_ext <<_ACEOF
47416 /* end confdefs.h. */
47417 $ac_includes_default
47423 if (sizeof (ssize_t))
47429 rm -f conftest.$ac_objext
47430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47431 (eval $ac_compile) 2>conftest.er1
47433 grep -v '^ *+' conftest.er1 >conftest.err
47435 cat conftest.err >&5
47436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47437 (exit $ac_status); } &&
47438 { ac_try='test -z "$ac_c_werror_flag"
47439 || test ! -s conftest.err'
47440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47441 (eval $ac_try) 2>&5
47443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47444 (exit $ac_status); }; } &&
47445 { ac_try='test -s conftest.$ac_objext'
47446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47447 (eval $ac_try) 2>&5
47449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47450 (exit $ac_status); }; }; then
47451 ac_cv_type_ssize_t=yes
47453 echo "$as_me: failed program was:" >&5
47454 sed 's/^/| /' conftest.$ac_ext >&5
47456 ac_cv_type_ssize_t=no
47458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47460 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47461 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47462 if test $ac_cv_type_ssize_t = yes; then
47466 cat >>confdefs.h <<_ACEOF
47467 #define ssize_t signed int
47472 echo "$as_me:$LINENO: checking for caddr_t" >&5
47473 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47474 if test "${ac_cv_type_caddr_t+set}" = set; then
47475 echo $ECHO_N "(cached) $ECHO_C" >&6
47477 cat >conftest.$ac_ext <<_ACEOF
47480 cat confdefs.h >>conftest.$ac_ext
47481 cat >>conftest.$ac_ext <<_ACEOF
47482 /* end confdefs.h. */
47483 $ac_includes_default
47489 if (sizeof (caddr_t))
47495 rm -f conftest.$ac_objext
47496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47497 (eval $ac_compile) 2>conftest.er1
47499 grep -v '^ *+' conftest.er1 >conftest.err
47501 cat conftest.err >&5
47502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47503 (exit $ac_status); } &&
47504 { ac_try='test -z "$ac_c_werror_flag"
47505 || test ! -s conftest.err'
47506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47507 (eval $ac_try) 2>&5
47509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510 (exit $ac_status); }; } &&
47511 { ac_try='test -s conftest.$ac_objext'
47512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47513 (eval $ac_try) 2>&5
47515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47516 (exit $ac_status); }; }; then
47517 ac_cv_type_caddr_t=yes
47519 echo "$as_me: failed program was:" >&5
47520 sed 's/^/| /' conftest.$ac_ext >&5
47522 ac_cv_type_caddr_t=no
47524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47526 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47527 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47528 if test $ac_cv_type_caddr_t = yes; then
47532 cat >>confdefs.h <<_ACEOF
47533 #define caddr_t char *
47538 echo "$as_me:$LINENO: checking for size_t" >&5
47539 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47540 if test "${ac_cv_type_size_t+set}" = set; then
47541 echo $ECHO_N "(cached) $ECHO_C" >&6
47543 cat >conftest.$ac_ext <<_ACEOF
47546 cat confdefs.h >>conftest.$ac_ext
47547 cat >>conftest.$ac_ext <<_ACEOF
47548 /* end confdefs.h. */
47549 $ac_includes_default
47555 if (sizeof (size_t))
47561 rm -f conftest.$ac_objext
47562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47563 (eval $ac_compile) 2>conftest.er1
47565 grep -v '^ *+' conftest.er1 >conftest.err
47567 cat conftest.err >&5
47568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47569 (exit $ac_status); } &&
47570 { ac_try='test -z "$ac_c_werror_flag"
47571 || test ! -s conftest.err'
47572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47573 (eval $ac_try) 2>&5
47575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47576 (exit $ac_status); }; } &&
47577 { ac_try='test -s conftest.$ac_objext'
47578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47579 (eval $ac_try) 2>&5
47581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47582 (exit $ac_status); }; }; then
47583 ac_cv_type_size_t=yes
47585 echo "$as_me: failed program was:" >&5
47586 sed 's/^/| /' conftest.$ac_ext >&5
47588 ac_cv_type_size_t=no
47590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47592 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47593 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47594 if test $ac_cv_type_size_t = yes; then
47598 cat >>confdefs.h <<_ACEOF
47599 #define size_t unsigned
47605 echo "$as_me:$LINENO: checking for long long" >&5
47606 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47607 if test "${ac_cv_type_long_long+set}" = set; then
47608 echo $ECHO_N "(cached) $ECHO_C" >&6
47610 cat >conftest.$ac_ext <<_ACEOF
47613 cat confdefs.h >>conftest.$ac_ext
47614 cat >>conftest.$ac_ext <<_ACEOF
47615 /* end confdefs.h. */
47616 $ac_includes_default
47620 if ((long long *) 0)
47622 if (sizeof (long long))
47628 rm -f conftest.$ac_objext
47629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47630 (eval $ac_compile) 2>conftest.er1
47632 grep -v '^ *+' conftest.er1 >conftest.err
47634 cat conftest.err >&5
47635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47636 (exit $ac_status); } &&
47637 { ac_try='test -z "$ac_c_werror_flag"
47638 || test ! -s conftest.err'
47639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47640 (eval $ac_try) 2>&5
47642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47643 (exit $ac_status); }; } &&
47644 { ac_try='test -s conftest.$ac_objext'
47645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47646 (eval $ac_try) 2>&5
47648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47649 (exit $ac_status); }; }; then
47650 ac_cv_type_long_long=yes
47652 echo "$as_me: failed program was:" >&5
47653 sed 's/^/| /' conftest.$ac_ext >&5
47655 ac_cv_type_long_long=no
47657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47659 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47660 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47661 if test $ac_cv_type_long_long = yes; then
47663 cat >>confdefs.h <<_ACEOF
47664 #define HAVE_LONG_LONG 1
47670 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47671 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47672 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47673 echo $ECHO_N "(cached) $ECHO_C" >&6
47675 cat >conftest.$ac_ext <<_ACEOF
47678 cat confdefs.h >>conftest.$ac_ext
47679 cat >>conftest.$ac_ext <<_ACEOF
47680 /* end confdefs.h. */
47681 $ac_includes_default
47685 if ((ptrdiff_t *) 0)
47687 if (sizeof (ptrdiff_t))
47693 rm -f conftest.$ac_objext
47694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47695 (eval $ac_compile) 2>conftest.er1
47697 grep -v '^ *+' conftest.er1 >conftest.err
47699 cat conftest.err >&5
47700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47701 (exit $ac_status); } &&
47702 { ac_try='test -z "$ac_c_werror_flag"
47703 || test ! -s conftest.err'
47704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47705 (eval $ac_try) 2>&5
47707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47708 (exit $ac_status); }; } &&
47709 { ac_try='test -s conftest.$ac_objext'
47710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47711 (eval $ac_try) 2>&5
47713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47714 (exit $ac_status); }; }; then
47715 ac_cv_type_ptrdiff_t=yes
47717 echo "$as_me: failed program was:" >&5
47718 sed 's/^/| /' conftest.$ac_ext >&5
47720 ac_cv_type_ptrdiff_t=no
47722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47724 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47725 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47726 if test $ac_cv_type_ptrdiff_t = yes; then
47728 cat >>confdefs.h <<_ACEOF
47729 #define HAVE_PTRDIFF_T 1
47736 echo "$as_me:$LINENO: checking for socklen_t" >&5
47737 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47738 if test "${ac_cv_type_socklen_t+set}" = set; then
47739 echo $ECHO_N "(cached) $ECHO_C" >&6
47741 cat >conftest.$ac_ext <<_ACEOF
47744 cat confdefs.h >>conftest.$ac_ext
47745 cat >>conftest.$ac_ext <<_ACEOF
47746 /* end confdefs.h. */
47747 $ac_includes_default
47748 #ifdef HAVE_SYS_SOCKET_H
47749 #include <sys/socket.h>
47756 if ((socklen_t *) 0)
47758 if (sizeof (socklen_t))
47764 rm -f conftest.$ac_objext
47765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47766 (eval $ac_compile) 2>conftest.er1
47768 grep -v '^ *+' conftest.er1 >conftest.err
47770 cat conftest.err >&5
47771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47772 (exit $ac_status); } &&
47773 { ac_try='test -z "$ac_c_werror_flag"
47774 || test ! -s conftest.err'
47775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47776 (eval $ac_try) 2>&5
47778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47779 (exit $ac_status); }; } &&
47780 { ac_try='test -s conftest.$ac_objext'
47781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47782 (eval $ac_try) 2>&5
47784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47785 (exit $ac_status); }; }; then
47786 ac_cv_type_socklen_t=yes
47788 echo "$as_me: failed program was:" >&5
47789 sed 's/^/| /' conftest.$ac_ext >&5
47791 ac_cv_type_socklen_t=no
47793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47795 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47796 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47797 if test $ac_cv_type_socklen_t = yes; then
47801 cat >>confdefs.h <<_ACEOF
47802 #define socklen_t int
47808 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47809 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47810 if test "${ac_cv_type_signal+set}" = set; then
47811 echo $ECHO_N "(cached) $ECHO_C" >&6
47813 cat >conftest.$ac_ext <<_ACEOF
47816 cat confdefs.h >>conftest.$ac_ext
47817 cat >>conftest.$ac_ext <<_ACEOF
47818 /* end confdefs.h. */
47819 #include <sys/types.h>
47820 #include <signal.h>
47825 extern "C" void (*signal (int, void (*)(int)))(int);
47827 void (*signal ()) ();
47838 rm -f conftest.$ac_objext
47839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47840 (eval $ac_compile) 2>conftest.er1
47842 grep -v '^ *+' conftest.er1 >conftest.err
47844 cat conftest.err >&5
47845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47846 (exit $ac_status); } &&
47847 { ac_try='test -z "$ac_c_werror_flag"
47848 || test ! -s conftest.err'
47849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47850 (eval $ac_try) 2>&5
47852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47853 (exit $ac_status); }; } &&
47854 { ac_try='test -s conftest.$ac_objext'
47855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47856 (eval $ac_try) 2>&5
47858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47859 (exit $ac_status); }; }; then
47860 ac_cv_type_signal=void
47862 echo "$as_me: failed program was:" >&5
47863 sed 's/^/| /' conftest.$ac_ext >&5
47865 ac_cv_type_signal=int
47867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47869 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47870 echo "${ECHO_T}$ac_cv_type_signal" >&6
47872 cat >>confdefs.h <<_ACEOF
47873 #define RETSIGTYPE $ac_cv_type_signal
47878 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47879 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47880 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47881 echo $ECHO_N "(cached) $ECHO_C" >&6
47883 cat >conftest.$ac_ext <<_ACEOF
47886 cat confdefs.h >>conftest.$ac_ext
47887 cat >>conftest.$ac_ext <<_ACEOF
47888 /* end confdefs.h. */
47889 $ac_includes_default
47890 #include <signal.h>
47896 if ((sig_atomic_t *) 0)
47898 if (sizeof (sig_atomic_t))
47904 rm -f conftest.$ac_objext
47905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47906 (eval $ac_compile) 2>conftest.er1
47908 grep -v '^ *+' conftest.er1 >conftest.err
47910 cat conftest.err >&5
47911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47912 (exit $ac_status); } &&
47913 { ac_try='test -z "$ac_c_werror_flag"
47914 || test ! -s conftest.err'
47915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47916 (eval $ac_try) 2>&5
47918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47919 (exit $ac_status); }; } &&
47920 { ac_try='test -s conftest.$ac_objext'
47921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47922 (eval $ac_try) 2>&5
47924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47925 (exit $ac_status); }; }; then
47926 ac_cv_type_sig_atomic_t=yes
47928 echo "$as_me: failed program was:" >&5
47929 sed 's/^/| /' conftest.$ac_ext >&5
47931 ac_cv_type_sig_atomic_t=no
47933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47936 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47937 if test $ac_cv_type_sig_atomic_t = yes; then
47941 cat >>confdefs.h <<_ACEOF
47942 #define sig_atomic_t int
47948 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47949 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47950 if test "${ac_cv_type_uid_t+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>
47962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47963 $EGREP "uid_t" >/dev/null 2>&1; then
47964 ac_cv_type_uid_t=yes
47966 ac_cv_type_uid_t=no
47971 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47972 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47973 if test $ac_cv_type_uid_t = no; then
47975 cat >>confdefs.h <<\_ACEOF
47980 cat >>confdefs.h <<\_ACEOF
47987 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47988 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47989 if test "${ac_cv_header_time+set}" = set; then
47990 echo $ECHO_N "(cached) $ECHO_C" >&6
47992 cat >conftest.$ac_ext <<_ACEOF
47995 cat confdefs.h >>conftest.$ac_ext
47996 cat >>conftest.$ac_ext <<_ACEOF
47997 /* end confdefs.h. */
47998 #include <sys/types.h>
47999 #include <sys/time.h>
48005 if ((struct tm *) 0)
48011 rm -f conftest.$ac_objext
48012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48013 (eval $ac_compile) 2>conftest.er1
48015 grep -v '^ *+' conftest.er1 >conftest.err
48017 cat conftest.err >&5
48018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48019 (exit $ac_status); } &&
48020 { ac_try='test -z "$ac_c_werror_flag"
48021 || test ! -s conftest.err'
48022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48023 (eval $ac_try) 2>&5
48025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48026 (exit $ac_status); }; } &&
48027 { ac_try='test -s conftest.$ac_objext'
48028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48029 (eval $ac_try) 2>&5
48031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48032 (exit $ac_status); }; }; then
48033 ac_cv_header_time=yes
48035 echo "$as_me: failed program was:" >&5
48036 sed 's/^/| /' conftest.$ac_ext >&5
48038 ac_cv_header_time=no
48040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48042 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48043 echo "${ECHO_T}$ac_cv_header_time" >&6
48044 if test $ac_cv_header_time = yes; then
48046 cat >>confdefs.h <<\_ACEOF
48047 #define TIME_WITH_SYS_TIME 1
48052 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48053 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48054 if test "${ac_cv_struct_tm+set}" = set; then
48055 echo $ECHO_N "(cached) $ECHO_C" >&6
48057 cat >conftest.$ac_ext <<_ACEOF
48060 cat confdefs.h >>conftest.$ac_ext
48061 cat >>conftest.$ac_ext <<_ACEOF
48062 /* end confdefs.h. */
48063 #include <sys/types.h>
48069 struct tm *tp; tp->tm_sec;
48074 rm -f conftest.$ac_objext
48075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48076 (eval $ac_compile) 2>conftest.er1
48078 grep -v '^ *+' conftest.er1 >conftest.err
48080 cat conftest.err >&5
48081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48082 (exit $ac_status); } &&
48083 { ac_try='test -z "$ac_c_werror_flag"
48084 || test ! -s conftest.err'
48085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48086 (eval $ac_try) 2>&5
48088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48089 (exit $ac_status); }; } &&
48090 { ac_try='test -s conftest.$ac_objext'
48091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48092 (eval $ac_try) 2>&5
48094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48095 (exit $ac_status); }; }; then
48096 ac_cv_struct_tm=time.h
48098 echo "$as_me: failed program was:" >&5
48099 sed 's/^/| /' conftest.$ac_ext >&5
48101 ac_cv_struct_tm=sys/time.h
48103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48105 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48106 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48107 if test $ac_cv_struct_tm = sys/time.h; then
48109 cat >>confdefs.h <<\_ACEOF
48110 #define TM_IN_SYS_TIME 1
48115 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
48116 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
48117 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
48118 echo $ECHO_N "(cached) $ECHO_C" >&6
48120 cat >conftest.$ac_ext <<_ACEOF
48123 cat confdefs.h >>conftest.$ac_ext
48124 cat >>conftest.$ac_ext <<_ACEOF
48125 /* end confdefs.h. */
48126 $ac_includes_default
48130 static struct stat ac_aggr;
48131 if (ac_aggr.st_blksize)
48137 rm -f conftest.$ac_objext
48138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48139 (eval $ac_compile) 2>conftest.er1
48141 grep -v '^ *+' conftest.er1 >conftest.err
48143 cat conftest.err >&5
48144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48145 (exit $ac_status); } &&
48146 { ac_try='test -z "$ac_c_werror_flag"
48147 || test ! -s conftest.err'
48148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48149 (eval $ac_try) 2>&5
48151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48152 (exit $ac_status); }; } &&
48153 { ac_try='test -s conftest.$ac_objext'
48154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48155 (eval $ac_try) 2>&5
48157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48158 (exit $ac_status); }; }; then
48159 ac_cv_member_struct_stat_st_blksize=yes
48161 echo "$as_me: failed program was:" >&5
48162 sed 's/^/| /' conftest.$ac_ext >&5
48164 cat >conftest.$ac_ext <<_ACEOF
48167 cat confdefs.h >>conftest.$ac_ext
48168 cat >>conftest.$ac_ext <<_ACEOF
48169 /* end confdefs.h. */
48170 $ac_includes_default
48174 static struct stat ac_aggr;
48175 if (sizeof ac_aggr.st_blksize)
48181 rm -f conftest.$ac_objext
48182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48183 (eval $ac_compile) 2>conftest.er1
48185 grep -v '^ *+' conftest.er1 >conftest.err
48187 cat conftest.err >&5
48188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48189 (exit $ac_status); } &&
48190 { ac_try='test -z "$ac_c_werror_flag"
48191 || test ! -s conftest.err'
48192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48193 (eval $ac_try) 2>&5
48195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48196 (exit $ac_status); }; } &&
48197 { ac_try='test -s conftest.$ac_objext'
48198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48199 (eval $ac_try) 2>&5
48201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48202 (exit $ac_status); }; }; then
48203 ac_cv_member_struct_stat_st_blksize=yes
48205 echo "$as_me: failed program was:" >&5
48206 sed 's/^/| /' conftest.$ac_ext >&5
48208 ac_cv_member_struct_stat_st_blksize=no
48210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48214 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48215 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48216 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48218 cat >>confdefs.h <<_ACEOF
48219 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48225 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48226 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48227 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48228 echo $ECHO_N "(cached) $ECHO_C" >&6
48230 cat >conftest.$ac_ext <<_ACEOF
48233 cat confdefs.h >>conftest.$ac_ext
48234 cat >>conftest.$ac_ext <<_ACEOF
48235 /* end confdefs.h. */
48236 $ac_includes_default
48242 static struct passwd ac_aggr;
48243 if (ac_aggr.pw_gecos)
48249 rm -f conftest.$ac_objext
48250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48251 (eval $ac_compile) 2>conftest.er1
48253 grep -v '^ *+' conftest.er1 >conftest.err
48255 cat conftest.err >&5
48256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48257 (exit $ac_status); } &&
48258 { ac_try='test -z "$ac_c_werror_flag"
48259 || test ! -s conftest.err'
48260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48261 (eval $ac_try) 2>&5
48263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48264 (exit $ac_status); }; } &&
48265 { ac_try='test -s conftest.$ac_objext'
48266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48267 (eval $ac_try) 2>&5
48269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48270 (exit $ac_status); }; }; then
48271 ac_cv_member_struct_passwd_pw_gecos=yes
48273 echo "$as_me: failed program was:" >&5
48274 sed 's/^/| /' conftest.$ac_ext >&5
48276 cat >conftest.$ac_ext <<_ACEOF
48279 cat confdefs.h >>conftest.$ac_ext
48280 cat >>conftest.$ac_ext <<_ACEOF
48281 /* end confdefs.h. */
48282 $ac_includes_default
48288 static struct passwd ac_aggr;
48289 if (sizeof ac_aggr.pw_gecos)
48295 rm -f conftest.$ac_objext
48296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48297 (eval $ac_compile) 2>conftest.er1
48299 grep -v '^ *+' conftest.er1 >conftest.err
48301 cat conftest.err >&5
48302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48303 (exit $ac_status); } &&
48304 { ac_try='test -z "$ac_c_werror_flag"
48305 || test ! -s conftest.err'
48306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48307 (eval $ac_try) 2>&5
48309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48310 (exit $ac_status); }; } &&
48311 { ac_try='test -s conftest.$ac_objext'
48312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48313 (eval $ac_try) 2>&5
48315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48316 (exit $ac_status); }; }; then
48317 ac_cv_member_struct_passwd_pw_gecos=yes
48319 echo "$as_me: failed program was:" >&5
48320 sed 's/^/| /' conftest.$ac_ext >&5
48322 ac_cv_member_struct_passwd_pw_gecos=no
48324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48328 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48329 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48330 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48332 cat >>confdefs.h <<_ACEOF
48333 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48339 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48340 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48341 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48342 echo $ECHO_N "(cached) $ECHO_C" >&6
48344 cat >conftest.$ac_ext <<_ACEOF
48347 cat confdefs.h >>conftest.$ac_ext
48348 cat >>conftest.$ac_ext <<_ACEOF
48349 /* end confdefs.h. */
48350 $ac_includes_default
48356 static struct passwd ac_aggr;
48357 if (ac_aggr.pw_passwd)
48363 rm -f conftest.$ac_objext
48364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48365 (eval $ac_compile) 2>conftest.er1
48367 grep -v '^ *+' conftest.er1 >conftest.err
48369 cat conftest.err >&5
48370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48371 (exit $ac_status); } &&
48372 { ac_try='test -z "$ac_c_werror_flag"
48373 || test ! -s conftest.err'
48374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48375 (eval $ac_try) 2>&5
48377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378 (exit $ac_status); }; } &&
48379 { ac_try='test -s conftest.$ac_objext'
48380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48381 (eval $ac_try) 2>&5
48383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48384 (exit $ac_status); }; }; then
48385 ac_cv_member_struct_passwd_pw_passwd=yes
48387 echo "$as_me: failed program was:" >&5
48388 sed 's/^/| /' conftest.$ac_ext >&5
48390 cat >conftest.$ac_ext <<_ACEOF
48393 cat confdefs.h >>conftest.$ac_ext
48394 cat >>conftest.$ac_ext <<_ACEOF
48395 /* end confdefs.h. */
48396 $ac_includes_default
48402 static struct passwd ac_aggr;
48403 if (sizeof ac_aggr.pw_passwd)
48409 rm -f conftest.$ac_objext
48410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48411 (eval $ac_compile) 2>conftest.er1
48413 grep -v '^ *+' conftest.er1 >conftest.err
48415 cat conftest.err >&5
48416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48417 (exit $ac_status); } &&
48418 { ac_try='test -z "$ac_c_werror_flag"
48419 || test ! -s conftest.err'
48420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48421 (eval $ac_try) 2>&5
48423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48424 (exit $ac_status); }; } &&
48425 { ac_try='test -s conftest.$ac_objext'
48426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48427 (eval $ac_try) 2>&5
48429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48430 (exit $ac_status); }; }; then
48431 ac_cv_member_struct_passwd_pw_passwd=yes
48433 echo "$as_me: failed program was:" >&5
48434 sed 's/^/| /' conftest.$ac_ext >&5
48436 ac_cv_member_struct_passwd_pw_passwd=no
48438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48442 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48443 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48444 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48446 cat >>confdefs.h <<_ACEOF
48447 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48454 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48455 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48456 if test "${ol_cv_c_upper_lower+set}" = set; then
48457 echo $ECHO_N "(cached) $ECHO_C" >&6
48460 if test "$cross_compiling" = yes; then
48461 ol_cv_c_upper_lower=safe
48463 cat >conftest.$ac_ext <<_ACEOF
48466 cat confdefs.h >>conftest.$ac_ext
48467 cat >>conftest.$ac_ext <<_ACEOF
48468 /* end confdefs.h. */
48473 if ('C' == toupper('C'))
48479 rm -f conftest$ac_exeext
48480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48481 (eval $ac_link) 2>&5
48483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48486 (eval $ac_try) 2>&5
48488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48489 (exit $ac_status); }; }; then
48490 ol_cv_c_upper_lower=no
48492 echo "$as_me: program exited with status $ac_status" >&5
48493 echo "$as_me: failed program was:" >&5
48494 sed 's/^/| /' conftest.$ac_ext >&5
48496 ( exit $ac_status )
48497 ol_cv_c_upper_lower=yes
48499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48502 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48503 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48504 if test $ol_cv_c_upper_lower != no ; then
48506 cat >>confdefs.h <<\_ACEOF
48507 #define C_UPPER_LOWER 1
48512 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48513 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48514 if test "${ac_cv_c_const+set}" = set; then
48515 echo $ECHO_N "(cached) $ECHO_C" >&6
48517 cat >conftest.$ac_ext <<_ACEOF
48520 cat confdefs.h >>conftest.$ac_ext
48521 cat >>conftest.$ac_ext <<_ACEOF
48522 /* end confdefs.h. */
48527 /* FIXME: Include the comments suggested by Paul. */
48528 #ifndef __cplusplus
48529 /* Ultrix mips cc rejects this. */
48530 typedef int charset[2];
48532 /* SunOS 4.1.1 cc rejects this. */
48533 char const *const *ccp;
48535 /* NEC SVR4.0.2 mips cc rejects this. */
48536 struct point {int x, y;};
48537 static struct point const zero = {0,0};
48538 /* AIX XL C 1.02.0.0 rejects this.
48539 It does not let you subtract one const X* pointer from another in
48540 an arm of an if-expression whose if-part is not a constant
48542 const char *g = "string";
48543 ccp = &g + (g ? g-g : 0);
48544 /* HPUX 7.0 cc rejects these. */
48547 ccp = (char const *const *) p;
48548 { /* SCO 3.2v4 cc rejects this. */
48550 char const *s = 0 ? (char *) 0 : (char const *) 0;
48554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48555 int x[] = {25, 17};
48556 const int *foo = &x[0];
48559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48560 typedef const int *iptr;
48564 { /* AIX XL C 1.02.0.0 rejects this saying
48565 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48566 struct s { int j; const int *ap[3]; };
48567 struct s *b; b->j = 5;
48569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48570 const int foo = 10;
48578 rm -f conftest.$ac_objext
48579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48580 (eval $ac_compile) 2>conftest.er1
48582 grep -v '^ *+' conftest.er1 >conftest.err
48584 cat conftest.err >&5
48585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48586 (exit $ac_status); } &&
48587 { ac_try='test -z "$ac_c_werror_flag"
48588 || test ! -s conftest.err'
48589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48590 (eval $ac_try) 2>&5
48592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48593 (exit $ac_status); }; } &&
48594 { ac_try='test -s conftest.$ac_objext'
48595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48596 (eval $ac_try) 2>&5
48598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48599 (exit $ac_status); }; }; then
48602 echo "$as_me: failed program was:" >&5
48603 sed 's/^/| /' conftest.$ac_ext >&5
48607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48609 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48610 echo "${ECHO_T}$ac_cv_c_const" >&6
48611 if test $ac_cv_c_const = no; then
48613 cat >>confdefs.h <<\_ACEOF
48619 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48620 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48621 if test "${ol_cv_c_volatile+set}" = set; then
48622 echo $ECHO_N "(cached) $ECHO_C" >&6
48624 cat >conftest.$ac_ext <<_ACEOF
48627 cat confdefs.h >>conftest.$ac_ext
48628 cat >>conftest.$ac_ext <<_ACEOF
48629 /* end confdefs.h. */
48634 volatile int a; int * volatile b = x ? &y : &z;
48635 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48641 rm -f conftest.$ac_objext
48642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48643 (eval $ac_compile) 2>conftest.er1
48645 grep -v '^ *+' conftest.er1 >conftest.err
48647 cat conftest.err >&5
48648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48649 (exit $ac_status); } &&
48650 { ac_try='test -z "$ac_c_werror_flag"
48651 || test ! -s conftest.err'
48652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48653 (eval $ac_try) 2>&5
48655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48656 (exit $ac_status); }; } &&
48657 { ac_try='test -s conftest.$ac_objext'
48658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48659 (eval $ac_try) 2>&5
48661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48662 (exit $ac_status); }; }; then
48663 ol_cv_c_volatile=yes
48665 echo "$as_me: failed program was:" >&5
48666 sed 's/^/| /' conftest.$ac_ext >&5
48668 ol_cv_c_volatile=no
48670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48672 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48673 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48674 if test $ol_cv_c_volatile = yes; then
48678 cat >>confdefs.h <<\_ACEOF
48685 if test $cross_compiling = yes ; then
48686 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48687 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48689 cat >>confdefs.h <<\_ACEOF
48690 #define CROSS_COMPILING 1
48694 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48695 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48696 if test "${ac_cv_c_bigendian+set}" = set; then
48697 echo $ECHO_N "(cached) $ECHO_C" >&6
48699 # See if sys/param.h defines the BYTE_ORDER macro.
48700 cat >conftest.$ac_ext <<_ACEOF
48703 cat confdefs.h >>conftest.$ac_ext
48704 cat >>conftest.$ac_ext <<_ACEOF
48705 /* end confdefs.h. */
48706 #include <sys/types.h>
48707 #include <sys/param.h>
48712 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48713 bogus endian macros
48720 rm -f conftest.$ac_objext
48721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48722 (eval $ac_compile) 2>conftest.er1
48724 grep -v '^ *+' conftest.er1 >conftest.err
48726 cat conftest.err >&5
48727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48728 (exit $ac_status); } &&
48729 { ac_try='test -z "$ac_c_werror_flag"
48730 || test ! -s conftest.err'
48731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48732 (eval $ac_try) 2>&5
48734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48735 (exit $ac_status); }; } &&
48736 { ac_try='test -s conftest.$ac_objext'
48737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48738 (eval $ac_try) 2>&5
48740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48741 (exit $ac_status); }; }; then
48742 # It does; now see whether it defined to BIG_ENDIAN or not.
48743 cat >conftest.$ac_ext <<_ACEOF
48746 cat confdefs.h >>conftest.$ac_ext
48747 cat >>conftest.$ac_ext <<_ACEOF
48748 /* end confdefs.h. */
48749 #include <sys/types.h>
48750 #include <sys/param.h>
48755 #if BYTE_ORDER != BIG_ENDIAN
48763 rm -f conftest.$ac_objext
48764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48765 (eval $ac_compile) 2>conftest.er1
48767 grep -v '^ *+' conftest.er1 >conftest.err
48769 cat conftest.err >&5
48770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48771 (exit $ac_status); } &&
48772 { ac_try='test -z "$ac_c_werror_flag"
48773 || test ! -s conftest.err'
48774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48775 (eval $ac_try) 2>&5
48777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48778 (exit $ac_status); }; } &&
48779 { ac_try='test -s conftest.$ac_objext'
48780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48781 (eval $ac_try) 2>&5
48783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48784 (exit $ac_status); }; }; then
48785 ac_cv_c_bigendian=yes
48787 echo "$as_me: failed program was:" >&5
48788 sed 's/^/| /' conftest.$ac_ext >&5
48790 ac_cv_c_bigendian=no
48792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48794 echo "$as_me: failed program was:" >&5
48795 sed 's/^/| /' conftest.$ac_ext >&5
48797 # It does not; compile a test program.
48798 if test "$cross_compiling" = yes; then
48799 # try to guess the endianness by grepping values into an object file
48800 ac_cv_c_bigendian=unknown
48801 cat >conftest.$ac_ext <<_ACEOF
48804 cat confdefs.h >>conftest.$ac_ext
48805 cat >>conftest.$ac_ext <<_ACEOF
48806 /* end confdefs.h. */
48807 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48808 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48809 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48810 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48811 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48812 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48816 _ascii (); _ebcdic ();
48821 rm -f conftest.$ac_objext
48822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48823 (eval $ac_compile) 2>conftest.er1
48825 grep -v '^ *+' conftest.er1 >conftest.err
48827 cat conftest.err >&5
48828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48829 (exit $ac_status); } &&
48830 { ac_try='test -z "$ac_c_werror_flag"
48831 || test ! -s conftest.err'
48832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48833 (eval $ac_try) 2>&5
48835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48836 (exit $ac_status); }; } &&
48837 { ac_try='test -s conftest.$ac_objext'
48838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48839 (eval $ac_try) 2>&5
48841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48842 (exit $ac_status); }; }; then
48843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48844 ac_cv_c_bigendian=yes
48846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48847 if test "$ac_cv_c_bigendian" = unknown; then
48848 ac_cv_c_bigendian=no
48850 # finding both strings is unlikely to happen, but who knows?
48851 ac_cv_c_bigendian=unknown
48855 echo "$as_me: failed program was:" >&5
48856 sed 's/^/| /' conftest.$ac_ext >&5
48859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48861 cat >conftest.$ac_ext <<_ACEOF
48864 cat confdefs.h >>conftest.$ac_ext
48865 cat >>conftest.$ac_ext <<_ACEOF
48866 /* end confdefs.h. */
48870 /* Are we little or big endian? From Harbison&Steele. */
48874 char c[sizeof (long)];
48877 exit (u.c[sizeof (long) - 1] == 1);
48880 rm -f conftest$ac_exeext
48881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48882 (eval $ac_link) 2>&5
48884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48887 (eval $ac_try) 2>&5
48889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48890 (exit $ac_status); }; }; then
48891 ac_cv_c_bigendian=no
48893 echo "$as_me: program exited with status $ac_status" >&5
48894 echo "$as_me: failed program was:" >&5
48895 sed 's/^/| /' conftest.$ac_ext >&5
48897 ( exit $ac_status )
48898 ac_cv_c_bigendian=yes
48900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48905 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48906 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48907 case $ac_cv_c_bigendian in
48910 cat >>confdefs.h <<\_ACEOF
48911 #define WORDS_BIGENDIAN 1
48917 { { echo "$as_me:$LINENO: error: unknown endianness
48918 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48919 echo "$as_me: error: unknown endianness
48920 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48921 { (exit 1); exit 1; }; } ;;
48926 echo "$as_me:$LINENO: checking for short" >&5
48927 echo $ECHO_N "checking for short... $ECHO_C" >&6
48928 if test "${ac_cv_type_short+set}" = set; then
48929 echo $ECHO_N "(cached) $ECHO_C" >&6
48931 cat >conftest.$ac_ext <<_ACEOF
48934 cat confdefs.h >>conftest.$ac_ext
48935 cat >>conftest.$ac_ext <<_ACEOF
48936 /* end confdefs.h. */
48937 $ac_includes_default
48943 if (sizeof (short))
48949 rm -f conftest.$ac_objext
48950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48951 (eval $ac_compile) 2>conftest.er1
48953 grep -v '^ *+' conftest.er1 >conftest.err
48955 cat conftest.err >&5
48956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48957 (exit $ac_status); } &&
48958 { ac_try='test -z "$ac_c_werror_flag"
48959 || test ! -s conftest.err'
48960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48961 (eval $ac_try) 2>&5
48963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48964 (exit $ac_status); }; } &&
48965 { ac_try='test -s conftest.$ac_objext'
48966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48967 (eval $ac_try) 2>&5
48969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48970 (exit $ac_status); }; }; then
48971 ac_cv_type_short=yes
48973 echo "$as_me: failed program was:" >&5
48974 sed 's/^/| /' conftest.$ac_ext >&5
48976 ac_cv_type_short=no
48978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48980 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48981 echo "${ECHO_T}$ac_cv_type_short" >&6
48983 echo "$as_me:$LINENO: checking size of short" >&5
48984 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48985 if test "${ac_cv_sizeof_short+set}" = set; then
48986 echo $ECHO_N "(cached) $ECHO_C" >&6
48988 if test "$ac_cv_type_short" = yes; then
48989 # The cast to unsigned long works around a bug in the HP C Compiler
48990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48992 # This bug is HP SR number 8606223364.
48993 if test "$cross_compiling" = yes; then
48994 # Depending upon the size, compute the lo and hi bounds.
48995 cat >conftest.$ac_ext <<_ACEOF
48998 cat confdefs.h >>conftest.$ac_ext
48999 cat >>conftest.$ac_ext <<_ACEOF
49000 /* end confdefs.h. */
49001 $ac_includes_default
49005 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
49012 rm -f conftest.$ac_objext
49013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49014 (eval $ac_compile) 2>conftest.er1
49016 grep -v '^ *+' conftest.er1 >conftest.err
49018 cat conftest.err >&5
49019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49020 (exit $ac_status); } &&
49021 { ac_try='test -z "$ac_c_werror_flag"
49022 || test ! -s conftest.err'
49023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49024 (eval $ac_try) 2>&5
49026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49027 (exit $ac_status); }; } &&
49028 { ac_try='test -s conftest.$ac_objext'
49029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49030 (eval $ac_try) 2>&5
49032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49033 (exit $ac_status); }; }; then
49036 cat >conftest.$ac_ext <<_ACEOF
49039 cat confdefs.h >>conftest.$ac_ext
49040 cat >>conftest.$ac_ext <<_ACEOF
49041 /* end confdefs.h. */
49042 $ac_includes_default
49046 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49053 rm -f conftest.$ac_objext
49054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49055 (eval $ac_compile) 2>conftest.er1
49057 grep -v '^ *+' conftest.er1 >conftest.err
49059 cat conftest.err >&5
49060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49061 (exit $ac_status); } &&
49062 { ac_try='test -z "$ac_c_werror_flag"
49063 || test ! -s conftest.err'
49064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49065 (eval $ac_try) 2>&5
49067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49068 (exit $ac_status); }; } &&
49069 { ac_try='test -s conftest.$ac_objext'
49070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49071 (eval $ac_try) 2>&5
49073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49074 (exit $ac_status); }; }; then
49075 ac_hi=$ac_mid; break
49077 echo "$as_me: failed program was:" >&5
49078 sed 's/^/| /' conftest.$ac_ext >&5
49080 ac_lo=`expr $ac_mid + 1`
49081 if test $ac_lo -le $ac_mid; then
49085 ac_mid=`expr 2 '*' $ac_mid + 1`
49087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49090 echo "$as_me: failed program was:" >&5
49091 sed 's/^/| /' conftest.$ac_ext >&5
49093 cat >conftest.$ac_ext <<_ACEOF
49096 cat confdefs.h >>conftest.$ac_ext
49097 cat >>conftest.$ac_ext <<_ACEOF
49098 /* end confdefs.h. */
49099 $ac_includes_default
49103 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
49110 rm -f conftest.$ac_objext
49111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49112 (eval $ac_compile) 2>conftest.er1
49114 grep -v '^ *+' conftest.er1 >conftest.err
49116 cat conftest.err >&5
49117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49118 (exit $ac_status); } &&
49119 { ac_try='test -z "$ac_c_werror_flag"
49120 || test ! -s conftest.err'
49121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49122 (eval $ac_try) 2>&5
49124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49125 (exit $ac_status); }; } &&
49126 { ac_try='test -s conftest.$ac_objext'
49127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49128 (eval $ac_try) 2>&5
49130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49131 (exit $ac_status); }; }; then
49134 cat >conftest.$ac_ext <<_ACEOF
49137 cat confdefs.h >>conftest.$ac_ext
49138 cat >>conftest.$ac_ext <<_ACEOF
49139 /* end confdefs.h. */
49140 $ac_includes_default
49144 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49151 rm -f conftest.$ac_objext
49152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49153 (eval $ac_compile) 2>conftest.er1
49155 grep -v '^ *+' conftest.er1 >conftest.err
49157 cat conftest.err >&5
49158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49159 (exit $ac_status); } &&
49160 { ac_try='test -z "$ac_c_werror_flag"
49161 || test ! -s conftest.err'
49162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49163 (eval $ac_try) 2>&5
49165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49166 (exit $ac_status); }; } &&
49167 { ac_try='test -s conftest.$ac_objext'
49168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49169 (eval $ac_try) 2>&5
49171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49172 (exit $ac_status); }; }; then
49173 ac_lo=$ac_mid; break
49175 echo "$as_me: failed program was:" >&5
49176 sed 's/^/| /' conftest.$ac_ext >&5
49178 ac_hi=`expr '(' $ac_mid ')' - 1`
49179 if test $ac_mid -le $ac_hi; then
49183 ac_mid=`expr 2 '*' $ac_mid`
49185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49188 echo "$as_me: failed program was:" >&5
49189 sed 's/^/| /' conftest.$ac_ext >&5
49193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49196 # Binary search between lo and hi bounds.
49197 while test "x$ac_lo" != "x$ac_hi"; do
49198 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49199 cat >conftest.$ac_ext <<_ACEOF
49202 cat confdefs.h >>conftest.$ac_ext
49203 cat >>conftest.$ac_ext <<_ACEOF
49204 /* end confdefs.h. */
49205 $ac_includes_default
49209 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49216 rm -f conftest.$ac_objext
49217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49218 (eval $ac_compile) 2>conftest.er1
49220 grep -v '^ *+' conftest.er1 >conftest.err
49222 cat conftest.err >&5
49223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49224 (exit $ac_status); } &&
49225 { ac_try='test -z "$ac_c_werror_flag"
49226 || test ! -s conftest.err'
49227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49228 (eval $ac_try) 2>&5
49230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49231 (exit $ac_status); }; } &&
49232 { ac_try='test -s conftest.$ac_objext'
49233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49234 (eval $ac_try) 2>&5
49236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49237 (exit $ac_status); }; }; then
49240 echo "$as_me: failed program was:" >&5
49241 sed 's/^/| /' conftest.$ac_ext >&5
49243 ac_lo=`expr '(' $ac_mid ')' + 1`
49245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49248 ?*) ac_cv_sizeof_short=$ac_lo;;
49249 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49250 See \`config.log' for more details." >&5
49251 echo "$as_me: error: cannot compute sizeof (short), 77
49252 See \`config.log' for more details." >&2;}
49253 { (exit 1); exit 1; }; } ;;
49256 if test "$cross_compiling" = yes; then
49257 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49258 See \`config.log' for more details." >&5
49259 echo "$as_me: error: cannot run test program while cross compiling
49260 See \`config.log' for more details." >&2;}
49261 { (exit 1); exit 1; }; }
49263 cat >conftest.$ac_ext <<_ACEOF
49266 cat confdefs.h >>conftest.$ac_ext
49267 cat >>conftest.$ac_ext <<_ACEOF
49268 /* end confdefs.h. */
49269 $ac_includes_default
49270 long longval () { return (long) (sizeof (short)); }
49271 unsigned long ulongval () { return (long) (sizeof (short)); }
49273 #include <stdlib.h>
49278 FILE *f = fopen ("conftest.val", "w");
49281 if (((long) (sizeof (short))) < 0)
49283 long i = longval ();
49284 if (i != ((long) (sizeof (short))))
49286 fprintf (f, "%ld\n", i);
49290 unsigned long i = ulongval ();
49291 if (i != ((long) (sizeof (short))))
49293 fprintf (f, "%lu\n", i);
49295 exit (ferror (f) || fclose (f) != 0);
49301 rm -f conftest$ac_exeext
49302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49303 (eval $ac_link) 2>&5
49305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49308 (eval $ac_try) 2>&5
49310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49311 (exit $ac_status); }; }; then
49312 ac_cv_sizeof_short=`cat conftest.val`
49314 echo "$as_me: program exited with status $ac_status" >&5
49315 echo "$as_me: failed program was:" >&5
49316 sed 's/^/| /' conftest.$ac_ext >&5
49318 ( exit $ac_status )
49319 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49320 See \`config.log' for more details." >&5
49321 echo "$as_me: error: cannot compute sizeof (short), 77
49322 See \`config.log' for more details." >&2;}
49323 { (exit 1); exit 1; }; }
49325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49330 ac_cv_sizeof_short=0
49333 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49334 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49335 cat >>confdefs.h <<_ACEOF
49336 #define SIZEOF_SHORT $ac_cv_sizeof_short
49340 echo "$as_me:$LINENO: checking for int" >&5
49341 echo $ECHO_N "checking for int... $ECHO_C" >&6
49342 if test "${ac_cv_type_int+set}" = set; then
49343 echo $ECHO_N "(cached) $ECHO_C" >&6
49345 cat >conftest.$ac_ext <<_ACEOF
49348 cat confdefs.h >>conftest.$ac_ext
49349 cat >>conftest.$ac_ext <<_ACEOF
49350 /* end confdefs.h. */
49351 $ac_includes_default
49363 rm -f conftest.$ac_objext
49364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49365 (eval $ac_compile) 2>conftest.er1
49367 grep -v '^ *+' conftest.er1 >conftest.err
49369 cat conftest.err >&5
49370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49371 (exit $ac_status); } &&
49372 { ac_try='test -z "$ac_c_werror_flag"
49373 || test ! -s conftest.err'
49374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49375 (eval $ac_try) 2>&5
49377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49378 (exit $ac_status); }; } &&
49379 { ac_try='test -s conftest.$ac_objext'
49380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49381 (eval $ac_try) 2>&5
49383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49384 (exit $ac_status); }; }; then
49387 echo "$as_me: failed program was:" >&5
49388 sed 's/^/| /' conftest.$ac_ext >&5
49392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49394 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49395 echo "${ECHO_T}$ac_cv_type_int" >&6
49397 echo "$as_me:$LINENO: checking size of int" >&5
49398 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49399 if test "${ac_cv_sizeof_int+set}" = set; then
49400 echo $ECHO_N "(cached) $ECHO_C" >&6
49402 if test "$ac_cv_type_int" = yes; then
49403 # The cast to unsigned long works around a bug in the HP C Compiler
49404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49406 # This bug is HP SR number 8606223364.
49407 if test "$cross_compiling" = yes; then
49408 # Depending upon the size, compute the lo and hi bounds.
49409 cat >conftest.$ac_ext <<_ACEOF
49412 cat confdefs.h >>conftest.$ac_ext
49413 cat >>conftest.$ac_ext <<_ACEOF
49414 /* end confdefs.h. */
49415 $ac_includes_default
49419 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49426 rm -f conftest.$ac_objext
49427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49428 (eval $ac_compile) 2>conftest.er1
49430 grep -v '^ *+' conftest.er1 >conftest.err
49432 cat conftest.err >&5
49433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49434 (exit $ac_status); } &&
49435 { ac_try='test -z "$ac_c_werror_flag"
49436 || test ! -s conftest.err'
49437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49438 (eval $ac_try) 2>&5
49440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49441 (exit $ac_status); }; } &&
49442 { ac_try='test -s conftest.$ac_objext'
49443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49444 (eval $ac_try) 2>&5
49446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49447 (exit $ac_status); }; }; then
49450 cat >conftest.$ac_ext <<_ACEOF
49453 cat confdefs.h >>conftest.$ac_ext
49454 cat >>conftest.$ac_ext <<_ACEOF
49455 /* end confdefs.h. */
49456 $ac_includes_default
49460 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49467 rm -f conftest.$ac_objext
49468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49469 (eval $ac_compile) 2>conftest.er1
49471 grep -v '^ *+' conftest.er1 >conftest.err
49473 cat conftest.err >&5
49474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49475 (exit $ac_status); } &&
49476 { ac_try='test -z "$ac_c_werror_flag"
49477 || test ! -s conftest.err'
49478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49479 (eval $ac_try) 2>&5
49481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49482 (exit $ac_status); }; } &&
49483 { ac_try='test -s conftest.$ac_objext'
49484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49485 (eval $ac_try) 2>&5
49487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49488 (exit $ac_status); }; }; then
49489 ac_hi=$ac_mid; break
49491 echo "$as_me: failed program was:" >&5
49492 sed 's/^/| /' conftest.$ac_ext >&5
49494 ac_lo=`expr $ac_mid + 1`
49495 if test $ac_lo -le $ac_mid; then
49499 ac_mid=`expr 2 '*' $ac_mid + 1`
49501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49504 echo "$as_me: failed program was:" >&5
49505 sed 's/^/| /' conftest.$ac_ext >&5
49507 cat >conftest.$ac_ext <<_ACEOF
49510 cat confdefs.h >>conftest.$ac_ext
49511 cat >>conftest.$ac_ext <<_ACEOF
49512 /* end confdefs.h. */
49513 $ac_includes_default
49517 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49524 rm -f conftest.$ac_objext
49525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49526 (eval $ac_compile) 2>conftest.er1
49528 grep -v '^ *+' conftest.er1 >conftest.err
49530 cat conftest.err >&5
49531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49532 (exit $ac_status); } &&
49533 { ac_try='test -z "$ac_c_werror_flag"
49534 || test ! -s conftest.err'
49535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49536 (eval $ac_try) 2>&5
49538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49539 (exit $ac_status); }; } &&
49540 { ac_try='test -s conftest.$ac_objext'
49541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49542 (eval $ac_try) 2>&5
49544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49545 (exit $ac_status); }; }; then
49548 cat >conftest.$ac_ext <<_ACEOF
49551 cat confdefs.h >>conftest.$ac_ext
49552 cat >>conftest.$ac_ext <<_ACEOF
49553 /* end confdefs.h. */
49554 $ac_includes_default
49558 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49565 rm -f conftest.$ac_objext
49566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49567 (eval $ac_compile) 2>conftest.er1
49569 grep -v '^ *+' conftest.er1 >conftest.err
49571 cat conftest.err >&5
49572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49573 (exit $ac_status); } &&
49574 { ac_try='test -z "$ac_c_werror_flag"
49575 || test ! -s conftest.err'
49576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49577 (eval $ac_try) 2>&5
49579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49580 (exit $ac_status); }; } &&
49581 { ac_try='test -s conftest.$ac_objext'
49582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49583 (eval $ac_try) 2>&5
49585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49586 (exit $ac_status); }; }; then
49587 ac_lo=$ac_mid; break
49589 echo "$as_me: failed program was:" >&5
49590 sed 's/^/| /' conftest.$ac_ext >&5
49592 ac_hi=`expr '(' $ac_mid ')' - 1`
49593 if test $ac_mid -le $ac_hi; then
49597 ac_mid=`expr 2 '*' $ac_mid`
49599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49602 echo "$as_me: failed program was:" >&5
49603 sed 's/^/| /' conftest.$ac_ext >&5
49607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49610 # Binary search between lo and hi bounds.
49611 while test "x$ac_lo" != "x$ac_hi"; do
49612 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49613 cat >conftest.$ac_ext <<_ACEOF
49616 cat confdefs.h >>conftest.$ac_ext
49617 cat >>conftest.$ac_ext <<_ACEOF
49618 /* end confdefs.h. */
49619 $ac_includes_default
49623 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49630 rm -f conftest.$ac_objext
49631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49632 (eval $ac_compile) 2>conftest.er1
49634 grep -v '^ *+' conftest.er1 >conftest.err
49636 cat conftest.err >&5
49637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49638 (exit $ac_status); } &&
49639 { ac_try='test -z "$ac_c_werror_flag"
49640 || test ! -s conftest.err'
49641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49642 (eval $ac_try) 2>&5
49644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49645 (exit $ac_status); }; } &&
49646 { ac_try='test -s conftest.$ac_objext'
49647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49648 (eval $ac_try) 2>&5
49650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49651 (exit $ac_status); }; }; then
49654 echo "$as_me: failed program was:" >&5
49655 sed 's/^/| /' conftest.$ac_ext >&5
49657 ac_lo=`expr '(' $ac_mid ')' + 1`
49659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49662 ?*) ac_cv_sizeof_int=$ac_lo;;
49663 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49664 See \`config.log' for more details." >&5
49665 echo "$as_me: error: cannot compute sizeof (int), 77
49666 See \`config.log' for more details." >&2;}
49667 { (exit 1); exit 1; }; } ;;
49670 if test "$cross_compiling" = yes; then
49671 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49672 See \`config.log' for more details." >&5
49673 echo "$as_me: error: cannot run test program while cross compiling
49674 See \`config.log' for more details." >&2;}
49675 { (exit 1); exit 1; }; }
49677 cat >conftest.$ac_ext <<_ACEOF
49680 cat confdefs.h >>conftest.$ac_ext
49681 cat >>conftest.$ac_ext <<_ACEOF
49682 /* end confdefs.h. */
49683 $ac_includes_default
49684 long longval () { return (long) (sizeof (int)); }
49685 unsigned long ulongval () { return (long) (sizeof (int)); }
49687 #include <stdlib.h>
49692 FILE *f = fopen ("conftest.val", "w");
49695 if (((long) (sizeof (int))) < 0)
49697 long i = longval ();
49698 if (i != ((long) (sizeof (int))))
49700 fprintf (f, "%ld\n", i);
49704 unsigned long i = ulongval ();
49705 if (i != ((long) (sizeof (int))))
49707 fprintf (f, "%lu\n", i);
49709 exit (ferror (f) || fclose (f) != 0);
49715 rm -f conftest$ac_exeext
49716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49717 (eval $ac_link) 2>&5
49719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49722 (eval $ac_try) 2>&5
49724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49725 (exit $ac_status); }; }; then
49726 ac_cv_sizeof_int=`cat conftest.val`
49728 echo "$as_me: program exited with status $ac_status" >&5
49729 echo "$as_me: failed program was:" >&5
49730 sed 's/^/| /' conftest.$ac_ext >&5
49732 ( exit $ac_status )
49733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49734 See \`config.log' for more details." >&5
49735 echo "$as_me: error: cannot compute sizeof (int), 77
49736 See \`config.log' for more details." >&2;}
49737 { (exit 1); exit 1; }; }
49739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49747 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49748 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49749 cat >>confdefs.h <<_ACEOF
49750 #define SIZEOF_INT $ac_cv_sizeof_int
49754 echo "$as_me:$LINENO: checking for long" >&5
49755 echo $ECHO_N "checking for long... $ECHO_C" >&6
49756 if test "${ac_cv_type_long+set}" = set; then
49757 echo $ECHO_N "(cached) $ECHO_C" >&6
49759 cat >conftest.$ac_ext <<_ACEOF
49762 cat confdefs.h >>conftest.$ac_ext
49763 cat >>conftest.$ac_ext <<_ACEOF
49764 /* end confdefs.h. */
49765 $ac_includes_default
49777 rm -f conftest.$ac_objext
49778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49779 (eval $ac_compile) 2>conftest.er1
49781 grep -v '^ *+' conftest.er1 >conftest.err
49783 cat conftest.err >&5
49784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49785 (exit $ac_status); } &&
49786 { ac_try='test -z "$ac_c_werror_flag"
49787 || test ! -s conftest.err'
49788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49789 (eval $ac_try) 2>&5
49791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49792 (exit $ac_status); }; } &&
49793 { ac_try='test -s conftest.$ac_objext'
49794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49795 (eval $ac_try) 2>&5
49797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49798 (exit $ac_status); }; }; then
49799 ac_cv_type_long=yes
49801 echo "$as_me: failed program was:" >&5
49802 sed 's/^/| /' conftest.$ac_ext >&5
49806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49808 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49809 echo "${ECHO_T}$ac_cv_type_long" >&6
49811 echo "$as_me:$LINENO: checking size of long" >&5
49812 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49813 if test "${ac_cv_sizeof_long+set}" = set; then
49814 echo $ECHO_N "(cached) $ECHO_C" >&6
49816 if test "$ac_cv_type_long" = yes; then
49817 # The cast to unsigned long works around a bug in the HP C Compiler
49818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49820 # This bug is HP SR number 8606223364.
49821 if test "$cross_compiling" = yes; then
49822 # Depending upon the size, compute the lo and hi bounds.
49823 cat >conftest.$ac_ext <<_ACEOF
49826 cat confdefs.h >>conftest.$ac_ext
49827 cat >>conftest.$ac_ext <<_ACEOF
49828 /* end confdefs.h. */
49829 $ac_includes_default
49833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49840 rm -f conftest.$ac_objext
49841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49842 (eval $ac_compile) 2>conftest.er1
49844 grep -v '^ *+' conftest.er1 >conftest.err
49846 cat conftest.err >&5
49847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49848 (exit $ac_status); } &&
49849 { ac_try='test -z "$ac_c_werror_flag"
49850 || test ! -s conftest.err'
49851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49852 (eval $ac_try) 2>&5
49854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49855 (exit $ac_status); }; } &&
49856 { ac_try='test -s conftest.$ac_objext'
49857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49858 (eval $ac_try) 2>&5
49860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49861 (exit $ac_status); }; }; then
49864 cat >conftest.$ac_ext <<_ACEOF
49867 cat confdefs.h >>conftest.$ac_ext
49868 cat >>conftest.$ac_ext <<_ACEOF
49869 /* end confdefs.h. */
49870 $ac_includes_default
49874 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49881 rm -f conftest.$ac_objext
49882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49883 (eval $ac_compile) 2>conftest.er1
49885 grep -v '^ *+' conftest.er1 >conftest.err
49887 cat conftest.err >&5
49888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49889 (exit $ac_status); } &&
49890 { ac_try='test -z "$ac_c_werror_flag"
49891 || test ! -s conftest.err'
49892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49893 (eval $ac_try) 2>&5
49895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49896 (exit $ac_status); }; } &&
49897 { ac_try='test -s conftest.$ac_objext'
49898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49899 (eval $ac_try) 2>&5
49901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49902 (exit $ac_status); }; }; then
49903 ac_hi=$ac_mid; break
49905 echo "$as_me: failed program was:" >&5
49906 sed 's/^/| /' conftest.$ac_ext >&5
49908 ac_lo=`expr $ac_mid + 1`
49909 if test $ac_lo -le $ac_mid; then
49913 ac_mid=`expr 2 '*' $ac_mid + 1`
49915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49918 echo "$as_me: failed program was:" >&5
49919 sed 's/^/| /' conftest.$ac_ext >&5
49921 cat >conftest.$ac_ext <<_ACEOF
49924 cat confdefs.h >>conftest.$ac_ext
49925 cat >>conftest.$ac_ext <<_ACEOF
49926 /* end confdefs.h. */
49927 $ac_includes_default
49931 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49938 rm -f conftest.$ac_objext
49939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49940 (eval $ac_compile) 2>conftest.er1
49942 grep -v '^ *+' conftest.er1 >conftest.err
49944 cat conftest.err >&5
49945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49946 (exit $ac_status); } &&
49947 { ac_try='test -z "$ac_c_werror_flag"
49948 || test ! -s conftest.err'
49949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49950 (eval $ac_try) 2>&5
49952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49953 (exit $ac_status); }; } &&
49954 { ac_try='test -s conftest.$ac_objext'
49955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49956 (eval $ac_try) 2>&5
49958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49959 (exit $ac_status); }; }; then
49962 cat >conftest.$ac_ext <<_ACEOF
49965 cat confdefs.h >>conftest.$ac_ext
49966 cat >>conftest.$ac_ext <<_ACEOF
49967 /* end confdefs.h. */
49968 $ac_includes_default
49972 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49979 rm -f conftest.$ac_objext
49980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49981 (eval $ac_compile) 2>conftest.er1
49983 grep -v '^ *+' conftest.er1 >conftest.err
49985 cat conftest.err >&5
49986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49987 (exit $ac_status); } &&
49988 { ac_try='test -z "$ac_c_werror_flag"
49989 || test ! -s conftest.err'
49990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49991 (eval $ac_try) 2>&5
49993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49994 (exit $ac_status); }; } &&
49995 { ac_try='test -s conftest.$ac_objext'
49996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49997 (eval $ac_try) 2>&5
49999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50000 (exit $ac_status); }; }; then
50001 ac_lo=$ac_mid; break
50003 echo "$as_me: failed program was:" >&5
50004 sed 's/^/| /' conftest.$ac_ext >&5
50006 ac_hi=`expr '(' $ac_mid ')' - 1`
50007 if test $ac_mid -le $ac_hi; then
50011 ac_mid=`expr 2 '*' $ac_mid`
50013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50016 echo "$as_me: failed program was:" >&5
50017 sed 's/^/| /' conftest.$ac_ext >&5
50021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50024 # Binary search between lo and hi bounds.
50025 while test "x$ac_lo" != "x$ac_hi"; do
50026 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50027 cat >conftest.$ac_ext <<_ACEOF
50030 cat confdefs.h >>conftest.$ac_ext
50031 cat >>conftest.$ac_ext <<_ACEOF
50032 /* end confdefs.h. */
50033 $ac_includes_default
50037 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
50044 rm -f conftest.$ac_objext
50045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50046 (eval $ac_compile) 2>conftest.er1
50048 grep -v '^ *+' conftest.er1 >conftest.err
50050 cat conftest.err >&5
50051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50052 (exit $ac_status); } &&
50053 { ac_try='test -z "$ac_c_werror_flag"
50054 || test ! -s conftest.err'
50055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50056 (eval $ac_try) 2>&5
50058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50059 (exit $ac_status); }; } &&
50060 { ac_try='test -s conftest.$ac_objext'
50061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50062 (eval $ac_try) 2>&5
50064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50065 (exit $ac_status); }; }; then
50068 echo "$as_me: failed program was:" >&5
50069 sed 's/^/| /' conftest.$ac_ext >&5
50071 ac_lo=`expr '(' $ac_mid ')' + 1`
50073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50076 ?*) ac_cv_sizeof_long=$ac_lo;;
50077 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50078 See \`config.log' for more details." >&5
50079 echo "$as_me: error: cannot compute sizeof (long), 77
50080 See \`config.log' for more details." >&2;}
50081 { (exit 1); exit 1; }; } ;;
50084 if test "$cross_compiling" = yes; then
50085 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50086 See \`config.log' for more details." >&5
50087 echo "$as_me: error: cannot run test program while cross compiling
50088 See \`config.log' for more details." >&2;}
50089 { (exit 1); exit 1; }; }
50091 cat >conftest.$ac_ext <<_ACEOF
50094 cat confdefs.h >>conftest.$ac_ext
50095 cat >>conftest.$ac_ext <<_ACEOF
50096 /* end confdefs.h. */
50097 $ac_includes_default
50098 long longval () { return (long) (sizeof (long)); }
50099 unsigned long ulongval () { return (long) (sizeof (long)); }
50101 #include <stdlib.h>
50106 FILE *f = fopen ("conftest.val", "w");
50109 if (((long) (sizeof (long))) < 0)
50111 long i = longval ();
50112 if (i != ((long) (sizeof (long))))
50114 fprintf (f, "%ld\n", i);
50118 unsigned long i = ulongval ();
50119 if (i != ((long) (sizeof (long))))
50121 fprintf (f, "%lu\n", i);
50123 exit (ferror (f) || fclose (f) != 0);
50129 rm -f conftest$ac_exeext
50130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50131 (eval $ac_link) 2>&5
50133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50136 (eval $ac_try) 2>&5
50138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50139 (exit $ac_status); }; }; then
50140 ac_cv_sizeof_long=`cat conftest.val`
50142 echo "$as_me: program exited with status $ac_status" >&5
50143 echo "$as_me: failed program was:" >&5
50144 sed 's/^/| /' conftest.$ac_ext >&5
50146 ( exit $ac_status )
50147 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50148 See \`config.log' for more details." >&5
50149 echo "$as_me: error: cannot compute sizeof (long), 77
50150 See \`config.log' for more details." >&2;}
50151 { (exit 1); exit 1; }; }
50153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50158 ac_cv_sizeof_long=0
50161 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50162 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50163 cat >>confdefs.h <<_ACEOF
50164 #define SIZEOF_LONG $ac_cv_sizeof_long
50168 echo "$as_me:$LINENO: checking for wchar_t" >&5
50169 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50170 if test "${ac_cv_type_wchar_t+set}" = set; then
50171 echo $ECHO_N "(cached) $ECHO_C" >&6
50173 cat >conftest.$ac_ext <<_ACEOF
50176 cat confdefs.h >>conftest.$ac_ext
50177 cat >>conftest.$ac_ext <<_ACEOF
50178 /* end confdefs.h. */
50179 $ac_includes_default
50185 if (sizeof (wchar_t))
50191 rm -f conftest.$ac_objext
50192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50193 (eval $ac_compile) 2>conftest.er1
50195 grep -v '^ *+' conftest.er1 >conftest.err
50197 cat conftest.err >&5
50198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50199 (exit $ac_status); } &&
50200 { ac_try='test -z "$ac_c_werror_flag"
50201 || test ! -s conftest.err'
50202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50203 (eval $ac_try) 2>&5
50205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50206 (exit $ac_status); }; } &&
50207 { ac_try='test -s conftest.$ac_objext'
50208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50209 (eval $ac_try) 2>&5
50211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50212 (exit $ac_status); }; }; then
50213 ac_cv_type_wchar_t=yes
50215 echo "$as_me: failed program was:" >&5
50216 sed 's/^/| /' conftest.$ac_ext >&5
50218 ac_cv_type_wchar_t=no
50220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50222 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50223 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50225 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50226 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50227 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50228 echo $ECHO_N "(cached) $ECHO_C" >&6
50230 if test "$ac_cv_type_wchar_t" = yes; then
50231 # The cast to unsigned long works around a bug in the HP C Compiler
50232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50234 # This bug is HP SR number 8606223364.
50235 if test "$cross_compiling" = yes; then
50236 # Depending upon the size, compute the lo and hi bounds.
50237 cat >conftest.$ac_ext <<_ACEOF
50240 cat confdefs.h >>conftest.$ac_ext
50241 cat >>conftest.$ac_ext <<_ACEOF
50242 /* end confdefs.h. */
50243 $ac_includes_default
50247 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50254 rm -f conftest.$ac_objext
50255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50256 (eval $ac_compile) 2>conftest.er1
50258 grep -v '^ *+' conftest.er1 >conftest.err
50260 cat conftest.err >&5
50261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50262 (exit $ac_status); } &&
50263 { ac_try='test -z "$ac_c_werror_flag"
50264 || test ! -s conftest.err'
50265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50266 (eval $ac_try) 2>&5
50268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50269 (exit $ac_status); }; } &&
50270 { ac_try='test -s conftest.$ac_objext'
50271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50272 (eval $ac_try) 2>&5
50274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50275 (exit $ac_status); }; }; then
50278 cat >conftest.$ac_ext <<_ACEOF
50281 cat confdefs.h >>conftest.$ac_ext
50282 cat >>conftest.$ac_ext <<_ACEOF
50283 /* end confdefs.h. */
50284 $ac_includes_default
50288 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50295 rm -f conftest.$ac_objext
50296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50297 (eval $ac_compile) 2>conftest.er1
50299 grep -v '^ *+' conftest.er1 >conftest.err
50301 cat conftest.err >&5
50302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50303 (exit $ac_status); } &&
50304 { ac_try='test -z "$ac_c_werror_flag"
50305 || test ! -s conftest.err'
50306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50307 (eval $ac_try) 2>&5
50309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50310 (exit $ac_status); }; } &&
50311 { ac_try='test -s conftest.$ac_objext'
50312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50313 (eval $ac_try) 2>&5
50315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50316 (exit $ac_status); }; }; then
50317 ac_hi=$ac_mid; break
50319 echo "$as_me: failed program was:" >&5
50320 sed 's/^/| /' conftest.$ac_ext >&5
50322 ac_lo=`expr $ac_mid + 1`
50323 if test $ac_lo -le $ac_mid; then
50327 ac_mid=`expr 2 '*' $ac_mid + 1`
50329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50332 echo "$as_me: failed program was:" >&5
50333 sed 's/^/| /' conftest.$ac_ext >&5
50335 cat >conftest.$ac_ext <<_ACEOF
50338 cat confdefs.h >>conftest.$ac_ext
50339 cat >>conftest.$ac_ext <<_ACEOF
50340 /* end confdefs.h. */
50341 $ac_includes_default
50345 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50352 rm -f conftest.$ac_objext
50353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50354 (eval $ac_compile) 2>conftest.er1
50356 grep -v '^ *+' conftest.er1 >conftest.err
50358 cat conftest.err >&5
50359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50360 (exit $ac_status); } &&
50361 { ac_try='test -z "$ac_c_werror_flag"
50362 || test ! -s conftest.err'
50363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50364 (eval $ac_try) 2>&5
50366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50367 (exit $ac_status); }; } &&
50368 { ac_try='test -s conftest.$ac_objext'
50369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50370 (eval $ac_try) 2>&5
50372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50373 (exit $ac_status); }; }; then
50376 cat >conftest.$ac_ext <<_ACEOF
50379 cat confdefs.h >>conftest.$ac_ext
50380 cat >>conftest.$ac_ext <<_ACEOF
50381 /* end confdefs.h. */
50382 $ac_includes_default
50386 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50393 rm -f conftest.$ac_objext
50394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50395 (eval $ac_compile) 2>conftest.er1
50397 grep -v '^ *+' conftest.er1 >conftest.err
50399 cat conftest.err >&5
50400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50401 (exit $ac_status); } &&
50402 { ac_try='test -z "$ac_c_werror_flag"
50403 || test ! -s conftest.err'
50404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50405 (eval $ac_try) 2>&5
50407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50408 (exit $ac_status); }; } &&
50409 { ac_try='test -s conftest.$ac_objext'
50410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50411 (eval $ac_try) 2>&5
50413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50414 (exit $ac_status); }; }; then
50415 ac_lo=$ac_mid; break
50417 echo "$as_me: failed program was:" >&5
50418 sed 's/^/| /' conftest.$ac_ext >&5
50420 ac_hi=`expr '(' $ac_mid ')' - 1`
50421 if test $ac_mid -le $ac_hi; then
50425 ac_mid=`expr 2 '*' $ac_mid`
50427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50430 echo "$as_me: failed program was:" >&5
50431 sed 's/^/| /' conftest.$ac_ext >&5
50435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50438 # Binary search between lo and hi bounds.
50439 while test "x$ac_lo" != "x$ac_hi"; do
50440 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50441 cat >conftest.$ac_ext <<_ACEOF
50444 cat confdefs.h >>conftest.$ac_ext
50445 cat >>conftest.$ac_ext <<_ACEOF
50446 /* end confdefs.h. */
50447 $ac_includes_default
50451 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50458 rm -f conftest.$ac_objext
50459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50460 (eval $ac_compile) 2>conftest.er1
50462 grep -v '^ *+' conftest.er1 >conftest.err
50464 cat conftest.err >&5
50465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50466 (exit $ac_status); } &&
50467 { ac_try='test -z "$ac_c_werror_flag"
50468 || test ! -s conftest.err'
50469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50470 (eval $ac_try) 2>&5
50472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50473 (exit $ac_status); }; } &&
50474 { ac_try='test -s conftest.$ac_objext'
50475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50476 (eval $ac_try) 2>&5
50478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50479 (exit $ac_status); }; }; then
50482 echo "$as_me: failed program was:" >&5
50483 sed 's/^/| /' conftest.$ac_ext >&5
50485 ac_lo=`expr '(' $ac_mid ')' + 1`
50487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50490 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50491 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50492 See \`config.log' for more details." >&5
50493 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50494 See \`config.log' for more details." >&2;}
50495 { (exit 1); exit 1; }; } ;;
50498 if test "$cross_compiling" = yes; then
50499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50500 See \`config.log' for more details." >&5
50501 echo "$as_me: error: cannot run test program while cross compiling
50502 See \`config.log' for more details." >&2;}
50503 { (exit 1); exit 1; }; }
50505 cat >conftest.$ac_ext <<_ACEOF
50508 cat confdefs.h >>conftest.$ac_ext
50509 cat >>conftest.$ac_ext <<_ACEOF
50510 /* end confdefs.h. */
50511 $ac_includes_default
50512 long longval () { return (long) (sizeof (wchar_t)); }
50513 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50515 #include <stdlib.h>
50520 FILE *f = fopen ("conftest.val", "w");
50523 if (((long) (sizeof (wchar_t))) < 0)
50525 long i = longval ();
50526 if (i != ((long) (sizeof (wchar_t))))
50528 fprintf (f, "%ld\n", i);
50532 unsigned long i = ulongval ();
50533 if (i != ((long) (sizeof (wchar_t))))
50535 fprintf (f, "%lu\n", i);
50537 exit (ferror (f) || fclose (f) != 0);
50543 rm -f conftest$ac_exeext
50544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50545 (eval $ac_link) 2>&5
50547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50550 (eval $ac_try) 2>&5
50552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50553 (exit $ac_status); }; }; then
50554 ac_cv_sizeof_wchar_t=`cat conftest.val`
50556 echo "$as_me: program exited with status $ac_status" >&5
50557 echo "$as_me: failed program was:" >&5
50558 sed 's/^/| /' conftest.$ac_ext >&5
50560 ( exit $ac_status )
50561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50562 See \`config.log' for more details." >&5
50563 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50564 See \`config.log' for more details." >&2;}
50565 { (exit 1); exit 1; }; }
50567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50572 ac_cv_sizeof_wchar_t=0
50575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50576 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50577 cat >>confdefs.h <<_ACEOF
50578 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50583 if test "$ac_cv_sizeof_int" -lt 4 ; then
50584 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50585 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50588 cat >>confdefs.h <<\_ACEOF
50589 #define LBER_INT_T long
50594 cat >>confdefs.h <<\_ACEOF
50595 #define LBER_INT_T int
50601 cat >>confdefs.h <<\_ACEOF
50602 #define LBER_LEN_T long
50606 cat >>confdefs.h <<\_ACEOF
50607 #define LBER_SOCKET_T int
50611 cat >>confdefs.h <<\_ACEOF
50612 #define LBER_TAG_T long
50616 echo "$as_me:$LINENO: checking for working memcmp" >&5
50617 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50618 if test "${ac_cv_func_memcmp_working+set}" = set; then
50619 echo $ECHO_N "(cached) $ECHO_C" >&6
50621 if test "$cross_compiling" = yes; then
50622 ac_cv_func_memcmp_working=no
50624 cat >conftest.$ac_ext <<_ACEOF
50627 cat confdefs.h >>conftest.$ac_ext
50628 cat >>conftest.$ac_ext <<_ACEOF
50629 /* end confdefs.h. */
50630 $ac_includes_default
50635 /* Some versions of memcmp are not 8-bit clean. */
50636 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50637 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50640 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50641 or more and with at least one buffer not starting on a 4-byte boundary.
50642 William Lewis provided this test program. */
50647 for (i = 0; i < 4; i++)
50651 strcpy (a, "--------01111111");
50652 strcpy (b, "--------10000000");
50653 if (memcmp (a, b, 16) >= 0)
50663 rm -f conftest$ac_exeext
50664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50665 (eval $ac_link) 2>&5
50667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50670 (eval $ac_try) 2>&5
50672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50673 (exit $ac_status); }; }; then
50674 ac_cv_func_memcmp_working=yes
50676 echo "$as_me: program exited with status $ac_status" >&5
50677 echo "$as_me: failed program was:" >&5
50678 sed 's/^/| /' conftest.$ac_ext >&5
50680 ( exit $ac_status )
50681 ac_cv_func_memcmp_working=no
50683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50686 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50687 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50688 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50689 "memcmp.$ac_objext" | \
50690 *" memcmp.$ac_objext" | \
50691 "memcmp.$ac_objext "* | \
50692 *" memcmp.$ac_objext "* ) ;;
50693 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50698 if test $ac_cv_func_memcmp_working = no ; then
50700 cat >>confdefs.h <<\_ACEOF
50701 #define NEED_MEMCMP_REPLACEMENT 1
50707 for ac_func in strftime
50709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50710 echo "$as_me:$LINENO: checking for $ac_func" >&5
50711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50712 if eval "test \"\${$as_ac_var+set}\" = set"; then
50713 echo $ECHO_N "(cached) $ECHO_C" >&6
50715 cat >conftest.$ac_ext <<_ACEOF
50718 cat confdefs.h >>conftest.$ac_ext
50719 cat >>conftest.$ac_ext <<_ACEOF
50720 /* end confdefs.h. */
50721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50723 #define $ac_func innocuous_$ac_func
50725 /* System header to define __stub macros and hopefully few prototypes,
50726 which can conflict with char $ac_func (); below.
50727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50728 <limits.h> exists even on freestanding compilers. */
50731 # include <limits.h>
50733 # include <assert.h>
50738 /* Override any gcc2 internal prototype to avoid an error. */
50743 /* We use char because int might match the return type of a gcc2
50744 builtin and then its argument prototype would still apply. */
50746 /* The GNU C library defines this for functions which it implements
50747 to always fail with ENOSYS. Some functions are actually named
50748 something starting with __ and the normal name is an alias. */
50749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50752 char (*f) () = $ac_func;
50761 return f != $ac_func;
50766 rm -f conftest.$ac_objext conftest$ac_exeext
50767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50768 (eval $ac_link) 2>conftest.er1
50770 grep -v '^ *+' conftest.er1 >conftest.err
50772 cat conftest.err >&5
50773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50774 (exit $ac_status); } &&
50775 { ac_try='test -z "$ac_c_werror_flag"
50776 || test ! -s conftest.err'
50777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50778 (eval $ac_try) 2>&5
50780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50781 (exit $ac_status); }; } &&
50782 { ac_try='test -s conftest$ac_exeext'
50783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50784 (eval $ac_try) 2>&5
50786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50787 (exit $ac_status); }; }; then
50788 eval "$as_ac_var=yes"
50790 echo "$as_me: failed program was:" >&5
50791 sed 's/^/| /' conftest.$ac_ext >&5
50793 eval "$as_ac_var=no"
50795 rm -f conftest.err conftest.$ac_objext \
50796 conftest$ac_exeext conftest.$ac_ext
50798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50800 if test `eval echo '${'$as_ac_var'}'` = yes; then
50801 cat >>confdefs.h <<_ACEOF
50802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50806 # strftime is in -lintl on SCO UNIX.
50807 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50808 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50809 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50810 echo $ECHO_N "(cached) $ECHO_C" >&6
50812 ac_check_lib_save_LIBS=$LIBS
50813 LIBS="-lintl $LIBS"
50814 cat >conftest.$ac_ext <<_ACEOF
50817 cat confdefs.h >>conftest.$ac_ext
50818 cat >>conftest.$ac_ext <<_ACEOF
50819 /* end confdefs.h. */
50821 /* Override any gcc2 internal prototype to avoid an error. */
50825 /* We use char because int might match the return type of a gcc2
50826 builtin and then its argument prototype would still apply. */
50836 rm -f conftest.$ac_objext conftest$ac_exeext
50837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50838 (eval $ac_link) 2>conftest.er1
50840 grep -v '^ *+' conftest.er1 >conftest.err
50842 cat conftest.err >&5
50843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50844 (exit $ac_status); } &&
50845 { ac_try='test -z "$ac_c_werror_flag"
50846 || test ! -s conftest.err'
50847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50848 (eval $ac_try) 2>&5
50850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50851 (exit $ac_status); }; } &&
50852 { ac_try='test -s conftest$ac_exeext'
50853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50854 (eval $ac_try) 2>&5
50856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50857 (exit $ac_status); }; }; then
50858 ac_cv_lib_intl_strftime=yes
50860 echo "$as_me: failed program was:" >&5
50861 sed 's/^/| /' conftest.$ac_ext >&5
50863 ac_cv_lib_intl_strftime=no
50865 rm -f conftest.err conftest.$ac_objext \
50866 conftest$ac_exeext conftest.$ac_ext
50867 LIBS=$ac_check_lib_save_LIBS
50869 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50870 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50871 if test $ac_cv_lib_intl_strftime = yes; then
50872 cat >>confdefs.h <<\_ACEOF
50873 #define HAVE_STRFTIME 1
50876 LIBS="-lintl $LIBS"
50883 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50884 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50885 if test "${ol_cv_func_inet_aton+set}" = set; then
50886 echo $ECHO_N "(cached) $ECHO_C" >&6
50888 cat >conftest.$ac_ext <<_ACEOF
50891 cat confdefs.h >>conftest.$ac_ext
50892 cat >>conftest.$ac_ext <<_ACEOF
50893 /* end confdefs.h. */
50895 #ifdef HAVE_SYS_TYPES_H
50896 # include <sys/types.h>
50898 #ifdef HAVE_SYS_SOCKET_H
50899 # include <sys/socket.h>
50900 # ifdef HAVE_SYS_SELECT_H
50901 # include <sys/select.h>
50903 # include <netinet/in.h>
50904 # ifdef HAVE_ARPA_INET_H
50905 # include <arpa/inet.h>
50913 int rc = inet_aton( "255.255.255.255", &in );
50918 rm -f conftest.$ac_objext conftest$ac_exeext
50919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50920 (eval $ac_link) 2>conftest.er1
50922 grep -v '^ *+' conftest.er1 >conftest.err
50924 cat conftest.err >&5
50925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50926 (exit $ac_status); } &&
50927 { ac_try='test -z "$ac_c_werror_flag"
50928 || test ! -s conftest.err'
50929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50930 (eval $ac_try) 2>&5
50932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50933 (exit $ac_status); }; } &&
50934 { ac_try='test -s conftest$ac_exeext'
50935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50936 (eval $ac_try) 2>&5
50938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50939 (exit $ac_status); }; }; then
50940 ol_cv_func_inet_aton=yes
50942 echo "$as_me: failed program was:" >&5
50943 sed 's/^/| /' conftest.$ac_ext >&5
50945 ol_cv_func_inet_aton=no
50947 rm -f conftest.err conftest.$ac_objext \
50948 conftest$ac_exeext conftest.$ac_ext
50950 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50951 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50952 if test $ol_cv_func_inet_aton != no; then
50954 cat >>confdefs.h <<\_ACEOF
50955 #define HAVE_INET_ATON 1
50961 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50962 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50963 if test "${ac_cv_func__spawnlp+set}" = set; then
50964 echo $ECHO_N "(cached) $ECHO_C" >&6
50966 cat >conftest.$ac_ext <<_ACEOF
50969 cat confdefs.h >>conftest.$ac_ext
50970 cat >>conftest.$ac_ext <<_ACEOF
50971 /* end confdefs.h. */
50972 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50974 #define _spawnlp innocuous__spawnlp
50976 /* System header to define __stub macros and hopefully few prototypes,
50977 which can conflict with char _spawnlp (); below.
50978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50979 <limits.h> exists even on freestanding compilers. */
50982 # include <limits.h>
50984 # include <assert.h>
50989 /* Override any gcc2 internal prototype to avoid an error. */
50994 /* We use char because int might match the return type of a gcc2
50995 builtin and then its argument prototype would still apply. */
50997 /* The GNU C library defines this for functions which it implements
50998 to always fail with ENOSYS. Some functions are actually named
50999 something starting with __ and the normal name is an alias. */
51000 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
51003 char (*f) () = _spawnlp;
51012 return f != _spawnlp;
51017 rm -f conftest.$ac_objext conftest$ac_exeext
51018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51019 (eval $ac_link) 2>conftest.er1
51021 grep -v '^ *+' conftest.er1 >conftest.err
51023 cat conftest.err >&5
51024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51025 (exit $ac_status); } &&
51026 { ac_try='test -z "$ac_c_werror_flag"
51027 || test ! -s conftest.err'
51028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51029 (eval $ac_try) 2>&5
51031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51032 (exit $ac_status); }; } &&
51033 { ac_try='test -s conftest$ac_exeext'
51034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51035 (eval $ac_try) 2>&5
51037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51038 (exit $ac_status); }; }; then
51039 ac_cv_func__spawnlp=yes
51041 echo "$as_me: failed program was:" >&5
51042 sed 's/^/| /' conftest.$ac_ext >&5
51044 ac_cv_func__spawnlp=no
51046 rm -f conftest.err conftest.$ac_objext \
51047 conftest$ac_exeext conftest.$ac_ext
51049 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
51050 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
51051 if test $ac_cv_func__spawnlp = yes; then
51053 cat >>confdefs.h <<\_ACEOF
51054 #define HAVE_SPAWNLP 1
51060 echo "$as_me:$LINENO: checking for _snprintf" >&5
51061 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
51062 if test "${ac_cv_func__snprintf+set}" = set; then
51063 echo $ECHO_N "(cached) $ECHO_C" >&6
51065 cat >conftest.$ac_ext <<_ACEOF
51068 cat confdefs.h >>conftest.$ac_ext
51069 cat >>conftest.$ac_ext <<_ACEOF
51070 /* end confdefs.h. */
51071 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
51072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51073 #define _snprintf innocuous__snprintf
51075 /* System header to define __stub macros and hopefully few prototypes,
51076 which can conflict with char _snprintf (); below.
51077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51078 <limits.h> exists even on freestanding compilers. */
51081 # include <limits.h>
51083 # include <assert.h>
51088 /* Override any gcc2 internal prototype to avoid an error. */
51093 /* We use char because int might match the return type of a gcc2
51094 builtin and then its argument prototype would still apply. */
51096 /* The GNU C library defines this for functions which it implements
51097 to always fail with ENOSYS. Some functions are actually named
51098 something starting with __ and the normal name is an alias. */
51099 #if defined (__stub__snprintf) || defined (__stub____snprintf)
51102 char (*f) () = _snprintf;
51111 return f != _snprintf;
51116 rm -f conftest.$ac_objext conftest$ac_exeext
51117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51118 (eval $ac_link) 2>conftest.er1
51120 grep -v '^ *+' conftest.er1 >conftest.err
51122 cat conftest.err >&5
51123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51124 (exit $ac_status); } &&
51125 { ac_try='test -z "$ac_c_werror_flag"
51126 || test ! -s conftest.err'
51127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51128 (eval $ac_try) 2>&5
51130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51131 (exit $ac_status); }; } &&
51132 { ac_try='test -s conftest$ac_exeext'
51133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51134 (eval $ac_try) 2>&5
51136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51137 (exit $ac_status); }; }; then
51138 ac_cv_func__snprintf=yes
51140 echo "$as_me: failed program was:" >&5
51141 sed 's/^/| /' conftest.$ac_ext >&5
51143 ac_cv_func__snprintf=no
51145 rm -f conftest.err conftest.$ac_objext \
51146 conftest$ac_exeext conftest.$ac_ext
51148 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51149 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51150 if test $ac_cv_func__snprintf = yes; then
51151 ac_cv_func_snprintf=yes
51153 cat >>confdefs.h <<\_ACEOF
51154 #define snprintf _snprintf
51161 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51162 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51163 if test "${ac_cv_func__vsnprintf+set}" = set; then
51164 echo $ECHO_N "(cached) $ECHO_C" >&6
51166 cat >conftest.$ac_ext <<_ACEOF
51169 cat confdefs.h >>conftest.$ac_ext
51170 cat >>conftest.$ac_ext <<_ACEOF
51171 /* end confdefs.h. */
51172 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51174 #define _vsnprintf innocuous__vsnprintf
51176 /* System header to define __stub macros and hopefully few prototypes,
51177 which can conflict with char _vsnprintf (); below.
51178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51179 <limits.h> exists even on freestanding compilers. */
51182 # include <limits.h>
51184 # include <assert.h>
51189 /* Override any gcc2 internal prototype to avoid an error. */
51194 /* We use char because int might match the return type of a gcc2
51195 builtin and then its argument prototype would still apply. */
51196 char _vsnprintf ();
51197 /* The GNU C library defines this for functions which it implements
51198 to always fail with ENOSYS. Some functions are actually named
51199 something starting with __ and the normal name is an alias. */
51200 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51203 char (*f) () = _vsnprintf;
51212 return f != _vsnprintf;
51217 rm -f conftest.$ac_objext conftest$ac_exeext
51218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51219 (eval $ac_link) 2>conftest.er1
51221 grep -v '^ *+' conftest.er1 >conftest.err
51223 cat conftest.err >&5
51224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51225 (exit $ac_status); } &&
51226 { ac_try='test -z "$ac_c_werror_flag"
51227 || test ! -s conftest.err'
51228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51229 (eval $ac_try) 2>&5
51231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51232 (exit $ac_status); }; } &&
51233 { ac_try='test -s conftest$ac_exeext'
51234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51235 (eval $ac_try) 2>&5
51237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51238 (exit $ac_status); }; }; then
51239 ac_cv_func__vsnprintf=yes
51241 echo "$as_me: failed program was:" >&5
51242 sed 's/^/| /' conftest.$ac_ext >&5
51244 ac_cv_func__vsnprintf=no
51246 rm -f conftest.err conftest.$ac_objext \
51247 conftest$ac_exeext conftest.$ac_ext
51249 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51250 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51251 if test $ac_cv_func__vsnprintf = yes; then
51252 ac_cv_func_vsnprintf=yes
51254 cat >>confdefs.h <<\_ACEOF
51255 #define vsnprintf _vsnprintf
51263 for ac_func in vprintf
51265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51266 echo "$as_me:$LINENO: checking for $ac_func" >&5
51267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51268 if eval "test \"\${$as_ac_var+set}\" = set"; then
51269 echo $ECHO_N "(cached) $ECHO_C" >&6
51271 cat >conftest.$ac_ext <<_ACEOF
51274 cat confdefs.h >>conftest.$ac_ext
51275 cat >>conftest.$ac_ext <<_ACEOF
51276 /* end confdefs.h. */
51277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51279 #define $ac_func innocuous_$ac_func
51281 /* System header to define __stub macros and hopefully few prototypes,
51282 which can conflict with char $ac_func (); below.
51283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51284 <limits.h> exists even on freestanding compilers. */
51287 # include <limits.h>
51289 # include <assert.h>
51294 /* Override any gcc2 internal prototype to avoid an error. */
51299 /* We use char because int might match the return type of a gcc2
51300 builtin and then its argument prototype would still apply. */
51302 /* The GNU C library defines this for functions which it implements
51303 to always fail with ENOSYS. Some functions are actually named
51304 something starting with __ and the normal name is an alias. */
51305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51308 char (*f) () = $ac_func;
51317 return f != $ac_func;
51322 rm -f conftest.$ac_objext conftest$ac_exeext
51323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51324 (eval $ac_link) 2>conftest.er1
51326 grep -v '^ *+' conftest.er1 >conftest.err
51328 cat conftest.err >&5
51329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51330 (exit $ac_status); } &&
51331 { ac_try='test -z "$ac_c_werror_flag"
51332 || test ! -s conftest.err'
51333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51334 (eval $ac_try) 2>&5
51336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51337 (exit $ac_status); }; } &&
51338 { ac_try='test -s conftest$ac_exeext'
51339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51340 (eval $ac_try) 2>&5
51342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51343 (exit $ac_status); }; }; then
51344 eval "$as_ac_var=yes"
51346 echo "$as_me: failed program was:" >&5
51347 sed 's/^/| /' conftest.$ac_ext >&5
51349 eval "$as_ac_var=no"
51351 rm -f conftest.err conftest.$ac_objext \
51352 conftest$ac_exeext conftest.$ac_ext
51354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51356 if test `eval echo '${'$as_ac_var'}'` = yes; then
51357 cat >>confdefs.h <<_ACEOF
51358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51361 echo "$as_me:$LINENO: checking for _doprnt" >&5
51362 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51363 if test "${ac_cv_func__doprnt+set}" = set; then
51364 echo $ECHO_N "(cached) $ECHO_C" >&6
51366 cat >conftest.$ac_ext <<_ACEOF
51369 cat confdefs.h >>conftest.$ac_ext
51370 cat >>conftest.$ac_ext <<_ACEOF
51371 /* end confdefs.h. */
51372 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51374 #define _doprnt innocuous__doprnt
51376 /* System header to define __stub macros and hopefully few prototypes,
51377 which can conflict with char _doprnt (); below.
51378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51379 <limits.h> exists even on freestanding compilers. */
51382 # include <limits.h>
51384 # include <assert.h>
51389 /* Override any gcc2 internal prototype to avoid an error. */
51394 /* We use char because int might match the return type of a gcc2
51395 builtin and then its argument prototype would still apply. */
51397 /* The GNU C library defines this for functions which it implements
51398 to always fail with ENOSYS. Some functions are actually named
51399 something starting with __ and the normal name is an alias. */
51400 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51403 char (*f) () = _doprnt;
51412 return f != _doprnt;
51417 rm -f conftest.$ac_objext conftest$ac_exeext
51418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51419 (eval $ac_link) 2>conftest.er1
51421 grep -v '^ *+' conftest.er1 >conftest.err
51423 cat conftest.err >&5
51424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51425 (exit $ac_status); } &&
51426 { ac_try='test -z "$ac_c_werror_flag"
51427 || test ! -s conftest.err'
51428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51429 (eval $ac_try) 2>&5
51431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51432 (exit $ac_status); }; } &&
51433 { ac_try='test -s conftest$ac_exeext'
51434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51435 (eval $ac_try) 2>&5
51437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51438 (exit $ac_status); }; }; then
51439 ac_cv_func__doprnt=yes
51441 echo "$as_me: failed program was:" >&5
51442 sed 's/^/| /' conftest.$ac_ext >&5
51444 ac_cv_func__doprnt=no
51446 rm -f conftest.err conftest.$ac_objext \
51447 conftest$ac_exeext conftest.$ac_ext
51449 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51450 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51451 if test $ac_cv_func__doprnt = yes; then
51453 cat >>confdefs.h <<\_ACEOF
51454 #define HAVE_DOPRNT 1
51464 if test $ac_cv_func_vprintf = yes ; then
51467 for ac_func in snprintf vsnprintf
51469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51470 echo "$as_me:$LINENO: checking for $ac_func" >&5
51471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51472 if eval "test \"\${$as_ac_var+set}\" = set"; then
51473 echo $ECHO_N "(cached) $ECHO_C" >&6
51475 cat >conftest.$ac_ext <<_ACEOF
51478 cat confdefs.h >>conftest.$ac_ext
51479 cat >>conftest.$ac_ext <<_ACEOF
51480 /* end confdefs.h. */
51481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51483 #define $ac_func innocuous_$ac_func
51485 /* System header to define __stub macros and hopefully few prototypes,
51486 which can conflict with char $ac_func (); below.
51487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51488 <limits.h> exists even on freestanding compilers. */
51491 # include <limits.h>
51493 # include <assert.h>
51498 /* Override any gcc2 internal prototype to avoid an error. */
51503 /* We use char because int might match the return type of a gcc2
51504 builtin and then its argument prototype would still apply. */
51506 /* The GNU C library defines this for functions which it implements
51507 to always fail with ENOSYS. Some functions are actually named
51508 something starting with __ and the normal name is an alias. */
51509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51512 char (*f) () = $ac_func;
51521 return f != $ac_func;
51526 rm -f conftest.$ac_objext conftest$ac_exeext
51527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51528 (eval $ac_link) 2>conftest.er1
51530 grep -v '^ *+' conftest.er1 >conftest.err
51532 cat conftest.err >&5
51533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51534 (exit $ac_status); } &&
51535 { ac_try='test -z "$ac_c_werror_flag"
51536 || test ! -s conftest.err'
51537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51538 (eval $ac_try) 2>&5
51540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51541 (exit $ac_status); }; } &&
51542 { ac_try='test -s conftest$ac_exeext'
51543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51544 (eval $ac_try) 2>&5
51546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51547 (exit $ac_status); }; }; then
51548 eval "$as_ac_var=yes"
51550 echo "$as_me: failed program was:" >&5
51551 sed 's/^/| /' conftest.$ac_ext >&5
51553 eval "$as_ac_var=no"
51555 rm -f conftest.err conftest.$ac_objext \
51556 conftest$ac_exeext conftest.$ac_ext
51558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51560 if test `eval echo '${'$as_ac_var'}'` = yes; then
51561 cat >>confdefs.h <<_ACEOF
51562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51680 echo "$as_me:$LINENO: checking for $ac_func" >&5
51681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51682 if eval "test \"\${$as_ac_var+set}\" = set"; then
51683 echo $ECHO_N "(cached) $ECHO_C" >&6
51685 cat >conftest.$ac_ext <<_ACEOF
51688 cat confdefs.h >>conftest.$ac_ext
51689 cat >>conftest.$ac_ext <<_ACEOF
51690 /* end confdefs.h. */
51691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51693 #define $ac_func innocuous_$ac_func
51695 /* System header to define __stub macros and hopefully few prototypes,
51696 which can conflict with char $ac_func (); below.
51697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51698 <limits.h> exists even on freestanding compilers. */
51701 # include <limits.h>
51703 # include <assert.h>
51708 /* Override any gcc2 internal prototype to avoid an error. */
51713 /* We use char because int might match the return type of a gcc2
51714 builtin and then its argument prototype would still apply. */
51716 /* The GNU C library defines this for functions which it implements
51717 to always fail with ENOSYS. Some functions are actually named
51718 something starting with __ and the normal name is an alias. */
51719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51722 char (*f) () = $ac_func;
51731 return f != $ac_func;
51736 rm -f conftest.$ac_objext conftest$ac_exeext
51737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51738 (eval $ac_link) 2>conftest.er1
51740 grep -v '^ *+' conftest.er1 >conftest.err
51742 cat conftest.err >&5
51743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51744 (exit $ac_status); } &&
51745 { ac_try='test -z "$ac_c_werror_flag"
51746 || test ! -s conftest.err'
51747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51748 (eval $ac_try) 2>&5
51750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51751 (exit $ac_status); }; } &&
51752 { ac_try='test -s conftest$ac_exeext'
51753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51754 (eval $ac_try) 2>&5
51756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51757 (exit $ac_status); }; }; then
51758 eval "$as_ac_var=yes"
51760 echo "$as_me: failed program was:" >&5
51761 sed 's/^/| /' conftest.$ac_ext >&5
51763 eval "$as_ac_var=no"
51765 rm -f conftest.err conftest.$ac_objext \
51766 conftest$ac_exeext conftest.$ac_ext
51768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51770 if test `eval echo '${'$as_ac_var'}'` = yes; then
51771 cat >>confdefs.h <<_ACEOF
51772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51781 for ac_func in getopt getpeereid
51783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51784 echo "$as_me:$LINENO: checking for $ac_func" >&5
51785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51786 if eval "test \"\${$as_ac_var+set}\" = set"; then
51787 echo $ECHO_N "(cached) $ECHO_C" >&6
51789 cat >conftest.$ac_ext <<_ACEOF
51792 cat confdefs.h >>conftest.$ac_ext
51793 cat >>conftest.$ac_ext <<_ACEOF
51794 /* end confdefs.h. */
51795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51797 #define $ac_func innocuous_$ac_func
51799 /* System header to define __stub macros and hopefully few prototypes,
51800 which can conflict with char $ac_func (); below.
51801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51802 <limits.h> exists even on freestanding compilers. */
51805 # include <limits.h>
51807 # include <assert.h>
51812 /* Override any gcc2 internal prototype to avoid an error. */
51817 /* We use char because int might match the return type of a gcc2
51818 builtin and then its argument prototype would still apply. */
51820 /* The GNU C library defines this for functions which it implements
51821 to always fail with ENOSYS. Some functions are actually named
51822 something starting with __ and the normal name is an alias. */
51823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51826 char (*f) () = $ac_func;
51835 return f != $ac_func;
51840 rm -f conftest.$ac_objext conftest$ac_exeext
51841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51842 (eval $ac_link) 2>conftest.er1
51844 grep -v '^ *+' conftest.er1 >conftest.err
51846 cat conftest.err >&5
51847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51848 (exit $ac_status); } &&
51849 { ac_try='test -z "$ac_c_werror_flag"
51850 || test ! -s conftest.err'
51851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51852 (eval $ac_try) 2>&5
51854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51855 (exit $ac_status); }; } &&
51856 { ac_try='test -s conftest$ac_exeext'
51857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51858 (eval $ac_try) 2>&5
51860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51861 (exit $ac_status); }; }; then
51862 eval "$as_ac_var=yes"
51864 echo "$as_me: failed program was:" >&5
51865 sed 's/^/| /' conftest.$ac_ext >&5
51867 eval "$as_ac_var=no"
51869 rm -f conftest.err conftest.$ac_objext \
51870 conftest$ac_exeext conftest.$ac_ext
51872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51874 if test `eval echo '${'$as_ac_var'}'` = yes; then
51875 cat >>confdefs.h <<_ACEOF
51876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51881 "$ac_func.$ac_objext" | \
51882 *" $ac_func.$ac_objext" | \
51883 "$ac_func.$ac_objext "* | \
51884 *" $ac_func.$ac_objext "* ) ;;
51885 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51893 if test "$ac_cv_func_getopt" != yes; then
51894 LIBSRCS="$LIBSRCS getopt.c"
51896 if test "$ac_cv_func_getpeereid" != yes; then
51897 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51898 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51899 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51900 echo $ECHO_N "(cached) $ECHO_C" >&6
51902 cat >conftest.$ac_ext <<_ACEOF
51905 cat confdefs.h >>conftest.$ac_ext
51906 cat >>conftest.$ac_ext <<_ACEOF
51907 /* end confdefs.h. */
51908 $ac_includes_default
51909 #ifdef HAVE_SYS_SOCKET_H
51910 #include <sys/socket.h>
51916 static struct msghdr ac_aggr;
51917 if (ac_aggr.msg_accrightslen)
51923 rm -f conftest.$ac_objext
51924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51925 (eval $ac_compile) 2>conftest.er1
51927 grep -v '^ *+' conftest.er1 >conftest.err
51929 cat conftest.err >&5
51930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51931 (exit $ac_status); } &&
51932 { ac_try='test -z "$ac_c_werror_flag"
51933 || test ! -s conftest.err'
51934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51935 (eval $ac_try) 2>&5
51937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51938 (exit $ac_status); }; } &&
51939 { ac_try='test -s conftest.$ac_objext'
51940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51941 (eval $ac_try) 2>&5
51943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51944 (exit $ac_status); }; }; then
51945 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51947 echo "$as_me: failed program was:" >&5
51948 sed 's/^/| /' conftest.$ac_ext >&5
51950 cat >conftest.$ac_ext <<_ACEOF
51953 cat confdefs.h >>conftest.$ac_ext
51954 cat >>conftest.$ac_ext <<_ACEOF
51955 /* end confdefs.h. */
51956 $ac_includes_default
51957 #ifdef HAVE_SYS_SOCKET_H
51958 #include <sys/socket.h>
51964 static struct msghdr ac_aggr;
51965 if (sizeof ac_aggr.msg_accrightslen)
51971 rm -f conftest.$ac_objext
51972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51973 (eval $ac_compile) 2>conftest.er1
51975 grep -v '^ *+' conftest.er1 >conftest.err
51977 cat conftest.err >&5
51978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51979 (exit $ac_status); } &&
51980 { ac_try='test -z "$ac_c_werror_flag"
51981 || test ! -s conftest.err'
51982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51983 (eval $ac_try) 2>&5
51985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51986 (exit $ac_status); }; } &&
51987 { ac_try='test -s conftest.$ac_objext'
51988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51989 (eval $ac_try) 2>&5
51991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51992 (exit $ac_status); }; }; then
51993 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51995 echo "$as_me: failed program was:" >&5
51996 sed 's/^/| /' conftest.$ac_ext >&5
51998 ac_cv_member_struct_msghdr_msg_accrightslen=no
52000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52004 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
52005 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
52006 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
52008 cat >>confdefs.h <<_ACEOF
52009 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
52015 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
52016 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
52017 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
52018 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
52019 echo $ECHO_N "(cached) $ECHO_C" >&6
52021 cat >conftest.$ac_ext <<_ACEOF
52024 cat confdefs.h >>conftest.$ac_ext
52025 cat >>conftest.$ac_ext <<_ACEOF
52026 /* end confdefs.h. */
52027 $ac_includes_default
52028 #ifdef HAVE_SYS_SOCKET_H
52029 #include <sys/socket.h>
52035 static struct msghdr ac_aggr;
52036 if (ac_aggr.msg_control)
52042 rm -f conftest.$ac_objext
52043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52044 (eval $ac_compile) 2>conftest.er1
52046 grep -v '^ *+' conftest.er1 >conftest.err
52048 cat conftest.err >&5
52049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52050 (exit $ac_status); } &&
52051 { ac_try='test -z "$ac_c_werror_flag"
52052 || test ! -s conftest.err'
52053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52054 (eval $ac_try) 2>&5
52056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52057 (exit $ac_status); }; } &&
52058 { ac_try='test -s conftest.$ac_objext'
52059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52060 (eval $ac_try) 2>&5
52062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52063 (exit $ac_status); }; }; then
52064 ac_cv_member_struct_msghdr_msg_control=yes
52066 echo "$as_me: failed program was:" >&5
52067 sed 's/^/| /' conftest.$ac_ext >&5
52069 cat >conftest.$ac_ext <<_ACEOF
52072 cat confdefs.h >>conftest.$ac_ext
52073 cat >>conftest.$ac_ext <<_ACEOF
52074 /* end confdefs.h. */
52075 $ac_includes_default
52076 #ifdef HAVE_SYS_SOCKET_H
52077 #include <sys/socket.h>
52083 static struct msghdr ac_aggr;
52084 if (sizeof ac_aggr.msg_control)
52090 rm -f conftest.$ac_objext
52091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52092 (eval $ac_compile) 2>conftest.er1
52094 grep -v '^ *+' conftest.er1 >conftest.err
52096 cat conftest.err >&5
52097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52098 (exit $ac_status); } &&
52099 { ac_try='test -z "$ac_c_werror_flag"
52100 || test ! -s conftest.err'
52101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52102 (eval $ac_try) 2>&5
52104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52105 (exit $ac_status); }; } &&
52106 { ac_try='test -s conftest.$ac_objext'
52107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52108 (eval $ac_try) 2>&5
52110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52111 (exit $ac_status); }; }; then
52112 ac_cv_member_struct_msghdr_msg_control=yes
52114 echo "$as_me: failed program was:" >&5
52115 sed 's/^/| /' conftest.$ac_ext >&5
52117 ac_cv_member_struct_msghdr_msg_control=no
52119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52123 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
52124 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
52125 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
52127 cat >>confdefs.h <<_ACEOF
52128 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52135 LIBSRCS="$LIBSRCS getpeereid.c"
52137 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52138 if test "$ac_cv_func_snprintf" != yes; then
52140 cat >>confdefs.h <<\_ACEOF
52141 #define snprintf ber_pvt_snprintf
52145 if test "$ac_cv_func_vsnprintf" != yes; then
52147 cat >>confdefs.h <<\_ACEOF
52148 #define vsnprintf ber_pvt_vsnprintf
52155 if test "$ol_enable_slapi" != no ; then
52157 for ac_header in ltdl.h
52159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52161 echo "$as_me:$LINENO: checking for $ac_header" >&5
52162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52164 echo $ECHO_N "(cached) $ECHO_C" >&6
52166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52169 # Is the header compilable?
52170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52172 cat >conftest.$ac_ext <<_ACEOF
52175 cat confdefs.h >>conftest.$ac_ext
52176 cat >>conftest.$ac_ext <<_ACEOF
52177 /* end confdefs.h. */
52178 $ac_includes_default
52179 #include <$ac_header>
52181 rm -f conftest.$ac_objext
52182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52183 (eval $ac_compile) 2>conftest.er1
52185 grep -v '^ *+' conftest.er1 >conftest.err
52187 cat conftest.err >&5
52188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52189 (exit $ac_status); } &&
52190 { ac_try='test -z "$ac_c_werror_flag"
52191 || test ! -s conftest.err'
52192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52193 (eval $ac_try) 2>&5
52195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52196 (exit $ac_status); }; } &&
52197 { ac_try='test -s conftest.$ac_objext'
52198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52199 (eval $ac_try) 2>&5
52201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52202 (exit $ac_status); }; }; then
52203 ac_header_compiler=yes
52205 echo "$as_me: failed program was:" >&5
52206 sed 's/^/| /' conftest.$ac_ext >&5
52208 ac_header_compiler=no
52210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52212 echo "${ECHO_T}$ac_header_compiler" >&6
52214 # Is the header present?
52215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52217 cat >conftest.$ac_ext <<_ACEOF
52220 cat confdefs.h >>conftest.$ac_ext
52221 cat >>conftest.$ac_ext <<_ACEOF
52222 /* end confdefs.h. */
52223 #include <$ac_header>
52225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52228 grep -v '^ *+' conftest.er1 >conftest.err
52230 cat conftest.err >&5
52231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52232 (exit $ac_status); } >/dev/null; then
52233 if test -s conftest.err; then
52234 ac_cpp_err=$ac_c_preproc_warn_flag
52235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52242 if test -z "$ac_cpp_err"; then
52243 ac_header_preproc=yes
52245 echo "$as_me: failed program was:" >&5
52246 sed 's/^/| /' conftest.$ac_ext >&5
52248 ac_header_preproc=no
52250 rm -f conftest.err conftest.$ac_ext
52251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52252 echo "${ECHO_T}$ac_header_preproc" >&6
52254 # So? What about this header?
52255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52261 ac_header_preproc=yes
52264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52278 ## ------------------------------------------ ##
52279 ## Report this to the AC_PACKAGE_NAME lists. ##
52280 ## ------------------------------------------ ##
52283 sed "s/^/$as_me: WARNING: /" >&2
52286 echo "$as_me:$LINENO: checking for $ac_header" >&5
52287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52289 echo $ECHO_N "(cached) $ECHO_C" >&6
52291 eval "$as_ac_Header=\$ac_header_preproc"
52293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52298 cat >>confdefs.h <<_ACEOF
52299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52307 if test $ac_cv_header_ltdl_h != yes ; then
52308 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52309 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52310 { (exit 1); exit 1; }; }
52312 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52313 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52314 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52315 echo $ECHO_N "(cached) $ECHO_C" >&6
52317 ac_check_lib_save_LIBS=$LIBS
52318 LIBS="-lltdl $LIBS"
52319 cat >conftest.$ac_ext <<_ACEOF
52322 cat confdefs.h >>conftest.$ac_ext
52323 cat >>conftest.$ac_ext <<_ACEOF
52324 /* end confdefs.h. */
52326 /* Override any gcc2 internal prototype to avoid an error. */
52330 /* We use char because int might match the return type of a gcc2
52331 builtin and then its argument prototype would still apply. */
52341 rm -f conftest.$ac_objext conftest$ac_exeext
52342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52343 (eval $ac_link) 2>conftest.er1
52345 grep -v '^ *+' conftest.er1 >conftest.err
52347 cat conftest.err >&5
52348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52349 (exit $ac_status); } &&
52350 { ac_try='test -z "$ac_c_werror_flag"
52351 || test ! -s conftest.err'
52352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52353 (eval $ac_try) 2>&5
52355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52356 (exit $ac_status); }; } &&
52357 { ac_try='test -s conftest$ac_exeext'
52358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52359 (eval $ac_try) 2>&5
52361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52362 (exit $ac_status); }; }; then
52363 ac_cv_lib_ltdl_lt_dlinit=yes
52365 echo "$as_me: failed program was:" >&5
52366 sed 's/^/| /' conftest.$ac_ext >&5
52368 ac_cv_lib_ltdl_lt_dlinit=no
52370 rm -f conftest.err conftest.$ac_objext \
52371 conftest$ac_exeext conftest.$ac_ext
52372 LIBS=$ac_check_lib_save_LIBS
52374 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52375 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52376 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52379 LIBSLAPI=libslapi.a
52380 LIBSLAPITOOLS=../libslapi.a
52382 cat >>confdefs.h <<\_ACEOF
52383 #define HAVE_LIBLTDL 1
52388 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52389 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52390 { (exit 1); exit 1; }; }
52395 cat >>confdefs.h <<\_ACEOF
52396 #define LDAP_SLAPI 1
52401 if test "$ol_enable_debug" != no ; then
52403 cat >>confdefs.h <<\_ACEOF
52404 #define LDAP_DEBUG 1
52408 if test "$ol_enable_syslog" = yes ; then
52410 cat >>confdefs.h <<\_ACEOF
52411 #define LDAP_SYSLOG 1
52415 if test "$ol_link_kbind" != no ; then
52417 cat >>confdefs.h <<\_ACEOF
52418 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52422 if test "$ol_enable_proctitle" != no ; then
52424 cat >>confdefs.h <<\_ACEOF
52425 #define LDAP_PROCTITLE 1
52429 if test "$ol_enable_referrals" != no ; then
52431 cat >>confdefs.h <<\_ACEOF
52432 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52436 if test "$ol_enable_local" != no; then
52438 cat >>confdefs.h <<\_ACEOF
52439 #define LDAP_PF_LOCAL 1
52443 if test "$ol_link_ipv6" != no; then
52445 cat >>confdefs.h <<\_ACEOF
52446 #define LDAP_PF_INET6 1
52450 if test "$ol_enable_cleartext" != no ; then
52452 cat >>confdefs.h <<\_ACEOF
52453 #define SLAPD_CLEARTEXT 1
52457 if test "$ol_enable_crypt" != no ; then
52459 cat >>confdefs.h <<\_ACEOF
52460 #define SLAPD_CRYPT 1
52464 if test "$ol_link_spasswd" != no ; then
52466 cat >>confdefs.h <<\_ACEOF
52467 #define SLAPD_SPASSWD 1
52471 if test "$ol_enable_multimaster" != no ; then
52473 cat >>confdefs.h <<\_ACEOF
52474 #define SLAPD_MULTIMASTER 1
52478 if test "$ol_enable_rlookups" != no ; then
52480 cat >>confdefs.h <<\_ACEOF
52481 #define SLAPD_RLOOKUPS 1
52485 if test "$ol_enable_aci" != no ; then
52487 cat >>confdefs.h <<\_ACEOF
52488 #define SLAPD_ACI_ENABLED 1
52493 if test "$ol_link_modules" != no ; then
52495 cat >>confdefs.h <<\_ACEOF
52496 #define SLAPD_MODULES 1
52500 SLAPD_MODULES_LDFLAGS="-dlopen self"
52504 cat >>confdefs.h <<\_ACEOF
52505 #define SLAPD_MOD_STATIC 1
52509 cat >>confdefs.h <<\_ACEOF
52510 #define SLAPD_MOD_DYNAMIC 2
52514 if test "$ol_enable_bdb" != no ; then
52516 BUILD_BDB=$ol_enable_bdb
52517 if test "$ol_enable_bdb" = mod ; then
52518 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52519 MFLAG=SLAPD_MOD_DYNAMIC
52521 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52522 MFLAG=SLAPD_MOD_STATIC
52525 cat >>confdefs.h <<_ACEOF
52526 #define SLAPD_BDB $MFLAG
52531 if test "$ol_enable_dnssrv" != no ; then
52533 BUILD_DNSSRV=$ol_enable_dnssrv
52534 if test "$ol_enable_dnssrv" = mod ; then
52535 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52536 MFLAG=SLAPD_MOD_DYNAMIC
52538 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52539 MFLAG=SLAPD_MOD_STATIC
52542 cat >>confdefs.h <<_ACEOF
52543 #define SLAPD_DNSSRV $MFLAG
52548 if test "$ol_enable_hdb" != no ; then
52550 BUILD_HDB=$ol_enable_hdb
52551 if test "$ol_enable_hdb" = mod ; then
52552 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52553 MFLAG=SLAPD_MOD_DYNAMIC
52555 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52556 MFLAG=SLAPD_MOD_STATIC
52559 cat >>confdefs.h <<_ACEOF
52560 #define SLAPD_HDB $MFLAG
52565 if test "$ol_enable_ldap" != no ; then
52567 BUILD_LDAP=$ol_enable_ldap
52568 if test "$ol_enable_ldap" = mod ; then
52569 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52570 MFLAG=SLAPD_MOD_DYNAMIC
52572 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52573 MFLAG=SLAPD_MOD_STATIC
52576 cat >>confdefs.h <<_ACEOF
52577 #define SLAPD_LDAP $MFLAG
52582 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52584 BUILD_LDBM=$ol_enable_ldbm
52585 if test "$ol_enable_ldbm" = mod ; then
52586 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52587 MFLAG=SLAPD_MOD_DYNAMIC
52589 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52590 MFLAG=SLAPD_MOD_STATIC
52593 cat >>confdefs.h <<_ACEOF
52594 #define SLAPD_LDBM $MFLAG
52599 if test "$ol_enable_meta" != no ; then
52601 BUILD_META=$ol_enable_meta
52603 if test "$ol_enable_meta" = mod ; then
52604 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52605 MFLAG=SLAPD_MOD_DYNAMIC
52607 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52608 MFLAG=SLAPD_MOD_STATIC
52611 cat >>confdefs.h <<_ACEOF
52612 #define SLAPD_META $MFLAG
52617 if test "$ol_enable_monitor" != no ; then
52619 BUILD_MONITOR=$ol_enable_monitor
52620 if test "$ol_enable_monitor" = mod ; then
52621 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52622 MFLAG=SLAPD_MOD_DYNAMIC
52624 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52625 MFLAG=SLAPD_MOD_STATIC
52628 cat >>confdefs.h <<_ACEOF
52629 #define SLAPD_MONITOR $MFLAG
52634 if test "$ol_enable_null" != no ; then
52636 BUILD_NULL=$ol_enable_null
52637 if test "$ol_enable_null" = mod ; then
52638 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52639 MFLAG=SLAPD_MOD_DYNAMIC
52641 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52642 MFLAG=SLAPD_MOD_STATIC
52645 cat >>confdefs.h <<_ACEOF
52646 #define SLAPD_NULL $MFLAG
52651 if test "$ol_enable_passwd" != no ; then
52653 BUILD_PASSWD=$ol_enable_passwd
52654 if test "$ol_enable_passwd" = mod ; then
52655 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52656 MFLAG=SLAPD_MOD_DYNAMIC
52658 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52659 MFLAG=SLAPD_MOD_STATIC
52662 cat >>confdefs.h <<_ACEOF
52663 #define SLAPD_PASSWD $MFLAG
52668 if test "$ol_link_perl" != no ; then
52670 BUILD_PERL=$ol_enable_perl
52671 if test "$ol_enable_perl" = mod ; then
52672 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52673 MFLAG=SLAPD_MOD_DYNAMIC
52675 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52676 MFLAG=SLAPD_MOD_STATIC
52679 cat >>confdefs.h <<_ACEOF
52680 #define SLAPD_PERL $MFLAG
52685 if test "$ol_enable_relay" != no ; then
52687 BUILD_RELAY=$ol_enable_relay
52688 if test "$ol_enable_relay" = mod ; then
52689 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52690 MFLAG=SLAPD_MOD_DYNAMIC
52692 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52693 MFLAG=SLAPD_MOD_STATIC
52696 cat >>confdefs.h <<_ACEOF
52697 #define SLAPD_RELAY $MFLAG
52702 if test "$ol_enable_shell" != no ; then
52703 if test "$ol_link_threads" != no ; then
52704 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52705 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52708 BUILD_SHELL=$ol_enable_shell
52709 if test "$ol_enable_shell" = mod ; then
52710 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52711 MFLAG=SLAPD_MOD_DYNAMIC
52713 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52714 MFLAG=SLAPD_MOD_STATIC
52717 cat >>confdefs.h <<_ACEOF
52718 #define SLAPD_SHELL $MFLAG
52723 if test "$ol_link_sql" != no ; then
52725 BUILD_SQL=$ol_enable_sql
52726 if test "$ol_enable_sql" = mod; then
52727 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52728 MFLAG=SLAPD_MOD_DYNAMIC
52730 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52731 MFLAG=SLAPD_MOD_STATIC
52734 cat >>confdefs.h <<_ACEOF
52735 #define SLAPD_SQL $MFLAG
52740 if test "$ol_enable_accesslog" != no ; then
52741 BUILD_ACCESSLOG=$ol_enable_accesslog
52742 if test "$ol_enable_accesslog" = mod ; then
52743 MFLAG=SLAPD_MOD_DYNAMIC
52744 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52746 MFLAG=SLAPD_MOD_STATIC
52747 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52750 cat >>confdefs.h <<_ACEOF
52751 #define SLAPD_OVER_ACCESSLOG $MFLAG
52756 if test "$ol_enable_denyop" != no ; then
52757 BUILD_DENYOP=$ol_enable_denyop
52758 if test "$ol_enable_denyop" = mod ; then
52759 MFLAG=SLAPD_MOD_DYNAMIC
52760 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52762 MFLAG=SLAPD_MOD_STATIC
52763 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52766 cat >>confdefs.h <<_ACEOF
52767 #define SLAPD_OVER_DENYOP $MFLAG
52772 if test "$ol_enable_dyngroup" != no ; then
52773 BUILD_DYNGROUP=$ol_enable_dyngroup
52774 if test "$ol_enable_dyngroup" = mod ; then
52775 MFLAG=SLAPD_MOD_DYNAMIC
52776 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52778 MFLAG=SLAPD_MOD_STATIC
52779 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52782 cat >>confdefs.h <<_ACEOF
52783 #define SLAPD_OVER_DYNGROUP $MFLAG
52788 if test "$ol_enable_dynlist" != no ; then
52789 BUILD_DYNLIST=$ol_enable_dynlist
52790 if test "$ol_enable_dynlist" = mod ; then
52791 MFLAG=SLAPD_MOD_DYNAMIC
52792 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52794 MFLAG=SLAPD_MOD_STATIC
52795 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52798 cat >>confdefs.h <<_ACEOF
52799 #define SLAPD_OVER_DYNLIST $MFLAG
52804 if test "$ol_enable_glue" != no ; then
52805 BUILD_GLUE=$ol_enable_glue
52806 if test "$ol_enable_glue" = mod ; then
52807 MFLAG=SLAPD_MOD_DYNAMIC
52808 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52810 MFLAG=SLAPD_MOD_STATIC
52811 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52814 cat >>confdefs.h <<_ACEOF
52815 #define SLAPD_OVER_GLUE $MFLAG
52820 if test "$ol_enable_lastmod" != no ; then
52821 BUILD_LASTMOD=$ol_enable_lastmod
52822 if test "$ol_enable_lastmod" = mod ; then
52823 MFLAG=SLAPD_MOD_DYNAMIC
52824 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52826 MFLAG=SLAPD_MOD_STATIC
52827 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52830 cat >>confdefs.h <<_ACEOF
52831 #define SLAPD_OVER_LASTMOD $MFLAG
52836 if test "$ol_enable_ppolicy" != no ; then
52837 BUILD_PPOLICY=$ol_enable_ppolicy
52838 if test "$ol_enable_ppolicy" = mod ; then
52839 MFLAG=SLAPD_MOD_DYNAMIC
52840 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52842 MFLAG=SLAPD_MOD_STATIC
52843 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52846 cat >>confdefs.h <<_ACEOF
52847 #define SLAPD_OVER_PPOLICY $MFLAG
52852 if test "$ol_enable_proxycache" != no ; then
52853 BUILD_PROXYCACHE=$ol_enable_proxycache
52854 if test "$ol_enable_proxycache" = mod ; then
52855 MFLAG=SLAPD_MOD_DYNAMIC
52856 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52858 MFLAG=SLAPD_MOD_STATIC
52859 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52862 cat >>confdefs.h <<_ACEOF
52863 #define SLAPD_OVER_PROXYCACHE $MFLAG
52868 if test "$ol_enable_refint" != no ; then
52869 BUILD_REFINT=$ol_enable_refint
52870 if test "$ol_enable_refint" = mod ; then
52871 MFLAG=SLAPD_MOD_DYNAMIC
52872 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52874 MFLAG=SLAPD_MOD_STATIC
52875 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52878 cat >>confdefs.h <<_ACEOF
52879 #define SLAPD_OVER_REFINT $MFLAG
52884 if test "$ol_enable_retcode" != no ; then
52885 BUILD_RETCODE=$ol_enable_retcode
52886 if test "$ol_enable_retcode" = mod ; then
52887 MFLAG=SLAPD_MOD_DYNAMIC
52888 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52890 MFLAG=SLAPD_MOD_STATIC
52891 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52894 cat >>confdefs.h <<_ACEOF
52895 #define SLAPD_OVER_RETCODE $MFLAG
52900 if test "$ol_enable_rwm" != no ; then
52902 BUILD_RWM=$ol_enable_rwm
52903 if test "$ol_enable_rwm" = mod ; then
52904 MFLAG=SLAPD_MOD_DYNAMIC
52905 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52907 MFLAG=SLAPD_MOD_STATIC
52908 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52911 cat >>confdefs.h <<_ACEOF
52912 #define SLAPD_OVER_RWM $MFLAG
52917 if test "$ol_enable_syncprov" != no ; then
52918 BUILD_SYNCPROV=$ol_enable_syncprov
52919 if test "$ol_enable_syncprov" = mod ; then
52920 MFLAG=SLAPD_MOD_DYNAMIC
52921 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52923 MFLAG=SLAPD_MOD_STATIC
52924 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52927 cat >>confdefs.h <<_ACEOF
52928 #define SLAPD_OVER_SYNCPROV $MFLAG
52933 if test "$ol_enable_translucent" != no ; then
52934 BUILD_TRANSLUCENT=$ol_enable_translucent
52935 if test "$ol_enable_translucent" = mod ; then
52936 MFLAG=SLAPD_MOD_DYNAMIC
52937 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52939 MFLAG=SLAPD_MOD_STATIC
52940 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52943 cat >>confdefs.h <<_ACEOF
52944 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52949 if test "$ol_enable_unique" != no ; then
52950 BUILD_UNIQUE=$ol_enable_unique
52951 if test "$ol_enable_unique" = mod ; then
52952 MFLAG=SLAPD_MOD_DYNAMIC
52953 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52955 MFLAG=SLAPD_MOD_STATIC
52956 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52959 cat >>confdefs.h <<_ACEOF
52960 #define SLAPD_OVER_UNIQUE $MFLAG
52965 if test "$ol_enable_valsort" != no ; then
52966 BUILD_VALSORT=$ol_enable_valsort
52967 if test "$ol_enable_valsort" = mod ; then
52968 MFLAG=SLAPD_MOD_DYNAMIC
52969 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
52971 MFLAG=SLAPD_MOD_STATIC
52972 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
52975 cat >>confdefs.h <<_ACEOF
52976 #define SLAPD_OVER_VALSORT $MFLAG
52981 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52982 $BUILD_SLAPD = yes ; then
52986 if test "$ol_enable_rewrite" != no ; then
52988 cat >>confdefs.h <<\_ACEOF
52989 #define ENABLE_REWRITE 1
52995 if test "$ol_enable_slapi" != no ; then
52997 cat >>confdefs.h <<\_ACEOF
52998 #define ENABLE_SLAPI 1
53002 SLAPD_SLAPI_DEPEND=libslapi.a
53007 if test "$ac_cv_mingw32" = yes ; then
53009 SLAPD_MODULES_LDFLAGS=
53093 # Check whether --with-xxinstall or --without-xxinstall was given.
53094 if test "${with_xxinstall+set}" = set; then
53095 withval="$with_xxinstall"
53100 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"
53103 ac_config_commands="$ac_config_commands default"
53107 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53108 # Let make expand exec_prefix.
53109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53111 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53112 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53113 # trailing colons and then remove the whole line if VPATH becomes empty
53114 # (actually we leave an empty line to preserve line numbers).
53115 if test "x$srcdir" = x.; then
53116 ac_vpsub='/^[ ]*VPATH[ ]*=/{
53117 s/:*\$(srcdir):*/:/;
53118 s/:*\${srcdir}:*/:/;
53120 s/^\([^=]*=[ ]*\):*/\1/;
53126 DEFS=-DHAVE_CONFIG_H
53130 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53131 # 1. Remove the extension, and $U if already installed.
53132 ac_i=`echo "$ac_i" |
53133 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53135 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53136 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53138 LIBOBJS=$ac_libobjs
53140 LTLIBOBJS=$ac_ltlibobjs
53143 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53144 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53145 Usually this means the macro was only invoked conditionally." >&5
53146 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53147 Usually this means the macro was only invoked conditionally." >&2;}
53148 { (exit 1); exit 1; }; }
53150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53151 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53152 Usually this means the macro was only invoked conditionally." >&5
53153 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53154 Usually this means the macro was only invoked conditionally." >&2;}
53155 { (exit 1); exit 1; }; }
53157 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53158 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53159 Usually this means the macro was only invoked conditionally." >&5
53160 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53161 Usually this means the macro was only invoked conditionally." >&2;}
53162 { (exit 1); exit 1; }; }
53164 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53165 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53166 Usually this means the macro was only invoked conditionally." >&5
53167 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53168 Usually this means the macro was only invoked conditionally." >&2;}
53169 { (exit 1); exit 1; }; }
53172 : ${CONFIG_STATUS=./config.status}
53173 ac_clean_files_save=$ac_clean_files
53174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53175 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53176 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53177 cat >$CONFIG_STATUS <<_ACEOF
53179 # Generated by $as_me.
53180 # Run this file to recreate the current configuration.
53181 # Compiler output produced by configure, useful for debugging
53182 # configure, is in config.log if it exists.
53185 ac_cs_recheck=false
53187 SHELL=\${CONFIG_SHELL-$SHELL}
53190 cat >>$CONFIG_STATUS <<\_ACEOF
53191 ## --------------------- ##
53192 ## M4sh Initialization. ##
53193 ## --------------------- ##
53195 # Be Bourne compatible
53196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53199 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53200 # is contrary to our usage. Disable this feature.
53201 alias -g '${1+"$@"}'='"$@"'
53202 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53205 DUALCASE=1; export DUALCASE # for MKS sh
53207 # Support unset when possible.
53208 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53215 # Work around bugs in pre-3.0 UWIN ksh.
53216 $as_unset ENV MAIL MAILPATH
53223 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53224 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53225 LC_TELEPHONE LC_TIME
53227 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53228 eval $as_var=C; export $as_var
53234 # Required to use basename.
53235 if expr a : '\(a\)' >/dev/null 2>&1; then
53241 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53242 as_basename=basename
53248 # Name of the executable.
53249 as_me=`$as_basename "$0" ||
53250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53251 X"$0" : 'X\(//\)$' \| \
53252 X"$0" : 'X\(/\)$' \| \
53253 . : '\(.\)' 2>/dev/null ||
53255 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53256 /^X\/\(\/\/\)$/{ s//\1/; q; }
53257 /^X\/\(\/\).*/{ s//\1/; q; }
53261 # PATH needs CR, and LINENO needs CR and PATH.
53262 # Avoid depending upon Character Ranges.
53263 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53264 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53265 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53266 as_cr_digits='0123456789'
53267 as_cr_alnum=$as_cr_Letters$as_cr_digits
53269 # The user is always right.
53270 if test "${PATH_SEPARATOR+set}" != set; then
53271 echo "#! /bin/sh" >conf$$.sh
53272 echo "exit 0" >>conf$$.sh
53274 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53283 as_lineno_1=$LINENO
53284 as_lineno_2=$LINENO
53285 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53286 test "x$as_lineno_1" != "x$as_lineno_2" &&
53287 test "x$as_lineno_3" = "x$as_lineno_2" || {
53288 # Find who we are. Look in the path if we contain no path at all
53291 *[\\/]* ) as_myself=$0 ;;
53292 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53293 for as_dir in $PATH
53296 test -z "$as_dir" && as_dir=.
53297 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53302 # We did not find ourselves, most probably we were run as `sh COMMAND'
53303 # in which case we are not to be found in the path.
53304 if test "x$as_myself" = x; then
53307 if test ! -f "$as_myself"; then
53308 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53309 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53310 { (exit 1); exit 1; }; }
53312 case $CONFIG_SHELL in
53314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53315 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53318 test -z "$as_dir" && as_dir=.
53319 for as_base in sh bash ksh sh5; do
53322 if ("$as_dir/$as_base" -c '
53323 as_lineno_1=$LINENO
53324 as_lineno_2=$LINENO
53325 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53326 test "x$as_lineno_1" != "x$as_lineno_2" &&
53327 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
53328 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53329 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53330 CONFIG_SHELL=$as_dir/$as_base
53331 export CONFIG_SHELL
53332 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53340 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53341 # uniformly replaced by the line number. The first 'sed' inserts a
53342 # line-number line before each line; the second 'sed' does the real
53343 # work. The second script uses 'N' to pair each line-number line
53344 # with the numbered line, and appends trailing '-' during
53345 # substitution so that $LINENO is not a special case at line end.
53346 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53347 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
53348 sed '=' <$as_myself |
53353 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53356 s,^['$as_cr_digits']*\n,,
53357 ' >$as_me.lineno &&
53358 chmod +x $as_me.lineno ||
53359 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53360 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53361 { (exit 1); exit 1; }; }
53363 # Don't try to exec as it changes $[0], causing all sort of problems
53364 # (the dirname of $[0] is not the place where we might find the
53365 # original and so on. Autoconf is especially sensible to this).
53367 # Exit status is that of the last command.
53372 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53373 *c*,-n*) ECHO_N= ECHO_C='
53375 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53376 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
53379 if expr a : '\(a\)' >/dev/null 2>&1; then
53385 rm -f conf$$ conf$$.exe conf$$.file
53387 if ln -s conf$$.file conf$$ 2>/dev/null; then
53388 # We could just check for DJGPP; but this test a) works b) is more generic
53389 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53390 if test -f conf$$.exe; then
53391 # Don't use ln at all; we don't have any links
53396 elif ln conf$$.file conf$$ 2>/dev/null; then
53401 rm -f conf$$ conf$$.exe conf$$.file
53403 if mkdir -p . 2>/dev/null; then
53406 test -d ./-p && rmdir ./-p
53410 as_executable_p="test -f"
53412 # Sed expression to map a string onto a valid CPP name.
53413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53415 # Sed expression to map a string onto a valid variable name.
53416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53420 # We need space, tab and new line, in precisely that order.
53430 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53431 # report actual input values of CONFIG_FILES etc. instead of their
53432 # values after options handling. Logging --version etc. is OK.
53436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53437 ## Running $as_me. ##
53442 This file was extended by $as_me, which was
53443 generated by GNU Autoconf 2.59. Invocation command line was
53445 CONFIG_FILES = $CONFIG_FILES
53446 CONFIG_HEADERS = $CONFIG_HEADERS
53447 CONFIG_LINKS = $CONFIG_LINKS
53448 CONFIG_COMMANDS = $CONFIG_COMMANDS
53452 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53456 # Files that config.status was made for.
53457 if test -n "$ac_config_files"; then
53458 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53461 if test -n "$ac_config_headers"; then
53462 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53465 if test -n "$ac_config_links"; then
53466 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53469 if test -n "$ac_config_commands"; then
53470 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53473 cat >>$CONFIG_STATUS <<\_ACEOF
53476 \`$as_me' instantiates files from templates according to the
53477 current configuration.
53479 Usage: $0 [OPTIONS] [FILE]...
53481 -h, --help print this help, then exit
53482 -V, --version print version number, then exit
53483 -q, --quiet do not print progress messages
53484 -d, --debug don't remove temporary files
53485 --recheck update $as_me by reconfiguring in the same conditions
53486 --file=FILE[:TEMPLATE]
53487 instantiate the configuration file FILE
53488 --header=FILE[:TEMPLATE]
53489 instantiate the configuration header FILE
53491 Configuration files:
53494 Configuration headers:
53497 Configuration commands:
53500 Report bugs to <bug-autoconf@gnu.org>."
53503 cat >>$CONFIG_STATUS <<_ACEOF
53506 configured by $0, generated by GNU Autoconf 2.59,
53507 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53509 Copyright (C) 2003 Free Software Foundation, Inc.
53510 This config.status script is free software; the Free Software Foundation
53511 gives unlimited permission to copy, distribute and modify it."
53516 cat >>$CONFIG_STATUS <<\_ACEOF
53517 # If no file are specified by the user, then we need to provide default
53518 # value. By we need to know if files were specified by the user.
53524 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53525 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53533 *) # This is not an option, so the user has probably given explicit
53536 ac_need_defaults=false;;
53540 # Handling of the options.
53542 cat >>$CONFIG_STATUS <<\_ACEOF
53543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53545 --version | --vers* | -V )
53546 echo "$ac_cs_version"; exit 0 ;;
53548 # Conflict between --help and --header
53549 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53550 Try \`$0 --help' for more information." >&5
53551 echo "$as_me: error: ambiguous option: $1
53552 Try \`$0 --help' for more information." >&2;}
53553 { (exit 1); exit 1; }; };;
53554 --help | --hel | -h )
53555 echo "$ac_cs_usage"; exit 0 ;;
53556 --debug | --d* | -d )
53558 --file | --fil | --fi | --f )
53560 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53561 ac_need_defaults=false;;
53562 --header | --heade | --head | --hea )
53564 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53565 ac_need_defaults=false;;
53566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53567 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53570 # This is an error.
53571 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53572 Try \`$0 --help' for more information." >&5
53573 echo "$as_me: error: unrecognized option: $1
53574 Try \`$0 --help' for more information." >&2;}
53575 { (exit 1); exit 1; }; } ;;
53577 *) ac_config_targets="$ac_config_targets $1" ;;
53583 ac_configure_extra_args=
53585 if $ac_cs_silent; then
53587 ac_configure_extra_args="$ac_configure_extra_args --silent"
53591 cat >>$CONFIG_STATUS <<_ACEOF
53592 if \$ac_cs_recheck; then
53593 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53594 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53599 cat >>$CONFIG_STATUS <<_ACEOF
53601 # INIT-COMMANDS section.
53604 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53605 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53611 cat >>$CONFIG_STATUS <<\_ACEOF
53612 for ac_config_target in $ac_config_targets
53614 case "$ac_config_target" in
53615 # Handling of arguments.
53616 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53617 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53618 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53619 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53620 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53621 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53622 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53623 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53624 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53625 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53626 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53627 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53628 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53629 "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" ;;
53630 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53631 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53632 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53633 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53634 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53635 "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" ;;
53636 "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" ;;
53637 "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" ;;
53638 "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" ;;
53639 "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" ;;
53640 "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" ;;
53641 "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" ;;
53642 "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" ;;
53643 "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" ;;
53644 "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" ;;
53645 "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" ;;
53646 "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" ;;
53647 "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" ;;
53648 "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" ;;
53649 "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" ;;
53650 "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" ;;
53651 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53652 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53653 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53654 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53655 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53656 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53657 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53658 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53659 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53660 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53661 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53662 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53663 { (exit 1); exit 1; }; };;
53667 # If the user did not use the arguments to specify the items to instantiate,
53668 # then the envvar interface is used. Set only those that are not.
53669 # We use the long form for the default assignment because of an extremely
53670 # bizarre bug on SunOS 4.1.3.
53671 if $ac_need_defaults; then
53672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53677 # Have a temporary directory for convenience. Make it in the build tree
53678 # simply because there is no reason to put it here, and in addition,
53679 # creating and moving files from /tmp can sometimes cause problems.
53680 # Create a temporary directory, and hook for its removal unless debugging.
53683 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53684 trap '{ (exit 1); exit 1; }' 1 2 13 15
53687 # Create a (secure) tmp directory for tmp files.
53690 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53691 test -n "$tmp" && test -d "$tmp"
53694 tmp=./confstat$$-$RANDOM
53695 (umask 077 && mkdir $tmp)
53698 echo "$me: cannot create a temporary directory in ." >&2
53699 { (exit 1); exit 1; }
53704 cat >>$CONFIG_STATUS <<_ACEOF
53707 # CONFIG_FILES section.
53710 # No need to generate the scripts if there are no CONFIG_FILES.
53711 # This happens for instance when ./config.status config.h
53712 if test -n "\$CONFIG_FILES"; then
53713 # Protect against being on the right side of a sed subst in config.status.
53714 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53715 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53716 s,@SHELL@,$SHELL,;t t
53717 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53718 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53719 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53720 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53721 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53722 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53723 s,@exec_prefix@,$exec_prefix,;t t
53724 s,@prefix@,$prefix,;t t
53725 s,@program_transform_name@,$program_transform_name,;t t
53726 s,@bindir@,$bindir,;t t
53727 s,@sbindir@,$sbindir,;t t
53728 s,@libexecdir@,$libexecdir,;t t
53729 s,@datadir@,$datadir,;t t
53730 s,@sysconfdir@,$sysconfdir,;t t
53731 s,@sharedstatedir@,$sharedstatedir,;t t
53732 s,@localstatedir@,$localstatedir,;t t
53733 s,@libdir@,$libdir,;t t
53734 s,@includedir@,$includedir,;t t
53735 s,@oldincludedir@,$oldincludedir,;t t
53736 s,@infodir@,$infodir,;t t
53737 s,@mandir@,$mandir,;t t
53738 s,@build_alias@,$build_alias,;t t
53739 s,@host_alias@,$host_alias,;t t
53740 s,@target_alias@,$target_alias,;t t
53741 s,@DEFS@,$DEFS,;t t
53742 s,@ECHO_C@,$ECHO_C,;t t
53743 s,@ECHO_N@,$ECHO_N,;t t
53744 s,@ECHO_T@,$ECHO_T,;t t
53745 s,@LIBS@,$LIBS,;t t
53746 s,@build@,$build,;t t
53747 s,@build_cpu@,$build_cpu,;t t
53748 s,@build_vendor@,$build_vendor,;t t
53749 s,@build_os@,$build_os,;t t
53750 s,@host@,$host,;t t
53751 s,@host_cpu@,$host_cpu,;t t
53752 s,@host_vendor@,$host_vendor,;t t
53753 s,@host_os@,$host_os,;t t
53754 s,@target@,$target,;t t
53755 s,@target_cpu@,$target_cpu,;t t
53756 s,@target_vendor@,$target_vendor,;t t
53757 s,@target_os@,$target_os,;t t
53758 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53759 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53760 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53761 s,@CYGPATH_W@,$CYGPATH_W,;t t
53762 s,@PACKAGE@,$PACKAGE,;t t
53763 s,@VERSION@,$VERSION,;t t
53764 s,@ACLOCAL@,$ACLOCAL,;t t
53765 s,@AUTOCONF@,$AUTOCONF,;t t
53766 s,@AUTOMAKE@,$AUTOMAKE,;t t
53767 s,@AUTOHEADER@,$AUTOHEADER,;t t
53768 s,@MAKEINFO@,$MAKEINFO,;t t
53769 s,@install_sh@,$install_sh,;t t
53770 s,@STRIP@,$STRIP,;t t
53771 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53772 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53773 s,@mkdir_p@,$mkdir_p,;t t
53775 s,@SET_MAKE@,$SET_MAKE,;t t
53776 s,@am__leading_dot@,$am__leading_dot,;t t
53777 s,@AMTAR@,$AMTAR,;t t
53778 s,@am__tar@,$am__tar,;t t
53779 s,@am__untar@,$am__untar,;t t
53780 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53781 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53782 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53783 s,@top_builddir@,$top_builddir,;t t
53784 s,@ldap_subdir@,$ldap_subdir,;t t
53787 s,@CFLAGS@,$CFLAGS,;t t
53788 s,@LDFLAGS@,$LDFLAGS,;t t
53789 s,@CPPFLAGS@,$CPPFLAGS,;t t
53790 s,@ac_ct_CC@,$ac_ct_CC,;t t
53791 s,@EXEEXT@,$EXEEXT,;t t
53792 s,@OBJEXT@,$OBJEXT,;t t
53793 s,@DEPDIR@,$DEPDIR,;t t
53794 s,@am__include@,$am__include,;t t
53795 s,@am__quote@,$am__quote,;t t
53796 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53797 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53798 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53799 s,@CCDEPMODE@,$CCDEPMODE,;t t
53800 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53801 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53802 s,@EGREP@,$EGREP,;t t
53803 s,@LN_S@,$LN_S,;t t
53804 s,@ECHO@,$ECHO,;t t
53805 s,@ac_ct_AR@,$ac_ct_AR,;t t
53806 s,@RANLIB@,$RANLIB,;t t
53807 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53808 s,@DLLTOOL@,$DLLTOOL,;t t
53809 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53811 s,@ac_ct_AS@,$ac_ct_AS,;t t
53812 s,@OBJDUMP@,$OBJDUMP,;t t
53813 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53816 s,@CXXFLAGS@,$CXXFLAGS,;t t
53817 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53818 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53819 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53820 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53821 s,@CXXCPP@,$CXXCPP,;t t
53823 s,@FFLAGS@,$FFLAGS,;t t
53824 s,@ac_ct_F77@,$ac_ct_F77,;t t
53825 s,@LIBTOOL@,$LIBTOOL,;t t
53826 s,@PERLBIN@,$PERLBIN,;t t
53827 s,@OL_MKDEP@,$OL_MKDEP,;t t
53828 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53829 s,@LTSTATIC@,$LTSTATIC,;t t
53830 s,@LIBOBJS@,$LIBOBJS,;t t
53831 s,@LIBSRCS@,$LIBSRCS,;t t
53832 s,@PLAT@,$PLAT,;t t
53833 s,@WITH_SASL@,$WITH_SASL,;t t
53834 s,@WITH_TLS@,$WITH_TLS,;t t
53835 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53836 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53837 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53838 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53839 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53840 s,@BUILD_BDB@,$BUILD_BDB,;t t
53841 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53842 s,@BUILD_HDB@,$BUILD_HDB,;t t
53843 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53844 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53845 s,@BUILD_META@,$BUILD_META,;t t
53846 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53847 s,@BUILD_NULL@,$BUILD_NULL,;t t
53848 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53849 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53850 s,@BUILD_PERL@,$BUILD_PERL,;t t
53851 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53852 s,@BUILD_SQL@,$BUILD_SQL,;t t
53853 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53854 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53855 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53856 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53857 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53858 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53859 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53860 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53861 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53862 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53863 s,@BUILD_RWM@,$BUILD_RWM,;t t
53864 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53865 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53866 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53867 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
53868 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53869 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53870 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53871 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53872 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53873 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53874 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53875 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53876 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53877 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53878 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53879 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53880 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53881 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53882 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53883 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53884 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53885 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53886 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53887 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53888 s,@SASL_LIBS@,$SASL_LIBS,;t t
53889 s,@TLS_LIBS@,$TLS_LIBS,;t t
53890 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53891 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53892 s,@LIBSLAPI@,$LIBSLAPI,;t t
53893 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53894 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53895 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53896 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53897 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53898 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53899 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53900 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53905 cat >>$CONFIG_STATUS <<\_ACEOF
53906 # Split the substitutions into bite-sized pieces for seds with
53907 # small command number limits, like on Digital OSF/1 and HP-UX.
53908 ac_max_sed_lines=48
53909 ac_sed_frag=1 # Number of current file.
53910 ac_beg=1 # First line for current file.
53911 ac_end=$ac_max_sed_lines # Line after last line for current file.
53914 while $ac_more_lines; do
53915 if test $ac_beg -gt 1; then
53916 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53918 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53920 if test ! -s $tmp/subs.frag; then
53921 ac_more_lines=false
53923 # The purpose of the label and of the branching condition is to
53924 # speed up the sed processing (if there are no `@' at all, there
53925 # is no need to browse any of the substitutions).
53926 # These are the two extra sed commands mentioned above.
53928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53929 if test -z "$ac_sed_cmds"; then
53930 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53932 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53934 ac_sed_frag=`expr $ac_sed_frag + 1`
53936 ac_end=`expr $ac_end + $ac_max_sed_lines`
53939 if test -z "$ac_sed_cmds"; then
53942 fi # test -n "$CONFIG_FILES"
53945 cat >>$CONFIG_STATUS <<\_ACEOF
53946 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53949 - | *:- | *:-:* ) # input from stdin
53951 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53953 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53955 * ) ac_file_in=$ac_file.in ;;
53958 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53959 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53961 X"$ac_file" : 'X\(//\)[^/]' \| \
53962 X"$ac_file" : 'X\(//\)$' \| \
53963 X"$ac_file" : 'X\(/\)' \| \
53964 . : '\(.\)' 2>/dev/null ||
53966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53968 /^X\(\/\/\)$/{ s//\1/; q; }
53969 /^X\(\/\).*/{ s//\1/; q; }
53971 { if $as_mkdir_p; then
53976 while test ! -d "$as_dir"; do
53977 as_dirs="$as_dir $as_dirs"
53978 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53980 X"$as_dir" : 'X\(//\)[^/]' \| \
53981 X"$as_dir" : 'X\(//\)$' \| \
53982 X"$as_dir" : 'X\(/\)' \| \
53983 . : '\(.\)' 2>/dev/null ||
53985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53987 /^X\(\/\/\)$/{ s//\1/; q; }
53988 /^X\(\/\).*/{ s//\1/; q; }
53991 test ! -n "$as_dirs" || mkdir $as_dirs
53992 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53993 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53994 { (exit 1); exit 1; }; }; }
53998 if test "$ac_dir" != .; then
53999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54000 # A "../" for each directory in $ac_dir_suffix.
54001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54003 ac_dir_suffix= ac_top_builddir=
54007 .) # No --srcdir option. We are building in place.
54009 if test -z "$ac_top_builddir"; then
54012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54014 [\\/]* | ?:[\\/]* ) # Absolute path.
54015 ac_srcdir=$srcdir$ac_dir_suffix;
54016 ac_top_srcdir=$srcdir ;;
54017 *) # Relative path.
54018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54019 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54022 # Do not use `cd foo && pwd` to compute absolute paths, because
54023 # the directories may not exist.
54025 .) ac_abs_builddir="$ac_dir";;
54028 .) ac_abs_builddir=`pwd`;;
54029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54030 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54033 case $ac_abs_builddir in
54034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54036 case ${ac_top_builddir}. in
54037 .) ac_abs_top_builddir=$ac_abs_builddir;;
54038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54042 case $ac_abs_builddir in
54043 .) ac_abs_srcdir=$ac_srcdir;;
54046 .) ac_abs_srcdir=$ac_abs_builddir;;
54047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54051 case $ac_abs_builddir in
54052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54054 case $ac_top_srcdir in
54055 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54064 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54067 if test x"$ac_file" != x-; then
54068 { echo "$as_me:$LINENO: creating $ac_file" >&5
54069 echo "$as_me: creating $ac_file" >&6;}
54072 # Let's still pretend it is `configure' which instantiates (i.e., don't
54073 # use $as_me), people would be surprised to read:
54074 # /* config.h. Generated by config.status. */
54075 if test x"$ac_file" = x-; then
54078 configure_input="$ac_file. "
54080 configure_input=$configure_input"Generated from `echo $ac_file_in |
54081 sed 's,.*/,,'` by configure."
54083 # First look for the input files in the build tree, otherwise in the
54085 ac_file_inputs=`IFS=:
54086 for f in $ac_file_in; do
54088 -) echo $tmp/stdin ;;
54090 # Absolute (can't be DOS-style, as IFS=:)
54091 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54092 echo "$as_me: error: cannot find input file: $f" >&2;}
54093 { (exit 1); exit 1; }; }
54096 if test -f "$f"; then
54099 elif test -f "$srcdir/$f"; then
54104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54105 echo "$as_me: error: cannot find input file: $f" >&2;}
54106 { (exit 1); exit 1; }; }
54109 done` || { (exit 1); exit 1; }
54111 cat >>$CONFIG_STATUS <<_ACEOF
54115 cat >>$CONFIG_STATUS <<\_ACEOF
54117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54118 s,@configure_input@,$configure_input,;t t
54119 s,@srcdir@,$ac_srcdir,;t t
54120 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54121 s,@top_srcdir@,$ac_top_srcdir,;t t
54122 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54123 s,@builddir@,$ac_builddir,;t t
54124 s,@abs_builddir@,$ac_abs_builddir,;t t
54125 s,@top_builddir@,$ac_top_builddir,;t t
54126 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54127 s,@INSTALL@,$ac_INSTALL,;t t
54128 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54130 if test x"$ac_file" != x-; then
54131 mv $tmp/out $ac_file
54139 cat >>$CONFIG_STATUS <<\_ACEOF
54142 # CONFIG_HEADER section.
54145 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54146 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54148 # ac_d sets the value in "#define NAME VALUE" lines.
54149 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
54150 ac_dB='[ ].*$,\1#\2'
54153 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54154 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
54155 ac_uB='$,\1#\2define\3'
54159 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54162 - | *:- | *:-:* ) # input from stdin
54164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54168 * ) ac_file_in=$ac_file.in ;;
54171 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54172 echo "$as_me: creating $ac_file" >&6;}
54174 # First look for the input files in the build tree, otherwise in the
54176 ac_file_inputs=`IFS=:
54177 for f in $ac_file_in; do
54179 -) echo $tmp/stdin ;;
54181 # Absolute (can't be DOS-style, as IFS=:)
54182 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54183 echo "$as_me: error: cannot find input file: $f" >&2;}
54184 { (exit 1); exit 1; }; }
54185 # Do quote $f, to prevent DOS paths from being IFS'd.
54188 if test -f "$f"; then
54191 elif test -f "$srcdir/$f"; then
54196 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54197 echo "$as_me: error: cannot find input file: $f" >&2;}
54198 { (exit 1); exit 1; }; }
54201 done` || { (exit 1); exit 1; }
54202 # Remove the trailing spaces.
54203 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
54207 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54208 # `conftest.undefs', that substitutes the proper values into
54209 # config.h.in to produce config.h. The first handles `#define'
54210 # templates, and the second `#undef' templates.
54211 # And first: Protect against being on the right side of a sed subst in
54212 # config.status. Protect against being in an unquoted here document
54213 # in config.status.
54214 rm -f conftest.defines conftest.undefs
54215 # Using a here document instead of a string reduces the quoting nightmare.
54216 # Putting comments in sed scripts is not portable.
54218 # `end' is used to avoid that the second main sed command (meant for
54219 # 0-ary CPP macros) applies to n-ary macro definitions.
54220 # See the Autoconf documentation for `clear'.
54221 cat >confdef2sed.sed <<\_ACEOF
54226 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54228 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54231 # If some macros were called several times there might be several times
54232 # the same #defines, which is useless. Nevertheless, we may not want to
54233 # sort them, since we want the *last* AC-DEFINE to be honored.
54234 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54235 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54236 rm -f confdef2sed.sed
54238 # This sed command replaces #undef with comments. This is necessary, for
54239 # example, in the case of _POSIX_SOURCE, which is predefined and required
54240 # on some systems where configure will not decide to define it.
54241 cat >>conftest.undefs <<\_ACEOF
54242 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54245 # Break up conftest.defines because some shells have a limit on the size
54246 # of here documents, and old seds have small limits too (100 cmds).
54247 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54248 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54249 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54250 echo ' :' >>$CONFIG_STATUS
54251 rm -f conftest.tail
54252 while grep . conftest.defines >/dev/null
54254 # Write a limited-size here document to $tmp/defines.sed.
54255 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54256 # Speed up: don't consider the non `#define' lines.
54257 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
54258 # Work around the forget-to-reset-the-flag bug.
54259 echo 't clr' >>$CONFIG_STATUS
54260 echo ': clr' >>$CONFIG_STATUS
54261 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54263 sed -f $tmp/defines.sed $tmp/in >$tmp/out
54265 mv $tmp/out $tmp/in
54267 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54268 rm -f conftest.defines
54269 mv conftest.tail conftest.defines
54271 rm -f conftest.defines
54272 echo ' fi # grep' >>$CONFIG_STATUS
54273 echo >>$CONFIG_STATUS
54275 # Break up conftest.undefs because some shells have a limit on the size
54276 # of here documents, and old seds have small limits too (100 cmds).
54277 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
54278 rm -f conftest.tail
54279 while grep . conftest.undefs >/dev/null
54281 # Write a limited-size here document to $tmp/undefs.sed.
54282 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54283 # Speed up: don't consider the non `#undef'
54284 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
54285 # Work around the forget-to-reset-the-flag bug.
54286 echo 't clr' >>$CONFIG_STATUS
54287 echo ': clr' >>$CONFIG_STATUS
54288 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54290 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54292 mv $tmp/out $tmp/in
54294 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54295 rm -f conftest.undefs
54296 mv conftest.tail conftest.undefs
54298 rm -f conftest.undefs
54300 cat >>$CONFIG_STATUS <<\_ACEOF
54301 # Let's still pretend it is `configure' which instantiates (i.e., don't
54302 # use $as_me), people would be surprised to read:
54303 # /* config.h. Generated by config.status. */
54304 if test x"$ac_file" = x-; then
54305 echo "/* Generated by configure. */" >$tmp/config.h
54307 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
54309 cat $tmp/in >>$tmp/config.h
54311 if test x"$ac_file" != x-; then
54312 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54313 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54314 echo "$as_me: $ac_file is unchanged" >&6;}
54316 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54318 X"$ac_file" : 'X\(//\)[^/]' \| \
54319 X"$ac_file" : 'X\(//\)$' \| \
54320 X"$ac_file" : 'X\(/\)' \| \
54321 . : '\(.\)' 2>/dev/null ||
54323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54325 /^X\(\/\/\)$/{ s//\1/; q; }
54326 /^X\(\/\).*/{ s//\1/; q; }
54328 { if $as_mkdir_p; then
54333 while test ! -d "$as_dir"; do
54334 as_dirs="$as_dir $as_dirs"
54335 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54337 X"$as_dir" : 'X\(//\)[^/]' \| \
54338 X"$as_dir" : 'X\(//\)$' \| \
54339 X"$as_dir" : '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; }
54348 test ! -n "$as_dirs" || mkdir $as_dirs
54349 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54350 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54351 { (exit 1); exit 1; }; }; }
54354 mv $tmp/config.h $ac_file
54358 rm -f $tmp/config.h
54360 # Compute $ac_file's index in $config_headers.
54362 for _am_header in $config_headers :; do
54363 case $_am_header in
54364 $ac_file | $ac_file:* )
54367 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54370 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54371 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54372 X$ac_file : 'X\(//\)[^/]' \| \
54373 X$ac_file : 'X\(//\)$' \| \
54374 X$ac_file : 'X\(/\)' \| \
54375 . : '\(.\)' 2>/dev/null ||
54377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54379 /^X\(\/\/\)$/{ s//\1/; q; }
54380 /^X\(\/\).*/{ s//\1/; q; }
54381 s/.*/./; q'`/stamp-h$_am_stamp_count
54384 cat >>$CONFIG_STATUS <<\_ACEOF
54387 # CONFIG_COMMANDS section.
54389 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54390 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54391 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54392 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54393 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54394 X"$ac_dest" : 'X\(//\)[^/]' \| \
54395 X"$ac_dest" : 'X\(//\)$' \| \
54396 X"$ac_dest" : 'X\(/\)' \| \
54397 . : '\(.\)' 2>/dev/null ||
54399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54401 /^X\(\/\/\)$/{ s//\1/; q; }
54402 /^X\(\/\).*/{ s//\1/; q; }
54404 { if $as_mkdir_p; then
54409 while test ! -d "$as_dir"; do
54410 as_dirs="$as_dir $as_dirs"
54411 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54413 X"$as_dir" : 'X\(//\)[^/]' \| \
54414 X"$as_dir" : 'X\(//\)$' \| \
54415 X"$as_dir" : 'X\(/\)' \| \
54416 . : '\(.\)' 2>/dev/null ||
54418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54420 /^X\(\/\/\)$/{ s//\1/; q; }
54421 /^X\(\/\).*/{ s//\1/; q; }
54424 test ! -n "$as_dirs" || mkdir $as_dirs
54425 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54426 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54427 { (exit 1); exit 1; }; }; }
54431 if test "$ac_dir" != .; then
54432 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54433 # A "../" for each directory in $ac_dir_suffix.
54434 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54436 ac_dir_suffix= ac_top_builddir=
54440 .) # No --srcdir option. We are building in place.
54442 if test -z "$ac_top_builddir"; then
54445 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54447 [\\/]* | ?:[\\/]* ) # Absolute path.
54448 ac_srcdir=$srcdir$ac_dir_suffix;
54449 ac_top_srcdir=$srcdir ;;
54450 *) # Relative path.
54451 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54452 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54455 # Do not use `cd foo && pwd` to compute absolute paths, because
54456 # the directories may not exist.
54458 .) ac_abs_builddir="$ac_dir";;
54461 .) ac_abs_builddir=`pwd`;;
54462 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54463 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54466 case $ac_abs_builddir in
54467 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54469 case ${ac_top_builddir}. in
54470 .) ac_abs_top_builddir=$ac_abs_builddir;;
54471 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54472 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54475 case $ac_abs_builddir in
54476 .) ac_abs_srcdir=$ac_srcdir;;
54479 .) ac_abs_srcdir=$ac_abs_builddir;;
54480 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54481 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54484 case $ac_abs_builddir in
54485 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54487 case $ac_top_srcdir in
54488 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54489 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54490 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54495 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54496 echo "$as_me: executing $ac_dest commands" >&6;}
54498 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54499 # Strip MF so we end up with the name of the file.
54500 mf=`echo "$mf" | sed -e 's/:.*$//'`
54501 # Check whether this is an Automake generated Makefile or not.
54502 # We used to match only the files named `Makefile.in', but
54503 # some people rename them; so instead we look at the file content.
54504 # Grep'ing the first line is not enough: some people post-process
54505 # each Makefile.in and add a new line on top of each file to say so.
54506 # So let's grep whole file.
54507 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54508 dirpart=`(dirname "$mf") 2>/dev/null ||
54509 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54510 X"$mf" : 'X\(//\)[^/]' \| \
54511 X"$mf" : 'X\(//\)$' \| \
54512 X"$mf" : 'X\(/\)' \| \
54513 . : '\(.\)' 2>/dev/null ||
54515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54517 /^X\(\/\/\)$/{ s//\1/; q; }
54518 /^X\(\/\).*/{ s//\1/; q; }
54523 # Extract the definition of DEPDIR, am__include, and am__quote
54524 # from the Makefile without running `make'.
54525 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54526 test -z "$DEPDIR" && continue
54527 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54528 test -z "am__include" && continue
54529 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54530 # When using ansi2knr, U may be empty or an underscore; expand it
54531 U=`sed -n 's/^U = //p' < "$mf"`
54532 # Find all dependency output files, they are included files with
54533 # $(DEPDIR) in their names. We invoke sed twice because it is the
54534 # simplest approach to changing $(DEPDIR) to its actual value in the
54536 for file in `sed -n "
54537 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54538 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54539 # Make sure the directory exists.
54540 test -f "$dirpart/$file" && continue
54541 fdir=`(dirname "$file") 2>/dev/null ||
54542 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54543 X"$file" : 'X\(//\)[^/]' \| \
54544 X"$file" : 'X\(//\)$' \| \
54545 X"$file" : 'X\(/\)' \| \
54546 . : '\(.\)' 2>/dev/null ||
54548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54550 /^X\(\/\/\)$/{ s//\1/; q; }
54551 /^X\(\/\).*/{ s//\1/; q; }
54553 { if $as_mkdir_p; then
54554 mkdir -p $dirpart/$fdir
54556 as_dir=$dirpart/$fdir
54558 while test ! -d "$as_dir"; do
54559 as_dirs="$as_dir $as_dirs"
54560 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54562 X"$as_dir" : 'X\(//\)[^/]' \| \
54563 X"$as_dir" : 'X\(//\)$' \| \
54564 X"$as_dir" : 'X\(/\)' \| \
54565 . : '\(.\)' 2>/dev/null ||
54567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54569 /^X\(\/\/\)$/{ s//\1/; q; }
54570 /^X\(\/\).*/{ s//\1/; q; }
54573 test ! -n "$as_dirs" || mkdir $as_dirs
54574 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54575 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54576 { (exit 1); exit 1; }; }; }
54578 # echo "creating $dirpart/$file"
54579 echo '# dummy' > "$dirpart/$file"
54586 BACKENDSC="servers/slapd/backends.c"
54587 echo "Making $BACKENDSC"
54589 cat > $BACKENDSC << ENDX
54590 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54592 * Copyright 1998-2005 The OpenLDAP Foundation.
54593 * All rights reserved.
54595 * Redistribution and use in source and binary forms, with or without
54596 * modification, are permitted only as authorized by the OpenLDAP
54599 * A copy of this license is available in the file LICENSE in the
54600 * top-level directory of the distribution or, alternatively, at
54601 * <http://www.OpenLDAP.org/license.html>.
54603 /* This file is automatically generated by configure; please do not edit. */
54605 #include "portable.h"
54609 if test "${STATIC_BACKENDS}"; then
54610 for b in config ${STATIC_BACKENDS}; do
54611 bb=`echo "${b}" | sed -e 's/back-//'`
54612 cat >> $BACKENDSC << ENDX
54613 extern BI_init ${bb}_back_initialize;
54617 cat >> $BACKENDSC << ENDX
54619 BackendInfo slap_binfo[] = {
54622 for b in config ${STATIC_BACKENDS}; do
54623 bb=`echo "${b}" | sed -e 's/back-//'`
54624 echo " Add ${bb} ..."
54625 cat >> $BACKENDSC << ENDX
54626 { "${bb}", ${bb}_back_initialize },
54630 cat >> $BACKENDSC << ENDX
54634 /* end of generated file */
54638 echo Please run \"make depend\" to build dependencies
54644 cat >>$CONFIG_STATUS <<\_ACEOF
54646 { (exit 0); exit 0; }
54648 chmod +x $CONFIG_STATUS
54649 ac_clean_files=$ac_clean_files_save
54652 # configure is writing to config.log, and then calls config.status.
54653 # config.status does its own redirection, appending to config.log.
54654 # Unfortunately, on DOS this fails, as config.log is still kept open
54655 # by configure, so config.status won't be able to write to it; its
54656 # output is simply discarded. So we exec the FD to /dev/null,
54657 # effectively closing config.log, so it can be properly (re)opened and
54658 # appended to by config.status. When coming back to configure, we
54659 # need to make the FD available again.
54660 if test "$no_create" != yes; then
54662 ac_config_status_args=
54663 test "$silent" = yes &&
54664 ac_config_status_args="$ac_config_status_args --quiet"
54666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54669 # would make configure fail if this is the last instruction.
54670 $ac_cs_success || { (exit 1); exit 1; }