2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.591 2005/08/25 18:09:32 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
432 ac_unique_file="OpenLDAP"
433 ac_unique_file="build/version.sh"
434 ac_default_prefix=/usr/local
435 # Factoring default headers for most tests.
436 ac_includes_default="\
439 # include <sys/types.h>
442 # include <sys/stat.h>
453 # if !STDC_HEADERS && HAVE_MEMORY_H
459 # include <strings.h>
462 # include <inttypes.h>
472 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_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
2779 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2780 if test "${enable_xxslapbackends+set}" = set; then
2781 enableval="$enable_xxslapbackends"
2785 # OpenLDAP --enable-backends
2787 # Check whether --enable-backends or --disable-backends was given.
2788 if test "${enable_backends+set}" = set; then
2789 enableval="$enable_backends"
2792 for ol_val in no yes mod ; do
2793 if test "$enableval" = "$ol_val" ; then
2797 if test "$ol_arg" = "invalid" ; then
2798 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2799 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2800 { (exit 1); exit 1; }; }
2802 ol_enable_backends="$ol_arg"
2805 # end --enable-backends
2806 # OpenLDAP --enable-bdb
2808 # Check whether --enable-bdb or --disable-bdb was given.
2809 if test "${enable_bdb+set}" = set; then
2810 enableval="$enable_bdb"
2813 for ol_val in no yes mod ; do
2814 if test "$enableval" = "$ol_val" ; then
2818 if test "$ol_arg" = "invalid" ; then
2819 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2820 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2821 { (exit 1); exit 1; }; }
2823 ol_enable_bdb="$ol_arg"
2826 ol_enable_bdb=${ol_enable_backends:-yes}
2829 # OpenLDAP --enable-dnssrv
2831 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2832 if test "${enable_dnssrv+set}" = set; then
2833 enableval="$enable_dnssrv"
2836 for ol_val in no yes mod ; do
2837 if test "$enableval" = "$ol_val" ; then
2841 if test "$ol_arg" = "invalid" ; then
2842 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2843 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2844 { (exit 1); exit 1; }; }
2846 ol_enable_dnssrv="$ol_arg"
2849 ol_enable_dnssrv=${ol_enable_backends:-no}
2851 # end --enable-dnssrv
2852 # OpenLDAP --enable-hdb
2854 # Check whether --enable-hdb or --disable-hdb was given.
2855 if test "${enable_hdb+set}" = set; then
2856 enableval="$enable_hdb"
2859 for ol_val in no yes mod ; do
2860 if test "$enableval" = "$ol_val" ; then
2864 if test "$ol_arg" = "invalid" ; then
2865 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2866 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2867 { (exit 1); exit 1; }; }
2869 ol_enable_hdb="$ol_arg"
2872 ol_enable_hdb=${ol_enable_backends:-yes}
2875 # OpenLDAP --enable-ldap
2877 # Check whether --enable-ldap or --disable-ldap was given.
2878 if test "${enable_ldap+set}" = set; then
2879 enableval="$enable_ldap"
2882 for ol_val in no yes mod ; do
2883 if test "$enableval" = "$ol_val" ; then
2887 if test "$ol_arg" = "invalid" ; then
2888 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2889 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2890 { (exit 1); exit 1; }; }
2892 ol_enable_ldap="$ol_arg"
2895 ol_enable_ldap=${ol_enable_backends:-no}
2898 # OpenLDAP --enable-ldbm
2900 # Check whether --enable-ldbm or --disable-ldbm was given.
2901 if test "${enable_ldbm+set}" = set; then
2902 enableval="$enable_ldbm"
2905 for ol_val in no yes mod ; do
2906 if test "$enableval" = "$ol_val" ; then
2910 if test "$ol_arg" = "invalid" ; then
2911 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2912 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2913 { (exit 1); exit 1; }; }
2915 ol_enable_ldbm="$ol_arg"
2918 ol_enable_ldbm=${ol_enable_backends:-no}
2921 # OpenLDAP --enable-ldbm_api
2923 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2924 if test "${enable_ldbm_api+set}" = set; then
2925 enableval="$enable_ldbm_api"
2928 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2929 if test "$enableval" = "$ol_val" ; then
2933 if test "$ol_arg" = "invalid" ; then
2934 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2935 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2936 { (exit 1); exit 1; }; }
2938 ol_enable_ldbm_api="$ol_arg"
2941 ol_enable_ldbm_api=auto
2943 # end --enable-ldbm_api
2945 # OpenLDAP --enable-ldbm_type
2947 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2948 if test "${enable_ldbm_type+set}" = set; then
2949 enableval="$enable_ldbm_type"
2952 for ol_val in auto btree hash ; do
2953 if test "$enableval" = "$ol_val" ; then
2957 if test "$ol_arg" = "invalid" ; then
2958 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2959 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2960 { (exit 1); exit 1; }; }
2962 ol_enable_ldbm_type="$ol_arg"
2965 ol_enable_ldbm_type=auto
2967 # end --enable-ldbm_type
2969 # OpenLDAP --enable-meta
2971 # Check whether --enable-meta or --disable-meta was given.
2972 if test "${enable_meta+set}" = set; then
2973 enableval="$enable_meta"
2976 for ol_val in no yes mod ; do
2977 if test "$enableval" = "$ol_val" ; then
2981 if test "$ol_arg" = "invalid" ; then
2982 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2983 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2984 { (exit 1); exit 1; }; }
2986 ol_enable_meta="$ol_arg"
2989 ol_enable_meta=${ol_enable_backends:-no}
2992 # OpenLDAP --enable-monitor
2994 # Check whether --enable-monitor or --disable-monitor was given.
2995 if test "${enable_monitor+set}" = set; then
2996 enableval="$enable_monitor"
2999 for ol_val in no yes mod ; do
3000 if test "$enableval" = "$ol_val" ; then
3004 if test "$ol_arg" = "invalid" ; then
3005 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3006 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3007 { (exit 1); exit 1; }; }
3009 ol_enable_monitor="$ol_arg"
3012 ol_enable_monitor=${ol_enable_backends:-yes}
3014 # end --enable-monitor
3015 # OpenLDAP --enable-null
3017 # Check whether --enable-null or --disable-null was given.
3018 if test "${enable_null+set}" = set; then
3019 enableval="$enable_null"
3022 for ol_val in no yes mod ; do
3023 if test "$enableval" = "$ol_val" ; then
3027 if test "$ol_arg" = "invalid" ; then
3028 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3029 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3030 { (exit 1); exit 1; }; }
3032 ol_enable_null="$ol_arg"
3035 ol_enable_null=${ol_enable_backends:-no}
3038 # OpenLDAP --enable-passwd
3040 # Check whether --enable-passwd or --disable-passwd was given.
3041 if test "${enable_passwd+set}" = set; then
3042 enableval="$enable_passwd"
3045 for ol_val in no yes mod ; do
3046 if test "$enableval" = "$ol_val" ; then
3050 if test "$ol_arg" = "invalid" ; then
3051 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3052 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3053 { (exit 1); exit 1; }; }
3055 ol_enable_passwd="$ol_arg"
3058 ol_enable_passwd=${ol_enable_backends:-no}
3060 # end --enable-passwd
3061 # OpenLDAP --enable-perl
3063 # Check whether --enable-perl or --disable-perl was given.
3064 if test "${enable_perl+set}" = set; then
3065 enableval="$enable_perl"
3068 for ol_val in no yes mod ; do
3069 if test "$enableval" = "$ol_val" ; then
3073 if test "$ol_arg" = "invalid" ; then
3074 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3075 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3076 { (exit 1); exit 1; }; }
3078 ol_enable_perl="$ol_arg"
3081 ol_enable_perl=${ol_enable_backends:-no}
3084 # OpenLDAP --enable-relay
3086 # Check whether --enable-relay or --disable-relay was given.
3087 if test "${enable_relay+set}" = set; then
3088 enableval="$enable_relay"
3091 for ol_val in no yes mod ; do
3092 if test "$enableval" = "$ol_val" ; then
3096 if test "$ol_arg" = "invalid" ; then
3097 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3098 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3099 { (exit 1); exit 1; }; }
3101 ol_enable_relay="$ol_arg"
3104 ol_enable_relay=${ol_enable_backends:-yes}
3106 # end --enable-relay
3107 # OpenLDAP --enable-shell
3109 # Check whether --enable-shell or --disable-shell was given.
3110 if test "${enable_shell+set}" = set; then
3111 enableval="$enable_shell"
3114 for ol_val in no yes mod ; do
3115 if test "$enableval" = "$ol_val" ; then
3119 if test "$ol_arg" = "invalid" ; then
3120 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3121 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3122 { (exit 1); exit 1; }; }
3124 ol_enable_shell="$ol_arg"
3127 ol_enable_shell=${ol_enable_backends:-no}
3129 # end --enable-shell
3130 # OpenLDAP --enable-sql
3132 # Check whether --enable-sql or --disable-sql was given.
3133 if test "${enable_sql+set}" = set; then
3134 enableval="$enable_sql"
3137 for ol_val in no yes mod ; do
3138 if test "$enableval" = "$ol_val" ; then
3142 if test "$ol_arg" = "invalid" ; then
3143 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3144 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3145 { (exit 1); exit 1; }; }
3147 ol_enable_sql="$ol_arg"
3150 ol_enable_sql=${ol_enable_backends:-no}
3154 Overlays="accesslog \
3170 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3171 if test "${enable_xxslapoverlays+set}" = set; then
3172 enableval="$enable_xxslapoverlays"
3176 # OpenLDAP --enable-overlays
3178 # Check whether --enable-overlays or --disable-overlays was given.
3179 if test "${enable_overlays+set}" = set; then
3180 enableval="$enable_overlays"
3183 for ol_val in no yes mod ; do
3184 if test "$enableval" = "$ol_val" ; then
3188 if test "$ol_arg" = "invalid" ; then
3189 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3190 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3191 { (exit 1); exit 1; }; }
3193 ol_enable_overlays="$ol_arg"
3196 # end --enable-overlays
3197 # OpenLDAP --enable-accesslog
3199 # Check whether --enable-accesslog or --disable-accesslog was given.
3200 if test "${enable_accesslog+set}" = set; then
3201 enableval="$enable_accesslog"
3204 for ol_val in no yes mod ; do
3205 if test "$enableval" = "$ol_val" ; then
3209 if test "$ol_arg" = "invalid" ; then
3210 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3211 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3212 { (exit 1); exit 1; }; }
3214 ol_enable_accesslog="$ol_arg"
3217 ol_enable_accesslog=${ol_enable_overlays:-no}
3219 # end --enable-accesslog
3221 # OpenLDAP --enable-denyop
3223 # Check whether --enable-denyop or --disable-denyop was given.
3224 if test "${enable_denyop+set}" = set; then
3225 enableval="$enable_denyop"
3228 for ol_val in no yes mod ; do
3229 if test "$enableval" = "$ol_val" ; then
3233 if test "$ol_arg" = "invalid" ; then
3234 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3235 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3236 { (exit 1); exit 1; }; }
3238 ol_enable_denyop="$ol_arg"
3241 ol_enable_denyop=${ol_enable_overlays:-no}
3243 # end --enable-denyop
3245 # OpenLDAP --enable-dyngroup
3247 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3248 if test "${enable_dyngroup+set}" = set; then
3249 enableval="$enable_dyngroup"
3252 for ol_val in no yes mod ; do
3253 if test "$enableval" = "$ol_val" ; then
3257 if test "$ol_arg" = "invalid" ; then
3258 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3259 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3260 { (exit 1); exit 1; }; }
3262 ol_enable_dyngroup="$ol_arg"
3265 ol_enable_dyngroup=${ol_enable_overlays:-no}
3267 # end --enable-dyngroup
3269 # OpenLDAP --enable-dynlist
3271 # Check whether --enable-dynlist or --disable-dynlist was given.
3272 if test "${enable_dynlist+set}" = set; then
3273 enableval="$enable_dynlist"
3276 for ol_val in no yes mod ; do
3277 if test "$enableval" = "$ol_val" ; then
3281 if test "$ol_arg" = "invalid" ; then
3282 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3283 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3284 { (exit 1); exit 1; }; }
3286 ol_enable_dynlist="$ol_arg"
3289 ol_enable_dynlist=${ol_enable_overlays:-no}
3291 # end --enable-dynlist
3293 # OpenLDAP --enable-glue
3295 # Check whether --enable-glue or --disable-glue was given.
3296 if test "${enable_glue+set}" = set; then
3297 enableval="$enable_glue"
3300 for ol_val in no yes mod ; do
3301 if test "$enableval" = "$ol_val" ; then
3305 if test "$ol_arg" = "invalid" ; then
3306 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3307 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3308 { (exit 1); exit 1; }; }
3310 ol_enable_glue="$ol_arg"
3313 ol_enable_glue=${ol_enable_overlays:-yes}
3317 # OpenLDAP --enable-lastmod
3319 # Check whether --enable-lastmod or --disable-lastmod was given.
3320 if test "${enable_lastmod+set}" = set; then
3321 enableval="$enable_lastmod"
3324 for ol_val in no yes mod ; do
3325 if test "$enableval" = "$ol_val" ; then
3329 if test "$ol_arg" = "invalid" ; then
3330 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3331 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3332 { (exit 1); exit 1; }; }
3334 ol_enable_lastmod="$ol_arg"
3337 ol_enable_lastmod=${ol_enable_overlays:-no}
3339 # end --enable-lastmod
3341 # OpenLDAP --enable-ppolicy
3343 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3344 if test "${enable_ppolicy+set}" = set; then
3345 enableval="$enable_ppolicy"
3348 for ol_val in no yes mod ; do
3349 if test "$enableval" = "$ol_val" ; then
3353 if test "$ol_arg" = "invalid" ; then
3354 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3355 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3356 { (exit 1); exit 1; }; }
3358 ol_enable_ppolicy="$ol_arg"
3361 ol_enable_ppolicy=${ol_enable_overlays:-no}
3363 # end --enable-ppolicy
3365 # OpenLDAP --enable-proxycache
3367 # Check whether --enable-proxycache or --disable-proxycache was given.
3368 if test "${enable_proxycache+set}" = set; then
3369 enableval="$enable_proxycache"
3372 for ol_val in no yes mod ; do
3373 if test "$enableval" = "$ol_val" ; then
3377 if test "$ol_arg" = "invalid" ; then
3378 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3379 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3380 { (exit 1); exit 1; }; }
3382 ol_enable_proxycache="$ol_arg"
3385 ol_enable_proxycache=${ol_enable_overlays:-no}
3387 # end --enable-proxycache
3389 # OpenLDAP --enable-refint
3391 # Check whether --enable-refint or --disable-refint was given.
3392 if test "${enable_refint+set}" = set; then
3393 enableval="$enable_refint"
3396 for ol_val in no yes mod ; do
3397 if test "$enableval" = "$ol_val" ; then
3401 if test "$ol_arg" = "invalid" ; then
3402 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3403 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3404 { (exit 1); exit 1; }; }
3406 ol_enable_refint="$ol_arg"
3409 ol_enable_refint=${ol_enable_overlays:-no}
3411 # end --enable-refint
3413 # OpenLDAP --enable-retcode
3415 # Check whether --enable-retcode or --disable-retcode was given.
3416 if test "${enable_retcode+set}" = set; then
3417 enableval="$enable_retcode"
3420 for ol_val in no yes mod ; do
3421 if test "$enableval" = "$ol_val" ; then
3425 if test "$ol_arg" = "invalid" ; then
3426 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3427 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3428 { (exit 1); exit 1; }; }
3430 ol_enable_retcode="$ol_arg"
3433 ol_enable_retcode=${ol_enable_overlays:-no}
3435 # end --enable-retcode
3437 # OpenLDAP --enable-rwm
3439 # Check whether --enable-rwm or --disable-rwm was given.
3440 if test "${enable_rwm+set}" = set; then
3441 enableval="$enable_rwm"
3444 for ol_val in no yes mod ; do
3445 if test "$enableval" = "$ol_val" ; then
3449 if test "$ol_arg" = "invalid" ; then
3450 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3451 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3452 { (exit 1); exit 1; }; }
3454 ol_enable_rwm="$ol_arg"
3457 ol_enable_rwm=${ol_enable_overlays:-no}
3461 # OpenLDAP --enable-syncprov
3463 # Check whether --enable-syncprov or --disable-syncprov was given.
3464 if test "${enable_syncprov+set}" = set; then
3465 enableval="$enable_syncprov"
3468 for ol_val in no yes mod ; do
3469 if test "$enableval" = "$ol_val" ; then
3473 if test "$ol_arg" = "invalid" ; then
3474 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3475 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3476 { (exit 1); exit 1; }; }
3478 ol_enable_syncprov="$ol_arg"
3481 ol_enable_syncprov=${ol_enable_overlays:-yes}
3483 # end --enable-syncprov
3485 # OpenLDAP --enable-translucent
3487 # Check whether --enable-translucent or --disable-translucent was given.
3488 if test "${enable_translucent+set}" = set; then
3489 enableval="$enable_translucent"
3492 for ol_val in no yes mod ; do
3493 if test "$enableval" = "$ol_val" ; then
3497 if test "$ol_arg" = "invalid" ; then
3498 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3499 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3500 { (exit 1); exit 1; }; }
3502 ol_enable_translucent="$ol_arg"
3505 ol_enable_translucent=${ol_enable_overlays:-no}
3507 # end --enable-translucent
3509 # OpenLDAP --enable-unique
3511 # Check whether --enable-unique or --disable-unique was given.
3512 if test "${enable_unique+set}" = set; then
3513 enableval="$enable_unique"
3516 for ol_val in no yes mod ; do
3517 if test "$enableval" = "$ol_val" ; then
3521 if test "$ol_arg" = "invalid" ; then
3522 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3523 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3524 { (exit 1); exit 1; }; }
3526 ol_enable_unique="$ol_arg"
3529 ol_enable_unique=${ol_enable_overlays:-no}
3531 # end --enable-unique
3533 # OpenLDAP --enable-valsort
3535 # Check whether --enable-valsort or --disable-valsort was given.
3536 if test "${enable_valsort+set}" = set; then
3537 enableval="$enable_valsort"
3540 for ol_val in no yes mod ; do
3541 if test "$enableval" = "$ol_val" ; then
3545 if test "$ol_arg" = "invalid" ; then
3546 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3547 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3548 { (exit 1); exit 1; }; }
3550 ol_enable_valsort="$ol_arg"
3553 ol_enable_valsort=${ol_enable_overlays:-no}
3555 # end --enable-valsort
3558 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3559 if test "${enable_xxslurpdoptions+set}" = set; then
3560 enableval="$enable_xxslurpdoptions"
3563 # OpenLDAP --enable-slurpd
3565 # Check whether --enable-slurpd or --disable-slurpd was given.
3566 if test "${enable_slurpd+set}" = set; then
3567 enableval="$enable_slurpd"
3570 for ol_val in auto yes no ; do
3571 if test "$enableval" = "$ol_val" ; then
3575 if test "$ol_arg" = "invalid" ; then
3576 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3577 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3578 { (exit 1); exit 1; }; }
3580 ol_enable_slurpd="$ol_arg"
3583 ol_enable_slurpd=auto
3585 # end --enable-slurpd
3587 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3588 if test "${enable_xxliboptions+set}" = set; then
3589 enableval="$enable_xxliboptions"
3592 # Check whether --enable-static or --disable-static was given.
3593 if test "${enable_static+set}" = set; then
3594 enableval="$enable_static"
3595 p=${PACKAGE-default}
3597 yes) enable_static=yes ;;
3598 no) enable_static=no ;;
3601 # Look at the argument we got. We use all the common list separators.
3602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3603 for pkg in $enableval; do
3605 if test "X$pkg" = "X$p"; then
3616 # Check whether --enable-shared or --disable-shared was given.
3617 if test "${enable_shared+set}" = set; then
3618 enableval="$enable_shared"
3619 p=${PACKAGE-default}
3621 yes) enable_shared=yes ;;
3622 no) enable_shared=no ;;
3625 # Look at the argument we got. We use all the common list separators.
3626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3627 for pkg in $enableval; do
3629 if test "X$pkg" = "X$p"; then
3643 if test $ol_enable_slapd = no ; then
3644 if test $ol_enable_slapi = yes ; then
3645 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3648 case "$ol_enable_backends" in yes | mod)
3649 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3652 for i in $Backends; do
3653 eval "ol_tmp=\$ol_enable_$i"
3654 if test $ol_tmp != no ; then
3655 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3657 eval "ol_enable_$i=no"
3660 if test $ol_enable_modules = yes ; then
3661 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3662 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3664 if test $ol_enable_multimaster = yes ; then
3665 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3666 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3668 if test $ol_enable_wrappers = yes ; then
3669 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3672 if test $ol_enable_rlookups = yes ; then
3673 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3674 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3676 if test $ol_enable_aci = yes ; then
3677 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3678 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3680 if test $ol_enable_ldbm_api != auto ; then
3681 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3682 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3684 if test $ol_enable_ldbm_type != auto ; then
3685 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3686 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3688 if test $ol_enable_slurpd = yes ; then
3689 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3690 echo "$as_me: error: slurpd requires slapd" >&2;}
3691 { (exit 1); exit 1; }; }
3693 if test $ol_enable_rewrite = yes ; then
3694 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3695 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3697 case "$ol_enable_overlays" in yes | mod)
3698 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3699 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3701 for i in $Overlays; do
3702 eval "ol_tmp=\$ol_enable_$i"
3703 if test $ol_tmp != no ; then
3704 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3705 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3706 eval "ol_enable_$i=no"
3710 # force settings to no
3715 ol_enable_modules=no
3716 ol_enable_multimaster=no
3717 ol_enable_rlookups=no
3719 ol_enable_wrappers=no
3721 ol_enable_ldbm_api=no
3722 ol_enable_ldbm_type=no
3726 ol_enable_rewrite=no
3728 elif test $ol_enable_ldbm = no ; then
3730 if test $ol_enable_ldbm_api != auto ; then
3731 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3732 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3735 if test $ol_enable_ldbm_type != auto ; then
3736 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3737 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3740 if test $ol_enable_modules != yes -a \
3741 $ol_enable_bdb = no -a \
3742 $ol_enable_dnssrv = no -a \
3743 $ol_enable_hdb = no -a \
3744 $ol_enable_ldap = no -a \
3745 $ol_enable_meta = no -a \
3746 $ol_enable_monitor = no -a \
3747 $ol_enable_null = no -a \
3748 $ol_enable_passwd = no -a \
3749 $ol_enable_perl = no -a \
3750 $ol_enable_relay = no -a \
3751 $ol_enable_shell = no -a \
3752 $ol_enable_sql = no ; then
3754 if test $ol_enable_slapd = yes ; then
3755 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3756 echo "$as_me: error: slapd requires a backend" >&2;}
3757 { (exit 1); exit 1; }; }
3759 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3760 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3765 ol_enable_ldbm_api=no
3766 ol_enable_ldbm_type=no
3768 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3769 ol_enable_ldbm_api=berkeley
3773 if test $ol_enable_ldbm_api = gdbm -a \
3774 $ol_enable_ldbm_type = btree ; then
3775 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3776 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3777 { (exit 1); exit 1; }; }
3779 if test $ol_enable_ldbm_api = mdbm -a \
3780 $ol_enable_ldbm_type = btree ; then
3781 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3782 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3783 { (exit 1); exit 1; }; }
3785 if test $ol_enable_ldbm_api = ndbm -a \
3786 $ol_enable_ldbm_type = btree ; then
3787 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3788 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3789 { (exit 1); exit 1; }; }
3792 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3793 if test $ol_enable_ldbm_api = auto ; then
3794 ol_enable_ldbm_api=berkeley
3795 elif test $ol_enable_ldbm_api != berkeley ; then
3796 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3797 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3798 { (exit 1); exit 1; }; }
3803 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3804 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3805 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3806 { (exit 1); exit 1; }; }
3809 if test $ol_enable_slurpd = yes ; then
3810 if test $ol_with_threads = no ; then
3811 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3812 echo "$as_me: error: slurpd requires threads" >&2;}
3813 { (exit 1); exit 1; }; }
3817 if test $ol_enable_lmpasswd = yes ; then
3818 if test $ol_with_tls = no ; then
3819 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3820 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3821 { (exit 1); exit 1; }; }
3825 if test $ol_enable_kbind = yes ; then
3826 if test $ol_with_kerberos = no ; then
3827 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3828 echo "$as_me: error: options require --with-kerberos" >&2;}
3829 { (exit 1); exit 1; }; }
3830 elif test $ol_with_kerberos = auto ; then
3831 ol_with_kerberos=yes
3834 elif test $ol_enable_kbind = no ; then
3835 if test $ol_with_kerberos = auto ; then
3837 elif test $ol_with_kerberos != no ; then
3838 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3839 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3844 if test $ol_enable_spasswd = yes ; then
3845 if test $ol_with_cyrus_sasl = no ; then
3846 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3847 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3848 { (exit 1); exit 1; }; }
3850 ol_with_cyrus_sasl=yes
3853 echo "$as_me:$LINENO: result: done" >&5
3854 echo "${ECHO_T}done" >&6
3898 BUILD_TRANSLUCENT=no
3902 SLAPD_STATIC_OVERLAYS=
3903 SLAPD_DYNAMIC_OVERLAYS=
3905 SLAPD_MODULES_LDFLAGS=
3906 SLAPD_MODULES_CPPFLAGS=
3908 SLAPD_STATIC_BACKENDS=back-ldif
3909 SLAPD_DYNAMIC_BACKENDS=
3934 cat >>confdefs.h <<\_ACEOF
3935 #define HAVE_MKVERSION 1
3943 *-*-aix*) if test -z "$CC" ; then
3944 case "$ol_with_threads" in
3945 auto | yes | posix) ol_aix_threads=yes ;;
3951 if test $ol_aix_threads = yes ; then
3952 if test -z "${CC}" ; then
3953 for ac_prog in cc_r xlc_r cc
3955 # Extract the first word of "$ac_prog", so it can be a program name with args.
3956 set dummy $ac_prog; ac_word=$2
3957 echo "$as_me:$LINENO: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_CC+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if test -n "$CC"; then
3963 ac_cv_prog_CC="$CC" # Let the user override the test.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_prog_CC="$ac_prog"
3973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 if test -n "$CC"; then
3983 echo "$as_me:$LINENO: result: $CC" >&5
3984 echo "${ECHO_T}$CC" >&6
3986 echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3990 test -n "$CC" && break
3994 if test "$CC" = cc ; then
3995 if test $ol_with_threads != auto ; then
3996 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3997 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3998 { (exit 1); exit 1; }; }
4000 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4001 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4007 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
4008 ol_with_threads=posix
4009 ol_cv_pthread_create=yes
4013 if test -z "${CC}"; then
4014 for ac_prog in cc gcc
4016 # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_prog_CC+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 if test -n "$CC"; then
4024 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033 ac_cv_prog_CC="$ac_prog"
4034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 if test -n "$CC"; then
4044 echo "$as_me:$LINENO: result: $CC" >&5
4045 echo "${ECHO_T}$CC" >&6
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4051 test -n "$CC" && break
4053 test -n "$CC" || CC="missing"
4056 if test "${CC}" = "missing" ; then
4057 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4058 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4059 { (exit 1); exit 1; }; }
4063 if test -z "${AR}"; then
4064 for ac_prog in ar gar
4066 # Extract the first word of "$ac_prog", so it can be a program name with args.
4067 set dummy $ac_prog; ac_word=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_AR+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if test -n "$AR"; then
4074 ac_cv_prog_AR="$AR" # Let the user override the test.
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_AR="$ac_prog"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 if test -n "$AR"; then
4094 echo "$as_me:$LINENO: result: $AR" >&5
4095 echo "${ECHO_T}$AR" >&6
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4101 test -n "$AR" && break
4103 test -n "$AR" || AR="missing"
4106 if test "${AR}" = "missing" ; then
4107 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4108 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4109 { (exit 1); exit 1; }; }
4117 # Check whether --enable-fast-install or --disable-fast-install was given.
4118 if test "${enable_fast_install+set}" = set; then
4119 enableval="$enable_fast_install"
4120 p=${PACKAGE-default}
4122 yes) enable_fast_install=yes ;;
4123 no) enable_fast_install=no ;;
4125 enable_fast_install=no
4126 # Look at the argument we got. We use all the common list separators.
4127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4128 for pkg in $enableval; do
4130 if test "X$pkg" = "X$p"; then
4131 enable_fast_install=yes
4138 enable_fast_install=yes
4141 DEPDIR="${am__leading_dot}deps"
4143 ac_config_commands="$ac_config_commands depfiles"
4146 am_make=${MAKE-make}
4147 cat > confinc << 'END'
4152 # If we don't find an include directive, just comment out the code.
4153 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4154 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4158 # First try GNU make style include.
4159 echo "include confinc" > confmf
4160 # We grep out `Entering directory' and `Leaving directory'
4161 # messages which can occur if `w' ends up in MAKEFLAGS.
4162 # In particular we don't look at `^make:' because GNU make might
4163 # be invoked under some other name (usually "gmake"), in which
4164 # case it prints its new name instead of `make'.
4165 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4170 # Now try BSD make style include.
4171 if test "$am__include" = "#"; then
4172 echo '.include "confinc"' > confmf
4173 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4174 am__include=.include
4181 echo "$as_me:$LINENO: result: $_am_result" >&5
4182 echo "${ECHO_T}$_am_result" >&6
4183 rm -f confinc confmf
4185 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4186 if test "${enable_dependency_tracking+set}" = set; then
4187 enableval="$enable_dependency_tracking"
4190 if test "x$enable_dependency_tracking" != xno; then
4191 am_depcomp="$ac_aux_dir/depcomp"
4196 if test "x$enable_dependency_tracking" != xno; then
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211 if test -n "$ac_tool_prefix"; then
4212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4214 echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_CC+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -n "$CC"; then
4220 ac_cv_prog_CC="$CC" # Let the user override the test.
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 if test -n "$CC"; then
4240 echo "$as_me:$LINENO: result: $CC" >&5
4241 echo "${ECHO_T}$CC" >&6
4243 echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6
4248 if test -z "$ac_cv_prog_CC"; then
4250 # Extract the first word of "gcc", so it can be a program name with args.
4251 set dummy gcc; ac_word=$2
4252 echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test -n "$ac_ct_CC"; then
4258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_ac_ct_CC="gcc"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4277 if test -n "$ac_ct_CC"; then
4278 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4279 echo "${ECHO_T}$ac_ct_CC" >&6
4281 echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6
4290 if test -z "$CC"; then
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4293 set dummy ${ac_tool_prefix}cc; ac_word=$2
4294 echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4296 if test "${ac_cv_prog_CC+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 if test -n "$CC"; then
4300 ac_cv_prog_CC="$CC" # Let the user override the test.
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_CC="${ac_tool_prefix}cc"
4310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 if test -n "$CC"; then
4320 echo "$as_me:$LINENO: result: $CC" >&5
4321 echo "${ECHO_T}$CC" >&6
4323 echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6
4328 if test -z "$ac_cv_prog_CC"; then
4330 # Extract the first word of "cc", so it can be a program name with args.
4331 set dummy cc; ac_word=$2
4332 echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_CC="cc"
4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4357 if test -n "$ac_ct_CC"; then
4358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4359 echo "${ECHO_T}$ac_ct_CC" >&6
4361 echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4371 if test -z "$CC"; then
4372 # Extract the first word of "cc", so it can be a program name with args.
4373 set dummy cc; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_CC+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test -n "$CC"; then
4380 ac_cv_prog_CC="$CC" # Let the user override the test.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4391 ac_prog_rejected=yes
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 if test $ac_prog_rejected = yes; then
4402 # We found a bogon in the path, so make sure we never use it.
4403 set dummy $ac_cv_prog_CC
4405 if test $# != 0; then
4406 # We chose a different compiler from the bogus one.
4407 # However, it has the same basename, so the bogon will be chosen
4408 # first if we set CC to just the basename; use the full file name.
4410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4416 if test -n "$CC"; then
4417 echo "$as_me:$LINENO: result: $CC" >&5
4418 echo "${ECHO_T}$CC" >&6
4420 echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6
4425 if test -z "$CC"; then
4426 if test -n "$ac_tool_prefix"; then
4429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4431 echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433 if test "${ac_cv_prog_CC+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 if test -n "$CC"; then
4437 ac_cv_prog_CC="$CC" # Let the user override the test.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 if test -n "$CC"; then
4457 echo "$as_me:$LINENO: result: $CC" >&5
4458 echo "${ECHO_T}$CC" >&6
4460 echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4464 test -n "$CC" && break
4467 if test -z "$CC"; then
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 if test -n "$ac_ct_CC"; then
4479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_prog_ac_ct_CC="$ac_prog"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4498 if test -n "$ac_ct_CC"; then
4499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4500 echo "${ECHO_T}$ac_ct_CC" >&6
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 test -n "$ac_ct_CC" && break
4515 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4516 See \`config.log' for more details." >&5
4517 echo "$as_me: error: no acceptable C compiler found in \$PATH
4518 See \`config.log' for more details." >&2;}
4519 { (exit 1); exit 1; }; }
4521 # Provide some information about the compiler.
4522 echo "$as_me:$LINENO:" \
4523 "checking for C compiler version" >&5
4524 ac_compiler=`set X $ac_compile; echo $2`
4525 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4526 (eval $ac_compiler --version </dev/null >&5) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }
4530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4531 (eval $ac_compiler -v </dev/null >&5) 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }
4535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4536 (eval $ac_compiler -V </dev/null >&5) 2>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }
4541 cat >conftest.$ac_ext <<_ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4556 ac_clean_files_save=$ac_clean_files
4557 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4558 # Try to create an executable without -o first, disregard a.out.
4559 # It will help us diagnose broken compilers, and finding out an intuition
4561 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4562 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4565 (eval $ac_link_default) 2>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; then
4569 # Find the output, starting from the most likely. This scheme is
4570 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4573 # Be careful to initialize this variable, since it used to be cached.
4574 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4576 # b.out is created by i960 compilers.
4577 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4579 test -f "$ac_file" || continue
4581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4584 # This is the source file.
4587 # We found the default executable, but exeext='' is most
4591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4592 # FIXME: I believe we export ac_cv_exeext for Libtool,
4593 # but it would be cool to find out if it's true. Does anybody
4594 # maintain Libtool? --akim.
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4606 See \`config.log' for more details." >&5
4607 echo "$as_me: error: C compiler cannot create executables
4608 See \`config.log' for more details." >&2;}
4609 { (exit 77); exit 77; }; }
4612 ac_exeext=$ac_cv_exeext
4613 echo "$as_me:$LINENO: result: $ac_file" >&5
4614 echo "${ECHO_T}$ac_file" >&6
4616 # Check the compiler produces executables we can run. If not, either
4617 # the compiler is broken, or we cross compile.
4618 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4621 # If not cross compiling, check that we can run a simple program.
4622 if test "$cross_compiling" != yes; then
4623 if { ac_try='./$ac_file'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4631 if test "$cross_compiling" = maybe; then
4634 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4635 If you meant to cross compile, use \`--host'.
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: cannot run C compiled programs.
4638 If you meant to cross compile, use \`--host'.
4639 See \`config.log' for more details." >&2;}
4640 { (exit 1); exit 1; }; }
4644 echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6
4647 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4648 ac_clean_files=$ac_clean_files_save
4649 # Check the compiler produces executables we can run. If not, either
4650 # the compiler is broken, or we cross compile.
4651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4654 echo "${ECHO_T}$cross_compiling" >&6
4656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659 (eval $ac_link) 2>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; then
4663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4665 # work properly (i.e., refer to `conftest.exe'), while it won't with
4667 for ac_file in conftest.exe conftest conftest.*; do
4668 test -f "$ac_file" || continue
4670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4678 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4679 See \`config.log' for more details." >&5
4680 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4681 See \`config.log' for more details." >&2;}
4682 { (exit 1); exit 1; }; }
4685 rm -f conftest$ac_cv_exeext
4686 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4687 echo "${ECHO_T}$ac_cv_exeext" >&6
4689 rm -f conftest.$ac_ext
4690 EXEEXT=$ac_cv_exeext
4692 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4693 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4694 if test "${ac_cv_objext+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 cat >conftest.$ac_ext <<_ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4712 rm -f conftest.o conftest.obj
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; then
4718 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4730 See \`config.log' for more details." >&5
4731 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4732 See \`config.log' for more details." >&2;}
4733 { (exit 1); exit 1; }; }
4736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4738 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4739 echo "${ECHO_T}$ac_cv_objext" >&6
4740 OBJEXT=$ac_cv_objext
4742 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4743 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4744 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 cat >conftest.$ac_ext <<_ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4798 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4800 GCC=`test $ac_compiler_gnu = yes && echo yes`
4801 ac_test_CFLAGS=${CFLAGS+set}
4802 ac_save_CFLAGS=$CFLAGS
4804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4806 if test "${ac_cv_prog_cc_g+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4824 rm -f conftest.$ac_objext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826 (eval $ac_compile) 2>conftest.er1
4828 grep -v '^ *+' conftest.er1 >conftest.err
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -z "$ac_c_werror_flag"
4834 || test ! -s conftest.err'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; } &&
4840 { ac_try='test -s conftest.$ac_objext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4855 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4856 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4857 if test "$ac_test_CFLAGS" = set; then
4858 CFLAGS=$ac_save_CFLAGS
4859 elif test $ac_cv_prog_cc_g = yes; then
4860 if test "$GCC" = yes; then
4866 if test "$GCC" = yes; then
4872 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4873 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4874 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 ac_cv_prog_cc_stdc=no
4879 cat >conftest.$ac_ext <<_ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4887 #include <sys/types.h>
4888 #include <sys/stat.h>
4889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4890 struct buf { int x; };
4891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4892 static char *e (p, i)
4898 static char *f (char * (*g) (char **, int), char **p, ...)
4903 s = g (p, va_arg (v,int));
4908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4909 function prototypes and stuff, but not '\xHH' hex character constants.
4910 These don't provoke an error unfortunately, instead are silently treated
4911 as 'x'. The following induces an error, until -std1 is added to get
4912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4913 array size at least. It's necessary to write '\x00'==0 to get something
4914 that's true only with -std1. */
4915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4917 int test (int i, double x);
4918 struct s1 {int (*f) (int a);};
4919 struct s2 {int (*f) (double a);};
4920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4931 # Don't try gcc -ansi; that turns off useful extensions and
4932 # breaks some systems' header files.
4933 # AIX -qlanglvl=ansi
4934 # Ultrix and OSF/1 -std1
4935 # HP-UX 10.20 and later -Ae
4936 # HP-UX older versions -Aa -D_HPUX_SOURCE
4937 # SVR4 -Xc -D__EXTENSIONS__
4938 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4940 CC="$ac_save_CC $ac_arg"
4941 rm -f conftest.$ac_objext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943 (eval $ac_compile) 2>conftest.er1
4945 grep -v '^ *+' conftest.er1 >conftest.err
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try='test -z "$ac_c_werror_flag"
4951 || test ! -s conftest.err'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; } &&
4957 { ac_try='test -s conftest.$ac_objext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_cv_prog_cc_stdc=$ac_arg
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4970 rm -f conftest.err conftest.$ac_objext
4972 rm -f conftest.$ac_ext conftest.$ac_objext
4977 case "x$ac_cv_prog_cc_stdc" in
4979 echo "$as_me:$LINENO: result: none needed" >&5
4980 echo "${ECHO_T}none needed" >&6 ;;
4982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4983 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4984 CC="$CC $ac_cv_prog_cc_stdc" ;;
4987 # Some people use a C++ compiler to compile C. Since we use `exit',
4988 # in C++ we need to declare it. In case someone uses the same compiler
4989 # for both compiling C and C++ we need to have the C++ compiler decide
4990 # the declaration of exit, since it's the most demanding environment.
4991 cat >conftest.$ac_ext <<_ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -z "$ac_c_werror_flag"
5006 || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest.$ac_objext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 for ac_declaration in \
5020 'extern "C" void std::exit (int) throw (); using std::exit;' \
5021 'extern "C" void std::exit (int); using std::exit;' \
5022 'extern "C" void exit (int) throw ();' \
5023 'extern "C" void exit (int);' \
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5042 rm -f conftest.$ac_objext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>conftest.er1
5046 grep -v '^ *+' conftest.er1 >conftest.err
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } &&
5051 { ac_try='test -z "$ac_c_werror_flag"
5052 || test ! -s conftest.err'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; } &&
5058 { ac_try='test -s conftest.$ac_objext'
5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; }; then
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>conftest.er1
5091 grep -v '^ *+' conftest.er1 >conftest.err
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_c_werror_flag"
5097 || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5118 if test -n "$ac_declaration"; then
5119 echo '#ifdef __cplusplus' >>confdefs.h
5120 echo $ac_declaration >>confdefs.h
5121 echo '#endif' >>confdefs.h
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136 depcc="$CC" am_compiler_list=
5138 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5139 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5140 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5144 # We make a subdir and do the tests there. Otherwise we can end up
5145 # making bogus files that we don't know about and never remove. For
5146 # instance it was reported that on HP-UX the gcc test will end up
5147 # making a dummy file named `D' -- because `-MD' means `put the output
5150 # Copy depcomp to subdir because otherwise we won't find it if we're
5151 # using a relative directory.
5152 cp "$am_depcomp" conftest.dir
5154 # We will build objects and dependencies in a subdirectory because
5155 # it helps to detect inapplicable dependency modes. For instance
5156 # both Tru64's cc and ICC support -MD to output dependencies as a
5157 # side effect of compilation, but ICC will put the dependencies in
5158 # the current directory while Tru64 will put them in the object
5162 am_cv_CC_dependencies_compiler_type=none
5163 if test "$am_compiler_list" = ""; then
5164 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5166 for depmode in $am_compiler_list; do
5167 # Setup a source with many dependencies, because some compilers
5168 # like to wrap large dependency lists on column 80 (with \), and
5169 # we should not choose a depcomp mode which is confused by this.
5171 # We need to recreate these files for each test, as the compiler may
5172 # overwrite some of them when testing with obscure command lines.
5173 # This happens at least with the AIX C compiler.
5175 for i in 1 2 3 4 5 6; do
5176 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5177 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5178 # Solaris 8's {/usr,}/bin/sh.
5179 touch sub/conftst$i.h
5181 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5185 # after this tag, mechanisms are not by side-effect, so they'll
5186 # only be used when explicitly requested
5187 if test "x$enable_dependency_tracking" = xyes; then
5195 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5196 # mode. It turns out that the SunPro C++ compiler does not properly
5197 # handle `-M -o', and we need to detect this.
5198 if depmode=$depmode \
5199 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5200 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5201 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5202 >/dev/null 2>conftest.err &&
5203 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5204 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5205 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5206 # icc doesn't choke on unknown options, it will just issue warnings
5207 # or remarks (even with -Werror). So we grep stderr for any message
5208 # that says an option was ignored or not supported.
5209 # When given -MP, icc 7.0 and 7.1 complain thusly:
5210 # icc: Command line warning: ignoring option '-M'; no argument required
5211 # The diagnosis changed in icc 8.0:
5212 # icc: Command line remark: option '-MP' not supported
5213 if (grep 'ignoring option' conftest.err ||
5214 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5215 am_cv_CC_dependencies_compiler_type=$depmode
5224 am_cv_CC_dependencies_compiler_type=none
5228 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5229 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5230 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5235 test "x$enable_dependency_tracking" != xno \
5236 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5238 am__fastdepCC_FALSE='#'
5240 am__fastdepCC_TRUE='#'
5241 am__fastdepCC_FALSE=
5245 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5246 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5247 if test "${lt_cv_path_SED+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 # Loop through the user's path and test for sed and gsed.
5251 # Then use that list of sed's as ones to test for truncation.
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir=.
5257 for lt_ac_prog in sed gsed; do
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5260 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5267 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5268 # along with /bin/sed that truncates output.
5269 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5270 test ! -f $lt_ac_sed && continue
5271 cat /dev/null > conftest.in
5273 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5274 # Check for GNU sed and select it if it is found.
5275 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5276 lt_cv_path_SED=$lt_ac_sed
5280 cat conftest.in conftest.in >conftest.tmp
5281 mv conftest.tmp conftest.in
5282 cp conftest.in conftest.nl
5284 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5285 cmp -s conftest.out conftest.nl || break
5286 # 10000 chars as input seems more than enough
5287 test $lt_ac_count -gt 10 && break
5288 lt_ac_count=`expr $lt_ac_count + 1`
5289 if test $lt_ac_count -gt $lt_ac_max; then
5290 lt_ac_max=$lt_ac_count
5291 lt_cv_path_SED=$lt_ac_sed
5299 echo "$as_me:$LINENO: result: $SED" >&5
5300 echo "${ECHO_T}$SED" >&6
5302 echo "$as_me:$LINENO: checking for egrep" >&5
5303 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5304 if test "${ac_cv_prog_egrep+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5308 then ac_cv_prog_egrep='grep -E'
5309 else ac_cv_prog_egrep='egrep'
5312 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5313 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5314 EGREP=$ac_cv_prog_egrep
5318 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5319 if test "${with_gnu_ld+set}" = set; then
5320 withval="$with_gnu_ld"
5321 test "$withval" = no || with_gnu_ld=yes
5326 if test "$GCC" = yes; then
5327 # Check if gcc -print-prog-name=ld gives a path.
5328 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5329 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5332 # gcc leaves a trailing carriage return which upsets mingw
5333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5338 # Accept absolute paths.
5340 re_direlt='/[^/][^/]*/\.\./'
5341 # Canonicalize the pathname of ld
5342 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5343 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5344 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5346 test -z "$LD" && LD="$ac_prog"
5349 # If it fails, then pretend we aren't using GCC.
5353 # If it is relative, then search for the first ld in PATH.
5357 elif test "$with_gnu_ld" = yes; then
5358 echo "$as_me:$LINENO: checking for GNU ld" >&5
5359 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5361 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5362 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5364 if test "${lt_cv_path_LD+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 if test -z "$LD"; then
5368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5369 for ac_dir in $PATH; do
5371 test -z "$ac_dir" && ac_dir=.
5372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5373 lt_cv_path_LD="$ac_dir/$ac_prog"
5374 # Check to see if the program is GNU ld. I'd rather use --version,
5375 # but apparently some GNU ld's only accept -v.
5376 # Break only if it was the GNU/non-GNU ld that we prefer.
5377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5378 *GNU* | *'with BFD'*)
5379 test "$with_gnu_ld" != no && break
5382 test "$with_gnu_ld" != yes && break
5389 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5394 if test -n "$LD"; then
5395 echo "$as_me:$LINENO: result: $LD" >&5
5396 echo "${ECHO_T}$LD" >&6
5398 echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5401 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5402 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5403 { (exit 1); exit 1; }; }
5404 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5405 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5406 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5410 case `$LD -v 2>&1 </dev/null` in
5411 *GNU* | *'with BFD'*)
5412 lt_cv_prog_gnu_ld=yes
5415 lt_cv_prog_gnu_ld=no
5419 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5420 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5421 with_gnu_ld=$lt_cv_prog_gnu_ld
5424 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5425 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5426 if test "${lt_cv_ld_reload_flag+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 lt_cv_ld_reload_flag='-r'
5431 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5432 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5433 reload_flag=$lt_cv_ld_reload_flag
5434 case $reload_flag in
5436 *) reload_flag=" $reload_flag" ;;
5438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5441 if test "$GCC" = yes; then
5442 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5444 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5449 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5450 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5451 if test "${lt_cv_path_NM+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 if test -n "$NM"; then
5455 # Let the user override the test.
5458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5459 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5461 test -z "$ac_dir" && ac_dir=.
5462 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5463 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5464 # Check to see if the nm accepts a BSD-compat flag.
5465 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5466 # nm: unknown option "B" ignored
5467 # Tru64's nm complains that /dev/null is an invalid object file
5468 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5469 */dev/null* | *'Invalid file or object type'*)
5470 lt_cv_path_NM="$tmp_nm -B"
5474 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5476 lt_cv_path_NM="$tmp_nm -p"
5480 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5481 continue # so that we can try to find one that supports BSD flags
5488 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5491 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5492 echo "${ECHO_T}$lt_cv_path_NM" >&6
5495 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5496 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5498 if test "$LN_S" = "ln -s"; then
5499 echo "$as_me:$LINENO: result: yes" >&5
5500 echo "${ECHO_T}yes" >&6
5502 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5503 echo "${ECHO_T}no, using $LN_S" >&6
5506 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5507 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5508 if test "${lt_cv_deplibs_check_method+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 lt_cv_file_magic_cmd='$MAGIC_CMD'
5512 lt_cv_file_magic_test_file=
5513 lt_cv_deplibs_check_method='unknown'
5514 # Need to set the preceding variable on all platforms that support
5515 # interlibrary dependencies.
5516 # 'none' -- dependencies not supported.
5517 # `unknown' -- same as none, but documents that we really don't know.
5518 # 'pass_all' -- all dependencies passed with no checks.
5519 # 'test_compile' -- check by making test program.
5520 # 'file_magic [[regex]]' -- check by looking for files in library path
5521 # which responds to the $file_magic_cmd with a given extended regex.
5522 # If you have `file' or equivalent on your system and you're not sure
5523 # whether `pass_all' will *always* work, you probably want this one.
5527 lt_cv_deplibs_check_method=pass_all
5531 lt_cv_deplibs_check_method=pass_all
5535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5536 lt_cv_file_magic_cmd='/usr/bin/file -L'
5537 lt_cv_file_magic_test_file=/shlib/libc.so
5541 # func_win32_libid is a shell function defined in ltmain.sh
5542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5543 lt_cv_file_magic_cmd='func_win32_libid'
5547 # Base MSYS/MinGW do not provide the 'file' command needed by
5548 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5549 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5550 lt_cv_file_magic_cmd='$OBJDUMP -f'
5553 darwin* | rhapsody*)
5554 lt_cv_deplibs_check_method=pass_all
5557 freebsd* | kfreebsd*-gnu | dragonfly*)
5558 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5561 # Not sure whether the presence of OpenBSD here was a mistake.
5562 # Let's accept both of them until this is cleared up.
5563 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5564 lt_cv_file_magic_cmd=/usr/bin/file
5565 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5569 lt_cv_deplibs_check_method=pass_all
5574 lt_cv_deplibs_check_method=pass_all
5577 hpux10.20* | hpux11*)
5578 lt_cv_file_magic_cmd=/usr/bin/file
5581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5582 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5585 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]'
5586 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5590 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5595 irix5* | irix6* | nonstopux*)
5597 *-32|*"-32 ") libmagic=32-bit;;
5598 *-n32|*"-n32 ") libmagic=N32;;
5599 *-64|*"-64 ") libmagic=64-bit;;
5600 *) libmagic=never-match;;
5602 lt_cv_deplibs_check_method=pass_all
5605 # This must be Linux ELF.
5607 lt_cv_deplibs_check_method=pass_all
5611 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5620 lt_cv_file_magic_cmd=/usr/bin/file
5621 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5625 lt_cv_deplibs_check_method=unknown
5629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636 osf3* | osf4* | osf5*)
5637 lt_cv_deplibs_check_method=pass_all
5641 lt_cv_deplibs_check_method=pass_all
5645 lt_cv_deplibs_check_method=pass_all
5648 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5649 case $host_vendor in
5651 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]'
5652 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5655 lt_cv_deplibs_check_method=pass_all
5658 lt_cv_file_magic_cmd='/bin/file'
5659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5662 lt_cv_file_magic_cmd='/bin/file'
5663 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5664 lt_cv_file_magic_test_file=/lib/libc.so
5667 lt_cv_deplibs_check_method=pass_all
5672 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5673 lt_cv_deplibs_check_method=pass_all
5678 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5679 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5680 file_magic_cmd=$lt_cv_file_magic_cmd
5681 deplibs_check_method=$lt_cv_deplibs_check_method
5682 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5687 # If no C compiler was specified, use CC.
5690 # Allow CC to be a program name with arguments.
5694 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5695 if test "${enable_libtool_lock+set}" = set; then
5696 enableval="$enable_libtool_lock"
5699 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5701 # Some flags need to be propagated to the compiler or linker for good
5705 # Find out which ABI we are using.
5706 echo 'int i;' > conftest.$ac_ext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; then
5712 case `/usr/bin/file conftest.$ac_objext` in
5724 # Find out which ABI we are using.
5725 echo '#line 5725 "configure"' > conftest.$ac_ext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; then
5731 if test "$lt_cv_prog_gnu_ld" = yes; then
5732 case `/usr/bin/file conftest.$ac_objext` in
5734 LD="${LD-ld} -melf32bsmip"
5737 LD="${LD-ld} -melf32bmipn32"
5740 LD="${LD-ld} -melf64bmip"
5744 case `/usr/bin/file conftest.$ac_objext` in
5760 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5761 # Find out which ABI we are using.
5762 echo 'int i;' > conftest.$ac_ext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; then
5768 case "`/usr/bin/file conftest.o`" in
5772 LD="${LD-ld} -m elf_i386"
5774 ppc64-*linux*|powerpc64-*linux*)
5775 LD="${LD-ld} -m elf32ppclinux"
5778 LD="${LD-ld} -m elf_s390"
5781 LD="${LD-ld} -m elf32_sparc"
5788 LD="${LD-ld} -m elf_x86_64"
5790 ppc*-*linux*|powerpc*-*linux*)
5791 LD="${LD-ld} -m elf64ppc"
5794 LD="${LD-ld} -m elf64_s390"
5797 LD="${LD-ld} -m elf64_sparc"
5807 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5808 SAVE_CFLAGS="$CFLAGS"
5809 CFLAGS="$CFLAGS -belf"
5810 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5811 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5812 if test "${lt_cv_cc_needs_belf+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 ac_cpp='$CPP $CPPFLAGS'
5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest$ac_exeext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 lt_cv_cc_needs_belf=yes
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 lt_cv_cc_needs_belf=no
5865 rm -f conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5868 ac_cpp='$CPP $CPPFLAGS'
5869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5875 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5876 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5877 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5878 CFLAGS="$SAVE_CFLAGS"
5881 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5882 if test -n "$ac_tool_prefix"; then
5883 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5884 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5885 echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5887 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 if test -n "$DLLTOOL"; then
5891 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 DLLTOOL=$ac_cv_prog_DLLTOOL
5910 if test -n "$DLLTOOL"; then
5911 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5912 echo "${ECHO_T}$DLLTOOL" >&6
5914 echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6
5919 if test -z "$ac_cv_prog_DLLTOOL"; then
5920 ac_ct_DLLTOOL=$DLLTOOL
5921 # Extract the first word of "dlltool", so it can be a program name with args.
5922 set dummy dlltool; ac_word=$2
5923 echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5925 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 if test -n "$ac_ct_DLLTOOL"; then
5929 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5948 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5949 if test -n "$ac_ct_DLLTOOL"; then
5950 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5951 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5953 echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6
5957 DLLTOOL=$ac_ct_DLLTOOL
5959 DLLTOOL="$ac_cv_prog_DLLTOOL"
5962 if test -n "$ac_tool_prefix"; then
5963 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5964 set dummy ${ac_tool_prefix}as; ac_word=$2
5965 echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5967 if test "${ac_cv_prog_AS+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 if test -n "$AS"; then
5971 ac_cv_prog_AS="$AS" # Let the user override the test.
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980 ac_cv_prog_AS="${ac_tool_prefix}as"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 if test -n "$AS"; then
5991 echo "$as_me:$LINENO: result: $AS" >&5
5992 echo "${ECHO_T}$AS" >&6
5994 echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
5999 if test -z "$ac_cv_prog_AS"; then
6001 # Extract the first word of "as", so it can be a program name with args.
6002 set dummy as; ac_word=$2
6003 echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6005 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 if test -n "$ac_ct_AS"; then
6009 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018 ac_cv_prog_ac_ct_AS="as"
6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6028 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6029 if test -n "$ac_ct_AS"; then
6030 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6031 echo "${ECHO_T}$ac_ct_AS" >&6
6033 echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6042 if test -n "$ac_tool_prefix"; then
6043 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6045 echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6047 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 if test -n "$OBJDUMP"; then
6051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 OBJDUMP=$ac_cv_prog_OBJDUMP
6070 if test -n "$OBJDUMP"; then
6071 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6072 echo "${ECHO_T}$OBJDUMP" >&6
6074 echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6
6079 if test -z "$ac_cv_prog_OBJDUMP"; then
6080 ac_ct_OBJDUMP=$OBJDUMP
6081 # Extract the first word of "objdump", so it can be a program name with args.
6082 set dummy objdump; ac_word=$2
6083 echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 if test -n "$ac_ct_OBJDUMP"; then
6089 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6108 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6109 if test -n "$ac_ct_OBJDUMP"; then
6110 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6111 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6117 OBJDUMP=$ac_ct_OBJDUMP
6119 OBJDUMP="$ac_cv_prog_OBJDUMP"
6126 need_locks="$enable_libtool_lock"
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6135 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6136 # On Suns, sometimes $CPP names a directory.
6137 if test -n "$CPP" && test -d "$CPP"; then
6140 if test -z "$CPP"; then
6141 if test "${ac_cv_prog_CPP+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 # Double quotes because CPP needs to be expanded
6145 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6148 for ac_c_preproc_warn_flag in '' yes
6150 # Use a header file that comes with gcc, so configuring glibc
6151 # with a fresh cross-compiler works.
6152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6153 # <limits.h> exists even on freestanding compilers.
6154 # On the NeXT, cc -E runs the code through the compiler's parser,
6155 # not just through cpp. "Syntax error" is here to catch this case.
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6163 # include <limits.h>
6165 # include <assert.h>
6169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6172 grep -v '^ *+' conftest.er1 >conftest.err
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } >/dev/null; then
6177 if test -s conftest.err; then
6178 ac_cpp_err=$ac_c_preproc_warn_flag
6179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6186 if test -z "$ac_cpp_err"; then
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 # Broken: fails on valid input.
6195 rm -f conftest.err conftest.$ac_ext
6197 # OK, works on sane cases. Now check whether non-existent headers
6198 # can be detected and how.
6199 cat >conftest.$ac_ext <<_ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 #include <ac_nonexistent.h>
6207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6210 grep -v '^ *+' conftest.er1 >conftest.err
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } >/dev/null; then
6215 if test -s conftest.err; then
6216 ac_cpp_err=$ac_c_preproc_warn_flag
6217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6224 if test -z "$ac_cpp_err"; then
6225 # Broken: success on invalid input.
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 # Passes both tests.
6235 rm -f conftest.err conftest.$ac_ext
6238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6239 rm -f conftest.err conftest.$ac_ext
6240 if $ac_preproc_ok; then
6252 echo "$as_me:$LINENO: result: $CPP" >&5
6253 echo "${ECHO_T}$CPP" >&6
6255 for ac_c_preproc_warn_flag in '' yes
6257 # Use a header file that comes with gcc, so configuring glibc
6258 # with a fresh cross-compiler works.
6259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6260 # <limits.h> exists even on freestanding compilers.
6261 # On the NeXT, cc -E runs the code through the compiler's parser,
6262 # not just through cpp. "Syntax error" is here to catch this case.
6263 cat >conftest.$ac_ext <<_ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6270 # include <limits.h>
6272 # include <assert.h>
6276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } >/dev/null; then
6284 if test -s conftest.err; then
6285 ac_cpp_err=$ac_c_preproc_warn_flag
6286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6293 if test -z "$ac_cpp_err"; then
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 # Broken: fails on valid input.
6302 rm -f conftest.err conftest.$ac_ext
6304 # OK, works on sane cases. Now check whether non-existent headers
6305 # can be detected and how.
6306 cat >conftest.$ac_ext <<_ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <ac_nonexistent.h>
6314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1 >conftest.err
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } >/dev/null; then
6322 if test -s conftest.err; then
6323 ac_cpp_err=$ac_c_preproc_warn_flag
6324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6331 if test -z "$ac_cpp_err"; then
6332 # Broken: success on invalid input.
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 # Passes both tests.
6342 rm -f conftest.err conftest.$ac_ext
6345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6346 rm -f conftest.err conftest.$ac_ext
6347 if $ac_preproc_ok; then
6350 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6351 See \`config.log' for more details." >&5
6352 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6353 See \`config.log' for more details." >&2;}
6354 { (exit 1); exit 1; }; }
6358 ac_cpp='$CPP $CPPFLAGS'
6359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6366 if test "${ac_cv_header_stdc+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6388 rm -f conftest.$ac_objext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390 (eval $ac_compile) 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try='test -z "$ac_c_werror_flag"
6398 || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_header_stdc=yes
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 ac_cv_header_stdc=no
6417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 if test $ac_cv_header_stdc = yes; then
6420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431 $EGREP "memchr" >/dev/null 2>&1; then
6434 ac_cv_header_stdc=no
6440 if test $ac_cv_header_stdc = yes; then
6441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6442 cat >conftest.$ac_ext <<_ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 $EGREP "free" >/dev/null 2>&1; then
6455 ac_cv_header_stdc=no
6461 if test $ac_cv_header_stdc = yes; then
6462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6463 if test "$cross_compiling" = yes; then
6466 cat >conftest.$ac_ext <<_ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6473 #if ((' ' & 0x0FF) == 0x020)
6474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6477 # define ISLOWER(c) \
6478 (('a' <= (c) && (c) <= 'i') \
6479 || ('j' <= (c) && (c) <= 'r') \
6480 || ('s' <= (c) && (c) <= 'z'))
6481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6489 for (i = 0; i < 256; i++)
6490 if (XOR (islower (i), ISLOWER (i))
6491 || toupper (i) != TOUPPER (i))
6496 rm -f conftest$ac_exeext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498 (eval $ac_link) 2>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6509 echo "$as_me: program exited with status $ac_status" >&5
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6514 ac_cv_header_stdc=no
6516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6520 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6521 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6522 if test $ac_cv_header_stdc = yes; then
6524 cat >>confdefs.h <<\_ACEOF
6525 #define STDC_HEADERS 1
6530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6541 inttypes.h stdint.h unistd.h
6543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 echo "$as_me:$LINENO: checking for $ac_header" >&5
6545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 cat >conftest.$ac_ext <<_ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 $ac_includes_default
6557 #include <$ac_header>
6559 rm -f conftest.$ac_objext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561 (eval $ac_compile) 2>conftest.er1
6563 grep -v '^ *+' conftest.er1 >conftest.err
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -z "$ac_c_werror_flag"
6569 || test ! -s conftest.err'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest.$ac_objext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 eval "$as_ac_Header=yes"
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6586 eval "$as_ac_Header=no"
6588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6593 cat >>confdefs.h <<_ACEOF
6594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6603 for ac_header in dlfcn.h
6605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6607 echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6615 # Is the header compilable?
6616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 $ac_includes_default
6625 #include <$ac_header>
6627 rm -f conftest.$ac_objext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629 (eval $ac_compile) 2>conftest.er1
6631 grep -v '^ *+' conftest.er1 >conftest.err
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } &&
6636 { ac_try='test -z "$ac_c_werror_flag"
6637 || test ! -s conftest.err'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; } &&
6643 { ac_try='test -s conftest.$ac_objext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_header_compiler=yes
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 ac_header_compiler=no
6656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6658 echo "${ECHO_T}$ac_header_compiler" >&6
6660 # Is the header present?
6661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6663 cat >conftest.$ac_ext <<_ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <$ac_header>
6671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6674 grep -v '^ *+' conftest.er1 >conftest.err
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } >/dev/null; then
6679 if test -s conftest.err; then
6680 ac_cpp_err=$ac_c_preproc_warn_flag
6681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6688 if test -z "$ac_cpp_err"; then
6689 ac_header_preproc=yes
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_header_preproc=no
6696 rm -f conftest.err conftest.$ac_ext
6697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6698 echo "${ECHO_T}$ac_header_preproc" >&6
6700 # So? What about this header?
6701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6707 ac_header_preproc=yes
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6724 ## ------------------------------------------ ##
6725 ## Report this to the AC_PACKAGE_NAME lists. ##
6726 ## ------------------------------------------ ##
6729 sed "s/^/$as_me: WARNING: /" >&2
6732 echo "$as_me:$LINENO: checking for $ac_header" >&5
6733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 eval "$as_ac_Header=\$ac_header_preproc"
6739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6744 cat >>confdefs.h <<_ACEOF
6745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6753 ac_cpp='$CXXCPP $CPPFLAGS'
6754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6757 if test -n "$ac_tool_prefix"; then
6758 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6762 echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6764 if test "${ac_cv_prog_CXX+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 if test -n "$CXX"; then
6768 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 if test -n "$CXX"; then
6788 echo "$as_me:$LINENO: result: $CXX" >&5
6789 echo "${ECHO_T}$CXX" >&6
6791 echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6
6795 test -n "$CXX" && break
6798 if test -z "$CXX"; then
6800 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6802 # Extract the first word of "$ac_prog", so it can be a program name with args.
6803 set dummy $ac_prog; ac_word=$2
6804 echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6806 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 if test -n "$ac_ct_CXX"; then
6810 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_CXX="$ac_prog"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6829 if test -n "$ac_ct_CXX"; then
6830 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6831 echo "${ECHO_T}$ac_ct_CXX" >&6
6833 echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6
6837 test -n "$ac_ct_CXX" && break
6839 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6845 # Provide some information about the compiler.
6846 echo "$as_me:$LINENO:" \
6847 "checking for C++ compiler version" >&5
6848 ac_compiler=`set X $ac_compile; echo $2`
6849 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6850 (eval $ac_compiler --version </dev/null >&5) 2>&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }
6854 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6855 (eval $ac_compiler -v </dev/null >&5) 2>&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }
6859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6860 (eval $ac_compiler -V </dev/null >&5) 2>&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }
6865 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6866 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6867 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 cat >conftest.$ac_ext <<_ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6888 rm -f conftest.$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_cxx_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6921 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6922 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6923 GXX=`test $ac_compiler_gnu = yes && echo yes`
6924 ac_test_CXXFLAGS=${CXXFLAGS+set}
6925 ac_save_CXXFLAGS=$CXXFLAGS
6927 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6928 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6929 if test "${ac_cv_prog_cxx_g+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949 (eval $ac_compile) 2>conftest.er1
6951 grep -v '^ *+' conftest.er1 >conftest.err
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try='test -z "$ac_cxx_werror_flag"
6957 || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest.$ac_objext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_prog_cxx_g=yes
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6978 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6979 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6980 if test "$ac_test_CXXFLAGS" = set; then
6981 CXXFLAGS=$ac_save_CXXFLAGS
6982 elif test $ac_cv_prog_cxx_g = yes; then
6983 if test "$GXX" = yes; then
6989 if test "$GXX" = yes; then
6995 for ac_declaration in \
6997 'extern "C" void std::exit (int) throw (); using std::exit;' \
6998 'extern "C" void std::exit (int); using std::exit;' \
6999 'extern "C" void exit (int) throw ();' \
7000 'extern "C" void exit (int);' \
7003 cat >conftest.$ac_ext <<_ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7019 rm -f conftest.$ac_objext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021 (eval $ac_compile) 2>conftest.er1
7023 grep -v '^ *+' conftest.er1 >conftest.err
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } &&
7028 { ac_try='test -z "$ac_cxx_werror_flag"
7029 || test ! -s conftest.err'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; } &&
7035 { ac_try='test -s conftest.$ac_objext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>conftest.er1
7068 grep -v '^ *+' conftest.er1 >conftest.err
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -z "$ac_cxx_werror_flag"
7074 || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 if test -n "$ac_declaration"; then
7096 echo '#ifdef __cplusplus' >>confdefs.h
7097 echo $ac_declaration >>confdefs.h
7098 echo '#endif' >>confdefs.h
7102 ac_cpp='$CXXCPP $CPPFLAGS'
7103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7107 depcc="$CXX" am_compiler_list=
7109 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7110 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7111 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7115 # We make a subdir and do the tests there. Otherwise we can end up
7116 # making bogus files that we don't know about and never remove. For
7117 # instance it was reported that on HP-UX the gcc test will end up
7118 # making a dummy file named `D' -- because `-MD' means `put the output
7121 # Copy depcomp to subdir because otherwise we won't find it if we're
7122 # using a relative directory.
7123 cp "$am_depcomp" conftest.dir
7125 # We will build objects and dependencies in a subdirectory because
7126 # it helps to detect inapplicable dependency modes. For instance
7127 # both Tru64's cc and ICC support -MD to output dependencies as a
7128 # side effect of compilation, but ICC will put the dependencies in
7129 # the current directory while Tru64 will put them in the object
7133 am_cv_CXX_dependencies_compiler_type=none
7134 if test "$am_compiler_list" = ""; then
7135 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7137 for depmode in $am_compiler_list; do
7138 # Setup a source with many dependencies, because some compilers
7139 # like to wrap large dependency lists on column 80 (with \), and
7140 # we should not choose a depcomp mode which is confused by this.
7142 # We need to recreate these files for each test, as the compiler may
7143 # overwrite some of them when testing with obscure command lines.
7144 # This happens at least with the AIX C compiler.
7146 for i in 1 2 3 4 5 6; do
7147 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7148 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7149 # Solaris 8's {/usr,}/bin/sh.
7150 touch sub/conftst$i.h
7152 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7156 # after this tag, mechanisms are not by side-effect, so they'll
7157 # only be used when explicitly requested
7158 if test "x$enable_dependency_tracking" = xyes; then
7166 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7167 # mode. It turns out that the SunPro C++ compiler does not properly
7168 # handle `-M -o', and we need to detect this.
7169 if depmode=$depmode \
7170 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7171 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7172 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7173 >/dev/null 2>conftest.err &&
7174 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7175 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7176 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7177 # icc doesn't choke on unknown options, it will just issue warnings
7178 # or remarks (even with -Werror). So we grep stderr for any message
7179 # that says an option was ignored or not supported.
7180 # When given -MP, icc 7.0 and 7.1 complain thusly:
7181 # icc: Command line warning: ignoring option '-M'; no argument required
7182 # The diagnosis changed in icc 8.0:
7183 # icc: Command line remark: option '-MP' not supported
7184 if (grep 'ignoring option' conftest.err ||
7185 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7186 am_cv_CXX_dependencies_compiler_type=$depmode
7195 am_cv_CXX_dependencies_compiler_type=none
7199 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7200 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7201 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7206 test "x$enable_dependency_tracking" != xno \
7207 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7208 am__fastdepCXX_TRUE=
7209 am__fastdepCXX_FALSE='#'
7211 am__fastdepCXX_TRUE='#'
7212 am__fastdepCXX_FALSE=
7218 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7219 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7220 (test "X$CXX" != "Xg++"))) ; then
7222 ac_cpp='$CXXCPP $CPPFLAGS'
7223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7226 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7227 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7228 if test -z "$CXXCPP"; then
7229 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 # Double quotes because CXXCPP needs to be expanded
7233 for CXXCPP in "$CXX -E" "/lib/cpp"
7236 for ac_cxx_preproc_warn_flag in '' yes
7238 # Use a header file that comes with gcc, so configuring glibc
7239 # with a fresh cross-compiler works.
7240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7241 # <limits.h> exists even on freestanding compilers.
7242 # On the NeXT, cc -E runs the code through the compiler's parser,
7243 # not just through cpp. "Syntax error" is here to catch this case.
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7251 # include <limits.h>
7253 # include <assert.h>
7257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7260 grep -v '^ *+' conftest.er1 >conftest.err
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } >/dev/null; then
7265 if test -s conftest.err; then
7266 ac_cpp_err=$ac_cxx_preproc_warn_flag
7267 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7274 if test -z "$ac_cpp_err"; then
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 # Broken: fails on valid input.
7283 rm -f conftest.err conftest.$ac_ext
7285 # OK, works on sane cases. Now check whether non-existent headers
7286 # can be detected and how.
7287 cat >conftest.$ac_ext <<_ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 #include <ac_nonexistent.h>
7295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7298 grep -v '^ *+' conftest.er1 >conftest.err
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } >/dev/null; then
7303 if test -s conftest.err; then
7304 ac_cpp_err=$ac_cxx_preproc_warn_flag
7305 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7312 if test -z "$ac_cpp_err"; then
7313 # Broken: success on invalid input.
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 # Passes both tests.
7323 rm -f conftest.err conftest.$ac_ext
7326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7327 rm -f conftest.err conftest.$ac_ext
7328 if $ac_preproc_ok; then
7333 ac_cv_prog_CXXCPP=$CXXCPP
7336 CXXCPP=$ac_cv_prog_CXXCPP
7338 ac_cv_prog_CXXCPP=$CXXCPP
7340 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7341 echo "${ECHO_T}$CXXCPP" >&6
7343 for ac_cxx_preproc_warn_flag in '' yes
7345 # Use a header file that comes with gcc, so configuring glibc
7346 # with a fresh cross-compiler works.
7347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7348 # <limits.h> exists even on freestanding compilers.
7349 # On the NeXT, cc -E runs the code through the compiler's parser,
7350 # not just through cpp. "Syntax error" is here to catch this case.
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7358 # include <limits.h>
7360 # include <assert.h>
7364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7367 grep -v '^ *+' conftest.er1 >conftest.err
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } >/dev/null; then
7372 if test -s conftest.err; then
7373 ac_cpp_err=$ac_cxx_preproc_warn_flag
7374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7381 if test -z "$ac_cpp_err"; then
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7387 # Broken: fails on valid input.
7390 rm -f conftest.err conftest.$ac_ext
7392 # OK, works on sane cases. Now check whether non-existent headers
7393 # can be detected and how.
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <ac_nonexistent.h>
7402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7405 grep -v '^ *+' conftest.er1 >conftest.err
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } >/dev/null; then
7410 if test -s conftest.err; then
7411 ac_cpp_err=$ac_cxx_preproc_warn_flag
7412 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7419 if test -z "$ac_cpp_err"; then
7420 # Broken: success on invalid input.
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7426 # Passes both tests.
7430 rm -f conftest.err conftest.$ac_ext
7433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7434 rm -f conftest.err conftest.$ac_ext
7435 if $ac_preproc_ok; then
7438 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7439 See \`config.log' for more details." >&5
7440 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7441 See \`config.log' for more details." >&2;}
7442 { (exit 1); exit 1; }; }
7446 ac_cpp='$CXXCPP $CPPFLAGS'
7447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7455 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7456 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7458 if test -n "$ac_tool_prefix"; then
7459 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7463 echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7465 if test "${ac_cv_prog_F77+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 if test -n "$F77"; then
7469 ac_cv_prog_F77="$F77" # Let the user override the test.
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 if test -n "$F77"; then
7489 echo "$as_me:$LINENO: result: $F77" >&5
7490 echo "${ECHO_T}$F77" >&6
7492 echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7496 test -n "$F77" && break
7499 if test -z "$F77"; then
7501 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7503 # Extract the first word of "$ac_prog", so it can be a program name with args.
7504 set dummy $ac_prog; ac_word=$2
7505 echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7507 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 if test -n "$ac_ct_F77"; then
7511 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_ac_ct_F77="$ac_prog"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7530 if test -n "$ac_ct_F77"; then
7531 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7532 echo "${ECHO_T}$ac_ct_F77" >&6
7534 echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7538 test -n "$ac_ct_F77" && break
7545 # Provide some information about the compiler.
7546 echo "$as_me:7546:" \
7547 "checking for Fortran 77 compiler version" >&5
7548 ac_compiler=`set X $ac_compile; echo $2`
7549 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7550 (eval $ac_compiler --version </dev/null >&5) 2>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }
7554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7555 (eval $ac_compiler -v </dev/null >&5) 2>&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }
7559 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7560 (eval $ac_compiler -V </dev/null >&5) 2>&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }
7566 # If we don't use `.F' as extension, the preprocessor is not run on the
7567 # input file. (Note that this only needs to work for GNU compilers.)
7570 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7571 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7572 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 cat >conftest.$ac_ext <<_ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>conftest.er1
7587 grep -v '^ *+' conftest.er1 >conftest.err
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_f77_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7613 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7616 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7617 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7619 ac_test_FFLAGS=${FFLAGS+set}
7620 ac_save_FFLAGS=$FFLAGS
7622 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7623 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7624 if test "${ac_cv_prog_f77_g+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 cat >conftest.$ac_ext <<_ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7637 grep -v '^ *+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_f77_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_cv_prog_f77_g=yes
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7665 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7666 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7667 if test "$ac_test_FFLAGS" = set; then
7668 FFLAGS=$ac_save_FFLAGS
7669 elif test $ac_cv_prog_f77_g = yes; then
7670 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7676 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7683 G77=`test $ac_compiler_gnu = yes && echo yes`
7685 ac_cpp='$CPP $CPPFLAGS'
7686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7694 # find the maximum length of command line arguments
7695 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7696 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7697 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 # On DJGPP, this test can blow up pretty badly due to problems in libc
7706 # (any single argument exceeding 2000 bytes causes a buffer overrun
7707 # during glob expansion). Even if it were fixed, the result of this
7708 # check would be larger than it should be.
7709 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7713 # Under GNU Hurd, this test is not required because there is
7714 # no limit to the length of command line arguments.
7715 # Libtool will interpret -1 as no limit whatsoever
7716 lt_cv_sys_max_cmd_len=-1;
7720 # On Win9x/ME, this test blows up -- it succeeds, but takes
7721 # about 5 minutes as the teststring grows exponentially.
7722 # Worse, since 9x/ME are not pre-emptively multitasking,
7723 # you end up with a "frozen" computer, even though with patience
7724 # the test eventually succeeds (with a max line length of 256k).
7725 # Instead, let's just punt: use the minimum linelength reported by
7726 # all of the supported platforms: 8192 (on NT/2K/XP).
7727 lt_cv_sys_max_cmd_len=8192;
7731 # On AmigaOS with pdksh, this test takes hours, literally.
7732 # So we just punt and use a minimum line length of 8192.
7733 lt_cv_sys_max_cmd_len=8192;
7736 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7737 # This has been around since 386BSD, at least. Likely further.
7738 if test -x /sbin/sysctl; then
7739 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7740 elif test -x /usr/sbin/sysctl; then
7741 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7743 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7745 # And add a safety zone
7746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7752 # nice to cause kernel panics so lets avoid the loop below.
7753 # First set a reasonable default.
7754 lt_cv_sys_max_cmd_len=16384
7756 if test -x /sbin/sysconfig; then
7757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7758 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7763 # If test is not a shell built-in, we'll probably end up computing a
7764 # maximum length that is only half of the actual maximum length, but
7766 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7767 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7768 = "XX$teststring") >/dev/null 2>&1 &&
7769 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7770 lt_cv_sys_max_cmd_len=$new_result &&
7771 test $i != 17 # 1/2 MB should be enough
7774 teststring=$teststring$teststring
7777 # Add a significant safety factor because C++ compilers can tack on massive
7778 # amounts of additional arguments before passing them to the linker.
7779 # It appears as though 1/2 is a usable value.
7780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7786 if test -n $lt_cv_sys_max_cmd_len ; then
7787 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7788 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7790 echo "$as_me:$LINENO: result: none" >&5
7791 echo "${ECHO_T}none" >&6
7797 # Check for command to grab the raw symbol name followed by C symbol from nm.
7798 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7799 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7800 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 # These are sane defaults that work on at least a few old systems.
7805 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7807 # Character class describing NM global symbol codes.
7808 symcode='[BCDEGRST]'
7810 # Regexp to match symbols that can be accessed directly from C.
7811 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7813 # Transform an extracted symbol line into a proper C declaration
7814 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7816 # Transform an extracted symbol line into symbol name and symbol address
7817 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'"
7819 # Define system-specific variables.
7824 cygwin* | mingw* | pw32*)
7825 symcode='[ABCDGISTW]'
7827 hpux*) # Its linker distinguishes data from code symbols
7828 if test "$host_cpu" = ia64; then
7829 symcode='[ABCDEGRST]'
7831 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7832 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'"
7835 if test "$host_cpu" = ia64; then
7836 symcode='[ABCDGIRSTW]'
7837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7838 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'"
7842 symcode='[BCDEGRST]'
7845 symcode='[BCDEGQRST]'
7855 # Handle CRLF in mingw tool chain
7859 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7863 # If we're using GNU nm, then use its standard symbol codes.
7864 case `$NM -V 2>&1` in
7865 *GNU* | *'with BFD'*)
7866 symcode='[ABCDGIRSTW]' ;;
7869 # Try without a prefix undercore, then with it.
7870 for ac_symprfx in "" "_"; do
7872 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7873 symxfrm="\\1 $ac_symprfx\\2 \\2"
7875 # Write the raw and C identifiers.
7876 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7878 # Check to see that the pipe works correctly.
7882 cat > conftest.$ac_ext <<EOF
7887 void nm_test_func(){}
7891 int main(){nm_test_var='a';nm_test_func();return(0);}
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; then
7899 # Now try to grab the symbols.
7901 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7902 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && test -s "$nlist"; then
7906 # Try sorting and uniquifying the output.
7907 if sort "$nlist" | uniq > "$nlist"T; then
7908 mv -f "$nlist"T "$nlist"
7913 # Make sure that we snagged all the symbols we need.
7914 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7915 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7916 cat <<EOF > conftest.$ac_ext
7922 # Now generate the symbol file.
7923 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7925 cat <<EOF >> conftest.$ac_ext
7926 #if defined (__STDC__) && __STDC__
7927 # define lt_ptr_t void *
7929 # define lt_ptr_t char *
7933 /* The mapping between symbol names and symbols. */
7938 lt_preloaded_symbols[] =
7941 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7942 cat <<\EOF >> conftest.$ac_ext
7950 # Now try linking the two files.
7951 mv conftest.$ac_objext conftstm.$ac_objext
7952 lt_save_LIBS="$LIBS"
7953 lt_save_CFLAGS="$CFLAGS"
7954 LIBS="conftstm.$ac_objext"
7955 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957 (eval $ac_link) 2>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7963 LIBS="$lt_save_LIBS"
7964 CFLAGS="$lt_save_CFLAGS"
7966 echo "cannot find nm_test_func in $nlist" >&5
7969 echo "cannot find nm_test_var in $nlist" >&5
7972 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7975 echo "$progname: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7978 rm -f conftest* conftst*
7980 # Do not use the global_symbol_pipe unless it works.
7981 if test "$pipe_works" = yes; then
7984 lt_cv_sys_global_symbol_pipe=
7990 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7991 lt_cv_sys_global_symbol_to_cdecl=
7993 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7994 echo "$as_me:$LINENO: result: failed" >&5
7995 echo "${ECHO_T}failed" >&6
7997 echo "$as_me:$LINENO: result: ok" >&5
7998 echo "${ECHO_T}ok" >&6
8001 echo "$as_me:$LINENO: checking for objdir" >&5
8002 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8003 if test "${lt_cv_objdir+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 rm -f .libs 2>/dev/null
8007 mkdir .libs 2>/dev/null
8008 if test -d .libs; then
8011 # MS-DOS does not allow filenames that begin with a dot.
8014 rmdir .libs 2>/dev/null
8016 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8017 echo "${ECHO_T}$lt_cv_objdir" >&6
8018 objdir=$lt_cv_objdir
8026 # AIX sometimes has problems with the GCC collect2 program. For some
8027 # reason, if we set the COLLECT_NAMES environment variable, the problems
8028 # vanish in a puff of smoke.
8029 if test "X${COLLECT_NAMES+set}" != Xset; then
8031 export COLLECT_NAMES
8036 # Sed substitution that helps us do robust quoting. It backslashifies
8037 # metacharacters that are still active within double-quoted strings.
8038 Xsed='sed -e 1s/^X//'
8039 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8041 # Same as above, but do not quote variable references.
8042 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8044 # Sed substitution to delay expansion of an escaped shell variable in a
8045 # double_quote_subst'ed string.
8046 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8048 # Sed substitution to avoid accidental globbing in evaled expressions
8049 no_glob_subst='s/\*/\\\*/g'
8055 default_ofile=libtool
8056 can_build_shared=yes
8058 # All known linkers require a `.a' archive for static linking (except M$VC,
8059 # which needs '.lib').
8061 ltmain="$ac_aux_dir/ltmain.sh"
8062 ofile="$default_ofile"
8063 with_gnu_ld="$lt_cv_prog_gnu_ld"
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8067 set dummy ${ac_tool_prefix}ar; ac_word=$2
8068 echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8070 if test "${ac_cv_prog_AR+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 if test -n "$AR"; then
8074 ac_cv_prog_AR="$AR" # Let the user override the test.
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_AR="${ac_tool_prefix}ar"
8084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 if test -n "$AR"; then
8094 echo "$as_me:$LINENO: result: $AR" >&5
8095 echo "${ECHO_T}$AR" >&6
8097 echo "$as_me:$LINENO: result: no" >&5
8098 echo "${ECHO_T}no" >&6
8102 if test -z "$ac_cv_prog_AR"; then
8104 # Extract the first word of "ar", so it can be a program name with args.
8105 set dummy ar; ac_word=$2
8106 echo "$as_me:$LINENO: checking for $ac_word" >&5
8107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 if test -n "$ac_ct_AR"; then
8112 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121 ac_cv_prog_ac_ct_AR="ar"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8132 if test -n "$ac_ct_AR"; then
8133 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8134 echo "${ECHO_T}$ac_ct_AR" >&6
8136 echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6
8145 if test -n "$ac_tool_prefix"; then
8146 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8147 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8148 echo "$as_me:$LINENO: checking for $ac_word" >&5
8149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8150 if test "${ac_cv_prog_RANLIB+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 if test -n "$RANLIB"; then
8154 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 RANLIB=$ac_cv_prog_RANLIB
8173 if test -n "$RANLIB"; then
8174 echo "$as_me:$LINENO: result: $RANLIB" >&5
8175 echo "${ECHO_T}$RANLIB" >&6
8177 echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6
8182 if test -z "$ac_cv_prog_RANLIB"; then
8183 ac_ct_RANLIB=$RANLIB
8184 # Extract the first word of "ranlib", so it can be a program name with args.
8185 set dummy ranlib; ac_word=$2
8186 echo "$as_me:$LINENO: checking for $ac_word" >&5
8187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 if test -n "$ac_ct_RANLIB"; then
8192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_ac_ct_RANLIB="ranlib"
8202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8211 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8212 if test -n "$ac_ct_RANLIB"; then
8213 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8214 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8216 echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8220 RANLIB=$ac_ct_RANLIB
8222 RANLIB="$ac_cv_prog_RANLIB"
8225 if test -n "$ac_tool_prefix"; then
8226 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8227 set dummy ${ac_tool_prefix}strip; ac_word=$2
8228 echo "$as_me:$LINENO: checking for $ac_word" >&5
8229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8230 if test "${ac_cv_prog_STRIP+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 if test -n "$STRIP"; then
8234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 STRIP=$ac_cv_prog_STRIP
8253 if test -n "$STRIP"; then
8254 echo "$as_me:$LINENO: result: $STRIP" >&5
8255 echo "${ECHO_T}$STRIP" >&6
8257 echo "$as_me:$LINENO: result: no" >&5
8258 echo "${ECHO_T}no" >&6
8262 if test -z "$ac_cv_prog_STRIP"; then
8264 # Extract the first word of "strip", so it can be a program name with args.
8265 set dummy strip; ac_word=$2
8266 echo "$as_me:$LINENO: checking for $ac_word" >&5
8267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8268 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 if test -n "$ac_ct_STRIP"; then
8272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_ac_ct_STRIP="strip"
8282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8291 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8292 if test -n "$ac_ct_STRIP"; then
8293 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8294 echo "${ECHO_T}$ac_ct_STRIP" >&6
8296 echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6
8302 STRIP="$ac_cv_prog_STRIP"
8307 old_CFLAGS="$CFLAGS"
8309 # Set sane defaults for various variables
8310 test -z "$AR" && AR=ar
8311 test -z "$AR_FLAGS" && AR_FLAGS=cru
8312 test -z "$AS" && AS=as
8313 test -z "$CC" && CC=cc
8314 test -z "$LTCC" && LTCC=$CC
8315 test -z "$DLLTOOL" && DLLTOOL=dlltool
8316 test -z "$LD" && LD=ld
8317 test -z "$LN_S" && LN_S="ln -s"
8318 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8319 test -z "$NM" && NM=nm
8320 test -z "$SED" && SED=sed
8321 test -z "$OBJDUMP" && OBJDUMP=objdump
8322 test -z "$RANLIB" && RANLIB=:
8323 test -z "$STRIP" && STRIP=:
8324 test -z "$ac_objext" && ac_objext=o
8326 # Determine commands to create old-style static archives.
8327 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8328 old_postinstall_cmds='chmod 644 $oldlib'
8329 old_postuninstall_cmds=
8331 if test -n "$RANLIB"; then
8334 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8337 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8340 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8343 for cc_temp in $compiler""; do
8345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8351 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8354 # Only perform the check for file, if the check method requires it
8355 case $deplibs_check_method in
8357 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8358 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8359 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8360 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8368 lt_save_MAGIC_CMD="$MAGIC_CMD"
8369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8370 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8371 for ac_dir in $ac_dummy; do
8373 test -z "$ac_dir" && ac_dir=.
8374 if test -f $ac_dir/${ac_tool_prefix}file; then
8375 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8376 if test -n "$file_magic_test_file"; then
8377 case $deplibs_check_method in
8379 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8381 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8382 $EGREP "$file_magic_regex" > /dev/null; then
8387 *** Warning: the command libtool uses to detect shared libraries,
8388 *** $file_magic_cmd, produces output that libtool cannot recognize.
8389 *** The result is that libtool may fail to recognize shared libraries
8390 *** as such. This will affect the creation of libtool libraries that
8391 *** depend on shared libraries, but programs linked with such libtool
8392 *** libraries will work regardless of this problem. Nevertheless, you
8393 *** may want to report the problem to your system manager and/or to
8394 *** bug-libtool@gnu.org
8404 MAGIC_CMD="$lt_save_MAGIC_CMD"
8409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8410 if test -n "$MAGIC_CMD"; then
8411 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8412 echo "${ECHO_T}$MAGIC_CMD" >&6
8414 echo "$as_me:$LINENO: result: no" >&5
8415 echo "${ECHO_T}no" >&6
8418 if test -z "$lt_cv_path_MAGIC_CMD"; then
8419 if test -n "$ac_tool_prefix"; then
8420 echo "$as_me:$LINENO: checking for file" >&5
8421 echo $ECHO_N "checking for file... $ECHO_C" >&6
8422 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8430 lt_save_MAGIC_CMD="$MAGIC_CMD"
8431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8432 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8433 for ac_dir in $ac_dummy; do
8435 test -z "$ac_dir" && ac_dir=.
8436 if test -f $ac_dir/file; then
8437 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8438 if test -n "$file_magic_test_file"; then
8439 case $deplibs_check_method in
8441 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8442 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8443 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8444 $EGREP "$file_magic_regex" > /dev/null; then
8449 *** Warning: the command libtool uses to detect shared libraries,
8450 *** $file_magic_cmd, produces output that libtool cannot recognize.
8451 *** The result is that libtool may fail to recognize shared libraries
8452 *** as such. This will affect the creation of libtool libraries that
8453 *** depend on shared libraries, but programs linked with such libtool
8454 *** libraries will work regardless of this problem. Nevertheless, you
8455 *** may want to report the problem to your system manager and/or to
8456 *** bug-libtool@gnu.org
8466 MAGIC_CMD="$lt_save_MAGIC_CMD"
8471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8472 if test -n "$MAGIC_CMD"; then
8473 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8474 echo "${ECHO_T}$MAGIC_CMD" >&6
8476 echo "$as_me:$LINENO: result: no" >&5
8477 echo "${ECHO_T}no" >&6
8490 enable_win32_dll=yes
8492 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8493 if test "${enable_libtool_lock+set}" = set; then
8494 enableval="$enable_libtool_lock"
8497 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8500 # Check whether --with-pic or --without-pic was given.
8501 if test "${with_pic+set}" = set; then
8507 test -z "$pic_mode" && pic_mode=default
8509 # Use C for the default configuration in the libtool script
8513 ac_cpp='$CPP $CPPFLAGS'
8514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8519 # Source file extension for C test sources.
8522 # Object file extension for compiled C test sources.
8526 # Code to be used in simple compile tests
8527 lt_simple_compile_test_code="int some_variable = 0;\n"
8529 # Code to be used in simple link tests
8530 lt_simple_link_test_code='int main(){return(0);}\n'
8533 # If no C compiler was specified, use CC.
8536 # Allow CC to be a program name with arguments.
8540 # save warnings/boilerplate of simple test code
8541 ac_outfile=conftest.$ac_objext
8542 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8544 _lt_compiler_boilerplate=`cat conftest.err`
8547 ac_outfile=conftest.$ac_objext
8548 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8550 _lt_linker_boilerplate=`cat conftest.err`
8555 # Check for any special shared library compilation flags.
8558 if test "$GCC" = no; then
8561 lt_prog_cc_shlib='-belf'
8565 if test -n "$lt_prog_cc_shlib"; then
8566 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8567 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8568 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8570 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8571 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8572 lt_cv_prog_cc_can_build_shared=no
8578 # Check to make sure the static flag actually works.
8580 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8581 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8582 if test "${lt_prog_compiler_static_works+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 lt_prog_compiler_static_works=no
8586 save_LDFLAGS="$LDFLAGS"
8587 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8588 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8589 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8590 # The compiler can only warn and ignore the option if not recognized
8591 # So say no if there are warnings
8592 if test -s conftest.err; then
8593 # Append any errors to the config.log.
8594 cat conftest.err 1>&5
8595 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8596 $SED '/^$/d' conftest.err >conftest.er2
8597 if diff conftest.exp conftest.er2 >/dev/null; then
8598 lt_prog_compiler_static_works=yes
8601 lt_prog_compiler_static_works=yes
8605 LDFLAGS="$save_LDFLAGS"
8608 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8609 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8611 if test x"$lt_prog_compiler_static_works" = xyes; then
8614 lt_prog_compiler_static=
8620 lt_prog_compiler_no_builtin_flag=
8622 if test "$GCC" = yes; then
8623 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8626 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8627 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8628 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 lt_cv_prog_compiler_rtti_exceptions=no
8632 ac_outfile=conftest.$ac_objext
8633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8634 lt_compiler_flag="-fno-rtti -fno-exceptions"
8635 # Insert the option either (1) after the last *FLAGS variable, or
8636 # (2) before a word containing "conftest.", or (3) at the end.
8637 # Note that $ac_compile itself does not contain backslashes and begins
8638 # with a dollar sign (not a hyphen), so the echo should work correctly.
8639 # The option is referenced via a variable to avoid confusing sed.
8640 lt_compile=`echo "$ac_compile" | $SED \
8641 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8643 -e 's:$: $lt_compiler_flag:'`
8644 (eval echo "\"\$as_me:8644: $lt_compile\"" >&5)
8645 (eval "$lt_compile" 2>conftest.err)
8647 cat conftest.err >&5
8648 echo "$as_me:8648: \$? = $ac_status" >&5
8649 if (exit $ac_status) && test -s "$ac_outfile"; then
8650 # The compiler can only warn and ignore the option if not recognized
8651 # So say no if there are warnings other than the usual output.
8652 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8653 $SED '/^$/d' conftest.err >conftest.er2
8654 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8655 lt_cv_prog_compiler_rtti_exceptions=yes
8661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8662 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8672 lt_prog_compiler_wl=
8673 lt_prog_compiler_pic=
8674 lt_prog_compiler_static=
8676 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8677 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8679 if test "$GCC" = yes; then
8680 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_static='-static'
8685 # All AIX code is PIC.
8686 if test "$host_cpu" = ia64; then
8687 # AIX 5 now supports IA64 processor
8688 lt_prog_compiler_static='-Bstatic'
8693 # FIXME: we need at least 68020 code to build shared libraries, but
8694 # adding the `-m68020' flag to GCC prevents building anything better,
8696 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8699 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8700 # PIC is the default for these OSes.
8703 mingw* | pw32* | os2*)
8704 # This hack is so that the source file can tell whether it is being
8705 # built for inclusion in a dll (and should export symbols for example).
8706 lt_prog_compiler_pic='-DDLL_EXPORT'
8709 darwin* | rhapsody*)
8710 # PIC is the default on this platform
8711 # Common symbols not allowed in MH_DYLIB files
8712 lt_prog_compiler_pic='-fno-common'
8716 # Just because we use GCC doesn't mean we suddenly get shared libraries
8717 # on systems that don't support them.
8718 lt_prog_compiler_can_build_shared=no
8723 if test -d /usr/nec; then
8724 lt_prog_compiler_pic=-Kconform_pic
8729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8736 lt_prog_compiler_pic='-fPIC'
8742 lt_prog_compiler_pic='-fPIC'
8746 # PORTME Check for flag to pass linker flags through the system compiler.
8749 lt_prog_compiler_wl='-Wl,'
8750 if test "$host_cpu" = ia64; then
8751 # AIX 5 now supports IA64 processor
8752 lt_prog_compiler_static='-Bstatic'
8754 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8758 # PIC is the default on this platform
8759 # Common symbols not allowed in MH_DYLIB files
8760 case $cc_basename in
8762 lt_prog_compiler_pic='-qnocommon'
8763 lt_prog_compiler_wl='-Wl,'
8768 mingw* | pw32* | os2*)
8769 # This hack is so that the source file can tell whether it is being
8770 # built for inclusion in a dll (and should export symbols for example).
8771 lt_prog_compiler_pic='-DDLL_EXPORT'
8774 hpux9* | hpux10* | hpux11*)
8775 lt_prog_compiler_wl='-Wl,'
8776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8783 lt_prog_compiler_pic='+Z'
8786 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8787 lt_prog_compiler_static='${wl}-a ${wl}archive'
8790 irix5* | irix6* | nonstopux*)
8791 lt_prog_compiler_wl='-Wl,'
8792 # PIC (with -KPIC) is the default.
8793 lt_prog_compiler_static='-non_shared'
8797 lt_prog_compiler_pic='-KPIC'
8798 lt_prog_compiler_static='-Bstatic'
8802 case $cc_basename in
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_pic='-KPIC'
8806 lt_prog_compiler_static='-static'
8808 pgcc* | pgf77* | pgf90*)
8809 # Portland Group compilers (*not* the Pentium gcc compiler,
8810 # which looks to be a dead project)
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-fpic'
8813 lt_prog_compiler_static='-static'
8816 lt_prog_compiler_wl='-Wl,'
8817 # All Alpha code is PIC.
8818 lt_prog_compiler_static='-non_shared'
8823 osf3* | osf4* | osf5*)
8824 lt_prog_compiler_wl='-Wl,'
8825 # All OSF/1 code is PIC.
8826 lt_prog_compiler_static='-non_shared'
8830 lt_prog_compiler_pic='-Kpic'
8831 lt_prog_compiler_static='-dn'
8835 lt_prog_compiler_pic='-KPIC'
8836 lt_prog_compiler_static='-Bstatic'
8837 case $cc_basename in
8839 lt_prog_compiler_wl='-Qoption ld ';;
8841 lt_prog_compiler_wl='-Wl,';;
8846 lt_prog_compiler_wl='-Qoption ld '
8847 lt_prog_compiler_pic='-PIC'
8848 lt_prog_compiler_static='-Bstatic'
8851 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8858 if test -d /usr/nec ;then
8859 lt_prog_compiler_pic='-Kconform_pic'
8860 lt_prog_compiler_static='-Bstatic'
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_can_build_shared=no
8870 lt_prog_compiler_pic='-pic'
8871 lt_prog_compiler_static='-Bstatic'
8875 lt_prog_compiler_can_build_shared=no
8880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8881 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8884 # Check to make sure the PIC flag actually works.
8886 if test -n "$lt_prog_compiler_pic"; then
8888 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8889 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8890 if test "${lt_prog_compiler_pic_works+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 lt_prog_compiler_pic_works=no
8894 ac_outfile=conftest.$ac_objext
8895 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8896 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8897 # Insert the option either (1) after the last *FLAGS variable, or
8898 # (2) before a word containing "conftest.", or (3) at the end.
8899 # Note that $ac_compile itself does not contain backslashes and begins
8900 # with a dollar sign (not a hyphen), so the echo should work correctly.
8901 # The option is referenced via a variable to avoid confusing sed.
8902 lt_compile=`echo "$ac_compile" | $SED \
8903 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8905 -e 's:$: $lt_compiler_flag:'`
8906 (eval echo "\"\$as_me:8906: $lt_compile\"" >&5)
8907 (eval "$lt_compile" 2>conftest.err)
8909 cat conftest.err >&5
8910 echo "$as_me:8910: \$? = $ac_status" >&5
8911 if (exit $ac_status) && test -s "$ac_outfile"; then
8912 # The compiler can only warn and ignore the option if not recognized
8913 # So say no if there are warnings other than the usual output.
8914 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8915 $SED '/^$/d' conftest.err >conftest.er2
8916 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8917 lt_prog_compiler_pic_works=yes
8923 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8924 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8926 if test x"$lt_prog_compiler_pic_works" = xyes; then
8927 case $lt_prog_compiler_pic in
8929 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8932 lt_prog_compiler_pic=
8933 lt_prog_compiler_can_build_shared=no
8938 # For platforms which do not support PIC, -DPIC is meaningless:
8940 lt_prog_compiler_pic=
8943 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8947 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8948 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8949 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 lt_cv_prog_compiler_c_o=no
8953 $rm -r conftest 2>/dev/null
8957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8959 lt_compiler_flag="-o out/conftest2.$ac_objext"
8960 # Insert the option either (1) after the last *FLAGS variable, or
8961 # (2) before a word containing "conftest.", or (3) at the end.
8962 # Note that $ac_compile itself does not contain backslashes and begins
8963 # with a dollar sign (not a hyphen), so the echo should work correctly.
8964 lt_compile=`echo "$ac_compile" | $SED \
8965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8967 -e 's:$: $lt_compiler_flag:'`
8968 (eval echo "\"\$as_me:8968: $lt_compile\"" >&5)
8969 (eval "$lt_compile" 2>out/conftest.err)
8971 cat out/conftest.err >&5
8972 echo "$as_me:8972: \$? = $ac_status" >&5
8973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8975 # The compiler can only warn and ignore the option if not recognized
8976 # So say no if there are warnings
8977 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8978 $SED '/^$/d' out/conftest.err >out/conftest.er2
8979 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8980 lt_cv_prog_compiler_c_o=yes
8985 # SGI C++ compiler will create directory out/ii_files/ for
8986 # template instantiation
8987 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8988 $rm out/* && rmdir out
8994 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8995 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8998 hard_links="nottested"
8999 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9000 # do not overwrite the value of need_locks provided by the user
9001 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9002 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9007 ln conftest.a conftest.b 2>&5 || hard_links=no
9008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9009 echo "$as_me:$LINENO: result: $hard_links" >&5
9010 echo "${ECHO_T}$hard_links" >&6
9011 if test "$hard_links" = no; then
9012 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9013 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9020 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9021 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9024 allow_undefined_flag=
9025 enable_shared_with_static_runtimes=no
9027 archive_expsym_cmds=
9028 old_archive_From_new_cmds=
9029 old_archive_from_expsyms_cmds=
9030 export_dynamic_flag_spec=
9031 whole_archive_flag_spec=
9032 thread_safe_flag_spec=
9033 hardcode_libdir_flag_spec=
9034 hardcode_libdir_flag_spec_ld=
9035 hardcode_libdir_separator=
9038 hardcode_shlibpath_var=unsupported
9039 link_all_deplibs=unknown
9040 hardcode_automatic=no
9043 always_export_symbols=no
9044 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9045 # include_expsyms should be a list of space-separated symbols to be *always*
9046 # included in the symbol list
9048 # exclude_expsyms can be an extended regexp of symbols to exclude
9049 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9050 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9051 # as well as any symbol that contains `d'.
9052 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9053 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9054 # platforms (ab)use it in PIC code, but their linkers get confused if
9055 # the symbol is explicitly referenced. Since portable code cannot
9056 # rely on this symbol name, it's probably fine to never include it in
9057 # preloaded symbol tables.
9058 extract_expsyms_cmds=
9059 # Just being paranoid about ensuring that cc_basename is set.
9060 for cc_temp in $compiler""; do
9062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9068 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9071 cygwin* | mingw* | pw32*)
9072 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9073 # When not using gcc, we currently assume that we are using
9074 # Microsoft Visual C++.
9075 if test "$GCC" != yes; then
9085 if test "$with_gnu_ld" = yes; then
9086 # If archive_cmds runs LD, not CC, wlarc should be empty
9089 # Set some defaults for GNU ld with shared library support. These
9090 # are reset later if shared libraries are not supported. Putting them
9091 # here allows them to be overridden if necessary.
9092 runpath_var=LD_RUN_PATH
9093 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9094 export_dynamic_flag_spec='${wl}--export-dynamic'
9095 # ancient GNU ld didn't support --whole-archive et. al.
9096 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9097 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9099 whole_archive_flag_spec=
9101 supports_anon_versioning=no
9102 case `$LD -v 2>/dev/null` in
9103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9106 *\ 2.11.*) ;; # other 2.11 versions
9107 *) supports_anon_versioning=yes ;;
9110 # See if GNU ld supports shared libraries.
9112 aix3* | aix4* | aix5*)
9113 # On AIX/PPC, the GNU linker is very broken
9114 if test "$host_cpu" != ia64; then
9118 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9119 *** to be unable to reliably create shared libraries on AIX.
9120 *** Therefore, libtool is disabling shared libraries support. If you
9121 *** really care for shared libraries, you may want to modify your PATH
9122 *** so that a non-GNU linker is found, and then restart.
9129 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)'
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 hardcode_minus_L=yes
9133 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9134 # that the semantics of dynamic libraries on AmigaOS, at least up
9135 # to version 4, is to share data among multiple programs linked
9136 # with the same dynamic library. Since this doesn't match the
9137 # behavior of shared libraries on other platforms, we can't use
9143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9144 allow_undefined_flag=unsupported
9145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9146 # support --undefined. This deserves some investigation. FIXME
9147 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9153 cygwin* | mingw* | pw32*)
9154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9155 # as there is no search path for DLLs.
9156 hardcode_libdir_flag_spec='-L$libdir'
9157 allow_undefined_flag=unsupported
9158 always_export_symbols=no
9159 enable_shared_with_static_runtimes=yes
9160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9164 # If the export-symbols file already is a .def file (1st line
9165 # is EXPORTS), use it as is; otherwise, prepend...
9166 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9167 cp $export_symbols $output_objdir/$soname.def;
9169 echo EXPORTS > $output_objdir/$soname.def;
9170 cat $export_symbols >> $output_objdir/$soname.def;
9172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9181 case $cc_basename,$host_cpu in
9182 pgcc*) # Portland Group C compiler
9183 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'
9184 tmp_addflag=' $pic_flag'
9186 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9187 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'
9188 tmp_addflag=' $pic_flag -Mnomain' ;;
9189 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9190 tmp_addflag=' -i_dynamic' ;;
9191 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9192 tmp_addflag=' -i_dynamic -nofor_main' ;;
9193 ifc* | ifort*) # Intel Fortran compiler
9194 tmp_addflag=' -nofor_main' ;;
9196 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198 if test $supports_anon_versioning = yes; then
9199 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9200 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9201 $echo "local: *; };" >> $output_objdir/$libname.ver~
9202 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9211 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9220 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9224 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9225 *** create shared libraries on Solaris systems. Therefore, libtool
9226 *** is disabling shared libraries support. We urge you to upgrade GNU
9227 *** binutils to release 2.9.1 or newer. Another option is to modify
9228 *** your PATH or compiler configuration so that the native linker is
9229 *** used, and then restart.
9232 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9241 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9244 hardcode_shlibpath_var=no
9248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9257 if test "$ld_shlibs" = no; then
9259 hardcode_libdir_flag_spec=
9260 export_dynamic_flag_spec=
9261 whole_archive_flag_spec=
9264 # PORTME fill in a description of your system's linker (not GNU ld)
9267 allow_undefined_flag=unsupported
9268 always_export_symbols=yes
9269 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'
9270 # Note: this linker hardcodes the directories in LIBPATH if there
9271 # are no directories specified by -L.
9272 hardcode_minus_L=yes
9273 if test "$GCC" = yes && test -z "$link_static_flag"; then
9274 # Neither direct hardcoding nor static linking is supported with a
9276 hardcode_direct=unsupported
9281 if test "$host_cpu" = ia64; then
9282 # On IA64, the linker does run time linking by default, so we don't
9283 # have to do anything special.
9284 aix_use_runtimelinking=no
9285 exp_sym_flag='-Bexport'
9288 # If we're using GNU nm, then we don't want the "-C" option.
9289 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9290 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9291 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'
9293 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'
9295 aix_use_runtimelinking=no
9297 # Test if we are trying to use run time linking or normal
9298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9299 # need to do runtime linking.
9300 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9301 for ld_flag in $LDFLAGS; do
9302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9303 aix_use_runtimelinking=yes
9309 exp_sym_flag='-bexport'
9310 no_entry_flag='-bnoentry'
9313 # When large executables or shared objects are built, AIX ld can
9314 # have problems creating the table of contents. If linking a library
9315 # or program results in "error TOC overflow" add -mminimal-toc to
9316 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9317 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9321 hardcode_libdir_separator=':'
9322 link_all_deplibs=yes
9324 if test "$GCC" = yes; then
9325 case $host_os in aix4.[012]|aix4.[012].*)
9326 # We only want to do this on AIX 4.2 and lower, the check
9327 # below for broken collect2 doesn't work under 4.3+
9328 collect2name=`${CC} -print-prog-name=collect2`
9329 if test -f "$collect2name" && \
9330 strings "$collect2name" | grep resolve_lib_name >/dev/null
9332 # We have reworked collect2
9335 # We have old collect2
9336 hardcode_direct=unsupported
9337 # It fails to find uninstalled libraries when the uninstalled
9338 # path is not listed in the libpath. Setting hardcode_minus_L
9339 # to unsupported forces relinking
9340 hardcode_minus_L=yes
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_libdir_separator=
9345 shared_flag='-shared'
9346 if test "$aix_use_runtimelinking" = yes; then
9347 shared_flag="$shared_flag "'${wl}-G'
9351 if test "$host_cpu" = ia64; then
9352 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9353 # chokes on -Wl,-G. The following line is correct:
9356 if test "$aix_use_runtimelinking" = yes; then
9357 shared_flag='${wl}-G'
9359 shared_flag='${wl}-bM:SRE'
9364 # It seems that -bexpall does not export symbols beginning with
9365 # underscore (_), so it is better to generate a list of symbols to export.
9366 always_export_symbols=yes
9367 if test "$aix_use_runtimelinking" = yes; then
9368 # Warning - without using the other runtime loading flags (-brtl),
9369 # -berok will link without error, but may produce a broken library.
9370 allow_undefined_flag='-berok'
9371 # Determine the default libpath from the value encoded in an empty executable.
9372 cat >conftest.$ac_ext <<_ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389 (eval $ac_link) 2>conftest.er1
9391 grep -v '^ *+' conftest.er1 >conftest.err
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } &&
9396 { ac_try='test -z "$ac_c_werror_flag"
9397 || test ! -s conftest.err'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; } &&
9403 { ac_try='test -s conftest$ac_exeext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9412 # Check for a 64-bit object if we didn't find anything.
9413 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; }
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9420 rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9425 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"
9427 if test "$host_cpu" = ia64; then
9428 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9429 allow_undefined_flag="-z nodefs"
9430 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"
9432 # Determine the default libpath from the value encoded in an empty executable.
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9450 (eval $ac_link) 2>conftest.er1
9452 grep -v '^ *+' conftest.er1 >conftest.err
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -z "$ac_c_werror_flag"
9458 || test ! -s conftest.err'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; } &&
9464 { ac_try='test -s conftest$ac_exeext'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9473 # Check for a 64-bit object if we didn't find anything.
9474 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; }
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9481 rm -f conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486 # Warning - without using the other run time loading flags,
9487 # -berok will link without error, but may produce a broken library.
9488 no_undefined_flag=' ${wl}-bernotok'
9489 allow_undefined_flag=' ${wl}-berok'
9490 # -bexpall does not export symbols beginning with underscore (_)
9491 always_export_symbols=yes
9492 # Exported symbols can be pulled into shared objects from archives
9493 whole_archive_flag_spec=' '
9494 archive_cmds_need_lc=yes
9495 # This is similar to how AIX traditionally builds it's shared libraries.
9496 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'
9502 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)'
9503 hardcode_libdir_flag_spec='-L$libdir'
9504 hardcode_minus_L=yes
9505 # see comment about different semantics on the GNU ld section
9510 export_dynamic_flag_spec=-rdynamic
9513 cygwin* | mingw* | pw32*)
9514 # When not using gcc, we currently assume that we are using
9515 # Microsoft Visual C++.
9516 # hardcode_libdir_flag_spec is actually meaningless, as there is
9517 # no search path for DLLs.
9518 hardcode_libdir_flag_spec=' '
9519 allow_undefined_flag=unsupported
9520 # Tell ltmain to make .lib files, not .a files.
9522 # Tell ltmain to make .dll files, not .so files.
9524 # FIXME: Setting linknames here is a bad hack.
9525 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9526 # The linker will automatically build a .lib file if we build a DLL.
9527 old_archive_From_new_cmds='true'
9528 # FIXME: Should let the user specify the lib program.
9529 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9530 fix_srcfile_path='`cygpath -w "$srcfile"`'
9531 enable_shared_with_static_runtimes=yes
9534 darwin* | rhapsody*)
9536 rhapsody* | darwin1.[012])
9537 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9540 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9541 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9543 case ${MACOSX_DEPLOYMENT_TARGET} in
9545 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9548 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9554 archive_cmds_need_lc=no
9556 hardcode_automatic=yes
9557 hardcode_shlibpath_var=unsupported
9558 whole_archive_flag_spec=''
9559 link_all_deplibs=yes
9560 if test "$GCC" = yes ; then
9561 output_verbose_link_cmd='echo'
9562 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9563 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9564 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9565 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}'
9566 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}'
9568 case $cc_basename in
9570 output_verbose_link_cmd='echo'
9571 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9572 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9574 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}'
9575 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}'
9585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_libdir_flag_spec='-L$libdir'
9587 hardcode_shlibpath_var=no
9594 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9595 # support. Future versions do this automatically, but an explicit c++rt0.o
9596 # does not break anything, and helps significantly (at the cost of a little
9599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9600 hardcode_libdir_flag_spec='-R$libdir'
9602 hardcode_shlibpath_var=no
9605 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_minus_L=yes
9610 hardcode_shlibpath_var=no
9613 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9614 freebsd* | kfreebsd*-gnu | dragonfly*)
9615 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9616 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_shlibpath_var=no
9622 if test "$GCC" = yes; then
9623 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'
9625 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'
9627 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9628 hardcode_libdir_separator=:
9631 # hardcode_minus_L: Not really in the search PATH,
9632 # but as the default location of the library.
9633 hardcode_minus_L=yes
9634 export_dynamic_flag_spec='${wl}-E'
9638 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9641 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9653 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9657 if test "$with_gnu_ld" = no; then
9660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9661 hardcode_libdir_flag_spec_ld='+b $libdir'
9662 hardcode_libdir_separator=:
9664 hardcode_shlibpath_var=no
9667 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_shlibpath_var=no
9671 # hardcode_minus_L: Not really in the search PATH,
9672 # but as the default location of the library.
9673 hardcode_minus_L=yes
9676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9677 hardcode_libdir_separator=:
9679 export_dynamic_flag_spec='${wl}-E'
9681 # hardcode_minus_L: Not really in the search PATH,
9682 # but as the default location of the library.
9683 hardcode_minus_L=yes
9689 irix5* | irix6* | nonstopux*)
9690 if test "$GCC" = yes; then
9691 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'
9693 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'
9694 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697 hardcode_libdir_separator=:
9698 link_all_deplibs=yes
9702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9705 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9707 hardcode_libdir_flag_spec='-R$libdir'
9709 hardcode_shlibpath_var=no
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9716 hardcode_libdir_separator=:
9717 hardcode_shlibpath_var=no
9722 hardcode_shlibpath_var=no
9723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9726 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9727 export_dynamic_flag_spec='${wl}-E'
9730 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_libdir_flag_spec='-R$libdir'
9735 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 hardcode_minus_L=yes
9745 allow_undefined_flag=unsupported
9746 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'
9747 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9751 if test "$GCC" = yes; then
9752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9753 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'
9755 allow_undefined_flag=' -expect_unresolved \*'
9756 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'
9758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9759 hardcode_libdir_separator=:
9762 osf4* | osf5*) # as osf3* with the addition of -msym flag
9763 if test "$GCC" = yes; then
9764 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9765 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'
9766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9768 allow_undefined_flag=' -expect_unresolved \*'
9769 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'
9770 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9771 $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'
9773 # Both c and cxx compiler support -rpath directly
9774 hardcode_libdir_flag_spec='-rpath $libdir'
9776 hardcode_libdir_separator=:
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_shlibpath_var=no
9782 export_dynamic_flag_spec='${wl}-Bexport'
9783 runpath_var=LD_RUN_PATH
9784 hardcode_runpath_var=yes
9788 no_undefined_flag=' -z text'
9789 if test "$GCC" = yes; then
9791 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9793 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9796 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9797 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9798 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9800 hardcode_libdir_flag_spec='-R$libdir'
9801 hardcode_shlibpath_var=no
9803 solaris2.[0-5] | solaris2.[0-5].*) ;;
9805 # The compiler driver will combine linker options so we
9806 # cannot just pass the convience library names through
9807 # without $wl, iff we do not link with $LD.
9808 # Luckily, gcc supports the same syntax we need for Sun Studio.
9809 # Supported since Solaris 2.6 (maybe 2.5.1?)
9812 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9814 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' ;;
9817 link_all_deplibs=yes
9821 if test "x$host_vendor" = xsequent; then
9822 # Use $CC to link under sequent, because it throws in some extra .o
9823 # files that make .init and .fini sections work.
9824 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9826 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9828 hardcode_libdir_flag_spec='-L$libdir'
9830 hardcode_minus_L=yes
9831 hardcode_shlibpath_var=no
9835 case $host_vendor in
9837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838 hardcode_direct=yes # is this really true???
9841 ## LD is ld it makes a PLAMLIB
9842 ## CC just makes a GrossModule.
9843 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9844 reload_cmds='$CC -r -o $output$reload_objs'
9848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9852 runpath_var='LD_RUN_PATH'
9853 hardcode_shlibpath_var=no
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_shlibpath_var=no
9859 export_dynamic_flag_spec='-Bexport'
9863 if test -d /usr/nec; then
9864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865 hardcode_shlibpath_var=no
9866 runpath_var=LD_RUN_PATH
9867 hardcode_runpath_var=yes
9873 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_shlibpath_var=no
9877 hardcode_runpath_var=yes
9878 runpath_var=LD_RUN_PATH
9881 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9882 no_undefined_flag='${wl}-z ${wl}text'
9883 if test "$GCC" = yes; then
9884 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9886 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9888 runpath_var='LD_RUN_PATH'
9889 hardcode_shlibpath_var=no
9893 no_undefined_flag=' -z text'
9894 # $CC -shared without GNU ld will not create a library from C++
9895 # object files and a static libstdc++, better avoid it by now
9896 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9899 hardcode_libdir_flag_spec=
9900 hardcode_shlibpath_var=no
9901 runpath_var='LD_RUN_PATH'
9905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906 hardcode_libdir_flag_spec='-L$libdir'
9907 hardcode_shlibpath_var=no
9916 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9917 echo "${ECHO_T}$ld_shlibs" >&6
9918 test "$ld_shlibs" = no && can_build_shared=no
9920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9921 if test "$GCC" = yes; then
9922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9926 # Do we need to explicitly link libc?
9928 case "x$archive_cmds_need_lc" in
9930 # Assume -lc should be added
9931 archive_cmds_need_lc=yes
9933 if test "$enable_shared" = yes && test "$GCC" = yes; then
9934 case $archive_cmds in
9936 # FIXME: we may have to deal with multi-command sequences.
9939 # Test whether the compiler implicitly links with -lc since on some
9940 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9941 # to ld, don't add -lc before -lgcc.
9942 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9943 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948 (eval $ac_compile) 2>&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } 2>conftest.err; then
9954 libobjs=conftest.$ac_objext
9956 wl=$lt_prog_compiler_wl
9962 lt_save_allow_undefined_flag=$allow_undefined_flag
9963 allow_undefined_flag=
9964 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9965 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }
9970 archive_cmds_need_lc=no
9972 archive_cmds_need_lc=yes
9974 allow_undefined_flag=$lt_save_allow_undefined_flag
9976 cat conftest.err 1>&5
9979 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9980 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9987 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9988 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9990 libname_spec='lib$name'
9998 shlibpath_overrides_runpath=unknown
10000 dynamic_linker="$host_os ld.so"
10001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10002 if test "$GCC" = yes; then
10003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10004 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10005 # if the path contains ";" then we assume it to be the separator
10006 # otherwise default to the standard path separator (i.e. ":") - it is
10007 # assumed that no part of a normal pathname contains ";" but that should
10008 # okay in the real world where ";" in dirpaths is itself problematic.
10009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10016 need_lib_prefix=unknown
10017 hardcode_into_libs=no
10019 # when you set need_version to no, make sure it does not cause -set_version
10020 # flags to be left without arguments
10021 need_version=unknown
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10027 shlibpath_var=LIBPATH
10029 # AIX 3 has no versioning support, so we append a major version to the name.
10030 soname_spec='${libname}${release}${shared_ext}$major'
10037 hardcode_into_libs=yes
10038 if test "$host_cpu" = ia64; then
10039 # AIX 5 supports IA64
10040 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10041 shlibpath_var=LD_LIBRARY_PATH
10043 # With GCC up to 2.95.x, collect2 would create an import file
10044 # for dependence libraries. The import file would start with
10045 # the line `#! .'. This would cause the generated library to
10046 # depend on `.', always an invalid library. This was fixed in
10047 # development snapshots of GCC prior to 3.0.
10049 aix4 | aix4.[01] | aix4.[01].*)
10050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10052 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10055 can_build_shared=no
10059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10060 # soname into executable. Probably we can add versioning support to
10061 # collect2, so additional links can be useful in future.
10062 if test "$aix_use_runtimelinking" = yes; then
10063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10064 # instead of lib<name>.a to let people know that these are not
10065 # typical AIX shared libraries.
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 # We preserve .a as extension for shared libraries through AIX4.2
10069 # and later when we are not doing run time linking.
10070 library_names_spec='${libname}${release}.a $libname.a'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10073 shlibpath_var=LIBPATH
10078 library_names_spec='$libname.ixlibrary $libname.a'
10079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10080 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'
10084 library_names_spec='${libname}${shared_ext}'
10085 dynamic_linker="$host_os ld.so"
10086 shlibpath_var=LIBRARY_PATH
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10098 # the default ld.so.conf also contains /usr/contrib/lib and
10099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10100 # libtool to hard-code these into programs
10103 cygwin* | mingw* | pw32*)
10104 version_type=windows
10109 case $GCC,$host_os in
10110 yes,cygwin* | yes,mingw* | yes,pw32*)
10111 library_names_spec='$libname.dll.a'
10112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10113 postinstall_cmds='base_file=`basename \${file}`~
10114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10115 dldir=$destdir/`dirname \$dlpath`~
10116 test -d \$dldir || mkdir -p \$dldir~
10117 $install_prog $dir/$dlname \$dldir/$dlname'
10118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10119 dlpath=$dir/\$dldll~
10121 shlibpath_overrides_runpath=yes
10125 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10126 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10127 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10130 # MinGW DLLs use traditional 'lib' prefix
10131 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10133 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10134 # It is most probably a Windows format PATH printed by
10135 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10136 # path with ; separators, and with drive letters. We can handle the
10137 # drive letters (cygwin fileutils understands them), so leave them,
10138 # especially as we might pass files found there to a mingw objdump,
10139 # which wouldn't understand a cygwinified path. Ahh.
10140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10146 # pw32 DLLs use 'pw' prefix rather than 'lib'
10147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10153 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10156 dynamic_linker='Win32 ld.exe'
10157 # FIXME: first we should search . and the directory the executable is in
10161 darwin* | rhapsody*)
10162 dynamic_linker="$host_os dyld"
10163 version_type=darwin
10166 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10167 soname_spec='${libname}${release}${major}$shared_ext'
10168 shlibpath_overrides_runpath=yes
10169 shlibpath_var=DYLD_LIBRARY_PATH
10170 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10171 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10172 if test "$GCC" = yes; then
10173 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"`
10175 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 shlibpath_var=LD_LIBRARY_PATH
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 shlibpath_overrides_runpath=no
10201 hardcode_into_libs=yes
10202 dynamic_linker='GNU ld.so'
10205 freebsd* | dragonfly*)
10206 # DragonFly does not have aout. When/if they implement a new
10207 # versioning mechanism, adjust this.
10208 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10209 version_type=freebsd-$objformat
10210 case $version_type in
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10221 shlibpath_var=LD_LIBRARY_PATH
10224 shlibpath_overrides_runpath=yes
10226 freebsd3.[01]* | freebsdelf3.[01]*)
10227 shlibpath_overrides_runpath=yes
10228 hardcode_into_libs=yes
10231 shlibpath_overrides_runpath=no
10232 hardcode_into_libs=yes
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 hardcode_into_libs=yes
10247 hpux9* | hpux10* | hpux11*)
10248 # Give a soname corresponding to the major version so that dld.sl refuses to
10249 # link against other versions.
10253 case "$host_cpu" in
10256 hardcode_into_libs=yes
10257 dynamic_linker="$host_os dld.so"
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 if test "X$HPUX_IA64_MODE" = X32; then
10263 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10271 hardcode_into_libs=yes
10272 dynamic_linker="$host_os dld.sl"
10273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10282 dynamic_linker="$host_os dld.sl"
10283 shlibpath_var=SHLIB_PATH
10284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10289 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10290 postinstall_cmds='chmod 555 $lib'
10293 irix5* | irix6* | nonstopux*)
10295 nonstopux*) version_type=nonstopux ;;
10297 if test "$lt_cv_prog_gnu_ld" = yes; then
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10308 irix5* | nonstopux*)
10309 libsuff= shlibsuff=
10312 case $LD in # libtool.m4 will add one of these switches to LD
10313 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10314 libsuff= shlibsuff= libmagic=32-bit;;
10315 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10316 libsuff=32 shlibsuff=N32 libmagic=N32;;
10317 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10318 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10319 *) libsuff= shlibsuff= libmagic=never-match;;
10323 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10324 shlibpath_overrides_runpath=no
10325 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10326 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10327 hardcode_into_libs=yes
10330 # No shared lib support for Linux oldld, aout, or coff.
10331 linux*oldld* | linux*aout* | linux*coff*)
10335 # This must be Linux ELF.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 shlibpath_overrides_runpath=no
10345 # This implies no fast_install, which is unacceptable.
10346 # Some rework will be needed to allow for fast_install
10347 # before this can be enabled.
10348 hardcode_into_libs=yes
10350 # Append ld.so.conf contents to the search path
10351 if test -f /etc/ld.so.conf; then
10352 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' ' '`
10353 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10356 # We used to test for /lib/ld.so.1 and disable shared libraries on
10357 # powerpc, because MkLinux only supported shared libraries with the
10358 # GNU dynamic linker. Since this was broken with cross compilers,
10359 # most powerpc-linux boxes support dynamic linking these days and
10360 # people can always --disable-shared, the test was removed, and we
10361 # assume the GNU/Linux dynamic linker is in use.
10362 dynamic_linker='GNU/Linux ld.so'
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=no
10373 hardcode_into_libs=yes
10374 dynamic_linker='GNU ld.so'
10381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10384 dynamic_linker='NetBSD (a.out) ld.so'
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 dynamic_linker='NetBSD ld.elf_so'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 shlibpath_overrides_runpath=yes
10392 hardcode_into_libs=yes
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 shlibpath_overrides_runpath=yes
10415 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10417 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10418 *) need_version=no ;;
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10425 openbsd2.[89] | openbsd2.[89].*)
10426 shlibpath_overrides_runpath=no
10429 shlibpath_overrides_runpath=yes
10433 shlibpath_overrides_runpath=yes
10438 libname_spec='$name'
10441 library_names_spec='$libname${shared_ext} $libname.a'
10442 dynamic_linker='OS/2 ld.exe'
10443 shlibpath_var=LIBPATH
10446 osf3* | osf4* | osf5*)
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10454 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 shlibpath_var=LD_LIBRARY_PATH
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469 soname_spec='${libname}${release}${shared_ext}$major'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=yes
10472 hardcode_into_libs=yes
10473 # ldd complains unless libraries are executable
10474 postinstall_cmds='chmod +x $lib'
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=yes
10483 if test "$with_gnu_ld" = yes; then
10489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 shlibpath_var=LD_LIBRARY_PATH
10494 case $host_vendor in
10496 shlibpath_overrides_runpath=no
10498 export_dynamic_flag_spec='${wl}-Blargedynsym'
10499 runpath_var=LD_RUN_PATH
10507 shlibpath_overrides_runpath=no
10508 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10514 if test -d /usr/nec ;then
10516 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10517 soname_spec='$libname${shared_ext}.$major'
10518 shlibpath_var=LD_LIBRARY_PATH
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 shlibpath_var=LD_LIBRARY_PATH
10533 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10534 echo "${ECHO_T}$dynamic_linker" >&6
10535 test "$dynamic_linker" = no && can_build_shared=no
10537 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10538 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10540 if test -n "$hardcode_libdir_flag_spec" || \
10541 test -n "$runpath_var" || \
10542 test "X$hardcode_automatic" = "Xyes" ; then
10544 # We can hardcode non-existant directories.
10545 if test "$hardcode_direct" != no &&
10546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10547 # have to relink, otherwise we might link with an installed library
10548 # when we should be linking with a yet-to-be-installed one
10549 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10550 test "$hardcode_minus_L" != no; then
10551 # Linking always hardcodes the temporary library directory.
10552 hardcode_action=relink
10554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10555 hardcode_action=immediate
10558 # We cannot hardcode anything, or else we can only hardcode existing
10560 hardcode_action=unsupported
10562 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10563 echo "${ECHO_T}$hardcode_action" >&6
10565 if test "$hardcode_action" = relink; then
10566 # Fast installation is not supported
10567 enable_fast_install=no
10568 elif test "$shlibpath_overrides_runpath" = yes ||
10569 test "$enable_shared" = no; then
10570 # Fast installation is not necessary
10571 enable_fast_install=needless
10576 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10577 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10578 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10579 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10580 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10581 echo "$as_me:$LINENO: result: yes" >&5
10582 echo "${ECHO_T}yes" >&6
10584 # FIXME - insert some real tests, host_os isn't really good enough
10587 if test -n "$STRIP" ; then
10588 striplib="$STRIP -x"
10589 echo "$as_me:$LINENO: result: yes" >&5
10590 echo "${ECHO_T}yes" >&6
10592 echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6
10597 echo "$as_me:$LINENO: result: no" >&5
10598 echo "${ECHO_T}no" >&6
10603 if test "x$enable_dlopen" != xyes; then
10604 enable_dlopen=unknown
10605 enable_dlopen_self=unknown
10606 enable_dlopen_self_static=unknown
10613 lt_cv_dlopen="load_add_on"
10615 lt_cv_dlopen_self=yes
10619 lt_cv_dlopen="LoadLibrary"
10624 lt_cv_dlopen="dlopen"
10629 # if libdl is installed we need to link against it
10630 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10631 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10632 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 ac_check_lib_save_LIBS=$LIBS
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10644 /* Override any gcc2 internal prototype to avoid an error. */
10648 /* We use char because int might match the return type of a gcc2
10649 builtin and then its argument prototype would still apply. */
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661 (eval $ac_link) 2>conftest.er1
10663 grep -v '^ *+' conftest.er1 >conftest.err
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -z "$ac_c_werror_flag"
10669 || test ! -s conftest.err'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest$ac_exeext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_cv_lib_dl_dlopen=yes
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 ac_cv_lib_dl_dlopen=no
10688 rm -f conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10692 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10693 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10694 if test $ac_cv_lib_dl_dlopen = yes; then
10695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10698 lt_cv_dlopen="dyld"
10700 lt_cv_dlopen_self=yes
10707 echo "$as_me:$LINENO: checking for shl_load" >&5
10708 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10709 if test "${ac_cv_func_shl_load+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10720 #define shl_load innocuous_shl_load
10722 /* System header to define __stub macros and hopefully few prototypes,
10723 which can conflict with char shl_load (); below.
10724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10725 <limits.h> exists even on freestanding compilers. */
10728 # include <limits.h>
10730 # include <assert.h>
10735 /* Override any gcc2 internal prototype to avoid an error. */
10740 /* We use char because int might match the return type of a gcc2
10741 builtin and then its argument prototype would still apply. */
10743 /* The GNU C library defines this for functions which it implements
10744 to always fail with ENOSYS. Some functions are actually named
10745 something starting with __ and the normal name is an alias. */
10746 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10749 char (*f) () = shl_load;
10758 return f != shl_load;
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765 (eval $ac_link) 2>conftest.er1
10767 grep -v '^ *+' conftest.er1 >conftest.err
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -z "$ac_c_werror_flag"
10773 || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest$ac_exeext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_cv_func_shl_load=yes
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10790 ac_cv_func_shl_load=no
10792 rm -f conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10795 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10796 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10797 if test $ac_cv_func_shl_load = yes; then
10798 lt_cv_dlopen="shl_load"
10800 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10801 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10802 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 ac_check_lib_save_LIBS=$LIBS
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10814 /* Override any gcc2 internal prototype to avoid an error. */
10818 /* We use char because int might match the return type of a gcc2
10819 builtin and then its argument prototype would still apply. */
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831 (eval $ac_link) 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag"
10839 || test ! -s conftest.err'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; } &&
10845 { ac_try='test -s conftest$ac_exeext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_lib_dld_shl_load=yes
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_cv_lib_dld_shl_load=no
10858 rm -f conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10862 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10863 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10864 if test $ac_cv_lib_dld_shl_load = yes; then
10865 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10867 echo "$as_me:$LINENO: checking for dlopen" >&5
10868 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10869 if test "${ac_cv_func_dlopen+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 cat >conftest.$ac_ext <<_ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10880 #define dlopen innocuous_dlopen
10882 /* System header to define __stub macros and hopefully few prototypes,
10883 which can conflict with char dlopen (); below.
10884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10885 <limits.h> exists even on freestanding compilers. */
10888 # include <limits.h>
10890 # include <assert.h>
10895 /* Override any gcc2 internal prototype to avoid an error. */
10900 /* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10903 /* The GNU C library defines this for functions which it implements
10904 to always fail with ENOSYS. Some functions are actually named
10905 something starting with __ and the normal name is an alias. */
10906 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10909 char (*f) () = dlopen;
10918 return f != dlopen;
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925 (eval $ac_link) 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_c_werror_flag"
10933 || test ! -s conftest.err'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest$ac_exeext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_cv_func_dlopen=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_func_dlopen=no
10952 rm -f conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10955 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10956 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10957 if test $ac_cv_func_dlopen = yes; then
10958 lt_cv_dlopen="dlopen"
10960 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10961 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 ac_check_lib_save_LIBS=$LIBS
10967 cat >conftest.$ac_ext <<_ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10974 /* Override any gcc2 internal prototype to avoid an error. */
10978 /* We use char because int might match the return type of a gcc2
10979 builtin and then its argument prototype would still apply. */
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag"
10999 || test ! -s conftest.err'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest$ac_exeext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_cv_lib_dl_dlopen=yes
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_cv_lib_dl_dlopen=no
11018 rm -f conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11022 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11023 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11024 if test $ac_cv_lib_dl_dlopen = yes; then
11025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11027 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11028 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11029 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 ac_check_lib_save_LIBS=$LIBS
11033 LIBS="-lsvld $LIBS"
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11041 /* Override any gcc2 internal prototype to avoid an error. */
11045 /* We use char because int might match the return type of a gcc2
11046 builtin and then its argument prototype would still apply. */
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11058 (eval $ac_link) 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag"
11066 || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest$ac_exeext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_lib_svld_dlopen=yes
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ac_cv_lib_svld_dlopen=no
11085 rm -f conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11089 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11090 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11091 if test $ac_cv_lib_svld_dlopen = yes; then
11092 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11094 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11095 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11096 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 ac_check_lib_save_LIBS=$LIBS
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11108 /* Override any gcc2 internal prototype to avoid an error. */
11112 /* We use char because int might match the return type of a gcc2
11113 builtin and then its argument prototype would still apply. */
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125 (eval $ac_link) 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag"
11133 || test ! -s conftest.err'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; } &&
11139 { ac_try='test -s conftest$ac_exeext'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 ac_cv_lib_dld_dld_link=yes
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_lib_dld_dld_link=no
11152 rm -f conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11156 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11157 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11158 if test $ac_cv_lib_dld_dld_link = yes; then
11159 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11180 if test "x$lt_cv_dlopen" != xno; then
11186 case $lt_cv_dlopen in
11188 save_CPPFLAGS="$CPPFLAGS"
11189 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11191 save_LDFLAGS="$LDFLAGS"
11192 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11195 LIBS="$lt_cv_dlopen_libs $LIBS"
11197 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11198 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11199 if test "${lt_cv_dlopen_self+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 if test "$cross_compiling" = yes; then :
11203 lt_cv_dlopen_self=cross
11205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11206 lt_status=$lt_dlunknown
11207 cat > conftest.$ac_ext <<EOF
11208 #line 11208 "configure"
11209 #include "confdefs.h"
11218 # define LT_DLGLOBAL RTLD_GLOBAL
11221 # define LT_DLGLOBAL DL_GLOBAL
11223 # define LT_DLGLOBAL 0
11227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11228 find out it does not work in some platform. */
11229 #ifndef LT_DLLAZY_OR_NOW
11231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11234 # define LT_DLLAZY_OR_NOW DL_LAZY
11237 # define LT_DLLAZY_OR_NOW RTLD_NOW
11240 # define LT_DLLAZY_OR_NOW DL_NOW
11242 # define LT_DLLAZY_OR_NOW 0
11250 extern "C" void exit (int);
11253 void fnord() { int i=42;}
11256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11257 int status = $lt_dlunknown;
11261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11262 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11263 /* dlclose (self); */
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11274 (./conftest; exit; ) 2>/dev/null
11276 case x$lt_status in
11277 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11278 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11279 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11282 # compilation failed
11283 lt_cv_dlopen_self=no
11290 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11291 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11293 if test "x$lt_cv_dlopen_self" = xyes; then
11294 LDFLAGS="$LDFLAGS $link_static_flag"
11295 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11296 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11297 if test "${lt_cv_dlopen_self_static+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 if test "$cross_compiling" = yes; then :
11301 lt_cv_dlopen_self_static=cross
11303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11304 lt_status=$lt_dlunknown
11305 cat > conftest.$ac_ext <<EOF
11306 #line 11306 "configure"
11307 #include "confdefs.h"
11316 # define LT_DLGLOBAL RTLD_GLOBAL
11319 # define LT_DLGLOBAL DL_GLOBAL
11321 # define LT_DLGLOBAL 0
11325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11326 find out it does not work in some platform. */
11327 #ifndef LT_DLLAZY_OR_NOW
11329 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11332 # define LT_DLLAZY_OR_NOW DL_LAZY
11335 # define LT_DLLAZY_OR_NOW RTLD_NOW
11338 # define LT_DLLAZY_OR_NOW DL_NOW
11340 # define LT_DLLAZY_OR_NOW 0
11348 extern "C" void exit (int);
11351 void fnord() { int i=42;}
11354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11355 int status = $lt_dlunknown;
11359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11361 /* dlclose (self); */
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368 (eval $ac_link) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11372 (./conftest; exit; ) 2>/dev/null
11374 case x$lt_status in
11375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11377 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11380 # compilation failed
11381 lt_cv_dlopen_self_static=no
11388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11389 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11392 CPPFLAGS="$save_CPPFLAGS"
11393 LDFLAGS="$save_LDFLAGS"
11398 case $lt_cv_dlopen_self in
11399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11400 *) enable_dlopen_self=unknown ;;
11403 case $lt_cv_dlopen_self_static in
11404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11405 *) enable_dlopen_self_static=unknown ;;
11410 # Report which librarie types wil actually be built
11411 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11413 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11414 echo "${ECHO_T}$can_build_shared" >&6
11416 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11418 test "$can_build_shared" = "no" && enable_shared=no
11420 # On AIX, shared libraries and static libraries use the same namespace, and
11421 # are all built from PIC.
11424 test "$enable_shared" = yes && enable_static=no
11425 if test -n "$RANLIB"; then
11426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11427 postinstall_cmds='$RANLIB $lib'
11432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11433 test "$enable_shared" = yes && enable_static=no
11437 echo "$as_me:$LINENO: result: $enable_shared" >&5
11438 echo "${ECHO_T}$enable_shared" >&6
11440 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11441 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11442 # Make sure either enable_shared or enable_static is yes.
11443 test "$enable_shared" = yes || enable_static=yes
11444 echo "$as_me:$LINENO: result: $enable_static" >&5
11445 echo "${ECHO_T}$enable_static" >&6
11447 # The else clause should only fire when bootstrapping the
11448 # libtool distribution, otherwise you forgot to ship ltmain.sh
11449 # with your package, and you will get complaints that there are
11450 # no rules to generate ltmain.sh.
11451 if test -f "$ltmain"; then
11452 # See if we are running on zsh, and set the options which allow our commands through
11453 # without removal of \ escapes.
11454 if test -n "${ZSH_VERSION+set}" ; then
11455 setopt NO_GLOB_SUBST
11457 # Now quote all the things that may contain metacharacters while being
11458 # careful not to overquote the AC_SUBSTed values. We take copies of the
11459 # variables and quote the copies for generation of the libtool script.
11460 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11462 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11463 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11464 deplibs_check_method reload_flag reload_cmds need_locks \
11465 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11466 lt_cv_sys_global_symbol_to_c_name_address \
11467 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11468 old_postinstall_cmds old_postuninstall_cmds \
11472 lt_prog_compiler_wl \
11473 lt_prog_compiler_pic \
11474 lt_prog_compiler_static \
11475 lt_prog_compiler_no_builtin_flag \
11476 export_dynamic_flag_spec \
11477 thread_safe_flag_spec \
11478 whole_archive_flag_spec \
11479 enable_shared_with_static_runtimes \
11481 old_archive_from_new_cmds \
11486 compiler_lib_search_path \
11488 archive_expsym_cmds \
11490 postuninstall_cmds \
11491 old_archive_from_expsyms_cmds \
11492 allow_undefined_flag \
11493 no_undefined_flag \
11494 export_symbols_cmds \
11495 hardcode_libdir_flag_spec \
11496 hardcode_libdir_flag_spec_ld \
11497 hardcode_libdir_separator \
11498 hardcode_automatic \
11500 module_expsym_cmds \
11501 lt_cv_prog_compiler_c_o \
11503 include_expsyms; do
11506 old_archive_cmds | \
11507 old_archive_from_new_cmds | \
11509 archive_expsym_cmds | \
11511 module_expsym_cmds | \
11512 old_archive_from_expsyms_cmds | \
11513 export_symbols_cmds | \
11514 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11515 postinstall_cmds | postuninstall_cmds | \
11516 old_postinstall_cmds | old_postuninstall_cmds | \
11517 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11518 # Double-quote double-evaled strings.
11519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11528 *'\$0 --fallback-echo"')
11529 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11533 cfgfile="${ofile}T"
11534 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11536 { echo "$as_me:$LINENO: creating $ofile" >&5
11537 echo "$as_me: creating $ofile" >&6;}
11539 cat <<__EOF__ >> "$cfgfile"
11542 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11543 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11546 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11547 # Free Software Foundation, Inc.
11549 # This file is part of GNU Libtool:
11550 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11552 # This program is free software; you can redistribute it and/or modify
11553 # it under the terms of the GNU General Public License as published by
11554 # the Free Software Foundation; either version 2 of the License, or
11555 # (at your option) any later version.
11557 # This program is distributed in the hope that it will be useful, but
11558 # WITHOUT ANY WARRANTY; without even the implied warranty of
11559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11560 # General Public License for more details.
11562 # You should have received a copy of the GNU General Public License
11563 # along with this program; if not, write to the Free Software
11564 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11566 # As a special exception to the GNU General Public License, if you
11567 # distribute this file as part of a program that contains a
11568 # configuration script generated by Autoconf, you may include it under
11569 # the same distribution terms that you use for the rest of that program.
11571 # A sed program that does not truncate output.
11574 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11575 Xsed="$SED -e 1s/^X//"
11577 # The HP-UX ksh and POSIX shell print the target directory to stdout
11578 # if CDPATH is set.
11579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11581 # The names of the tagged configurations supported by this script.
11584 # ### BEGIN LIBTOOL CONFIG
11586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11588 # Shell to use when invoking shell scripts.
11591 # Whether or not to build shared libraries.
11592 build_libtool_libs=$enable_shared
11594 # Whether or not to build static libraries.
11595 build_old_libs=$enable_static
11597 # Whether or not to add -lc for building shared libraries.
11598 build_libtool_need_lc=$archive_cmds_need_lc
11600 # Whether or not to disallow shared libs when runtime libs are static
11601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11603 # Whether or not to optimize for fast installation.
11604 fast_install=$enable_fast_install
11607 host_alias=$host_alias
11611 # The build system.
11612 build_alias=$build_alias
11616 # An echo program that does not interpret backslashes.
11621 AR_FLAGS=$lt_AR_FLAGS
11626 # A language-specific compiler.
11629 # Is the compiler the GNU C compiler?
11635 # The linker used to build libraries.
11638 # Whether we need hard or soft links.
11641 # A BSD-compatible nm program.
11644 # A symbol stripping program
11647 # Used to examine libraries when file_magic_cmd begins "file"
11648 MAGIC_CMD=$MAGIC_CMD
11650 # Used on cygwin: DLL creation program.
11653 # Used on cygwin: object dumper.
11656 # Used on cygwin: assembler.
11659 # The name of the directory that contains temporary libtool files.
11662 # How to create reloadable object files.
11663 reload_flag=$lt_reload_flag
11664 reload_cmds=$lt_reload_cmds
11666 # How to pass a linker flag through the compiler.
11667 wl=$lt_lt_prog_compiler_wl
11669 # Object file suffix (normally "o").
11670 objext="$ac_objext"
11672 # Old archive suffix (normally "a").
11675 # Shared library suffix (normally ".so").
11676 shrext_cmds='$shrext_cmds'
11678 # Executable file suffix (normally "").
11681 # Additional compiler flags for building library objects.
11682 pic_flag=$lt_lt_prog_compiler_pic
11685 # What is the maximum length of a command?
11686 max_cmd_len=$lt_cv_sys_max_cmd_len
11688 # Does compiler simultaneously support -c and -o options?
11689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11691 # Must we lock files when doing compilation?
11692 need_locks=$lt_need_locks
11694 # Do we need the lib prefix for modules?
11695 need_lib_prefix=$need_lib_prefix
11697 # Do we need a version for libraries?
11698 need_version=$need_version
11700 # Whether dlopen is supported.
11701 dlopen_support=$enable_dlopen
11703 # Whether dlopen of programs is supported.
11704 dlopen_self=$enable_dlopen_self
11706 # Whether dlopen of statically linked programs is supported.
11707 dlopen_self_static=$enable_dlopen_self_static
11709 # Compiler flag to prevent dynamic linking.
11710 link_static_flag=$lt_lt_prog_compiler_static
11712 # Compiler flag to turn off builtin functions.
11713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11715 # Compiler flag to allow reflexive dlopens.
11716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11718 # Compiler flag to generate shared objects directly from archives.
11719 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11721 # Compiler flag to generate thread-safe objects.
11722 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11724 # Library versioning type.
11725 version_type=$version_type
11727 # Format of library name prefix.
11728 libname_spec=$lt_libname_spec
11730 # List of archive names. First name is the real one, the rest are links.
11731 # The last name is the one that the linker finds with -lNAME.
11732 library_names_spec=$lt_library_names_spec
11734 # The coded name of the library, if different from the real name.
11735 soname_spec=$lt_soname_spec
11737 # Commands used to build and install an old-style archive.
11739 old_archive_cmds=$lt_old_archive_cmds
11740 old_postinstall_cmds=$lt_old_postinstall_cmds
11741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11743 # Create an old-style archive from a shared archive.
11744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11746 # Create a temporary old-style archive to link instead of a shared archive.
11747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11749 # Commands used to build and install a shared archive.
11750 archive_cmds=$lt_archive_cmds
11751 archive_expsym_cmds=$lt_archive_expsym_cmds
11752 postinstall_cmds=$lt_postinstall_cmds
11753 postuninstall_cmds=$lt_postuninstall_cmds
11755 # Commands used to build a loadable module (assumed same as above if empty)
11756 module_cmds=$lt_module_cmds
11757 module_expsym_cmds=$lt_module_expsym_cmds
11759 # Commands to strip libraries.
11760 old_striplib=$lt_old_striplib
11761 striplib=$lt_striplib
11763 # Dependencies to place before the objects being linked to create a
11765 predep_objects=$lt_predep_objects
11767 # Dependencies to place after the objects being linked to create a
11769 postdep_objects=$lt_postdep_objects
11771 # Dependencies to place before the objects being linked to create a
11773 predeps=$lt_predeps
11775 # Dependencies to place after the objects being linked to create a
11777 postdeps=$lt_postdeps
11779 # The library search path used internally by the compiler when linking
11780 # a shared library.
11781 compiler_lib_search_path=$lt_compiler_lib_search_path
11783 # Method to check whether dependent libraries are shared objects.
11784 deplibs_check_method=$lt_deplibs_check_method
11786 # Command to use when deplibs_check_method == file_magic.
11787 file_magic_cmd=$lt_file_magic_cmd
11789 # Flag that allows shared libraries with undefined symbols to be built.
11790 allow_undefined_flag=$lt_allow_undefined_flag
11792 # Flag that forces no undefined symbols.
11793 no_undefined_flag=$lt_no_undefined_flag
11795 # Commands used to finish a libtool library installation in a directory.
11796 finish_cmds=$lt_finish_cmds
11798 # Same as above, but a single script fragment to be evaled but not shown.
11799 finish_eval=$lt_finish_eval
11801 # Take the output of nm and produce a listing of raw symbols and C names.
11802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11804 # Transform the output of nm in a proper C declaration
11805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11807 # Transform the output of nm in a C name address pair
11808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11810 # This is the shared library runtime path variable.
11811 runpath_var=$runpath_var
11813 # This is the shared library path variable.
11814 shlibpath_var=$shlibpath_var
11816 # Is shlibpath searched before the hard-coded library search path?
11817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11819 # How to hardcode a shared library path into an executable.
11820 hardcode_action=$hardcode_action
11822 # Whether we should hardcode library paths into libraries.
11823 hardcode_into_libs=$hardcode_into_libs
11825 # Flag to hardcode \$libdir into a binary during linking.
11826 # This must work even if \$libdir does not exist.
11827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11829 # If ld is used when linking, flag to hardcode \$libdir into
11830 # a binary during linking. This must work even if \$libdir does
11832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11834 # Whether we need a single -rpath flag with a separated argument.
11835 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11838 # resulting binary.
11839 hardcode_direct=$hardcode_direct
11841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11842 # resulting binary.
11843 hardcode_minus_L=$hardcode_minus_L
11845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11846 # the resulting binary.
11847 hardcode_shlibpath_var=$hardcode_shlibpath_var
11849 # Set to yes if building a shared library automatically hardcodes DIR into the library
11850 # and all subsequent libraries and executables linked against it.
11851 hardcode_automatic=$hardcode_automatic
11853 # Variables whose values should be saved in libtool wrapper scripts and
11854 # restored at relink time.
11855 variables_saved_for_relink="$variables_saved_for_relink"
11857 # Whether libtool must link a program against all its dependency libraries.
11858 link_all_deplibs=$link_all_deplibs
11860 # Compile-time system search path for libraries
11861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11863 # Run-time system search path for libraries
11864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11866 # Fix the shell variable \$srcfile for the compiler.
11867 fix_srcfile_path="$fix_srcfile_path"
11869 # Set to yes if exported symbols are required.
11870 always_export_symbols=$always_export_symbols
11872 # The commands to list exported symbols.
11873 export_symbols_cmds=$lt_export_symbols_cmds
11875 # The commands to extract the exported symbol list from a shared archive.
11876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11878 # Symbols that should not be listed in the preloaded symbols.
11879 exclude_expsyms=$lt_exclude_expsyms
11881 # Symbols that must always be exported.
11882 include_expsyms=$lt_include_expsyms
11884 # ### END LIBTOOL CONFIG
11891 cat <<\EOF >> "$cfgfile"
11893 # AIX sometimes has problems with the GCC collect2 program. For some
11894 # reason, if we set the COLLECT_NAMES environment variable, the problems
11895 # vanish in a puff of smoke.
11896 if test "X${COLLECT_NAMES+set}" != Xset; then
11898 export COLLECT_NAMES
11904 # We use sed instead of cat because bash on DJGPP gets confused if
11905 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11906 # text mode, it properly converts lines to CR/LF. This bash problem
11907 # is reportedly fixed, but why not run on old versions too?
11908 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11910 mv -f "$cfgfile" "$ofile" || \
11911 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11915 # If there is no Makefile yet, we rely on a make rule to execute
11916 # `config.status --recheck' to rerun these tests and create the
11917 # libtool script then.
11918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11919 if test -f "$ltmain_in"; then
11920 test -f Makefile && make "$ltmain"
11926 ac_cpp='$CPP $CPPFLAGS'
11927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11934 # Check whether --with-tags or --without-tags was given.
11935 if test "${with_tags+set}" = set; then
11936 withval="$with_tags"
11937 tagnames="$withval"
11940 if test -f "$ltmain" && test -n "$tagnames"; then
11941 if test ! -f "${ofile}"; then
11942 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11943 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11946 if test -z "$LTCC"; then
11947 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11948 if test -z "$LTCC"; then
11949 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11950 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11953 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11957 # Extract list of available tagged configurations in $ofile.
11958 # Note that this assumes the entire list is on one line.
11959 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11962 for tagname in $tagnames; do
11964 # Check whether tagname contains only valid characters
11965 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11967 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11968 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11969 { (exit 1); exit 1; }; }
11973 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11975 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11976 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11977 { (exit 1); exit 1; }; }
11980 # Update the list of available tags.
11981 if test -n "$tagname"; then
11982 echo appending configuration tag \"$tagname\" to $ofile
11986 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11987 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11988 (test "X$CXX" != "Xg++"))) ; then
11990 ac_cpp='$CXXCPP $CPPFLAGS'
11991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11998 archive_cmds_need_lc_CXX=no
11999 allow_undefined_flag_CXX=
12000 always_export_symbols_CXX=no
12001 archive_expsym_cmds_CXX=
12002 export_dynamic_flag_spec_CXX=
12003 hardcode_direct_CXX=no
12004 hardcode_libdir_flag_spec_CXX=
12005 hardcode_libdir_flag_spec_ld_CXX=
12006 hardcode_libdir_separator_CXX=
12007 hardcode_minus_L_CXX=no
12008 hardcode_automatic_CXX=no
12010 module_expsym_cmds_CXX=
12011 link_all_deplibs_CXX=unknown
12012 old_archive_cmds_CXX=$old_archive_cmds
12013 no_undefined_flag_CXX=
12014 whole_archive_flag_spec_CXX=
12015 enable_shared_with_static_runtimes_CXX=no
12017 # Dependencies to place before and after the object being linked:
12018 predep_objects_CXX=
12019 postdep_objects_CXX=
12022 compiler_lib_search_path_CXX=
12024 # Source file extension for C++ test sources.
12027 # Object file extension for compiled C++ test sources.
12031 # Code to be used in simple compile tests
12032 lt_simple_compile_test_code="int some_variable = 0;\n"
12034 # Code to be used in simple link tests
12035 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12039 # If no C compiler was specified, use CC.
12042 # Allow CC to be a program name with arguments.
12046 # save warnings/boilerplate of simple test code
12047 ac_outfile=conftest.$ac_objext
12048 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12050 _lt_compiler_boilerplate=`cat conftest.err`
12053 ac_outfile=conftest.$ac_objext
12054 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12056 _lt_linker_boilerplate=`cat conftest.err`
12060 # Allow CC to be a program name with arguments.
12065 lt_save_with_gnu_ld=$with_gnu_ld
12066 lt_save_path_LD=$lt_cv_path_LD
12067 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12068 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12070 unset lt_cv_prog_gnu_ld
12072 if test -n "${lt_cv_path_LDCXX+set}"; then
12073 lt_cv_path_LD=$lt_cv_path_LDCXX
12075 unset lt_cv_path_LD
12077 test -z "${LDCXX+set}" || LD=$LDCXX
12081 for cc_temp in $compiler""; do
12083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12092 # We don't want -fno-exception wen compiling C++ code, so set the
12093 # no_builtin_flag separately
12094 if test "$GXX" = yes; then
12095 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12097 lt_prog_compiler_no_builtin_flag_CXX=
12100 if test "$GXX" = yes; then
12101 # Set up default GNU C++ configuration
12104 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12105 if test "${with_gnu_ld+set}" = set; then
12106 withval="$with_gnu_ld"
12107 test "$withval" = no || with_gnu_ld=yes
12112 if test "$GCC" = yes; then
12113 # Check if gcc -print-prog-name=ld gives a path.
12114 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12115 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12118 # gcc leaves a trailing carriage return which upsets mingw
12119 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12121 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12124 # Accept absolute paths.
12126 re_direlt='/[^/][^/]*/\.\./'
12127 # Canonicalize the pathname of ld
12128 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12129 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12130 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12132 test -z "$LD" && LD="$ac_prog"
12135 # If it fails, then pretend we aren't using GCC.
12139 # If it is relative, then search for the first ld in PATH.
12140 with_gnu_ld=unknown
12143 elif test "$with_gnu_ld" = yes; then
12144 echo "$as_me:$LINENO: checking for GNU ld" >&5
12145 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12147 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12148 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12150 if test "${lt_cv_path_LD+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 if test -z "$LD"; then
12154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12155 for ac_dir in $PATH; do
12157 test -z "$ac_dir" && ac_dir=.
12158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12159 lt_cv_path_LD="$ac_dir/$ac_prog"
12160 # Check to see if the program is GNU ld. I'd rather use --version,
12161 # but apparently some GNU ld's only accept -v.
12162 # Break only if it was the GNU/non-GNU ld that we prefer.
12163 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12164 *GNU* | *'with BFD'*)
12165 test "$with_gnu_ld" != no && break
12168 test "$with_gnu_ld" != yes && break
12175 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12179 LD="$lt_cv_path_LD"
12180 if test -n "$LD"; then
12181 echo "$as_me:$LINENO: result: $LD" >&5
12182 echo "${ECHO_T}$LD" >&6
12184 echo "$as_me:$LINENO: result: no" >&5
12185 echo "${ECHO_T}no" >&6
12187 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12188 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12189 { (exit 1); exit 1; }; }
12190 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12191 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12192 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12196 case `$LD -v 2>&1 </dev/null` in
12197 *GNU* | *'with BFD'*)
12198 lt_cv_prog_gnu_ld=yes
12201 lt_cv_prog_gnu_ld=no
12205 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12206 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12207 with_gnu_ld=$lt_cv_prog_gnu_ld
12211 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12212 # archiving commands below assume that GNU ld is being used.
12213 if test "$with_gnu_ld" = yes; then
12214 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12215 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'
12217 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12218 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12220 # If archive_cmds runs LD, not CC, wlarc should be empty
12221 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12222 # investigate it a little bit more. (MM)
12225 # ancient GNU ld didn't support --whole-archive et. al.
12226 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12227 grep 'no-whole-archive' > /dev/null; then
12228 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12230 whole_archive_flag_spec_CXX=
12236 # A generic and very simple default shared library creation
12237 # command for GNU C++ for the case where it uses the native
12238 # linker, instead of GNU ld. If possible, this setting should
12239 # overridden to take advantage of the native linker features on
12240 # the platform it is being used on.
12241 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12244 # Commands to make compiler produce verbose output that lists
12245 # what "hidden" libraries, object files and flags are used when
12246 # linking a shared library.
12247 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12255 # PORTME: fill in a description of your system's C++ link characteristics
12256 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12257 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12261 # FIXME: insert proper C++ library support
12265 if test "$host_cpu" = ia64; then
12266 # On IA64, the linker does run time linking by default, so we don't
12267 # have to do anything special.
12268 aix_use_runtimelinking=no
12269 exp_sym_flag='-Bexport'
12272 aix_use_runtimelinking=no
12274 # Test if we are trying to use run time linking or normal
12275 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12276 # need to do runtime linking.
12277 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12278 for ld_flag in $LDFLAGS; do
12281 aix_use_runtimelinking=yes
12288 exp_sym_flag='-bexport'
12289 no_entry_flag='-bnoentry'
12292 # When large executables or shared objects are built, AIX ld can
12293 # have problems creating the table of contents. If linking a library
12294 # or program results in "error TOC overflow" add -mminimal-toc to
12295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12298 archive_cmds_CXX=''
12299 hardcode_direct_CXX=yes
12300 hardcode_libdir_separator_CXX=':'
12301 link_all_deplibs_CXX=yes
12303 if test "$GXX" = yes; then
12304 case $host_os in aix4.[012]|aix4.[012].*)
12305 # We only want to do this on AIX 4.2 and lower, the check
12306 # below for broken collect2 doesn't work under 4.3+
12307 collect2name=`${CC} -print-prog-name=collect2`
12308 if test -f "$collect2name" && \
12309 strings "$collect2name" | grep resolve_lib_name >/dev/null
12311 # We have reworked collect2
12312 hardcode_direct_CXX=yes
12314 # We have old collect2
12315 hardcode_direct_CXX=unsupported
12316 # It fails to find uninstalled libraries when the uninstalled
12317 # path is not listed in the libpath. Setting hardcode_minus_L
12318 # to unsupported forces relinking
12319 hardcode_minus_L_CXX=yes
12320 hardcode_libdir_flag_spec_CXX='-L$libdir'
12321 hardcode_libdir_separator_CXX=
12324 shared_flag='-shared'
12325 if test "$aix_use_runtimelinking" = yes; then
12326 shared_flag="$shared_flag "'${wl}-G'
12330 if test "$host_cpu" = ia64; then
12331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12332 # chokes on -Wl,-G. The following line is correct:
12335 if test "$aix_use_runtimelinking" = yes; then
12336 shared_flag='${wl}-G'
12338 shared_flag='${wl}-bM:SRE'
12343 # It seems that -bexpall does not export symbols beginning with
12344 # underscore (_), so it is better to generate a list of symbols to export.
12345 always_export_symbols_CXX=yes
12346 if test "$aix_use_runtimelinking" = yes; then
12347 # Warning - without using the other runtime loading flags (-brtl),
12348 # -berok will link without error, but may produce a broken library.
12349 allow_undefined_flag_CXX='-berok'
12350 # Determine the default libpath from the value encoded in an empty executable.
12351 cat >conftest.$ac_ext <<_ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>conftest.er1
12370 grep -v '^ *+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_cxx_werror_flag"
12376 || test ! -s conftest.err'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest$ac_exeext'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12391 # Check for a 64-bit object if we didn't find anything.
12392 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; }
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12399 rm -f conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12403 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12405 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"
12407 if test "$host_cpu" = ia64; then
12408 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12409 allow_undefined_flag_CXX="-z nodefs"
12410 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"
12412 # Determine the default libpath from the value encoded in an empty executable.
12413 cat >conftest.$ac_ext <<_ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12428 rm -f conftest.$ac_objext conftest$ac_exeext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430 (eval $ac_link) 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_cxx_werror_flag"
12438 || test ! -s conftest.err'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } &&
12444 { ac_try='test -s conftest$ac_exeext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12453 # Check for a 64-bit object if we didn't find anything.
12454 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; }
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12461 rm -f conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext conftest.$ac_ext
12463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12465 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12466 # Warning - without using the other run time loading flags,
12467 # -berok will link without error, but may produce a broken library.
12468 no_undefined_flag_CXX=' ${wl}-bernotok'
12469 allow_undefined_flag_CXX=' ${wl}-berok'
12470 # -bexpall does not export symbols beginning with underscore (_)
12471 always_export_symbols_CXX=yes
12472 # Exported symbols can be pulled into shared objects from archives
12473 whole_archive_flag_spec_CXX=' '
12474 archive_cmds_need_lc_CXX=yes
12475 # This is similar to how AIX traditionally builds it's shared libraries.
12476 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'
12481 case $cc_basename in
12483 # FIXME: insert proper C++ library support
12490 cygwin* | mingw* | pw32*)
12491 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12492 # as there is no search path for DLLs.
12493 hardcode_libdir_flag_spec_CXX='-L$libdir'
12494 allow_undefined_flag_CXX=unsupported
12495 always_export_symbols_CXX=no
12496 enable_shared_with_static_runtimes_CXX=yes
12498 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12499 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'
12500 # If the export-symbols file already is a .def file (1st line
12501 # is EXPORTS), use it as is; otherwise, prepend...
12502 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12503 cp $export_symbols $output_objdir/$soname.def;
12505 echo EXPORTS > $output_objdir/$soname.def;
12506 cat $export_symbols >> $output_objdir/$soname.def;
12508 $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'
12513 darwin* | rhapsody*)
12515 rhapsody* | darwin1.[012])
12516 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12519 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12520 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12522 case ${MACOSX_DEPLOYMENT_TARGET} in
12524 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12527 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12533 archive_cmds_need_lc_CXX=no
12534 hardcode_direct_CXX=no
12535 hardcode_automatic_CXX=yes
12536 hardcode_shlibpath_var_CXX=unsupported
12537 whole_archive_flag_spec_CXX=''
12538 link_all_deplibs_CXX=yes
12540 if test "$GXX" = yes ; then
12541 lt_int_apple_cc_single_mod=no
12542 output_verbose_link_cmd='echo'
12543 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12544 lt_int_apple_cc_single_mod=yes
12546 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12547 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12549 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'
12551 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12553 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12554 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}'
12556 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}'
12558 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}'
12560 case $cc_basename in
12562 output_verbose_link_cmd='echo'
12563 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'
12564 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12566 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}'
12567 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}'
12577 case $cc_basename in
12579 # FIXME: insert proper C++ library support
12583 # Green Hills C++ Compiler
12584 # FIXME: insert proper C++ library support
12588 # FIXME: insert proper C++ library support
12594 # C++ shared libraries reported to be fairly broken before switch to ELF
12598 archive_cmds_need_lc_CXX=no
12600 freebsd* | kfreebsd*-gnu | dragonfly*)
12601 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12608 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12609 hardcode_libdir_separator_CXX=:
12610 export_dynamic_flag_spec_CXX='${wl}-E'
12611 hardcode_direct_CXX=yes
12612 hardcode_minus_L_CXX=yes # Not in the search PATH,
12613 # but as the default
12614 # location of the library.
12616 case $cc_basename in
12618 # FIXME: insert proper C++ library support
12622 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'
12623 # Commands to make compiler produce verbose output that lists
12624 # what "hidden" libraries, object files and flags are used when
12625 # linking a shared library.
12627 # There doesn't appear to be a way to prevent this compiler from
12628 # explicitly linking system object files so we need to strip them
12629 # from the output so that they don't get included in the library
12631 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'
12634 if test "$GXX" = yes; then
12635 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'
12637 # FIXME: insert proper C++ library support
12644 if test $with_gnu_ld = no; then
12645 case "$host_cpu" in
12647 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12648 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12649 hardcode_libdir_separator_CXX=:
12652 hardcode_libdir_flag_spec_CXX='-L$libdir'
12655 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12656 hardcode_libdir_separator_CXX=:
12657 export_dynamic_flag_spec_CXX='${wl}-E'
12661 case "$host_cpu" in
12663 hardcode_direct_CXX=no
12664 hardcode_shlibpath_var_CXX=no
12667 hardcode_direct_CXX=no
12668 hardcode_shlibpath_var_CXX=no
12669 hardcode_minus_L_CXX=yes # Not in the search PATH,
12670 # but as the default
12671 # location of the library.
12674 hardcode_direct_CXX=yes
12675 hardcode_minus_L_CXX=yes # Not in the search PATH,
12676 # but as the default
12677 # location of the library.
12681 case $cc_basename in
12683 # FIXME: insert proper C++ library support
12687 case "$host_cpu" in
12689 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12692 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12695 # Commands to make compiler produce verbose output that lists
12696 # what "hidden" libraries, object files and flags are used when
12697 # linking a shared library.
12699 # There doesn't appear to be a way to prevent this compiler from
12700 # explicitly linking system object files so we need to strip them
12701 # from the output so that they don't get included in the library
12703 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'
12706 if test "$GXX" = yes; then
12707 if test $with_gnu_ld = no; then
12708 case "$host_cpu" in
12710 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12713 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'
12718 # FIXME: insert proper C++ library support
12725 case $cc_basename in
12728 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'
12730 # Archives containing C++ object files must be created using
12731 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12732 # necessary to make sure instantiated templates are included
12734 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12737 if test "$GXX" = yes; then
12738 if test "$with_gnu_ld" = no; then
12739 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'
12741 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'
12744 link_all_deplibs_CXX=yes
12747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748 hardcode_libdir_separator_CXX=:
12751 case $cc_basename in
12753 # Kuck and Associates, Inc. (KAI) C++ Compiler
12755 # KCC will only create a shared library if the output file
12756 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12757 # to its proper name (with version) after linking.
12758 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'
12759 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'
12760 # Commands to make compiler produce verbose output that lists
12761 # what "hidden" libraries, object files and flags are used when
12762 # linking a shared library.
12764 # There doesn't appear to be a way to prevent this compiler from
12765 # explicitly linking system object files so we need to strip them
12766 # from the output so that they don't get included in the library
12768 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'
12770 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12773 # Archives containing C++ object files must be created using
12774 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12775 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12780 # version 8.0 and above of icpc choke on multiply defined symbols
12781 # if we add $predep_objects and $postdep_objects, however 7.1 and
12782 # earlier do not add the objects themselves.
12783 case `$CC -V 2>&1` in
12785 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12786 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'
12788 *) # Version 8.0 or newer
12791 ia64*) tmp_idyn=' -i_dynamic';;
12793 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794 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'
12797 archive_cmds_need_lc_CXX=no
12798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12799 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12800 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12803 # Portland Group C++ compiler
12804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12805 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'
12807 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12809 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'
12813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814 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'
12816 runpath_var=LD_RUN_PATH
12817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12818 hardcode_libdir_separator_CXX=:
12820 # Commands to make compiler produce verbose output that lists
12821 # what "hidden" libraries, object files and flags are used when
12822 # linking a shared library.
12824 # There doesn't appear to be a way to prevent this compiler from
12825 # explicitly linking system object files so we need to strip them
12826 # from the output so that they don't get included in the library
12828 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'
12833 # FIXME: insert proper C++ library support
12837 # FIXME: insert proper C++ library support
12841 case $cc_basename in
12843 # FIXME: insert proper C++ library support
12847 # FIXME: insert proper C++ library support
12853 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12854 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12856 hardcode_libdir_flag_spec_CXX='-R$libdir'
12857 hardcode_direct_CXX=yes
12858 hardcode_shlibpath_var_CXX=no
12860 # Workaround some broken pre-1.5 toolchains
12861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12864 # C++ shared libraries are fairly broken
12868 hardcode_direct_CXX=yes
12869 hardcode_shlibpath_var_CXX=no
12870 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12873 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12874 export_dynamic_flag_spec_CXX='${wl}-E'
12875 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12877 output_verbose_link_cmd='echo'
12880 case $cc_basename in
12882 # Kuck and Associates, Inc. (KAI) C++ Compiler
12884 # KCC will only create a shared library if the output file
12885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12886 # to its proper name (with version) after linking.
12887 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'
12889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12890 hardcode_libdir_separator_CXX=:
12892 # Archives containing C++ object files must be created using
12893 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12894 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12898 # Rational C++ 2.4.1
12899 # FIXME: insert proper C++ library support
12903 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12904 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'
12906 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12907 hardcode_libdir_separator_CXX=:
12909 # Commands to make compiler produce verbose output that lists
12910 # what "hidden" libraries, object files and flags are used when
12911 # linking a shared library.
12913 # There doesn't appear to be a way to prevent this compiler from
12914 # explicitly linking system object files so we need to strip them
12915 # from the output so that they don't get included in the library
12917 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'
12920 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12921 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12922 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'
12924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12925 hardcode_libdir_separator_CXX=:
12927 # Commands to make compiler produce verbose output that lists
12928 # what "hidden" libraries, object files and flags are used when
12929 # linking a shared library.
12930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12933 # FIXME: insert proper C++ library support
12940 case $cc_basename in
12942 # Kuck and Associates, Inc. (KAI) C++ Compiler
12944 # KCC will only create a shared library if the output file
12945 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12946 # to its proper name (with version) after linking.
12947 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'
12949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12950 hardcode_libdir_separator_CXX=:
12952 # Archives containing C++ object files must be created using
12953 # the KAI C++ compiler.
12954 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12957 # Rational C++ 2.4.1
12958 # FIXME: insert proper C++ library support
12962 allow_undefined_flag_CXX=' -expect_unresolved \*'
12963 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'
12964 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12965 echo "-hidden">> $lib.exp~
12966 $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~
12969 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12970 hardcode_libdir_separator_CXX=:
12972 # Commands to make compiler produce verbose output that lists
12973 # what "hidden" libraries, object files and flags are used when
12974 # linking a shared library.
12976 # There doesn't appear to be a way to prevent this compiler from
12977 # explicitly linking system object files so we need to strip them
12978 # from the output so that they don't get included in the library
12980 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'
12983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12985 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'
12987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12988 hardcode_libdir_separator_CXX=:
12990 # Commands to make compiler produce verbose output that lists
12991 # what "hidden" libraries, object files and flags are used when
12992 # linking a shared library.
12993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12996 # FIXME: insert proper C++ library support
13003 # FIXME: insert proper C++ library support
13007 archive_cmds_need_lc_CXX=no
13008 case $cc_basename in
13010 # FIXME: insert proper C++ library support
13014 # FIXME: insert proper C++ library support
13020 case $cc_basename in
13023 # FIXME: insert proper C++ library support
13028 # FIXME: insert proper C++ library support
13032 # FIXME: insert proper C++ library support
13038 case $cc_basename in
13040 # Sun C++ 4.2, 5.x and Centerline C++
13041 no_undefined_flag_CXX=' -zdefs'
13042 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13043 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13044 $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'
13046 hardcode_libdir_flag_spec_CXX='-R$libdir'
13047 hardcode_shlibpath_var_CXX=no
13049 solaris2.[0-5] | solaris2.[0-5].*) ;;
13051 # The C++ compiler is used as linker so we must use $wl
13052 # flag to pass the commands to the underlying system
13053 # linker. We must also pass each convience library through
13054 # to the system linker between allextract/defaultextract.
13055 # The C++ compiler will combine linker options so we
13056 # cannot just pass the convience library names through
13058 # Supported since Solaris 2.6 (maybe 2.5.1?)
13059 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'
13062 link_all_deplibs_CXX=yes
13064 # Commands to make compiler produce verbose output that lists
13065 # what "hidden" libraries, object files and flags are used when
13066 # linking a shared library.
13068 # There doesn't appear to be a way to prevent this compiler from
13069 # explicitly linking system object files so we need to strip them
13070 # from the output so that they don't get included in the library
13072 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'
13074 # Archives containing C++ object files must be created using
13075 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13076 # necessary to make sure instantiated templates are included
13078 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13081 # Green Hills C++ Compiler
13082 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13084 # The C++ compiler must be used to create the archive.
13085 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13088 # GNU C++ compiler with Solaris linker
13089 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13090 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13091 if $CC --version | grep -v '^2\.7' > /dev/null; then
13092 archive_cmds_CXX='$CC -shared -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 -shared -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 -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13101 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13103 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13104 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13105 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13107 # Commands to make compiler produce verbose output that lists
13108 # what "hidden" libraries, object files and flags are used when
13109 # linking a shared library.
13110 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13113 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13118 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13119 archive_cmds_need_lc_CXX=no
13122 case $cc_basename in
13124 # NonStop-UX NCC 3.20
13125 # FIXME: insert proper C++ library support
13129 # FIXME: insert proper C++ library support
13135 # FIXME: insert proper C++ library support
13139 # FIXME: insert proper C++ library support
13143 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13144 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13145 test "$ld_shlibs_CXX" = no && can_build_shared=no
13151 cat > conftest.$ac_ext <<EOF
13155 Foo (void) { a = 0; }
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; then
13166 # Parse the compiler output and extract the necessary
13167 # objects, libraries and library flags.
13169 # Sentinel used to keep track of whether or not we are before
13170 # the conftest object file.
13171 pre_test_object_deps_done=no
13173 # The `*' in the case matches for architectures that use `case' in
13174 # $output_verbose_cmd can trigger glob expansion during the loop
13175 # eval without this substitution.
13176 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13178 for p in `eval $output_verbose_link_cmd`; do
13182 # Some compilers place space between "-{L,R}" and the path.
13183 # Remove the space.
13184 if test $p = "-L" \
13185 || test $p = "-R"; then
13192 if test "$pre_test_object_deps_done" = no; then
13195 # Internal compiler library paths should come after those
13196 # provided the user. The postdeps already come after the
13197 # user supplied libs so there is no need to process them.
13198 if test -z "$compiler_lib_search_path_CXX"; then
13199 compiler_lib_search_path_CXX="${prev}${p}"
13201 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13204 # The "-l" case would never come before the object being
13205 # linked, so don't bother handling this case.
13208 if test -z "$postdeps_CXX"; then
13209 postdeps_CXX="${prev}${p}"
13211 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13217 # This assumes that the test object file only shows up
13218 # once in the compiler output.
13219 if test "$p" = "conftest.$objext"; then
13220 pre_test_object_deps_done=yes
13224 if test "$pre_test_object_deps_done" = no; then
13225 if test -z "$predep_objects_CXX"; then
13226 predep_objects_CXX="$p"
13228 predep_objects_CXX="$predep_objects_CXX $p"
13231 if test -z "$postdep_objects_CXX"; then
13232 postdep_objects_CXX="$p"
13234 postdep_objects_CXX="$postdep_objects_CXX $p"
13239 *) ;; # Ignore the rest.
13247 echo "libtool.m4: error: problem compiling CXX test program"
13250 $rm -f confest.$objext
13252 case " $postdeps_CXX " in
13253 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13256 lt_prog_compiler_wl_CXX=
13257 lt_prog_compiler_pic_CXX=
13258 lt_prog_compiler_static_CXX=
13260 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13261 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13263 # C++ specific cases for pic, static, wl, etc.
13264 if test "$GXX" = yes; then
13265 lt_prog_compiler_wl_CXX='-Wl,'
13266 lt_prog_compiler_static_CXX='-static'
13270 # All AIX code is PIC.
13271 if test "$host_cpu" = ia64; then
13272 # AIX 5 now supports IA64 processor
13273 lt_prog_compiler_static_CXX='-Bstatic'
13277 # FIXME: we need at least 68020 code to build shared libraries, but
13278 # adding the `-m68020' flag to GCC prevents building anything better,
13280 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13282 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13283 # PIC is the default for these OSes.
13285 mingw* | os2* | pw32*)
13286 # This hack is so that the source file can tell whether it is being
13287 # built for inclusion in a dll (and should export symbols for example).
13288 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13290 darwin* | rhapsody*)
13291 # PIC is the default on this platform
13292 # Common symbols not allowed in MH_DYLIB files
13293 lt_prog_compiler_pic_CXX='-fno-common'
13296 # DJGPP does not support shared libraries at all
13297 lt_prog_compiler_pic_CXX=
13300 if test -d /usr/nec; then
13301 lt_prog_compiler_pic_CXX=-Kconform_pic
13305 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13306 # not for PA HP-UX.
13307 case "$host_cpu" in
13311 lt_prog_compiler_pic_CXX='-fPIC'
13316 lt_prog_compiler_pic_CXX='-fPIC'
13322 # All AIX code is PIC.
13323 if test "$host_cpu" = ia64; then
13324 # AIX 5 now supports IA64 processor
13325 lt_prog_compiler_static_CXX='-Bstatic'
13327 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13331 case $cc_basename in
13333 # Green Hills C++ Compiler
13334 # _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"
13339 # PIC is the default on this platform
13340 # Common symbols not allowed in MH_DYLIB files
13341 case $cc_basename in
13343 lt_prog_compiler_pic_CXX='-qnocommon'
13344 lt_prog_compiler_wl_CXX='-Wl,'
13349 case $cc_basename in
13351 lt_prog_compiler_pic_CXX='-KPIC'
13354 # Green Hills C++ Compiler
13355 lt_prog_compiler_pic_CXX='-pic'
13361 freebsd* | kfreebsd*-gnu | dragonfly*)
13362 # FreeBSD uses GNU C++
13364 hpux9* | hpux10* | hpux11*)
13365 case $cc_basename in
13367 lt_prog_compiler_wl_CXX='-Wl,'
13368 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13369 if test "$host_cpu" != ia64; then
13370 lt_prog_compiler_pic_CXX='+Z'
13374 lt_prog_compiler_wl_CXX='-Wl,'
13375 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13376 case "$host_cpu" in
13381 lt_prog_compiler_pic_CXX='+Z'
13389 irix5* | irix6* | nonstopux*)
13390 case $cc_basename in
13392 lt_prog_compiler_wl_CXX='-Wl,'
13393 lt_prog_compiler_static_CXX='-non_shared'
13394 # CC pic flag -KPIC is the default.
13401 case $cc_basename in
13404 lt_prog_compiler_wl_CXX='--backend -Wl,'
13405 lt_prog_compiler_pic_CXX='-fPIC'
13409 lt_prog_compiler_wl_CXX='-Wl,'
13410 lt_prog_compiler_pic_CXX='-KPIC'
13411 lt_prog_compiler_static_CXX='-static'
13414 # Portland Group C++ compiler.
13415 lt_prog_compiler_wl_CXX='-Wl,'
13416 lt_prog_compiler_pic_CXX='-fpic'
13417 lt_prog_compiler_static_CXX='-static'
13421 # Make sure the PIC flag is empty. It appears that all Alpha
13422 # Linux and Compaq Tru64 Unix objects are PIC.
13423 lt_prog_compiler_pic_CXX=
13424 lt_prog_compiler_static_CXX='-non_shared'
13435 case $cc_basename in
13437 lt_prog_compiler_pic_CXX='-W c,exportall'
13445 osf3* | osf4* | osf5*)
13446 case $cc_basename in
13448 lt_prog_compiler_wl_CXX='--backend -Wl,'
13451 # Rational C++ 2.4.1
13452 lt_prog_compiler_pic_CXX='-pic'
13455 # Digital/Compaq C++
13456 lt_prog_compiler_wl_CXX='-Wl,'
13457 # Make sure the PIC flag is empty. It appears that all Alpha
13458 # Linux and Compaq Tru64 Unix objects are PIC.
13459 lt_prog_compiler_pic_CXX=
13460 lt_prog_compiler_static_CXX='-non_shared'
13469 case $cc_basename in
13471 lt_prog_compiler_pic_CXX='-fPIC'
13478 case $cc_basename in
13480 # Sun C++ 4.2, 5.x and Centerline C++
13481 lt_prog_compiler_pic_CXX='-KPIC'
13482 lt_prog_compiler_static_CXX='-Bstatic'
13483 lt_prog_compiler_wl_CXX='-Qoption ld '
13486 # Green Hills C++ Compiler
13487 lt_prog_compiler_pic_CXX='-PIC'
13494 case $cc_basename in
13497 lt_prog_compiler_pic_CXX='-pic'
13498 lt_prog_compiler_static_CXX='-Bstatic'
13502 lt_prog_compiler_pic_CXX='-pic'
13509 case $cc_basename in
13511 # NonStop-UX NCC 3.20
13512 lt_prog_compiler_pic_CXX='-KPIC'
13523 lt_prog_compiler_can_build_shared_CXX=no
13528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13529 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13532 # Check to make sure the PIC flag actually works.
13534 if test -n "$lt_prog_compiler_pic_CXX"; then
13536 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13537 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13538 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 lt_prog_compiler_pic_works_CXX=no
13542 ac_outfile=conftest.$ac_objext
13543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13544 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13545 # Insert the option either (1) after the last *FLAGS variable, or
13546 # (2) before a word containing "conftest.", or (3) at the end.
13547 # Note that $ac_compile itself does not contain backslashes and begins
13548 # with a dollar sign (not a hyphen), so the echo should work correctly.
13549 # The option is referenced via a variable to avoid confusing sed.
13550 lt_compile=`echo "$ac_compile" | $SED \
13551 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13553 -e 's:$: $lt_compiler_flag:'`
13554 (eval echo "\"\$as_me:13554: $lt_compile\"" >&5)
13555 (eval "$lt_compile" 2>conftest.err)
13557 cat conftest.err >&5
13558 echo "$as_me:13558: \$? = $ac_status" >&5
13559 if (exit $ac_status) && test -s "$ac_outfile"; then
13560 # The compiler can only warn and ignore the option if not recognized
13561 # So say no if there are warnings other than the usual output.
13562 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13563 $SED '/^$/d' conftest.err >conftest.er2
13564 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13565 lt_prog_compiler_pic_works_CXX=yes
13571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13572 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13574 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13575 case $lt_prog_compiler_pic_CXX in
13577 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13580 lt_prog_compiler_pic_CXX=
13581 lt_prog_compiler_can_build_shared_CXX=no
13586 # For platforms which do not support PIC, -DPIC is meaningless:
13588 lt_prog_compiler_pic_CXX=
13591 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13596 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13597 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13600 lt_cv_prog_compiler_c_o_CXX=no
13601 $rm -r conftest 2>/dev/null
13605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13607 lt_compiler_flag="-o out/conftest2.$ac_objext"
13608 # Insert the option either (1) after the last *FLAGS variable, or
13609 # (2) before a word containing "conftest.", or (3) at the end.
13610 # Note that $ac_compile itself does not contain backslashes and begins
13611 # with a dollar sign (not a hyphen), so the echo should work correctly.
13612 lt_compile=`echo "$ac_compile" | $SED \
13613 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13615 -e 's:$: $lt_compiler_flag:'`
13616 (eval echo "\"\$as_me:13616: $lt_compile\"" >&5)
13617 (eval "$lt_compile" 2>out/conftest.err)
13619 cat out/conftest.err >&5
13620 echo "$as_me:13620: \$? = $ac_status" >&5
13621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13623 # The compiler can only warn and ignore the option if not recognized
13624 # So say no if there are warnings
13625 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13626 $SED '/^$/d' out/conftest.err >out/conftest.er2
13627 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13628 lt_cv_prog_compiler_c_o_CXX=yes
13633 # SGI C++ compiler will create directory out/ii_files/ for
13634 # template instantiation
13635 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13636 $rm out/* && rmdir out
13642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13643 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13646 hard_links="nottested"
13647 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13648 # do not overwrite the value of need_locks provided by the user
13649 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13650 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13655 ln conftest.a conftest.b 2>&5 || hard_links=no
13656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13657 echo "$as_me:$LINENO: result: $hard_links" >&5
13658 echo "${ECHO_T}$hard_links" >&6
13659 if test "$hard_links" = no; then
13660 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13661 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13668 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13669 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13671 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13674 # If we're using GNU nm, then we don't want the "-C" option.
13675 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13676 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13677 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'
13679 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'
13683 export_symbols_cmds_CXX="$ltdll_cmds"
13686 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'
13689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13693 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13694 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13695 test "$ld_shlibs_CXX" = no && can_build_shared=no
13697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13698 if test "$GCC" = yes; then
13699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13703 # Do we need to explicitly link libc?
13705 case "x$archive_cmds_need_lc_CXX" in
13707 # Assume -lc should be added
13708 archive_cmds_need_lc_CXX=yes
13710 if test "$enable_shared" = yes && test "$GCC" = yes; then
13711 case $archive_cmds_CXX in
13713 # FIXME: we may have to deal with multi-command sequences.
13716 # Test whether the compiler implicitly links with -lc since on some
13717 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13718 # to ld, don't add -lc before -lgcc.
13719 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13720 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725 (eval $ac_compile) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } 2>conftest.err; then
13731 libobjs=conftest.$ac_objext
13733 wl=$lt_prog_compiler_wl_CXX
13739 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13740 allow_undefined_flag_CXX=
13741 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13742 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }
13747 archive_cmds_need_lc_CXX=no
13749 archive_cmds_need_lc_CXX=yes
13751 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13753 cat conftest.err 1>&5
13756 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13757 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13764 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13765 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13766 library_names_spec=
13767 libname_spec='lib$name'
13771 postuninstall_cmds=
13775 shlibpath_overrides_runpath=unknown
13777 dynamic_linker="$host_os ld.so"
13778 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13779 if test "$GCC" = yes; then
13780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13781 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13782 # if the path contains ";" then we assume it to be the separator
13783 # otherwise default to the standard path separator (i.e. ":") - it is
13784 # assumed that no part of a normal pathname contains ";" but that should
13785 # okay in the real world where ";" in dirpaths is itself problematic.
13786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13793 need_lib_prefix=unknown
13794 hardcode_into_libs=no
13796 # when you set need_version to no, make sure it does not cause -set_version
13797 # flags to be left without arguments
13798 need_version=unknown
13803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13804 shlibpath_var=LIBPATH
13806 # AIX 3 has no versioning support, so we append a major version to the name.
13807 soname_spec='${libname}${release}${shared_ext}$major'
13814 hardcode_into_libs=yes
13815 if test "$host_cpu" = ia64; then
13816 # AIX 5 supports IA64
13817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13818 shlibpath_var=LD_LIBRARY_PATH
13820 # With GCC up to 2.95.x, collect2 would create an import file
13821 # for dependence libraries. The import file would start with
13822 # the line `#! .'. This would cause the generated library to
13823 # depend on `.', always an invalid library. This was fixed in
13824 # development snapshots of GCC prior to 3.0.
13826 aix4 | aix4.[01] | aix4.[01].*)
13827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13832 can_build_shared=no
13836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13837 # soname into executable. Probably we can add versioning support to
13838 # collect2, so additional links can be useful in future.
13839 if test "$aix_use_runtimelinking" = yes; then
13840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13841 # instead of lib<name>.a to let people know that these are not
13842 # typical AIX shared libraries.
13843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845 # We preserve .a as extension for shared libraries through AIX4.2
13846 # and later when we are not doing run time linking.
13847 library_names_spec='${libname}${release}.a $libname.a'
13848 soname_spec='${libname}${release}${shared_ext}$major'
13850 shlibpath_var=LIBPATH
13855 library_names_spec='$libname.ixlibrary $libname.a'
13856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13857 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'
13861 library_names_spec='${libname}${shared_ext}'
13862 dynamic_linker="$host_os ld.so"
13863 shlibpath_var=LIBRARY_PATH
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13870 soname_spec='${libname}${release}${shared_ext}$major'
13871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13872 shlibpath_var=LD_LIBRARY_PATH
13873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13875 # the default ld.so.conf also contains /usr/contrib/lib and
13876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13877 # libtool to hard-code these into programs
13880 cygwin* | mingw* | pw32*)
13881 version_type=windows
13886 case $GCC,$host_os in
13887 yes,cygwin* | yes,mingw* | yes,pw32*)
13888 library_names_spec='$libname.dll.a'
13889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13890 postinstall_cmds='base_file=`basename \${file}`~
13891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13892 dldir=$destdir/`dirname \$dlpath`~
13893 test -d \$dldir || mkdir -p \$dldir~
13894 $install_prog $dir/$dlname \$dldir/$dlname'
13895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13896 dlpath=$dir/\$dldll~
13898 shlibpath_overrides_runpath=yes
13902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13904 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13907 # MinGW DLLs use traditional 'lib' prefix
13908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13909 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13910 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13911 # It is most probably a Windows format PATH printed by
13912 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13913 # path with ; separators, and with drive letters. We can handle the
13914 # drive letters (cygwin fileutils understands them), so leave them,
13915 # especially as we might pass files found there to a mingw objdump,
13916 # which wouldn't understand a cygwinified path. Ahh.
13917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13923 # pw32 DLLs use 'pw' prefix rather than 'lib'
13924 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13930 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13933 dynamic_linker='Win32 ld.exe'
13934 # FIXME: first we should search . and the directory the executable is in
13938 darwin* | rhapsody*)
13939 dynamic_linker="$host_os dyld"
13940 version_type=darwin
13943 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13944 soname_spec='${libname}${release}${major}$shared_ext'
13945 shlibpath_overrides_runpath=yes
13946 shlibpath_var=DYLD_LIBRARY_PATH
13947 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13948 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13949 if test "$GCC" = yes; then
13950 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"`
13952 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13962 soname_spec='${libname}${release}${shared_ext}$major'
13963 shlibpath_var=LD_LIBRARY_PATH
13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13975 soname_spec='${libname}${release}${shared_ext}$major'
13976 shlibpath_var=LD_LIBRARY_PATH
13977 shlibpath_overrides_runpath=no
13978 hardcode_into_libs=yes
13979 dynamic_linker='GNU ld.so'
13982 freebsd* | dragonfly*)
13983 # DragonFly does not have aout. When/if they implement a new
13984 # versioning mechanism, adjust this.
13985 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13986 version_type=freebsd-$objformat
13987 case $version_type in
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13998 shlibpath_var=LD_LIBRARY_PATH
14001 shlibpath_overrides_runpath=yes
14003 freebsd3.[01]* | freebsdelf3.[01]*)
14004 shlibpath_overrides_runpath=yes
14005 hardcode_into_libs=yes
14008 shlibpath_overrides_runpath=no
14009 hardcode_into_libs=yes
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14019 soname_spec='${libname}${release}${shared_ext}$major'
14020 shlibpath_var=LD_LIBRARY_PATH
14021 hardcode_into_libs=yes
14024 hpux9* | hpux10* | hpux11*)
14025 # Give a soname corresponding to the major version so that dld.sl refuses to
14026 # link against other versions.
14030 case "$host_cpu" in
14033 hardcode_into_libs=yes
14034 dynamic_linker="$host_os dld.so"
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 if test "X$HPUX_IA64_MODE" = X32; then
14040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14048 hardcode_into_libs=yes
14049 dynamic_linker="$host_os dld.sl"
14050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14059 dynamic_linker="$host_os dld.sl"
14060 shlibpath_var=SHLIB_PATH
14061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063 soname_spec='${libname}${release}${shared_ext}$major'
14066 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14067 postinstall_cmds='chmod 555 $lib'
14070 irix5* | irix6* | nonstopux*)
14072 nonstopux*) version_type=nonstopux ;;
14074 if test "$lt_cv_prog_gnu_ld" = yes; then
14082 soname_spec='${libname}${release}${shared_ext}$major'
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14085 irix5* | nonstopux*)
14086 libsuff= shlibsuff=
14089 case $LD in # libtool.m4 will add one of these switches to LD
14090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14091 libsuff= shlibsuff= libmagic=32-bit;;
14092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14093 libsuff=32 shlibsuff=N32 libmagic=N32;;
14094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14096 *) libsuff= shlibsuff= libmagic=never-match;;
14100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14101 shlibpath_overrides_runpath=no
14102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14104 hardcode_into_libs=yes
14107 # No shared lib support for Linux oldld, aout, or coff.
14108 linux*oldld* | linux*aout* | linux*coff*)
14112 # This must be Linux ELF.
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118 soname_spec='${libname}${release}${shared_ext}$major'
14119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14120 shlibpath_var=LD_LIBRARY_PATH
14121 shlibpath_overrides_runpath=no
14122 # This implies no fast_install, which is unacceptable.
14123 # Some rework will be needed to allow for fast_install
14124 # before this can be enabled.
14125 hardcode_into_libs=yes
14127 # Append ld.so.conf contents to the search path
14128 if test -f /etc/ld.so.conf; then
14129 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' ' '`
14130 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14133 # We used to test for /lib/ld.so.1 and disable shared libraries on
14134 # powerpc, because MkLinux only supported shared libraries with the
14135 # GNU dynamic linker. Since this was broken with cross compilers,
14136 # most powerpc-linux boxes support dynamic linking these days and
14137 # people can always --disable-shared, the test was removed, and we
14138 # assume the GNU/Linux dynamic linker is in use.
14139 dynamic_linker='GNU/Linux ld.so'
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14147 soname_spec='${libname}${release}${shared_ext}$major'
14148 shlibpath_var=LD_LIBRARY_PATH
14149 shlibpath_overrides_runpath=no
14150 hardcode_into_libs=yes
14151 dynamic_linker='GNU ld.so'
14158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14161 dynamic_linker='NetBSD (a.out) ld.so'
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14164 soname_spec='${libname}${release}${shared_ext}$major'
14165 dynamic_linker='NetBSD ld.elf_so'
14167 shlibpath_var=LD_LIBRARY_PATH
14168 shlibpath_overrides_runpath=yes
14169 hardcode_into_libs=yes
14174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175 shlibpath_var=LD_LIBRARY_PATH
14176 shlibpath_overrides_runpath=yes
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184 soname_spec='${libname}${release}${shared_ext}$major'
14185 shlibpath_var=LD_LIBRARY_PATH
14186 shlibpath_overrides_runpath=yes
14192 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14194 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14195 *) need_version=no ;;
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14199 shlibpath_var=LD_LIBRARY_PATH
14200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14202 openbsd2.[89] | openbsd2.[89].*)
14203 shlibpath_overrides_runpath=no
14206 shlibpath_overrides_runpath=yes
14210 shlibpath_overrides_runpath=yes
14215 libname_spec='$name'
14218 library_names_spec='$libname${shared_ext} $libname.a'
14219 dynamic_linker='OS/2 ld.exe'
14220 shlibpath_var=LIBPATH
14223 osf3* | osf4* | osf5*)
14227 soname_spec='${libname}${release}${shared_ext}$major'
14228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229 shlibpath_var=LD_LIBRARY_PATH
14230 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14231 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14236 soname_spec='${libname}${release}${shared_ext}$major'
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 shlibpath_var=LD_LIBRARY_PATH
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246 soname_spec='${libname}${release}${shared_ext}$major'
14247 shlibpath_var=LD_LIBRARY_PATH
14248 shlibpath_overrides_runpath=yes
14249 hardcode_into_libs=yes
14250 # ldd complains unless libraries are executable
14251 postinstall_cmds='chmod +x $lib'
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14258 shlibpath_var=LD_LIBRARY_PATH
14259 shlibpath_overrides_runpath=yes
14260 if test "$with_gnu_ld" = yes; then
14266 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269 soname_spec='${libname}${release}${shared_ext}$major'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 case $host_vendor in
14273 shlibpath_overrides_runpath=no
14275 export_dynamic_flag_spec='${wl}-Blargedynsym'
14276 runpath_var=LD_RUN_PATH
14284 shlibpath_overrides_runpath=no
14285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14291 if test -d /usr/nec ;then
14293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14294 soname_spec='$libname${shared_ext}.$major'
14295 shlibpath_var=LD_LIBRARY_PATH
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 shlibpath_var=LD_LIBRARY_PATH
14310 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14311 echo "${ECHO_T}$dynamic_linker" >&6
14312 test "$dynamic_linker" = no && can_build_shared=no
14314 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14315 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14316 hardcode_action_CXX=
14317 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14318 test -n "$runpath_var_CXX" || \
14319 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14321 # We can hardcode non-existant directories.
14322 if test "$hardcode_direct_CXX" != no &&
14323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14324 # have to relink, otherwise we might link with an installed library
14325 # when we should be linking with a yet-to-be-installed one
14326 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14327 test "$hardcode_minus_L_CXX" != no; then
14328 # Linking always hardcodes the temporary library directory.
14329 hardcode_action_CXX=relink
14331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14332 hardcode_action_CXX=immediate
14335 # We cannot hardcode anything, or else we can only hardcode existing
14337 hardcode_action_CXX=unsupported
14339 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14340 echo "${ECHO_T}$hardcode_action_CXX" >&6
14342 if test "$hardcode_action_CXX" = relink; then
14343 # Fast installation is not supported
14344 enable_fast_install=no
14345 elif test "$shlibpath_overrides_runpath" = yes ||
14346 test "$enable_shared" = no; then
14347 # Fast installation is not necessary
14348 enable_fast_install=needless
14353 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14354 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14355 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14356 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14357 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14358 echo "$as_me:$LINENO: result: yes" >&5
14359 echo "${ECHO_T}yes" >&6
14361 # FIXME - insert some real tests, host_os isn't really good enough
14364 if test -n "$STRIP" ; then
14365 striplib="$STRIP -x"
14366 echo "$as_me:$LINENO: result: yes" >&5
14367 echo "${ECHO_T}yes" >&6
14369 echo "$as_me:$LINENO: result: no" >&5
14370 echo "${ECHO_T}no" >&6
14374 echo "$as_me:$LINENO: result: no" >&5
14375 echo "${ECHO_T}no" >&6
14380 if test "x$enable_dlopen" != xyes; then
14381 enable_dlopen=unknown
14382 enable_dlopen_self=unknown
14383 enable_dlopen_self_static=unknown
14390 lt_cv_dlopen="load_add_on"
14392 lt_cv_dlopen_self=yes
14396 lt_cv_dlopen="LoadLibrary"
14401 lt_cv_dlopen="dlopen"
14406 # if libdl is installed we need to link against it
14407 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14408 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 ac_check_lib_save_LIBS=$LIBS
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14421 /* Override any gcc2 internal prototype to avoid an error. */
14425 /* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_cxx_werror_flag"
14446 || test ! -s conftest.err'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try='test -s conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_lib_dl_dlopen=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_cv_lib_dl_dlopen=no
14465 rm -f conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
14467 LIBS=$ac_check_lib_save_LIBS
14469 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14470 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14471 if test $ac_cv_lib_dl_dlopen = yes; then
14472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14475 lt_cv_dlopen="dyld"
14477 lt_cv_dlopen_self=yes
14484 echo "$as_me:$LINENO: checking for shl_load" >&5
14485 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14486 if test "${ac_cv_func_shl_load+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 cat >conftest.$ac_ext <<_ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14497 #define shl_load innocuous_shl_load
14499 /* System header to define __stub macros and hopefully few prototypes,
14500 which can conflict with char shl_load (); below.
14501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14502 <limits.h> exists even on freestanding compilers. */
14505 # include <limits.h>
14507 # include <assert.h>
14512 /* Override any gcc2 internal prototype to avoid an error. */
14517 /* We use char because int might match the return type of a gcc2
14518 builtin and then its argument prototype would still apply. */
14520 /* The GNU C library defines this for functions which it implements
14521 to always fail with ENOSYS. Some functions are actually named
14522 something starting with __ and the normal name is an alias. */
14523 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14526 char (*f) () = shl_load;
14535 return f != shl_load;
14540 rm -f conftest.$ac_objext conftest$ac_exeext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542 (eval $ac_link) 2>conftest.er1
14544 grep -v '^ *+' conftest.er1 >conftest.err
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -z "$ac_cxx_werror_flag"
14550 || test ! -s conftest.err'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest$ac_exeext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_cv_func_shl_load=yes
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14567 ac_cv_func_shl_load=no
14569 rm -f conftest.err conftest.$ac_objext \
14570 conftest$ac_exeext conftest.$ac_ext
14572 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14573 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14574 if test $ac_cv_func_shl_load = yes; then
14575 lt_cv_dlopen="shl_load"
14577 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14578 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14579 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 ac_check_lib_save_LIBS=$LIBS
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14591 /* Override any gcc2 internal prototype to avoid an error. */
14595 /* We use char because int might match the return type of a gcc2
14596 builtin and then its argument prototype would still apply. */
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14608 (eval $ac_link) 2>conftest.er1
14610 grep -v '^ *+' conftest.er1 >conftest.err
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -z "$ac_cxx_werror_flag"
14616 || test ! -s conftest.err'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; } &&
14622 { ac_try='test -s conftest$ac_exeext'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_cv_lib_dld_shl_load=yes
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_cv_lib_dld_shl_load=no
14635 rm -f conftest.err conftest.$ac_objext \
14636 conftest$ac_exeext conftest.$ac_ext
14637 LIBS=$ac_check_lib_save_LIBS
14639 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14640 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14641 if test $ac_cv_lib_dld_shl_load = yes; then
14642 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14644 echo "$as_me:$LINENO: checking for dlopen" >&5
14645 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14646 if test "${ac_cv_func_dlopen+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 cat >conftest.$ac_ext <<_ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14657 #define dlopen innocuous_dlopen
14659 /* System header to define __stub macros and hopefully few prototypes,
14660 which can conflict with char dlopen (); below.
14661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14662 <limits.h> exists even on freestanding compilers. */
14665 # include <limits.h>
14667 # include <assert.h>
14672 /* Override any gcc2 internal prototype to avoid an error. */
14677 /* We use char because int might match the return type of a gcc2
14678 builtin and then its argument prototype would still apply. */
14680 /* The GNU C library defines this for functions which it implements
14681 to always fail with ENOSYS. Some functions are actually named
14682 something starting with __ and the normal name is an alias. */
14683 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14686 char (*f) () = dlopen;
14695 return f != dlopen;
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>conftest.er1
14704 grep -v '^ *+' conftest.er1 >conftest.err
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -z "$ac_cxx_werror_flag"
14710 || test ! -s conftest.err'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest$ac_exeext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_cv_func_dlopen=yes
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14727 ac_cv_func_dlopen=no
14729 rm -f conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14732 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14733 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14734 if test $ac_cv_func_dlopen = yes; then
14735 lt_cv_dlopen="dlopen"
14737 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14738 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 ac_check_lib_save_LIBS=$LIBS
14744 cat >conftest.$ac_ext <<_ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14751 /* Override any gcc2 internal prototype to avoid an error. */
14755 /* We use char because int might match the return type of a gcc2
14756 builtin and then its argument prototype would still apply. */
14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14768 (eval $ac_link) 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_cxx_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest$ac_exeext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_lib_dl_dlopen=yes
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_cv_lib_dl_dlopen=no
14795 rm -f conftest.err conftest.$ac_objext \
14796 conftest$ac_exeext conftest.$ac_ext
14797 LIBS=$ac_check_lib_save_LIBS
14799 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14800 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14801 if test $ac_cv_lib_dl_dlopen = yes; then
14802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14804 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14805 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14806 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lsvld $LIBS"
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14818 /* Override any gcc2 internal prototype to avoid an error. */
14822 /* We use char because int might match the return type of a gcc2
14823 builtin and then its argument prototype would still apply. */
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835 (eval $ac_link) 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -z "$ac_cxx_werror_flag"
14843 || test ! -s conftest.err'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; } &&
14849 { ac_try='test -s conftest$ac_exeext'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_cv_lib_svld_dlopen=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_cv_lib_svld_dlopen=no
14862 rm -f conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14866 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14867 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14868 if test $ac_cv_lib_svld_dlopen = yes; then
14869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14871 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14872 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14873 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 ac_check_lib_save_LIBS=$LIBS
14878 cat >conftest.$ac_ext <<_ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14885 /* Override any gcc2 internal prototype to avoid an error. */
14889 /* We use char because int might match the return type of a gcc2
14890 builtin and then its argument prototype would still apply. */
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14902 (eval $ac_link) 2>conftest.er1
14904 grep -v '^ *+' conftest.er1 >conftest.err
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -z "$ac_cxx_werror_flag"
14910 || test ! -s conftest.err'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_lib_dld_dld_link=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_cv_lib_dld_dld_link=no
14929 rm -f conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14934 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14935 if test $ac_cv_lib_dld_dld_link = yes; then
14936 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14957 if test "x$lt_cv_dlopen" != xno; then
14963 case $lt_cv_dlopen in
14965 save_CPPFLAGS="$CPPFLAGS"
14966 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14968 save_LDFLAGS="$LDFLAGS"
14969 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14972 LIBS="$lt_cv_dlopen_libs $LIBS"
14974 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14975 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14976 if test "${lt_cv_dlopen_self+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 if test "$cross_compiling" = yes; then :
14980 lt_cv_dlopen_self=cross
14982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14983 lt_status=$lt_dlunknown
14984 cat > conftest.$ac_ext <<EOF
14985 #line 14985 "configure"
14986 #include "confdefs.h"
14995 # define LT_DLGLOBAL RTLD_GLOBAL
14998 # define LT_DLGLOBAL DL_GLOBAL
15000 # define LT_DLGLOBAL 0
15004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15005 find out it does not work in some platform. */
15006 #ifndef LT_DLLAZY_OR_NOW
15008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15011 # define LT_DLLAZY_OR_NOW DL_LAZY
15014 # define LT_DLLAZY_OR_NOW RTLD_NOW
15017 # define LT_DLLAZY_OR_NOW DL_NOW
15019 # define LT_DLLAZY_OR_NOW 0
15027 extern "C" void exit (int);
15030 void fnord() { int i=42;}
15033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15034 int status = $lt_dlunknown;
15038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15039 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15040 /* dlclose (self); */
15046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15047 (eval $ac_link) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15051 (./conftest; exit; ) 2>/dev/null
15053 case x$lt_status in
15054 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15055 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15056 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15059 # compilation failed
15060 lt_cv_dlopen_self=no
15067 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15068 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15070 if test "x$lt_cv_dlopen_self" = xyes; then
15071 LDFLAGS="$LDFLAGS $link_static_flag"
15072 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15073 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15074 if test "${lt_cv_dlopen_self_static+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 if test "$cross_compiling" = yes; then :
15078 lt_cv_dlopen_self_static=cross
15080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15081 lt_status=$lt_dlunknown
15082 cat > conftest.$ac_ext <<EOF
15083 #line 15083 "configure"
15084 #include "confdefs.h"
15093 # define LT_DLGLOBAL RTLD_GLOBAL
15096 # define LT_DLGLOBAL DL_GLOBAL
15098 # define LT_DLGLOBAL 0
15102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15103 find out it does not work in some platform. */
15104 #ifndef LT_DLLAZY_OR_NOW
15106 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15109 # define LT_DLLAZY_OR_NOW DL_LAZY
15112 # define LT_DLLAZY_OR_NOW RTLD_NOW
15115 # define LT_DLLAZY_OR_NOW DL_NOW
15117 # define LT_DLLAZY_OR_NOW 0
15125 extern "C" void exit (int);
15128 void fnord() { int i=42;}
15131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15132 int status = $lt_dlunknown;
15136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15138 /* dlclose (self); */
15144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15145 (eval $ac_link) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15149 (./conftest; exit; ) 2>/dev/null
15151 case x$lt_status in
15152 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15153 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15154 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15157 # compilation failed
15158 lt_cv_dlopen_self_static=no
15165 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15166 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15169 CPPFLAGS="$save_CPPFLAGS"
15170 LDFLAGS="$save_LDFLAGS"
15175 case $lt_cv_dlopen_self in
15176 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15177 *) enable_dlopen_self=unknown ;;
15180 case $lt_cv_dlopen_self_static in
15181 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15182 *) enable_dlopen_self_static=unknown ;;
15187 # The else clause should only fire when bootstrapping the
15188 # libtool distribution, otherwise you forgot to ship ltmain.sh
15189 # with your package, and you will get complaints that there are
15190 # no rules to generate ltmain.sh.
15191 if test -f "$ltmain"; then
15192 # See if we are running on zsh, and set the options which allow our commands through
15193 # without removal of \ escapes.
15194 if test -n "${ZSH_VERSION+set}" ; then
15195 setopt NO_GLOB_SUBST
15197 # Now quote all the things that may contain metacharacters while being
15198 # careful not to overquote the AC_SUBSTed values. We take copies of the
15199 # variables and quote the copies for generation of the libtool script.
15200 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15202 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15203 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15204 deplibs_check_method reload_flag reload_cmds need_locks \
15205 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15206 lt_cv_sys_global_symbol_to_c_name_address \
15207 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15208 old_postinstall_cmds old_postuninstall_cmds \
15212 lt_prog_compiler_wl_CXX \
15213 lt_prog_compiler_pic_CXX \
15214 lt_prog_compiler_static_CXX \
15215 lt_prog_compiler_no_builtin_flag_CXX \
15216 export_dynamic_flag_spec_CXX \
15217 thread_safe_flag_spec_CXX \
15218 whole_archive_flag_spec_CXX \
15219 enable_shared_with_static_runtimes_CXX \
15220 old_archive_cmds_CXX \
15221 old_archive_from_new_cmds_CXX \
15222 predep_objects_CXX \
15223 postdep_objects_CXX \
15226 compiler_lib_search_path_CXX \
15228 archive_expsym_cmds_CXX \
15229 postinstall_cmds_CXX \
15230 postuninstall_cmds_CXX \
15231 old_archive_from_expsyms_cmds_CXX \
15232 allow_undefined_flag_CXX \
15233 no_undefined_flag_CXX \
15234 export_symbols_cmds_CXX \
15235 hardcode_libdir_flag_spec_CXX \
15236 hardcode_libdir_flag_spec_ld_CXX \
15237 hardcode_libdir_separator_CXX \
15238 hardcode_automatic_CXX \
15240 module_expsym_cmds_CXX \
15241 lt_cv_prog_compiler_c_o_CXX \
15242 exclude_expsyms_CXX \
15243 include_expsyms_CXX; do
15246 old_archive_cmds_CXX | \
15247 old_archive_from_new_cmds_CXX | \
15248 archive_cmds_CXX | \
15249 archive_expsym_cmds_CXX | \
15250 module_cmds_CXX | \
15251 module_expsym_cmds_CXX | \
15252 old_archive_from_expsyms_cmds_CXX | \
15253 export_symbols_cmds_CXX | \
15254 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15255 postinstall_cmds | postuninstall_cmds | \
15256 old_postinstall_cmds | old_postuninstall_cmds | \
15257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15258 # Double-quote double-evaled strings.
15259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15268 *'\$0 --fallback-echo"')
15269 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15275 cat <<__EOF__ >> "$cfgfile"
15276 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15280 # Shell to use when invoking shell scripts.
15283 # Whether or not to build shared libraries.
15284 build_libtool_libs=$enable_shared
15286 # Whether or not to build static libraries.
15287 build_old_libs=$enable_static
15289 # Whether or not to add -lc for building shared libraries.
15290 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15292 # Whether or not to disallow shared libs when runtime libs are static
15293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15295 # Whether or not to optimize for fast installation.
15296 fast_install=$enable_fast_install
15299 host_alias=$host_alias
15303 # The build system.
15304 build_alias=$build_alias
15308 # An echo program that does not interpret backslashes.
15313 AR_FLAGS=$lt_AR_FLAGS
15318 # A language-specific compiler.
15319 CC=$lt_compiler_CXX
15321 # Is the compiler the GNU C compiler?
15327 # The linker used to build libraries.
15330 # Whether we need hard or soft links.
15333 # A BSD-compatible nm program.
15336 # A symbol stripping program
15339 # Used to examine libraries when file_magic_cmd begins "file"
15340 MAGIC_CMD=$MAGIC_CMD
15342 # Used on cygwin: DLL creation program.
15345 # Used on cygwin: object dumper.
15348 # Used on cygwin: assembler.
15351 # The name of the directory that contains temporary libtool files.
15354 # How to create reloadable object files.
15355 reload_flag=$lt_reload_flag
15356 reload_cmds=$lt_reload_cmds
15358 # How to pass a linker flag through the compiler.
15359 wl=$lt_lt_prog_compiler_wl_CXX
15361 # Object file suffix (normally "o").
15362 objext="$ac_objext"
15364 # Old archive suffix (normally "a").
15367 # Shared library suffix (normally ".so").
15368 shrext_cmds='$shrext_cmds'
15370 # Executable file suffix (normally "").
15373 # Additional compiler flags for building library objects.
15374 pic_flag=$lt_lt_prog_compiler_pic_CXX
15377 # What is the maximum length of a command?
15378 max_cmd_len=$lt_cv_sys_max_cmd_len
15380 # Does compiler simultaneously support -c and -o options?
15381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15383 # Must we lock files when doing compilation?
15384 need_locks=$lt_need_locks
15386 # Do we need the lib prefix for modules?
15387 need_lib_prefix=$need_lib_prefix
15389 # Do we need a version for libraries?
15390 need_version=$need_version
15392 # Whether dlopen is supported.
15393 dlopen_support=$enable_dlopen
15395 # Whether dlopen of programs is supported.
15396 dlopen_self=$enable_dlopen_self
15398 # Whether dlopen of statically linked programs is supported.
15399 dlopen_self_static=$enable_dlopen_self_static
15401 # Compiler flag to prevent dynamic linking.
15402 link_static_flag=$lt_lt_prog_compiler_static_CXX
15404 # Compiler flag to turn off builtin functions.
15405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15407 # Compiler flag to allow reflexive dlopens.
15408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15410 # Compiler flag to generate shared objects directly from archives.
15411 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15413 # Compiler flag to generate thread-safe objects.
15414 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15416 # Library versioning type.
15417 version_type=$version_type
15419 # Format of library name prefix.
15420 libname_spec=$lt_libname_spec
15422 # List of archive names. First name is the real one, the rest are links.
15423 # The last name is the one that the linker finds with -lNAME.
15424 library_names_spec=$lt_library_names_spec
15426 # The coded name of the library, if different from the real name.
15427 soname_spec=$lt_soname_spec
15429 # Commands used to build and install an old-style archive.
15431 old_archive_cmds=$lt_old_archive_cmds_CXX
15432 old_postinstall_cmds=$lt_old_postinstall_cmds
15433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15435 # Create an old-style archive from a shared archive.
15436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15438 # Create a temporary old-style archive to link instead of a shared archive.
15439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15441 # Commands used to build and install a shared archive.
15442 archive_cmds=$lt_archive_cmds_CXX
15443 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15444 postinstall_cmds=$lt_postinstall_cmds
15445 postuninstall_cmds=$lt_postuninstall_cmds
15447 # Commands used to build a loadable module (assumed same as above if empty)
15448 module_cmds=$lt_module_cmds_CXX
15449 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15451 # Commands to strip libraries.
15452 old_striplib=$lt_old_striplib
15453 striplib=$lt_striplib
15455 # Dependencies to place before the objects being linked to create a
15457 predep_objects=$lt_predep_objects_CXX
15459 # Dependencies to place after the objects being linked to create a
15461 postdep_objects=$lt_postdep_objects_CXX
15463 # Dependencies to place before the objects being linked to create a
15465 predeps=$lt_predeps_CXX
15467 # Dependencies to place after the objects being linked to create a
15469 postdeps=$lt_postdeps_CXX
15471 # The library search path used internally by the compiler when linking
15472 # a shared library.
15473 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15475 # Method to check whether dependent libraries are shared objects.
15476 deplibs_check_method=$lt_deplibs_check_method
15478 # Command to use when deplibs_check_method == file_magic.
15479 file_magic_cmd=$lt_file_magic_cmd
15481 # Flag that allows shared libraries with undefined symbols to be built.
15482 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15484 # Flag that forces no undefined symbols.
15485 no_undefined_flag=$lt_no_undefined_flag_CXX
15487 # Commands used to finish a libtool library installation in a directory.
15488 finish_cmds=$lt_finish_cmds
15490 # Same as above, but a single script fragment to be evaled but not shown.
15491 finish_eval=$lt_finish_eval
15493 # Take the output of nm and produce a listing of raw symbols and C names.
15494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15496 # Transform the output of nm in a proper C declaration
15497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15499 # Transform the output of nm in a C name address pair
15500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15502 # This is the shared library runtime path variable.
15503 runpath_var=$runpath_var
15505 # This is the shared library path variable.
15506 shlibpath_var=$shlibpath_var
15508 # Is shlibpath searched before the hard-coded library search path?
15509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15511 # How to hardcode a shared library path into an executable.
15512 hardcode_action=$hardcode_action_CXX
15514 # Whether we should hardcode library paths into libraries.
15515 hardcode_into_libs=$hardcode_into_libs
15517 # Flag to hardcode \$libdir into a binary during linking.
15518 # This must work even if \$libdir does not exist.
15519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15521 # If ld is used when linking, flag to hardcode \$libdir into
15522 # a binary during linking. This must work even if \$libdir does
15524 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15526 # Whether we need a single -rpath flag with a separated argument.
15527 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15529 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15530 # resulting binary.
15531 hardcode_direct=$hardcode_direct_CXX
15533 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15534 # resulting binary.
15535 hardcode_minus_L=$hardcode_minus_L_CXX
15537 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15538 # the resulting binary.
15539 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15541 # Set to yes if building a shared library automatically hardcodes DIR into the library
15542 # and all subsequent libraries and executables linked against it.
15543 hardcode_automatic=$hardcode_automatic_CXX
15545 # Variables whose values should be saved in libtool wrapper scripts and
15546 # restored at relink time.
15547 variables_saved_for_relink="$variables_saved_for_relink"
15549 # Whether libtool must link a program against all its dependency libraries.
15550 link_all_deplibs=$link_all_deplibs_CXX
15552 # Compile-time system search path for libraries
15553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15555 # Run-time system search path for libraries
15556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15558 # Fix the shell variable \$srcfile for the compiler.
15559 fix_srcfile_path="$fix_srcfile_path_CXX"
15561 # Set to yes if exported symbols are required.
15562 always_export_symbols=$always_export_symbols_CXX
15564 # The commands to list exported symbols.
15565 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15567 # The commands to extract the exported symbol list from a shared archive.
15568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15570 # Symbols that should not be listed in the preloaded symbols.
15571 exclude_expsyms=$lt_exclude_expsyms_CXX
15573 # Symbols that must always be exported.
15574 include_expsyms=$lt_include_expsyms_CXX
15576 # ### END LIBTOOL TAG CONFIG: $tagname
15582 # If there is no Makefile yet, we rely on a make rule to execute
15583 # `config.status --recheck' to rerun these tests and create the
15584 # libtool script then.
15585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15586 if test -f "$ltmain_in"; then
15587 test -f Makefile && make "$ltmain"
15593 ac_cpp='$CPP $CPPFLAGS'
15594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15602 with_gnu_ldcxx=$with_gnu_ld
15603 with_gnu_ld=$lt_save_with_gnu_ld
15604 lt_cv_path_LDCXX=$lt_cv_path_LD
15605 lt_cv_path_LD=$lt_save_path_LD
15606 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15607 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15615 if test -n "$F77" && test "X$F77" != "Xno"; then
15618 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15619 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15620 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15623 archive_cmds_need_lc_F77=no
15624 allow_undefined_flag_F77=
15625 always_export_symbols_F77=no
15626 archive_expsym_cmds_F77=
15627 export_dynamic_flag_spec_F77=
15628 hardcode_direct_F77=no
15629 hardcode_libdir_flag_spec_F77=
15630 hardcode_libdir_flag_spec_ld_F77=
15631 hardcode_libdir_separator_F77=
15632 hardcode_minus_L_F77=no
15633 hardcode_automatic_F77=no
15635 module_expsym_cmds_F77=
15636 link_all_deplibs_F77=unknown
15637 old_archive_cmds_F77=$old_archive_cmds
15638 no_undefined_flag_F77=
15639 whole_archive_flag_spec_F77=
15640 enable_shared_with_static_runtimes_F77=no
15642 # Source file extension for f77 test sources.
15645 # Object file extension for compiled f77 test sources.
15649 # Code to be used in simple compile tests
15650 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15652 # Code to be used in simple link tests
15653 lt_simple_link_test_code=" program t\n end\n"
15655 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15657 # If no C compiler was specified, use CC.
15660 # Allow CC to be a program name with arguments.
15664 # save warnings/boilerplate of simple test code
15665 ac_outfile=conftest.$ac_objext
15666 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15667 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15668 _lt_compiler_boilerplate=`cat conftest.err`
15671 ac_outfile=conftest.$ac_objext
15672 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15673 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15674 _lt_linker_boilerplate=`cat conftest.err`
15678 # Allow CC to be a program name with arguments.
15683 for cc_temp in $compiler""; do
15685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15691 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15694 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15695 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15696 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15697 echo "${ECHO_T}$can_build_shared" >&6
15699 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15700 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15701 test "$can_build_shared" = "no" && enable_shared=no
15703 # On AIX, shared libraries and static libraries use the same namespace, and
15704 # are all built from PIC.
15707 test "$enable_shared" = yes && enable_static=no
15708 if test -n "$RANLIB"; then
15709 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15710 postinstall_cmds='$RANLIB $lib'
15714 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15715 test "$enable_shared" = yes && enable_static=no
15719 echo "$as_me:$LINENO: result: $enable_shared" >&5
15720 echo "${ECHO_T}$enable_shared" >&6
15722 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15723 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15724 # Make sure either enable_shared or enable_static is yes.
15725 test "$enable_shared" = yes || enable_static=yes
15726 echo "$as_me:$LINENO: result: $enable_static" >&5
15727 echo "${ECHO_T}$enable_static" >&6
15729 test "$ld_shlibs_F77" = no && can_build_shared=no
15734 lt_prog_compiler_wl_F77=
15735 lt_prog_compiler_pic_F77=
15736 lt_prog_compiler_static_F77=
15738 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15739 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15741 if test "$GCC" = yes; then
15742 lt_prog_compiler_wl_F77='-Wl,'
15743 lt_prog_compiler_static_F77='-static'
15747 # All AIX code is PIC.
15748 if test "$host_cpu" = ia64; then
15749 # AIX 5 now supports IA64 processor
15750 lt_prog_compiler_static_F77='-Bstatic'
15755 # FIXME: we need at least 68020 code to build shared libraries, but
15756 # adding the `-m68020' flag to GCC prevents building anything better,
15758 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15761 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15762 # PIC is the default for these OSes.
15765 mingw* | pw32* | os2*)
15766 # This hack is so that the source file can tell whether it is being
15767 # built for inclusion in a dll (and should export symbols for example).
15768 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15771 darwin* | rhapsody*)
15772 # PIC is the default on this platform
15773 # Common symbols not allowed in MH_DYLIB files
15774 lt_prog_compiler_pic_F77='-fno-common'
15778 # Just because we use GCC doesn't mean we suddenly get shared libraries
15779 # on systems that don't support them.
15780 lt_prog_compiler_can_build_shared_F77=no
15785 if test -d /usr/nec; then
15786 lt_prog_compiler_pic_F77=-Kconform_pic
15791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15792 # not for PA HP-UX.
15793 case "$host_cpu" in
15798 lt_prog_compiler_pic_F77='-fPIC'
15804 lt_prog_compiler_pic_F77='-fPIC'
15808 # PORTME Check for flag to pass linker flags through the system compiler.
15811 lt_prog_compiler_wl_F77='-Wl,'
15812 if test "$host_cpu" = ia64; then
15813 # AIX 5 now supports IA64 processor
15814 lt_prog_compiler_static_F77='-Bstatic'
15816 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15820 # PIC is the default on this platform
15821 # Common symbols not allowed in MH_DYLIB files
15822 case $cc_basename in
15824 lt_prog_compiler_pic_F77='-qnocommon'
15825 lt_prog_compiler_wl_F77='-Wl,'
15830 mingw* | pw32* | os2*)
15831 # This hack is so that the source file can tell whether it is being
15832 # built for inclusion in a dll (and should export symbols for example).
15833 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15836 hpux9* | hpux10* | hpux11*)
15837 lt_prog_compiler_wl_F77='-Wl,'
15838 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15839 # not for PA HP-UX.
15840 case "$host_cpu" in
15845 lt_prog_compiler_pic_F77='+Z'
15848 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15849 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15852 irix5* | irix6* | nonstopux*)
15853 lt_prog_compiler_wl_F77='-Wl,'
15854 # PIC (with -KPIC) is the default.
15855 lt_prog_compiler_static_F77='-non_shared'
15859 lt_prog_compiler_pic_F77='-KPIC'
15860 lt_prog_compiler_static_F77='-Bstatic'
15864 case $cc_basename in
15866 lt_prog_compiler_wl_F77='-Wl,'
15867 lt_prog_compiler_pic_F77='-KPIC'
15868 lt_prog_compiler_static_F77='-static'
15870 pgcc* | pgf77* | pgf90*)
15871 # Portland Group compilers (*not* the Pentium gcc compiler,
15872 # which looks to be a dead project)
15873 lt_prog_compiler_wl_F77='-Wl,'
15874 lt_prog_compiler_pic_F77='-fpic'
15875 lt_prog_compiler_static_F77='-static'
15878 lt_prog_compiler_wl_F77='-Wl,'
15879 # All Alpha code is PIC.
15880 lt_prog_compiler_static_F77='-non_shared'
15885 osf3* | osf4* | osf5*)
15886 lt_prog_compiler_wl_F77='-Wl,'
15887 # All OSF/1 code is PIC.
15888 lt_prog_compiler_static_F77='-non_shared'
15892 lt_prog_compiler_pic_F77='-Kpic'
15893 lt_prog_compiler_static_F77='-dn'
15897 lt_prog_compiler_pic_F77='-KPIC'
15898 lt_prog_compiler_static_F77='-Bstatic'
15899 case $cc_basename in
15900 f77* | f90* | f95*)
15901 lt_prog_compiler_wl_F77='-Qoption ld ';;
15903 lt_prog_compiler_wl_F77='-Wl,';;
15908 lt_prog_compiler_wl_F77='-Qoption ld '
15909 lt_prog_compiler_pic_F77='-PIC'
15910 lt_prog_compiler_static_F77='-Bstatic'
15913 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15914 lt_prog_compiler_wl_F77='-Wl,'
15915 lt_prog_compiler_pic_F77='-KPIC'
15916 lt_prog_compiler_static_F77='-Bstatic'
15920 if test -d /usr/nec ;then
15921 lt_prog_compiler_pic_F77='-Kconform_pic'
15922 lt_prog_compiler_static_F77='-Bstatic'
15927 lt_prog_compiler_wl_F77='-Wl,'
15928 lt_prog_compiler_can_build_shared_F77=no
15932 lt_prog_compiler_pic_F77='-pic'
15933 lt_prog_compiler_static_F77='-Bstatic'
15937 lt_prog_compiler_can_build_shared_F77=no
15942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15943 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15946 # Check to make sure the PIC flag actually works.
15948 if test -n "$lt_prog_compiler_pic_F77"; then
15950 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15952 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 lt_prog_compiler_pic_works_F77=no
15956 ac_outfile=conftest.$ac_objext
15957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15958 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15959 # Insert the option either (1) after the last *FLAGS variable, or
15960 # (2) before a word containing "conftest.", or (3) at the end.
15961 # Note that $ac_compile itself does not contain backslashes and begins
15962 # with a dollar sign (not a hyphen), so the echo should work correctly.
15963 # The option is referenced via a variable to avoid confusing sed.
15964 lt_compile=`echo "$ac_compile" | $SED \
15965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15967 -e 's:$: $lt_compiler_flag:'`
15968 (eval echo "\"\$as_me:15968: $lt_compile\"" >&5)
15969 (eval "$lt_compile" 2>conftest.err)
15971 cat conftest.err >&5
15972 echo "$as_me:15972: \$? = $ac_status" >&5
15973 if (exit $ac_status) && test -s "$ac_outfile"; then
15974 # The compiler can only warn and ignore the option if not recognized
15975 # So say no if there are warnings other than the usual output.
15976 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15977 $SED '/^$/d' conftest.err >conftest.er2
15978 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15979 lt_prog_compiler_pic_works_F77=yes
15985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15986 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15988 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15989 case $lt_prog_compiler_pic_F77 in
15991 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15994 lt_prog_compiler_pic_F77=
15995 lt_prog_compiler_can_build_shared_F77=no
16000 # For platforms which do not support PIC, -DPIC is meaningless:
16002 lt_prog_compiler_pic_F77=
16005 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16009 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16010 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16011 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 lt_cv_prog_compiler_c_o_F77=no
16015 $rm -r conftest 2>/dev/null
16019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16021 lt_compiler_flag="-o out/conftest2.$ac_objext"
16022 # Insert the option either (1) after the last *FLAGS variable, or
16023 # (2) before a word containing "conftest.", or (3) at the end.
16024 # Note that $ac_compile itself does not contain backslashes and begins
16025 # with a dollar sign (not a hyphen), so the echo should work correctly.
16026 lt_compile=`echo "$ac_compile" | $SED \
16027 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16029 -e 's:$: $lt_compiler_flag:'`
16030 (eval echo "\"\$as_me:16030: $lt_compile\"" >&5)
16031 (eval "$lt_compile" 2>out/conftest.err)
16033 cat out/conftest.err >&5
16034 echo "$as_me:16034: \$? = $ac_status" >&5
16035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16037 # The compiler can only warn and ignore the option if not recognized
16038 # So say no if there are warnings
16039 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16040 $SED '/^$/d' out/conftest.err >out/conftest.er2
16041 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16042 lt_cv_prog_compiler_c_o_F77=yes
16047 # SGI C++ compiler will create directory out/ii_files/ for
16048 # template instantiation
16049 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16050 $rm out/* && rmdir out
16056 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16057 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16060 hard_links="nottested"
16061 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16062 # do not overwrite the value of need_locks provided by the user
16063 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16064 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16069 ln conftest.a conftest.b 2>&5 || hard_links=no
16070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16071 echo "$as_me:$LINENO: result: $hard_links" >&5
16072 echo "${ECHO_T}$hard_links" >&6
16073 if test "$hard_links" = no; then
16074 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16075 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16082 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16083 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16086 allow_undefined_flag_F77=
16087 enable_shared_with_static_runtimes_F77=no
16089 archive_expsym_cmds_F77=
16090 old_archive_From_new_cmds_F77=
16091 old_archive_from_expsyms_cmds_F77=
16092 export_dynamic_flag_spec_F77=
16093 whole_archive_flag_spec_F77=
16094 thread_safe_flag_spec_F77=
16095 hardcode_libdir_flag_spec_F77=
16096 hardcode_libdir_flag_spec_ld_F77=
16097 hardcode_libdir_separator_F77=
16098 hardcode_direct_F77=no
16099 hardcode_minus_L_F77=no
16100 hardcode_shlibpath_var_F77=unsupported
16101 link_all_deplibs_F77=unknown
16102 hardcode_automatic_F77=no
16104 module_expsym_cmds_F77=
16105 always_export_symbols_F77=no
16106 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16107 # include_expsyms should be a list of space-separated symbols to be *always*
16108 # included in the symbol list
16109 include_expsyms_F77=
16110 # exclude_expsyms can be an extended regexp of symbols to exclude
16111 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16112 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16113 # as well as any symbol that contains `d'.
16114 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16115 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16116 # platforms (ab)use it in PIC code, but their linkers get confused if
16117 # the symbol is explicitly referenced. Since portable code cannot
16118 # rely on this symbol name, it's probably fine to never include it in
16119 # preloaded symbol tables.
16120 extract_expsyms_cmds=
16121 # Just being paranoid about ensuring that cc_basename is set.
16122 for cc_temp in $compiler""; do
16124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16130 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16133 cygwin* | mingw* | pw32*)
16134 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16135 # When not using gcc, we currently assume that we are using
16136 # Microsoft Visual C++.
16137 if test "$GCC" != yes; then
16147 if test "$with_gnu_ld" = yes; then
16148 # If archive_cmds runs LD, not CC, wlarc should be empty
16151 # Set some defaults for GNU ld with shared library support. These
16152 # are reset later if shared libraries are not supported. Putting them
16153 # here allows them to be overridden if necessary.
16154 runpath_var=LD_RUN_PATH
16155 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16156 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16157 # ancient GNU ld didn't support --whole-archive et. al.
16158 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16159 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16161 whole_archive_flag_spec_F77=
16163 supports_anon_versioning=no
16164 case `$LD -v 2>/dev/null` in
16165 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16166 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16167 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16168 *\ 2.11.*) ;; # other 2.11 versions
16169 *) supports_anon_versioning=yes ;;
16172 # See if GNU ld supports shared libraries.
16174 aix3* | aix4* | aix5*)
16175 # On AIX/PPC, the GNU linker is very broken
16176 if test "$host_cpu" != ia64; then
16180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16181 *** to be unable to reliably create shared libraries on AIX.
16182 *** Therefore, libtool is disabling shared libraries support. If you
16183 *** really care for shared libraries, you may want to modify your PATH
16184 *** so that a non-GNU linker is found, and then restart.
16191 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)'
16192 hardcode_libdir_flag_spec_F77='-L$libdir'
16193 hardcode_minus_L_F77=yes
16195 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16196 # that the semantics of dynamic libraries on AmigaOS, at least up
16197 # to version 4, is to share data among multiple programs linked
16198 # with the same dynamic library. Since this doesn't match the
16199 # behavior of shared libraries on other platforms, we can't use
16205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16206 allow_undefined_flag_F77=unsupported
16207 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16208 # support --undefined. This deserves some investigation. FIXME
16209 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16215 cygwin* | mingw* | pw32*)
16216 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16217 # as there is no search path for DLLs.
16218 hardcode_libdir_flag_spec_F77='-L$libdir'
16219 allow_undefined_flag_F77=unsupported
16220 always_export_symbols_F77=no
16221 enable_shared_with_static_runtimes_F77=yes
16222 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16224 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16225 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16226 # If the export-symbols file already is a .def file (1st line
16227 # is EXPORTS), use it as is; otherwise, prepend...
16228 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16229 cp $export_symbols $output_objdir/$soname.def;
16231 echo EXPORTS > $output_objdir/$soname.def;
16232 cat $export_symbols >> $output_objdir/$soname.def;
16234 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16243 case $cc_basename,$host_cpu in
16244 pgcc*) # Portland Group C compiler
16245 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'
16246 tmp_addflag=' $pic_flag'
16248 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16249 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'
16250 tmp_addflag=' $pic_flag -Mnomain' ;;
16251 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16252 tmp_addflag=' -i_dynamic' ;;
16253 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16254 tmp_addflag=' -i_dynamic -nofor_main' ;;
16255 ifc* | ifort*) # Intel Fortran compiler
16256 tmp_addflag=' -nofor_main' ;;
16258 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16260 if test $supports_anon_versioning = yes; then
16261 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16263 $echo "local: *; };" >> $output_objdir/$libname.ver~
16264 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16273 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16276 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16277 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16282 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16286 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16287 *** create shared libraries on Solaris systems. Therefore, libtool
16288 *** is disabling shared libraries support. We urge you to upgrade GNU
16289 *** binutils to release 2.9.1 or newer. Another option is to modify
16290 *** your PATH or compiler configuration so that the native linker is
16291 *** used, and then restart.
16294 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16295 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16296 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16303 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16305 hardcode_direct_F77=yes
16306 hardcode_shlibpath_var_F77=no
16310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16311 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16312 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16319 if test "$ld_shlibs_F77" = no; then
16321 hardcode_libdir_flag_spec_F77=
16322 export_dynamic_flag_spec_F77=
16323 whole_archive_flag_spec_F77=
16326 # PORTME fill in a description of your system's linker (not GNU ld)
16329 allow_undefined_flag_F77=unsupported
16330 always_export_symbols_F77=yes
16331 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'
16332 # Note: this linker hardcodes the directories in LIBPATH if there
16333 # are no directories specified by -L.
16334 hardcode_minus_L_F77=yes
16335 if test "$GCC" = yes && test -z "$link_static_flag"; then
16336 # Neither direct hardcoding nor static linking is supported with a
16338 hardcode_direct_F77=unsupported
16343 if test "$host_cpu" = ia64; then
16344 # On IA64, the linker does run time linking by default, so we don't
16345 # have to do anything special.
16346 aix_use_runtimelinking=no
16347 exp_sym_flag='-Bexport'
16350 # If we're using GNU nm, then we don't want the "-C" option.
16351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16353 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'
16355 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'
16357 aix_use_runtimelinking=no
16359 # Test if we are trying to use run time linking or normal
16360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16361 # need to do runtime linking.
16362 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16363 for ld_flag in $LDFLAGS; do
16364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16365 aix_use_runtimelinking=yes
16371 exp_sym_flag='-bexport'
16372 no_entry_flag='-bnoentry'
16375 # When large executables or shared objects are built, AIX ld can
16376 # have problems creating the table of contents. If linking a library
16377 # or program results in "error TOC overflow" add -mminimal-toc to
16378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16381 archive_cmds_F77=''
16382 hardcode_direct_F77=yes
16383 hardcode_libdir_separator_F77=':'
16384 link_all_deplibs_F77=yes
16386 if test "$GCC" = yes; then
16387 case $host_os in aix4.[012]|aix4.[012].*)
16388 # We only want to do this on AIX 4.2 and lower, the check
16389 # below for broken collect2 doesn't work under 4.3+
16390 collect2name=`${CC} -print-prog-name=collect2`
16391 if test -f "$collect2name" && \
16392 strings "$collect2name" | grep resolve_lib_name >/dev/null
16394 # We have reworked collect2
16395 hardcode_direct_F77=yes
16397 # We have old collect2
16398 hardcode_direct_F77=unsupported
16399 # It fails to find uninstalled libraries when the uninstalled
16400 # path is not listed in the libpath. Setting hardcode_minus_L
16401 # to unsupported forces relinking
16402 hardcode_minus_L_F77=yes
16403 hardcode_libdir_flag_spec_F77='-L$libdir'
16404 hardcode_libdir_separator_F77=
16407 shared_flag='-shared'
16408 if test "$aix_use_runtimelinking" = yes; then
16409 shared_flag="$shared_flag "'${wl}-G'
16413 if test "$host_cpu" = ia64; then
16414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16415 # chokes on -Wl,-G. The following line is correct:
16418 if test "$aix_use_runtimelinking" = yes; then
16419 shared_flag='${wl}-G'
16421 shared_flag='${wl}-bM:SRE'
16426 # It seems that -bexpall does not export symbols beginning with
16427 # underscore (_), so it is better to generate a list of symbols to export.
16428 always_export_symbols_F77=yes
16429 if test "$aix_use_runtimelinking" = yes; then
16430 # Warning - without using the other runtime loading flags (-brtl),
16431 # -berok will link without error, but may produce a broken library.
16432 allow_undefined_flag_F77='-berok'
16433 # Determine the default libpath from the value encoded in an empty executable.
16434 cat >conftest.$ac_ext <<_ACEOF
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441 (eval $ac_link) 2>conftest.er1
16443 grep -v '^ *+' conftest.er1 >conftest.err
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try='test -z "$ac_f77_werror_flag"
16449 || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest$ac_exeext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16464 # Check for a 64-bit object if we didn't find anything.
16465 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; }
16468 echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16472 rm -f conftest.err conftest.$ac_objext \
16473 conftest$ac_exeext conftest.$ac_ext
16474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16476 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16477 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"
16479 if test "$host_cpu" = ia64; then
16480 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16481 allow_undefined_flag_F77="-z nodefs"
16482 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"
16484 # Determine the default libpath from the value encoded in an empty executable.
16485 cat >conftest.$ac_ext <<_ACEOF
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16492 (eval $ac_link) 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -z "$ac_f77_werror_flag"
16500 || test ! -s conftest.err'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest$ac_exeext'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16515 # Check for a 64-bit object if we didn't find anything.
16516 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; }
16519 echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16523 rm -f conftest.err conftest.$ac_objext \
16524 conftest$ac_exeext conftest.$ac_ext
16525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16527 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16528 # Warning - without using the other run time loading flags,
16529 # -berok will link without error, but may produce a broken library.
16530 no_undefined_flag_F77=' ${wl}-bernotok'
16531 allow_undefined_flag_F77=' ${wl}-berok'
16532 # -bexpall does not export symbols beginning with underscore (_)
16533 always_export_symbols_F77=yes
16534 # Exported symbols can be pulled into shared objects from archives
16535 whole_archive_flag_spec_F77=' '
16536 archive_cmds_need_lc_F77=yes
16537 # This is similar to how AIX traditionally builds it's shared libraries.
16538 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'
16544 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)'
16545 hardcode_libdir_flag_spec_F77='-L$libdir'
16546 hardcode_minus_L_F77=yes
16547 # see comment about different semantics on the GNU ld section
16552 export_dynamic_flag_spec_F77=-rdynamic
16555 cygwin* | mingw* | pw32*)
16556 # When not using gcc, we currently assume that we are using
16557 # Microsoft Visual C++.
16558 # hardcode_libdir_flag_spec is actually meaningless, as there is
16559 # no search path for DLLs.
16560 hardcode_libdir_flag_spec_F77=' '
16561 allow_undefined_flag_F77=unsupported
16562 # Tell ltmain to make .lib files, not .a files.
16564 # Tell ltmain to make .dll files, not .so files.
16566 # FIXME: Setting linknames here is a bad hack.
16567 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16568 # The linker will automatically build a .lib file if we build a DLL.
16569 old_archive_From_new_cmds_F77='true'
16570 # FIXME: Should let the user specify the lib program.
16571 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16572 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16573 enable_shared_with_static_runtimes_F77=yes
16576 darwin* | rhapsody*)
16578 rhapsody* | darwin1.[012])
16579 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16582 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16583 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16585 case ${MACOSX_DEPLOYMENT_TARGET} in
16587 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16590 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16596 archive_cmds_need_lc_F77=no
16597 hardcode_direct_F77=no
16598 hardcode_automatic_F77=yes
16599 hardcode_shlibpath_var_F77=unsupported
16600 whole_archive_flag_spec_F77=''
16601 link_all_deplibs_F77=yes
16602 if test "$GCC" = yes ; then
16603 output_verbose_link_cmd='echo'
16604 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16605 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16606 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16607 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}'
16608 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}'
16610 case $cc_basename in
16612 output_verbose_link_cmd='echo'
16613 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16614 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16616 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}'
16617 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}'
16627 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16628 hardcode_libdir_flag_spec_F77='-L$libdir'
16629 hardcode_shlibpath_var_F77=no
16636 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16637 # support. Future versions do this automatically, but an explicit c++rt0.o
16638 # does not break anything, and helps significantly (at the cost of a little
16641 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16642 hardcode_libdir_flag_spec_F77='-R$libdir'
16643 hardcode_direct_F77=yes
16644 hardcode_shlibpath_var_F77=no
16647 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16649 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16650 hardcode_direct_F77=yes
16651 hardcode_minus_L_F77=yes
16652 hardcode_shlibpath_var_F77=no
16655 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16656 freebsd* | kfreebsd*-gnu | dragonfly*)
16657 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16658 hardcode_libdir_flag_spec_F77='-R$libdir'
16659 hardcode_direct_F77=yes
16660 hardcode_shlibpath_var_F77=no
16664 if test "$GCC" = yes; then
16665 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'
16667 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'
16669 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16670 hardcode_libdir_separator_F77=:
16671 hardcode_direct_F77=yes
16673 # hardcode_minus_L: Not really in the search PATH,
16674 # but as the default location of the library.
16675 hardcode_minus_L_F77=yes
16676 export_dynamic_flag_spec_F77='${wl}-E'
16680 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16681 case "$host_cpu" in
16683 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16686 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16690 case "$host_cpu" in
16692 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16695 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16699 if test "$with_gnu_ld" = no; then
16700 case "$host_cpu" in
16702 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16703 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16704 hardcode_libdir_separator_F77=:
16705 hardcode_direct_F77=no
16706 hardcode_shlibpath_var_F77=no
16709 hardcode_libdir_flag_spec_F77='-L$libdir'
16710 hardcode_direct_F77=no
16711 hardcode_shlibpath_var_F77=no
16713 # hardcode_minus_L: Not really in the search PATH,
16714 # but as the default location of the library.
16715 hardcode_minus_L_F77=yes
16718 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16719 hardcode_libdir_separator_F77=:
16720 hardcode_direct_F77=yes
16721 export_dynamic_flag_spec_F77='${wl}-E'
16723 # hardcode_minus_L: Not really in the search PATH,
16724 # but as the default location of the library.
16725 hardcode_minus_L_F77=yes
16731 irix5* | irix6* | nonstopux*)
16732 if test "$GCC" = yes; then
16733 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'
16735 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'
16736 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16738 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16739 hardcode_libdir_separator_F77=:
16740 link_all_deplibs_F77=yes
16744 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16745 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16747 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16749 hardcode_libdir_flag_spec_F77='-R$libdir'
16750 hardcode_direct_F77=yes
16751 hardcode_shlibpath_var_F77=no
16755 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756 hardcode_direct_F77=yes
16757 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16758 hardcode_libdir_separator_F77=:
16759 hardcode_shlibpath_var_F77=no
16763 hardcode_direct_F77=yes
16764 hardcode_shlibpath_var_F77=no
16765 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16766 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16767 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16768 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16769 export_dynamic_flag_spec_F77='${wl}-E'
16772 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16773 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16774 hardcode_libdir_flag_spec_F77='-R$libdir'
16777 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16778 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16785 hardcode_libdir_flag_spec_F77='-L$libdir'
16786 hardcode_minus_L_F77=yes
16787 allow_undefined_flag_F77=unsupported
16788 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'
16789 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16793 if test "$GCC" = yes; then
16794 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16795 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'
16797 allow_undefined_flag_F77=' -expect_unresolved \*'
16798 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'
16800 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16801 hardcode_libdir_separator_F77=:
16804 osf4* | osf5*) # as osf3* with the addition of -msym flag
16805 if test "$GCC" = yes; then
16806 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16807 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'
16808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16810 allow_undefined_flag_F77=' -expect_unresolved \*'
16811 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'
16812 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~
16813 $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'
16815 # Both c and cxx compiler support -rpath directly
16816 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16818 hardcode_libdir_separator_F77=:
16822 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16823 hardcode_shlibpath_var_F77=no
16824 export_dynamic_flag_spec_F77='${wl}-Bexport'
16825 runpath_var=LD_RUN_PATH
16826 hardcode_runpath_var=yes
16830 no_undefined_flag_F77=' -z text'
16831 if test "$GCC" = yes; then
16833 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16834 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16835 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16838 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16839 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16840 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16842 hardcode_libdir_flag_spec_F77='-R$libdir'
16843 hardcode_shlibpath_var_F77=no
16845 solaris2.[0-5] | solaris2.[0-5].*) ;;
16847 # The compiler driver will combine linker options so we
16848 # cannot just pass the convience library names through
16849 # without $wl, iff we do not link with $LD.
16850 # Luckily, gcc supports the same syntax we need for Sun Studio.
16851 # Supported since Solaris 2.6 (maybe 2.5.1?)
16854 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16856 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' ;;
16859 link_all_deplibs_F77=yes
16863 if test "x$host_vendor" = xsequent; then
16864 # Use $CC to link under sequent, because it throws in some extra .o
16865 # files that make .init and .fini sections work.
16866 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16868 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16870 hardcode_libdir_flag_spec_F77='-L$libdir'
16871 hardcode_direct_F77=yes
16872 hardcode_minus_L_F77=yes
16873 hardcode_shlibpath_var_F77=no
16877 case $host_vendor in
16879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16880 hardcode_direct_F77=yes # is this really true???
16883 ## LD is ld it makes a PLAMLIB
16884 ## CC just makes a GrossModule.
16885 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16886 reload_cmds_F77='$CC -r -o $output$reload_objs'
16887 hardcode_direct_F77=no
16890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16894 runpath_var='LD_RUN_PATH'
16895 hardcode_shlibpath_var_F77=no
16899 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900 hardcode_shlibpath_var_F77=no
16901 export_dynamic_flag_spec_F77='-Bexport'
16905 if test -d /usr/nec; then
16906 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16907 hardcode_shlibpath_var_F77=no
16908 runpath_var=LD_RUN_PATH
16909 hardcode_runpath_var=yes
16915 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16916 hardcode_direct_F77=yes
16917 hardcode_minus_L_F77=no
16918 hardcode_shlibpath_var_F77=no
16919 hardcode_runpath_var=yes
16920 runpath_var=LD_RUN_PATH
16923 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16924 no_undefined_flag_F77='${wl}-z ${wl}text'
16925 if test "$GCC" = yes; then
16926 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16928 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16930 runpath_var='LD_RUN_PATH'
16931 hardcode_shlibpath_var_F77=no
16935 no_undefined_flag_F77=' -z text'
16936 # $CC -shared without GNU ld will not create a library from C++
16937 # object files and a static libstdc++, better avoid it by now
16938 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16939 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16941 hardcode_libdir_flag_spec_F77=
16942 hardcode_shlibpath_var_F77=no
16943 runpath_var='LD_RUN_PATH'
16947 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16948 hardcode_libdir_flag_spec_F77='-L$libdir'
16949 hardcode_shlibpath_var_F77=no
16958 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16959 echo "${ECHO_T}$ld_shlibs_F77" >&6
16960 test "$ld_shlibs_F77" = no && can_build_shared=no
16962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16963 if test "$GCC" = yes; then
16964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16968 # Do we need to explicitly link libc?
16970 case "x$archive_cmds_need_lc_F77" in
16972 # Assume -lc should be added
16973 archive_cmds_need_lc_F77=yes
16975 if test "$enable_shared" = yes && test "$GCC" = yes; then
16976 case $archive_cmds_F77 in
16978 # FIXME: we may have to deal with multi-command sequences.
16981 # Test whether the compiler implicitly links with -lc since on some
16982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16983 # to ld, don't add -lc before -lgcc.
16984 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16990 (eval $ac_compile) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } 2>conftest.err; then
16996 libobjs=conftest.$ac_objext
16998 wl=$lt_prog_compiler_wl_F77
17004 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17005 allow_undefined_flag_F77=
17006 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17007 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }
17012 archive_cmds_need_lc_F77=no
17014 archive_cmds_need_lc_F77=yes
17016 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17018 cat conftest.err 1>&5
17021 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17022 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17029 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17030 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17031 library_names_spec=
17032 libname_spec='lib$name'
17036 postuninstall_cmds=
17040 shlibpath_overrides_runpath=unknown
17042 dynamic_linker="$host_os ld.so"
17043 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17044 if test "$GCC" = yes; then
17045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17046 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17047 # if the path contains ";" then we assume it to be the separator
17048 # otherwise default to the standard path separator (i.e. ":") - it is
17049 # assumed that no part of a normal pathname contains ";" but that should
17050 # okay in the real world where ";" in dirpaths is itself problematic.
17051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17058 need_lib_prefix=unknown
17059 hardcode_into_libs=no
17061 # when you set need_version to no, make sure it does not cause -set_version
17062 # flags to be left without arguments
17063 need_version=unknown
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17069 shlibpath_var=LIBPATH
17071 # AIX 3 has no versioning support, so we append a major version to the name.
17072 soname_spec='${libname}${release}${shared_ext}$major'
17079 hardcode_into_libs=yes
17080 if test "$host_cpu" = ia64; then
17081 # AIX 5 supports IA64
17082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17083 shlibpath_var=LD_LIBRARY_PATH
17085 # With GCC up to 2.95.x, collect2 would create an import file
17086 # for dependence libraries. The import file would start with
17087 # the line `#! .'. This would cause the generated library to
17088 # depend on `.', always an invalid library. This was fixed in
17089 # development snapshots of GCC prior to 3.0.
17091 aix4 | aix4.[01] | aix4.[01].*)
17092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17094 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17097 can_build_shared=no
17101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17102 # soname into executable. Probably we can add versioning support to
17103 # collect2, so additional links can be useful in future.
17104 if test "$aix_use_runtimelinking" = yes; then
17105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17106 # instead of lib<name>.a to let people know that these are not
17107 # typical AIX shared libraries.
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110 # We preserve .a as extension for shared libraries through AIX4.2
17111 # and later when we are not doing run time linking.
17112 library_names_spec='${libname}${release}.a $libname.a'
17113 soname_spec='${libname}${release}${shared_ext}$major'
17115 shlibpath_var=LIBPATH
17120 library_names_spec='$libname.ixlibrary $libname.a'
17121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17122 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'
17126 library_names_spec='${libname}${shared_ext}'
17127 dynamic_linker="$host_os ld.so"
17128 shlibpath_var=LIBRARY_PATH
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17137 shlibpath_var=LD_LIBRARY_PATH
17138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17140 # the default ld.so.conf also contains /usr/contrib/lib and
17141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17142 # libtool to hard-code these into programs
17145 cygwin* | mingw* | pw32*)
17146 version_type=windows
17151 case $GCC,$host_os in
17152 yes,cygwin* | yes,mingw* | yes,pw32*)
17153 library_names_spec='$libname.dll.a'
17154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17155 postinstall_cmds='base_file=`basename \${file}`~
17156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17157 dldir=$destdir/`dirname \$dlpath`~
17158 test -d \$dldir || mkdir -p \$dldir~
17159 $install_prog $dir/$dlname \$dldir/$dlname'
17160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17161 dlpath=$dir/\$dldll~
17163 shlibpath_overrides_runpath=yes
17167 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17168 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17169 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17172 # MinGW DLLs use traditional 'lib' prefix
17173 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17175 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17176 # It is most probably a Windows format PATH printed by
17177 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17178 # path with ; separators, and with drive letters. We can handle the
17179 # drive letters (cygwin fileutils understands them), so leave them,
17180 # especially as we might pass files found there to a mingw objdump,
17181 # which wouldn't understand a cygwinified path. Ahh.
17182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17188 # pw32 DLLs use 'pw' prefix rather than 'lib'
17189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17198 dynamic_linker='Win32 ld.exe'
17199 # FIXME: first we should search . and the directory the executable is in
17203 darwin* | rhapsody*)
17204 dynamic_linker="$host_os dyld"
17205 version_type=darwin
17208 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17209 soname_spec='${libname}${release}${major}$shared_ext'
17210 shlibpath_overrides_runpath=yes
17211 shlibpath_var=DYLD_LIBRARY_PATH
17212 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17213 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17214 if test "$GCC" = yes; then
17215 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"`
17217 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 shlibpath_var=LD_LIBRARY_PATH
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 shlibpath_overrides_runpath=no
17243 hardcode_into_libs=yes
17244 dynamic_linker='GNU ld.so'
17247 freebsd* | dragonfly*)
17248 # DragonFly does not have aout. When/if they implement a new
17249 # versioning mechanism, adjust this.
17250 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17251 version_type=freebsd-$objformat
17252 case $version_type in
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17263 shlibpath_var=LD_LIBRARY_PATH
17266 shlibpath_overrides_runpath=yes
17268 freebsd3.[01]* | freebsdelf3.[01]*)
17269 shlibpath_overrides_runpath=yes
17270 hardcode_into_libs=yes
17273 shlibpath_overrides_runpath=no
17274 hardcode_into_libs=yes
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 shlibpath_var=LD_LIBRARY_PATH
17286 hardcode_into_libs=yes
17289 hpux9* | hpux10* | hpux11*)
17290 # Give a soname corresponding to the major version so that dld.sl refuses to
17291 # link against other versions.
17295 case "$host_cpu" in
17298 hardcode_into_libs=yes
17299 dynamic_linker="$host_os dld.so"
17300 shlibpath_var=LD_LIBRARY_PATH
17301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 if test "X$HPUX_IA64_MODE" = X32; then
17305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17313 hardcode_into_libs=yes
17314 dynamic_linker="$host_os dld.sl"
17315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 soname_spec='${libname}${release}${shared_ext}$major'
17319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17324 dynamic_linker="$host_os dld.sl"
17325 shlibpath_var=SHLIB_PATH
17326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328 soname_spec='${libname}${release}${shared_ext}$major'
17331 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17332 postinstall_cmds='chmod 555 $lib'
17335 irix5* | irix6* | nonstopux*)
17337 nonstopux*) version_type=nonstopux ;;
17339 if test "$lt_cv_prog_gnu_ld" = yes; then
17347 soname_spec='${libname}${release}${shared_ext}$major'
17348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17350 irix5* | nonstopux*)
17351 libsuff= shlibsuff=
17354 case $LD in # libtool.m4 will add one of these switches to LD
17355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17356 libsuff= shlibsuff= libmagic=32-bit;;
17357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17358 libsuff=32 shlibsuff=N32 libmagic=N32;;
17359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17361 *) libsuff= shlibsuff= libmagic=never-match;;
17365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17366 shlibpath_overrides_runpath=no
17367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17369 hardcode_into_libs=yes
17372 # No shared lib support for Linux oldld, aout, or coff.
17373 linux*oldld* | linux*aout* | linux*coff*)
17377 # This must be Linux ELF.
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 soname_spec='${libname}${release}${shared_ext}$major'
17384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 shlibpath_overrides_runpath=no
17387 # This implies no fast_install, which is unacceptable.
17388 # Some rework will be needed to allow for fast_install
17389 # before this can be enabled.
17390 hardcode_into_libs=yes
17392 # Append ld.so.conf contents to the search path
17393 if test -f /etc/ld.so.conf; then
17394 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' ' '`
17395 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17398 # We used to test for /lib/ld.so.1 and disable shared libraries on
17399 # powerpc, because MkLinux only supported shared libraries with the
17400 # GNU dynamic linker. Since this was broken with cross compilers,
17401 # most powerpc-linux boxes support dynamic linking these days and
17402 # people can always --disable-shared, the test was removed, and we
17403 # assume the GNU/Linux dynamic linker is in use.
17404 dynamic_linker='GNU/Linux ld.so'
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17413 shlibpath_var=LD_LIBRARY_PATH
17414 shlibpath_overrides_runpath=no
17415 hardcode_into_libs=yes
17416 dynamic_linker='GNU ld.so'
17423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17426 dynamic_linker='NetBSD (a.out) ld.so'
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 dynamic_linker='NetBSD ld.elf_so'
17432 shlibpath_var=LD_LIBRARY_PATH
17433 shlibpath_overrides_runpath=yes
17434 hardcode_into_libs=yes
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440 shlibpath_var=LD_LIBRARY_PATH
17441 shlibpath_overrides_runpath=yes
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449 soname_spec='${libname}${release}${shared_ext}$major'
17450 shlibpath_var=LD_LIBRARY_PATH
17451 shlibpath_overrides_runpath=yes
17457 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17459 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17460 *) need_version=no ;;
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17464 shlibpath_var=LD_LIBRARY_PATH
17465 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17467 openbsd2.[89] | openbsd2.[89].*)
17468 shlibpath_overrides_runpath=no
17471 shlibpath_overrides_runpath=yes
17475 shlibpath_overrides_runpath=yes
17480 libname_spec='$name'
17483 library_names_spec='$libname${shared_ext} $libname.a'
17484 dynamic_linker='OS/2 ld.exe'
17485 shlibpath_var=LIBPATH
17488 osf3* | osf4* | osf5*)
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17501 soname_spec='${libname}${release}${shared_ext}$major'
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503 shlibpath_var=LD_LIBRARY_PATH
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17511 soname_spec='${libname}${release}${shared_ext}$major'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 shlibpath_overrides_runpath=yes
17514 hardcode_into_libs=yes
17515 # ldd complains unless libraries are executable
17516 postinstall_cmds='chmod +x $lib'
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17522 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath=yes
17525 if test "$with_gnu_ld" = yes; then
17531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 shlibpath_var=LD_LIBRARY_PATH
17536 case $host_vendor in
17538 shlibpath_overrides_runpath=no
17540 export_dynamic_flag_spec='${wl}-Blargedynsym'
17541 runpath_var=LD_RUN_PATH
17549 shlibpath_overrides_runpath=no
17550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17556 if test -d /usr/nec ;then
17558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17559 soname_spec='$libname${shared_ext}.$major'
17560 shlibpath_var=LD_LIBRARY_PATH
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567 soname_spec='${libname}${release}${shared_ext}$major'
17568 shlibpath_var=LD_LIBRARY_PATH
17575 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17576 echo "${ECHO_T}$dynamic_linker" >&6
17577 test "$dynamic_linker" = no && can_build_shared=no
17579 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17580 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17581 hardcode_action_F77=
17582 if test -n "$hardcode_libdir_flag_spec_F77" || \
17583 test -n "$runpath_var_F77" || \
17584 test "X$hardcode_automatic_F77" = "Xyes" ; then
17586 # We can hardcode non-existant directories.
17587 if test "$hardcode_direct_F77" != no &&
17588 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17589 # have to relink, otherwise we might link with an installed library
17590 # when we should be linking with a yet-to-be-installed one
17591 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17592 test "$hardcode_minus_L_F77" != no; then
17593 # Linking always hardcodes the temporary library directory.
17594 hardcode_action_F77=relink
17596 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17597 hardcode_action_F77=immediate
17600 # We cannot hardcode anything, or else we can only hardcode existing
17602 hardcode_action_F77=unsupported
17604 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17605 echo "${ECHO_T}$hardcode_action_F77" >&6
17607 if test "$hardcode_action_F77" = relink; then
17608 # Fast installation is not supported
17609 enable_fast_install=no
17610 elif test "$shlibpath_overrides_runpath" = yes ||
17611 test "$enable_shared" = no; then
17612 # Fast installation is not necessary
17613 enable_fast_install=needless
17618 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17619 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17620 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17621 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17622 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17623 echo "$as_me:$LINENO: result: yes" >&5
17624 echo "${ECHO_T}yes" >&6
17626 # FIXME - insert some real tests, host_os isn't really good enough
17629 if test -n "$STRIP" ; then
17630 striplib="$STRIP -x"
17631 echo "$as_me:$LINENO: result: yes" >&5
17632 echo "${ECHO_T}yes" >&6
17634 echo "$as_me:$LINENO: result: no" >&5
17635 echo "${ECHO_T}no" >&6
17639 echo "$as_me:$LINENO: result: no" >&5
17640 echo "${ECHO_T}no" >&6
17647 # The else clause should only fire when bootstrapping the
17648 # libtool distribution, otherwise you forgot to ship ltmain.sh
17649 # with your package, and you will get complaints that there are
17650 # no rules to generate ltmain.sh.
17651 if test -f "$ltmain"; then
17652 # See if we are running on zsh, and set the options which allow our commands through
17653 # without removal of \ escapes.
17654 if test -n "${ZSH_VERSION+set}" ; then
17655 setopt NO_GLOB_SUBST
17657 # Now quote all the things that may contain metacharacters while being
17658 # careful not to overquote the AC_SUBSTed values. We take copies of the
17659 # variables and quote the copies for generation of the libtool script.
17660 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17662 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17663 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17664 deplibs_check_method reload_flag reload_cmds need_locks \
17665 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17666 lt_cv_sys_global_symbol_to_c_name_address \
17667 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17668 old_postinstall_cmds old_postuninstall_cmds \
17672 lt_prog_compiler_wl_F77 \
17673 lt_prog_compiler_pic_F77 \
17674 lt_prog_compiler_static_F77 \
17675 lt_prog_compiler_no_builtin_flag_F77 \
17676 export_dynamic_flag_spec_F77 \
17677 thread_safe_flag_spec_F77 \
17678 whole_archive_flag_spec_F77 \
17679 enable_shared_with_static_runtimes_F77 \
17680 old_archive_cmds_F77 \
17681 old_archive_from_new_cmds_F77 \
17682 predep_objects_F77 \
17683 postdep_objects_F77 \
17686 compiler_lib_search_path_F77 \
17688 archive_expsym_cmds_F77 \
17689 postinstall_cmds_F77 \
17690 postuninstall_cmds_F77 \
17691 old_archive_from_expsyms_cmds_F77 \
17692 allow_undefined_flag_F77 \
17693 no_undefined_flag_F77 \
17694 export_symbols_cmds_F77 \
17695 hardcode_libdir_flag_spec_F77 \
17696 hardcode_libdir_flag_spec_ld_F77 \
17697 hardcode_libdir_separator_F77 \
17698 hardcode_automatic_F77 \
17700 module_expsym_cmds_F77 \
17701 lt_cv_prog_compiler_c_o_F77 \
17702 exclude_expsyms_F77 \
17703 include_expsyms_F77; do
17706 old_archive_cmds_F77 | \
17707 old_archive_from_new_cmds_F77 | \
17708 archive_cmds_F77 | \
17709 archive_expsym_cmds_F77 | \
17710 module_cmds_F77 | \
17711 module_expsym_cmds_F77 | \
17712 old_archive_from_expsyms_cmds_F77 | \
17713 export_symbols_cmds_F77 | \
17714 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17715 postinstall_cmds | postuninstall_cmds | \
17716 old_postinstall_cmds | old_postuninstall_cmds | \
17717 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17718 # Double-quote double-evaled strings.
17719 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17728 *'\$0 --fallback-echo"')
17729 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17735 cat <<__EOF__ >> "$cfgfile"
17736 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17738 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17740 # Shell to use when invoking shell scripts.
17743 # Whether or not to build shared libraries.
17744 build_libtool_libs=$enable_shared
17746 # Whether or not to build static libraries.
17747 build_old_libs=$enable_static
17749 # Whether or not to add -lc for building shared libraries.
17750 build_libtool_need_lc=$archive_cmds_need_lc_F77
17752 # Whether or not to disallow shared libs when runtime libs are static
17753 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17755 # Whether or not to optimize for fast installation.
17756 fast_install=$enable_fast_install
17759 host_alias=$host_alias
17763 # The build system.
17764 build_alias=$build_alias
17768 # An echo program that does not interpret backslashes.
17773 AR_FLAGS=$lt_AR_FLAGS
17778 # A language-specific compiler.
17779 CC=$lt_compiler_F77
17781 # Is the compiler the GNU C compiler?
17787 # The linker used to build libraries.
17790 # Whether we need hard or soft links.
17793 # A BSD-compatible nm program.
17796 # A symbol stripping program
17799 # Used to examine libraries when file_magic_cmd begins "file"
17800 MAGIC_CMD=$MAGIC_CMD
17802 # Used on cygwin: DLL creation program.
17805 # Used on cygwin: object dumper.
17808 # Used on cygwin: assembler.
17811 # The name of the directory that contains temporary libtool files.
17814 # How to create reloadable object files.
17815 reload_flag=$lt_reload_flag
17816 reload_cmds=$lt_reload_cmds
17818 # How to pass a linker flag through the compiler.
17819 wl=$lt_lt_prog_compiler_wl_F77
17821 # Object file suffix (normally "o").
17822 objext="$ac_objext"
17824 # Old archive suffix (normally "a").
17827 # Shared library suffix (normally ".so").
17828 shrext_cmds='$shrext_cmds'
17830 # Executable file suffix (normally "").
17833 # Additional compiler flags for building library objects.
17834 pic_flag=$lt_lt_prog_compiler_pic_F77
17837 # What is the maximum length of a command?
17838 max_cmd_len=$lt_cv_sys_max_cmd_len
17840 # Does compiler simultaneously support -c and -o options?
17841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17843 # Must we lock files when doing compilation?
17844 need_locks=$lt_need_locks
17846 # Do we need the lib prefix for modules?
17847 need_lib_prefix=$need_lib_prefix
17849 # Do we need a version for libraries?
17850 need_version=$need_version
17852 # Whether dlopen is supported.
17853 dlopen_support=$enable_dlopen
17855 # Whether dlopen of programs is supported.
17856 dlopen_self=$enable_dlopen_self
17858 # Whether dlopen of statically linked programs is supported.
17859 dlopen_self_static=$enable_dlopen_self_static
17861 # Compiler flag to prevent dynamic linking.
17862 link_static_flag=$lt_lt_prog_compiler_static_F77
17864 # Compiler flag to turn off builtin functions.
17865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17867 # Compiler flag to allow reflexive dlopens.
17868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17870 # Compiler flag to generate shared objects directly from archives.
17871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17873 # Compiler flag to generate thread-safe objects.
17874 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17876 # Library versioning type.
17877 version_type=$version_type
17879 # Format of library name prefix.
17880 libname_spec=$lt_libname_spec
17882 # List of archive names. First name is the real one, the rest are links.
17883 # The last name is the one that the linker finds with -lNAME.
17884 library_names_spec=$lt_library_names_spec
17886 # The coded name of the library, if different from the real name.
17887 soname_spec=$lt_soname_spec
17889 # Commands used to build and install an old-style archive.
17891 old_archive_cmds=$lt_old_archive_cmds_F77
17892 old_postinstall_cmds=$lt_old_postinstall_cmds
17893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17895 # Create an old-style archive from a shared archive.
17896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17898 # Create a temporary old-style archive to link instead of a shared archive.
17899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17901 # Commands used to build and install a shared archive.
17902 archive_cmds=$lt_archive_cmds_F77
17903 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17904 postinstall_cmds=$lt_postinstall_cmds
17905 postuninstall_cmds=$lt_postuninstall_cmds
17907 # Commands used to build a loadable module (assumed same as above if empty)
17908 module_cmds=$lt_module_cmds_F77
17909 module_expsym_cmds=$lt_module_expsym_cmds_F77
17911 # Commands to strip libraries.
17912 old_striplib=$lt_old_striplib
17913 striplib=$lt_striplib
17915 # Dependencies to place before the objects being linked to create a
17917 predep_objects=$lt_predep_objects_F77
17919 # Dependencies to place after the objects being linked to create a
17921 postdep_objects=$lt_postdep_objects_F77
17923 # Dependencies to place before the objects being linked to create a
17925 predeps=$lt_predeps_F77
17927 # Dependencies to place after the objects being linked to create a
17929 postdeps=$lt_postdeps_F77
17931 # The library search path used internally by the compiler when linking
17932 # a shared library.
17933 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17935 # Method to check whether dependent libraries are shared objects.
17936 deplibs_check_method=$lt_deplibs_check_method
17938 # Command to use when deplibs_check_method == file_magic.
17939 file_magic_cmd=$lt_file_magic_cmd
17941 # Flag that allows shared libraries with undefined symbols to be built.
17942 allow_undefined_flag=$lt_allow_undefined_flag_F77
17944 # Flag that forces no undefined symbols.
17945 no_undefined_flag=$lt_no_undefined_flag_F77
17947 # Commands used to finish a libtool library installation in a directory.
17948 finish_cmds=$lt_finish_cmds
17950 # Same as above, but a single script fragment to be evaled but not shown.
17951 finish_eval=$lt_finish_eval
17953 # Take the output of nm and produce a listing of raw symbols and C names.
17954 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17956 # Transform the output of nm in a proper C declaration
17957 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17959 # Transform the output of nm in a C name address pair
17960 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17962 # This is the shared library runtime path variable.
17963 runpath_var=$runpath_var
17965 # This is the shared library path variable.
17966 shlibpath_var=$shlibpath_var
17968 # Is shlibpath searched before the hard-coded library search path?
17969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17971 # How to hardcode a shared library path into an executable.
17972 hardcode_action=$hardcode_action_F77
17974 # Whether we should hardcode library paths into libraries.
17975 hardcode_into_libs=$hardcode_into_libs
17977 # Flag to hardcode \$libdir into a binary during linking.
17978 # This must work even if \$libdir does not exist.
17979 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17981 # If ld is used when linking, flag to hardcode \$libdir into
17982 # a binary during linking. This must work even if \$libdir does
17984 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17986 # Whether we need a single -rpath flag with a separated argument.
17987 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17989 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17990 # resulting binary.
17991 hardcode_direct=$hardcode_direct_F77
17993 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17994 # resulting binary.
17995 hardcode_minus_L=$hardcode_minus_L_F77
17997 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17998 # the resulting binary.
17999 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18001 # Set to yes if building a shared library automatically hardcodes DIR into the library
18002 # and all subsequent libraries and executables linked against it.
18003 hardcode_automatic=$hardcode_automatic_F77
18005 # Variables whose values should be saved in libtool wrapper scripts and
18006 # restored at relink time.
18007 variables_saved_for_relink="$variables_saved_for_relink"
18009 # Whether libtool must link a program against all its dependency libraries.
18010 link_all_deplibs=$link_all_deplibs_F77
18012 # Compile-time system search path for libraries
18013 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18015 # Run-time system search path for libraries
18016 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18018 # Fix the shell variable \$srcfile for the compiler.
18019 fix_srcfile_path="$fix_srcfile_path_F77"
18021 # Set to yes if exported symbols are required.
18022 always_export_symbols=$always_export_symbols_F77
18024 # The commands to list exported symbols.
18025 export_symbols_cmds=$lt_export_symbols_cmds_F77
18027 # The commands to extract the exported symbol list from a shared archive.
18028 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18030 # Symbols that should not be listed in the preloaded symbols.
18031 exclude_expsyms=$lt_exclude_expsyms_F77
18033 # Symbols that must always be exported.
18034 include_expsyms=$lt_include_expsyms_F77
18036 # ### END LIBTOOL TAG CONFIG: $tagname
18042 # If there is no Makefile yet, we rely on a make rule to execute
18043 # `config.status --recheck' to rerun these tests and create the
18044 # libtool script then.
18045 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18046 if test -f "$ltmain_in"; then
18047 test -f Makefile && make "$ltmain"
18053 ac_cpp='$CPP $CPPFLAGS'
18054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18066 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18070 # Source file extension for Java test sources.
18073 # Object file extension for compiled Java test sources.
18077 # Code to be used in simple compile tests
18078 lt_simple_compile_test_code="class foo {}\n"
18080 # Code to be used in simple link tests
18081 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18085 # If no C compiler was specified, use CC.
18088 # Allow CC to be a program name with arguments.
18092 # save warnings/boilerplate of simple test code
18093 ac_outfile=conftest.$ac_objext
18094 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18096 _lt_compiler_boilerplate=`cat conftest.err`
18099 ac_outfile=conftest.$ac_objext
18100 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18102 _lt_linker_boilerplate=`cat conftest.err`
18106 # Allow CC to be a program name with arguments.
18111 for cc_temp in $compiler""; do
18113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18122 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18123 archive_cmds_need_lc_GCJ=no
18125 old_archive_cmds_GCJ=$old_archive_cmds
18128 lt_prog_compiler_no_builtin_flag_GCJ=
18130 if test "$GCC" = yes; then
18131 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18134 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18135 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 lt_cv_prog_compiler_rtti_exceptions=no
18140 ac_outfile=conftest.$ac_objext
18141 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18142 lt_compiler_flag="-fno-rtti -fno-exceptions"
18143 # Insert the option either (1) after the last *FLAGS variable, or
18144 # (2) before a word containing "conftest.", or (3) at the end.
18145 # Note that $ac_compile itself does not contain backslashes and begins
18146 # with a dollar sign (not a hyphen), so the echo should work correctly.
18147 # The option is referenced via a variable to avoid confusing sed.
18148 lt_compile=`echo "$ac_compile" | $SED \
18149 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18151 -e 's:$: $lt_compiler_flag:'`
18152 (eval echo "\"\$as_me:18152: $lt_compile\"" >&5)
18153 (eval "$lt_compile" 2>conftest.err)
18155 cat conftest.err >&5
18156 echo "$as_me:18156: \$? = $ac_status" >&5
18157 if (exit $ac_status) && test -s "$ac_outfile"; then
18158 # The compiler can only warn and ignore the option if not recognized
18159 # So say no if there are warnings other than the usual output.
18160 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18161 $SED '/^$/d' conftest.err >conftest.er2
18162 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18163 lt_cv_prog_compiler_rtti_exceptions=yes
18169 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18170 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18173 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18180 lt_prog_compiler_wl_GCJ=
18181 lt_prog_compiler_pic_GCJ=
18182 lt_prog_compiler_static_GCJ=
18184 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18187 if test "$GCC" = yes; then
18188 lt_prog_compiler_wl_GCJ='-Wl,'
18189 lt_prog_compiler_static_GCJ='-static'
18193 # All AIX code is PIC.
18194 if test "$host_cpu" = ia64; then
18195 # AIX 5 now supports IA64 processor
18196 lt_prog_compiler_static_GCJ='-Bstatic'
18201 # FIXME: we need at least 68020 code to build shared libraries, but
18202 # adding the `-m68020' flag to GCC prevents building anything better,
18204 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18207 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18208 # PIC is the default for these OSes.
18211 mingw* | pw32* | os2*)
18212 # This hack is so that the source file can tell whether it is being
18213 # built for inclusion in a dll (and should export symbols for example).
18214 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18217 darwin* | rhapsody*)
18218 # PIC is the default on this platform
18219 # Common symbols not allowed in MH_DYLIB files
18220 lt_prog_compiler_pic_GCJ='-fno-common'
18224 # Just because we use GCC doesn't mean we suddenly get shared libraries
18225 # on systems that don't support them.
18226 lt_prog_compiler_can_build_shared_GCJ=no
18231 if test -d /usr/nec; then
18232 lt_prog_compiler_pic_GCJ=-Kconform_pic
18237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18238 # not for PA HP-UX.
18239 case "$host_cpu" in
18244 lt_prog_compiler_pic_GCJ='-fPIC'
18250 lt_prog_compiler_pic_GCJ='-fPIC'
18254 # PORTME Check for flag to pass linker flags through the system compiler.
18257 lt_prog_compiler_wl_GCJ='-Wl,'
18258 if test "$host_cpu" = ia64; then
18259 # AIX 5 now supports IA64 processor
18260 lt_prog_compiler_static_GCJ='-Bstatic'
18262 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18266 # PIC is the default on this platform
18267 # Common symbols not allowed in MH_DYLIB files
18268 case $cc_basename in
18270 lt_prog_compiler_pic_GCJ='-qnocommon'
18271 lt_prog_compiler_wl_GCJ='-Wl,'
18276 mingw* | pw32* | os2*)
18277 # This hack is so that the source file can tell whether it is being
18278 # built for inclusion in a dll (and should export symbols for example).
18279 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18282 hpux9* | hpux10* | hpux11*)
18283 lt_prog_compiler_wl_GCJ='-Wl,'
18284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18285 # not for PA HP-UX.
18286 case "$host_cpu" in
18291 lt_prog_compiler_pic_GCJ='+Z'
18294 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18295 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18298 irix5* | irix6* | nonstopux*)
18299 lt_prog_compiler_wl_GCJ='-Wl,'
18300 # PIC (with -KPIC) is the default.
18301 lt_prog_compiler_static_GCJ='-non_shared'
18305 lt_prog_compiler_pic_GCJ='-KPIC'
18306 lt_prog_compiler_static_GCJ='-Bstatic'
18310 case $cc_basename in
18312 lt_prog_compiler_wl_GCJ='-Wl,'
18313 lt_prog_compiler_pic_GCJ='-KPIC'
18314 lt_prog_compiler_static_GCJ='-static'
18316 pgcc* | pgf77* | pgf90*)
18317 # Portland Group compilers (*not* the Pentium gcc compiler,
18318 # which looks to be a dead project)
18319 lt_prog_compiler_wl_GCJ='-Wl,'
18320 lt_prog_compiler_pic_GCJ='-fpic'
18321 lt_prog_compiler_static_GCJ='-static'
18324 lt_prog_compiler_wl_GCJ='-Wl,'
18325 # All Alpha code is PIC.
18326 lt_prog_compiler_static_GCJ='-non_shared'
18331 osf3* | osf4* | osf5*)
18332 lt_prog_compiler_wl_GCJ='-Wl,'
18333 # All OSF/1 code is PIC.
18334 lt_prog_compiler_static_GCJ='-non_shared'
18338 lt_prog_compiler_pic_GCJ='-Kpic'
18339 lt_prog_compiler_static_GCJ='-dn'
18343 lt_prog_compiler_pic_GCJ='-KPIC'
18344 lt_prog_compiler_static_GCJ='-Bstatic'
18345 case $cc_basename in
18346 f77* | f90* | f95*)
18347 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18349 lt_prog_compiler_wl_GCJ='-Wl,';;
18354 lt_prog_compiler_wl_GCJ='-Qoption ld '
18355 lt_prog_compiler_pic_GCJ='-PIC'
18356 lt_prog_compiler_static_GCJ='-Bstatic'
18359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18360 lt_prog_compiler_wl_GCJ='-Wl,'
18361 lt_prog_compiler_pic_GCJ='-KPIC'
18362 lt_prog_compiler_static_GCJ='-Bstatic'
18366 if test -d /usr/nec ;then
18367 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18368 lt_prog_compiler_static_GCJ='-Bstatic'
18373 lt_prog_compiler_wl_GCJ='-Wl,'
18374 lt_prog_compiler_can_build_shared_GCJ=no
18378 lt_prog_compiler_pic_GCJ='-pic'
18379 lt_prog_compiler_static_GCJ='-Bstatic'
18383 lt_prog_compiler_can_build_shared_GCJ=no
18388 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18389 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18392 # Check to make sure the PIC flag actually works.
18394 if test -n "$lt_prog_compiler_pic_GCJ"; then
18396 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18398 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 lt_prog_compiler_pic_works_GCJ=no
18402 ac_outfile=conftest.$ac_objext
18403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18404 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18405 # Insert the option either (1) after the last *FLAGS variable, or
18406 # (2) before a word containing "conftest.", or (3) at the end.
18407 # Note that $ac_compile itself does not contain backslashes and begins
18408 # with a dollar sign (not a hyphen), so the echo should work correctly.
18409 # The option is referenced via a variable to avoid confusing sed.
18410 lt_compile=`echo "$ac_compile" | $SED \
18411 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18413 -e 's:$: $lt_compiler_flag:'`
18414 (eval echo "\"\$as_me:18414: $lt_compile\"" >&5)
18415 (eval "$lt_compile" 2>conftest.err)
18417 cat conftest.err >&5
18418 echo "$as_me:18418: \$? = $ac_status" >&5
18419 if (exit $ac_status) && test -s "$ac_outfile"; then
18420 # The compiler can only warn and ignore the option if not recognized
18421 # So say no if there are warnings other than the usual output.
18422 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18423 $SED '/^$/d' conftest.err >conftest.er2
18424 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18425 lt_prog_compiler_pic_works_GCJ=yes
18431 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18432 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18434 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18435 case $lt_prog_compiler_pic_GCJ in
18437 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18440 lt_prog_compiler_pic_GCJ=
18441 lt_prog_compiler_can_build_shared_GCJ=no
18446 # For platforms which do not support PIC, -DPIC is meaningless:
18448 lt_prog_compiler_pic_GCJ=
18451 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18455 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18456 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18457 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 lt_cv_prog_compiler_c_o_GCJ=no
18461 $rm -r conftest 2>/dev/null
18465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18467 lt_compiler_flag="-o out/conftest2.$ac_objext"
18468 # Insert the option either (1) after the last *FLAGS variable, or
18469 # (2) before a word containing "conftest.", or (3) at the end.
18470 # Note that $ac_compile itself does not contain backslashes and begins
18471 # with a dollar sign (not a hyphen), so the echo should work correctly.
18472 lt_compile=`echo "$ac_compile" | $SED \
18473 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18475 -e 's:$: $lt_compiler_flag:'`
18476 (eval echo "\"\$as_me:18476: $lt_compile\"" >&5)
18477 (eval "$lt_compile" 2>out/conftest.err)
18479 cat out/conftest.err >&5
18480 echo "$as_me:18480: \$? = $ac_status" >&5
18481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18483 # The compiler can only warn and ignore the option if not recognized
18484 # So say no if there are warnings
18485 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18486 $SED '/^$/d' out/conftest.err >out/conftest.er2
18487 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18488 lt_cv_prog_compiler_c_o_GCJ=yes
18493 # SGI C++ compiler will create directory out/ii_files/ for
18494 # template instantiation
18495 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18496 $rm out/* && rmdir out
18502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18506 hard_links="nottested"
18507 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18508 # do not overwrite the value of need_locks provided by the user
18509 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18515 ln conftest.a conftest.b 2>&5 || hard_links=no
18516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18517 echo "$as_me:$LINENO: result: $hard_links" >&5
18518 echo "${ECHO_T}$hard_links" >&6
18519 if test "$hard_links" = no; then
18520 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18528 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18532 allow_undefined_flag_GCJ=
18533 enable_shared_with_static_runtimes_GCJ=no
18535 archive_expsym_cmds_GCJ=
18536 old_archive_From_new_cmds_GCJ=
18537 old_archive_from_expsyms_cmds_GCJ=
18538 export_dynamic_flag_spec_GCJ=
18539 whole_archive_flag_spec_GCJ=
18540 thread_safe_flag_spec_GCJ=
18541 hardcode_libdir_flag_spec_GCJ=
18542 hardcode_libdir_flag_spec_ld_GCJ=
18543 hardcode_libdir_separator_GCJ=
18544 hardcode_direct_GCJ=no
18545 hardcode_minus_L_GCJ=no
18546 hardcode_shlibpath_var_GCJ=unsupported
18547 link_all_deplibs_GCJ=unknown
18548 hardcode_automatic_GCJ=no
18550 module_expsym_cmds_GCJ=
18551 always_export_symbols_GCJ=no
18552 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18553 # include_expsyms should be a list of space-separated symbols to be *always*
18554 # included in the symbol list
18555 include_expsyms_GCJ=
18556 # exclude_expsyms can be an extended regexp of symbols to exclude
18557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18559 # as well as any symbol that contains `d'.
18560 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18562 # platforms (ab)use it in PIC code, but their linkers get confused if
18563 # the symbol is explicitly referenced. Since portable code cannot
18564 # rely on this symbol name, it's probably fine to never include it in
18565 # preloaded symbol tables.
18566 extract_expsyms_cmds=
18567 # Just being paranoid about ensuring that cc_basename is set.
18568 for cc_temp in $compiler""; do
18570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18579 cygwin* | mingw* | pw32*)
18580 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18581 # When not using gcc, we currently assume that we are using
18582 # Microsoft Visual C++.
18583 if test "$GCC" != yes; then
18593 if test "$with_gnu_ld" = yes; then
18594 # If archive_cmds runs LD, not CC, wlarc should be empty
18597 # Set some defaults for GNU ld with shared library support. These
18598 # are reset later if shared libraries are not supported. Putting them
18599 # here allows them to be overridden if necessary.
18600 runpath_var=LD_RUN_PATH
18601 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18602 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18603 # ancient GNU ld didn't support --whole-archive et. al.
18604 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18605 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18607 whole_archive_flag_spec_GCJ=
18609 supports_anon_versioning=no
18610 case `$LD -v 2>/dev/null` in
18611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18614 *\ 2.11.*) ;; # other 2.11 versions
18615 *) supports_anon_versioning=yes ;;
18618 # See if GNU ld supports shared libraries.
18620 aix3* | aix4* | aix5*)
18621 # On AIX/PPC, the GNU linker is very broken
18622 if test "$host_cpu" != ia64; then
18626 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18627 *** to be unable to reliably create shared libraries on AIX.
18628 *** Therefore, libtool is disabling shared libraries support. If you
18629 *** really care for shared libraries, you may want to modify your PATH
18630 *** so that a non-GNU linker is found, and then restart.
18637 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)'
18638 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18639 hardcode_minus_L_GCJ=yes
18641 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18642 # that the semantics of dynamic libraries on AmigaOS, at least up
18643 # to version 4, is to share data among multiple programs linked
18644 # with the same dynamic library. Since this doesn't match the
18645 # behavior of shared libraries on other platforms, we can't use
18651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18652 allow_undefined_flag_GCJ=unsupported
18653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18654 # support --undefined. This deserves some investigation. FIXME
18655 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18661 cygwin* | mingw* | pw32*)
18662 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18663 # as there is no search path for DLLs.
18664 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18665 allow_undefined_flag_GCJ=unsupported
18666 always_export_symbols_GCJ=no
18667 enable_shared_with_static_runtimes_GCJ=yes
18668 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18670 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18671 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18672 # If the export-symbols file already is a .def file (1st line
18673 # is EXPORTS), use it as is; otherwise, prepend...
18674 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18675 cp $export_symbols $output_objdir/$soname.def;
18677 echo EXPORTS > $output_objdir/$soname.def;
18678 cat $export_symbols >> $output_objdir/$soname.def;
18680 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18689 case $cc_basename,$host_cpu in
18690 pgcc*) # Portland Group C compiler
18691 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'
18692 tmp_addflag=' $pic_flag'
18694 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18695 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'
18696 tmp_addflag=' $pic_flag -Mnomain' ;;
18697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18698 tmp_addflag=' -i_dynamic' ;;
18699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18700 tmp_addflag=' -i_dynamic -nofor_main' ;;
18701 ifc* | ifort*) # Intel Fortran compiler
18702 tmp_addflag=' -nofor_main' ;;
18704 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18706 if test $supports_anon_versioning = yes; then
18707 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18709 $echo "local: *; };" >> $output_objdir/$libname.ver~
18710 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18719 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18722 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18723 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18733 *** create shared libraries on Solaris systems. Therefore, libtool
18734 *** is disabling shared libraries support. We urge you to upgrade GNU
18735 *** binutils to release 2.9.1 or newer. Another option is to modify
18736 *** your PATH or compiler configuration so that the native linker is
18737 *** used, and then restart.
18740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18741 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18742 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18749 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18751 hardcode_direct_GCJ=yes
18752 hardcode_shlibpath_var_GCJ=no
18756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18757 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18758 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18765 if test "$ld_shlibs_GCJ" = no; then
18767 hardcode_libdir_flag_spec_GCJ=
18768 export_dynamic_flag_spec_GCJ=
18769 whole_archive_flag_spec_GCJ=
18772 # PORTME fill in a description of your system's linker (not GNU ld)
18775 allow_undefined_flag_GCJ=unsupported
18776 always_export_symbols_GCJ=yes
18777 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'
18778 # Note: this linker hardcodes the directories in LIBPATH if there
18779 # are no directories specified by -L.
18780 hardcode_minus_L_GCJ=yes
18781 if test "$GCC" = yes && test -z "$link_static_flag"; then
18782 # Neither direct hardcoding nor static linking is supported with a
18784 hardcode_direct_GCJ=unsupported
18789 if test "$host_cpu" = ia64; then
18790 # On IA64, the linker does run time linking by default, so we don't
18791 # have to do anything special.
18792 aix_use_runtimelinking=no
18793 exp_sym_flag='-Bexport'
18796 # If we're using GNU nm, then we don't want the "-C" option.
18797 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18798 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18799 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'
18801 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'
18803 aix_use_runtimelinking=no
18805 # Test if we are trying to use run time linking or normal
18806 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18807 # need to do runtime linking.
18808 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18809 for ld_flag in $LDFLAGS; do
18810 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18811 aix_use_runtimelinking=yes
18817 exp_sym_flag='-bexport'
18818 no_entry_flag='-bnoentry'
18821 # When large executables or shared objects are built, AIX ld can
18822 # have problems creating the table of contents. If linking a library
18823 # or program results in "error TOC overflow" add -mminimal-toc to
18824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18827 archive_cmds_GCJ=''
18828 hardcode_direct_GCJ=yes
18829 hardcode_libdir_separator_GCJ=':'
18830 link_all_deplibs_GCJ=yes
18832 if test "$GCC" = yes; then
18833 case $host_os in aix4.[012]|aix4.[012].*)
18834 # We only want to do this on AIX 4.2 and lower, the check
18835 # below for broken collect2 doesn't work under 4.3+
18836 collect2name=`${CC} -print-prog-name=collect2`
18837 if test -f "$collect2name" && \
18838 strings "$collect2name" | grep resolve_lib_name >/dev/null
18840 # We have reworked collect2
18841 hardcode_direct_GCJ=yes
18843 # We have old collect2
18844 hardcode_direct_GCJ=unsupported
18845 # It fails to find uninstalled libraries when the uninstalled
18846 # path is not listed in the libpath. Setting hardcode_minus_L
18847 # to unsupported forces relinking
18848 hardcode_minus_L_GCJ=yes
18849 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18850 hardcode_libdir_separator_GCJ=
18853 shared_flag='-shared'
18854 if test "$aix_use_runtimelinking" = yes; then
18855 shared_flag="$shared_flag "'${wl}-G'
18859 if test "$host_cpu" = ia64; then
18860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18861 # chokes on -Wl,-G. The following line is correct:
18864 if test "$aix_use_runtimelinking" = yes; then
18865 shared_flag='${wl}-G'
18867 shared_flag='${wl}-bM:SRE'
18872 # It seems that -bexpall does not export symbols beginning with
18873 # underscore (_), so it is better to generate a list of symbols to export.
18874 always_export_symbols_GCJ=yes
18875 if test "$aix_use_runtimelinking" = yes; then
18876 # Warning - without using the other runtime loading flags (-brtl),
18877 # -berok will link without error, but may produce a broken library.
18878 allow_undefined_flag_GCJ='-berok'
18879 # Determine the default libpath from the value encoded in an empty executable.
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18897 (eval $ac_link) 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_c_werror_flag"
18905 || test ! -s conftest.err'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest$ac_exeext'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18920 # Check for a 64-bit object if we didn't find anything.
18921 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; }
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18928 rm -f conftest.err conftest.$ac_objext \
18929 conftest$ac_exeext conftest.$ac_ext
18930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18932 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18933 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"
18935 if test "$host_cpu" = ia64; then
18936 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18937 allow_undefined_flag_GCJ="-z nodefs"
18938 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"
18940 # Determine the default libpath from the value encoded in an empty executable.
18941 cat >conftest.$ac_ext <<_ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18958 (eval $ac_link) 2>conftest.er1
18960 grep -v '^ *+' conftest.er1 >conftest.err
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } &&
18965 { ac_try='test -z "$ac_c_werror_flag"
18966 || test ! -s conftest.err'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest$ac_exeext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18981 # Check for a 64-bit object if we didn't find anything.
18982 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; }
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18989 rm -f conftest.err conftest.$ac_objext \
18990 conftest$ac_exeext conftest.$ac_ext
18991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18993 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18994 # Warning - without using the other run time loading flags,
18995 # -berok will link without error, but may produce a broken library.
18996 no_undefined_flag_GCJ=' ${wl}-bernotok'
18997 allow_undefined_flag_GCJ=' ${wl}-berok'
18998 # -bexpall does not export symbols beginning with underscore (_)
18999 always_export_symbols_GCJ=yes
19000 # Exported symbols can be pulled into shared objects from archives
19001 whole_archive_flag_spec_GCJ=' '
19002 archive_cmds_need_lc_GCJ=yes
19003 # This is similar to how AIX traditionally builds it's shared libraries.
19004 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'
19010 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)'
19011 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19012 hardcode_minus_L_GCJ=yes
19013 # see comment about different semantics on the GNU ld section
19018 export_dynamic_flag_spec_GCJ=-rdynamic
19021 cygwin* | mingw* | pw32*)
19022 # When not using gcc, we currently assume that we are using
19023 # Microsoft Visual C++.
19024 # hardcode_libdir_flag_spec is actually meaningless, as there is
19025 # no search path for DLLs.
19026 hardcode_libdir_flag_spec_GCJ=' '
19027 allow_undefined_flag_GCJ=unsupported
19028 # Tell ltmain to make .lib files, not .a files.
19030 # Tell ltmain to make .dll files, not .so files.
19032 # FIXME: Setting linknames here is a bad hack.
19033 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19034 # The linker will automatically build a .lib file if we build a DLL.
19035 old_archive_From_new_cmds_GCJ='true'
19036 # FIXME: Should let the user specify the lib program.
19037 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19038 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19039 enable_shared_with_static_runtimes_GCJ=yes
19042 darwin* | rhapsody*)
19044 rhapsody* | darwin1.[012])
19045 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19048 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19049 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19051 case ${MACOSX_DEPLOYMENT_TARGET} in
19053 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19056 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19062 archive_cmds_need_lc_GCJ=no
19063 hardcode_direct_GCJ=no
19064 hardcode_automatic_GCJ=yes
19065 hardcode_shlibpath_var_GCJ=unsupported
19066 whole_archive_flag_spec_GCJ=''
19067 link_all_deplibs_GCJ=yes
19068 if test "$GCC" = yes ; then
19069 output_verbose_link_cmd='echo'
19070 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19071 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19072 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19073 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}'
19074 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}'
19076 case $cc_basename in
19078 output_verbose_link_cmd='echo'
19079 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19080 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19081 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19082 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}'
19083 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}'
19093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19095 hardcode_shlibpath_var_GCJ=no
19102 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19103 # support. Future versions do this automatically, but an explicit c++rt0.o
19104 # does not break anything, and helps significantly (at the cost of a little
19107 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19108 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19109 hardcode_direct_GCJ=yes
19110 hardcode_shlibpath_var_GCJ=no
19113 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19115 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19116 hardcode_direct_GCJ=yes
19117 hardcode_minus_L_GCJ=yes
19118 hardcode_shlibpath_var_GCJ=no
19121 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19122 freebsd* | kfreebsd*-gnu | dragonfly*)
19123 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19124 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19125 hardcode_direct_GCJ=yes
19126 hardcode_shlibpath_var_GCJ=no
19130 if test "$GCC" = yes; then
19131 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'
19133 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'
19135 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19136 hardcode_libdir_separator_GCJ=:
19137 hardcode_direct_GCJ=yes
19139 # hardcode_minus_L: Not really in the search PATH,
19140 # but as the default location of the library.
19141 hardcode_minus_L_GCJ=yes
19142 export_dynamic_flag_spec_GCJ='${wl}-E'
19146 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19147 case "$host_cpu" in
19149 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19152 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19156 case "$host_cpu" in
19158 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19161 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19165 if test "$with_gnu_ld" = no; then
19166 case "$host_cpu" in
19168 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19169 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19170 hardcode_libdir_separator_GCJ=:
19171 hardcode_direct_GCJ=no
19172 hardcode_shlibpath_var_GCJ=no
19175 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19176 hardcode_direct_GCJ=no
19177 hardcode_shlibpath_var_GCJ=no
19179 # hardcode_minus_L: Not really in the search PATH,
19180 # but as the default location of the library.
19181 hardcode_minus_L_GCJ=yes
19184 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19185 hardcode_libdir_separator_GCJ=:
19186 hardcode_direct_GCJ=yes
19187 export_dynamic_flag_spec_GCJ='${wl}-E'
19189 # hardcode_minus_L: Not really in the search PATH,
19190 # but as the default location of the library.
19191 hardcode_minus_L_GCJ=yes
19197 irix5* | irix6* | nonstopux*)
19198 if test "$GCC" = yes; then
19199 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'
19201 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'
19202 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19205 hardcode_libdir_separator_GCJ=:
19206 link_all_deplibs_GCJ=yes
19210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19211 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19213 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19215 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19216 hardcode_direct_GCJ=yes
19217 hardcode_shlibpath_var_GCJ=no
19221 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19222 hardcode_direct_GCJ=yes
19223 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19224 hardcode_libdir_separator_GCJ=:
19225 hardcode_shlibpath_var_GCJ=no
19229 hardcode_direct_GCJ=yes
19230 hardcode_shlibpath_var_GCJ=no
19231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19232 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19233 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19234 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19235 export_dynamic_flag_spec_GCJ='${wl}-E'
19238 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19239 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19240 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19243 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19252 hardcode_minus_L_GCJ=yes
19253 allow_undefined_flag_GCJ=unsupported
19254 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'
19255 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19259 if test "$GCC" = yes; then
19260 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19261 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'
19263 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19264 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'
19266 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19267 hardcode_libdir_separator_GCJ=:
19270 osf4* | osf5*) # as osf3* with the addition of -msym flag
19271 if test "$GCC" = yes; then
19272 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19273 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'
19274 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19276 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19277 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'
19278 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~
19279 $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'
19281 # Both c and cxx compiler support -rpath directly
19282 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19284 hardcode_libdir_separator_GCJ=:
19288 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19289 hardcode_shlibpath_var_GCJ=no
19290 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19291 runpath_var=LD_RUN_PATH
19292 hardcode_runpath_var=yes
19296 no_undefined_flag_GCJ=' -z text'
19297 if test "$GCC" = yes; then
19299 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19300 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19301 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19304 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19305 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19306 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19308 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19309 hardcode_shlibpath_var_GCJ=no
19311 solaris2.[0-5] | solaris2.[0-5].*) ;;
19313 # The compiler driver will combine linker options so we
19314 # cannot just pass the convience library names through
19315 # without $wl, iff we do not link with $LD.
19316 # Luckily, gcc supports the same syntax we need for Sun Studio.
19317 # Supported since Solaris 2.6 (maybe 2.5.1?)
19320 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19322 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' ;;
19325 link_all_deplibs_GCJ=yes
19329 if test "x$host_vendor" = xsequent; then
19330 # Use $CC to link under sequent, because it throws in some extra .o
19331 # files that make .init and .fini sections work.
19332 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19334 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19337 hardcode_direct_GCJ=yes
19338 hardcode_minus_L_GCJ=yes
19339 hardcode_shlibpath_var_GCJ=no
19343 case $host_vendor in
19345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19346 hardcode_direct_GCJ=yes # is this really true???
19349 ## LD is ld it makes a PLAMLIB
19350 ## CC just makes a GrossModule.
19351 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19352 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19353 hardcode_direct_GCJ=no
19356 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19357 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19360 runpath_var='LD_RUN_PATH'
19361 hardcode_shlibpath_var_GCJ=no
19365 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19366 hardcode_shlibpath_var_GCJ=no
19367 export_dynamic_flag_spec_GCJ='-Bexport'
19371 if test -d /usr/nec; then
19372 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19373 hardcode_shlibpath_var_GCJ=no
19374 runpath_var=LD_RUN_PATH
19375 hardcode_runpath_var=yes
19381 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19382 hardcode_direct_GCJ=yes
19383 hardcode_minus_L_GCJ=no
19384 hardcode_shlibpath_var_GCJ=no
19385 hardcode_runpath_var=yes
19386 runpath_var=LD_RUN_PATH
19389 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19390 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19391 if test "$GCC" = yes; then
19392 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19394 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19396 runpath_var='LD_RUN_PATH'
19397 hardcode_shlibpath_var_GCJ=no
19401 no_undefined_flag_GCJ=' -z text'
19402 # $CC -shared without GNU ld will not create a library from C++
19403 # object files and a static libstdc++, better avoid it by now
19404 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19405 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19407 hardcode_libdir_flag_spec_GCJ=
19408 hardcode_shlibpath_var_GCJ=no
19409 runpath_var='LD_RUN_PATH'
19413 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19415 hardcode_shlibpath_var_GCJ=no
19424 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19425 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19426 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19428 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19429 if test "$GCC" = yes; then
19430 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19434 # Do we need to explicitly link libc?
19436 case "x$archive_cmds_need_lc_GCJ" in
19438 # Assume -lc should be added
19439 archive_cmds_need_lc_GCJ=yes
19441 if test "$enable_shared" = yes && test "$GCC" = yes; then
19442 case $archive_cmds_GCJ in
19444 # FIXME: we may have to deal with multi-command sequences.
19447 # Test whether the compiler implicitly links with -lc since on some
19448 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19449 # to ld, don't add -lc before -lgcc.
19450 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19451 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19456 (eval $ac_compile) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } 2>conftest.err; then
19462 libobjs=conftest.$ac_objext
19464 wl=$lt_prog_compiler_wl_GCJ
19470 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19471 allow_undefined_flag_GCJ=
19472 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19473 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }
19478 archive_cmds_need_lc_GCJ=no
19480 archive_cmds_need_lc_GCJ=yes
19482 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19484 cat conftest.err 1>&5
19487 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19488 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19495 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19496 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19497 library_names_spec=
19498 libname_spec='lib$name'
19502 postuninstall_cmds=
19506 shlibpath_overrides_runpath=unknown
19508 dynamic_linker="$host_os ld.so"
19509 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19510 if test "$GCC" = yes; then
19511 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19512 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19513 # if the path contains ";" then we assume it to be the separator
19514 # otherwise default to the standard path separator (i.e. ":") - it is
19515 # assumed that no part of a normal pathname contains ";" but that should
19516 # okay in the real world where ";" in dirpaths is itself problematic.
19517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19522 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19524 need_lib_prefix=unknown
19525 hardcode_into_libs=no
19527 # when you set need_version to no, make sure it does not cause -set_version
19528 # flags to be left without arguments
19529 need_version=unknown
19534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19535 shlibpath_var=LIBPATH
19537 # AIX 3 has no versioning support, so we append a major version to the name.
19538 soname_spec='${libname}${release}${shared_ext}$major'
19545 hardcode_into_libs=yes
19546 if test "$host_cpu" = ia64; then
19547 # AIX 5 supports IA64
19548 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19549 shlibpath_var=LD_LIBRARY_PATH
19551 # With GCC up to 2.95.x, collect2 would create an import file
19552 # for dependence libraries. The import file would start with
19553 # the line `#! .'. This would cause the generated library to
19554 # depend on `.', always an invalid library. This was fixed in
19555 # development snapshots of GCC prior to 3.0.
19557 aix4 | aix4.[01] | aix4.[01].*)
19558 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19560 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19563 can_build_shared=no
19567 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19568 # soname into executable. Probably we can add versioning support to
19569 # collect2, so additional links can be useful in future.
19570 if test "$aix_use_runtimelinking" = yes; then
19571 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19572 # instead of lib<name>.a to let people know that these are not
19573 # typical AIX shared libraries.
19574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19576 # We preserve .a as extension for shared libraries through AIX4.2
19577 # and later when we are not doing run time linking.
19578 library_names_spec='${libname}${release}.a $libname.a'
19579 soname_spec='${libname}${release}${shared_ext}$major'
19581 shlibpath_var=LIBPATH
19586 library_names_spec='$libname.ixlibrary $libname.a'
19587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19588 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'
19592 library_names_spec='${libname}${shared_ext}'
19593 dynamic_linker="$host_os ld.so"
19594 shlibpath_var=LIBRARY_PATH
19600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19601 soname_spec='${libname}${release}${shared_ext}$major'
19602 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19603 shlibpath_var=LD_LIBRARY_PATH
19604 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19605 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19606 # the default ld.so.conf also contains /usr/contrib/lib and
19607 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19608 # libtool to hard-code these into programs
19611 cygwin* | mingw* | pw32*)
19612 version_type=windows
19617 case $GCC,$host_os in
19618 yes,cygwin* | yes,mingw* | yes,pw32*)
19619 library_names_spec='$libname.dll.a'
19620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19621 postinstall_cmds='base_file=`basename \${file}`~
19622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19623 dldir=$destdir/`dirname \$dlpath`~
19624 test -d \$dldir || mkdir -p \$dldir~
19625 $install_prog $dir/$dlname \$dldir/$dlname'
19626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19627 dlpath=$dir/\$dldll~
19629 shlibpath_overrides_runpath=yes
19633 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19634 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19635 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19638 # MinGW DLLs use traditional 'lib' prefix
19639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19641 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19642 # It is most probably a Windows format PATH printed by
19643 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19644 # path with ; separators, and with drive letters. We can handle the
19645 # drive letters (cygwin fileutils understands them), so leave them,
19646 # especially as we might pass files found there to a mingw objdump,
19647 # which wouldn't understand a cygwinified path. Ahh.
19648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19654 # pw32 DLLs use 'pw' prefix rather than 'lib'
19655 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19661 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19664 dynamic_linker='Win32 ld.exe'
19665 # FIXME: first we should search . and the directory the executable is in
19669 darwin* | rhapsody*)
19670 dynamic_linker="$host_os dyld"
19671 version_type=darwin
19674 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19675 soname_spec='${libname}${release}${major}$shared_ext'
19676 shlibpath_overrides_runpath=yes
19677 shlibpath_var=DYLD_LIBRARY_PATH
19678 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19679 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19680 if test "$GCC" = yes; then
19681 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"`
19683 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19685 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19693 soname_spec='${libname}${release}${shared_ext}$major'
19694 shlibpath_var=LD_LIBRARY_PATH
19705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19706 soname_spec='${libname}${release}${shared_ext}$major'
19707 shlibpath_var=LD_LIBRARY_PATH
19708 shlibpath_overrides_runpath=no
19709 hardcode_into_libs=yes
19710 dynamic_linker='GNU ld.so'
19713 freebsd* | dragonfly*)
19714 # DragonFly does not have aout. When/if they implement a new
19715 # versioning mechanism, adjust this.
19716 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19717 version_type=freebsd-$objformat
19718 case $version_type in
19720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19729 shlibpath_var=LD_LIBRARY_PATH
19732 shlibpath_overrides_runpath=yes
19734 freebsd3.[01]* | freebsdelf3.[01]*)
19735 shlibpath_overrides_runpath=yes
19736 hardcode_into_libs=yes
19739 shlibpath_overrides_runpath=no
19740 hardcode_into_libs=yes
19749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19750 soname_spec='${libname}${release}${shared_ext}$major'
19751 shlibpath_var=LD_LIBRARY_PATH
19752 hardcode_into_libs=yes
19755 hpux9* | hpux10* | hpux11*)
19756 # Give a soname corresponding to the major version so that dld.sl refuses to
19757 # link against other versions.
19761 case "$host_cpu" in
19764 hardcode_into_libs=yes
19765 dynamic_linker="$host_os dld.so"
19766 shlibpath_var=LD_LIBRARY_PATH
19767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19769 soname_spec='${libname}${release}${shared_ext}$major'
19770 if test "X$HPUX_IA64_MODE" = X32; then
19771 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19779 hardcode_into_libs=yes
19780 dynamic_linker="$host_os dld.sl"
19781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784 soname_spec='${libname}${release}${shared_ext}$major'
19785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19790 dynamic_linker="$host_os dld.sl"
19791 shlibpath_var=SHLIB_PATH
19792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19794 soname_spec='${libname}${release}${shared_ext}$major'
19797 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19798 postinstall_cmds='chmod 555 $lib'
19801 irix5* | irix6* | nonstopux*)
19803 nonstopux*) version_type=nonstopux ;;
19805 if test "$lt_cv_prog_gnu_ld" = yes; then
19813 soname_spec='${libname}${release}${shared_ext}$major'
19814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19816 irix5* | nonstopux*)
19817 libsuff= shlibsuff=
19820 case $LD in # libtool.m4 will add one of these switches to LD
19821 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19822 libsuff= shlibsuff= libmagic=32-bit;;
19823 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19824 libsuff=32 shlibsuff=N32 libmagic=N32;;
19825 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19826 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19827 *) libsuff= shlibsuff= libmagic=never-match;;
19831 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19832 shlibpath_overrides_runpath=no
19833 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19834 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19835 hardcode_into_libs=yes
19838 # No shared lib support for Linux oldld, aout, or coff.
19839 linux*oldld* | linux*aout* | linux*coff*)
19843 # This must be Linux ELF.
19848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19849 soname_spec='${libname}${release}${shared_ext}$major'
19850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19851 shlibpath_var=LD_LIBRARY_PATH
19852 shlibpath_overrides_runpath=no
19853 # This implies no fast_install, which is unacceptable.
19854 # Some rework will be needed to allow for fast_install
19855 # before this can be enabled.
19856 hardcode_into_libs=yes
19858 # Append ld.so.conf contents to the search path
19859 if test -f /etc/ld.so.conf; then
19860 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' ' '`
19861 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19864 # We used to test for /lib/ld.so.1 and disable shared libraries on
19865 # powerpc, because MkLinux only supported shared libraries with the
19866 # GNU dynamic linker. Since this was broken with cross compilers,
19867 # most powerpc-linux boxes support dynamic linking these days and
19868 # people can always --disable-shared, the test was removed, and we
19869 # assume the GNU/Linux dynamic linker is in use.
19870 dynamic_linker='GNU/Linux ld.so'
19877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19878 soname_spec='${libname}${release}${shared_ext}$major'
19879 shlibpath_var=LD_LIBRARY_PATH
19880 shlibpath_overrides_runpath=no
19881 hardcode_into_libs=yes
19882 dynamic_linker='GNU ld.so'
19889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19892 dynamic_linker='NetBSD (a.out) ld.so'
19894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19895 soname_spec='${libname}${release}${shared_ext}$major'
19896 dynamic_linker='NetBSD ld.elf_so'
19898 shlibpath_var=LD_LIBRARY_PATH
19899 shlibpath_overrides_runpath=yes
19900 hardcode_into_libs=yes
19905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19906 shlibpath_var=LD_LIBRARY_PATH
19907 shlibpath_overrides_runpath=yes
19914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19915 soname_spec='${libname}${release}${shared_ext}$major'
19916 shlibpath_var=LD_LIBRARY_PATH
19917 shlibpath_overrides_runpath=yes
19923 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19925 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19926 *) need_version=no ;;
19928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19930 shlibpath_var=LD_LIBRARY_PATH
19931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19933 openbsd2.[89] | openbsd2.[89].*)
19934 shlibpath_overrides_runpath=no
19937 shlibpath_overrides_runpath=yes
19941 shlibpath_overrides_runpath=yes
19946 libname_spec='$name'
19949 library_names_spec='$libname${shared_ext} $libname.a'
19950 dynamic_linker='OS/2 ld.exe'
19951 shlibpath_var=LIBPATH
19954 osf3* | osf4* | osf5*)
19958 soname_spec='${libname}${release}${shared_ext}$major'
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960 shlibpath_var=LD_LIBRARY_PATH
19961 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19962 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19967 soname_spec='${libname}${release}${shared_ext}$major'
19968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19969 shlibpath_var=LD_LIBRARY_PATH
19976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19977 soname_spec='${libname}${release}${shared_ext}$major'
19978 shlibpath_var=LD_LIBRARY_PATH
19979 shlibpath_overrides_runpath=yes
19980 hardcode_into_libs=yes
19981 # ldd complains unless libraries are executable
19982 postinstall_cmds='chmod +x $lib'
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19988 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19989 shlibpath_var=LD_LIBRARY_PATH
19990 shlibpath_overrides_runpath=yes
19991 if test "$with_gnu_ld" = yes; then
19997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20000 soname_spec='${libname}${release}${shared_ext}$major'
20001 shlibpath_var=LD_LIBRARY_PATH
20002 case $host_vendor in
20004 shlibpath_overrides_runpath=no
20006 export_dynamic_flag_spec='${wl}-Blargedynsym'
20007 runpath_var=LD_RUN_PATH
20015 shlibpath_overrides_runpath=no
20016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20022 if test -d /usr/nec ;then
20024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20025 soname_spec='$libname${shared_ext}.$major'
20026 shlibpath_var=LD_LIBRARY_PATH
20032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033 soname_spec='${libname}${release}${shared_ext}$major'
20034 shlibpath_var=LD_LIBRARY_PATH
20041 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20042 echo "${ECHO_T}$dynamic_linker" >&6
20043 test "$dynamic_linker" = no && can_build_shared=no
20045 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20046 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20047 hardcode_action_GCJ=
20048 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20049 test -n "$runpath_var_GCJ" || \
20050 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20052 # We can hardcode non-existant directories.
20053 if test "$hardcode_direct_GCJ" != no &&
20054 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20055 # have to relink, otherwise we might link with an installed library
20056 # when we should be linking with a yet-to-be-installed one
20057 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20058 test "$hardcode_minus_L_GCJ" != no; then
20059 # Linking always hardcodes the temporary library directory.
20060 hardcode_action_GCJ=relink
20062 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20063 hardcode_action_GCJ=immediate
20066 # We cannot hardcode anything, or else we can only hardcode existing
20068 hardcode_action_GCJ=unsupported
20070 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20071 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20073 if test "$hardcode_action_GCJ" = relink; then
20074 # Fast installation is not supported
20075 enable_fast_install=no
20076 elif test "$shlibpath_overrides_runpath" = yes ||
20077 test "$enable_shared" = no; then
20078 # Fast installation is not necessary
20079 enable_fast_install=needless
20084 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20085 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20086 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20087 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20088 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20089 echo "$as_me:$LINENO: result: yes" >&5
20090 echo "${ECHO_T}yes" >&6
20092 # FIXME - insert some real tests, host_os isn't really good enough
20095 if test -n "$STRIP" ; then
20096 striplib="$STRIP -x"
20097 echo "$as_me:$LINENO: result: yes" >&5
20098 echo "${ECHO_T}yes" >&6
20100 echo "$as_me:$LINENO: result: no" >&5
20101 echo "${ECHO_T}no" >&6
20105 echo "$as_me:$LINENO: result: no" >&5
20106 echo "${ECHO_T}no" >&6
20111 if test "x$enable_dlopen" != xyes; then
20112 enable_dlopen=unknown
20113 enable_dlopen_self=unknown
20114 enable_dlopen_self_static=unknown
20121 lt_cv_dlopen="load_add_on"
20123 lt_cv_dlopen_self=yes
20127 lt_cv_dlopen="LoadLibrary"
20132 lt_cv_dlopen="dlopen"
20137 # if libdl is installed we need to link against it
20138 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 ac_check_lib_save_LIBS=$LIBS
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20152 /* Override any gcc2 internal prototype to avoid an error. */
20156 /* We use char because int might match the return type of a gcc2
20157 builtin and then its argument prototype would still apply. */
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169 (eval $ac_link) 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try='test -z "$ac_c_werror_flag"
20177 || test ! -s conftest.err'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; } &&
20183 { ac_try='test -s conftest$ac_exeext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_cv_lib_dl_dlopen=yes
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_lib_dl_dlopen=no
20196 rm -f conftest.err conftest.$ac_objext \
20197 conftest$ac_exeext conftest.$ac_ext
20198 LIBS=$ac_check_lib_save_LIBS
20200 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20202 if test $ac_cv_lib_dl_dlopen = yes; then
20203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20206 lt_cv_dlopen="dyld"
20208 lt_cv_dlopen_self=yes
20215 echo "$as_me:$LINENO: checking for shl_load" >&5
20216 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20217 if test "${ac_cv_func_shl_load+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 cat >conftest.$ac_ext <<_ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20226 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20228 #define shl_load innocuous_shl_load
20230 /* System header to define __stub macros and hopefully few prototypes,
20231 which can conflict with char shl_load (); below.
20232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20233 <limits.h> exists even on freestanding compilers. */
20236 # include <limits.h>
20238 # include <assert.h>
20243 /* Override any gcc2 internal prototype to avoid an error. */
20248 /* We use char because int might match the return type of a gcc2
20249 builtin and then its argument prototype would still apply. */
20251 /* The GNU C library defines this for functions which it implements
20252 to always fail with ENOSYS. Some functions are actually named
20253 something starting with __ and the normal name is an alias. */
20254 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20257 char (*f) () = shl_load;
20266 return f != shl_load;
20271 rm -f conftest.$ac_objext conftest$ac_exeext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20273 (eval $ac_link) 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -z "$ac_c_werror_flag"
20281 || test ! -s conftest.err'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest$ac_exeext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_cv_func_shl_load=yes
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_cv_func_shl_load=no
20300 rm -f conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20303 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20304 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20305 if test $ac_cv_func_shl_load = yes; then
20306 lt_cv_dlopen="shl_load"
20308 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20309 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20310 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 ac_check_lib_save_LIBS=$LIBS
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 /* Override any gcc2 internal prototype to avoid an error. */
20326 /* We use char because int might match the return type of a gcc2
20327 builtin and then its argument prototype would still apply. */
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20339 (eval $ac_link) 2>conftest.er1
20341 grep -v '^ *+' conftest.er1 >conftest.err
20343 cat conftest.err >&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
20346 { ac_try='test -z "$ac_c_werror_flag"
20347 || test ! -s conftest.err'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; } &&
20353 { ac_try='test -s conftest$ac_exeext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_cv_lib_dld_shl_load=yes
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 ac_cv_lib_dld_shl_load=no
20366 rm -f conftest.err conftest.$ac_objext \
20367 conftest$ac_exeext conftest.$ac_ext
20368 LIBS=$ac_check_lib_save_LIBS
20370 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20371 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20372 if test $ac_cv_lib_dld_shl_load = yes; then
20373 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20375 echo "$as_me:$LINENO: checking for dlopen" >&5
20376 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20377 if test "${ac_cv_func_dlopen+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20386 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20388 #define dlopen innocuous_dlopen
20390 /* System header to define __stub macros and hopefully few prototypes,
20391 which can conflict with char dlopen (); below.
20392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20393 <limits.h> exists even on freestanding compilers. */
20396 # include <limits.h>
20398 # include <assert.h>
20403 /* Override any gcc2 internal prototype to avoid an error. */
20408 /* We use char because int might match the return type of a gcc2
20409 builtin and then its argument prototype would still apply. */
20411 /* The GNU C library defines this for functions which it implements
20412 to always fail with ENOSYS. Some functions are actually named
20413 something starting with __ and the normal name is an alias. */
20414 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20417 char (*f) () = dlopen;
20426 return f != dlopen;
20431 rm -f conftest.$ac_objext conftest$ac_exeext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433 (eval $ac_link) 2>conftest.er1
20435 grep -v '^ *+' conftest.er1 >conftest.err
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try='test -z "$ac_c_werror_flag"
20441 || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest$ac_exeext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_func_dlopen=yes
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ac_cv_func_dlopen=no
20460 rm -f conftest.err conftest.$ac_objext \
20461 conftest$ac_exeext conftest.$ac_ext
20463 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20464 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20465 if test $ac_cv_func_dlopen = yes; then
20466 lt_cv_dlopen="dlopen"
20468 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 ac_check_lib_save_LIBS=$LIBS
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20482 /* Override any gcc2 internal prototype to avoid an error. */
20486 /* We use char because int might match the return type of a gcc2
20487 builtin and then its argument prototype would still apply. */
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20499 (eval $ac_link) 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
20506 { ac_try='test -z "$ac_c_werror_flag"
20507 || test ! -s conftest.err'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; } &&
20513 { ac_try='test -s conftest$ac_exeext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 ac_cv_lib_dl_dlopen=yes
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 ac_cv_lib_dl_dlopen=no
20526 rm -f conftest.err conftest.$ac_objext \
20527 conftest$ac_exeext conftest.$ac_ext
20528 LIBS=$ac_check_lib_save_LIBS
20530 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20532 if test $ac_cv_lib_dl_dlopen = yes; then
20533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20535 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20536 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20537 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 ac_check_lib_save_LIBS=$LIBS
20541 LIBS="-lsvld $LIBS"
20542 cat >conftest.$ac_ext <<_ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20549 /* Override any gcc2 internal prototype to avoid an error. */
20553 /* We use char because int might match the return type of a gcc2
20554 builtin and then its argument prototype would still apply. */
20564 rm -f conftest.$ac_objext conftest$ac_exeext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20566 (eval $ac_link) 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try='test -z "$ac_c_werror_flag"
20574 || test ! -s conftest.err'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; } &&
20580 { ac_try='test -s conftest$ac_exeext'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_cv_lib_svld_dlopen=yes
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_cv_lib_svld_dlopen=no
20593 rm -f conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext conftest.$ac_ext
20595 LIBS=$ac_check_lib_save_LIBS
20597 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20598 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20599 if test $ac_cv_lib_svld_dlopen = yes; then
20600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20602 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20603 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20604 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 ac_check_lib_save_LIBS=$LIBS
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any gcc2 internal prototype to avoid an error. */
20620 /* We use char because int might match the return type of a gcc2
20621 builtin and then its argument prototype would still apply. */
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20633 (eval $ac_link) 2>conftest.er1
20635 grep -v '^ *+' conftest.er1 >conftest.err
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } &&
20640 { ac_try='test -z "$ac_c_werror_flag"
20641 || test ! -s conftest.err'
20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; } &&
20647 { ac_try='test -s conftest$ac_exeext'
20648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649 (eval $ac_try) 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 ac_cv_lib_dld_dld_link=yes
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 ac_cv_lib_dld_dld_link=no
20660 rm -f conftest.err conftest.$ac_objext \
20661 conftest$ac_exeext conftest.$ac_ext
20662 LIBS=$ac_check_lib_save_LIBS
20664 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20665 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20666 if test $ac_cv_lib_dld_dld_link = yes; then
20667 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20688 if test "x$lt_cv_dlopen" != xno; then
20694 case $lt_cv_dlopen in
20696 save_CPPFLAGS="$CPPFLAGS"
20697 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20699 save_LDFLAGS="$LDFLAGS"
20700 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20703 LIBS="$lt_cv_dlopen_libs $LIBS"
20705 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20706 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20707 if test "${lt_cv_dlopen_self+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 if test "$cross_compiling" = yes; then :
20711 lt_cv_dlopen_self=cross
20713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20714 lt_status=$lt_dlunknown
20715 cat > conftest.$ac_ext <<EOF
20716 #line 20716 "configure"
20717 #include "confdefs.h"
20726 # define LT_DLGLOBAL RTLD_GLOBAL
20729 # define LT_DLGLOBAL DL_GLOBAL
20731 # define LT_DLGLOBAL 0
20735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20736 find out it does not work in some platform. */
20737 #ifndef LT_DLLAZY_OR_NOW
20739 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20742 # define LT_DLLAZY_OR_NOW DL_LAZY
20745 # define LT_DLLAZY_OR_NOW RTLD_NOW
20748 # define LT_DLLAZY_OR_NOW DL_NOW
20750 # define LT_DLLAZY_OR_NOW 0
20758 extern "C" void exit (int);
20761 void fnord() { int i=42;}
20764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20765 int status = $lt_dlunknown;
20769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20770 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20771 /* dlclose (self); */
20777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20778 (eval $ac_link) 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20782 (./conftest; exit; ) 2>/dev/null
20784 case x$lt_status in
20785 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20786 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20787 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20790 # compilation failed
20791 lt_cv_dlopen_self=no
20798 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20799 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20801 if test "x$lt_cv_dlopen_self" = xyes; then
20802 LDFLAGS="$LDFLAGS $link_static_flag"
20803 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20804 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20805 if test "${lt_cv_dlopen_self_static+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 if test "$cross_compiling" = yes; then :
20809 lt_cv_dlopen_self_static=cross
20811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20812 lt_status=$lt_dlunknown
20813 cat > conftest.$ac_ext <<EOF
20814 #line 20814 "configure"
20815 #include "confdefs.h"
20824 # define LT_DLGLOBAL RTLD_GLOBAL
20827 # define LT_DLGLOBAL DL_GLOBAL
20829 # define LT_DLGLOBAL 0
20833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20834 find out it does not work in some platform. */
20835 #ifndef LT_DLLAZY_OR_NOW
20837 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20840 # define LT_DLLAZY_OR_NOW DL_LAZY
20843 # define LT_DLLAZY_OR_NOW RTLD_NOW
20846 # define LT_DLLAZY_OR_NOW DL_NOW
20848 # define LT_DLLAZY_OR_NOW 0
20856 extern "C" void exit (int);
20859 void fnord() { int i=42;}
20862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20863 int status = $lt_dlunknown;
20867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20869 /* dlclose (self); */
20875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20876 (eval $ac_link) 2>&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20880 (./conftest; exit; ) 2>/dev/null
20882 case x$lt_status in
20883 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20884 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20885 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20888 # compilation failed
20889 lt_cv_dlopen_self_static=no
20896 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20897 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20900 CPPFLAGS="$save_CPPFLAGS"
20901 LDFLAGS="$save_LDFLAGS"
20906 case $lt_cv_dlopen_self in
20907 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20908 *) enable_dlopen_self=unknown ;;
20911 case $lt_cv_dlopen_self_static in
20912 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20913 *) enable_dlopen_self_static=unknown ;;
20918 # The else clause should only fire when bootstrapping the
20919 # libtool distribution, otherwise you forgot to ship ltmain.sh
20920 # with your package, and you will get complaints that there are
20921 # no rules to generate ltmain.sh.
20922 if test -f "$ltmain"; then
20923 # See if we are running on zsh, and set the options which allow our commands through
20924 # without removal of \ escapes.
20925 if test -n "${ZSH_VERSION+set}" ; then
20926 setopt NO_GLOB_SUBST
20928 # Now quote all the things that may contain metacharacters while being
20929 # careful not to overquote the AC_SUBSTed values. We take copies of the
20930 # variables and quote the copies for generation of the libtool script.
20931 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20933 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20934 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20935 deplibs_check_method reload_flag reload_cmds need_locks \
20936 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20937 lt_cv_sys_global_symbol_to_c_name_address \
20938 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20939 old_postinstall_cmds old_postuninstall_cmds \
20943 lt_prog_compiler_wl_GCJ \
20944 lt_prog_compiler_pic_GCJ \
20945 lt_prog_compiler_static_GCJ \
20946 lt_prog_compiler_no_builtin_flag_GCJ \
20947 export_dynamic_flag_spec_GCJ \
20948 thread_safe_flag_spec_GCJ \
20949 whole_archive_flag_spec_GCJ \
20950 enable_shared_with_static_runtimes_GCJ \
20951 old_archive_cmds_GCJ \
20952 old_archive_from_new_cmds_GCJ \
20953 predep_objects_GCJ \
20954 postdep_objects_GCJ \
20957 compiler_lib_search_path_GCJ \
20959 archive_expsym_cmds_GCJ \
20960 postinstall_cmds_GCJ \
20961 postuninstall_cmds_GCJ \
20962 old_archive_from_expsyms_cmds_GCJ \
20963 allow_undefined_flag_GCJ \
20964 no_undefined_flag_GCJ \
20965 export_symbols_cmds_GCJ \
20966 hardcode_libdir_flag_spec_GCJ \
20967 hardcode_libdir_flag_spec_ld_GCJ \
20968 hardcode_libdir_separator_GCJ \
20969 hardcode_automatic_GCJ \
20971 module_expsym_cmds_GCJ \
20972 lt_cv_prog_compiler_c_o_GCJ \
20973 exclude_expsyms_GCJ \
20974 include_expsyms_GCJ; do
20977 old_archive_cmds_GCJ | \
20978 old_archive_from_new_cmds_GCJ | \
20979 archive_cmds_GCJ | \
20980 archive_expsym_cmds_GCJ | \
20981 module_cmds_GCJ | \
20982 module_expsym_cmds_GCJ | \
20983 old_archive_from_expsyms_cmds_GCJ | \
20984 export_symbols_cmds_GCJ | \
20985 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20986 postinstall_cmds | postuninstall_cmds | \
20987 old_postinstall_cmds | old_postuninstall_cmds | \
20988 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20989 # Double-quote double-evaled strings.
20990 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20999 *'\$0 --fallback-echo"')
21000 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21006 cat <<__EOF__ >> "$cfgfile"
21007 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21009 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21011 # Shell to use when invoking shell scripts.
21014 # Whether or not to build shared libraries.
21015 build_libtool_libs=$enable_shared
21017 # Whether or not to build static libraries.
21018 build_old_libs=$enable_static
21020 # Whether or not to add -lc for building shared libraries.
21021 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21023 # Whether or not to disallow shared libs when runtime libs are static
21024 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21026 # Whether or not to optimize for fast installation.
21027 fast_install=$enable_fast_install
21030 host_alias=$host_alias
21034 # The build system.
21035 build_alias=$build_alias
21039 # An echo program that does not interpret backslashes.
21044 AR_FLAGS=$lt_AR_FLAGS
21049 # A language-specific compiler.
21050 CC=$lt_compiler_GCJ
21052 # Is the compiler the GNU C compiler?
21058 # The linker used to build libraries.
21061 # Whether we need hard or soft links.
21064 # A BSD-compatible nm program.
21067 # A symbol stripping program
21070 # Used to examine libraries when file_magic_cmd begins "file"
21071 MAGIC_CMD=$MAGIC_CMD
21073 # Used on cygwin: DLL creation program.
21076 # Used on cygwin: object dumper.
21079 # Used on cygwin: assembler.
21082 # The name of the directory that contains temporary libtool files.
21085 # How to create reloadable object files.
21086 reload_flag=$lt_reload_flag
21087 reload_cmds=$lt_reload_cmds
21089 # How to pass a linker flag through the compiler.
21090 wl=$lt_lt_prog_compiler_wl_GCJ
21092 # Object file suffix (normally "o").
21093 objext="$ac_objext"
21095 # Old archive suffix (normally "a").
21098 # Shared library suffix (normally ".so").
21099 shrext_cmds='$shrext_cmds'
21101 # Executable file suffix (normally "").
21104 # Additional compiler flags for building library objects.
21105 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21108 # What is the maximum length of a command?
21109 max_cmd_len=$lt_cv_sys_max_cmd_len
21111 # Does compiler simultaneously support -c and -o options?
21112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21114 # Must we lock files when doing compilation?
21115 need_locks=$lt_need_locks
21117 # Do we need the lib prefix for modules?
21118 need_lib_prefix=$need_lib_prefix
21120 # Do we need a version for libraries?
21121 need_version=$need_version
21123 # Whether dlopen is supported.
21124 dlopen_support=$enable_dlopen
21126 # Whether dlopen of programs is supported.
21127 dlopen_self=$enable_dlopen_self
21129 # Whether dlopen of statically linked programs is supported.
21130 dlopen_self_static=$enable_dlopen_self_static
21132 # Compiler flag to prevent dynamic linking.
21133 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21135 # Compiler flag to turn off builtin functions.
21136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21138 # Compiler flag to allow reflexive dlopens.
21139 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21141 # Compiler flag to generate shared objects directly from archives.
21142 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21144 # Compiler flag to generate thread-safe objects.
21145 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21147 # Library versioning type.
21148 version_type=$version_type
21150 # Format of library name prefix.
21151 libname_spec=$lt_libname_spec
21153 # List of archive names. First name is the real one, the rest are links.
21154 # The last name is the one that the linker finds with -lNAME.
21155 library_names_spec=$lt_library_names_spec
21157 # The coded name of the library, if different from the real name.
21158 soname_spec=$lt_soname_spec
21160 # Commands used to build and install an old-style archive.
21162 old_archive_cmds=$lt_old_archive_cmds_GCJ
21163 old_postinstall_cmds=$lt_old_postinstall_cmds
21164 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21166 # Create an old-style archive from a shared archive.
21167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21169 # Create a temporary old-style archive to link instead of a shared archive.
21170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21172 # Commands used to build and install a shared archive.
21173 archive_cmds=$lt_archive_cmds_GCJ
21174 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21175 postinstall_cmds=$lt_postinstall_cmds
21176 postuninstall_cmds=$lt_postuninstall_cmds
21178 # Commands used to build a loadable module (assumed same as above if empty)
21179 module_cmds=$lt_module_cmds_GCJ
21180 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21182 # Commands to strip libraries.
21183 old_striplib=$lt_old_striplib
21184 striplib=$lt_striplib
21186 # Dependencies to place before the objects being linked to create a
21188 predep_objects=$lt_predep_objects_GCJ
21190 # Dependencies to place after the objects being linked to create a
21192 postdep_objects=$lt_postdep_objects_GCJ
21194 # Dependencies to place before the objects being linked to create a
21196 predeps=$lt_predeps_GCJ
21198 # Dependencies to place after the objects being linked to create a
21200 postdeps=$lt_postdeps_GCJ
21202 # The library search path used internally by the compiler when linking
21203 # a shared library.
21204 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21206 # Method to check whether dependent libraries are shared objects.
21207 deplibs_check_method=$lt_deplibs_check_method
21209 # Command to use when deplibs_check_method == file_magic.
21210 file_magic_cmd=$lt_file_magic_cmd
21212 # Flag that allows shared libraries with undefined symbols to be built.
21213 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21215 # Flag that forces no undefined symbols.
21216 no_undefined_flag=$lt_no_undefined_flag_GCJ
21218 # Commands used to finish a libtool library installation in a directory.
21219 finish_cmds=$lt_finish_cmds
21221 # Same as above, but a single script fragment to be evaled but not shown.
21222 finish_eval=$lt_finish_eval
21224 # Take the output of nm and produce a listing of raw symbols and C names.
21225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21227 # Transform the output of nm in a proper C declaration
21228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21230 # Transform the output of nm in a C name address pair
21231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21233 # This is the shared library runtime path variable.
21234 runpath_var=$runpath_var
21236 # This is the shared library path variable.
21237 shlibpath_var=$shlibpath_var
21239 # Is shlibpath searched before the hard-coded library search path?
21240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21242 # How to hardcode a shared library path into an executable.
21243 hardcode_action=$hardcode_action_GCJ
21245 # Whether we should hardcode library paths into libraries.
21246 hardcode_into_libs=$hardcode_into_libs
21248 # Flag to hardcode \$libdir into a binary during linking.
21249 # This must work even if \$libdir does not exist.
21250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21252 # If ld is used when linking, flag to hardcode \$libdir into
21253 # a binary during linking. This must work even if \$libdir does
21255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21257 # Whether we need a single -rpath flag with a separated argument.
21258 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21260 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21261 # resulting binary.
21262 hardcode_direct=$hardcode_direct_GCJ
21264 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21265 # resulting binary.
21266 hardcode_minus_L=$hardcode_minus_L_GCJ
21268 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21269 # the resulting binary.
21270 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21272 # Set to yes if building a shared library automatically hardcodes DIR into the library
21273 # and all subsequent libraries and executables linked against it.
21274 hardcode_automatic=$hardcode_automatic_GCJ
21276 # Variables whose values should be saved in libtool wrapper scripts and
21277 # restored at relink time.
21278 variables_saved_for_relink="$variables_saved_for_relink"
21280 # Whether libtool must link a program against all its dependency libraries.
21281 link_all_deplibs=$link_all_deplibs_GCJ
21283 # Compile-time system search path for libraries
21284 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21286 # Run-time system search path for libraries
21287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21289 # Fix the shell variable \$srcfile for the compiler.
21290 fix_srcfile_path="$fix_srcfile_path_GCJ"
21292 # Set to yes if exported symbols are required.
21293 always_export_symbols=$always_export_symbols_GCJ
21295 # The commands to list exported symbols.
21296 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21298 # The commands to extract the exported symbol list from a shared archive.
21299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21301 # Symbols that should not be listed in the preloaded symbols.
21302 exclude_expsyms=$lt_exclude_expsyms_GCJ
21304 # Symbols that must always be exported.
21305 include_expsyms=$lt_include_expsyms_GCJ
21307 # ### END LIBTOOL TAG CONFIG: $tagname
21313 # If there is no Makefile yet, we rely on a make rule to execute
21314 # `config.status --recheck' to rerun these tests and create the
21315 # libtool script then.
21316 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21317 if test -f "$ltmain_in"; then
21318 test -f Makefile && make "$ltmain"
21324 ac_cpp='$CPP $CPPFLAGS'
21325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21340 # Source file extension for RC test sources.
21343 # Object file extension for compiled RC test sources.
21347 # Code to be used in simple compile tests
21348 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21350 # Code to be used in simple link tests
21351 lt_simple_link_test_code="$lt_simple_compile_test_code"
21353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21355 # If no C compiler was specified, use CC.
21358 # Allow CC to be a program name with arguments.
21362 # save warnings/boilerplate of simple test code
21363 ac_outfile=conftest.$ac_objext
21364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21366 _lt_compiler_boilerplate=`cat conftest.err`
21369 ac_outfile=conftest.$ac_objext
21370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21372 _lt_linker_boilerplate=`cat conftest.err`
21376 # Allow CC to be a program name with arguments.
21381 for cc_temp in $compiler""; do
21383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21391 lt_cv_prog_compiler_c_o_RC=yes
21393 # The else clause should only fire when bootstrapping the
21394 # libtool distribution, otherwise you forgot to ship ltmain.sh
21395 # with your package, and you will get complaints that there are
21396 # no rules to generate ltmain.sh.
21397 if test -f "$ltmain"; then
21398 # See if we are running on zsh, and set the options which allow our commands through
21399 # without removal of \ escapes.
21400 if test -n "${ZSH_VERSION+set}" ; then
21401 setopt NO_GLOB_SUBST
21403 # Now quote all the things that may contain metacharacters while being
21404 # careful not to overquote the AC_SUBSTed values. We take copies of the
21405 # variables and quote the copies for generation of the libtool script.
21406 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21408 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21409 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21410 deplibs_check_method reload_flag reload_cmds need_locks \
21411 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21412 lt_cv_sys_global_symbol_to_c_name_address \
21413 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21414 old_postinstall_cmds old_postuninstall_cmds \
21418 lt_prog_compiler_wl_RC \
21419 lt_prog_compiler_pic_RC \
21420 lt_prog_compiler_static_RC \
21421 lt_prog_compiler_no_builtin_flag_RC \
21422 export_dynamic_flag_spec_RC \
21423 thread_safe_flag_spec_RC \
21424 whole_archive_flag_spec_RC \
21425 enable_shared_with_static_runtimes_RC \
21426 old_archive_cmds_RC \
21427 old_archive_from_new_cmds_RC \
21428 predep_objects_RC \
21429 postdep_objects_RC \
21432 compiler_lib_search_path_RC \
21434 archive_expsym_cmds_RC \
21435 postinstall_cmds_RC \
21436 postuninstall_cmds_RC \
21437 old_archive_from_expsyms_cmds_RC \
21438 allow_undefined_flag_RC \
21439 no_undefined_flag_RC \
21440 export_symbols_cmds_RC \
21441 hardcode_libdir_flag_spec_RC \
21442 hardcode_libdir_flag_spec_ld_RC \
21443 hardcode_libdir_separator_RC \
21444 hardcode_automatic_RC \
21446 module_expsym_cmds_RC \
21447 lt_cv_prog_compiler_c_o_RC \
21448 exclude_expsyms_RC \
21449 include_expsyms_RC; do
21452 old_archive_cmds_RC | \
21453 old_archive_from_new_cmds_RC | \
21454 archive_cmds_RC | \
21455 archive_expsym_cmds_RC | \
21457 module_expsym_cmds_RC | \
21458 old_archive_from_expsyms_cmds_RC | \
21459 export_symbols_cmds_RC | \
21460 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21461 postinstall_cmds | postuninstall_cmds | \
21462 old_postinstall_cmds | old_postuninstall_cmds | \
21463 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21464 # Double-quote double-evaled strings.
21465 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21474 *'\$0 --fallback-echo"')
21475 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21481 cat <<__EOF__ >> "$cfgfile"
21482 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21484 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21486 # Shell to use when invoking shell scripts.
21489 # Whether or not to build shared libraries.
21490 build_libtool_libs=$enable_shared
21492 # Whether or not to build static libraries.
21493 build_old_libs=$enable_static
21495 # Whether or not to add -lc for building shared libraries.
21496 build_libtool_need_lc=$archive_cmds_need_lc_RC
21498 # Whether or not to disallow shared libs when runtime libs are static
21499 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21501 # Whether or not to optimize for fast installation.
21502 fast_install=$enable_fast_install
21505 host_alias=$host_alias
21509 # The build system.
21510 build_alias=$build_alias
21514 # An echo program that does not interpret backslashes.
21519 AR_FLAGS=$lt_AR_FLAGS
21524 # A language-specific compiler.
21527 # Is the compiler the GNU C compiler?
21533 # The linker used to build libraries.
21536 # Whether we need hard or soft links.
21539 # A BSD-compatible nm program.
21542 # A symbol stripping program
21545 # Used to examine libraries when file_magic_cmd begins "file"
21546 MAGIC_CMD=$MAGIC_CMD
21548 # Used on cygwin: DLL creation program.
21551 # Used on cygwin: object dumper.
21554 # Used on cygwin: assembler.
21557 # The name of the directory that contains temporary libtool files.
21560 # How to create reloadable object files.
21561 reload_flag=$lt_reload_flag
21562 reload_cmds=$lt_reload_cmds
21564 # How to pass a linker flag through the compiler.
21565 wl=$lt_lt_prog_compiler_wl_RC
21567 # Object file suffix (normally "o").
21568 objext="$ac_objext"
21570 # Old archive suffix (normally "a").
21573 # Shared library suffix (normally ".so").
21574 shrext_cmds='$shrext_cmds'
21576 # Executable file suffix (normally "").
21579 # Additional compiler flags for building library objects.
21580 pic_flag=$lt_lt_prog_compiler_pic_RC
21583 # What is the maximum length of a command?
21584 max_cmd_len=$lt_cv_sys_max_cmd_len
21586 # Does compiler simultaneously support -c and -o options?
21587 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21589 # Must we lock files when doing compilation?
21590 need_locks=$lt_need_locks
21592 # Do we need the lib prefix for modules?
21593 need_lib_prefix=$need_lib_prefix
21595 # Do we need a version for libraries?
21596 need_version=$need_version
21598 # Whether dlopen is supported.
21599 dlopen_support=$enable_dlopen
21601 # Whether dlopen of programs is supported.
21602 dlopen_self=$enable_dlopen_self
21604 # Whether dlopen of statically linked programs is supported.
21605 dlopen_self_static=$enable_dlopen_self_static
21607 # Compiler flag to prevent dynamic linking.
21608 link_static_flag=$lt_lt_prog_compiler_static_RC
21610 # Compiler flag to turn off builtin functions.
21611 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21613 # Compiler flag to allow reflexive dlopens.
21614 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21616 # Compiler flag to generate shared objects directly from archives.
21617 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21619 # Compiler flag to generate thread-safe objects.
21620 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21622 # Library versioning type.
21623 version_type=$version_type
21625 # Format of library name prefix.
21626 libname_spec=$lt_libname_spec
21628 # List of archive names. First name is the real one, the rest are links.
21629 # The last name is the one that the linker finds with -lNAME.
21630 library_names_spec=$lt_library_names_spec
21632 # The coded name of the library, if different from the real name.
21633 soname_spec=$lt_soname_spec
21635 # Commands used to build and install an old-style archive.
21637 old_archive_cmds=$lt_old_archive_cmds_RC
21638 old_postinstall_cmds=$lt_old_postinstall_cmds
21639 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21641 # Create an old-style archive from a shared archive.
21642 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21644 # Create a temporary old-style archive to link instead of a shared archive.
21645 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21647 # Commands used to build and install a shared archive.
21648 archive_cmds=$lt_archive_cmds_RC
21649 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21650 postinstall_cmds=$lt_postinstall_cmds
21651 postuninstall_cmds=$lt_postuninstall_cmds
21653 # Commands used to build a loadable module (assumed same as above if empty)
21654 module_cmds=$lt_module_cmds_RC
21655 module_expsym_cmds=$lt_module_expsym_cmds_RC
21657 # Commands to strip libraries.
21658 old_striplib=$lt_old_striplib
21659 striplib=$lt_striplib
21661 # Dependencies to place before the objects being linked to create a
21663 predep_objects=$lt_predep_objects_RC
21665 # Dependencies to place after the objects being linked to create a
21667 postdep_objects=$lt_postdep_objects_RC
21669 # Dependencies to place before the objects being linked to create a
21671 predeps=$lt_predeps_RC
21673 # Dependencies to place after the objects being linked to create a
21675 postdeps=$lt_postdeps_RC
21677 # The library search path used internally by the compiler when linking
21678 # a shared library.
21679 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21681 # Method to check whether dependent libraries are shared objects.
21682 deplibs_check_method=$lt_deplibs_check_method
21684 # Command to use when deplibs_check_method == file_magic.
21685 file_magic_cmd=$lt_file_magic_cmd
21687 # Flag that allows shared libraries with undefined symbols to be built.
21688 allow_undefined_flag=$lt_allow_undefined_flag_RC
21690 # Flag that forces no undefined symbols.
21691 no_undefined_flag=$lt_no_undefined_flag_RC
21693 # Commands used to finish a libtool library installation in a directory.
21694 finish_cmds=$lt_finish_cmds
21696 # Same as above, but a single script fragment to be evaled but not shown.
21697 finish_eval=$lt_finish_eval
21699 # Take the output of nm and produce a listing of raw symbols and C names.
21700 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21702 # Transform the output of nm in a proper C declaration
21703 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21705 # Transform the output of nm in a C name address pair
21706 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21708 # This is the shared library runtime path variable.
21709 runpath_var=$runpath_var
21711 # This is the shared library path variable.
21712 shlibpath_var=$shlibpath_var
21714 # Is shlibpath searched before the hard-coded library search path?
21715 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21717 # How to hardcode a shared library path into an executable.
21718 hardcode_action=$hardcode_action_RC
21720 # Whether we should hardcode library paths into libraries.
21721 hardcode_into_libs=$hardcode_into_libs
21723 # Flag to hardcode \$libdir into a binary during linking.
21724 # This must work even if \$libdir does not exist.
21725 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21727 # If ld is used when linking, flag to hardcode \$libdir into
21728 # a binary during linking. This must work even if \$libdir does
21730 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21732 # Whether we need a single -rpath flag with a separated argument.
21733 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21735 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21736 # resulting binary.
21737 hardcode_direct=$hardcode_direct_RC
21739 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21740 # resulting binary.
21741 hardcode_minus_L=$hardcode_minus_L_RC
21743 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21744 # the resulting binary.
21745 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21747 # Set to yes if building a shared library automatically hardcodes DIR into the library
21748 # and all subsequent libraries and executables linked against it.
21749 hardcode_automatic=$hardcode_automatic_RC
21751 # Variables whose values should be saved in libtool wrapper scripts and
21752 # restored at relink time.
21753 variables_saved_for_relink="$variables_saved_for_relink"
21755 # Whether libtool must link a program against all its dependency libraries.
21756 link_all_deplibs=$link_all_deplibs_RC
21758 # Compile-time system search path for libraries
21759 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21761 # Run-time system search path for libraries
21762 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21764 # Fix the shell variable \$srcfile for the compiler.
21765 fix_srcfile_path="$fix_srcfile_path_RC"
21767 # Set to yes if exported symbols are required.
21768 always_export_symbols=$always_export_symbols_RC
21770 # The commands to list exported symbols.
21771 export_symbols_cmds=$lt_export_symbols_cmds_RC
21773 # The commands to extract the exported symbol list from a shared archive.
21774 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21776 # Symbols that should not be listed in the preloaded symbols.
21777 exclude_expsyms=$lt_exclude_expsyms_RC
21779 # Symbols that must always be exported.
21780 include_expsyms=$lt_include_expsyms_RC
21782 # ### END LIBTOOL TAG CONFIG: $tagname
21788 # If there is no Makefile yet, we rely on a make rule to execute
21789 # `config.status --recheck' to rerun these tests and create the
21790 # libtool script then.
21791 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21792 if test -f "$ltmain_in"; then
21793 test -f Makefile && make "$ltmain"
21799 ac_cpp='$CPP $CPPFLAGS'
21800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21809 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21810 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21811 { (exit 1); exit 1; }; }
21815 # Append the new tag name to the list of available tags.
21816 if test -n "$tagname" ; then
21817 available_tags="$available_tags $tagname"
21823 # Now substitute the updated list of available tags.
21824 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21825 mv "${ofile}T" "$ofile"
21829 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21830 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21831 { (exit 1); exit 1; }; }
21837 # This can be used to rebuild libtool when needed
21838 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21840 # Always use our own libtool.
21841 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21843 # Prevent multiple expansion
21866 if test $ol_enable_perl != no ; then
21867 # Extract the first word of "perl", so it can be a program name with args.
21868 set dummy perl; ac_word=$2
21869 echo "$as_me:$LINENO: checking for $ac_word" >&5
21870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21871 if test "${ac_cv_path_PERLBIN+set}" = set; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21876 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21880 for as_dir in $PATH
21883 test -z "$as_dir" && as_dir=.
21884 for ac_exec_ext in '' $ac_executable_extensions; do
21885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21886 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21893 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21897 PERLBIN=$ac_cv_path_PERLBIN
21899 if test -n "$PERLBIN"; then
21900 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21901 echo "${ECHO_T}$PERLBIN" >&6
21903 echo "$as_me:$LINENO: result: no" >&5
21904 echo "${ECHO_T}no" >&6
21908 if test "no$PERLBIN" = "no" ; then
21909 if test $ol_enable_perl = yes ; then
21910 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21911 echo "$as_me: error: could not locate perl" >&2;}
21912 { (exit 1); exit 1; }; }
21916 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21917 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21919 if test x"$ol_enable_perl" = "xyes" ; then
21920 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21922 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21929 ac_cpp='$CPP $CPPFLAGS'
21930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21933 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21934 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21935 # On Suns, sometimes $CPP names a directory.
21936 if test -n "$CPP" && test -d "$CPP"; then
21939 if test -z "$CPP"; then
21940 if test "${ac_cv_prog_CPP+set}" = set; then
21941 echo $ECHO_N "(cached) $ECHO_C" >&6
21943 # Double quotes because CPP needs to be expanded
21944 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21946 ac_preproc_ok=false
21947 for ac_c_preproc_warn_flag in '' yes
21949 # Use a header file that comes with gcc, so configuring glibc
21950 # with a fresh cross-compiler works.
21951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952 # <limits.h> exists even on freestanding compilers.
21953 # On the NeXT, cc -E runs the code through the compiler's parser,
21954 # not just through cpp. "Syntax error" is here to catch this case.
21955 cat >conftest.$ac_ext <<_ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21962 # include <limits.h>
21964 # include <assert.h>
21968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21971 grep -v '^ *+' conftest.er1 >conftest.err
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } >/dev/null; then
21976 if test -s conftest.err; then
21977 ac_cpp_err=$ac_c_preproc_warn_flag
21978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21985 if test -z "$ac_cpp_err"; then
21988 echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 # Broken: fails on valid input.
21994 rm -f conftest.err conftest.$ac_ext
21996 # OK, works on sane cases. Now check whether non-existent headers
21997 # can be detected and how.
21998 cat >conftest.$ac_ext <<_ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22004 #include <ac_nonexistent.h>
22006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22009 grep -v '^ *+' conftest.er1 >conftest.err
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } >/dev/null; then
22014 if test -s conftest.err; then
22015 ac_cpp_err=$ac_c_preproc_warn_flag
22016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22023 if test -z "$ac_cpp_err"; then
22024 # Broken: success on invalid input.
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 # Passes both tests.
22034 rm -f conftest.err conftest.$ac_ext
22037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22038 rm -f conftest.err conftest.$ac_ext
22039 if $ac_preproc_ok; then
22044 ac_cv_prog_CPP=$CPP
22047 CPP=$ac_cv_prog_CPP
22049 ac_cv_prog_CPP=$CPP
22051 echo "$as_me:$LINENO: result: $CPP" >&5
22052 echo "${ECHO_T}$CPP" >&6
22053 ac_preproc_ok=false
22054 for ac_c_preproc_warn_flag in '' yes
22056 # Use a header file that comes with gcc, so configuring glibc
22057 # with a fresh cross-compiler works.
22058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22059 # <limits.h> exists even on freestanding compilers.
22060 # On the NeXT, cc -E runs the code through the compiler's parser,
22061 # not just through cpp. "Syntax error" is here to catch this case.
22062 cat >conftest.$ac_ext <<_ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22069 # include <limits.h>
22071 # include <assert.h>
22075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22078 grep -v '^ *+' conftest.er1 >conftest.err
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); } >/dev/null; then
22083 if test -s conftest.err; then
22084 ac_cpp_err=$ac_c_preproc_warn_flag
22085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22092 if test -z "$ac_cpp_err"; then
22095 echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22098 # Broken: fails on valid input.
22101 rm -f conftest.err conftest.$ac_ext
22103 # OK, works on sane cases. Now check whether non-existent headers
22104 # can be detected and how.
22105 cat >conftest.$ac_ext <<_ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111 #include <ac_nonexistent.h>
22113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22116 grep -v '^ *+' conftest.er1 >conftest.err
22118 cat conftest.err >&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } >/dev/null; then
22121 if test -s conftest.err; then
22122 ac_cpp_err=$ac_c_preproc_warn_flag
22123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22130 if test -z "$ac_cpp_err"; then
22131 # Broken: success on invalid input.
22134 echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22137 # Passes both tests.
22141 rm -f conftest.err conftest.$ac_ext
22144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22145 rm -f conftest.err conftest.$ac_ext
22146 if $ac_preproc_ok; then
22149 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22150 See \`config.log' for more details." >&5
22151 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22152 See \`config.log' for more details." >&2;}
22153 { (exit 1); exit 1; }; }
22157 ac_cpp='$CPP $CPPFLAGS'
22158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22166 cat >>confdefs.h <<_ACEOF
22167 #define EXEEXT "${EXEEXT}"
22171 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22172 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22173 if test "${ac_cv_lib_be_be_app+set}" = set; then
22174 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lbe -lroot -lnet $LIBS"
22178 cat >conftest.$ac_ext <<_ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22185 /* Override any gcc2 internal prototype to avoid an error. */
22189 /* We use char because int might match the return type of a gcc2
22190 builtin and then its argument prototype would still apply. */
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22202 (eval $ac_link) 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try='test -z "$ac_c_werror_flag"
22210 || test ! -s conftest.err'
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest$ac_exeext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_lib_be_be_app=yes
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_cv_lib_be_be_app=no
22229 rm -f conftest.err conftest.$ac_objext \
22230 conftest$ac_exeext conftest.$ac_ext
22231 LIBS=$ac_check_lib_save_LIBS
22233 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22234 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22235 if test $ac_cv_lib_be_be_app = yes; then
22236 LIBS="$LIBS -lbe -lroot -lnet"
22243 ac_cpp='$CPP $CPPFLAGS'
22244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22247 if test -n "$ac_tool_prefix"; then
22248 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22249 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22250 echo "$as_me:$LINENO: checking for $ac_word" >&5
22251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22252 if test "${ac_cv_prog_CC+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 if test -n "$CC"; then
22256 ac_cv_prog_CC="$CC" # Let the user override the test.
22258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22259 for as_dir in $PATH
22262 test -z "$as_dir" && as_dir=.
22263 for ac_exec_ext in '' $ac_executable_extensions; do
22264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22265 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22275 if test -n "$CC"; then
22276 echo "$as_me:$LINENO: result: $CC" >&5
22277 echo "${ECHO_T}$CC" >&6
22279 echo "$as_me:$LINENO: result: no" >&5
22280 echo "${ECHO_T}no" >&6
22284 if test -z "$ac_cv_prog_CC"; then
22286 # Extract the first word of "gcc", so it can be a program name with args.
22287 set dummy gcc; ac_word=$2
22288 echo "$as_me:$LINENO: checking for $ac_word" >&5
22289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22293 if test -n "$ac_ct_CC"; then
22294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22297 for as_dir in $PATH
22300 test -z "$as_dir" && as_dir=.
22301 for ac_exec_ext in '' $ac_executable_extensions; do
22302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22303 ac_cv_prog_ac_ct_CC="gcc"
22304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22313 if test -n "$ac_ct_CC"; then
22314 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22315 echo "${ECHO_T}$ac_ct_CC" >&6
22317 echo "$as_me:$LINENO: result: no" >&5
22318 echo "${ECHO_T}no" >&6
22323 CC="$ac_cv_prog_CC"
22326 if test -z "$CC"; then
22327 if test -n "$ac_tool_prefix"; then
22328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22329 set dummy ${ac_tool_prefix}cc; ac_word=$2
22330 echo "$as_me:$LINENO: checking for $ac_word" >&5
22331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22332 if test "${ac_cv_prog_CC+set}" = set; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22335 if test -n "$CC"; then
22336 ac_cv_prog_CC="$CC" # Let the user override the test.
22338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22339 for as_dir in $PATH
22342 test -z "$as_dir" && as_dir=.
22343 for ac_exec_ext in '' $ac_executable_extensions; do
22344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22345 ac_cv_prog_CC="${ac_tool_prefix}cc"
22346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22355 if test -n "$CC"; then
22356 echo "$as_me:$LINENO: result: $CC" >&5
22357 echo "${ECHO_T}$CC" >&6
22359 echo "$as_me:$LINENO: result: no" >&5
22360 echo "${ECHO_T}no" >&6
22364 if test -z "$ac_cv_prog_CC"; then
22366 # Extract the first word of "cc", so it can be a program name with args.
22367 set dummy cc; ac_word=$2
22368 echo "$as_me:$LINENO: checking for $ac_word" >&5
22369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 if test -n "$ac_ct_CC"; then
22374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22377 for as_dir in $PATH
22380 test -z "$as_dir" && as_dir=.
22381 for ac_exec_ext in '' $ac_executable_extensions; do
22382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22383 ac_cv_prog_ac_ct_CC="cc"
22384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22393 if test -n "$ac_ct_CC"; then
22394 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22395 echo "${ECHO_T}$ac_ct_CC" >&6
22397 echo "$as_me:$LINENO: result: no" >&5
22398 echo "${ECHO_T}no" >&6
22403 CC="$ac_cv_prog_CC"
22407 if test -z "$CC"; then
22408 # Extract the first word of "cc", so it can be a program name with args.
22409 set dummy cc; ac_word=$2
22410 echo "$as_me:$LINENO: checking for $ac_word" >&5
22411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22412 if test "${ac_cv_prog_CC+set}" = set; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22415 if test -n "$CC"; then
22416 ac_cv_prog_CC="$CC" # Let the user override the test.
22418 ac_prog_rejected=no
22419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22420 for as_dir in $PATH
22423 test -z "$as_dir" && as_dir=.
22424 for ac_exec_ext in '' $ac_executable_extensions; do
22425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22426 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22427 ac_prog_rejected=yes
22431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22437 if test $ac_prog_rejected = yes; then
22438 # We found a bogon in the path, so make sure we never use it.
22439 set dummy $ac_cv_prog_CC
22441 if test $# != 0; then
22442 # We chose a different compiler from the bogus one.
22443 # However, it has the same basename, so the bogon will be chosen
22444 # first if we set CC to just the basename; use the full file name.
22446 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22452 if test -n "$CC"; then
22453 echo "$as_me:$LINENO: result: $CC" >&5
22454 echo "${ECHO_T}$CC" >&6
22456 echo "$as_me:$LINENO: result: no" >&5
22457 echo "${ECHO_T}no" >&6
22461 if test -z "$CC"; then
22462 if test -n "$ac_tool_prefix"; then
22465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22467 echo "$as_me:$LINENO: checking for $ac_word" >&5
22468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22469 if test "${ac_cv_prog_CC+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 if test -n "$CC"; then
22473 ac_cv_prog_CC="$CC" # Let the user override the test.
22475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22476 for as_dir in $PATH
22479 test -z "$as_dir" && as_dir=.
22480 for ac_exec_ext in '' $ac_executable_extensions; do
22481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22492 if test -n "$CC"; then
22493 echo "$as_me:$LINENO: result: $CC" >&5
22494 echo "${ECHO_T}$CC" >&6
22496 echo "$as_me:$LINENO: result: no" >&5
22497 echo "${ECHO_T}no" >&6
22500 test -n "$CC" && break
22503 if test -z "$CC"; then
22507 # Extract the first word of "$ac_prog", so it can be a program name with args.
22508 set dummy $ac_prog; ac_word=$2
22509 echo "$as_me:$LINENO: checking for $ac_word" >&5
22510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22514 if test -n "$ac_ct_CC"; then
22515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22518 for as_dir in $PATH
22521 test -z "$as_dir" && as_dir=.
22522 for ac_exec_ext in '' $ac_executable_extensions; do
22523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22524 ac_cv_prog_ac_ct_CC="$ac_prog"
22525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22534 if test -n "$ac_ct_CC"; then
22535 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22536 echo "${ECHO_T}$ac_ct_CC" >&6
22538 echo "$as_me:$LINENO: result: no" >&5
22539 echo "${ECHO_T}no" >&6
22542 test -n "$ac_ct_CC" && break
22551 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22552 See \`config.log' for more details." >&5
22553 echo "$as_me: error: no acceptable C compiler found in \$PATH
22554 See \`config.log' for more details." >&2;}
22555 { (exit 1); exit 1; }; }
22557 # Provide some information about the compiler.
22558 echo "$as_me:$LINENO:" \
22559 "checking for C compiler version" >&5
22560 ac_compiler=`set X $ac_compile; echo $2`
22561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22562 (eval $ac_compiler --version </dev/null >&5) 2>&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }
22566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22567 (eval $ac_compiler -v </dev/null >&5) 2>&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); }
22571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22572 (eval $ac_compiler -V </dev/null >&5) 2>&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }
22577 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22578 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22579 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 cat >conftest.$ac_ext <<_ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22600 rm -f conftest.$ac_objext
22601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22602 (eval $ac_compile) 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } &&
22609 { ac_try='test -z "$ac_c_werror_flag"
22610 || test ! -s conftest.err'
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; } &&
22616 { ac_try='test -s conftest.$ac_objext'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 ac_compiler_gnu=yes
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22633 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22634 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22635 GCC=`test $ac_compiler_gnu = yes && echo yes`
22636 ac_test_CFLAGS=${CFLAGS+set}
22637 ac_save_CFLAGS=$CFLAGS
22639 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22640 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22641 if test "${ac_cv_prog_cc_g+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22644 cat >conftest.$ac_ext <<_ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22659 rm -f conftest.$ac_objext
22660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22661 (eval $ac_compile) 2>conftest.er1
22663 grep -v '^ *+' conftest.er1 >conftest.err
22665 cat conftest.err >&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); } &&
22668 { ac_try='test -z "$ac_c_werror_flag"
22669 || test ! -s conftest.err'
22670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22671 (eval $ac_try) 2>&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); }; } &&
22675 { ac_try='test -s conftest.$ac_objext'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; }; then
22681 ac_cv_prog_cc_g=yes
22683 echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22690 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22691 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22692 if test "$ac_test_CFLAGS" = set; then
22693 CFLAGS=$ac_save_CFLAGS
22694 elif test $ac_cv_prog_cc_g = yes; then
22695 if test "$GCC" = yes; then
22701 if test "$GCC" = yes; then
22707 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22708 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22709 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22712 ac_cv_prog_cc_stdc=no
22714 cat >conftest.$ac_ext <<_ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22720 #include <stdarg.h>
22722 #include <sys/types.h>
22723 #include <sys/stat.h>
22724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22725 struct buf { int x; };
22726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22727 static char *e (p, i)
22733 static char *f (char * (*g) (char **, int), char **p, ...)
22738 s = g (p, va_arg (v,int));
22743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22744 function prototypes and stuff, but not '\xHH' hex character constants.
22745 These don't provoke an error unfortunately, instead are silently treated
22746 as 'x'. The following induces an error, until -std1 is added to get
22747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22748 array size at least. It's necessary to write '\x00'==0 to get something
22749 that's true only with -std1. */
22750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22752 int test (int i, double x);
22753 struct s1 {int (*f) (int a);};
22754 struct s2 {int (*f) (double a);};
22755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22766 # Don't try gcc -ansi; that turns off useful extensions and
22767 # breaks some systems' header files.
22768 # AIX -qlanglvl=ansi
22769 # Ultrix and OSF/1 -std1
22770 # HP-UX 10.20 and later -Ae
22771 # HP-UX older versions -Aa -D_HPUX_SOURCE
22772 # SVR4 -Xc -D__EXTENSIONS__
22773 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22775 CC="$ac_save_CC $ac_arg"
22776 rm -f conftest.$ac_objext
22777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22778 (eval $ac_compile) 2>conftest.er1
22780 grep -v '^ *+' conftest.er1 >conftest.err
22782 cat conftest.err >&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } &&
22785 { ac_try='test -z "$ac_c_werror_flag"
22786 || test ! -s conftest.err'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; } &&
22792 { ac_try='test -s conftest.$ac_objext'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 ac_cv_prog_cc_stdc=$ac_arg
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22805 rm -f conftest.err conftest.$ac_objext
22807 rm -f conftest.$ac_ext conftest.$ac_objext
22812 case "x$ac_cv_prog_cc_stdc" in
22814 echo "$as_me:$LINENO: result: none needed" >&5
22815 echo "${ECHO_T}none needed" >&6 ;;
22817 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22818 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22819 CC="$CC $ac_cv_prog_cc_stdc" ;;
22822 # Some people use a C++ compiler to compile C. Since we use `exit',
22823 # in C++ we need to declare it. In case someone uses the same compiler
22824 # for both compiling C and C++ we need to have the C++ compiler decide
22825 # the declaration of exit, since it's the most demanding environment.
22826 cat >conftest.$ac_ext <<_ACEOF
22827 #ifndef __cplusplus
22831 rm -f conftest.$ac_objext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22833 (eval $ac_compile) 2>conftest.er1
22835 grep -v '^ *+' conftest.er1 >conftest.err
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } &&
22840 { ac_try='test -z "$ac_c_werror_flag"
22841 || test ! -s conftest.err'
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest.$ac_objext'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 for ac_declaration in \
22855 'extern "C" void std::exit (int) throw (); using std::exit;' \
22856 'extern "C" void std::exit (int); using std::exit;' \
22857 'extern "C" void exit (int) throw ();' \
22858 'extern "C" void exit (int);' \
22861 cat >conftest.$ac_ext <<_ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h. */
22868 #include <stdlib.h>
22877 rm -f conftest.$ac_objext
22878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22879 (eval $ac_compile) 2>conftest.er1
22881 grep -v '^ *+' conftest.er1 >conftest.err
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } &&
22886 { ac_try='test -z "$ac_c_werror_flag"
22887 || test ! -s conftest.err'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; } &&
22893 { ac_try='test -s conftest.$ac_objext'
22894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895 (eval $ac_try) 2>&5
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); }; }; then
22901 echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22922 rm -f conftest.$ac_objext
22923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22924 (eval $ac_compile) 2>conftest.er1
22926 grep -v '^ *+' conftest.er1 >conftest.err
22928 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } &&
22931 { ac_try='test -z "$ac_c_werror_flag"
22932 || test ! -s conftest.err'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; } &&
22938 { ac_try='test -s conftest.$ac_objext'
22939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940 (eval $ac_try) 2>&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; }; then
22946 echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22953 if test -n "$ac_declaration"; then
22954 echo '#ifdef __cplusplus' >>confdefs.h
22955 echo $ac_declaration >>confdefs.h
22956 echo '#endif' >>confdefs.h
22960 echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22966 ac_cpp='$CPP $CPPFLAGS'
22967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22971 depcc="$CC" am_compiler_list=
22973 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22974 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22979 # We make a subdir and do the tests there. Otherwise we can end up
22980 # making bogus files that we don't know about and never remove. For
22981 # instance it was reported that on HP-UX the gcc test will end up
22982 # making a dummy file named `D' -- because `-MD' means `put the output
22985 # Copy depcomp to subdir because otherwise we won't find it if we're
22986 # using a relative directory.
22987 cp "$am_depcomp" conftest.dir
22989 # We will build objects and dependencies in a subdirectory because
22990 # it helps to detect inapplicable dependency modes. For instance
22991 # both Tru64's cc and ICC support -MD to output dependencies as a
22992 # side effect of compilation, but ICC will put the dependencies in
22993 # the current directory while Tru64 will put them in the object
22997 am_cv_CC_dependencies_compiler_type=none
22998 if test "$am_compiler_list" = ""; then
22999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23001 for depmode in $am_compiler_list; do
23002 # Setup a source with many dependencies, because some compilers
23003 # like to wrap large dependency lists on column 80 (with \), and
23004 # we should not choose a depcomp mode which is confused by this.
23006 # We need to recreate these files for each test, as the compiler may
23007 # overwrite some of them when testing with obscure command lines.
23008 # This happens at least with the AIX C compiler.
23010 for i in 1 2 3 4 5 6; do
23011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23013 # Solaris 8's {/usr,}/bin/sh.
23014 touch sub/conftst$i.h
23016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23020 # after this tag, mechanisms are not by side-effect, so they'll
23021 # only be used when explicitly requested
23022 if test "x$enable_dependency_tracking" = xyes; then
23030 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23031 # mode. It turns out that the SunPro C++ compiler does not properly
23032 # handle `-M -o', and we need to detect this.
23033 if depmode=$depmode \
23034 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23036 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23037 >/dev/null 2>conftest.err &&
23038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23039 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23041 # icc doesn't choke on unknown options, it will just issue warnings
23042 # or remarks (even with -Werror). So we grep stderr for any message
23043 # that says an option was ignored or not supported.
23044 # When given -MP, icc 7.0 and 7.1 complain thusly:
23045 # icc: Command line warning: ignoring option '-M'; no argument required
23046 # The diagnosis changed in icc 8.0:
23047 # icc: Command line remark: option '-MP' not supported
23048 if (grep 'ignoring option' conftest.err ||
23049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23050 am_cv_CC_dependencies_compiler_type=$depmode
23057 rm -rf conftest.dir
23059 am_cv_CC_dependencies_compiler_type=none
23063 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
23064 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
23065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
23070 test "x$enable_dependency_tracking" != xno \
23071 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
23072 am__fastdepCC_TRUE=
23073 am__fastdepCC_FALSE='#'
23075 am__fastdepCC_TRUE='#'
23076 am__fastdepCC_FALSE=
23080 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
23081 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
23082 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
23083 { (exit 1); exit 1; }; }
23086 # test for make depend flag
23089 if test -z "${MKDEP}"; then
23090 OL_MKDEP="${CC-cc}"
23091 if test -z "${MKDEP_FLAGS}"; then
23092 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
23093 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
23094 if test "${ol_cv_mkdep+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 for flag in "-M" "-xM"; do
23100 cat > conftest.c <<EOF
23103 if { ac_try='$OL_MKDEP $flag conftest.c'
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; } \
23109 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
23111 if test ! -f conftest."${ac_object}" ; then
23113 OL_MKDEP_FLAGS="$flag"
23121 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
23122 echo "${ECHO_T}$ol_cv_mkdep" >&6
23125 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23129 OL_MKDEP="${MKDEP}"
23130 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23135 if test "${ol_cv_mkdep}" = no ; then
23136 # this will soon become an error
23137 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23138 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23141 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23142 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23143 if test "${ac_cv_lib_s_afopen+set}" = set; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23146 ac_check_lib_save_LIBS=$LIBS
23148 cat >conftest.$ac_ext <<_ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h. */
23155 /* Override any gcc2 internal prototype to avoid an error. */
23159 /* We use char because int might match the return type of a gcc2
23160 builtin and then its argument prototype would still apply. */
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172 (eval $ac_link) 2>conftest.er1
23174 grep -v '^ *+' conftest.er1 >conftest.err
23176 cat conftest.err >&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } &&
23179 { ac_try='test -z "$ac_c_werror_flag"
23180 || test ! -s conftest.err'
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; } &&
23186 { ac_try='test -s conftest$ac_exeext'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; }; then
23192 ac_cv_lib_s_afopen=yes
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 ac_cv_lib_s_afopen=no
23199 rm -f conftest.err conftest.$ac_objext \
23200 conftest$ac_exeext conftest.$ac_ext
23201 LIBS=$ac_check_lib_save_LIBS
23203 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23204 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23205 if test $ac_cv_lib_s_afopen = yes; then
23209 cat >>confdefs.h <<\_ACEOF
23210 #define HAVE_AIX_SECURITY 1
23219 ac_cv_func_getopt=no
23221 cat >>confdefs.h <<\_ACEOF
23222 #define BOTH_STRINGS_H 1
23229 WITH_MODULES_ENABLED=no
23230 if test $ol_enable_modules != no ; then
23232 for ac_header in ltdl.h
23234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23236 echo "$as_me:$LINENO: checking for $ac_header" >&5
23237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23244 # Is the header compilable?
23245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23247 cat >conftest.$ac_ext <<_ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23253 $ac_includes_default
23254 #include <$ac_header>
23256 rm -f conftest.$ac_objext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23258 (eval $ac_compile) 2>conftest.er1
23260 grep -v '^ *+' conftest.er1 >conftest.err
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
23265 { ac_try='test -z "$ac_c_werror_flag"
23266 || test ! -s conftest.err'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; } &&
23272 { ac_try='test -s conftest.$ac_objext'
23273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 ac_header_compiler=yes
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ac_header_compiler=no
23285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23287 echo "${ECHO_T}$ac_header_compiler" >&6
23289 # Is the header present?
23290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23292 cat >conftest.$ac_ext <<_ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h. */
23298 #include <$ac_header>
23300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23303 grep -v '^ *+' conftest.er1 >conftest.err
23305 cat conftest.err >&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); } >/dev/null; then
23308 if test -s conftest.err; then
23309 ac_cpp_err=$ac_c_preproc_warn_flag
23310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23317 if test -z "$ac_cpp_err"; then
23318 ac_header_preproc=yes
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23323 ac_header_preproc=no
23325 rm -f conftest.err conftest.$ac_ext
23326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23327 echo "${ECHO_T}$ac_header_preproc" >&6
23329 # So? What about this header?
23330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23336 ac_header_preproc=yes
23339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23353 ## ------------------------------------------ ##
23354 ## Report this to the AC_PACKAGE_NAME lists. ##
23355 ## ------------------------------------------ ##
23358 sed "s/^/$as_me: WARNING: /" >&2
23361 echo "$as_me:$LINENO: checking for $ac_header" >&5
23362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23364 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 eval "$as_ac_Header=\$ac_header_preproc"
23368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23373 cat >>confdefs.h <<_ACEOF
23374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23382 if test $ac_cv_header_ltdl_h = no ; then
23383 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23384 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23385 { (exit 1); exit 1; }; }
23388 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23389 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23390 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23393 ac_check_lib_save_LIBS=$LIBS
23394 LIBS="-lltdl $LIBS"
23395 cat >conftest.$ac_ext <<_ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23402 /* Override any gcc2 internal prototype to avoid an error. */
23406 /* We use char because int might match the return type of a gcc2
23407 builtin and then its argument prototype would still apply. */
23417 rm -f conftest.$ac_objext conftest$ac_exeext
23418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23419 (eval $ac_link) 2>conftest.er1
23421 grep -v '^ *+' conftest.er1 >conftest.err
23423 cat conftest.err >&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } &&
23426 { ac_try='test -z "$ac_c_werror_flag"
23427 || test ! -s conftest.err'
23428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429 (eval $ac_try) 2>&5
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; } &&
23433 { ac_try='test -s conftest$ac_exeext'
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; }; then
23439 ac_cv_lib_ltdl_lt_dlinit=yes
23441 echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23444 ac_cv_lib_ltdl_lt_dlinit=no
23446 rm -f conftest.err conftest.$ac_objext \
23447 conftest$ac_exeext conftest.$ac_ext
23448 LIBS=$ac_check_lib_save_LIBS
23450 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23451 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23452 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23454 MODULES_LIBS=-lltdl
23456 cat >>confdefs.h <<\_ACEOF
23457 #define HAVE_LIBLTDL 1
23464 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23465 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23466 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23467 { (exit 1); exit 1; }; }
23469 ol_link_modules=yes
23470 WITH_MODULES_ENABLED=yes
23473 for i in $Backends; do
23474 eval "ol_tmp=\$ol_enable_$i"
23475 if test $ol_tmp = mod ; then
23476 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23477 echo "$as_me: WARNING: building static $i backend" >&2;}
23478 eval "ol_enable_$i=yes"
23481 for i in $Overlays; do
23482 eval "ol_tmp=\$ol_enable_$i"
23483 if test $ol_tmp = mod ; then
23484 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23485 echo "$as_me: WARNING: building static $i overlay" >&2;}
23486 eval "ol_enable_$i=yes"
23492 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23493 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23494 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 cat >conftest.$ac_ext <<_ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23506 #include <__ASCII__/generate_error.h>
23510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23513 grep -v '^ *+' conftest.er1 >conftest.err
23515 cat conftest.err >&5
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); } >/dev/null; then
23518 if test -s conftest.err; then
23519 ac_cpp_err=$ac_c_preproc_warn_flag
23520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23527 if test -z "$ac_cpp_err"; then
23528 ol_cv_cpp_ebcdic=yes
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23533 ol_cv_cpp_ebcdic=no
23535 rm -f conftest.err conftest.$ac_ext
23537 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23538 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23539 if test $ol_cv_cpp_ebcdic = yes ; then
23541 cat >>confdefs.h <<\_ACEOF
23542 #define HAVE_EBCDIC 1
23547 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23548 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23549 if test "${ol_cv_header_stdc+set}" = set; then
23550 echo $ECHO_N "(cached) $ECHO_C" >&6
23552 cat >conftest.$ac_ext <<_ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h. */
23558 #include <stdlib.h>
23559 #include <stdarg.h>
23560 #include <string.h>
23563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23566 grep -v '^ *+' conftest.er1 >conftest.err
23568 cat conftest.err >&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } >/dev/null; then
23571 if test -s conftest.err; then
23572 ac_cpp_err=$ac_c_preproc_warn_flag
23573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23580 if test -z "$ac_cpp_err"; then
23581 ol_cv_header_stdc=yes
23583 echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 ol_cv_header_stdc=no
23588 rm -f conftest.err conftest.$ac_ext
23590 if test $ol_cv_header_stdc = yes; then
23591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23592 cat >conftest.$ac_ext <<_ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h. */
23598 #include <string.h>
23601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23602 $EGREP "memchr" >/dev/null 2>&1; then
23605 ol_cv_header_stdc=no
23611 if test $ol_cv_header_stdc = yes; then
23612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23613 cat >conftest.$ac_ext <<_ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23619 #include <stdlib.h>
23622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23623 $EGREP "free" >/dev/null 2>&1; then
23626 ol_cv_header_stdc=no
23632 if test $ol_cv_header_stdc = yes; then
23633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23634 if test "$cross_compiling" = yes; then
23637 cat >conftest.$ac_ext <<_ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23644 #ifndef HAVE_EBCDIC
23645 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23646 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23648 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23649 || ('j' <= (c) && (c) <= 'r') \
23650 || ('s' <= (c) && (c) <= 'z'))
23651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23654 int main () { int i; for (i = 0; i < 256; i++)
23655 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23659 rm -f conftest$ac_exeext
23660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23661 (eval $ac_link) 2>&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23666 (eval $ac_try) 2>&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); }; }; then
23672 echo "$as_me: program exited with status $ac_status" >&5
23673 echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23676 ( exit $ac_status )
23677 ol_cv_header_stdc=no
23679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23683 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23684 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23685 if test $ol_cv_header_stdc = yes; then
23686 cat >>confdefs.h <<\_ACEOF
23687 #define STDC_HEADERS 1
23691 ac_cv_header_stdc=disable
23694 if test $ol_cv_header_stdc != yes; then
23695 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23696 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23704 ac_header_dirent=no
23705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23706 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23707 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23710 echo $ECHO_N "(cached) $ECHO_C" >&6
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 #include <sys/types.h>
23730 rm -f conftest.$ac_objext
23731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23732 (eval $ac_compile) 2>conftest.er1
23734 grep -v '^ *+' conftest.er1 >conftest.err
23736 cat conftest.err >&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } &&
23739 { ac_try='test -z "$ac_c_werror_flag"
23740 || test ! -s conftest.err'
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; } &&
23746 { ac_try='test -s conftest.$ac_objext'
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; }; then
23752 eval "$as_ac_Header=yes"
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23757 eval "$as_ac_Header=no"
23759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23764 cat >>confdefs.h <<_ACEOF
23765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23768 ac_header_dirent=$ac_hdr; break
23772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23773 if test $ac_header_dirent = dirent.h; then
23774 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23776 if test "${ac_cv_search_opendir+set}" = set; then
23777 echo $ECHO_N "(cached) $ECHO_C" >&6
23779 ac_func_search_save_LIBS=$LIBS
23780 ac_cv_search_opendir=no
23781 cat >conftest.$ac_ext <<_ACEOF
23784 cat confdefs.h >>conftest.$ac_ext
23785 cat >>conftest.$ac_ext <<_ACEOF
23786 /* end confdefs.h. */
23788 /* Override any gcc2 internal prototype to avoid an error. */
23792 /* We use char because int might match the return type of a gcc2
23793 builtin and then its argument prototype would still apply. */
23803 rm -f conftest.$ac_objext conftest$ac_exeext
23804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23805 (eval $ac_link) 2>conftest.er1
23807 grep -v '^ *+' conftest.er1 >conftest.err
23809 cat conftest.err >&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); } &&
23812 { ac_try='test -z "$ac_c_werror_flag"
23813 || test ! -s conftest.err'
23814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815 (eval $ac_try) 2>&5
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); }; } &&
23819 { ac_try='test -s conftest$ac_exeext'
23820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821 (eval $ac_try) 2>&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; }; then
23825 ac_cv_search_opendir="none required"
23827 echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23831 rm -f conftest.err conftest.$ac_objext \
23832 conftest$ac_exeext conftest.$ac_ext
23833 if test "$ac_cv_search_opendir" = no; then
23834 for ac_lib in dir; do
23835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23836 cat >conftest.$ac_ext <<_ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h. */
23843 /* Override any gcc2 internal prototype to avoid an error. */
23847 /* We use char because int might match the return type of a gcc2
23848 builtin and then its argument prototype would still apply. */
23858 rm -f conftest.$ac_objext conftest$ac_exeext
23859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23860 (eval $ac_link) 2>conftest.er1
23862 grep -v '^ *+' conftest.er1 >conftest.err
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } &&
23867 { ac_try='test -z "$ac_c_werror_flag"
23868 || test ! -s conftest.err'
23869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23870 (eval $ac_try) 2>&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); }; } &&
23874 { ac_try='test -s conftest$ac_exeext'
23875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876 (eval $ac_try) 2>&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); }; }; then
23880 ac_cv_search_opendir="-l$ac_lib"
23883 echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23887 rm -f conftest.err conftest.$ac_objext \
23888 conftest$ac_exeext conftest.$ac_ext
23891 LIBS=$ac_func_search_save_LIBS
23893 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23894 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23895 if test "$ac_cv_search_opendir" != no; then
23896 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23901 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23903 if test "${ac_cv_search_opendir+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 ac_func_search_save_LIBS=$LIBS
23907 ac_cv_search_opendir=no
23908 cat >conftest.$ac_ext <<_ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23915 /* Override any gcc2 internal prototype to avoid an error. */
23919 /* We use char because int might match the return type of a gcc2
23920 builtin and then its argument prototype would still apply. */
23930 rm -f conftest.$ac_objext conftest$ac_exeext
23931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23932 (eval $ac_link) 2>conftest.er1
23934 grep -v '^ *+' conftest.er1 >conftest.err
23936 cat conftest.err >&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } &&
23939 { ac_try='test -z "$ac_c_werror_flag"
23940 || test ! -s conftest.err'
23941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942 (eval $ac_try) 2>&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; } &&
23946 { ac_try='test -s conftest$ac_exeext'
23947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23948 (eval $ac_try) 2>&5
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); }; }; then
23952 ac_cv_search_opendir="none required"
23954 echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23958 rm -f conftest.err conftest.$ac_objext \
23959 conftest$ac_exeext conftest.$ac_ext
23960 if test "$ac_cv_search_opendir" = no; then
23961 for ac_lib in x; do
23962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23963 cat >conftest.$ac_ext <<_ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23970 /* Override any gcc2 internal prototype to avoid an error. */
23974 /* We use char because int might match the return type of a gcc2
23975 builtin and then its argument prototype would still apply. */
23985 rm -f conftest.$ac_objext conftest$ac_exeext
23986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987 (eval $ac_link) 2>conftest.er1
23989 grep -v '^ *+' conftest.er1 >conftest.err
23991 cat conftest.err >&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } &&
23994 { ac_try='test -z "$ac_c_werror_flag"
23995 || test ! -s conftest.err'
23996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997 (eval $ac_try) 2>&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; } &&
24001 { ac_try='test -s conftest$ac_exeext'
24002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003 (eval $ac_try) 2>&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); }; }; then
24007 ac_cv_search_opendir="-l$ac_lib"
24010 echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24014 rm -f conftest.err conftest.$ac_objext \
24015 conftest$ac_exeext conftest.$ac_ext
24018 LIBS=$ac_func_search_save_LIBS
24020 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24021 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24022 if test "$ac_cv_search_opendir" != no; then
24023 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24029 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24030 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
24031 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24034 cat >conftest.$ac_ext <<_ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24040 #include <sys/types.h>
24041 #include <sys/wait.h>
24042 #ifndef WEXITSTATUS
24043 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
24046 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24054 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24059 rm -f conftest.$ac_objext
24060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24061 (eval $ac_compile) 2>conftest.er1
24063 grep -v '^ *+' conftest.er1 >conftest.err
24065 cat conftest.err >&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } &&
24068 { ac_try='test -z "$ac_c_werror_flag"
24069 || test ! -s conftest.err'
24070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071 (eval $ac_try) 2>&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; } &&
24075 { ac_try='test -s conftest.$ac_objext'
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; }; then
24081 ac_cv_header_sys_wait_h=yes
24083 echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24086 ac_cv_header_sys_wait_h=no
24088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24090 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24091 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
24092 if test $ac_cv_header_sys_wait_h = yes; then
24094 cat >>confdefs.h <<\_ACEOF
24095 #define HAVE_SYS_WAIT_H 1
24100 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
24101 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
24102 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
24103 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 cat >conftest.$ac_ext <<_ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h. */
24111 #include <sys/types.h>
24112 #include <termios.h>
24118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24119 $EGREP "yes" >/dev/null 2>&1; then
24120 ac_cv_sys_tiocgwinsz_in_termios_h=yes
24122 ac_cv_sys_tiocgwinsz_in_termios_h=no
24127 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
24128 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24130 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24131 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24132 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24133 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24134 echo $ECHO_N "(cached) $ECHO_C" >&6
24136 cat >conftest.$ac_ext <<_ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24142 #include <sys/types.h>
24143 #include <sys/ioctl.h>
24149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24150 $EGREP "yes" >/dev/null 2>&1; then
24151 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24153 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24158 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24159 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24161 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24163 cat >>confdefs.h <<\_ACEOF
24164 #define GWINSZ_IN_SYS_IOCTL 1
24268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24270 echo "$as_me:$LINENO: checking for $ac_header" >&5
24271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24273 echo $ECHO_N "(cached) $ECHO_C" >&6
24275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24278 # Is the header compilable?
24279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24281 cat >conftest.$ac_ext <<_ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h. */
24287 $ac_includes_default
24288 #include <$ac_header>
24290 rm -f conftest.$ac_objext
24291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24292 (eval $ac_compile) 2>conftest.er1
24294 grep -v '^ *+' conftest.er1 >conftest.err
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } &&
24299 { ac_try='test -z "$ac_c_werror_flag"
24300 || test ! -s conftest.err'
24301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302 (eval $ac_try) 2>&5
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); }; } &&
24306 { ac_try='test -s conftest.$ac_objext'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
24312 ac_header_compiler=yes
24314 echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24317 ac_header_compiler=no
24319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24321 echo "${ECHO_T}$ac_header_compiler" >&6
24323 # Is the header present?
24324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24326 cat >conftest.$ac_ext <<_ACEOF
24329 cat confdefs.h >>conftest.$ac_ext
24330 cat >>conftest.$ac_ext <<_ACEOF
24331 /* end confdefs.h. */
24332 #include <$ac_header>
24334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24337 grep -v '^ *+' conftest.er1 >conftest.err
24339 cat conftest.err >&5
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); } >/dev/null; then
24342 if test -s conftest.err; then
24343 ac_cpp_err=$ac_c_preproc_warn_flag
24344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24351 if test -z "$ac_cpp_err"; then
24352 ac_header_preproc=yes
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24357 ac_header_preproc=no
24359 rm -f conftest.err conftest.$ac_ext
24360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24361 echo "${ECHO_T}$ac_header_preproc" >&6
24363 # So? What about this header?
24364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24370 ac_header_preproc=yes
24373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24387 ## ------------------------------------------ ##
24388 ## Report this to the AC_PACKAGE_NAME lists. ##
24389 ## ------------------------------------------ ##
24392 sed "s/^/$as_me: WARNING: /" >&2
24395 echo "$as_me:$LINENO: checking for $ac_header" >&5
24396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24398 echo $ECHO_N "(cached) $ECHO_C" >&6
24400 eval "$as_ac_Header=\$ac_header_preproc"
24402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24407 cat >>confdefs.h <<_ACEOF
24408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24417 for ac_header in resolv.h
24419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24420 echo "$as_me:$LINENO: checking for $ac_header" >&5
24421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24423 echo $ECHO_N "(cached) $ECHO_C" >&6
24425 cat >conftest.$ac_ext <<_ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h. */
24431 $ac_includes_default
24432 #include <netinet/in.h>
24435 #include <$ac_header>
24437 rm -f conftest.$ac_objext
24438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24439 (eval $ac_compile) 2>conftest.er1
24441 grep -v '^ *+' conftest.er1 >conftest.err
24443 cat conftest.err >&5
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } &&
24446 { ac_try='test -z "$ac_c_werror_flag"
24447 || test ! -s conftest.err'
24448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24449 (eval $ac_try) 2>&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); }; } &&
24453 { ac_try='test -s conftest.$ac_objext'
24454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24455 (eval $ac_try) 2>&5
24457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458 (exit $ac_status); }; }; then
24459 eval "$as_ac_Header=yes"
24461 echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24464 eval "$as_ac_Header=no"
24466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24471 cat >>confdefs.h <<_ACEOF
24472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24481 for ac_header in sys/ucred.h
24483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24484 echo "$as_me:$LINENO: checking for $ac_header" >&5
24485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24487 echo $ECHO_N "(cached) $ECHO_C" >&6
24489 cat >conftest.$ac_ext <<_ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h. */
24495 $ac_includes_default
24496 #ifdef HAVE_SYS_PARAM_H
24497 #include <sys/param.h>
24501 #include <$ac_header>
24503 rm -f conftest.$ac_objext
24504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24505 (eval $ac_compile) 2>conftest.er1
24507 grep -v '^ *+' conftest.er1 >conftest.err
24509 cat conftest.err >&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } &&
24512 { ac_try='test -z "$ac_c_werror_flag"
24513 || test ! -s conftest.err'
24514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515 (eval $ac_try) 2>&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); }; } &&
24519 { ac_try='test -s conftest.$ac_objext'
24520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24521 (eval $ac_try) 2>&5
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); }; }; then
24525 eval "$as_ac_Header=yes"
24527 echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24530 eval "$as_ac_Header=no"
24532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24537 cat >>confdefs.h <<_ACEOF
24538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24549 for ac_func in sigaction sigset
24551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24552 echo "$as_me:$LINENO: checking for $ac_func" >&5
24553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24554 if eval "test \"\${$as_ac_var+set}\" = set"; then
24555 echo $ECHO_N "(cached) $ECHO_C" >&6
24557 cat >conftest.$ac_ext <<_ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24565 #define $ac_func innocuous_$ac_func
24567 /* System header to define __stub macros and hopefully few prototypes,
24568 which can conflict with char $ac_func (); below.
24569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24570 <limits.h> exists even on freestanding compilers. */
24573 # include <limits.h>
24575 # include <assert.h>
24580 /* Override any gcc2 internal prototype to avoid an error. */
24585 /* We use char because int might match the return type of a gcc2
24586 builtin and then its argument prototype would still apply. */
24588 /* The GNU C library defines this for functions which it implements
24589 to always fail with ENOSYS. Some functions are actually named
24590 something starting with __ and the normal name is an alias. */
24591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24594 char (*f) () = $ac_func;
24603 return f != $ac_func;
24608 rm -f conftest.$ac_objext conftest$ac_exeext
24609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24610 (eval $ac_link) 2>conftest.er1
24612 grep -v '^ *+' conftest.er1 >conftest.err
24614 cat conftest.err >&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } &&
24617 { ac_try='test -z "$ac_c_werror_flag"
24618 || test ! -s conftest.err'
24619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620 (eval $ac_try) 2>&5
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); }; } &&
24624 { ac_try='test -s conftest$ac_exeext'
24625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626 (eval $ac_try) 2>&5
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; }; then
24630 eval "$as_ac_var=yes"
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24635 eval "$as_ac_var=no"
24637 rm -f conftest.err conftest.$ac_objext \
24638 conftest$ac_exeext conftest.$ac_ext
24640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24642 if test `eval echo '${'$as_ac_var'}'` = yes; then
24643 cat >>confdefs.h <<_ACEOF
24644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24651 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24653 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24654 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24655 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24658 ac_check_lib_save_LIBS=$LIBS
24660 cat >conftest.$ac_ext <<_ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h. */
24667 /* Override any gcc2 internal prototype to avoid an error. */
24671 /* We use char because int might match the return type of a gcc2
24672 builtin and then its argument prototype would still apply. */
24682 rm -f conftest.$ac_objext conftest$ac_exeext
24683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24684 (eval $ac_link) 2>conftest.er1
24686 grep -v '^ *+' conftest.er1 >conftest.err
24688 cat conftest.err >&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); } &&
24691 { ac_try='test -z "$ac_c_werror_flag"
24692 || test ! -s conftest.err'
24693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694 (eval $ac_try) 2>&5
24696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); }; } &&
24698 { ac_try='test -s conftest$ac_exeext'
24699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24700 (eval $ac_try) 2>&5
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); }; }; then
24704 ac_cv_lib_V3_sigset=yes
24706 echo "$as_me: failed program was:" >&5
24707 sed 's/^/| /' conftest.$ac_ext >&5
24709 ac_cv_lib_V3_sigset=no
24711 rm -f conftest.err conftest.$ac_objext \
24712 conftest$ac_exeext conftest.$ac_ext
24713 LIBS=$ac_check_lib_save_LIBS
24715 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24716 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24717 if test $ac_cv_lib_V3_sigset = yes; then
24718 cat >>confdefs.h <<_ACEOF
24719 #define HAVE_LIBV3 1
24728 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24729 echo "$as_me:$LINENO: checking for winsock" >&5
24730 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24731 if test "${ol_cv_winsock+set}" = set; then
24732 echo $ECHO_N "(cached) $ECHO_C" >&6
24735 for curlib in ws2_32 wsock32; do
24736 LIBS="$LIBS -l$curlib"
24737 cat >conftest.$ac_ext <<_ACEOF
24740 cat confdefs.h >>conftest.$ac_ext
24741 cat >>conftest.$ac_ext <<_ACEOF
24742 /* end confdefs.h. */
24743 #include <winsock.h>
24750 select(0,NULL,NULL,NULL,NULL);
24752 gethostname(NULL,0);
24758 rm -f conftest.$ac_objext conftest$ac_exeext
24759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24760 (eval $ac_link) 2>conftest.er1
24762 grep -v '^ *+' conftest.er1 >conftest.err
24764 cat conftest.err >&5
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); } &&
24767 { ac_try='test -z "$ac_c_werror_flag"
24768 || test ! -s conftest.err'
24769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770 (eval $ac_try) 2>&5
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); }; } &&
24774 { ac_try='test -s conftest$ac_exeext'
24775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24776 (eval $ac_try) 2>&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24782 echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24787 rm -f conftest.err conftest.$ac_objext \
24788 conftest$ac_exeext conftest.$ac_ext
24790 if test $ol_cv_winsock = yes; then
24792 cat >>confdefs.h <<\_ACEOF
24793 #define HAVE_WINSOCK 1
24796 ac_cv_func_socket=yes
24797 ac_cv_func_select=yes
24798 ac_cv_func_closesocket=yes
24799 ac_cv_func_gethostname=yes
24800 if test $curlib = ws2_32; then
24801 ol_cv_winsock=winsock2
24803 cat >>confdefs.h <<\_ACEOF
24804 #define HAVE_WINSOCK2 1
24813 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24814 echo "${ECHO_T}$ol_cv_winsock" >&6
24818 echo "$as_me:$LINENO: checking for socket" >&5
24819 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24820 if test "${ac_cv_func_socket+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24823 cat >conftest.$ac_ext <<_ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24829 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24831 #define socket innocuous_socket
24833 /* System header to define __stub macros and hopefully few prototypes,
24834 which can conflict with char socket (); below.
24835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24836 <limits.h> exists even on freestanding compilers. */
24839 # include <limits.h>
24841 # include <assert.h>
24846 /* Override any gcc2 internal prototype to avoid an error. */
24851 /* We use char because int might match the return type of a gcc2
24852 builtin and then its argument prototype would still apply. */
24854 /* The GNU C library defines this for functions which it implements
24855 to always fail with ENOSYS. Some functions are actually named
24856 something starting with __ and the normal name is an alias. */
24857 #if defined (__stub_socket) || defined (__stub___socket)
24860 char (*f) () = socket;
24869 return f != socket;
24874 rm -f conftest.$ac_objext conftest$ac_exeext
24875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24876 (eval $ac_link) 2>conftest.er1
24878 grep -v '^ *+' conftest.er1 >conftest.err
24880 cat conftest.err >&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } &&
24883 { ac_try='test -z "$ac_c_werror_flag"
24884 || test ! -s conftest.err'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; } &&
24890 { ac_try='test -s conftest$ac_exeext'
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; }; then
24896 ac_cv_func_socket=yes
24898 echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24901 ac_cv_func_socket=no
24903 rm -f conftest.err conftest.$ac_objext \
24904 conftest$ac_exeext conftest.$ac_ext
24906 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24907 echo "${ECHO_T}$ac_cv_func_socket" >&6
24908 if test $ac_cv_func_socket = yes; then
24913 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24914 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24915 if test "${ac_cv_lib_socket_main+set}" = set; then
24916 echo $ECHO_N "(cached) $ECHO_C" >&6
24918 ac_check_lib_save_LIBS=$LIBS
24919 LIBS="-lsocket $LIBS"
24920 cat >conftest.$ac_ext <<_ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24936 rm -f conftest.$ac_objext conftest$ac_exeext
24937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24938 (eval $ac_link) 2>conftest.er1
24940 grep -v '^ *+' conftest.er1 >conftest.err
24942 cat conftest.err >&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } &&
24945 { ac_try='test -z "$ac_c_werror_flag"
24946 || test ! -s conftest.err'
24947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24948 (eval $ac_try) 2>&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); }; } &&
24952 { ac_try='test -s conftest$ac_exeext'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; }; then
24958 ac_cv_lib_socket_main=yes
24960 echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24963 ac_cv_lib_socket_main=no
24965 rm -f conftest.err conftest.$ac_objext \
24966 conftest$ac_exeext conftest.$ac_ext
24967 LIBS=$ac_check_lib_save_LIBS
24969 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24970 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24971 if test $ac_cv_lib_socket_main = yes; then
24972 cat >>confdefs.h <<_ACEOF
24973 #define HAVE_LIBSOCKET 1
24976 LIBS="-lsocket $LIBS"
24981 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24982 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24983 if test "${ac_cv_lib_net_main+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24986 ac_check_lib_save_LIBS=$LIBS
24988 cat >conftest.$ac_ext <<_ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
25004 rm -f conftest.$ac_objext conftest$ac_exeext
25005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25006 (eval $ac_link) 2>conftest.er1
25008 grep -v '^ *+' conftest.er1 >conftest.err
25010 cat conftest.err >&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } &&
25013 { ac_try='test -z "$ac_c_werror_flag"
25014 || test ! -s conftest.err'
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; } &&
25020 { ac_try='test -s conftest$ac_exeext'
25021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 (eval $ac_try) 2>&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; }; then
25026 ac_cv_lib_net_main=yes
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25031 ac_cv_lib_net_main=no
25033 rm -f conftest.err conftest.$ac_objext \
25034 conftest$ac_exeext conftest.$ac_ext
25035 LIBS=$ac_check_lib_save_LIBS
25037 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
25038 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
25039 if test $ac_cv_lib_net_main = yes; then
25040 cat >>confdefs.h <<_ACEOF
25041 #define HAVE_LIBNET 1
25049 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
25050 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
25051 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25054 ac_check_lib_save_LIBS=$LIBS
25055 LIBS="-lnsl_s $LIBS"
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25072 rm -f conftest.$ac_objext conftest$ac_exeext
25073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25074 (eval $ac_link) 2>conftest.er1
25076 grep -v '^ *+' conftest.er1 >conftest.err
25078 cat conftest.err >&5
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); } &&
25081 { ac_try='test -z "$ac_c_werror_flag"
25082 || test ! -s conftest.err'
25083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084 (eval $ac_try) 2>&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); }; } &&
25088 { ac_try='test -s conftest$ac_exeext'
25089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090 (eval $ac_try) 2>&5
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; }; then
25094 ac_cv_lib_nsl_s_main=yes
25096 echo "$as_me: failed program was:" >&5
25097 sed 's/^/| /' conftest.$ac_ext >&5
25099 ac_cv_lib_nsl_s_main=no
25101 rm -f conftest.err conftest.$ac_objext \
25102 conftest$ac_exeext conftest.$ac_ext
25103 LIBS=$ac_check_lib_save_LIBS
25105 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
25106 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
25107 if test $ac_cv_lib_nsl_s_main = yes; then
25108 cat >>confdefs.h <<_ACEOF
25109 #define HAVE_LIBNSL_S 1
25112 LIBS="-lnsl_s $LIBS"
25117 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
25118 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
25119 if test "${ac_cv_lib_nsl_main+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 ac_check_lib_save_LIBS=$LIBS
25124 cat >conftest.$ac_ext <<_ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h. */
25140 rm -f conftest.$ac_objext conftest$ac_exeext
25141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25142 (eval $ac_link) 2>conftest.er1
25144 grep -v '^ *+' conftest.er1 >conftest.err
25146 cat conftest.err >&5
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); } &&
25149 { ac_try='test -z "$ac_c_werror_flag"
25150 || test ! -s conftest.err'
25151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25152 (eval $ac_try) 2>&5
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); }; } &&
25156 { ac_try='test -s conftest$ac_exeext'
25157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25158 (eval $ac_try) 2>&5
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); }; }; then
25162 ac_cv_lib_nsl_main=yes
25164 echo "$as_me: failed program was:" >&5
25165 sed 's/^/| /' conftest.$ac_ext >&5
25167 ac_cv_lib_nsl_main=no
25169 rm -f conftest.err conftest.$ac_objext \
25170 conftest$ac_exeext conftest.$ac_ext
25171 LIBS=$ac_check_lib_save_LIBS
25173 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25174 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25175 if test $ac_cv_lib_nsl_main = yes; then
25176 cat >>confdefs.h <<_ACEOF
25177 #define HAVE_LIBNSL 1
25185 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25186 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25187 if test "${ac_cv_lib_inet_socket+set}" = set; then
25188 echo $ECHO_N "(cached) $ECHO_C" >&6
25190 ac_check_lib_save_LIBS=$LIBS
25191 LIBS="-linet $LIBS"
25192 cat >conftest.$ac_ext <<_ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25199 /* Override any gcc2 internal prototype to avoid an error. */
25203 /* We use char because int might match the return type of a gcc2
25204 builtin and then its argument prototype would still apply. */
25214 rm -f conftest.$ac_objext conftest$ac_exeext
25215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25216 (eval $ac_link) 2>conftest.er1
25218 grep -v '^ *+' conftest.er1 >conftest.err
25220 cat conftest.err >&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } &&
25223 { ac_try='test -z "$ac_c_werror_flag"
25224 || test ! -s conftest.err'
25225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25226 (eval $ac_try) 2>&5
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); }; } &&
25230 { ac_try='test -s conftest$ac_exeext'
25231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25232 (eval $ac_try) 2>&5
25234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); }; }; then
25236 ac_cv_lib_inet_socket=yes
25238 echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25241 ac_cv_lib_inet_socket=no
25243 rm -f conftest.err conftest.$ac_objext \
25244 conftest$ac_exeext conftest.$ac_ext
25245 LIBS=$ac_check_lib_save_LIBS
25247 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25248 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25249 if test $ac_cv_lib_inet_socket = yes; then
25250 cat >>confdefs.h <<_ACEOF
25251 #define HAVE_LIBINET 1
25254 LIBS="-linet $LIBS"
25259 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25260 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25261 if test "${ac_cv_lib_gen_main+set}" = set; then
25262 echo $ECHO_N "(cached) $ECHO_C" >&6
25264 ac_check_lib_save_LIBS=$LIBS
25266 cat >conftest.$ac_ext <<_ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h. */
25282 rm -f conftest.$ac_objext conftest$ac_exeext
25283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25284 (eval $ac_link) 2>conftest.er1
25286 grep -v '^ *+' conftest.er1 >conftest.err
25288 cat conftest.err >&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } &&
25291 { ac_try='test -z "$ac_c_werror_flag"
25292 || test ! -s conftest.err'
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; } &&
25298 { ac_try='test -s conftest$ac_exeext'
25299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300 (eval $ac_try) 2>&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); }; }; then
25304 ac_cv_lib_gen_main=yes
25306 echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25309 ac_cv_lib_gen_main=no
25311 rm -f conftest.err conftest.$ac_objext \
25312 conftest$ac_exeext conftest.$ac_ext
25313 LIBS=$ac_check_lib_save_LIBS
25315 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25316 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25317 if test $ac_cv_lib_gen_main = yes; then
25318 cat >>confdefs.h <<_ACEOF
25319 #define HAVE_LIBGEN 1
25330 echo "$as_me:$LINENO: checking for select" >&5
25331 echo $ECHO_N "checking for select... $ECHO_C" >&6
25332 if test "${ac_cv_func_select+set}" = set; then
25333 echo $ECHO_N "(cached) $ECHO_C" >&6
25335 cat >conftest.$ac_ext <<_ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h. */
25341 /* Define select to an innocuous variant, in case <limits.h> declares select.
25342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25343 #define select innocuous_select
25345 /* System header to define __stub macros and hopefully few prototypes,
25346 which can conflict with char select (); below.
25347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25348 <limits.h> exists even on freestanding compilers. */
25351 # include <limits.h>
25353 # include <assert.h>
25358 /* Override any gcc2 internal prototype to avoid an error. */
25363 /* We use char because int might match the return type of a gcc2
25364 builtin and then its argument prototype would still apply. */
25366 /* The GNU C library defines this for functions which it implements
25367 to always fail with ENOSYS. Some functions are actually named
25368 something starting with __ and the normal name is an alias. */
25369 #if defined (__stub_select) || defined (__stub___select)
25372 char (*f) () = select;
25381 return f != select;
25386 rm -f conftest.$ac_objext conftest$ac_exeext
25387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25388 (eval $ac_link) 2>conftest.er1
25390 grep -v '^ *+' conftest.er1 >conftest.err
25392 cat conftest.err >&5
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); } &&
25395 { ac_try='test -z "$ac_c_werror_flag"
25396 || test ! -s conftest.err'
25397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398 (eval $ac_try) 2>&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); }; } &&
25402 { ac_try='test -s conftest$ac_exeext'
25403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25404 (eval $ac_try) 2>&5
25406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); }; }; then
25408 ac_cv_func_select=yes
25410 echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25413 ac_cv_func_select=no
25415 rm -f conftest.err conftest.$ac_objext \
25416 conftest$ac_exeext conftest.$ac_ext
25418 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25419 echo "${ECHO_T}$ac_cv_func_select" >&6
25420 if test $ac_cv_func_select = yes; then
25423 { { echo "$as_me:$LINENO: error: select() required." >&5
25424 echo "$as_me: error: select() required." >&2;}
25425 { (exit 1); exit 1; }; }
25429 if test "${ac_cv_header_winsock_h}" != yes; then
25432 for ac_header in sys/select.h sys/socket.h
25434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25436 echo "$as_me:$LINENO: checking for $ac_header" >&5
25437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25439 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25444 # Is the header compilable?
25445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 $ac_includes_default
25454 #include <$ac_header>
25456 rm -f conftest.$ac_objext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25458 (eval $ac_compile) 2>conftest.er1
25460 grep -v '^ *+' conftest.er1 >conftest.err
25462 cat conftest.err >&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); } &&
25465 { ac_try='test -z "$ac_c_werror_flag"
25466 || test ! -s conftest.err'
25467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468 (eval $ac_try) 2>&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); }; } &&
25472 { ac_try='test -s conftest.$ac_objext'
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; }; then
25478 ac_header_compiler=yes
25480 echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25483 ac_header_compiler=no
25485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25487 echo "${ECHO_T}$ac_header_compiler" >&6
25489 # Is the header present?
25490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25492 cat >conftest.$ac_ext <<_ACEOF
25495 cat confdefs.h >>conftest.$ac_ext
25496 cat >>conftest.$ac_ext <<_ACEOF
25497 /* end confdefs.h. */
25498 #include <$ac_header>
25500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25503 grep -v '^ *+' conftest.er1 >conftest.err
25505 cat conftest.err >&5
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); } >/dev/null; then
25508 if test -s conftest.err; then
25509 ac_cpp_err=$ac_c_preproc_warn_flag
25510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25517 if test -z "$ac_cpp_err"; then
25518 ac_header_preproc=yes
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25523 ac_header_preproc=no
25525 rm -f conftest.err conftest.$ac_ext
25526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25527 echo "${ECHO_T}$ac_header_preproc" >&6
25529 # So? What about this header?
25530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25536 ac_header_preproc=yes
25539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25553 ## ------------------------------------------ ##
25554 ## Report this to the AC_PACKAGE_NAME lists. ##
25555 ## ------------------------------------------ ##
25558 sed "s/^/$as_me: WARNING: /" >&2
25561 echo "$as_me:$LINENO: checking for $ac_header" >&5
25562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25566 eval "$as_ac_Header=\$ac_header_preproc"
25568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25573 cat >>confdefs.h <<_ACEOF
25574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25581 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25582 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25583 if test "${ac_cv_func_select_args+set}" = set; then
25584 echo $ECHO_N "(cached) $ECHO_C" >&6
25586 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25587 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25588 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25589 cat >conftest.$ac_ext <<_ACEOF
25592 cat confdefs.h >>conftest.$ac_ext
25593 cat >>conftest.$ac_ext <<_ACEOF
25594 /* end confdefs.h. */
25595 $ac_includes_default
25596 #if HAVE_SYS_SELECT_H
25597 # include <sys/select.h>
25599 #if HAVE_SYS_SOCKET_H
25600 # include <sys/socket.h>
25606 extern int select ($ac_arg1,
25607 $ac_arg234, $ac_arg234, $ac_arg234,
25613 rm -f conftest.$ac_objext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25615 (eval $ac_compile) 2>conftest.er1
25617 grep -v '^ *+' conftest.er1 >conftest.err
25619 cat conftest.err >&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } &&
25622 { ac_try='test -z "$ac_c_werror_flag"
25623 || test ! -s conftest.err'
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; } &&
25629 { ac_try='test -s conftest.$ac_objext'
25630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631 (eval $ac_try) 2>&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; }; then
25635 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25645 # Provide a safe default value.
25646 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25649 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25650 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25651 ac_save_IFS=$IFS; IFS=','
25652 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25656 cat >>confdefs.h <<_ACEOF
25657 #define SELECT_TYPE_ARG1 $1
25661 cat >>confdefs.h <<_ACEOF
25662 #define SELECT_TYPE_ARG234 ($2)
25666 cat >>confdefs.h <<_ACEOF
25667 #define SELECT_TYPE_ARG5 ($3)
25676 for ac_func in poll
25678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25679 echo "$as_me:$LINENO: checking for $ac_func" >&5
25680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25681 if eval "test \"\${$as_ac_var+set}\" = set"; then
25682 echo $ECHO_N "(cached) $ECHO_C" >&6
25684 cat >conftest.$ac_ext <<_ACEOF
25687 cat confdefs.h >>conftest.$ac_ext
25688 cat >>conftest.$ac_ext <<_ACEOF
25689 /* end confdefs.h. */
25690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25692 #define $ac_func innocuous_$ac_func
25694 /* System header to define __stub macros and hopefully few prototypes,
25695 which can conflict with char $ac_func (); below.
25696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25697 <limits.h> exists even on freestanding compilers. */
25700 # include <limits.h>
25702 # include <assert.h>
25707 /* Override any gcc2 internal prototype to avoid an error. */
25712 /* We use char because int might match the return type of a gcc2
25713 builtin and then its argument prototype would still apply. */
25715 /* The GNU C library defines this for functions which it implements
25716 to always fail with ENOSYS. Some functions are actually named
25717 something starting with __ and the normal name is an alias. */
25718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25721 char (*f) () = $ac_func;
25730 return f != $ac_func;
25735 rm -f conftest.$ac_objext conftest$ac_exeext
25736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25737 (eval $ac_link) 2>conftest.er1
25739 grep -v '^ *+' conftest.er1 >conftest.err
25741 cat conftest.err >&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } &&
25744 { ac_try='test -z "$ac_c_werror_flag"
25745 || test ! -s conftest.err'
25746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747 (eval $ac_try) 2>&5
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); }; } &&
25751 { ac_try='test -s conftest$ac_exeext'
25752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753 (eval $ac_try) 2>&5
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; }; then
25757 eval "$as_ac_var=yes"
25759 echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25762 eval "$as_ac_var=no"
25764 rm -f conftest.err conftest.$ac_objext \
25765 conftest$ac_exeext conftest.$ac_ext
25767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25769 if test `eval echo '${'$as_ac_var'}'` = yes; then
25770 cat >>confdefs.h <<_ACEOF
25771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25778 for ac_header in poll.h
25780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25782 echo "$as_me:$LINENO: checking for $ac_header" >&5
25783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25785 echo $ECHO_N "(cached) $ECHO_C" >&6
25787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25790 # Is the header compilable?
25791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25793 cat >conftest.$ac_ext <<_ACEOF
25796 cat confdefs.h >>conftest.$ac_ext
25797 cat >>conftest.$ac_ext <<_ACEOF
25798 /* end confdefs.h. */
25799 $ac_includes_default
25800 #include <$ac_header>
25802 rm -f conftest.$ac_objext
25803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25804 (eval $ac_compile) 2>conftest.er1
25806 grep -v '^ *+' conftest.er1 >conftest.err
25808 cat conftest.err >&5
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); } &&
25811 { ac_try='test -z "$ac_c_werror_flag"
25812 || test ! -s conftest.err'
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; } &&
25818 { ac_try='test -s conftest.$ac_objext'
25819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820 (eval $ac_try) 2>&5
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); }; }; then
25824 ac_header_compiler=yes
25826 echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25829 ac_header_compiler=no
25831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25833 echo "${ECHO_T}$ac_header_compiler" >&6
25835 # Is the header present?
25836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25838 cat >conftest.$ac_ext <<_ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h. */
25844 #include <$ac_header>
25846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25849 grep -v '^ *+' conftest.er1 >conftest.err
25851 cat conftest.err >&5
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); } >/dev/null; then
25854 if test -s conftest.err; then
25855 ac_cpp_err=$ac_c_preproc_warn_flag
25856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25863 if test -z "$ac_cpp_err"; then
25864 ac_header_preproc=yes
25866 echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25869 ac_header_preproc=no
25871 rm -f conftest.err conftest.$ac_ext
25872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25873 echo "${ECHO_T}$ac_header_preproc" >&6
25875 # So? What about this header?
25876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25882 ac_header_preproc=yes
25885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25899 ## ------------------------------------------ ##
25900 ## Report this to the AC_PACKAGE_NAME lists. ##
25901 ## ------------------------------------------ ##
25904 sed "s/^/$as_me: WARNING: /" >&2
25907 echo "$as_me:$LINENO: checking for $ac_header" >&5
25908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25910 echo $ECHO_N "(cached) $ECHO_C" >&6
25912 eval "$as_ac_Header=\$ac_header_preproc"
25914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25919 cat >>confdefs.h <<_ACEOF
25920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25929 for ac_header in sys/epoll.h
25931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25933 echo "$as_me:$LINENO: checking for $ac_header" >&5
25934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25936 echo $ECHO_N "(cached) $ECHO_C" >&6
25938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25941 # Is the header compilable?
25942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25944 cat >conftest.$ac_ext <<_ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h. */
25950 $ac_includes_default
25951 #include <$ac_header>
25953 rm -f conftest.$ac_objext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25955 (eval $ac_compile) 2>conftest.er1
25957 grep -v '^ *+' conftest.er1 >conftest.err
25959 cat conftest.err >&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); } &&
25962 { ac_try='test -z "$ac_c_werror_flag"
25963 || test ! -s conftest.err'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; } &&
25969 { ac_try='test -s conftest.$ac_objext'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 ac_header_compiler=yes
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 ac_header_compiler=no
25982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25984 echo "${ECHO_T}$ac_header_compiler" >&6
25986 # Is the header present?
25987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25989 cat >conftest.$ac_ext <<_ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h. */
25995 #include <$ac_header>
25997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26000 grep -v '^ *+' conftest.er1 >conftest.err
26002 cat conftest.err >&5
26003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); } >/dev/null; then
26005 if test -s conftest.err; then
26006 ac_cpp_err=$ac_c_preproc_warn_flag
26007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26014 if test -z "$ac_cpp_err"; then
26015 ac_header_preproc=yes
26017 echo "$as_me: failed program was:" >&5
26018 sed 's/^/| /' conftest.$ac_ext >&5
26020 ac_header_preproc=no
26022 rm -f conftest.err conftest.$ac_ext
26023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26024 echo "${ECHO_T}$ac_header_preproc" >&6
26026 # So? What about this header?
26027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26033 ac_header_preproc=yes
26036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26050 ## ------------------------------------------ ##
26051 ## Report this to the AC_PACKAGE_NAME lists. ##
26052 ## ------------------------------------------ ##
26055 sed "s/^/$as_me: WARNING: /" >&2
26058 echo "$as_me:$LINENO: checking for $ac_header" >&5
26059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26063 eval "$as_ac_Header=\$ac_header_preproc"
26065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26070 cat >>confdefs.h <<_ACEOF
26071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26078 if test "${ac_cv_header_sys_epoll_h}" = yes; then
26079 echo "$as_me:$LINENO: checking for epoll system call" >&5
26080 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
26081 if test "$cross_compiling" = yes; then
26082 echo "$as_me:$LINENO: result: no" >&5
26083 echo "${ECHO_T}no" >&6
26085 cat >conftest.$ac_ext <<_ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h. */
26091 int main(int argc, char *argv)
26093 int epfd = epoll_create(256);
26094 exit (epfd == -1 ? 1 : 0);
26097 rm -f conftest$ac_exeext
26098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26099 (eval $ac_link) 2>&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104 (eval $ac_try) 2>&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; }; then
26108 echo "$as_me:$LINENO: result: yes" >&5
26109 echo "${ECHO_T}yes" >&6
26111 cat >>confdefs.h <<\_ACEOF
26112 #define HAVE_EPOLL 1
26116 echo "$as_me: program exited with status $ac_status" >&5
26117 echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26120 ( exit $ac_status )
26121 echo "$as_me:$LINENO: result: no" >&5
26122 echo "${ECHO_T}no" >&6
26124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26129 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26130 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26131 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26132 echo $ECHO_N "(cached) $ECHO_C" >&6
26135 cat >conftest.$ac_ext <<_ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26143 #include <sys/types.h>
26146 #include <stdlib.h>
26151 char *c = (char *) *sys_errlist
26156 rm -f conftest.$ac_objext
26157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26158 (eval $ac_compile) 2>conftest.er1
26160 grep -v '^ *+' conftest.er1 >conftest.err
26162 cat conftest.err >&5
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); } &&
26165 { ac_try='test -z "$ac_c_werror_flag"
26166 || test ! -s conftest.err'
26167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; } &&
26172 { ac_try='test -s conftest.$ac_objext'
26173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; }; then
26178 ol_cv_dcl_sys_errlist=yes
26179 ol_cv_have_sys_errlist=yes
26181 echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.$ac_ext >&5
26184 ol_cv_dcl_sys_errlist=no
26186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26188 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26189 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26191 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26192 if test $ol_cv_dcl_sys_errlist = no ; then
26194 cat >>confdefs.h <<\_ACEOF
26195 #define DECL_SYS_ERRLIST 1
26199 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26200 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26201 if test "${ol_cv_have_sys_errlist+set}" = set; then
26202 echo $ECHO_N "(cached) $ECHO_C" >&6
26205 cat >conftest.$ac_ext <<_ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26215 char *c = (char *) *sys_errlist
26220 rm -f conftest.$ac_objext conftest$ac_exeext
26221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26222 (eval $ac_link) 2>conftest.er1
26224 grep -v '^ *+' conftest.er1 >conftest.err
26226 cat conftest.err >&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } &&
26229 { ac_try='test -z "$ac_c_werror_flag"
26230 || test ! -s conftest.err'
26231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232 (eval $ac_try) 2>&5
26234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); }; } &&
26236 { ac_try='test -s conftest$ac_exeext'
26237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26238 (eval $ac_try) 2>&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); }; }; then
26242 ol_cv_have_sys_errlist=yes
26244 echo "$as_me: failed program was:" >&5
26245 sed 's/^/| /' conftest.$ac_ext >&5
26247 ol_cv_have_sys_errlist=no
26249 rm -f conftest.err conftest.$ac_objext \
26250 conftest$ac_exeext conftest.$ac_ext
26252 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26253 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26255 if test $ol_cv_have_sys_errlist = yes ; then
26257 cat >>confdefs.h <<\_ACEOF
26258 #define HAVE_SYS_ERRLIST 1
26264 for ac_func in strerror strerror_r
26266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26267 echo "$as_me:$LINENO: checking for $ac_func" >&5
26268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26269 if eval "test \"\${$as_ac_var+set}\" = set"; then
26270 echo $ECHO_N "(cached) $ECHO_C" >&6
26272 cat >conftest.$ac_ext <<_ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26280 #define $ac_func innocuous_$ac_func
26282 /* System header to define __stub macros and hopefully few prototypes,
26283 which can conflict with char $ac_func (); below.
26284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26285 <limits.h> exists even on freestanding compilers. */
26288 # include <limits.h>
26290 # include <assert.h>
26295 /* Override any gcc2 internal prototype to avoid an error. */
26300 /* We use char because int might match the return type of a gcc2
26301 builtin and then its argument prototype would still apply. */
26303 /* The GNU C library defines this for functions which it implements
26304 to always fail with ENOSYS. Some functions are actually named
26305 something starting with __ and the normal name is an alias. */
26306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26309 char (*f) () = $ac_func;
26318 return f != $ac_func;
26323 rm -f conftest.$ac_objext conftest$ac_exeext
26324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26325 (eval $ac_link) 2>conftest.er1
26327 grep -v '^ *+' conftest.er1 >conftest.err
26329 cat conftest.err >&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } &&
26332 { ac_try='test -z "$ac_c_werror_flag"
26333 || test ! -s conftest.err'
26334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335 (eval $ac_try) 2>&5
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); }; } &&
26339 { ac_try='test -s conftest$ac_exeext'
26340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341 (eval $ac_try) 2>&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); }; }; then
26345 eval "$as_ac_var=yes"
26347 echo "$as_me: failed program was:" >&5
26348 sed 's/^/| /' conftest.$ac_ext >&5
26350 eval "$as_ac_var=no"
26352 rm -f conftest.err conftest.$ac_objext \
26353 conftest$ac_exeext conftest.$ac_ext
26355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26357 if test `eval echo '${'$as_ac_var'}'` = yes; then
26358 cat >>confdefs.h <<_ACEOF
26359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26365 ol_cv_func_strerror_r=no
26366 if test "${ac_cv_func_strerror_r}" = yes ; then
26367 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26368 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26369 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26370 echo $ECHO_N "(cached) $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 #include <string.h>
26381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26382 $EGREP "strerror_r" >/dev/null 2>&1; then
26383 ol_decl_strerror_r=yes
26385 ol_decl_strerror_r=no
26389 if test $ol_decl_strerror_r = yes ; then
26390 cat >conftest.$ac_ext <<_ACEOF
26393 cat confdefs.h >>conftest.$ac_ext
26394 cat >>conftest.$ac_ext <<_ACEOF
26395 /* end confdefs.h. */
26396 #include <string.h>
26400 /* from autoconf 2.59 */
26402 char x = *strerror_r (0, buf, sizeof buf);
26403 char *p = strerror_r (0, buf, sizeof buf);
26409 rm -f conftest.$ac_objext
26410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26411 (eval $ac_compile) 2>conftest.er1
26413 grep -v '^ *+' conftest.er1 >conftest.err
26415 cat conftest.err >&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); } &&
26418 { ac_try='test -z "$ac_c_werror_flag"
26419 || test ! -s conftest.err'
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; } &&
26425 { ac_try='test -s conftest.$ac_objext'
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; }; then
26431 ol_cv_nonposix_strerror_r=yes
26433 echo "$as_me: failed program was:" >&5
26434 sed 's/^/| /' conftest.$ac_ext >&5
26436 ol_cv_nonposix_strerror_r=no
26438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26440 if test "$cross_compiling" = yes; then
26441 ol_cv_nonposix_strerror=no
26443 cat >conftest.$ac_ext <<_ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h. */
26453 strerror_r( 1, buf, sizeof buf );
26454 exit( buf[0] == 0 );
26458 rm -f conftest$ac_exeext
26459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26460 (eval $ac_link) 2>&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465 (eval $ac_try) 2>&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); }; }; then
26469 ol_cv_nonposix_strerror_r=yes
26471 echo "$as_me: program exited with status $ac_status" >&5
26472 echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26475 ( exit $ac_status )
26476 ol_cv_nonposix_strerror=no
26478 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26483 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26484 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26485 if test $ol_cv_nonposix_strerror_r = yes ; then
26487 cat >>confdefs.h <<\_ACEOF
26488 #define HAVE_NONPOSIX_STRERROR_R 1
26493 elif test "${ac_cv_func_strerror}" = no ; then
26494 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26495 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26496 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26497 echo $ECHO_N "(cached) $ECHO_C" >&6
26500 cat >conftest.$ac_ext <<_ACEOF
26503 cat confdefs.h >>conftest.$ac_ext
26504 cat >>conftest.$ac_ext <<_ACEOF
26505 /* end confdefs.h. */
26508 #include <sys/types.h>
26511 #include <stdlib.h>
26516 char *c = (char *) *sys_errlist
26521 rm -f conftest.$ac_objext
26522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26523 (eval $ac_compile) 2>conftest.er1
26525 grep -v '^ *+' conftest.er1 >conftest.err
26527 cat conftest.err >&5
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); } &&
26530 { ac_try='test -z "$ac_c_werror_flag"
26531 || test ! -s conftest.err'
26532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533 (eval $ac_try) 2>&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); }; } &&
26537 { ac_try='test -s conftest.$ac_objext'
26538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539 (eval $ac_try) 2>&5
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); }; }; then
26543 ol_cv_dcl_sys_errlist=yes
26544 ol_cv_have_sys_errlist=yes
26546 echo "$as_me: failed program was:" >&5
26547 sed 's/^/| /' conftest.$ac_ext >&5
26549 ol_cv_dcl_sys_errlist=no
26551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26553 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26554 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26556 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26557 if test $ol_cv_dcl_sys_errlist = no ; then
26559 cat >>confdefs.h <<\_ACEOF
26560 #define DECL_SYS_ERRLIST 1
26564 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26565 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26566 if test "${ol_cv_have_sys_errlist+set}" = set; then
26567 echo $ECHO_N "(cached) $ECHO_C" >&6
26570 cat >conftest.$ac_ext <<_ACEOF
26573 cat confdefs.h >>conftest.$ac_ext
26574 cat >>conftest.$ac_ext <<_ACEOF
26575 /* end confdefs.h. */
26580 char *c = (char *) *sys_errlist
26585 rm -f conftest.$ac_objext conftest$ac_exeext
26586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26587 (eval $ac_link) 2>conftest.er1
26589 grep -v '^ *+' conftest.er1 >conftest.err
26591 cat conftest.err >&5
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); } &&
26594 { ac_try='test -z "$ac_c_werror_flag"
26595 || test ! -s conftest.err'
26596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26597 (eval $ac_try) 2>&5
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); }; } &&
26601 { ac_try='test -s conftest$ac_exeext'
26602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603 (eval $ac_try) 2>&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); }; }; then
26607 ol_cv_have_sys_errlist=yes
26609 echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26612 ol_cv_have_sys_errlist=no
26614 rm -f conftest.err conftest.$ac_objext \
26615 conftest$ac_exeext conftest.$ac_ext
26617 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26618 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26620 if test $ol_cv_have_sys_errlist = yes ; then
26622 cat >>confdefs.h <<\_ACEOF
26623 #define HAVE_SYS_ERRLIST 1
26632 for ac_header in regex.h
26634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26636 echo "$as_me:$LINENO: checking for $ac_header" >&5
26637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26639 echo $ECHO_N "(cached) $ECHO_C" >&6
26641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26644 # Is the header compilable?
26645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26647 cat >conftest.$ac_ext <<_ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h. */
26653 $ac_includes_default
26654 #include <$ac_header>
26656 rm -f conftest.$ac_objext
26657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26658 (eval $ac_compile) 2>conftest.er1
26660 grep -v '^ *+' conftest.er1 >conftest.err
26662 cat conftest.err >&5
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); } &&
26665 { ac_try='test -z "$ac_c_werror_flag"
26666 || test ! -s conftest.err'
26667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; } &&
26672 { ac_try='test -s conftest.$ac_objext'
26673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674 (eval $ac_try) 2>&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); }; }; then
26678 ac_header_compiler=yes
26680 echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26683 ac_header_compiler=no
26685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26687 echo "${ECHO_T}$ac_header_compiler" >&6
26689 # Is the header present?
26690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26692 cat >conftest.$ac_ext <<_ACEOF
26695 cat confdefs.h >>conftest.$ac_ext
26696 cat >>conftest.$ac_ext <<_ACEOF
26697 /* end confdefs.h. */
26698 #include <$ac_header>
26700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26703 grep -v '^ *+' conftest.er1 >conftest.err
26705 cat conftest.err >&5
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); } >/dev/null; then
26708 if test -s conftest.err; then
26709 ac_cpp_err=$ac_c_preproc_warn_flag
26710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26717 if test -z "$ac_cpp_err"; then
26718 ac_header_preproc=yes
26720 echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26723 ac_header_preproc=no
26725 rm -f conftest.err conftest.$ac_ext
26726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26727 echo "${ECHO_T}$ac_header_preproc" >&6
26729 # So? What about this header?
26730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26736 ac_header_preproc=yes
26739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26753 ## ------------------------------------------ ##
26754 ## Report this to the AC_PACKAGE_NAME lists. ##
26755 ## ------------------------------------------ ##
26758 sed "s/^/$as_me: WARNING: /" >&2
26761 echo "$as_me:$LINENO: checking for $ac_header" >&5
26762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26764 echo $ECHO_N "(cached) $ECHO_C" >&6
26766 eval "$as_ac_Header=\$ac_header_preproc"
26768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26773 cat >>confdefs.h <<_ACEOF
26774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26781 if test "$ac_cv_header_regex_h" != yes ; then
26782 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26783 echo "$as_me: error: POSIX regex.h required." >&2;}
26784 { (exit 1); exit 1; }; }
26786 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26787 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26788 if test "${ac_cv_search_regfree+set}" = set; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26791 ac_func_search_save_LIBS=$LIBS
26792 ac_cv_search_regfree=no
26793 cat >conftest.$ac_ext <<_ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h. */
26800 /* Override any gcc2 internal prototype to avoid an error. */
26804 /* We use char because int might match the return type of a gcc2
26805 builtin and then its argument prototype would still apply. */
26815 rm -f conftest.$ac_objext conftest$ac_exeext
26816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26817 (eval $ac_link) 2>conftest.er1
26819 grep -v '^ *+' conftest.er1 >conftest.err
26821 cat conftest.err >&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } &&
26824 { ac_try='test -z "$ac_c_werror_flag"
26825 || test ! -s conftest.err'
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; } &&
26831 { ac_try='test -s conftest$ac_exeext'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 ac_cv_search_regfree="none required"
26839 echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26843 rm -f conftest.err conftest.$ac_objext \
26844 conftest$ac_exeext conftest.$ac_ext
26845 if test "$ac_cv_search_regfree" = no; then
26846 for ac_lib in regex gnuregex; do
26847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26848 cat >conftest.$ac_ext <<_ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h. */
26855 /* Override any gcc2 internal prototype to avoid an error. */
26859 /* We use char because int might match the return type of a gcc2
26860 builtin and then its argument prototype would still apply. */
26870 rm -f conftest.$ac_objext conftest$ac_exeext
26871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26872 (eval $ac_link) 2>conftest.er1
26874 grep -v '^ *+' conftest.er1 >conftest.err
26876 cat conftest.err >&5
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); } &&
26879 { ac_try='test -z "$ac_c_werror_flag"
26880 || test ! -s conftest.err'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; } &&
26886 { ac_try='test -s conftest$ac_exeext'
26887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888 (eval $ac_try) 2>&5
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_cv_search_regfree="-l$ac_lib"
26895 echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26899 rm -f conftest.err conftest.$ac_objext \
26900 conftest$ac_exeext conftest.$ac_ext
26903 LIBS=$ac_func_search_save_LIBS
26905 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26906 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26907 if test "$ac_cv_search_regfree" != no; then
26908 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26911 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26912 echo "$as_me: error: POSIX regex required." >&2;}
26913 { (exit 1); exit 1; }; }
26918 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26919 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26920 if test "${ol_cv_c_posix_regex+set}" = set; then
26921 echo $ECHO_N "(cached) $ECHO_C" >&6
26924 if test "$cross_compiling" = yes; then
26925 ol_cv_c_posix_regex=cross
26927 cat >conftest.$ac_ext <<_ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h. */
26934 #include <sys/types.h>
26936 static char *pattern, *string;
26944 if(regcomp(&re, pattern, 0)) {
26948 string = "ALL MATCH";
26950 rc = regexec(&re, string, 0, (void*)0, 0);
26957 rm -f conftest$ac_exeext
26958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26959 (eval $ac_link) 2>&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964 (eval $ac_try) 2>&5
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967 (exit $ac_status); }; }; then
26968 ol_cv_c_posix_regex=yes
26970 echo "$as_me: program exited with status $ac_status" >&5
26971 echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26974 ( exit $ac_status )
26975 ol_cv_c_posix_regex=no
26977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26980 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26981 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26983 if test "$ol_cv_c_posix_regex" = no ; then
26984 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26985 echo "$as_me: error: broken POSIX regex!" >&2;}
26986 { (exit 1); exit 1; }; }
26992 for ac_header in sys/uuid.h
26994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26996 echo "$as_me:$LINENO: checking for $ac_header" >&5
26997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26999 echo $ECHO_N "(cached) $ECHO_C" >&6
27001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27004 # Is the header compilable?
27005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27007 cat >conftest.$ac_ext <<_ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h. */
27013 $ac_includes_default
27014 #include <$ac_header>
27016 rm -f conftest.$ac_objext
27017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27018 (eval $ac_compile) 2>conftest.er1
27020 grep -v '^ *+' conftest.er1 >conftest.err
27022 cat conftest.err >&5
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); } &&
27025 { ac_try='test -z "$ac_c_werror_flag"
27026 || test ! -s conftest.err'
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest.$ac_objext'
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; }; then
27038 ac_header_compiler=yes
27040 echo "$as_me: failed program was:" >&5
27041 sed 's/^/| /' conftest.$ac_ext >&5
27043 ac_header_compiler=no
27045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27047 echo "${ECHO_T}$ac_header_compiler" >&6
27049 # Is the header present?
27050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27052 cat >conftest.$ac_ext <<_ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h. */
27058 #include <$ac_header>
27060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27063 grep -v '^ *+' conftest.er1 >conftest.err
27065 cat conftest.err >&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } >/dev/null; then
27068 if test -s conftest.err; then
27069 ac_cpp_err=$ac_c_preproc_warn_flag
27070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27077 if test -z "$ac_cpp_err"; then
27078 ac_header_preproc=yes
27080 echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27083 ac_header_preproc=no
27085 rm -f conftest.err conftest.$ac_ext
27086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27087 echo "${ECHO_T}$ac_header_preproc" >&6
27089 # So? What about this header?
27090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27096 ac_header_preproc=yes
27099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27113 ## ------------------------------------------ ##
27114 ## Report this to the AC_PACKAGE_NAME lists. ##
27115 ## ------------------------------------------ ##
27118 sed "s/^/$as_me: WARNING: /" >&2
27121 echo "$as_me:$LINENO: checking for $ac_header" >&5
27122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27124 echo $ECHO_N "(cached) $ECHO_C" >&6
27126 eval "$as_ac_Header=\$ac_header_preproc"
27128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27133 cat >>confdefs.h <<_ACEOF
27134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27141 if test $ac_cv_header_sys_uuid_h = yes ; then
27143 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27144 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27145 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27146 echo $ECHO_N "(cached) $ECHO_C" >&6
27148 ac_func_search_save_LIBS=$LIBS
27149 ac_cv_search_uuid_to_str=no
27150 cat >conftest.$ac_ext <<_ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h. */
27157 /* Override any gcc2 internal prototype to avoid an error. */
27161 /* We use char because int might match the return type of a gcc2
27162 builtin and then its argument prototype would still apply. */
27163 char uuid_to_str ();
27172 rm -f conftest.$ac_objext conftest$ac_exeext
27173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27174 (eval $ac_link) 2>conftest.er1
27176 grep -v '^ *+' conftest.er1 >conftest.err
27178 cat conftest.err >&5
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); } &&
27181 { ac_try='test -z "$ac_c_werror_flag"
27182 || test ! -s conftest.err'
27183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184 (eval $ac_try) 2>&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); }; } &&
27188 { ac_try='test -s conftest$ac_exeext'
27189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190 (eval $ac_try) 2>&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); }; }; then
27194 ac_cv_search_uuid_to_str="none required"
27196 echo "$as_me: failed program was:" >&5
27197 sed 's/^/| /' conftest.$ac_ext >&5
27200 rm -f conftest.err conftest.$ac_objext \
27201 conftest$ac_exeext conftest.$ac_ext
27202 if test "$ac_cv_search_uuid_to_str" = no; then
27203 for ac_lib in uuid; do
27204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27205 cat >conftest.$ac_ext <<_ACEOF
27208 cat confdefs.h >>conftest.$ac_ext
27209 cat >>conftest.$ac_ext <<_ACEOF
27210 /* end confdefs.h. */
27212 /* Override any gcc2 internal prototype to avoid an error. */
27216 /* We use char because int might match the return type of a gcc2
27217 builtin and then its argument prototype would still apply. */
27218 char uuid_to_str ();
27227 rm -f conftest.$ac_objext conftest$ac_exeext
27228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27229 (eval $ac_link) 2>conftest.er1
27231 grep -v '^ *+' conftest.er1 >conftest.err
27233 cat conftest.err >&5
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); } &&
27236 { ac_try='test -z "$ac_c_werror_flag"
27237 || test ! -s conftest.err'
27238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239 (eval $ac_try) 2>&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; } &&
27243 { ac_try='test -s conftest$ac_exeext'
27244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245 (eval $ac_try) 2>&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); }; }; then
27249 ac_cv_search_uuid_to_str="-l$ac_lib"
27252 echo "$as_me: failed program was:" >&5
27253 sed 's/^/| /' conftest.$ac_ext >&5
27256 rm -f conftest.err conftest.$ac_objext \
27257 conftest$ac_exeext conftest.$ac_ext
27260 LIBS=$ac_func_search_save_LIBS
27262 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27263 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27264 if test "$ac_cv_search_uuid_to_str" != no; then
27265 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27273 if test have_uuid = yes ; then
27275 cat >>confdefs.h <<\_ACEOF
27276 #define HAVE_UUID_TO_STR 1
27280 test "$ac_cv_search_uuid_to_str" = "none required" || \
27281 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27285 if test $have_uuid = no ; then
27286 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27287 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27289 LIBS="$LIBS -lrpcrt4"
27290 cat >conftest.$ac_ext <<_ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h. */
27297 int __stdcall UuidCreate(void *);
27298 int __stdcall UuidToStringA(void *,void **);
27305 UuidToStringA(0,0);
27311 rm -f conftest.$ac_objext conftest$ac_exeext
27312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27313 (eval $ac_link) 2>conftest.er1
27315 grep -v '^ *+' conftest.er1 >conftest.err
27317 cat conftest.err >&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); } &&
27320 { ac_try='test -z "$ac_c_werror_flag"
27321 || test ! -s conftest.err'
27322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323 (eval $ac_try) 2>&5
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; } &&
27327 { ac_try='test -s conftest$ac_exeext'
27328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329 (eval $ac_try) 2>&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; }; then
27335 echo "$as_me: failed program was:" >&5
27336 sed 's/^/| /' conftest.$ac_ext >&5
27340 rm -f conftest.err conftest.$ac_objext \
27341 conftest$ac_exeext conftest.$ac_ext
27342 if test $need_rpcrt = yes; then
27343 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27346 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27347 echo "${ECHO_T}$need_rpcrt" >&6
27350 ol_cv_lib_resolver=no
27351 if test $ol_cv_lib_resolver = no ; then
27352 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27353 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27354 if test "${ol_cv_resolver_none+set}" = set; then
27355 echo $ECHO_N "(cached) $ECHO_C" >&6
27360 LIBS="$ol_RESOLVER_LIB $LIBS"
27362 cat >conftest.$ac_ext <<_ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h. */
27369 #ifdef HAVE_SYS_TYPES_H
27370 # include <sys/types.h>
27372 #include <netinet/in.h>
27373 #ifdef HAVE_ARPA_NAMESER_H
27374 # include <arpa/nameser.h>
27376 #ifdef HAVE_RESOLV_H
27377 # include <resolv.h>
27385 char *request = NULL;
27386 unsigned char reply[64*1024];
27387 unsigned char host[64*1024];
27391 /* Bind 8/9 interface */
27392 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27394 /* Bind 4 interface */
27398 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27402 /* Bind 8/9 interface */
27404 #elif defined(HFIXEDSZ)
27405 /* Bind 4 interface w/ HFIXEDSZ */
27408 /* Bind 4 interface w/o HFIXEDSZ */
27409 p += sizeof(HEADER);
27411 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419 (eval $ac_link) 2>conftest.er1
27421 grep -v '^ *+' conftest.er1 >conftest.err
27423 cat conftest.err >&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } &&
27426 { ac_try='test -z "$ac_c_werror_flag"
27427 || test ! -s conftest.err'
27428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429 (eval $ac_try) 2>&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); }; } &&
27433 { ac_try='test -s conftest$ac_exeext'
27434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435 (eval $ac_try) 2>&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; }; then
27439 ol_cv_resolver_none=yes
27441 echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27444 ol_cv_resolver_none=no
27446 rm -f conftest.err conftest.$ac_objext \
27447 conftest$ac_exeext conftest.$ac_ext
27452 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27453 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27455 if test $ol_cv_resolver_none = yes ; then
27456 ol_cv_lib_resolver=yes
27460 if test $ol_cv_lib_resolver = no ; then
27461 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27462 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27463 if test "${ol_cv_resolver_resolv+set}" = set; then
27464 echo $ECHO_N "(cached) $ECHO_C" >&6
27467 ol_RESOLVER_LIB=-lresolv
27469 LIBS="$ol_RESOLVER_LIB $LIBS"
27471 cat >conftest.$ac_ext <<_ACEOF
27474 cat confdefs.h >>conftest.$ac_ext
27475 cat >>conftest.$ac_ext <<_ACEOF
27476 /* end confdefs.h. */
27478 #ifdef HAVE_SYS_TYPES_H
27479 # include <sys/types.h>
27481 #include <netinet/in.h>
27482 #ifdef HAVE_ARPA_NAMESER_H
27483 # include <arpa/nameser.h>
27485 #ifdef HAVE_RESOLV_H
27486 # include <resolv.h>
27494 char *request = NULL;
27495 unsigned char reply[64*1024];
27496 unsigned char host[64*1024];
27500 /* Bind 8/9 interface */
27501 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27503 /* Bind 4 interface */
27507 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27511 /* Bind 8/9 interface */
27513 #elif defined(HFIXEDSZ)
27514 /* Bind 4 interface w/ HFIXEDSZ */
27517 /* Bind 4 interface w/o HFIXEDSZ */
27518 p += sizeof(HEADER);
27520 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27526 rm -f conftest.$ac_objext conftest$ac_exeext
27527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27528 (eval $ac_link) 2>conftest.er1
27530 grep -v '^ *+' conftest.er1 >conftest.err
27532 cat conftest.err >&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); } &&
27535 { ac_try='test -z "$ac_c_werror_flag"
27536 || test ! -s conftest.err'
27537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27538 (eval $ac_try) 2>&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); }; } &&
27542 { ac_try='test -s conftest$ac_exeext'
27543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544 (eval $ac_try) 2>&5
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); }; }; then
27548 ol_cv_resolver_resolv=yes
27550 echo "$as_me: failed program was:" >&5
27551 sed 's/^/| /' conftest.$ac_ext >&5
27553 ol_cv_resolver_resolv=no
27555 rm -f conftest.err conftest.$ac_objext \
27556 conftest$ac_exeext conftest.$ac_ext
27561 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27562 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27564 if test $ol_cv_resolver_resolv = yes ; then
27565 ol_cv_lib_resolver=-lresolv
27569 if test $ol_cv_lib_resolver = no ; then
27570 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27571 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27572 if test "${ol_cv_resolver_bind+set}" = set; then
27573 echo $ECHO_N "(cached) $ECHO_C" >&6
27576 ol_RESOLVER_LIB=-lbind
27578 LIBS="$ol_RESOLVER_LIB $LIBS"
27580 cat >conftest.$ac_ext <<_ACEOF
27583 cat confdefs.h >>conftest.$ac_ext
27584 cat >>conftest.$ac_ext <<_ACEOF
27585 /* end confdefs.h. */
27587 #ifdef HAVE_SYS_TYPES_H
27588 # include <sys/types.h>
27590 #include <netinet/in.h>
27591 #ifdef HAVE_ARPA_NAMESER_H
27592 # include <arpa/nameser.h>
27594 #ifdef HAVE_RESOLV_H
27595 # include <resolv.h>
27603 char *request = NULL;
27604 unsigned char reply[64*1024];
27605 unsigned char host[64*1024];
27609 /* Bind 8/9 interface */
27610 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27612 /* Bind 4 interface */
27616 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27620 /* Bind 8/9 interface */
27622 #elif defined(HFIXEDSZ)
27623 /* Bind 4 interface w/ HFIXEDSZ */
27626 /* Bind 4 interface w/o HFIXEDSZ */
27627 p += sizeof(HEADER);
27629 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27635 rm -f conftest.$ac_objext conftest$ac_exeext
27636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27637 (eval $ac_link) 2>conftest.er1
27639 grep -v '^ *+' conftest.er1 >conftest.err
27641 cat conftest.err >&5
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); } &&
27644 { ac_try='test -z "$ac_c_werror_flag"
27645 || test ! -s conftest.err'
27646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27647 (eval $ac_try) 2>&5
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; } &&
27651 { ac_try='test -s conftest$ac_exeext'
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
27657 ol_cv_resolver_bind=yes
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27662 ol_cv_resolver_bind=no
27664 rm -f conftest.err conftest.$ac_objext \
27665 conftest$ac_exeext conftest.$ac_ext
27670 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27671 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27673 if test $ol_cv_resolver_bind = yes ; then
27674 ol_cv_lib_resolver=-lbind
27681 if test "$ol_cv_lib_resolver" != no ; then
27683 cat >>confdefs.h <<\_ACEOF
27684 #define HAVE_RES_QUERY 1
27688 if test "$ol_enable_dnssrv" != no ; then
27692 if test "$ol_cv_lib_resolver" != yes ; then
27693 LIBS="$ol_cv_lib_resolver $LIBS"
27697 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27698 if test "$ol_link_dnssrv" = no ; then
27699 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27700 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27701 { (exit 1); exit 1; }; }
27704 ol_enable_dnssrv=no
27708 for ac_func in hstrerror
27710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27711 echo "$as_me:$LINENO: checking for $ac_func" >&5
27712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27713 if eval "test \"\${$as_ac_var+set}\" = set"; then
27714 echo $ECHO_N "(cached) $ECHO_C" >&6
27716 cat >conftest.$ac_ext <<_ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h. */
27722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27724 #define $ac_func innocuous_$ac_func
27726 /* System header to define __stub macros and hopefully few prototypes,
27727 which can conflict with char $ac_func (); below.
27728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27729 <limits.h> exists even on freestanding compilers. */
27732 # include <limits.h>
27734 # include <assert.h>
27739 /* Override any gcc2 internal prototype to avoid an error. */
27744 /* We use char because int might match the return type of a gcc2
27745 builtin and then its argument prototype would still apply. */
27747 /* The GNU C library defines this for functions which it implements
27748 to always fail with ENOSYS. Some functions are actually named
27749 something starting with __ and the normal name is an alias. */
27750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27753 char (*f) () = $ac_func;
27762 return f != $ac_func;
27767 rm -f conftest.$ac_objext conftest$ac_exeext
27768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27769 (eval $ac_link) 2>conftest.er1
27771 grep -v '^ *+' conftest.er1 >conftest.err
27773 cat conftest.err >&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); } &&
27776 { ac_try='test -z "$ac_c_werror_flag"
27777 || test ! -s conftest.err'
27778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779 (eval $ac_try) 2>&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; } &&
27783 { ac_try='test -s conftest$ac_exeext'
27784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785 (eval $ac_try) 2>&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; }; then
27789 eval "$as_ac_var=yes"
27791 echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27794 eval "$as_ac_var=no"
27796 rm -f conftest.err conftest.$ac_objext \
27797 conftest$ac_exeext conftest.$ac_ext
27799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27801 if test `eval echo '${'$as_ac_var'}'` = yes; then
27802 cat >>confdefs.h <<_ACEOF
27803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27814 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27817 echo "$as_me:$LINENO: checking for $ac_func" >&5
27818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27819 if eval "test \"\${$as_ac_var+set}\" = set"; then
27820 echo $ECHO_N "(cached) $ECHO_C" >&6
27822 cat >conftest.$ac_ext <<_ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h. */
27828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27830 #define $ac_func innocuous_$ac_func
27832 /* System header to define __stub macros and hopefully few prototypes,
27833 which can conflict with char $ac_func (); below.
27834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27835 <limits.h> exists even on freestanding compilers. */
27838 # include <limits.h>
27840 # include <assert.h>
27845 /* Override any gcc2 internal prototype to avoid an error. */
27850 /* We use char because int might match the return type of a gcc2
27851 builtin and then its argument prototype would still apply. */
27853 /* The GNU C library defines this for functions which it implements
27854 to always fail with ENOSYS. Some functions are actually named
27855 something starting with __ and the normal name is an alias. */
27856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27859 char (*f) () = $ac_func;
27868 return f != $ac_func;
27873 rm -f conftest.$ac_objext conftest$ac_exeext
27874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27875 (eval $ac_link) 2>conftest.er1
27877 grep -v '^ *+' conftest.er1 >conftest.err
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } &&
27882 { ac_try='test -z "$ac_c_werror_flag"
27883 || test ! -s conftest.err'
27884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885 (eval $ac_try) 2>&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest$ac_exeext'
27890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891 (eval $ac_try) 2>&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; }; then
27895 eval "$as_ac_var=yes"
27897 echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27900 eval "$as_ac_var=no"
27902 rm -f conftest.err conftest.$ac_objext \
27903 conftest$ac_exeext conftest.$ac_ext
27905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27907 if test `eval echo '${'$as_ac_var'}'` = yes; then
27908 cat >>confdefs.h <<_ACEOF
27909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27917 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27918 if test $ol_enable_ipv6 = yes ; then
27919 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27920 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27921 { (exit 1); exit 1; }; }
27923 elif test $ol_enable_ipv6 != no ; then
27924 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27925 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27926 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27930 cat >conftest.$ac_ext <<_ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h. */
27937 # include <netinet/in.h>
27938 # ifdef INET6_ADDRSTRLEN
27939 __has_inet6_addrstrlen__;
27943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27944 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27945 ol_cv_inet6_addrstrlen=yes
27947 ol_cv_inet6_addrstrlen=no
27952 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27953 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27956 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27957 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27958 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27959 echo $ECHO_N "(cached) $ECHO_C" >&6
27962 cat >conftest.$ac_ext <<_ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h. */
27969 #include <sys/types.h>
27970 #include <sys/socket.h>
27976 struct sockaddr_storage ss;
27982 rm -f conftest.$ac_objext
27983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27984 (eval $ac_compile) 2>conftest.er1
27986 grep -v '^ *+' conftest.er1 >conftest.err
27988 cat conftest.err >&5
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); } &&
27991 { ac_try='test -z "$ac_c_werror_flag"
27992 || test ! -s conftest.err'
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; } &&
27998 { ac_try='test -s conftest.$ac_objext'
27999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28000 (eval $ac_try) 2>&5
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); }; }; then
28004 ol_cv_struct_sockaddr_storage=yes
28006 echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28009 ol_cv_struct_sockaddr_storage=no
28011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28013 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
28014 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
28016 if test $ol_cv_inet6_addrstrlen = yes \
28017 -a $ol_cv_struct_sockaddr_storage = yes ; then
28019 elif test $ol_enable_ipv6 = yes \
28020 -a $ol_cv_inet6_addrstrlen = no ; then
28021 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
28022 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
28023 { (exit 1); exit 1; }; }
28024 elif test $ol_enable_ipv6 = yes \
28025 -a $ol_cv_struct_sockaddr_storage = no ; then
28026 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
28027 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
28028 { (exit 1); exit 1; }; }
28032 if test $ol_enable_local != no ; then
28034 for ac_header in sys/un.h
28036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28038 echo "$as_me:$LINENO: checking for $ac_header" >&5
28039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28041 echo $ECHO_N "(cached) $ECHO_C" >&6
28043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28046 # Is the header compilable?
28047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28049 cat >conftest.$ac_ext <<_ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h. */
28055 $ac_includes_default
28056 #include <$ac_header>
28058 rm -f conftest.$ac_objext
28059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28060 (eval $ac_compile) 2>conftest.er1
28062 grep -v '^ *+' conftest.er1 >conftest.err
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } &&
28067 { ac_try='test -z "$ac_c_werror_flag"
28068 || test ! -s conftest.err'
28069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070 (eval $ac_try) 2>&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try='test -s conftest.$ac_objext'
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }; then
28080 ac_header_compiler=yes
28082 echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.$ac_ext >&5
28085 ac_header_compiler=no
28087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28089 echo "${ECHO_T}$ac_header_compiler" >&6
28091 # Is the header present?
28092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28094 cat >conftest.$ac_ext <<_ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h. */
28100 #include <$ac_header>
28102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28105 grep -v '^ *+' conftest.er1 >conftest.err
28107 cat conftest.err >&5
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); } >/dev/null; then
28110 if test -s conftest.err; then
28111 ac_cpp_err=$ac_c_preproc_warn_flag
28112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28119 if test -z "$ac_cpp_err"; then
28120 ac_header_preproc=yes
28122 echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28125 ac_header_preproc=no
28127 rm -f conftest.err conftest.$ac_ext
28128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28129 echo "${ECHO_T}$ac_header_preproc" >&6
28131 # So? What about this header?
28132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28138 ac_header_preproc=yes
28141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28155 ## ------------------------------------------ ##
28156 ## Report this to the AC_PACKAGE_NAME lists. ##
28157 ## ------------------------------------------ ##
28160 sed "s/^/$as_me: WARNING: /" >&2
28163 echo "$as_me:$LINENO: checking for $ac_header" >&5
28164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28168 eval "$as_ac_Header=\$ac_header_preproc"
28170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28175 cat >>confdefs.h <<_ACEOF
28176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28184 if test $ol_enable_local = auto ; then
28185 ol_enable_local=$ac_cv_header_sys_un_h
28186 elif test $ac_cv_header_sys_un_h = no ; then
28187 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28188 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28189 { (exit 1); exit 1; }; }
28197 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28198 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28199 -o $ol_with_kerberos = k425 ; then
28202 for ac_header in krb5.h
28204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28206 echo "$as_me:$LINENO: checking for $ac_header" >&5
28207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28214 # Is the header compilable?
28215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28217 cat >conftest.$ac_ext <<_ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h. */
28223 $ac_includes_default
28224 #include <$ac_header>
28226 rm -f conftest.$ac_objext
28227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28228 (eval $ac_compile) 2>conftest.er1
28230 grep -v '^ *+' conftest.er1 >conftest.err
28232 cat conftest.err >&5
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); } &&
28235 { ac_try='test -z "$ac_c_werror_flag"
28236 || test ! -s conftest.err'
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; } &&
28242 { ac_try='test -s conftest.$ac_objext'
28243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28244 (eval $ac_try) 2>&5
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; }; then
28248 ac_header_compiler=yes
28250 echo "$as_me: failed program was:" >&5
28251 sed 's/^/| /' conftest.$ac_ext >&5
28253 ac_header_compiler=no
28255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28257 echo "${ECHO_T}$ac_header_compiler" >&6
28259 # Is the header present?
28260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28262 cat >conftest.$ac_ext <<_ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h. */
28268 #include <$ac_header>
28270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28273 grep -v '^ *+' conftest.er1 >conftest.err
28275 cat conftest.err >&5
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } >/dev/null; then
28278 if test -s conftest.err; then
28279 ac_cpp_err=$ac_c_preproc_warn_flag
28280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28287 if test -z "$ac_cpp_err"; then
28288 ac_header_preproc=yes
28290 echo "$as_me: failed program was:" >&5
28291 sed 's/^/| /' conftest.$ac_ext >&5
28293 ac_header_preproc=no
28295 rm -f conftest.err conftest.$ac_ext
28296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28297 echo "${ECHO_T}$ac_header_preproc" >&6
28299 # So? What about this header?
28300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28306 ac_header_preproc=yes
28309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28323 ## ------------------------------------------ ##
28324 ## Report this to the AC_PACKAGE_NAME lists. ##
28325 ## ------------------------------------------ ##
28328 sed "s/^/$as_me: WARNING: /" >&2
28331 echo "$as_me:$LINENO: checking for $ac_header" >&5
28332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
28336 eval "$as_ac_Header=\$ac_header_preproc"
28338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28343 cat >>confdefs.h <<_ACEOF
28344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28352 if test $ac_cv_header_krb5_h = yes ; then
28354 for ac_header in heim_err.h
28356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28358 echo "$as_me:$LINENO: checking for $ac_header" >&5
28359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28361 echo $ECHO_N "(cached) $ECHO_C" >&6
28363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28366 # Is the header compilable?
28367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28369 cat >conftest.$ac_ext <<_ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h. */
28375 $ac_includes_default
28376 #include <$ac_header>
28378 rm -f conftest.$ac_objext
28379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28380 (eval $ac_compile) 2>conftest.er1
28382 grep -v '^ *+' conftest.er1 >conftest.err
28384 cat conftest.err >&5
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); } &&
28387 { ac_try='test -z "$ac_c_werror_flag"
28388 || test ! -s conftest.err'
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; } &&
28394 { ac_try='test -s conftest.$ac_objext'
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_header_compiler=yes
28402 echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28405 ac_header_compiler=no
28407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28409 echo "${ECHO_T}$ac_header_compiler" >&6
28411 # Is the header present?
28412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28414 cat >conftest.$ac_ext <<_ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h. */
28420 #include <$ac_header>
28422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28425 grep -v '^ *+' conftest.er1 >conftest.err
28427 cat conftest.err >&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } >/dev/null; then
28430 if test -s conftest.err; then
28431 ac_cpp_err=$ac_c_preproc_warn_flag
28432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28439 if test -z "$ac_cpp_err"; then
28440 ac_header_preproc=yes
28442 echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28445 ac_header_preproc=no
28447 rm -f conftest.err conftest.$ac_ext
28448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28449 echo "${ECHO_T}$ac_header_preproc" >&6
28451 # So? What about this header?
28452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28458 ac_header_preproc=yes
28461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28475 ## ------------------------------------------ ##
28476 ## Report this to the AC_PACKAGE_NAME lists. ##
28477 ## ------------------------------------------ ##
28480 sed "s/^/$as_me: WARNING: /" >&2
28483 echo "$as_me:$LINENO: checking for $ac_header" >&5
28484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28488 eval "$as_ac_Header=\$ac_header_preproc"
28490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28495 cat >>confdefs.h <<_ACEOF
28496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28503 if test $ac_cv_header_heim_err_h = yes ; then
28509 if test $krb5_impl = mit; then
28510 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28511 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28512 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28513 echo $ECHO_N "(cached) $ECHO_C" >&6
28515 ac_check_lib_save_LIBS=$LIBS
28516 LIBS="-lk5crypto $LIBS"
28517 cat >conftest.$ac_ext <<_ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h. */
28533 rm -f conftest.$ac_objext conftest$ac_exeext
28534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28535 (eval $ac_link) 2>conftest.er1
28537 grep -v '^ *+' conftest.er1 >conftest.err
28539 cat conftest.err >&5
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); } &&
28542 { ac_try='test -z "$ac_c_werror_flag"
28543 || test ! -s conftest.err'
28544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28545 (eval $ac_try) 2>&5
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); }; } &&
28549 { ac_try='test -s conftest$ac_exeext'
28550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551 (eval $ac_try) 2>&5
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; }; then
28555 ac_cv_lib_k5crypto_main=yes
28557 echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28560 ac_cv_lib_k5crypto_main=no
28562 rm -f conftest.err conftest.$ac_objext \
28563 conftest$ac_exeext conftest.$ac_ext
28564 LIBS=$ac_check_lib_save_LIBS
28566 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28567 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28568 if test $ac_cv_lib_k5crypto_main = yes; then
28569 krb5crypto=k5crypto
28575 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28576 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28577 if test "${ac_cv_lib_krb5_main+set}" = set; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28580 ac_check_lib_save_LIBS=$LIBS
28581 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28582 cat >conftest.$ac_ext <<_ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h. */
28598 rm -f conftest.$ac_objext conftest$ac_exeext
28599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28600 (eval $ac_link) 2>conftest.er1
28602 grep -v '^ *+' conftest.er1 >conftest.err
28604 cat conftest.err >&5
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); } &&
28607 { ac_try='test -z "$ac_c_werror_flag"
28608 || test ! -s conftest.err'
28609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610 (eval $ac_try) 2>&5
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; } &&
28614 { ac_try='test -s conftest$ac_exeext'
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620 ac_cv_lib_krb5_main=yes
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ac_cv_lib_krb5_main=no
28627 rm -f conftest.err conftest.$ac_objext \
28628 conftest$ac_exeext conftest.$ac_ext
28629 LIBS=$ac_check_lib_save_LIBS
28631 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28632 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28633 if test $ac_cv_lib_krb5_main = yes; then
28635 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28641 elif test $krb5_impl = heimdal; then
28642 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28643 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28644 if test "${ac_cv_lib_des_main+set}" = set; then
28645 echo $ECHO_N "(cached) $ECHO_C" >&6
28647 ac_check_lib_save_LIBS=$LIBS
28649 cat >conftest.$ac_ext <<_ACEOF
28652 cat confdefs.h >>conftest.$ac_ext
28653 cat >>conftest.$ac_ext <<_ACEOF
28654 /* end confdefs.h. */
28665 rm -f conftest.$ac_objext conftest$ac_exeext
28666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28667 (eval $ac_link) 2>conftest.er1
28669 grep -v '^ *+' conftest.er1 >conftest.err
28671 cat conftest.err >&5
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } &&
28674 { ac_try='test -z "$ac_c_werror_flag"
28675 || test ! -s conftest.err'
28676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677 (eval $ac_try) 2>&5
28679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680 (exit $ac_status); }; } &&
28681 { ac_try='test -s conftest$ac_exeext'
28682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 (eval $ac_try) 2>&5
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; }; then
28687 ac_cv_lib_des_main=yes
28689 echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28692 ac_cv_lib_des_main=no
28694 rm -f conftest.err conftest.$ac_objext \
28695 conftest$ac_exeext conftest.$ac_ext
28696 LIBS=$ac_check_lib_save_LIBS
28698 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28699 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28700 if test $ac_cv_lib_des_main = yes; then
28707 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28708 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28709 if test "${ac_cv_lib_krb5_main+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 ac_check_lib_save_LIBS=$LIBS
28713 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28714 cat >conftest.$ac_ext <<_ACEOF
28717 cat confdefs.h >>conftest.$ac_ext
28718 cat >>conftest.$ac_ext <<_ACEOF
28719 /* end confdefs.h. */
28730 rm -f conftest.$ac_objext conftest$ac_exeext
28731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28732 (eval $ac_link) 2>conftest.er1
28734 grep -v '^ *+' conftest.er1 >conftest.err
28736 cat conftest.err >&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); } &&
28739 { ac_try='test -z "$ac_c_werror_flag"
28740 || test ! -s conftest.err'
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; } &&
28746 { ac_try='test -s conftest$ac_exeext'
28747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28748 (eval $ac_try) 2>&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; }; then
28752 ac_cv_lib_krb5_main=yes
28754 echo "$as_me: failed program was:" >&5
28755 sed 's/^/| /' conftest.$ac_ext >&5
28757 ac_cv_lib_krb5_main=no
28759 rm -f conftest.err conftest.$ac_objext \
28760 conftest$ac_exeext conftest.$ac_ext
28761 LIBS=$ac_check_lib_save_LIBS
28763 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28764 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28765 if test $ac_cv_lib_krb5_main = yes; then
28767 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28774 cat >>confdefs.h <<\_ACEOF
28775 #define HAVE_HEIMDAL_KERBEROS 1
28781 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28782 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28785 if test $have_krb5 = yes ; then
28789 cat >>confdefs.h <<\_ACEOF
28790 #define HAVE_KRB5 1
28794 if test $ol_with_kerberos = k5only ; then
28795 ol_with_kerberos=found
28798 elif test $ol_with_kerberos != auto ; then
28799 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28800 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28801 { (exit 1); exit 1; }; }
28807 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28808 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28812 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28816 echo "$as_me:$LINENO: checking for $ac_header" >&5
28817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28819 echo $ECHO_N "(cached) $ECHO_C" >&6
28821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28824 # Is the header compilable?
28825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28827 cat >conftest.$ac_ext <<_ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h. */
28833 $ac_includes_default
28834 #include <$ac_header>
28836 rm -f conftest.$ac_objext
28837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28838 (eval $ac_compile) 2>conftest.er1
28840 grep -v '^ *+' conftest.er1 >conftest.err
28842 cat conftest.err >&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); } &&
28845 { ac_try='test -z "$ac_c_werror_flag"
28846 || test ! -s conftest.err'
28847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28848 (eval $ac_try) 2>&5
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); }; } &&
28852 { ac_try='test -s conftest.$ac_objext'
28853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854 (eval $ac_try) 2>&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); }; }; then
28858 ac_header_compiler=yes
28860 echo "$as_me: failed program was:" >&5
28861 sed 's/^/| /' conftest.$ac_ext >&5
28863 ac_header_compiler=no
28865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28867 echo "${ECHO_T}$ac_header_compiler" >&6
28869 # Is the header present?
28870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28872 cat >conftest.$ac_ext <<_ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h. */
28878 #include <$ac_header>
28880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28883 grep -v '^ *+' conftest.er1 >conftest.err
28885 cat conftest.err >&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); } >/dev/null; then
28888 if test -s conftest.err; then
28889 ac_cpp_err=$ac_c_preproc_warn_flag
28890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28897 if test -z "$ac_cpp_err"; then
28898 ac_header_preproc=yes
28900 echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28903 ac_header_preproc=no
28905 rm -f conftest.err conftest.$ac_ext
28906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28907 echo "${ECHO_T}$ac_header_preproc" >&6
28909 # So? What about this header?
28910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28916 ac_header_preproc=yes
28919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28933 ## ------------------------------------------ ##
28934 ## Report this to the AC_PACKAGE_NAME lists. ##
28935 ## ------------------------------------------ ##
28938 sed "s/^/$as_me: WARNING: /" >&2
28941 echo "$as_me:$LINENO: checking for $ac_header" >&5
28942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28944 echo $ECHO_N "(cached) $ECHO_C" >&6
28946 eval "$as_ac_Header=\$ac_header_preproc"
28948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28953 cat >>confdefs.h <<_ACEOF
28954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28962 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28963 if test $krb5_impl = mit; then
28964 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28965 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28966 if test "${ac_cv_lib_krb4_main+set}" = set; then
28967 echo $ECHO_N "(cached) $ECHO_C" >&6
28969 ac_check_lib_save_LIBS=$LIBS
28970 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28971 cat >conftest.$ac_ext <<_ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28987 rm -f conftest.$ac_objext conftest$ac_exeext
28988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28989 (eval $ac_link) 2>conftest.er1
28991 grep -v '^ *+' conftest.er1 >conftest.err
28993 cat conftest.err >&5
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); } &&
28996 { ac_try='test -z "$ac_c_werror_flag"
28997 || test ! -s conftest.err'
28998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999 (eval $ac_try) 2>&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; } &&
29003 { ac_try='test -s conftest$ac_exeext'
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; }; then
29009 ac_cv_lib_krb4_main=yes
29011 echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29014 ac_cv_lib_krb4_main=no
29016 rm -f conftest.err conftest.$ac_objext \
29017 conftest$ac_exeext conftest.$ac_ext
29018 LIBS=$ac_check_lib_save_LIBS
29020 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29021 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29022 if test $ac_cv_lib_krb4_main = yes; then
29024 KRB4_LIBS="-lkrb4 -ldes425"
29030 elif test $krb5_impl = heimdal; then
29031 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
29032 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
29033 if test "${ac_cv_lib_krb4_main+set}" = set; then
29034 echo $ECHO_N "(cached) $ECHO_C" >&6
29036 ac_check_lib_save_LIBS=$LIBS
29037 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
29038 cat >conftest.$ac_ext <<_ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h. */
29054 rm -f conftest.$ac_objext conftest$ac_exeext
29055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29056 (eval $ac_link) 2>conftest.er1
29058 grep -v '^ *+' conftest.er1 >conftest.err
29060 cat conftest.err >&5
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } &&
29063 { ac_try='test -z "$ac_c_werror_flag"
29064 || test ! -s conftest.err'
29065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066 (eval $ac_try) 2>&5
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; } &&
29070 { ac_try='test -s conftest$ac_exeext'
29071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072 (eval $ac_try) 2>&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; }; then
29076 ac_cv_lib_krb4_main=yes
29078 echo "$as_me: failed program was:" >&5
29079 sed 's/^/| /' conftest.$ac_ext >&5
29081 ac_cv_lib_krb4_main=no
29083 rm -f conftest.err conftest.$ac_objext \
29084 conftest$ac_exeext conftest.$ac_ext
29085 LIBS=$ac_check_lib_save_LIBS
29087 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29088 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29089 if test $ac_cv_lib_krb4_main = yes; then
29099 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
29100 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
29103 if test $have_k425 = yes ; then
29104 ol_with_kerberos=found
29108 cat >>confdefs.h <<\_ACEOF
29109 #define HAVE_KRB425 1
29113 cat >>confdefs.h <<\_ACEOF
29114 #define HAVE_KRB4 1
29118 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
29119 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
29120 if test "${ol_cv_var_des_debug+set}" = set; then
29121 echo $ECHO_N "(cached) $ECHO_C" >&6
29125 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
29126 cat >conftest.$ac_ext <<_ACEOF
29129 cat confdefs.h >>conftest.$ac_ext
29130 cat >>conftest.$ac_ext <<_ACEOF
29131 /* end confdefs.h. */
29133 #include <kerberosIV/krb.h>
29134 #include <kerberosIV/des.h>
29135 extern int des_debug;
29147 rm -f conftest.$ac_objext conftest$ac_exeext
29148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29149 (eval $ac_link) 2>conftest.er1
29151 grep -v '^ *+' conftest.er1 >conftest.err
29153 cat conftest.err >&5
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); } &&
29156 { ac_try='test -z "$ac_c_werror_flag"
29157 || test ! -s conftest.err'
29158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159 (eval $ac_try) 2>&5
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); }; } &&
29163 { ac_try='test -s conftest$ac_exeext'
29164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29165 (eval $ac_try) 2>&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; }; then
29169 ol_cv_var_des_debug=yes
29171 echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29174 ol_cv_var_des_debug=no
29176 rm -f conftest.err conftest.$ac_objext \
29177 conftest$ac_exeext conftest.$ac_ext
29181 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29182 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29184 if test $ol_cv_var_des_debug = yes ; then
29186 cat >>confdefs.h <<\_ACEOF
29187 #define HAVE_DES_DEBUG 1
29197 if test $ol_link_krb5 = yes ; then
29198 ol_with_kerberos=found
29201 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29202 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29207 for ac_header in krb.h des.h krb-archaeology.h
29209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29211 echo "$as_me:$LINENO: checking for $ac_header" >&5
29212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29214 echo $ECHO_N "(cached) $ECHO_C" >&6
29216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29219 # Is the header compilable?
29220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29222 cat >conftest.$ac_ext <<_ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h. */
29228 $ac_includes_default
29229 #include <$ac_header>
29231 rm -f conftest.$ac_objext
29232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29233 (eval $ac_compile) 2>conftest.er1
29235 grep -v '^ *+' conftest.er1 >conftest.err
29237 cat conftest.err >&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); } &&
29240 { ac_try='test -z "$ac_c_werror_flag"
29241 || test ! -s conftest.err'
29242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243 (eval $ac_try) 2>&5
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; } &&
29247 { ac_try='test -s conftest.$ac_objext'
29248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29249 (eval $ac_try) 2>&5
29251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252 (exit $ac_status); }; }; then
29253 ac_header_compiler=yes
29255 echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29258 ac_header_compiler=no
29260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29262 echo "${ECHO_T}$ac_header_compiler" >&6
29264 # Is the header present?
29265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29267 cat >conftest.$ac_ext <<_ACEOF
29270 cat confdefs.h >>conftest.$ac_ext
29271 cat >>conftest.$ac_ext <<_ACEOF
29272 /* end confdefs.h. */
29273 #include <$ac_header>
29275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29278 grep -v '^ *+' conftest.er1 >conftest.err
29280 cat conftest.err >&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } >/dev/null; then
29283 if test -s conftest.err; then
29284 ac_cpp_err=$ac_c_preproc_warn_flag
29285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29292 if test -z "$ac_cpp_err"; then
29293 ac_header_preproc=yes
29295 echo "$as_me: failed program was:" >&5
29296 sed 's/^/| /' conftest.$ac_ext >&5
29298 ac_header_preproc=no
29300 rm -f conftest.err conftest.$ac_ext
29301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29302 echo "${ECHO_T}$ac_header_preproc" >&6
29304 # So? What about this header?
29305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29311 ac_header_preproc=yes
29314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29328 ## ------------------------------------------ ##
29329 ## Report this to the AC_PACKAGE_NAME lists. ##
29330 ## ------------------------------------------ ##
29333 sed "s/^/$as_me: WARNING: /" >&2
29336 echo "$as_me:$LINENO: checking for $ac_header" >&5
29337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29339 echo $ECHO_N "(cached) $ECHO_C" >&6
29341 eval "$as_ac_Header=\$ac_header_preproc"
29343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29348 cat >>confdefs.h <<_ACEOF
29349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29357 if test $ac_cv_header_krb_h = yes ; then
29358 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29359 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29360 if test "${ac_cv_lib_krb_main+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29363 ac_check_lib_save_LIBS=$LIBS
29364 LIBS="-lkrb -ldes $LIBS"
29365 cat >conftest.$ac_ext <<_ACEOF
29368 cat confdefs.h >>conftest.$ac_ext
29369 cat >>conftest.$ac_ext <<_ACEOF
29370 /* end confdefs.h. */
29381 rm -f conftest.$ac_objext conftest$ac_exeext
29382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29383 (eval $ac_link) 2>conftest.er1
29385 grep -v '^ *+' conftest.er1 >conftest.err
29387 cat conftest.err >&5
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); } &&
29390 { ac_try='test -z "$ac_c_werror_flag"
29391 || test ! -s conftest.err'
29392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393 (eval $ac_try) 2>&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; } &&
29397 { ac_try='test -s conftest$ac_exeext'
29398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399 (eval $ac_try) 2>&5
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); }; }; then
29403 ac_cv_lib_krb_main=yes
29405 echo "$as_me: failed program was:" >&5
29406 sed 's/^/| /' conftest.$ac_ext >&5
29408 ac_cv_lib_krb_main=no
29410 rm -f conftest.err conftest.$ac_objext \
29411 conftest$ac_exeext conftest.$ac_ext
29412 LIBS=$ac_check_lib_save_LIBS
29414 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29415 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29416 if test $ac_cv_lib_krb_main = yes; then
29423 if test $have_k4 = yes ; then
29424 ol_with_kerberos=found
29428 cat >>confdefs.h <<\_ACEOF
29429 #define HAVE_KRB4 1
29433 KRB4_LIBS="-lkrb -ldes"
29435 if test $ac_cv_header_krb_archaeology_h = yes ; then
29437 cat >>confdefs.h <<\_ACEOF
29438 #define HAVE_KTH_KERBEROS 1
29446 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29449 elif test $ol_enable_kbind = yes ; then
29450 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29451 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29452 { (exit 1); exit 1; }; }
29455 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29457 cat >>confdefs.h <<\_ACEOF
29458 #define HAVE_KERBEROS 1
29462 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29463 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29464 echo "$as_me: error: Kerberos detection failed" >&2;}
29465 { (exit 1); exit 1; }; }
29470 if test $ol_with_tls != no ; then
29473 for ac_header in openssl/ssl.h ssl.h
29475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29477 echo "$as_me:$LINENO: checking for $ac_header" >&5
29478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29480 echo $ECHO_N "(cached) $ECHO_C" >&6
29482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29485 # Is the header compilable?
29486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29488 cat >conftest.$ac_ext <<_ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h. */
29494 $ac_includes_default
29495 #include <$ac_header>
29497 rm -f conftest.$ac_objext
29498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29499 (eval $ac_compile) 2>conftest.er1
29501 grep -v '^ *+' conftest.er1 >conftest.err
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } &&
29506 { ac_try='test -z "$ac_c_werror_flag"
29507 || test ! -s conftest.err'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest.$ac_objext'
29514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; }; then
29519 ac_header_compiler=yes
29521 echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29524 ac_header_compiler=no
29526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29528 echo "${ECHO_T}$ac_header_compiler" >&6
29530 # Is the header present?
29531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29533 cat >conftest.$ac_ext <<_ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h. */
29539 #include <$ac_header>
29541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29544 grep -v '^ *+' conftest.er1 >conftest.err
29546 cat conftest.err >&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } >/dev/null; then
29549 if test -s conftest.err; then
29550 ac_cpp_err=$ac_c_preproc_warn_flag
29551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29558 if test -z "$ac_cpp_err"; then
29559 ac_header_preproc=yes
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29564 ac_header_preproc=no
29566 rm -f conftest.err conftest.$ac_ext
29567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29568 echo "${ECHO_T}$ac_header_preproc" >&6
29570 # So? What about this header?
29571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29577 ac_header_preproc=yes
29580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29594 ## ------------------------------------------ ##
29595 ## Report this to the AC_PACKAGE_NAME lists. ##
29596 ## ------------------------------------------ ##
29599 sed "s/^/$as_me: WARNING: /" >&2
29602 echo "$as_me:$LINENO: checking for $ac_header" >&5
29603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29607 eval "$as_ac_Header=\$ac_header_preproc"
29609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29614 cat >>confdefs.h <<_ACEOF
29615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29623 if test $ac_cv_header_openssl_ssl_h = yes \
29624 -o $ac_cv_header_ssl_h = yes ; then
29625 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29626 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29627 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29630 ac_check_lib_save_LIBS=$LIBS
29631 LIBS="-lssl -lcrypto $LIBS"
29632 cat >conftest.$ac_ext <<_ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h. */
29639 /* Override any gcc2 internal prototype to avoid an error. */
29643 /* We use char because int might match the return type of a gcc2
29644 builtin and then its argument prototype would still apply. */
29645 char SSLeay_add_ssl_algorithms ();
29649 SSLeay_add_ssl_algorithms ();
29654 rm -f conftest.$ac_objext conftest$ac_exeext
29655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29656 (eval $ac_link) 2>conftest.er1
29658 grep -v '^ *+' conftest.er1 >conftest.err
29660 cat conftest.err >&5
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } &&
29663 { ac_try='test -z "$ac_c_werror_flag"
29664 || test ! -s conftest.err'
29665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29666 (eval $ac_try) 2>&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); }; } &&
29670 { ac_try='test -s conftest$ac_exeext'
29671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29672 (eval $ac_try) 2>&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); }; }; then
29676 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29678 echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.$ac_ext >&5
29681 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29683 rm -f conftest.err conftest.$ac_objext \
29684 conftest$ac_exeext conftest.$ac_ext
29685 LIBS=$ac_check_lib_save_LIBS
29687 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29688 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29689 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29697 if test $have_ssleay = no ; then
29698 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29699 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29700 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29703 ac_check_lib_save_LIBS=$LIBS
29704 LIBS="-lssl -lcrypto $LIBS"
29705 cat >conftest.$ac_ext <<_ACEOF
29708 cat confdefs.h >>conftest.$ac_ext
29709 cat >>conftest.$ac_ext <<_ACEOF
29710 /* end confdefs.h. */
29712 /* Override any gcc2 internal prototype to avoid an error. */
29716 /* We use char because int might match the return type of a gcc2
29717 builtin and then its argument prototype would still apply. */
29718 char SSL_library_init ();
29722 SSL_library_init ();
29727 rm -f conftest.$ac_objext conftest$ac_exeext
29728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29729 (eval $ac_link) 2>conftest.er1
29731 grep -v '^ *+' conftest.er1 >conftest.err
29733 cat conftest.err >&5
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); } &&
29736 { ac_try='test -z "$ac_c_werror_flag"
29737 || test ! -s conftest.err'
29738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739 (eval $ac_try) 2>&5
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); }; } &&
29743 { ac_try='test -s conftest$ac_exeext'
29744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29745 (eval $ac_try) 2>&5
29747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748 (exit $ac_status); }; }; then
29749 ac_cv_lib_ssl_SSL_library_init=yes
29751 echo "$as_me: failed program was:" >&5
29752 sed 's/^/| /' conftest.$ac_ext >&5
29754 ac_cv_lib_ssl_SSL_library_init=no
29756 rm -f conftest.err conftest.$ac_objext \
29757 conftest$ac_exeext conftest.$ac_ext
29758 LIBS=$ac_check_lib_save_LIBS
29760 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29761 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29762 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29771 if test $have_ssleay = no ; then
29772 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29773 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29774 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29777 ac_check_lib_save_LIBS=$LIBS
29778 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29779 cat >conftest.$ac_ext <<_ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h. */
29786 /* Override any gcc2 internal prototype to avoid an error. */
29790 /* We use char because int might match the return type of a gcc2
29791 builtin and then its argument prototype would still apply. */
29792 char ssl3_accept ();
29801 rm -f conftest.$ac_objext conftest$ac_exeext
29802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29803 (eval $ac_link) 2>conftest.er1
29805 grep -v '^ *+' conftest.er1 >conftest.err
29807 cat conftest.err >&5
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); } &&
29810 { ac_try='test -z "$ac_c_werror_flag"
29811 || test ! -s conftest.err'
29812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29813 (eval $ac_try) 2>&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); }; } &&
29817 { ac_try='test -s conftest$ac_exeext'
29818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29819 (eval $ac_try) 2>&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; }; then
29823 ac_cv_lib_ssl_ssl3_accept=yes
29825 echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29828 ac_cv_lib_ssl_ssl3_accept=no
29830 rm -f conftest.err conftest.$ac_objext \
29831 conftest$ac_exeext conftest.$ac_ext
29832 LIBS=$ac_check_lib_save_LIBS
29834 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29835 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29836 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29845 if test $have_ssleay = yes ; then
29850 cat >>confdefs.h <<\_ACEOF
29851 #define HAVE_SSLEAY 1
29855 if test $need_rsaref = yes; then
29857 cat >>confdefs.h <<\_ACEOF
29858 #define HAVE_RSAREF 1
29862 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29864 TLS_LIBS="-lssl -lcrypto"
29867 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29868 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29869 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29870 echo $ECHO_N "(cached) $ECHO_C" >&6
29873 cat >conftest.$ac_ext <<_ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h. */
29880 #ifdef HAVE_OPENSSL_SSL_H
29881 #include <openssl/ssl.h>
29886 /* Require 0.9.7d+ */
29887 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29888 char *__ssl_compat = "0.9.7d";
29892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29893 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29894 ol_cv_ssl_crl_compat=yes
29896 ol_cv_ssl_crl_compat=no
29901 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29902 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29904 if test $ol_cv_ssl_crl_compat = no ; then
29908 cat >>confdefs.h <<\_ACEOF
29909 #define HAVE_OPENSSL_CRL 1
29916 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29917 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29921 if test $ol_link_tls = yes ; then
29923 cat >>confdefs.h <<\_ACEOF
29929 elif test $ol_with_tls = auto ; then
29930 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29931 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29932 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29933 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29935 elif test $ol_with_tls != no ; then
29936 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29937 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29938 { (exit 1); exit 1; }; }
29941 if test $ol_enable_lmpasswd != no; then
29942 if test $ol_link_tls != yes ; then
29943 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29944 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29945 { (exit 1); exit 1; }; }
29949 cat >>confdefs.h <<\_ACEOF
29950 #define SLAPD_LMHASH 1
29957 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29958 -o $ol_with_threads = nt ; then
29961 echo "$as_me:$LINENO: checking for _beginthread" >&5
29962 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29963 if test "${ac_cv_func__beginthread+set}" = set; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29966 cat >conftest.$ac_ext <<_ACEOF
29969 cat confdefs.h >>conftest.$ac_ext
29970 cat >>conftest.$ac_ext <<_ACEOF
29971 /* end confdefs.h. */
29972 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29974 #define _beginthread innocuous__beginthread
29976 /* System header to define __stub macros and hopefully few prototypes,
29977 which can conflict with char _beginthread (); below.
29978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29979 <limits.h> exists even on freestanding compilers. */
29982 # include <limits.h>
29984 # include <assert.h>
29987 #undef _beginthread
29989 /* Override any gcc2 internal prototype to avoid an error. */
29994 /* We use char because int might match the return type of a gcc2
29995 builtin and then its argument prototype would still apply. */
29996 char _beginthread ();
29997 /* The GNU C library defines this for functions which it implements
29998 to always fail with ENOSYS. Some functions are actually named
29999 something starting with __ and the normal name is an alias. */
30000 #if defined (__stub__beginthread) || defined (__stub____beginthread)
30003 char (*f) () = _beginthread;
30012 return f != _beginthread;
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30019 (eval $ac_link) 2>conftest.er1
30021 grep -v '^ *+' conftest.er1 >conftest.err
30023 cat conftest.err >&5
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); } &&
30026 { ac_try='test -z "$ac_c_werror_flag"
30027 || test ! -s conftest.err'
30028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30029 (eval $ac_try) 2>&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); }; } &&
30033 { ac_try='test -s conftest$ac_exeext'
30034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30035 (eval $ac_try) 2>&5
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); }; }; then
30039 ac_cv_func__beginthread=yes
30041 echo "$as_me: failed program was:" >&5
30042 sed 's/^/| /' conftest.$ac_ext >&5
30044 ac_cv_func__beginthread=no
30046 rm -f conftest.err conftest.$ac_objext \
30047 conftest$ac_exeext conftest.$ac_ext
30049 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
30050 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
30053 if test $ac_cv_func__beginthread = yes ; then
30055 cat >>confdefs.h <<\_ACEOF
30056 #define HAVE_NT_THREADS 1
30059 ol_cv_nt_threads=yes
30063 if test "$ol_cv_nt_threads" = yes ; then
30065 ol_with_threads=found
30066 ol_with_yielding_select=yes
30069 cat >>confdefs.h <<\_ACEOF
30070 #define HAVE_NT_SERVICE_MANAGER 1
30074 cat >>confdefs.h <<\_ACEOF
30075 #define HAVE_NT_EVENT_LOG 1
30080 if test $ol_with_threads = nt ; then
30081 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
30082 echo "$as_me: error: could not locate NT Threads" >&2;}
30083 { (exit 1); exit 1; }; }
30087 if test $ol_with_threads = auto -o $ol_with_threads = yes \
30088 -o $ol_with_threads = posix ; then
30091 for ac_header in pthread.h
30093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30095 echo "$as_me:$LINENO: checking for $ac_header" >&5
30096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30098 echo $ECHO_N "(cached) $ECHO_C" >&6
30100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30103 # Is the header compilable?
30104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30106 cat >conftest.$ac_ext <<_ACEOF
30109 cat confdefs.h >>conftest.$ac_ext
30110 cat >>conftest.$ac_ext <<_ACEOF
30111 /* end confdefs.h. */
30112 $ac_includes_default
30113 #include <$ac_header>
30115 rm -f conftest.$ac_objext
30116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30117 (eval $ac_compile) 2>conftest.er1
30119 grep -v '^ *+' conftest.er1 >conftest.err
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } &&
30124 { ac_try='test -z "$ac_c_werror_flag"
30125 || test ! -s conftest.err'
30126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127 (eval $ac_try) 2>&5
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; } &&
30131 { ac_try='test -s conftest.$ac_objext'
30132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133 (eval $ac_try) 2>&5
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; }; then
30137 ac_header_compiler=yes
30139 echo "$as_me: failed program was:" >&5
30140 sed 's/^/| /' conftest.$ac_ext >&5
30142 ac_header_compiler=no
30144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30146 echo "${ECHO_T}$ac_header_compiler" >&6
30148 # Is the header present?
30149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30151 cat >conftest.$ac_ext <<_ACEOF
30154 cat confdefs.h >>conftest.$ac_ext
30155 cat >>conftest.$ac_ext <<_ACEOF
30156 /* end confdefs.h. */
30157 #include <$ac_header>
30159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30162 grep -v '^ *+' conftest.er1 >conftest.err
30164 cat conftest.err >&5
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); } >/dev/null; then
30167 if test -s conftest.err; then
30168 ac_cpp_err=$ac_c_preproc_warn_flag
30169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30176 if test -z "$ac_cpp_err"; then
30177 ac_header_preproc=yes
30179 echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30182 ac_header_preproc=no
30184 rm -f conftest.err conftest.$ac_ext
30185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30186 echo "${ECHO_T}$ac_header_preproc" >&6
30188 # So? What about this header?
30189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30195 ac_header_preproc=yes
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30212 ## ------------------------------------------ ##
30213 ## Report this to the AC_PACKAGE_NAME lists. ##
30214 ## ------------------------------------------ ##
30217 sed "s/^/$as_me: WARNING: /" >&2
30220 echo "$as_me:$LINENO: checking for $ac_header" >&5
30221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30223 echo $ECHO_N "(cached) $ECHO_C" >&6
30225 eval "$as_ac_Header=\$ac_header_preproc"
30227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30232 cat >>confdefs.h <<_ACEOF
30233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30241 if test $ac_cv_header_pthread_h = yes ; then
30242 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30243 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30244 if test "${ol_cv_pthread_version+set}" = set; then
30245 echo $ECHO_N "(cached) $ECHO_C" >&6
30248 cat >conftest.$ac_ext <<_ACEOF
30251 cat confdefs.h >>conftest.$ac_ext
30252 cat >>conftest.$ac_ext <<_ACEOF
30253 /* end confdefs.h. */
30255 # include <pthread.h>
30261 int i = PTHREAD_CREATE_JOINABLE;
30267 rm -f conftest.$ac_objext
30268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30269 (eval $ac_compile) 2>conftest.er1
30271 grep -v '^ *+' conftest.er1 >conftest.err
30273 cat conftest.err >&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
30276 { ac_try='test -z "$ac_c_werror_flag"
30277 || test ! -s conftest.err'
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest.$ac_objext'
30284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285 (eval $ac_try) 2>&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; }; then
30290 cat >conftest.$ac_ext <<_ACEOF
30293 cat confdefs.h >>conftest.$ac_ext
30294 cat >>conftest.$ac_ext <<_ACEOF
30295 /* end confdefs.h. */
30296 #include <pthread.h>
30299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30300 $EGREP "pthread_detach" >/dev/null 2>&1; then
30301 ol_cv_pthread_version=10
30303 ol_cv_pthread_version=8
30308 echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30312 cat >conftest.$ac_ext <<_ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h. */
30319 # include <pthread.h>
30320 # ifdef PTHREAD_CREATE_UNDETACHED
30325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30326 $EGREP "draft7" >/dev/null 2>&1; then
30327 ol_cv_pthread_version=7
30330 cat >conftest.$ac_ext <<_ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h. */
30336 #include <pthread.h>
30339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30340 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30341 ol_cv_pthread_version=6
30344 cat >conftest.$ac_ext <<_ACEOF
30347 cat confdefs.h >>conftest.$ac_ext
30348 cat >>conftest.$ac_ext <<_ACEOF
30349 /* end confdefs.h. */
30351 # include <pthread.h>
30352 #ifdef PTHREAD_MUTEX_INITIALIZER
30357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30358 $EGREP "draft5" >/dev/null 2>&1; then
30359 ol_cv_pthread_version=5
30361 ol_cv_pthread_version=4
30372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30375 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30376 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30379 if test $ol_cv_pthread_version != 0 ; then
30381 cat >>confdefs.h <<_ACEOF
30382 #define HAVE_PTHREADS $ol_cv_pthread_version
30386 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30387 echo "$as_me: error: unknown pthread version" >&2;}
30388 { (exit 1); exit 1; }; }
30391 # consider threads found
30392 ol_with_threads=found
30395 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30396 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30397 if test "${ol_cv_header_linux_threads+set}" = set; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30400 cat >conftest.$ac_ext <<_ACEOF
30403 cat confdefs.h >>conftest.$ac_ext
30404 cat >>conftest.$ac_ext <<_ACEOF
30405 /* end confdefs.h. */
30406 #include <pthread.h>
30408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30409 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30410 ol_cv_header_linux_threads=yes
30412 ol_cv_header_linux_threads=no
30418 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30419 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30420 if test $ol_cv_header_linux_threads = yes; then
30422 cat >>confdefs.h <<\_ACEOF
30423 #define HAVE_LINUX_THREADS 1
30429 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30430 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30431 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30432 echo $ECHO_N "(cached) $ECHO_C" >&6
30434 cat >conftest.$ac_ext <<_ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h. */
30440 #include <pthread.h>
30441 #ifdef _POSIX_THREAD_IS_GNU_PTH
30446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30447 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30448 ol_cv_header_gnu_pth_pthread_h=yes
30450 ol_cv_header_gnu_pth_pthread_h=no
30456 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30457 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30460 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30462 for ac_header in sched.h
30464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30466 echo "$as_me:$LINENO: checking for $ac_header" >&5
30467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30469 echo $ECHO_N "(cached) $ECHO_C" >&6
30471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30474 # Is the header compilable?
30475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30477 cat >conftest.$ac_ext <<_ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h. */
30483 $ac_includes_default
30484 #include <$ac_header>
30486 rm -f conftest.$ac_objext
30487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30488 (eval $ac_compile) 2>conftest.er1
30490 grep -v '^ *+' conftest.er1 >conftest.err
30492 cat conftest.err >&5
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); } &&
30495 { ac_try='test -z "$ac_c_werror_flag"
30496 || test ! -s conftest.err'
30497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498 (eval $ac_try) 2>&5
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; } &&
30502 { ac_try='test -s conftest.$ac_objext'
30503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504 (eval $ac_try) 2>&5
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
30508 ac_header_compiler=yes
30510 echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30513 ac_header_compiler=no
30515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30517 echo "${ECHO_T}$ac_header_compiler" >&6
30519 # Is the header present?
30520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30522 cat >conftest.$ac_ext <<_ACEOF
30525 cat confdefs.h >>conftest.$ac_ext
30526 cat >>conftest.$ac_ext <<_ACEOF
30527 /* end confdefs.h. */
30528 #include <$ac_header>
30530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30533 grep -v '^ *+' conftest.er1 >conftest.err
30535 cat conftest.err >&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); } >/dev/null; then
30538 if test -s conftest.err; then
30539 ac_cpp_err=$ac_c_preproc_warn_flag
30540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30547 if test -z "$ac_cpp_err"; then
30548 ac_header_preproc=yes
30550 echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30553 ac_header_preproc=no
30555 rm -f conftest.err conftest.$ac_ext
30556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30557 echo "${ECHO_T}$ac_header_preproc" >&6
30559 # So? What about this header?
30560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30566 ac_header_preproc=yes
30569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30583 ## ------------------------------------------ ##
30584 ## Report this to the AC_PACKAGE_NAME lists. ##
30585 ## ------------------------------------------ ##
30588 sed "s/^/$as_me: WARNING: /" >&2
30591 echo "$as_me:$LINENO: checking for $ac_header" >&5
30592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30594 echo $ECHO_N "(cached) $ECHO_C" >&6
30596 eval "$as_ac_Header=\$ac_header_preproc"
30598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30603 cat >>confdefs.h <<_ACEOF
30604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30614 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30615 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30616 if test "${ol_cv_pthread_create+set}" = set; then
30617 echo $ECHO_N "(cached) $ECHO_C" >&6
30620 if test "$cross_compiling" = yes; then
30621 cat >conftest.$ac_ext <<_ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h. */
30628 /* pthread test headers */
30629 #include <pthread.h>
30630 #if HAVE_PTHREADS < 7
30634 #define NULL (void*)0
30637 static void *task(p)
30640 return (void *) (p == NULL);
30647 /* pthread test function */
30648 #ifndef PTHREAD_CREATE_DETACHED
30649 #define PTHREAD_CREATE_DETACHED 1
30653 int detach = PTHREAD_CREATE_DETACHED;
30655 #if HAVE_PTHREADS > 4
30656 /* Final pthreads */
30657 pthread_attr_t attr;
30659 status = pthread_attr_init(&attr);
30660 if( status ) return status;
30662 #if HAVE_PTHREADS < 7
30663 status = pthread_attr_setdetachstate(&attr, &detach);
30664 if( status < 0 ) status = errno;
30666 status = pthread_attr_setdetachstate(&attr, detach);
30668 if( status ) return status;
30669 status = pthread_create( &t, &attr, task, NULL );
30670 #if HAVE_PTHREADS < 7
30671 if( status < 0 ) status = errno;
30673 if( status ) return status;
30675 /* Draft 4 pthreads */
30676 status = pthread_create( &t, pthread_attr_default, task, NULL );
30677 if( status ) return errno;
30679 /* give thread a chance to complete */
30680 /* it should remain joinable and hence detachable */
30683 status = pthread_detach( &t );
30684 if( status ) return errno;
30687 #ifdef HAVE_LINUX_THREADS
30688 pthread_kill_other_threads_np();
30697 rm -f conftest.$ac_objext conftest$ac_exeext
30698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30699 (eval $ac_link) 2>conftest.er1
30701 grep -v '^ *+' conftest.er1 >conftest.err
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } &&
30706 { ac_try='test -z "$ac_c_werror_flag"
30707 || test ! -s conftest.err'
30708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30709 (eval $ac_try) 2>&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); }; } &&
30713 { ac_try='test -s conftest$ac_exeext'
30714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30715 (eval $ac_try) 2>&5
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); }; }; then
30719 ol_cv_pthread_create=yes
30721 echo "$as_me: failed program was:" >&5
30722 sed 's/^/| /' conftest.$ac_ext >&5
30724 ol_cv_pthread_create=no
30726 rm -f conftest.err conftest.$ac_objext \
30727 conftest$ac_exeext conftest.$ac_ext
30729 cat >conftest.$ac_ext <<_ACEOF
30732 cat confdefs.h >>conftest.$ac_ext
30733 cat >>conftest.$ac_ext <<_ACEOF
30734 /* end confdefs.h. */
30736 /* pthread test headers */
30737 #include <pthread.h>
30738 #if HAVE_PTHREADS < 7
30742 #define NULL (void*)0
30745 static void *task(p)
30748 return (void *) (p == NULL);
30752 int main(argc, argv)
30757 /* pthread test function */
30758 #ifndef PTHREAD_CREATE_DETACHED
30759 #define PTHREAD_CREATE_DETACHED 1
30763 int detach = PTHREAD_CREATE_DETACHED;
30765 #if HAVE_PTHREADS > 4
30766 /* Final pthreads */
30767 pthread_attr_t attr;
30769 status = pthread_attr_init(&attr);
30770 if( status ) return status;
30772 #if HAVE_PTHREADS < 7
30773 status = pthread_attr_setdetachstate(&attr, &detach);
30774 if( status < 0 ) status = errno;
30776 status = pthread_attr_setdetachstate(&attr, detach);
30778 if( status ) return status;
30779 status = pthread_create( &t, &attr, task, NULL );
30780 #if HAVE_PTHREADS < 7
30781 if( status < 0 ) status = errno;
30783 if( status ) return status;
30785 /* Draft 4 pthreads */
30786 status = pthread_create( &t, pthread_attr_default, task, NULL );
30787 if( status ) return errno;
30789 /* give thread a chance to complete */
30790 /* it should remain joinable and hence detachable */
30793 status = pthread_detach( &t );
30794 if( status ) return errno;
30797 #ifdef HAVE_LINUX_THREADS
30798 pthread_kill_other_threads_np();
30806 rm -f conftest$ac_exeext
30807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30808 (eval $ac_link) 2>&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30813 (eval $ac_try) 2>&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; }; then
30817 ol_cv_pthread_create=yes
30819 echo "$as_me: program exited with status $ac_status" >&5
30820 echo "$as_me: failed program was:" >&5
30821 sed 's/^/| /' conftest.$ac_ext >&5
30823 ( exit $ac_status )
30824 ol_cv_pthread_create=no
30826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30829 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30830 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30832 if test $ol_cv_pthread_create != no ; then
30833 ol_link_threads=posix
30834 ol_link_pthreads=""
30837 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30838 if test "$ol_link_threads" = no ; then
30840 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30841 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30842 if test "${ol_cv_pthread_kthread+set}" = set; then
30843 echo $ECHO_N "(cached) $ECHO_C" >&6
30848 LIBS="-kthread $LIBS"
30850 if test "$cross_compiling" = yes; then
30851 cat >conftest.$ac_ext <<_ACEOF
30854 cat confdefs.h >>conftest.$ac_ext
30855 cat >>conftest.$ac_ext <<_ACEOF
30856 /* end confdefs.h. */
30858 /* pthread test headers */
30859 #include <pthread.h>
30860 #if HAVE_PTHREADS < 7
30864 #define NULL (void*)0
30867 static void *task(p)
30870 return (void *) (p == NULL);
30877 /* pthread test function */
30878 #ifndef PTHREAD_CREATE_DETACHED
30879 #define PTHREAD_CREATE_DETACHED 1
30883 int detach = PTHREAD_CREATE_DETACHED;
30885 #if HAVE_PTHREADS > 4
30886 /* Final pthreads */
30887 pthread_attr_t attr;
30889 status = pthread_attr_init(&attr);
30890 if( status ) return status;
30892 #if HAVE_PTHREADS < 7
30893 status = pthread_attr_setdetachstate(&attr, &detach);
30894 if( status < 0 ) status = errno;
30896 status = pthread_attr_setdetachstate(&attr, detach);
30898 if( status ) return status;
30899 status = pthread_create( &t, &attr, task, NULL );
30900 #if HAVE_PTHREADS < 7
30901 if( status < 0 ) status = errno;
30903 if( status ) return status;
30905 /* Draft 4 pthreads */
30906 status = pthread_create( &t, pthread_attr_default, task, NULL );
30907 if( status ) return errno;
30909 /* give thread a chance to complete */
30910 /* it should remain joinable and hence detachable */
30913 status = pthread_detach( &t );
30914 if( status ) return errno;
30917 #ifdef HAVE_LINUX_THREADS
30918 pthread_kill_other_threads_np();
30927 rm -f conftest.$ac_objext conftest$ac_exeext
30928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30929 (eval $ac_link) 2>conftest.er1
30931 grep -v '^ *+' conftest.er1 >conftest.err
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } &&
30936 { ac_try='test -z "$ac_c_werror_flag"
30937 || test ! -s conftest.err'
30938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30939 (eval $ac_try) 2>&5
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); }; } &&
30943 { ac_try='test -s conftest$ac_exeext'
30944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30945 (eval $ac_try) 2>&5
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); }; }; then
30949 ol_cv_pthread_kthread=yes
30951 echo "$as_me: failed program was:" >&5
30952 sed 's/^/| /' conftest.$ac_ext >&5
30954 ol_cv_pthread_kthread=no
30956 rm -f conftest.err conftest.$ac_objext \
30957 conftest$ac_exeext conftest.$ac_ext
30959 cat >conftest.$ac_ext <<_ACEOF
30962 cat confdefs.h >>conftest.$ac_ext
30963 cat >>conftest.$ac_ext <<_ACEOF
30964 /* end confdefs.h. */
30966 /* pthread test headers */
30967 #include <pthread.h>
30968 #if HAVE_PTHREADS < 7
30972 #define NULL (void*)0
30975 static void *task(p)
30978 return (void *) (p == NULL);
30982 int main(argc, argv)
30987 /* pthread test function */
30988 #ifndef PTHREAD_CREATE_DETACHED
30989 #define PTHREAD_CREATE_DETACHED 1
30993 int detach = PTHREAD_CREATE_DETACHED;
30995 #if HAVE_PTHREADS > 4
30996 /* Final pthreads */
30997 pthread_attr_t attr;
30999 status = pthread_attr_init(&attr);
31000 if( status ) return status;
31002 #if HAVE_PTHREADS < 7
31003 status = pthread_attr_setdetachstate(&attr, &detach);
31004 if( status < 0 ) status = errno;
31006 status = pthread_attr_setdetachstate(&attr, detach);
31008 if( status ) return status;
31009 status = pthread_create( &t, &attr, task, NULL );
31010 #if HAVE_PTHREADS < 7
31011 if( status < 0 ) status = errno;
31013 if( status ) return status;
31015 /* Draft 4 pthreads */
31016 status = pthread_create( &t, pthread_attr_default, task, NULL );
31017 if( status ) return errno;
31019 /* give thread a chance to complete */
31020 /* it should remain joinable and hence detachable */
31023 status = pthread_detach( &t );
31024 if( status ) return errno;
31027 #ifdef HAVE_LINUX_THREADS
31028 pthread_kill_other_threads_np();
31036 rm -f conftest$ac_exeext
31037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31038 (eval $ac_link) 2>&5
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31043 (eval $ac_try) 2>&5
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); }; }; then
31047 ol_cv_pthread_kthread=yes
31049 echo "$as_me: program exited with status $ac_status" >&5
31050 echo "$as_me: failed program was:" >&5
31051 sed 's/^/| /' conftest.$ac_ext >&5
31053 ( exit $ac_status )
31054 ol_cv_pthread_kthread=no
31056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31063 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
31064 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
31066 if test $ol_cv_pthread_kthread = yes ; then
31067 ol_link_pthreads="-kthread"
31068 ol_link_threads=posix
31072 # Pthread try link: -pthread (ol_cv_pthread_pthread)
31073 if test "$ol_link_threads" = no ; then
31075 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
31076 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
31077 if test "${ol_cv_pthread_pthread+set}" = set; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31083 LIBS="-pthread $LIBS"
31085 if test "$cross_compiling" = yes; then
31086 cat >conftest.$ac_ext <<_ACEOF
31089 cat confdefs.h >>conftest.$ac_ext
31090 cat >>conftest.$ac_ext <<_ACEOF
31091 /* end confdefs.h. */
31093 /* pthread test headers */
31094 #include <pthread.h>
31095 #if HAVE_PTHREADS < 7
31099 #define NULL (void*)0
31102 static void *task(p)
31105 return (void *) (p == NULL);
31112 /* pthread test function */
31113 #ifndef PTHREAD_CREATE_DETACHED
31114 #define PTHREAD_CREATE_DETACHED 1
31118 int detach = PTHREAD_CREATE_DETACHED;
31120 #if HAVE_PTHREADS > 4
31121 /* Final pthreads */
31122 pthread_attr_t attr;
31124 status = pthread_attr_init(&attr);
31125 if( status ) return status;
31127 #if HAVE_PTHREADS < 7
31128 status = pthread_attr_setdetachstate(&attr, &detach);
31129 if( status < 0 ) status = errno;
31131 status = pthread_attr_setdetachstate(&attr, detach);
31133 if( status ) return status;
31134 status = pthread_create( &t, &attr, task, NULL );
31135 #if HAVE_PTHREADS < 7
31136 if( status < 0 ) status = errno;
31138 if( status ) return status;
31140 /* Draft 4 pthreads */
31141 status = pthread_create( &t, pthread_attr_default, task, NULL );
31142 if( status ) return errno;
31144 /* give thread a chance to complete */
31145 /* it should remain joinable and hence detachable */
31148 status = pthread_detach( &t );
31149 if( status ) return errno;
31152 #ifdef HAVE_LINUX_THREADS
31153 pthread_kill_other_threads_np();
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31164 (eval $ac_link) 2>conftest.er1
31166 grep -v '^ *+' conftest.er1 >conftest.err
31168 cat conftest.err >&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); } &&
31171 { ac_try='test -z "$ac_c_werror_flag"
31172 || test ! -s conftest.err'
31173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174 (eval $ac_try) 2>&5
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; } &&
31178 { ac_try='test -s conftest$ac_exeext'
31179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180 (eval $ac_try) 2>&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
31184 ol_cv_pthread_pthread=yes
31186 echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31189 ol_cv_pthread_pthread=no
31191 rm -f conftest.err conftest.$ac_objext \
31192 conftest$ac_exeext conftest.$ac_ext
31194 cat >conftest.$ac_ext <<_ACEOF
31197 cat confdefs.h >>conftest.$ac_ext
31198 cat >>conftest.$ac_ext <<_ACEOF
31199 /* end confdefs.h. */
31201 /* pthread test headers */
31202 #include <pthread.h>
31203 #if HAVE_PTHREADS < 7
31207 #define NULL (void*)0
31210 static void *task(p)
31213 return (void *) (p == NULL);
31217 int main(argc, argv)
31222 /* pthread test function */
31223 #ifndef PTHREAD_CREATE_DETACHED
31224 #define PTHREAD_CREATE_DETACHED 1
31228 int detach = PTHREAD_CREATE_DETACHED;
31230 #if HAVE_PTHREADS > 4
31231 /* Final pthreads */
31232 pthread_attr_t attr;
31234 status = pthread_attr_init(&attr);
31235 if( status ) return status;
31237 #if HAVE_PTHREADS < 7
31238 status = pthread_attr_setdetachstate(&attr, &detach);
31239 if( status < 0 ) status = errno;
31241 status = pthread_attr_setdetachstate(&attr, detach);
31243 if( status ) return status;
31244 status = pthread_create( &t, &attr, task, NULL );
31245 #if HAVE_PTHREADS < 7
31246 if( status < 0 ) status = errno;
31248 if( status ) return status;
31250 /* Draft 4 pthreads */
31251 status = pthread_create( &t, pthread_attr_default, task, NULL );
31252 if( status ) return errno;
31254 /* give thread a chance to complete */
31255 /* it should remain joinable and hence detachable */
31258 status = pthread_detach( &t );
31259 if( status ) return errno;
31262 #ifdef HAVE_LINUX_THREADS
31263 pthread_kill_other_threads_np();
31271 rm -f conftest$ac_exeext
31272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31273 (eval $ac_link) 2>&5
31275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31278 (eval $ac_try) 2>&5
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); }; }; then
31282 ol_cv_pthread_pthread=yes
31284 echo "$as_me: program exited with status $ac_status" >&5
31285 echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31288 ( exit $ac_status )
31289 ol_cv_pthread_pthread=no
31291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31298 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31299 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31301 if test $ol_cv_pthread_pthread = yes ; then
31302 ol_link_pthreads="-pthread"
31303 ol_link_threads=posix
31307 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31308 if test "$ol_link_threads" = no ; then
31310 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31311 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31312 if test "${ol_cv_pthread_pthreads+set}" = set; then
31313 echo $ECHO_N "(cached) $ECHO_C" >&6
31318 LIBS="-pthreads $LIBS"
31320 if test "$cross_compiling" = yes; then
31321 cat >conftest.$ac_ext <<_ACEOF
31324 cat confdefs.h >>conftest.$ac_ext
31325 cat >>conftest.$ac_ext <<_ACEOF
31326 /* end confdefs.h. */
31328 /* pthread test headers */
31329 #include <pthread.h>
31330 #if HAVE_PTHREADS < 7
31334 #define NULL (void*)0
31337 static void *task(p)
31340 return (void *) (p == NULL);
31347 /* pthread test function */
31348 #ifndef PTHREAD_CREATE_DETACHED
31349 #define PTHREAD_CREATE_DETACHED 1
31353 int detach = PTHREAD_CREATE_DETACHED;
31355 #if HAVE_PTHREADS > 4
31356 /* Final pthreads */
31357 pthread_attr_t attr;
31359 status = pthread_attr_init(&attr);
31360 if( status ) return status;
31362 #if HAVE_PTHREADS < 7
31363 status = pthread_attr_setdetachstate(&attr, &detach);
31364 if( status < 0 ) status = errno;
31366 status = pthread_attr_setdetachstate(&attr, detach);
31368 if( status ) return status;
31369 status = pthread_create( &t, &attr, task, NULL );
31370 #if HAVE_PTHREADS < 7
31371 if( status < 0 ) status = errno;
31373 if( status ) return status;
31375 /* Draft 4 pthreads */
31376 status = pthread_create( &t, pthread_attr_default, task, NULL );
31377 if( status ) return errno;
31379 /* give thread a chance to complete */
31380 /* it should remain joinable and hence detachable */
31383 status = pthread_detach( &t );
31384 if( status ) return errno;
31387 #ifdef HAVE_LINUX_THREADS
31388 pthread_kill_other_threads_np();
31397 rm -f conftest.$ac_objext conftest$ac_exeext
31398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31399 (eval $ac_link) 2>conftest.er1
31401 grep -v '^ *+' conftest.er1 >conftest.err
31403 cat conftest.err >&5
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); } &&
31406 { ac_try='test -z "$ac_c_werror_flag"
31407 || test ! -s conftest.err'
31408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409 (eval $ac_try) 2>&5
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; } &&
31413 { ac_try='test -s conftest$ac_exeext'
31414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31415 (eval $ac_try) 2>&5
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); }; }; then
31419 ol_cv_pthread_pthreads=yes
31421 echo "$as_me: failed program was:" >&5
31422 sed 's/^/| /' conftest.$ac_ext >&5
31424 ol_cv_pthread_pthreads=no
31426 rm -f conftest.err conftest.$ac_objext \
31427 conftest$ac_exeext conftest.$ac_ext
31429 cat >conftest.$ac_ext <<_ACEOF
31432 cat confdefs.h >>conftest.$ac_ext
31433 cat >>conftest.$ac_ext <<_ACEOF
31434 /* end confdefs.h. */
31436 /* pthread test headers */
31437 #include <pthread.h>
31438 #if HAVE_PTHREADS < 7
31442 #define NULL (void*)0
31445 static void *task(p)
31448 return (void *) (p == NULL);
31452 int main(argc, argv)
31457 /* pthread test function */
31458 #ifndef PTHREAD_CREATE_DETACHED
31459 #define PTHREAD_CREATE_DETACHED 1
31463 int detach = PTHREAD_CREATE_DETACHED;
31465 #if HAVE_PTHREADS > 4
31466 /* Final pthreads */
31467 pthread_attr_t attr;
31469 status = pthread_attr_init(&attr);
31470 if( status ) return status;
31472 #if HAVE_PTHREADS < 7
31473 status = pthread_attr_setdetachstate(&attr, &detach);
31474 if( status < 0 ) status = errno;
31476 status = pthread_attr_setdetachstate(&attr, detach);
31478 if( status ) return status;
31479 status = pthread_create( &t, &attr, task, NULL );
31480 #if HAVE_PTHREADS < 7
31481 if( status < 0 ) status = errno;
31483 if( status ) return status;
31485 /* Draft 4 pthreads */
31486 status = pthread_create( &t, pthread_attr_default, task, NULL );
31487 if( status ) return errno;
31489 /* give thread a chance to complete */
31490 /* it should remain joinable and hence detachable */
31493 status = pthread_detach( &t );
31494 if( status ) return errno;
31497 #ifdef HAVE_LINUX_THREADS
31498 pthread_kill_other_threads_np();
31506 rm -f conftest$ac_exeext
31507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31508 (eval $ac_link) 2>&5
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31513 (eval $ac_try) 2>&5
31515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516 (exit $ac_status); }; }; then
31517 ol_cv_pthread_pthreads=yes
31519 echo "$as_me: program exited with status $ac_status" >&5
31520 echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31523 ( exit $ac_status )
31524 ol_cv_pthread_pthreads=no
31526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31533 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31534 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31536 if test $ol_cv_pthread_pthreads = yes ; then
31537 ol_link_pthreads="-pthreads"
31538 ol_link_threads=posix
31542 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31543 if test "$ol_link_threads" = no ; then
31545 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31546 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31547 if test "${ol_cv_pthread_mthreads+set}" = set; then
31548 echo $ECHO_N "(cached) $ECHO_C" >&6
31553 LIBS="-mthreads $LIBS"
31555 if test "$cross_compiling" = yes; then
31556 cat >conftest.$ac_ext <<_ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h. */
31563 /* pthread test headers */
31564 #include <pthread.h>
31565 #if HAVE_PTHREADS < 7
31569 #define NULL (void*)0
31572 static void *task(p)
31575 return (void *) (p == NULL);
31582 /* pthread test function */
31583 #ifndef PTHREAD_CREATE_DETACHED
31584 #define PTHREAD_CREATE_DETACHED 1
31588 int detach = PTHREAD_CREATE_DETACHED;
31590 #if HAVE_PTHREADS > 4
31591 /* Final pthreads */
31592 pthread_attr_t attr;
31594 status = pthread_attr_init(&attr);
31595 if( status ) return status;
31597 #if HAVE_PTHREADS < 7
31598 status = pthread_attr_setdetachstate(&attr, &detach);
31599 if( status < 0 ) status = errno;
31601 status = pthread_attr_setdetachstate(&attr, detach);
31603 if( status ) return status;
31604 status = pthread_create( &t, &attr, task, NULL );
31605 #if HAVE_PTHREADS < 7
31606 if( status < 0 ) status = errno;
31608 if( status ) return status;
31610 /* Draft 4 pthreads */
31611 status = pthread_create( &t, pthread_attr_default, task, NULL );
31612 if( status ) return errno;
31614 /* give thread a chance to complete */
31615 /* it should remain joinable and hence detachable */
31618 status = pthread_detach( &t );
31619 if( status ) return errno;
31622 #ifdef HAVE_LINUX_THREADS
31623 pthread_kill_other_threads_np();
31632 rm -f conftest.$ac_objext conftest$ac_exeext
31633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31634 (eval $ac_link) 2>conftest.er1
31636 grep -v '^ *+' conftest.er1 >conftest.err
31638 cat conftest.err >&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); } &&
31641 { ac_try='test -z "$ac_c_werror_flag"
31642 || test ! -s conftest.err'
31643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31644 (eval $ac_try) 2>&5
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); }; } &&
31648 { ac_try='test -s conftest$ac_exeext'
31649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31650 (eval $ac_try) 2>&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); }; }; then
31654 ol_cv_pthread_mthreads=yes
31656 echo "$as_me: failed program was:" >&5
31657 sed 's/^/| /' conftest.$ac_ext >&5
31659 ol_cv_pthread_mthreads=no
31661 rm -f conftest.err conftest.$ac_objext \
31662 conftest$ac_exeext conftest.$ac_ext
31664 cat >conftest.$ac_ext <<_ACEOF
31667 cat confdefs.h >>conftest.$ac_ext
31668 cat >>conftest.$ac_ext <<_ACEOF
31669 /* end confdefs.h. */
31671 /* pthread test headers */
31672 #include <pthread.h>
31673 #if HAVE_PTHREADS < 7
31677 #define NULL (void*)0
31680 static void *task(p)
31683 return (void *) (p == NULL);
31687 int main(argc, argv)
31692 /* pthread test function */
31693 #ifndef PTHREAD_CREATE_DETACHED
31694 #define PTHREAD_CREATE_DETACHED 1
31698 int detach = PTHREAD_CREATE_DETACHED;
31700 #if HAVE_PTHREADS > 4
31701 /* Final pthreads */
31702 pthread_attr_t attr;
31704 status = pthread_attr_init(&attr);
31705 if( status ) return status;
31707 #if HAVE_PTHREADS < 7
31708 status = pthread_attr_setdetachstate(&attr, &detach);
31709 if( status < 0 ) status = errno;
31711 status = pthread_attr_setdetachstate(&attr, detach);
31713 if( status ) return status;
31714 status = pthread_create( &t, &attr, task, NULL );
31715 #if HAVE_PTHREADS < 7
31716 if( status < 0 ) status = errno;
31718 if( status ) return status;
31720 /* Draft 4 pthreads */
31721 status = pthread_create( &t, pthread_attr_default, task, NULL );
31722 if( status ) return errno;
31724 /* give thread a chance to complete */
31725 /* it should remain joinable and hence detachable */
31728 status = pthread_detach( &t );
31729 if( status ) return errno;
31732 #ifdef HAVE_LINUX_THREADS
31733 pthread_kill_other_threads_np();
31741 rm -f conftest$ac_exeext
31742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31743 (eval $ac_link) 2>&5
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748 (eval $ac_try) 2>&5
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); }; }; then
31752 ol_cv_pthread_mthreads=yes
31754 echo "$as_me: program exited with status $ac_status" >&5
31755 echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31758 ( exit $ac_status )
31759 ol_cv_pthread_mthreads=no
31761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31768 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31769 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31771 if test $ol_cv_pthread_mthreads = yes ; then
31772 ol_link_pthreads="-mthreads"
31773 ol_link_threads=posix
31777 # Pthread try link: -thread (ol_cv_pthread_thread)
31778 if test "$ol_link_threads" = no ; then
31780 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31781 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31782 if test "${ol_cv_pthread_thread+set}" = set; then
31783 echo $ECHO_N "(cached) $ECHO_C" >&6
31788 LIBS="-thread $LIBS"
31790 if test "$cross_compiling" = yes; then
31791 cat >conftest.$ac_ext <<_ACEOF
31794 cat confdefs.h >>conftest.$ac_ext
31795 cat >>conftest.$ac_ext <<_ACEOF
31796 /* end confdefs.h. */
31798 /* pthread test headers */
31799 #include <pthread.h>
31800 #if HAVE_PTHREADS < 7
31804 #define NULL (void*)0
31807 static void *task(p)
31810 return (void *) (p == NULL);
31817 /* pthread test function */
31818 #ifndef PTHREAD_CREATE_DETACHED
31819 #define PTHREAD_CREATE_DETACHED 1
31823 int detach = PTHREAD_CREATE_DETACHED;
31825 #if HAVE_PTHREADS > 4
31826 /* Final pthreads */
31827 pthread_attr_t attr;
31829 status = pthread_attr_init(&attr);
31830 if( status ) return status;
31832 #if HAVE_PTHREADS < 7
31833 status = pthread_attr_setdetachstate(&attr, &detach);
31834 if( status < 0 ) status = errno;
31836 status = pthread_attr_setdetachstate(&attr, detach);
31838 if( status ) return status;
31839 status = pthread_create( &t, &attr, task, NULL );
31840 #if HAVE_PTHREADS < 7
31841 if( status < 0 ) status = errno;
31843 if( status ) return status;
31845 /* Draft 4 pthreads */
31846 status = pthread_create( &t, pthread_attr_default, task, NULL );
31847 if( status ) return errno;
31849 /* give thread a chance to complete */
31850 /* it should remain joinable and hence detachable */
31853 status = pthread_detach( &t );
31854 if( status ) return errno;
31857 #ifdef HAVE_LINUX_THREADS
31858 pthread_kill_other_threads_np();
31867 rm -f conftest.$ac_objext conftest$ac_exeext
31868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31869 (eval $ac_link) 2>conftest.er1
31871 grep -v '^ *+' conftest.er1 >conftest.err
31873 cat conftest.err >&5
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); } &&
31876 { ac_try='test -z "$ac_c_werror_flag"
31877 || test ! -s conftest.err'
31878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31879 (eval $ac_try) 2>&5
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); }; } &&
31883 { ac_try='test -s conftest$ac_exeext'
31884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31885 (eval $ac_try) 2>&5
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); }; }; then
31889 ol_cv_pthread_thread=yes
31891 echo "$as_me: failed program was:" >&5
31892 sed 's/^/| /' conftest.$ac_ext >&5
31894 ol_cv_pthread_thread=no
31896 rm -f conftest.err conftest.$ac_objext \
31897 conftest$ac_exeext conftest.$ac_ext
31899 cat >conftest.$ac_ext <<_ACEOF
31902 cat confdefs.h >>conftest.$ac_ext
31903 cat >>conftest.$ac_ext <<_ACEOF
31904 /* end confdefs.h. */
31906 /* pthread test headers */
31907 #include <pthread.h>
31908 #if HAVE_PTHREADS < 7
31912 #define NULL (void*)0
31915 static void *task(p)
31918 return (void *) (p == NULL);
31922 int main(argc, argv)
31927 /* pthread test function */
31928 #ifndef PTHREAD_CREATE_DETACHED
31929 #define PTHREAD_CREATE_DETACHED 1
31933 int detach = PTHREAD_CREATE_DETACHED;
31935 #if HAVE_PTHREADS > 4
31936 /* Final pthreads */
31937 pthread_attr_t attr;
31939 status = pthread_attr_init(&attr);
31940 if( status ) return status;
31942 #if HAVE_PTHREADS < 7
31943 status = pthread_attr_setdetachstate(&attr, &detach);
31944 if( status < 0 ) status = errno;
31946 status = pthread_attr_setdetachstate(&attr, detach);
31948 if( status ) return status;
31949 status = pthread_create( &t, &attr, task, NULL );
31950 #if HAVE_PTHREADS < 7
31951 if( status < 0 ) status = errno;
31953 if( status ) return status;
31955 /* Draft 4 pthreads */
31956 status = pthread_create( &t, pthread_attr_default, task, NULL );
31957 if( status ) return errno;
31959 /* give thread a chance to complete */
31960 /* it should remain joinable and hence detachable */
31963 status = pthread_detach( &t );
31964 if( status ) return errno;
31967 #ifdef HAVE_LINUX_THREADS
31968 pthread_kill_other_threads_np();
31976 rm -f conftest$ac_exeext
31977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31978 (eval $ac_link) 2>&5
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31983 (eval $ac_try) 2>&5
31985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986 (exit $ac_status); }; }; then
31987 ol_cv_pthread_thread=yes
31989 echo "$as_me: program exited with status $ac_status" >&5
31990 echo "$as_me: failed program was:" >&5
31991 sed 's/^/| /' conftest.$ac_ext >&5
31993 ( exit $ac_status )
31994 ol_cv_pthread_thread=no
31996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32003 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
32004 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
32006 if test $ol_cv_pthread_thread = yes ; then
32007 ol_link_pthreads="-thread"
32008 ol_link_threads=posix
32013 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
32014 if test "$ol_link_threads" = no ; then
32015 # try -lpthread -lmach -lexc -lc_r
32016 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
32017 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
32018 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
32019 echo $ECHO_N "(cached) $ECHO_C" >&6
32024 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
32026 if test "$cross_compiling" = yes; then
32027 cat >conftest.$ac_ext <<_ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h. */
32034 /* pthread test headers */
32035 #include <pthread.h>
32036 #if HAVE_PTHREADS < 7
32040 #define NULL (void*)0
32043 static void *task(p)
32046 return (void *) (p == NULL);
32053 /* pthread test function */
32054 #ifndef PTHREAD_CREATE_DETACHED
32055 #define PTHREAD_CREATE_DETACHED 1
32059 int detach = PTHREAD_CREATE_DETACHED;
32061 #if HAVE_PTHREADS > 4
32062 /* Final pthreads */
32063 pthread_attr_t attr;
32065 status = pthread_attr_init(&attr);
32066 if( status ) return status;
32068 #if HAVE_PTHREADS < 7
32069 status = pthread_attr_setdetachstate(&attr, &detach);
32070 if( status < 0 ) status = errno;
32072 status = pthread_attr_setdetachstate(&attr, detach);
32074 if( status ) return status;
32075 status = pthread_create( &t, &attr, task, NULL );
32076 #if HAVE_PTHREADS < 7
32077 if( status < 0 ) status = errno;
32079 if( status ) return status;
32081 /* Draft 4 pthreads */
32082 status = pthread_create( &t, pthread_attr_default, task, NULL );
32083 if( status ) return errno;
32085 /* give thread a chance to complete */
32086 /* it should remain joinable and hence detachable */
32089 status = pthread_detach( &t );
32090 if( status ) return errno;
32093 #ifdef HAVE_LINUX_THREADS
32094 pthread_kill_other_threads_np();
32103 rm -f conftest.$ac_objext conftest$ac_exeext
32104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32105 (eval $ac_link) 2>conftest.er1
32107 grep -v '^ *+' conftest.er1 >conftest.err
32109 cat conftest.err >&5
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); } &&
32112 { ac_try='test -z "$ac_c_werror_flag"
32113 || test ! -s conftest.err'
32114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32115 (eval $ac_try) 2>&5
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); }; } &&
32119 { ac_try='test -s conftest$ac_exeext'
32120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32121 (eval $ac_try) 2>&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; }; then
32125 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32127 echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32130 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32132 rm -f conftest.err conftest.$ac_objext \
32133 conftest$ac_exeext conftest.$ac_ext
32135 cat >conftest.$ac_ext <<_ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h. */
32142 /* pthread test headers */
32143 #include <pthread.h>
32144 #if HAVE_PTHREADS < 7
32148 #define NULL (void*)0
32151 static void *task(p)
32154 return (void *) (p == NULL);
32158 int main(argc, argv)
32163 /* pthread test function */
32164 #ifndef PTHREAD_CREATE_DETACHED
32165 #define PTHREAD_CREATE_DETACHED 1
32169 int detach = PTHREAD_CREATE_DETACHED;
32171 #if HAVE_PTHREADS > 4
32172 /* Final pthreads */
32173 pthread_attr_t attr;
32175 status = pthread_attr_init(&attr);
32176 if( status ) return status;
32178 #if HAVE_PTHREADS < 7
32179 status = pthread_attr_setdetachstate(&attr, &detach);
32180 if( status < 0 ) status = errno;
32182 status = pthread_attr_setdetachstate(&attr, detach);
32184 if( status ) return status;
32185 status = pthread_create( &t, &attr, task, NULL );
32186 #if HAVE_PTHREADS < 7
32187 if( status < 0 ) status = errno;
32189 if( status ) return status;
32191 /* Draft 4 pthreads */
32192 status = pthread_create( &t, pthread_attr_default, task, NULL );
32193 if( status ) return errno;
32195 /* give thread a chance to complete */
32196 /* it should remain joinable and hence detachable */
32199 status = pthread_detach( &t );
32200 if( status ) return errno;
32203 #ifdef HAVE_LINUX_THREADS
32204 pthread_kill_other_threads_np();
32212 rm -f conftest$ac_exeext
32213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32214 (eval $ac_link) 2>&5
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32219 (eval $ac_try) 2>&5
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); }; }; then
32223 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32225 echo "$as_me: program exited with status $ac_status" >&5
32226 echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32229 ( exit $ac_status )
32230 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32239 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32240 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32242 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32243 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32244 ol_link_threads=posix
32248 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32249 if test "$ol_link_threads" = no ; then
32250 # try -lpthread -lmach -lexc
32251 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32252 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32253 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32254 echo $ECHO_N "(cached) $ECHO_C" >&6
32259 LIBS="-lpthread -lmach -lexc $LIBS"
32261 if test "$cross_compiling" = yes; then
32262 cat >conftest.$ac_ext <<_ACEOF
32265 cat confdefs.h >>conftest.$ac_ext
32266 cat >>conftest.$ac_ext <<_ACEOF
32267 /* end confdefs.h. */
32269 /* pthread test headers */
32270 #include <pthread.h>
32271 #if HAVE_PTHREADS < 7
32275 #define NULL (void*)0
32278 static void *task(p)
32281 return (void *) (p == NULL);
32288 /* pthread test function */
32289 #ifndef PTHREAD_CREATE_DETACHED
32290 #define PTHREAD_CREATE_DETACHED 1
32294 int detach = PTHREAD_CREATE_DETACHED;
32296 #if HAVE_PTHREADS > 4
32297 /* Final pthreads */
32298 pthread_attr_t attr;
32300 status = pthread_attr_init(&attr);
32301 if( status ) return status;
32303 #if HAVE_PTHREADS < 7
32304 status = pthread_attr_setdetachstate(&attr, &detach);
32305 if( status < 0 ) status = errno;
32307 status = pthread_attr_setdetachstate(&attr, detach);
32309 if( status ) return status;
32310 status = pthread_create( &t, &attr, task, NULL );
32311 #if HAVE_PTHREADS < 7
32312 if( status < 0 ) status = errno;
32314 if( status ) return status;
32316 /* Draft 4 pthreads */
32317 status = pthread_create( &t, pthread_attr_default, task, NULL );
32318 if( status ) return errno;
32320 /* give thread a chance to complete */
32321 /* it should remain joinable and hence detachable */
32324 status = pthread_detach( &t );
32325 if( status ) return errno;
32328 #ifdef HAVE_LINUX_THREADS
32329 pthread_kill_other_threads_np();
32338 rm -f conftest.$ac_objext conftest$ac_exeext
32339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32340 (eval $ac_link) 2>conftest.er1
32342 grep -v '^ *+' conftest.er1 >conftest.err
32344 cat conftest.err >&5
32345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); } &&
32347 { ac_try='test -z "$ac_c_werror_flag"
32348 || test ! -s conftest.err'
32349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32350 (eval $ac_try) 2>&5
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); }; } &&
32354 { ac_try='test -s conftest$ac_exeext'
32355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32356 (eval $ac_try) 2>&5
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; }; then
32360 ol_cv_pthread_lpthread_lmach_lexc=yes
32362 echo "$as_me: failed program was:" >&5
32363 sed 's/^/| /' conftest.$ac_ext >&5
32365 ol_cv_pthread_lpthread_lmach_lexc=no
32367 rm -f conftest.err conftest.$ac_objext \
32368 conftest$ac_exeext conftest.$ac_ext
32370 cat >conftest.$ac_ext <<_ACEOF
32373 cat confdefs.h >>conftest.$ac_ext
32374 cat >>conftest.$ac_ext <<_ACEOF
32375 /* end confdefs.h. */
32377 /* pthread test headers */
32378 #include <pthread.h>
32379 #if HAVE_PTHREADS < 7
32383 #define NULL (void*)0
32386 static void *task(p)
32389 return (void *) (p == NULL);
32393 int main(argc, argv)
32398 /* pthread test function */
32399 #ifndef PTHREAD_CREATE_DETACHED
32400 #define PTHREAD_CREATE_DETACHED 1
32404 int detach = PTHREAD_CREATE_DETACHED;
32406 #if HAVE_PTHREADS > 4
32407 /* Final pthreads */
32408 pthread_attr_t attr;
32410 status = pthread_attr_init(&attr);
32411 if( status ) return status;
32413 #if HAVE_PTHREADS < 7
32414 status = pthread_attr_setdetachstate(&attr, &detach);
32415 if( status < 0 ) status = errno;
32417 status = pthread_attr_setdetachstate(&attr, detach);
32419 if( status ) return status;
32420 status = pthread_create( &t, &attr, task, NULL );
32421 #if HAVE_PTHREADS < 7
32422 if( status < 0 ) status = errno;
32424 if( status ) return status;
32426 /* Draft 4 pthreads */
32427 status = pthread_create( &t, pthread_attr_default, task, NULL );
32428 if( status ) return errno;
32430 /* give thread a chance to complete */
32431 /* it should remain joinable and hence detachable */
32434 status = pthread_detach( &t );
32435 if( status ) return errno;
32438 #ifdef HAVE_LINUX_THREADS
32439 pthread_kill_other_threads_np();
32447 rm -f conftest$ac_exeext
32448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32449 (eval $ac_link) 2>&5
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; }; then
32458 ol_cv_pthread_lpthread_lmach_lexc=yes
32460 echo "$as_me: program exited with status $ac_status" >&5
32461 echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32464 ( exit $ac_status )
32465 ol_cv_pthread_lpthread_lmach_lexc=no
32467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32474 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32475 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32477 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32478 ol_link_pthreads="-lpthread -lmach -lexc"
32479 ol_link_threads=posix
32484 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32485 if test "$ol_link_threads" = no ; then
32486 # try -lpthread -Wl,-woff,85
32487 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32488 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32489 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32490 echo $ECHO_N "(cached) $ECHO_C" >&6
32495 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32497 if test "$cross_compiling" = yes; then
32498 cat >conftest.$ac_ext <<_ACEOF
32501 cat confdefs.h >>conftest.$ac_ext
32502 cat >>conftest.$ac_ext <<_ACEOF
32503 /* end confdefs.h. */
32505 /* pthread test headers */
32506 #include <pthread.h>
32507 #if HAVE_PTHREADS < 7
32511 #define NULL (void*)0
32514 static void *task(p)
32517 return (void *) (p == NULL);
32524 /* pthread test function */
32525 #ifndef PTHREAD_CREATE_DETACHED
32526 #define PTHREAD_CREATE_DETACHED 1
32530 int detach = PTHREAD_CREATE_DETACHED;
32532 #if HAVE_PTHREADS > 4
32533 /* Final pthreads */
32534 pthread_attr_t attr;
32536 status = pthread_attr_init(&attr);
32537 if( status ) return status;
32539 #if HAVE_PTHREADS < 7
32540 status = pthread_attr_setdetachstate(&attr, &detach);
32541 if( status < 0 ) status = errno;
32543 status = pthread_attr_setdetachstate(&attr, detach);
32545 if( status ) return status;
32546 status = pthread_create( &t, &attr, task, NULL );
32547 #if HAVE_PTHREADS < 7
32548 if( status < 0 ) status = errno;
32550 if( status ) return status;
32552 /* Draft 4 pthreads */
32553 status = pthread_create( &t, pthread_attr_default, task, NULL );
32554 if( status ) return errno;
32556 /* give thread a chance to complete */
32557 /* it should remain joinable and hence detachable */
32560 status = pthread_detach( &t );
32561 if( status ) return errno;
32564 #ifdef HAVE_LINUX_THREADS
32565 pthread_kill_other_threads_np();
32574 rm -f conftest.$ac_objext conftest$ac_exeext
32575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32576 (eval $ac_link) 2>conftest.er1
32578 grep -v '^ *+' conftest.er1 >conftest.err
32580 cat conftest.err >&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); } &&
32583 { ac_try='test -z "$ac_c_werror_flag"
32584 || test ! -s conftest.err'
32585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32586 (eval $ac_try) 2>&5
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); }; } &&
32590 { ac_try='test -s conftest$ac_exeext'
32591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32592 (eval $ac_try) 2>&5
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); }; }; then
32596 ol_cv_pthread_lib_lpthread_woff=yes
32598 echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32601 ol_cv_pthread_lib_lpthread_woff=no
32603 rm -f conftest.err conftest.$ac_objext \
32604 conftest$ac_exeext conftest.$ac_ext
32606 cat >conftest.$ac_ext <<_ACEOF
32609 cat confdefs.h >>conftest.$ac_ext
32610 cat >>conftest.$ac_ext <<_ACEOF
32611 /* end confdefs.h. */
32613 /* pthread test headers */
32614 #include <pthread.h>
32615 #if HAVE_PTHREADS < 7
32619 #define NULL (void*)0
32622 static void *task(p)
32625 return (void *) (p == NULL);
32629 int main(argc, argv)
32634 /* pthread test function */
32635 #ifndef PTHREAD_CREATE_DETACHED
32636 #define PTHREAD_CREATE_DETACHED 1
32640 int detach = PTHREAD_CREATE_DETACHED;
32642 #if HAVE_PTHREADS > 4
32643 /* Final pthreads */
32644 pthread_attr_t attr;
32646 status = pthread_attr_init(&attr);
32647 if( status ) return status;
32649 #if HAVE_PTHREADS < 7
32650 status = pthread_attr_setdetachstate(&attr, &detach);
32651 if( status < 0 ) status = errno;
32653 status = pthread_attr_setdetachstate(&attr, detach);
32655 if( status ) return status;
32656 status = pthread_create( &t, &attr, task, NULL );
32657 #if HAVE_PTHREADS < 7
32658 if( status < 0 ) status = errno;
32660 if( status ) return status;
32662 /* Draft 4 pthreads */
32663 status = pthread_create( &t, pthread_attr_default, task, NULL );
32664 if( status ) return errno;
32666 /* give thread a chance to complete */
32667 /* it should remain joinable and hence detachable */
32670 status = pthread_detach( &t );
32671 if( status ) return errno;
32674 #ifdef HAVE_LINUX_THREADS
32675 pthread_kill_other_threads_np();
32683 rm -f conftest$ac_exeext
32684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32685 (eval $ac_link) 2>&5
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32690 (eval $ac_try) 2>&5
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; }; then
32694 ol_cv_pthread_lib_lpthread_woff=yes
32696 echo "$as_me: program exited with status $ac_status" >&5
32697 echo "$as_me: failed program was:" >&5
32698 sed 's/^/| /' conftest.$ac_ext >&5
32700 ( exit $ac_status )
32701 ol_cv_pthread_lib_lpthread_woff=no
32703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32710 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32711 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32713 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32714 ol_link_pthreads="-lpthread -Wl,-woff,85"
32715 ol_link_threads=posix
32720 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32721 if test "$ol_link_threads" = no ; then
32723 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32724 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32725 if test "${ol_cv_pthread_lpthread+set}" = set; then
32726 echo $ECHO_N "(cached) $ECHO_C" >&6
32731 LIBS="-lpthread $LIBS"
32733 if test "$cross_compiling" = yes; then
32734 cat >conftest.$ac_ext <<_ACEOF
32737 cat confdefs.h >>conftest.$ac_ext
32738 cat >>conftest.$ac_ext <<_ACEOF
32739 /* end confdefs.h. */
32741 /* pthread test headers */
32742 #include <pthread.h>
32743 #if HAVE_PTHREADS < 7
32747 #define NULL (void*)0
32750 static void *task(p)
32753 return (void *) (p == NULL);
32760 /* pthread test function */
32761 #ifndef PTHREAD_CREATE_DETACHED
32762 #define PTHREAD_CREATE_DETACHED 1
32766 int detach = PTHREAD_CREATE_DETACHED;
32768 #if HAVE_PTHREADS > 4
32769 /* Final pthreads */
32770 pthread_attr_t attr;
32772 status = pthread_attr_init(&attr);
32773 if( status ) return status;
32775 #if HAVE_PTHREADS < 7
32776 status = pthread_attr_setdetachstate(&attr, &detach);
32777 if( status < 0 ) status = errno;
32779 status = pthread_attr_setdetachstate(&attr, detach);
32781 if( status ) return status;
32782 status = pthread_create( &t, &attr, task, NULL );
32783 #if HAVE_PTHREADS < 7
32784 if( status < 0 ) status = errno;
32786 if( status ) return status;
32788 /* Draft 4 pthreads */
32789 status = pthread_create( &t, pthread_attr_default, task, NULL );
32790 if( status ) return errno;
32792 /* give thread a chance to complete */
32793 /* it should remain joinable and hence detachable */
32796 status = pthread_detach( &t );
32797 if( status ) return errno;
32800 #ifdef HAVE_LINUX_THREADS
32801 pthread_kill_other_threads_np();
32810 rm -f conftest.$ac_objext conftest$ac_exeext
32811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32812 (eval $ac_link) 2>conftest.er1
32814 grep -v '^ *+' conftest.er1 >conftest.err
32816 cat conftest.err >&5
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); } &&
32819 { ac_try='test -z "$ac_c_werror_flag"
32820 || test ! -s conftest.err'
32821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32822 (eval $ac_try) 2>&5
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; } &&
32826 { ac_try='test -s conftest$ac_exeext'
32827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828 (eval $ac_try) 2>&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); }; }; then
32832 ol_cv_pthread_lpthread=yes
32834 echo "$as_me: failed program was:" >&5
32835 sed 's/^/| /' conftest.$ac_ext >&5
32837 ol_cv_pthread_lpthread=no
32839 rm -f conftest.err conftest.$ac_objext \
32840 conftest$ac_exeext conftest.$ac_ext
32842 cat >conftest.$ac_ext <<_ACEOF
32845 cat confdefs.h >>conftest.$ac_ext
32846 cat >>conftest.$ac_ext <<_ACEOF
32847 /* end confdefs.h. */
32849 /* pthread test headers */
32850 #include <pthread.h>
32851 #if HAVE_PTHREADS < 7
32855 #define NULL (void*)0
32858 static void *task(p)
32861 return (void *) (p == NULL);
32865 int main(argc, argv)
32870 /* pthread test function */
32871 #ifndef PTHREAD_CREATE_DETACHED
32872 #define PTHREAD_CREATE_DETACHED 1
32876 int detach = PTHREAD_CREATE_DETACHED;
32878 #if HAVE_PTHREADS > 4
32879 /* Final pthreads */
32880 pthread_attr_t attr;
32882 status = pthread_attr_init(&attr);
32883 if( status ) return status;
32885 #if HAVE_PTHREADS < 7
32886 status = pthread_attr_setdetachstate(&attr, &detach);
32887 if( status < 0 ) status = errno;
32889 status = pthread_attr_setdetachstate(&attr, detach);
32891 if( status ) return status;
32892 status = pthread_create( &t, &attr, task, NULL );
32893 #if HAVE_PTHREADS < 7
32894 if( status < 0 ) status = errno;
32896 if( status ) return status;
32898 /* Draft 4 pthreads */
32899 status = pthread_create( &t, pthread_attr_default, task, NULL );
32900 if( status ) return errno;
32902 /* give thread a chance to complete */
32903 /* it should remain joinable and hence detachable */
32906 status = pthread_detach( &t );
32907 if( status ) return errno;
32910 #ifdef HAVE_LINUX_THREADS
32911 pthread_kill_other_threads_np();
32919 rm -f conftest$ac_exeext
32920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32921 (eval $ac_link) 2>&5
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32926 (eval $ac_try) 2>&5
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; }; then
32930 ol_cv_pthread_lpthread=yes
32932 echo "$as_me: program exited with status $ac_status" >&5
32933 echo "$as_me: failed program was:" >&5
32934 sed 's/^/| /' conftest.$ac_ext >&5
32936 ( exit $ac_status )
32937 ol_cv_pthread_lpthread=no
32939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32946 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32947 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32949 if test $ol_cv_pthread_lpthread = yes ; then
32950 ol_link_pthreads="-lpthread"
32951 ol_link_threads=posix
32955 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32956 if test "$ol_link_threads" = no ; then
32958 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32959 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32960 if test "${ol_cv_pthread_lc_r+set}" = set; then
32961 echo $ECHO_N "(cached) $ECHO_C" >&6
32968 if test "$cross_compiling" = yes; then
32969 cat >conftest.$ac_ext <<_ACEOF
32972 cat confdefs.h >>conftest.$ac_ext
32973 cat >>conftest.$ac_ext <<_ACEOF
32974 /* end confdefs.h. */
32976 /* pthread test headers */
32977 #include <pthread.h>
32978 #if HAVE_PTHREADS < 7
32982 #define NULL (void*)0
32985 static void *task(p)
32988 return (void *) (p == NULL);
32995 /* pthread test function */
32996 #ifndef PTHREAD_CREATE_DETACHED
32997 #define PTHREAD_CREATE_DETACHED 1
33001 int detach = PTHREAD_CREATE_DETACHED;
33003 #if HAVE_PTHREADS > 4
33004 /* Final pthreads */
33005 pthread_attr_t attr;
33007 status = pthread_attr_init(&attr);
33008 if( status ) return status;
33010 #if HAVE_PTHREADS < 7
33011 status = pthread_attr_setdetachstate(&attr, &detach);
33012 if( status < 0 ) status = errno;
33014 status = pthread_attr_setdetachstate(&attr, detach);
33016 if( status ) return status;
33017 status = pthread_create( &t, &attr, task, NULL );
33018 #if HAVE_PTHREADS < 7
33019 if( status < 0 ) status = errno;
33021 if( status ) return status;
33023 /* Draft 4 pthreads */
33024 status = pthread_create( &t, pthread_attr_default, task, NULL );
33025 if( status ) return errno;
33027 /* give thread a chance to complete */
33028 /* it should remain joinable and hence detachable */
33031 status = pthread_detach( &t );
33032 if( status ) return errno;
33035 #ifdef HAVE_LINUX_THREADS
33036 pthread_kill_other_threads_np();
33045 rm -f conftest.$ac_objext conftest$ac_exeext
33046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33047 (eval $ac_link) 2>conftest.er1
33049 grep -v '^ *+' conftest.er1 >conftest.err
33051 cat conftest.err >&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); } &&
33054 { ac_try='test -z "$ac_c_werror_flag"
33055 || test ! -s conftest.err'
33056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 (eval $ac_try) 2>&5
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; } &&
33061 { ac_try='test -s conftest$ac_exeext'
33062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33063 (eval $ac_try) 2>&5
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; }; then
33067 ol_cv_pthread_lc_r=yes
33069 echo "$as_me: failed program was:" >&5
33070 sed 's/^/| /' conftest.$ac_ext >&5
33072 ol_cv_pthread_lc_r=no
33074 rm -f conftest.err conftest.$ac_objext \
33075 conftest$ac_exeext conftest.$ac_ext
33077 cat >conftest.$ac_ext <<_ACEOF
33080 cat confdefs.h >>conftest.$ac_ext
33081 cat >>conftest.$ac_ext <<_ACEOF
33082 /* end confdefs.h. */
33084 /* pthread test headers */
33085 #include <pthread.h>
33086 #if HAVE_PTHREADS < 7
33090 #define NULL (void*)0
33093 static void *task(p)
33096 return (void *) (p == NULL);
33100 int main(argc, argv)
33105 /* pthread test function */
33106 #ifndef PTHREAD_CREATE_DETACHED
33107 #define PTHREAD_CREATE_DETACHED 1
33111 int detach = PTHREAD_CREATE_DETACHED;
33113 #if HAVE_PTHREADS > 4
33114 /* Final pthreads */
33115 pthread_attr_t attr;
33117 status = pthread_attr_init(&attr);
33118 if( status ) return status;
33120 #if HAVE_PTHREADS < 7
33121 status = pthread_attr_setdetachstate(&attr, &detach);
33122 if( status < 0 ) status = errno;
33124 status = pthread_attr_setdetachstate(&attr, detach);
33126 if( status ) return status;
33127 status = pthread_create( &t, &attr, task, NULL );
33128 #if HAVE_PTHREADS < 7
33129 if( status < 0 ) status = errno;
33131 if( status ) return status;
33133 /* Draft 4 pthreads */
33134 status = pthread_create( &t, pthread_attr_default, task, NULL );
33135 if( status ) return errno;
33137 /* give thread a chance to complete */
33138 /* it should remain joinable and hence detachable */
33141 status = pthread_detach( &t );
33142 if( status ) return errno;
33145 #ifdef HAVE_LINUX_THREADS
33146 pthread_kill_other_threads_np();
33154 rm -f conftest$ac_exeext
33155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33156 (eval $ac_link) 2>&5
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33161 (eval $ac_try) 2>&5
33163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164 (exit $ac_status); }; }; then
33165 ol_cv_pthread_lc_r=yes
33167 echo "$as_me: program exited with status $ac_status" >&5
33168 echo "$as_me: failed program was:" >&5
33169 sed 's/^/| /' conftest.$ac_ext >&5
33171 ( exit $ac_status )
33172 ol_cv_pthread_lc_r=no
33174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33181 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33182 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33184 if test $ol_cv_pthread_lc_r = yes ; then
33185 ol_link_pthreads="-lc_r"
33186 ol_link_threads=posix
33191 # Pthread try link: -threads (ol_cv_pthread_threads)
33192 if test "$ol_link_threads" = no ; then
33194 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33195 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33196 if test "${ol_cv_pthread_threads+set}" = set; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33202 LIBS="-threads $LIBS"
33204 if test "$cross_compiling" = yes; then
33205 cat >conftest.$ac_ext <<_ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h. */
33212 /* pthread test headers */
33213 #include <pthread.h>
33214 #if HAVE_PTHREADS < 7
33218 #define NULL (void*)0
33221 static void *task(p)
33224 return (void *) (p == NULL);
33231 /* pthread test function */
33232 #ifndef PTHREAD_CREATE_DETACHED
33233 #define PTHREAD_CREATE_DETACHED 1
33237 int detach = PTHREAD_CREATE_DETACHED;
33239 #if HAVE_PTHREADS > 4
33240 /* Final pthreads */
33241 pthread_attr_t attr;
33243 status = pthread_attr_init(&attr);
33244 if( status ) return status;
33246 #if HAVE_PTHREADS < 7
33247 status = pthread_attr_setdetachstate(&attr, &detach);
33248 if( status < 0 ) status = errno;
33250 status = pthread_attr_setdetachstate(&attr, detach);
33252 if( status ) return status;
33253 status = pthread_create( &t, &attr, task, NULL );
33254 #if HAVE_PTHREADS < 7
33255 if( status < 0 ) status = errno;
33257 if( status ) return status;
33259 /* Draft 4 pthreads */
33260 status = pthread_create( &t, pthread_attr_default, task, NULL );
33261 if( status ) return errno;
33263 /* give thread a chance to complete */
33264 /* it should remain joinable and hence detachable */
33267 status = pthread_detach( &t );
33268 if( status ) return errno;
33271 #ifdef HAVE_LINUX_THREADS
33272 pthread_kill_other_threads_np();
33281 rm -f conftest.$ac_objext conftest$ac_exeext
33282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33283 (eval $ac_link) 2>conftest.er1
33285 grep -v '^ *+' conftest.er1 >conftest.err
33287 cat conftest.err >&5
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); } &&
33290 { ac_try='test -z "$ac_c_werror_flag"
33291 || test ! -s conftest.err'
33292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33293 (eval $ac_try) 2>&5
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; } &&
33297 { ac_try='test -s conftest$ac_exeext'
33298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33299 (eval $ac_try) 2>&5
33301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302 (exit $ac_status); }; }; then
33303 ol_cv_pthread_threads=yes
33305 echo "$as_me: failed program was:" >&5
33306 sed 's/^/| /' conftest.$ac_ext >&5
33308 ol_cv_pthread_threads=no
33310 rm -f conftest.err conftest.$ac_objext \
33311 conftest$ac_exeext conftest.$ac_ext
33313 cat >conftest.$ac_ext <<_ACEOF
33316 cat confdefs.h >>conftest.$ac_ext
33317 cat >>conftest.$ac_ext <<_ACEOF
33318 /* end confdefs.h. */
33320 /* pthread test headers */
33321 #include <pthread.h>
33322 #if HAVE_PTHREADS < 7
33326 #define NULL (void*)0
33329 static void *task(p)
33332 return (void *) (p == NULL);
33336 int main(argc, argv)
33341 /* pthread test function */
33342 #ifndef PTHREAD_CREATE_DETACHED
33343 #define PTHREAD_CREATE_DETACHED 1
33347 int detach = PTHREAD_CREATE_DETACHED;
33349 #if HAVE_PTHREADS > 4
33350 /* Final pthreads */
33351 pthread_attr_t attr;
33353 status = pthread_attr_init(&attr);
33354 if( status ) return status;
33356 #if HAVE_PTHREADS < 7
33357 status = pthread_attr_setdetachstate(&attr, &detach);
33358 if( status < 0 ) status = errno;
33360 status = pthread_attr_setdetachstate(&attr, detach);
33362 if( status ) return status;
33363 status = pthread_create( &t, &attr, task, NULL );
33364 #if HAVE_PTHREADS < 7
33365 if( status < 0 ) status = errno;
33367 if( status ) return status;
33369 /* Draft 4 pthreads */
33370 status = pthread_create( &t, pthread_attr_default, task, NULL );
33371 if( status ) return errno;
33373 /* give thread a chance to complete */
33374 /* it should remain joinable and hence detachable */
33377 status = pthread_detach( &t );
33378 if( status ) return errno;
33381 #ifdef HAVE_LINUX_THREADS
33382 pthread_kill_other_threads_np();
33390 rm -f conftest$ac_exeext
33391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33392 (eval $ac_link) 2>&5
33394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33397 (eval $ac_try) 2>&5
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); }; }; then
33401 ol_cv_pthread_threads=yes
33403 echo "$as_me: program exited with status $ac_status" >&5
33404 echo "$as_me: failed program was:" >&5
33405 sed 's/^/| /' conftest.$ac_ext >&5
33407 ( exit $ac_status )
33408 ol_cv_pthread_threads=no
33410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33417 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33418 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33420 if test $ol_cv_pthread_threads = yes ; then
33421 ol_link_pthreads="-threads"
33422 ol_link_threads=posix
33427 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33428 if test "$ol_link_threads" = no ; then
33429 # try -lpthreads -lmach -lexc -lc_r
33430 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33431 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33432 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33433 echo $ECHO_N "(cached) $ECHO_C" >&6
33438 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33440 if test "$cross_compiling" = yes; then
33441 cat >conftest.$ac_ext <<_ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h. */
33448 /* pthread test headers */
33449 #include <pthread.h>
33450 #if HAVE_PTHREADS < 7
33454 #define NULL (void*)0
33457 static void *task(p)
33460 return (void *) (p == NULL);
33467 /* pthread test function */
33468 #ifndef PTHREAD_CREATE_DETACHED
33469 #define PTHREAD_CREATE_DETACHED 1
33473 int detach = PTHREAD_CREATE_DETACHED;
33475 #if HAVE_PTHREADS > 4
33476 /* Final pthreads */
33477 pthread_attr_t attr;
33479 status = pthread_attr_init(&attr);
33480 if( status ) return status;
33482 #if HAVE_PTHREADS < 7
33483 status = pthread_attr_setdetachstate(&attr, &detach);
33484 if( status < 0 ) status = errno;
33486 status = pthread_attr_setdetachstate(&attr, detach);
33488 if( status ) return status;
33489 status = pthread_create( &t, &attr, task, NULL );
33490 #if HAVE_PTHREADS < 7
33491 if( status < 0 ) status = errno;
33493 if( status ) return status;
33495 /* Draft 4 pthreads */
33496 status = pthread_create( &t, pthread_attr_default, task, NULL );
33497 if( status ) return errno;
33499 /* give thread a chance to complete */
33500 /* it should remain joinable and hence detachable */
33503 status = pthread_detach( &t );
33504 if( status ) return errno;
33507 #ifdef HAVE_LINUX_THREADS
33508 pthread_kill_other_threads_np();
33517 rm -f conftest.$ac_objext conftest$ac_exeext
33518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33519 (eval $ac_link) 2>conftest.er1
33521 grep -v '^ *+' conftest.er1 >conftest.err
33523 cat conftest.err >&5
33524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 (exit $ac_status); } &&
33526 { ac_try='test -z "$ac_c_werror_flag"
33527 || test ! -s conftest.err'
33528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33529 (eval $ac_try) 2>&5
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); }; } &&
33533 { ac_try='test -s conftest$ac_exeext'
33534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33535 (eval $ac_try) 2>&5
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); }; }; then
33539 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33541 echo "$as_me: failed program was:" >&5
33542 sed 's/^/| /' conftest.$ac_ext >&5
33544 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33546 rm -f conftest.err conftest.$ac_objext \
33547 conftest$ac_exeext conftest.$ac_ext
33549 cat >conftest.$ac_ext <<_ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h. */
33556 /* pthread test headers */
33557 #include <pthread.h>
33558 #if HAVE_PTHREADS < 7
33562 #define NULL (void*)0
33565 static void *task(p)
33568 return (void *) (p == NULL);
33572 int main(argc, argv)
33577 /* pthread test function */
33578 #ifndef PTHREAD_CREATE_DETACHED
33579 #define PTHREAD_CREATE_DETACHED 1
33583 int detach = PTHREAD_CREATE_DETACHED;
33585 #if HAVE_PTHREADS > 4
33586 /* Final pthreads */
33587 pthread_attr_t attr;
33589 status = pthread_attr_init(&attr);
33590 if( status ) return status;
33592 #if HAVE_PTHREADS < 7
33593 status = pthread_attr_setdetachstate(&attr, &detach);
33594 if( status < 0 ) status = errno;
33596 status = pthread_attr_setdetachstate(&attr, detach);
33598 if( status ) return status;
33599 status = pthread_create( &t, &attr, task, NULL );
33600 #if HAVE_PTHREADS < 7
33601 if( status < 0 ) status = errno;
33603 if( status ) return status;
33605 /* Draft 4 pthreads */
33606 status = pthread_create( &t, pthread_attr_default, task, NULL );
33607 if( status ) return errno;
33609 /* give thread a chance to complete */
33610 /* it should remain joinable and hence detachable */
33613 status = pthread_detach( &t );
33614 if( status ) return errno;
33617 #ifdef HAVE_LINUX_THREADS
33618 pthread_kill_other_threads_np();
33626 rm -f conftest$ac_exeext
33627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33628 (eval $ac_link) 2>&5
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33633 (eval $ac_try) 2>&5
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); }; }; then
33637 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33639 echo "$as_me: program exited with status $ac_status" >&5
33640 echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33643 ( exit $ac_status )
33644 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33653 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33654 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33656 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33657 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33658 ol_link_threads=posix
33662 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33663 if test "$ol_link_threads" = no ; then
33664 # try -lpthreads -lmach -lexc
33665 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33666 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33667 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33668 echo $ECHO_N "(cached) $ECHO_C" >&6
33673 LIBS="-lpthreads -lmach -lexc $LIBS"
33675 if test "$cross_compiling" = yes; then
33676 cat >conftest.$ac_ext <<_ACEOF
33679 cat confdefs.h >>conftest.$ac_ext
33680 cat >>conftest.$ac_ext <<_ACEOF
33681 /* end confdefs.h. */
33683 /* pthread test headers */
33684 #include <pthread.h>
33685 #if HAVE_PTHREADS < 7
33689 #define NULL (void*)0
33692 static void *task(p)
33695 return (void *) (p == NULL);
33702 /* pthread test function */
33703 #ifndef PTHREAD_CREATE_DETACHED
33704 #define PTHREAD_CREATE_DETACHED 1
33708 int detach = PTHREAD_CREATE_DETACHED;
33710 #if HAVE_PTHREADS > 4
33711 /* Final pthreads */
33712 pthread_attr_t attr;
33714 status = pthread_attr_init(&attr);
33715 if( status ) return status;
33717 #if HAVE_PTHREADS < 7
33718 status = pthread_attr_setdetachstate(&attr, &detach);
33719 if( status < 0 ) status = errno;
33721 status = pthread_attr_setdetachstate(&attr, detach);
33723 if( status ) return status;
33724 status = pthread_create( &t, &attr, task, NULL );
33725 #if HAVE_PTHREADS < 7
33726 if( status < 0 ) status = errno;
33728 if( status ) return status;
33730 /* Draft 4 pthreads */
33731 status = pthread_create( &t, pthread_attr_default, task, NULL );
33732 if( status ) return errno;
33734 /* give thread a chance to complete */
33735 /* it should remain joinable and hence detachable */
33738 status = pthread_detach( &t );
33739 if( status ) return errno;
33742 #ifdef HAVE_LINUX_THREADS
33743 pthread_kill_other_threads_np();
33752 rm -f conftest.$ac_objext conftest$ac_exeext
33753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33754 (eval $ac_link) 2>conftest.er1
33756 grep -v '^ *+' conftest.er1 >conftest.err
33758 cat conftest.err >&5
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); } &&
33761 { ac_try='test -z "$ac_c_werror_flag"
33762 || test ! -s conftest.err'
33763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33764 (eval $ac_try) 2>&5
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; } &&
33768 { ac_try='test -s conftest$ac_exeext'
33769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33770 (eval $ac_try) 2>&5
33772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773 (exit $ac_status); }; }; then
33774 ol_cv_pthread_lpthreads_lmach_lexc=yes
33776 echo "$as_me: failed program was:" >&5
33777 sed 's/^/| /' conftest.$ac_ext >&5
33779 ol_cv_pthread_lpthreads_lmach_lexc=no
33781 rm -f conftest.err conftest.$ac_objext \
33782 conftest$ac_exeext conftest.$ac_ext
33784 cat >conftest.$ac_ext <<_ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h. */
33791 /* pthread test headers */
33792 #include <pthread.h>
33793 #if HAVE_PTHREADS < 7
33797 #define NULL (void*)0
33800 static void *task(p)
33803 return (void *) (p == NULL);
33807 int main(argc, argv)
33812 /* pthread test function */
33813 #ifndef PTHREAD_CREATE_DETACHED
33814 #define PTHREAD_CREATE_DETACHED 1
33818 int detach = PTHREAD_CREATE_DETACHED;
33820 #if HAVE_PTHREADS > 4
33821 /* Final pthreads */
33822 pthread_attr_t attr;
33824 status = pthread_attr_init(&attr);
33825 if( status ) return status;
33827 #if HAVE_PTHREADS < 7
33828 status = pthread_attr_setdetachstate(&attr, &detach);
33829 if( status < 0 ) status = errno;
33831 status = pthread_attr_setdetachstate(&attr, detach);
33833 if( status ) return status;
33834 status = pthread_create( &t, &attr, task, NULL );
33835 #if HAVE_PTHREADS < 7
33836 if( status < 0 ) status = errno;
33838 if( status ) return status;
33840 /* Draft 4 pthreads */
33841 status = pthread_create( &t, pthread_attr_default, task, NULL );
33842 if( status ) return errno;
33844 /* give thread a chance to complete */
33845 /* it should remain joinable and hence detachable */
33848 status = pthread_detach( &t );
33849 if( status ) return errno;
33852 #ifdef HAVE_LINUX_THREADS
33853 pthread_kill_other_threads_np();
33861 rm -f conftest$ac_exeext
33862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33863 (eval $ac_link) 2>&5
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33868 (eval $ac_try) 2>&5
33870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871 (exit $ac_status); }; }; then
33872 ol_cv_pthread_lpthreads_lmach_lexc=yes
33874 echo "$as_me: program exited with status $ac_status" >&5
33875 echo "$as_me: failed program was:" >&5
33876 sed 's/^/| /' conftest.$ac_ext >&5
33878 ( exit $ac_status )
33879 ol_cv_pthread_lpthreads_lmach_lexc=no
33881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33888 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33889 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33891 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33892 ol_link_pthreads="-lpthreads -lmach -lexc"
33893 ol_link_threads=posix
33897 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33898 if test "$ol_link_threads" = no ; then
33899 # try -lpthreads -lexc
33900 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33901 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33902 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33908 LIBS="-lpthreads -lexc $LIBS"
33910 if test "$cross_compiling" = yes; then
33911 cat >conftest.$ac_ext <<_ACEOF
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h. */
33918 /* pthread test headers */
33919 #include <pthread.h>
33920 #if HAVE_PTHREADS < 7
33924 #define NULL (void*)0
33927 static void *task(p)
33930 return (void *) (p == NULL);
33937 /* pthread test function */
33938 #ifndef PTHREAD_CREATE_DETACHED
33939 #define PTHREAD_CREATE_DETACHED 1
33943 int detach = PTHREAD_CREATE_DETACHED;
33945 #if HAVE_PTHREADS > 4
33946 /* Final pthreads */
33947 pthread_attr_t attr;
33949 status = pthread_attr_init(&attr);
33950 if( status ) return status;
33952 #if HAVE_PTHREADS < 7
33953 status = pthread_attr_setdetachstate(&attr, &detach);
33954 if( status < 0 ) status = errno;
33956 status = pthread_attr_setdetachstate(&attr, detach);
33958 if( status ) return status;
33959 status = pthread_create( &t, &attr, task, NULL );
33960 #if HAVE_PTHREADS < 7
33961 if( status < 0 ) status = errno;
33963 if( status ) return status;
33965 /* Draft 4 pthreads */
33966 status = pthread_create( &t, pthread_attr_default, task, NULL );
33967 if( status ) return errno;
33969 /* give thread a chance to complete */
33970 /* it should remain joinable and hence detachable */
33973 status = pthread_detach( &t );
33974 if( status ) return errno;
33977 #ifdef HAVE_LINUX_THREADS
33978 pthread_kill_other_threads_np();
33987 rm -f conftest.$ac_objext conftest$ac_exeext
33988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33989 (eval $ac_link) 2>conftest.er1
33991 grep -v '^ *+' conftest.er1 >conftest.err
33993 cat conftest.err >&5
33994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995 (exit $ac_status); } &&
33996 { ac_try='test -z "$ac_c_werror_flag"
33997 || test ! -s conftest.err'
33998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999 (eval $ac_try) 2>&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; } &&
34003 { ac_try='test -s conftest$ac_exeext'
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; }; then
34009 ol_cv_pthread_lpthreads_lexc=yes
34011 echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34014 ol_cv_pthread_lpthreads_lexc=no
34016 rm -f conftest.err conftest.$ac_objext \
34017 conftest$ac_exeext conftest.$ac_ext
34019 cat >conftest.$ac_ext <<_ACEOF
34022 cat confdefs.h >>conftest.$ac_ext
34023 cat >>conftest.$ac_ext <<_ACEOF
34024 /* end confdefs.h. */
34026 /* pthread test headers */
34027 #include <pthread.h>
34028 #if HAVE_PTHREADS < 7
34032 #define NULL (void*)0
34035 static void *task(p)
34038 return (void *) (p == NULL);
34042 int main(argc, argv)
34047 /* pthread test function */
34048 #ifndef PTHREAD_CREATE_DETACHED
34049 #define PTHREAD_CREATE_DETACHED 1
34053 int detach = PTHREAD_CREATE_DETACHED;
34055 #if HAVE_PTHREADS > 4
34056 /* Final pthreads */
34057 pthread_attr_t attr;
34059 status = pthread_attr_init(&attr);
34060 if( status ) return status;
34062 #if HAVE_PTHREADS < 7
34063 status = pthread_attr_setdetachstate(&attr, &detach);
34064 if( status < 0 ) status = errno;
34066 status = pthread_attr_setdetachstate(&attr, detach);
34068 if( status ) return status;
34069 status = pthread_create( &t, &attr, task, NULL );
34070 #if HAVE_PTHREADS < 7
34071 if( status < 0 ) status = errno;
34073 if( status ) return status;
34075 /* Draft 4 pthreads */
34076 status = pthread_create( &t, pthread_attr_default, task, NULL );
34077 if( status ) return errno;
34079 /* give thread a chance to complete */
34080 /* it should remain joinable and hence detachable */
34083 status = pthread_detach( &t );
34084 if( status ) return errno;
34087 #ifdef HAVE_LINUX_THREADS
34088 pthread_kill_other_threads_np();
34096 rm -f conftest$ac_exeext
34097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34098 (eval $ac_link) 2>&5
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103 (eval $ac_try) 2>&5
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; }; then
34107 ol_cv_pthread_lpthreads_lexc=yes
34109 echo "$as_me: program exited with status $ac_status" >&5
34110 echo "$as_me: failed program was:" >&5
34111 sed 's/^/| /' conftest.$ac_ext >&5
34113 ( exit $ac_status )
34114 ol_cv_pthread_lpthreads_lexc=no
34116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34123 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
34124 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
34126 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
34127 ol_link_pthreads="-lpthreads -lexc"
34128 ol_link_threads=posix
34133 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
34134 if test "$ol_link_threads" = no ; then
34136 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
34137 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
34138 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
34139 echo $ECHO_N "(cached) $ECHO_C" >&6
34144 LIBS="-lpthreads $LIBS"
34146 if test "$cross_compiling" = yes; then
34147 cat >conftest.$ac_ext <<_ACEOF
34150 cat confdefs.h >>conftest.$ac_ext
34151 cat >>conftest.$ac_ext <<_ACEOF
34152 /* end confdefs.h. */
34154 /* pthread test headers */
34155 #include <pthread.h>
34156 #if HAVE_PTHREADS < 7
34160 #define NULL (void*)0
34163 static void *task(p)
34166 return (void *) (p == NULL);
34173 /* pthread test function */
34174 #ifndef PTHREAD_CREATE_DETACHED
34175 #define PTHREAD_CREATE_DETACHED 1
34179 int detach = PTHREAD_CREATE_DETACHED;
34181 #if HAVE_PTHREADS > 4
34182 /* Final pthreads */
34183 pthread_attr_t attr;
34185 status = pthread_attr_init(&attr);
34186 if( status ) return status;
34188 #if HAVE_PTHREADS < 7
34189 status = pthread_attr_setdetachstate(&attr, &detach);
34190 if( status < 0 ) status = errno;
34192 status = pthread_attr_setdetachstate(&attr, detach);
34194 if( status ) return status;
34195 status = pthread_create( &t, &attr, task, NULL );
34196 #if HAVE_PTHREADS < 7
34197 if( status < 0 ) status = errno;
34199 if( status ) return status;
34201 /* Draft 4 pthreads */
34202 status = pthread_create( &t, pthread_attr_default, task, NULL );
34203 if( status ) return errno;
34205 /* give thread a chance to complete */
34206 /* it should remain joinable and hence detachable */
34209 status = pthread_detach( &t );
34210 if( status ) return errno;
34213 #ifdef HAVE_LINUX_THREADS
34214 pthread_kill_other_threads_np();
34223 rm -f conftest.$ac_objext conftest$ac_exeext
34224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34225 (eval $ac_link) 2>conftest.er1
34227 grep -v '^ *+' conftest.er1 >conftest.err
34229 cat conftest.err >&5
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); } &&
34232 { ac_try='test -z "$ac_c_werror_flag"
34233 || test ! -s conftest.err'
34234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34235 (eval $ac_try) 2>&5
34237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238 (exit $ac_status); }; } &&
34239 { ac_try='test -s conftest$ac_exeext'
34240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241 (eval $ac_try) 2>&5
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); }; }; then
34245 ol_cv_pthread_lib_lpthreads=yes
34247 echo "$as_me: failed program was:" >&5
34248 sed 's/^/| /' conftest.$ac_ext >&5
34250 ol_cv_pthread_lib_lpthreads=no
34252 rm -f conftest.err conftest.$ac_objext \
34253 conftest$ac_exeext conftest.$ac_ext
34255 cat >conftest.$ac_ext <<_ACEOF
34258 cat confdefs.h >>conftest.$ac_ext
34259 cat >>conftest.$ac_ext <<_ACEOF
34260 /* end confdefs.h. */
34262 /* pthread test headers */
34263 #include <pthread.h>
34264 #if HAVE_PTHREADS < 7
34268 #define NULL (void*)0
34271 static void *task(p)
34274 return (void *) (p == NULL);
34278 int main(argc, argv)
34283 /* pthread test function */
34284 #ifndef PTHREAD_CREATE_DETACHED
34285 #define PTHREAD_CREATE_DETACHED 1
34289 int detach = PTHREAD_CREATE_DETACHED;
34291 #if HAVE_PTHREADS > 4
34292 /* Final pthreads */
34293 pthread_attr_t attr;
34295 status = pthread_attr_init(&attr);
34296 if( status ) return status;
34298 #if HAVE_PTHREADS < 7
34299 status = pthread_attr_setdetachstate(&attr, &detach);
34300 if( status < 0 ) status = errno;
34302 status = pthread_attr_setdetachstate(&attr, detach);
34304 if( status ) return status;
34305 status = pthread_create( &t, &attr, task, NULL );
34306 #if HAVE_PTHREADS < 7
34307 if( status < 0 ) status = errno;
34309 if( status ) return status;
34311 /* Draft 4 pthreads */
34312 status = pthread_create( &t, pthread_attr_default, task, NULL );
34313 if( status ) return errno;
34315 /* give thread a chance to complete */
34316 /* it should remain joinable and hence detachable */
34319 status = pthread_detach( &t );
34320 if( status ) return errno;
34323 #ifdef HAVE_LINUX_THREADS
34324 pthread_kill_other_threads_np();
34332 rm -f conftest$ac_exeext
34333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34334 (eval $ac_link) 2>&5
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339 (eval $ac_try) 2>&5
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); }; }; then
34343 ol_cv_pthread_lib_lpthreads=yes
34345 echo "$as_me: program exited with status $ac_status" >&5
34346 echo "$as_me: failed program was:" >&5
34347 sed 's/^/| /' conftest.$ac_ext >&5
34349 ( exit $ac_status )
34350 ol_cv_pthread_lib_lpthreads=no
34352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34359 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34360 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34362 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34363 ol_link_pthreads="-lpthreads"
34364 ol_link_threads=posix
34369 if test $ol_link_threads != no ; then
34370 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34372 save_CPPFLAGS="$CPPFLAGS"
34374 LIBS="$LTHREAD_LIBS $LIBS"
34379 for ac_func in sched_yield pthread_yield thr_yield
34381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34382 echo "$as_me:$LINENO: checking for $ac_func" >&5
34383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34384 if eval "test \"\${$as_ac_var+set}\" = set"; then
34385 echo $ECHO_N "(cached) $ECHO_C" >&6
34387 cat >conftest.$ac_ext <<_ACEOF
34390 cat confdefs.h >>conftest.$ac_ext
34391 cat >>conftest.$ac_ext <<_ACEOF
34392 /* end confdefs.h. */
34393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34395 #define $ac_func innocuous_$ac_func
34397 /* System header to define __stub macros and hopefully few prototypes,
34398 which can conflict with char $ac_func (); below.
34399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34400 <limits.h> exists even on freestanding compilers. */
34403 # include <limits.h>
34405 # include <assert.h>
34410 /* Override any gcc2 internal prototype to avoid an error. */
34415 /* We use char because int might match the return type of a gcc2
34416 builtin and then its argument prototype would still apply. */
34418 /* The GNU C library defines this for functions which it implements
34419 to always fail with ENOSYS. Some functions are actually named
34420 something starting with __ and the normal name is an alias. */
34421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34424 char (*f) () = $ac_func;
34433 return f != $ac_func;
34438 rm -f conftest.$ac_objext conftest$ac_exeext
34439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34440 (eval $ac_link) 2>conftest.er1
34442 grep -v '^ *+' conftest.er1 >conftest.err
34444 cat conftest.err >&5
34445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); } &&
34447 { ac_try='test -z "$ac_c_werror_flag"
34448 || test ! -s conftest.err'
34449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34450 (eval $ac_try) 2>&5
34452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453 (exit $ac_status); }; } &&
34454 { ac_try='test -s conftest$ac_exeext'
34455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34456 (eval $ac_try) 2>&5
34458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459 (exit $ac_status); }; }; then
34460 eval "$as_ac_var=yes"
34462 echo "$as_me: failed program was:" >&5
34463 sed 's/^/| /' conftest.$ac_ext >&5
34465 eval "$as_ac_var=no"
34467 rm -f conftest.err conftest.$ac_objext \
34468 conftest$ac_exeext conftest.$ac_ext
34470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34472 if test `eval echo '${'$as_ac_var'}'` = yes; then
34473 cat >>confdefs.h <<_ACEOF
34474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34481 if test $ac_cv_func_sched_yield = no -a \
34482 $ac_cv_func_pthread_yield = no -a \
34483 $ac_cv_func_thr_yield = no ; then
34484 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34485 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34486 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34487 echo $ECHO_N "(cached) $ECHO_C" >&6
34489 ac_check_lib_save_LIBS=$LIBS
34491 cat >conftest.$ac_ext <<_ACEOF
34494 cat confdefs.h >>conftest.$ac_ext
34495 cat >>conftest.$ac_ext <<_ACEOF
34496 /* end confdefs.h. */
34498 /* Override any gcc2 internal prototype to avoid an error. */
34502 /* We use char because int might match the return type of a gcc2
34503 builtin and then its argument prototype would still apply. */
34504 char sched_yield ();
34513 rm -f conftest.$ac_objext conftest$ac_exeext
34514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34515 (eval $ac_link) 2>conftest.er1
34517 grep -v '^ *+' conftest.er1 >conftest.err
34519 cat conftest.err >&5
34520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); } &&
34522 { ac_try='test -z "$ac_c_werror_flag"
34523 || test ! -s conftest.err'
34524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34525 (eval $ac_try) 2>&5
34527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528 (exit $ac_status); }; } &&
34529 { ac_try='test -s conftest$ac_exeext'
34530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34531 (eval $ac_try) 2>&5
34533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534 (exit $ac_status); }; }; then
34535 ac_cv_lib_rt_sched_yield=yes
34537 echo "$as_me: failed program was:" >&5
34538 sed 's/^/| /' conftest.$ac_ext >&5
34540 ac_cv_lib_rt_sched_yield=no
34542 rm -f conftest.err conftest.$ac_objext \
34543 conftest$ac_exeext conftest.$ac_ext
34544 LIBS=$ac_check_lib_save_LIBS
34546 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34547 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34548 if test $ac_cv_lib_rt_sched_yield = yes; then
34549 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34551 cat >>confdefs.h <<\_ACEOF
34552 #define HAVE_SCHED_YIELD 1
34555 ac_cv_func_sched_yield=yes
34557 ac_cv_func_sched_yield=no
34561 if test $ac_cv_func_sched_yield = no -a \
34562 $ac_cv_func_pthread_yield = no -a \
34563 "$ac_cv_func_thr_yield" = no ; then
34564 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34565 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34570 for ac_func in pthread_kill pthread_rwlock_destroy
34572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34573 echo "$as_me:$LINENO: checking for $ac_func" >&5
34574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34575 if eval "test \"\${$as_ac_var+set}\" = set"; then
34576 echo $ECHO_N "(cached) $ECHO_C" >&6
34578 cat >conftest.$ac_ext <<_ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h. */
34584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34586 #define $ac_func innocuous_$ac_func
34588 /* System header to define __stub macros and hopefully few prototypes,
34589 which can conflict with char $ac_func (); below.
34590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34591 <limits.h> exists even on freestanding compilers. */
34594 # include <limits.h>
34596 # include <assert.h>
34601 /* Override any gcc2 internal prototype to avoid an error. */
34606 /* We use char because int might match the return type of a gcc2
34607 builtin and then its argument prototype would still apply. */
34609 /* The GNU C library defines this for functions which it implements
34610 to always fail with ENOSYS. Some functions are actually named
34611 something starting with __ and the normal name is an alias. */
34612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34615 char (*f) () = $ac_func;
34624 return f != $ac_func;
34629 rm -f conftest.$ac_objext conftest$ac_exeext
34630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34631 (eval $ac_link) 2>conftest.er1
34633 grep -v '^ *+' conftest.er1 >conftest.err
34635 cat conftest.err >&5
34636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637 (exit $ac_status); } &&
34638 { ac_try='test -z "$ac_c_werror_flag"
34639 || test ! -s conftest.err'
34640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34641 (eval $ac_try) 2>&5
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); }; } &&
34645 { ac_try='test -s conftest$ac_exeext'
34646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34647 (eval $ac_try) 2>&5
34649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650 (exit $ac_status); }; }; then
34651 eval "$as_ac_var=yes"
34653 echo "$as_me: failed program was:" >&5
34654 sed 's/^/| /' conftest.$ac_ext >&5
34656 eval "$as_ac_var=no"
34658 rm -f conftest.err conftest.$ac_objext \
34659 conftest$ac_exeext conftest.$ac_ext
34661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34663 if test `eval echo '${'$as_ac_var'}'` = yes; then
34664 cat >>confdefs.h <<_ACEOF
34665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34672 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34673 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34674 if test "${ol_cv_func_pthread_detach+set}" = set; then
34675 echo $ECHO_N "(cached) $ECHO_C" >&6
34678 cat >conftest.$ac_ext <<_ACEOF
34681 cat confdefs.h >>conftest.$ac_ext
34682 cat >>conftest.$ac_ext <<_ACEOF
34683 /* end confdefs.h. */
34685 #include <pthread.h>
34687 #define NULL (void*)0
34693 pthread_detach(NULL);
34698 rm -f conftest.$ac_objext conftest$ac_exeext
34699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34700 (eval $ac_link) 2>conftest.er1
34702 grep -v '^ *+' conftest.er1 >conftest.err
34704 cat conftest.err >&5
34705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706 (exit $ac_status); } &&
34707 { ac_try='test -z "$ac_c_werror_flag"
34708 || test ! -s conftest.err'
34709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34710 (eval $ac_try) 2>&5
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); }; } &&
34714 { ac_try='test -s conftest$ac_exeext'
34715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716 (eval $ac_try) 2>&5
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); }; }; then
34720 ol_cv_func_pthread_detach=yes
34722 echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34725 ol_cv_func_pthread_detach=no
34727 rm -f conftest.err conftest.$ac_objext \
34728 conftest$ac_exeext conftest.$ac_ext
34731 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34732 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34734 if test $ol_cv_func_pthread_detach = no ; then
34735 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34736 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34737 { (exit 1); exit 1; }; }
34741 cat >>confdefs.h <<\_ACEOF
34742 #define HAVE_PTHREAD_DETACH 1
34751 pthread_setconcurrency \
34752 pthread_getconcurrency \
34753 thr_setconcurrency \
34754 thr_getconcurrency \
34757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34758 echo "$as_me:$LINENO: checking for $ac_func" >&5
34759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34760 if eval "test \"\${$as_ac_var+set}\" = set"; then
34761 echo $ECHO_N "(cached) $ECHO_C" >&6
34763 cat >conftest.$ac_ext <<_ACEOF
34766 cat confdefs.h >>conftest.$ac_ext
34767 cat >>conftest.$ac_ext <<_ACEOF
34768 /* end confdefs.h. */
34769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34771 #define $ac_func innocuous_$ac_func
34773 /* System header to define __stub macros and hopefully few prototypes,
34774 which can conflict with char $ac_func (); below.
34775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34776 <limits.h> exists even on freestanding compilers. */
34779 # include <limits.h>
34781 # include <assert.h>
34786 /* Override any gcc2 internal prototype to avoid an error. */
34791 /* We use char because int might match the return type of a gcc2
34792 builtin and then its argument prototype would still apply. */
34794 /* The GNU C library defines this for functions which it implements
34795 to always fail with ENOSYS. Some functions are actually named
34796 something starting with __ and the normal name is an alias. */
34797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34800 char (*f) () = $ac_func;
34809 return f != $ac_func;
34814 rm -f conftest.$ac_objext conftest$ac_exeext
34815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34816 (eval $ac_link) 2>conftest.er1
34818 grep -v '^ *+' conftest.er1 >conftest.err
34820 cat conftest.err >&5
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); } &&
34823 { ac_try='test -z "$ac_c_werror_flag"
34824 || test ! -s conftest.err'
34825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34826 (eval $ac_try) 2>&5
34828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829 (exit $ac_status); }; } &&
34830 { ac_try='test -s conftest$ac_exeext'
34831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34832 (eval $ac_try) 2>&5
34834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835 (exit $ac_status); }; }; then
34836 eval "$as_ac_var=yes"
34838 echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34841 eval "$as_ac_var=no"
34843 rm -f conftest.err conftest.$ac_objext \
34844 conftest$ac_exeext conftest.$ac_ext
34846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34848 if test `eval echo '${'$as_ac_var'}'` = yes; then
34849 cat >>confdefs.h <<_ACEOF
34850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34859 for ac_func in pthread_kill_other_threads_np
34861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862 echo "$as_me:$LINENO: checking for $ac_func" >&5
34863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34864 if eval "test \"\${$as_ac_var+set}\" = set"; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34867 cat >conftest.$ac_ext <<_ACEOF
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h. */
34873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34875 #define $ac_func innocuous_$ac_func
34877 /* System header to define __stub macros and hopefully few prototypes,
34878 which can conflict with char $ac_func (); below.
34879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34880 <limits.h> exists even on freestanding compilers. */
34883 # include <limits.h>
34885 # include <assert.h>
34890 /* Override any gcc2 internal prototype to avoid an error. */
34895 /* We use char because int might match the return type of a gcc2
34896 builtin and then its argument prototype would still apply. */
34898 /* The GNU C library defines this for functions which it implements
34899 to always fail with ENOSYS. Some functions are actually named
34900 something starting with __ and the normal name is an alias. */
34901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34904 char (*f) () = $ac_func;
34913 return f != $ac_func;
34918 rm -f conftest.$ac_objext conftest$ac_exeext
34919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34920 (eval $ac_link) 2>conftest.er1
34922 grep -v '^ *+' conftest.er1 >conftest.err
34924 cat conftest.err >&5
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); } &&
34927 { ac_try='test -z "$ac_c_werror_flag"
34928 || test ! -s conftest.err'
34929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930 (eval $ac_try) 2>&5
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); }; } &&
34934 { ac_try='test -s conftest$ac_exeext'
34935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34936 (eval $ac_try) 2>&5
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); }; }; then
34940 eval "$as_ac_var=yes"
34942 echo "$as_me: failed program was:" >&5
34943 sed 's/^/| /' conftest.$ac_ext >&5
34945 eval "$as_ac_var=no"
34947 rm -f conftest.err conftest.$ac_objext \
34948 conftest$ac_exeext conftest.$ac_ext
34950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34952 if test `eval echo '${'$as_ac_var'}'` = yes; then
34953 cat >>confdefs.h <<_ACEOF
34954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34960 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34961 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34962 if test "${ol_cv_sys_linux_threads+set}" = set; then
34963 echo $ECHO_N "(cached) $ECHO_C" >&6
34965 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34967 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34968 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34973 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34974 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34975 if test "${ol_cv_linux_threads+set}" = set; then
34976 echo $ECHO_N "(cached) $ECHO_C" >&6
34979 if test $ol_cv_header_linux_threads = yes -a \
34980 $ol_cv_sys_linux_threads = yes; then
34981 ol_cv_linux_threads=yes
34982 elif test $ol_cv_header_linux_threads = no -a \
34983 $ol_cv_sys_linux_threads = no; then
34984 ol_cv_linux_threads=no
34986 ol_cv_linux_threads=error
34990 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34991 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34994 if test $ol_cv_linux_threads = error; then
34995 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34996 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34997 { (exit 1); exit 1; }; };
35000 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
35001 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
35002 if test "${ol_cv_pthread_create_works+set}" = set; then
35003 echo $ECHO_N "(cached) $ECHO_C" >&6
35006 if test "$cross_compiling" = yes; then
35007 ol_cv_pthread_create_works=yes
35009 cat >conftest.$ac_ext <<_ACEOF
35012 cat confdefs.h >>conftest.$ac_ext
35013 cat >>conftest.$ac_ext <<_ACEOF
35014 /* end confdefs.h. */
35016 /* pthread test headers */
35017 #include <pthread.h>
35018 #if HAVE_PTHREADS < 7
35022 #define NULL (void*)0
35025 static void *task(p)
35028 return (void *) (p == NULL);
35032 int main(argc, argv)
35037 /* pthread test function */
35038 #ifndef PTHREAD_CREATE_DETACHED
35039 #define PTHREAD_CREATE_DETACHED 1
35043 int detach = PTHREAD_CREATE_DETACHED;
35045 #if HAVE_PTHREADS > 4
35046 /* Final pthreads */
35047 pthread_attr_t attr;
35049 status = pthread_attr_init(&attr);
35050 if( status ) return status;
35052 #if HAVE_PTHREADS < 7
35053 status = pthread_attr_setdetachstate(&attr, &detach);
35054 if( status < 0 ) status = errno;
35056 status = pthread_attr_setdetachstate(&attr, detach);
35058 if( status ) return status;
35059 status = pthread_create( &t, &attr, task, NULL );
35060 #if HAVE_PTHREADS < 7
35061 if( status < 0 ) status = errno;
35063 if( status ) return status;
35065 /* Draft 4 pthreads */
35066 status = pthread_create( &t, pthread_attr_default, task, NULL );
35067 if( status ) return errno;
35069 /* give thread a chance to complete */
35070 /* it should remain joinable and hence detachable */
35073 status = pthread_detach( &t );
35074 if( status ) return errno;
35077 #ifdef HAVE_LINUX_THREADS
35078 pthread_kill_other_threads_np();
35086 rm -f conftest$ac_exeext
35087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35088 (eval $ac_link) 2>&5
35090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093 (eval $ac_try) 2>&5
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); }; }; then
35097 ol_cv_pthread_create_works=yes
35099 echo "$as_me: program exited with status $ac_status" >&5
35100 echo "$as_me: failed program was:" >&5
35101 sed 's/^/| /' conftest.$ac_ext >&5
35103 ( exit $ac_status )
35104 ol_cv_pthread_create_works=no
35106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35109 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
35110 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
35112 if test $ol_cv_pthread_create_works = no ; then
35113 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
35114 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
35115 { (exit 1); exit 1; }; }
35118 if test $ol_with_yielding_select = auto ; then
35119 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
35120 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
35121 if test "${ol_cv_pthread_select_yields+set}" = set; then
35122 echo $ECHO_N "(cached) $ECHO_C" >&6
35125 if test "$cross_compiling" = yes; then
35126 ol_cv_pthread_select_yields=cross
35128 cat >conftest.$ac_ext <<_ACEOF
35131 cat confdefs.h >>conftest.$ac_ext
35132 cat >>conftest.$ac_ext <<_ACEOF
35133 /* end confdefs.h. */
35135 #include <sys/types.h>
35136 #include <sys/time.h>
35137 #include <unistd.h>
35138 #include <pthread.h>
35140 #define NULL (void*) 0
35143 static int fildes[2];
35145 static void *task(p)
35157 FD_SET(fildes[0], &rfds);
35159 /* we're not interested in any fds */
35160 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35167 exit(0); /* if we exit here, the select blocked the whole process */
35170 int main(argc, argv)
35176 /* create a pipe to select */
35177 if(pipe(&fildes[0])) {
35182 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35183 (void) pthread_setconcurrency(2);
35185 #ifdef HAVE_THR_SETCONCURRENCY
35186 /* Set Solaris LWP concurrency to 2 */
35187 thr_setconcurrency(2);
35191 #if HAVE_PTHREADS < 6
35192 pthread_create(&t, pthread_attr_default, task, NULL);
35194 pthread_create(&t, NULL, task, NULL);
35197 /* make sure task runs first */
35200 #elif defined( HAVE_SCHED_YIELD )
35202 #elif defined( HAVE_PTHREAD_YIELD )
35209 rm -f conftest$ac_exeext
35210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35211 (eval $ac_link) 2>&5
35213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216 (eval $ac_try) 2>&5
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; }; then
35220 ol_cv_pthread_select_yields=no
35222 echo "$as_me: program exited with status $ac_status" >&5
35223 echo "$as_me: failed program was:" >&5
35224 sed 's/^/| /' conftest.$ac_ext >&5
35226 ( exit $ac_status )
35227 ol_cv_pthread_select_yields=yes
35229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35232 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35233 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35235 if test $ol_cv_pthread_select_yields = cross ; then
35236 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35237 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35238 { (exit 1); exit 1; }; }
35241 if test $ol_cv_pthread_select_yields = yes ; then
35242 ol_with_yielding_select=yes
35246 CPPFLAGS="$save_CPPFLAGS"
35249 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35250 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35251 { (exit 1); exit 1; }; }
35255 if test $ol_with_threads = posix ; then
35256 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35257 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35258 { (exit 1); exit 1; }; }
35262 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35263 -o $ol_with_threads = mach ; then
35267 for ac_header in mach/cthreads.h cthreads.h
35269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35271 echo "$as_me:$LINENO: checking for $ac_header" >&5
35272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35274 echo $ECHO_N "(cached) $ECHO_C" >&6
35276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35279 # Is the header compilable?
35280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35282 cat >conftest.$ac_ext <<_ACEOF
35285 cat confdefs.h >>conftest.$ac_ext
35286 cat >>conftest.$ac_ext <<_ACEOF
35287 /* end confdefs.h. */
35288 $ac_includes_default
35289 #include <$ac_header>
35291 rm -f conftest.$ac_objext
35292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35293 (eval $ac_compile) 2>conftest.er1
35295 grep -v '^ *+' conftest.er1 >conftest.err
35297 cat conftest.err >&5
35298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35299 (exit $ac_status); } &&
35300 { ac_try='test -z "$ac_c_werror_flag"
35301 || test ! -s conftest.err'
35302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35303 (eval $ac_try) 2>&5
35305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35306 (exit $ac_status); }; } &&
35307 { ac_try='test -s conftest.$ac_objext'
35308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35309 (eval $ac_try) 2>&5
35311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312 (exit $ac_status); }; }; then
35313 ac_header_compiler=yes
35315 echo "$as_me: failed program was:" >&5
35316 sed 's/^/| /' conftest.$ac_ext >&5
35318 ac_header_compiler=no
35320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35322 echo "${ECHO_T}$ac_header_compiler" >&6
35324 # Is the header present?
35325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35327 cat >conftest.$ac_ext <<_ACEOF
35330 cat confdefs.h >>conftest.$ac_ext
35331 cat >>conftest.$ac_ext <<_ACEOF
35332 /* end confdefs.h. */
35333 #include <$ac_header>
35335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35338 grep -v '^ *+' conftest.er1 >conftest.err
35340 cat conftest.err >&5
35341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); } >/dev/null; then
35343 if test -s conftest.err; then
35344 ac_cpp_err=$ac_c_preproc_warn_flag
35345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35352 if test -z "$ac_cpp_err"; then
35353 ac_header_preproc=yes
35355 echo "$as_me: failed program was:" >&5
35356 sed 's/^/| /' conftest.$ac_ext >&5
35358 ac_header_preproc=no
35360 rm -f conftest.err conftest.$ac_ext
35361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35362 echo "${ECHO_T}$ac_header_preproc" >&6
35364 # So? What about this header?
35365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35371 ac_header_preproc=yes
35374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35388 ## ------------------------------------------ ##
35389 ## Report this to the AC_PACKAGE_NAME lists. ##
35390 ## ------------------------------------------ ##
35393 sed "s/^/$as_me: WARNING: /" >&2
35396 echo "$as_me:$LINENO: checking for $ac_header" >&5
35397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35399 echo $ECHO_N "(cached) $ECHO_C" >&6
35401 eval "$as_ac_Header=\$ac_header_preproc"
35403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35408 cat >>confdefs.h <<_ACEOF
35409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35416 if test $ac_cv_header_mach_cthreads_h = yes ; then
35417 ol_with_threads=found
35419 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35420 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35421 if test "${ac_cv_func_cthread_fork+set}" = set; then
35422 echo $ECHO_N "(cached) $ECHO_C" >&6
35424 cat >conftest.$ac_ext <<_ACEOF
35427 cat confdefs.h >>conftest.$ac_ext
35428 cat >>conftest.$ac_ext <<_ACEOF
35429 /* end confdefs.h. */
35430 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35432 #define cthread_fork innocuous_cthread_fork
35434 /* System header to define __stub macros and hopefully few prototypes,
35435 which can conflict with char cthread_fork (); below.
35436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35437 <limits.h> exists even on freestanding compilers. */
35440 # include <limits.h>
35442 # include <assert.h>
35445 #undef cthread_fork
35447 /* Override any gcc2 internal prototype to avoid an error. */
35452 /* We use char because int might match the return type of a gcc2
35453 builtin and then its argument prototype would still apply. */
35454 char cthread_fork ();
35455 /* The GNU C library defines this for functions which it implements
35456 to always fail with ENOSYS. Some functions are actually named
35457 something starting with __ and the normal name is an alias. */
35458 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35461 char (*f) () = cthread_fork;
35470 return f != cthread_fork;
35475 rm -f conftest.$ac_objext conftest$ac_exeext
35476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35477 (eval $ac_link) 2>conftest.er1
35479 grep -v '^ *+' conftest.er1 >conftest.err
35481 cat conftest.err >&5
35482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35483 (exit $ac_status); } &&
35484 { ac_try='test -z "$ac_c_werror_flag"
35485 || test ! -s conftest.err'
35486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35487 (eval $ac_try) 2>&5
35489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490 (exit $ac_status); }; } &&
35491 { ac_try='test -s conftest$ac_exeext'
35492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35493 (eval $ac_try) 2>&5
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); }; }; then
35497 ac_cv_func_cthread_fork=yes
35499 echo "$as_me: failed program was:" >&5
35500 sed 's/^/| /' conftest.$ac_ext >&5
35502 ac_cv_func_cthread_fork=no
35504 rm -f conftest.err conftest.$ac_objext \
35505 conftest$ac_exeext conftest.$ac_ext
35507 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35508 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35509 if test $ac_cv_func_cthread_fork = yes; then
35510 ol_link_threads=yes
35514 if test $ol_link_threads = no ; then
35515 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35516 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35517 if test "${ol_cv_cthread_all_load+set}" = set; then
35518 echo $ECHO_N "(cached) $ECHO_C" >&6
35522 LIBS="-all_load $LIBS"
35523 cat >conftest.$ac_ext <<_ACEOF
35526 cat confdefs.h >>conftest.$ac_ext
35527 cat >>conftest.$ac_ext <<_ACEOF
35528 /* end confdefs.h. */
35529 #include <mach/cthreads.h>
35534 cthread_fork((void *)0, (void *)0);
35540 rm -f conftest.$ac_objext conftest$ac_exeext
35541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35542 (eval $ac_link) 2>conftest.er1
35544 grep -v '^ *+' conftest.er1 >conftest.err
35546 cat conftest.err >&5
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); } &&
35549 { ac_try='test -z "$ac_c_werror_flag"
35550 || test ! -s conftest.err'
35551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552 (eval $ac_try) 2>&5
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); }; } &&
35556 { ac_try='test -s conftest$ac_exeext'
35557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35558 (eval $ac_try) 2>&5
35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561 (exit $ac_status); }; }; then
35562 ol_cv_cthread_all_load=yes
35564 echo "$as_me: failed program was:" >&5
35565 sed 's/^/| /' conftest.$ac_ext >&5
35567 ol_cv_cthread_all_load=no
35569 rm -f conftest.err conftest.$ac_objext \
35570 conftest$ac_exeext conftest.$ac_ext
35574 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35575 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35577 if test $ol_cv_cthread_all_load = yes ; then
35578 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35579 ol_link_threads=mach
35580 ol_with_threads=found
35584 elif test $ac_cv_header_cthreads_h = yes ; then
35586 ol_with_threads=found
35589 LIBS="$LIBS -lthreads"
35590 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35591 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35592 if test "${ac_cv_func_cthread_fork+set}" = set; then
35593 echo $ECHO_N "(cached) $ECHO_C" >&6
35595 cat >conftest.$ac_ext <<_ACEOF
35598 cat confdefs.h >>conftest.$ac_ext
35599 cat >>conftest.$ac_ext <<_ACEOF
35600 /* end confdefs.h. */
35601 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35603 #define cthread_fork innocuous_cthread_fork
35605 /* System header to define __stub macros and hopefully few prototypes,
35606 which can conflict with char cthread_fork (); below.
35607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35608 <limits.h> exists even on freestanding compilers. */
35611 # include <limits.h>
35613 # include <assert.h>
35616 #undef cthread_fork
35618 /* Override any gcc2 internal prototype to avoid an error. */
35623 /* We use char because int might match the return type of a gcc2
35624 builtin and then its argument prototype would still apply. */
35625 char cthread_fork ();
35626 /* The GNU C library defines this for functions which it implements
35627 to always fail with ENOSYS. Some functions are actually named
35628 something starting with __ and the normal name is an alias. */
35629 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35632 char (*f) () = cthread_fork;
35641 return f != cthread_fork;
35646 rm -f conftest.$ac_objext conftest$ac_exeext
35647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35648 (eval $ac_link) 2>conftest.er1
35650 grep -v '^ *+' conftest.er1 >conftest.err
35652 cat conftest.err >&5
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); } &&
35655 { ac_try='test -z "$ac_c_werror_flag"
35656 || test ! -s conftest.err'
35657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35658 (eval $ac_try) 2>&5
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); }; } &&
35662 { ac_try='test -s conftest$ac_exeext'
35663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35664 (eval $ac_try) 2>&5
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); }; }; then
35668 ac_cv_func_cthread_fork=yes
35670 echo "$as_me: failed program was:" >&5
35671 sed 's/^/| /' conftest.$ac_ext >&5
35673 ac_cv_func_cthread_fork=no
35675 rm -f conftest.err conftest.$ac_objext \
35676 conftest$ac_exeext conftest.$ac_ext
35678 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35679 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35680 if test $ac_cv_func_cthread_fork = yes; then
35681 ol_link_threads=yes
35686 if test $ol_link_threads = yes ; then
35687 LTHREAD_LIBS="-lthreads"
35688 ol_link_threads=mach
35689 ol_with_threads=found
35691 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35692 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35693 { (exit 1); exit 1; }; }
35696 elif test $ol_with_threads = mach ; then
35697 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35698 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35699 { (exit 1); exit 1; }; }
35702 if test $ol_link_threads = mach ; then
35704 cat >>confdefs.h <<\_ACEOF
35705 #define HAVE_MACH_CTHREADS 1
35708 elif test $ol_with_threads = found ; then
35709 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35710 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35711 { (exit 1); exit 1; }; }
35715 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35716 -o $ol_with_threads = pth ; then
35719 for ac_header in pth.h
35721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35723 echo "$as_me:$LINENO: checking for $ac_header" >&5
35724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35726 echo $ECHO_N "(cached) $ECHO_C" >&6
35728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35731 # Is the header compilable?
35732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35734 cat >conftest.$ac_ext <<_ACEOF
35737 cat confdefs.h >>conftest.$ac_ext
35738 cat >>conftest.$ac_ext <<_ACEOF
35739 /* end confdefs.h. */
35740 $ac_includes_default
35741 #include <$ac_header>
35743 rm -f conftest.$ac_objext
35744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35745 (eval $ac_compile) 2>conftest.er1
35747 grep -v '^ *+' conftest.er1 >conftest.err
35749 cat conftest.err >&5
35750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35751 (exit $ac_status); } &&
35752 { ac_try='test -z "$ac_c_werror_flag"
35753 || test ! -s conftest.err'
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; } &&
35759 { ac_try='test -s conftest.$ac_objext'
35760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35761 (eval $ac_try) 2>&5
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); }; }; then
35765 ac_header_compiler=yes
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35770 ac_header_compiler=no
35772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35774 echo "${ECHO_T}$ac_header_compiler" >&6
35776 # Is the header present?
35777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35779 cat >conftest.$ac_ext <<_ACEOF
35782 cat confdefs.h >>conftest.$ac_ext
35783 cat >>conftest.$ac_ext <<_ACEOF
35784 /* end confdefs.h. */
35785 #include <$ac_header>
35787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35790 grep -v '^ *+' conftest.er1 >conftest.err
35792 cat conftest.err >&5
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); } >/dev/null; then
35795 if test -s conftest.err; then
35796 ac_cpp_err=$ac_c_preproc_warn_flag
35797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35804 if test -z "$ac_cpp_err"; then
35805 ac_header_preproc=yes
35807 echo "$as_me: failed program was:" >&5
35808 sed 's/^/| /' conftest.$ac_ext >&5
35810 ac_header_preproc=no
35812 rm -f conftest.err conftest.$ac_ext
35813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35814 echo "${ECHO_T}$ac_header_preproc" >&6
35816 # So? What about this header?
35817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35823 ac_header_preproc=yes
35826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35840 ## ------------------------------------------ ##
35841 ## Report this to the AC_PACKAGE_NAME lists. ##
35842 ## ------------------------------------------ ##
35845 sed "s/^/$as_me: WARNING: /" >&2
35848 echo "$as_me:$LINENO: checking for $ac_header" >&5
35849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35851 echo $ECHO_N "(cached) $ECHO_C" >&6
35853 eval "$as_ac_Header=\$ac_header_preproc"
35855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35860 cat >>confdefs.h <<_ACEOF
35861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35869 if test $ac_cv_header_pth_h = yes ; then
35870 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35871 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35872 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35873 echo $ECHO_N "(cached) $ECHO_C" >&6
35875 ac_check_lib_save_LIBS=$LIBS
35877 cat >conftest.$ac_ext <<_ACEOF
35880 cat confdefs.h >>conftest.$ac_ext
35881 cat >>conftest.$ac_ext <<_ACEOF
35882 /* end confdefs.h. */
35884 /* Override any gcc2 internal prototype to avoid an error. */
35888 /* We use char because int might match the return type of a gcc2
35889 builtin and then its argument prototype would still apply. */
35890 char pth_version ();
35899 rm -f conftest.$ac_objext conftest$ac_exeext
35900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35901 (eval $ac_link) 2>conftest.er1
35903 grep -v '^ *+' conftest.er1 >conftest.err
35905 cat conftest.err >&5
35906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907 (exit $ac_status); } &&
35908 { ac_try='test -z "$ac_c_werror_flag"
35909 || test ! -s conftest.err'
35910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35911 (eval $ac_try) 2>&5
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); }; } &&
35915 { ac_try='test -s conftest$ac_exeext'
35916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35917 (eval $ac_try) 2>&5
35919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35920 (exit $ac_status); }; }; then
35921 ac_cv_lib_pth_pth_version=yes
35923 echo "$as_me: failed program was:" >&5
35924 sed 's/^/| /' conftest.$ac_ext >&5
35926 ac_cv_lib_pth_pth_version=no
35928 rm -f conftest.err conftest.$ac_objext \
35929 conftest$ac_exeext conftest.$ac_ext
35930 LIBS=$ac_check_lib_save_LIBS
35932 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35933 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35934 if test $ac_cv_lib_pth_pth_version = yes; then
35941 if test $have_pth = yes ; then
35943 cat >>confdefs.h <<\_ACEOF
35944 #define HAVE_GNU_PTH 1
35947 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35948 ol_link_threads=pth
35949 ol_with_threads=found
35951 if test $ol_with_yielding_select = auto ; then
35952 ol_with_yielding_select=yes
35958 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35959 -o $ol_with_threads = lwp ; then
35963 for ac_header in thread.h synch.h
35965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35967 echo "$as_me:$LINENO: checking for $ac_header" >&5
35968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35970 echo $ECHO_N "(cached) $ECHO_C" >&6
35972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35975 # Is the header compilable?
35976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35978 cat >conftest.$ac_ext <<_ACEOF
35981 cat confdefs.h >>conftest.$ac_ext
35982 cat >>conftest.$ac_ext <<_ACEOF
35983 /* end confdefs.h. */
35984 $ac_includes_default
35985 #include <$ac_header>
35987 rm -f conftest.$ac_objext
35988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35989 (eval $ac_compile) 2>conftest.er1
35991 grep -v '^ *+' conftest.er1 >conftest.err
35993 cat conftest.err >&5
35994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995 (exit $ac_status); } &&
35996 { ac_try='test -z "$ac_c_werror_flag"
35997 || test ! -s conftest.err'
35998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999 (eval $ac_try) 2>&5
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); }; } &&
36003 { ac_try='test -s conftest.$ac_objext'
36004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005 (eval $ac_try) 2>&5
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); }; }; then
36009 ac_header_compiler=yes
36011 echo "$as_me: failed program was:" >&5
36012 sed 's/^/| /' conftest.$ac_ext >&5
36014 ac_header_compiler=no
36016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36018 echo "${ECHO_T}$ac_header_compiler" >&6
36020 # Is the header present?
36021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36023 cat >conftest.$ac_ext <<_ACEOF
36026 cat confdefs.h >>conftest.$ac_ext
36027 cat >>conftest.$ac_ext <<_ACEOF
36028 /* end confdefs.h. */
36029 #include <$ac_header>
36031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36034 grep -v '^ *+' conftest.er1 >conftest.err
36036 cat conftest.err >&5
36037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038 (exit $ac_status); } >/dev/null; then
36039 if test -s conftest.err; then
36040 ac_cpp_err=$ac_c_preproc_warn_flag
36041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36048 if test -z "$ac_cpp_err"; then
36049 ac_header_preproc=yes
36051 echo "$as_me: failed program was:" >&5
36052 sed 's/^/| /' conftest.$ac_ext >&5
36054 ac_header_preproc=no
36056 rm -f conftest.err conftest.$ac_ext
36057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36058 echo "${ECHO_T}$ac_header_preproc" >&6
36060 # So? What about this header?
36061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36067 ac_header_preproc=yes
36070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36084 ## ------------------------------------------ ##
36085 ## Report this to the AC_PACKAGE_NAME lists. ##
36086 ## ------------------------------------------ ##
36089 sed "s/^/$as_me: WARNING: /" >&2
36092 echo "$as_me:$LINENO: checking for $ac_header" >&5
36093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36095 echo $ECHO_N "(cached) $ECHO_C" >&6
36097 eval "$as_ac_Header=\$ac_header_preproc"
36099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36104 cat >>confdefs.h <<_ACEOF
36105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36112 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
36113 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
36114 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
36115 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
36116 echo $ECHO_N "(cached) $ECHO_C" >&6
36118 ac_check_lib_save_LIBS=$LIBS
36119 LIBS="-lthread $LIBS"
36120 cat >conftest.$ac_ext <<_ACEOF
36123 cat confdefs.h >>conftest.$ac_ext
36124 cat >>conftest.$ac_ext <<_ACEOF
36125 /* end confdefs.h. */
36127 /* Override any gcc2 internal prototype to avoid an error. */
36131 /* We use char because int might match the return type of a gcc2
36132 builtin and then its argument prototype would still apply. */
36133 char thr_create ();
36142 rm -f conftest.$ac_objext conftest$ac_exeext
36143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36144 (eval $ac_link) 2>conftest.er1
36146 grep -v '^ *+' conftest.er1 >conftest.err
36148 cat conftest.err >&5
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); } &&
36151 { ac_try='test -z "$ac_c_werror_flag"
36152 || test ! -s conftest.err'
36153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36154 (eval $ac_try) 2>&5
36156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157 (exit $ac_status); }; } &&
36158 { ac_try='test -s conftest$ac_exeext'
36159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36160 (eval $ac_try) 2>&5
36162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163 (exit $ac_status); }; }; then
36164 ac_cv_lib_thread_thr_create=yes
36166 echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36169 ac_cv_lib_thread_thr_create=no
36171 rm -f conftest.err conftest.$ac_objext \
36172 conftest$ac_exeext conftest.$ac_ext
36173 LIBS=$ac_check_lib_save_LIBS
36175 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36176 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36177 if test $ac_cv_lib_thread_thr_create = yes; then
36184 if test $have_thr = yes ; then
36186 cat >>confdefs.h <<\_ACEOF
36190 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36191 ol_link_threads=thr
36193 if test $ol_with_yielding_select = auto ; then
36194 ol_with_yielding_select=yes
36200 thr_setconcurrency \
36201 thr_getconcurrency \
36204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36205 echo "$as_me:$LINENO: checking for $ac_func" >&5
36206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36207 if eval "test \"\${$as_ac_var+set}\" = set"; then
36208 echo $ECHO_N "(cached) $ECHO_C" >&6
36210 cat >conftest.$ac_ext <<_ACEOF
36213 cat confdefs.h >>conftest.$ac_ext
36214 cat >>conftest.$ac_ext <<_ACEOF
36215 /* end confdefs.h. */
36216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36218 #define $ac_func innocuous_$ac_func
36220 /* System header to define __stub macros and hopefully few prototypes,
36221 which can conflict with char $ac_func (); below.
36222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36223 <limits.h> exists even on freestanding compilers. */
36226 # include <limits.h>
36228 # include <assert.h>
36233 /* Override any gcc2 internal prototype to avoid an error. */
36238 /* We use char because int might match the return type of a gcc2
36239 builtin and then its argument prototype would still apply. */
36241 /* The GNU C library defines this for functions which it implements
36242 to always fail with ENOSYS. Some functions are actually named
36243 something starting with __ and the normal name is an alias. */
36244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36247 char (*f) () = $ac_func;
36256 return f != $ac_func;
36261 rm -f conftest.$ac_objext conftest$ac_exeext
36262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36263 (eval $ac_link) 2>conftest.er1
36265 grep -v '^ *+' conftest.er1 >conftest.err
36267 cat conftest.err >&5
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); } &&
36270 { ac_try='test -z "$ac_c_werror_flag"
36271 || test ! -s conftest.err'
36272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273 (eval $ac_try) 2>&5
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); }; } &&
36277 { ac_try='test -s conftest$ac_exeext'
36278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279 (eval $ac_try) 2>&5
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); }; }; then
36283 eval "$as_ac_var=yes"
36285 echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36288 eval "$as_ac_var=no"
36290 rm -f conftest.err conftest.$ac_objext \
36291 conftest$ac_exeext conftest.$ac_ext
36293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36295 if test `eval echo '${'$as_ac_var'}'` = yes; then
36296 cat >>confdefs.h <<_ACEOF
36297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36307 for ac_header in lwp/lwp.h
36309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36311 echo "$as_me:$LINENO: checking for $ac_header" >&5
36312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36314 echo $ECHO_N "(cached) $ECHO_C" >&6
36316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36319 # Is the header compilable?
36320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36322 cat >conftest.$ac_ext <<_ACEOF
36325 cat confdefs.h >>conftest.$ac_ext
36326 cat >>conftest.$ac_ext <<_ACEOF
36327 /* end confdefs.h. */
36328 $ac_includes_default
36329 #include <$ac_header>
36331 rm -f conftest.$ac_objext
36332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36333 (eval $ac_compile) 2>conftest.er1
36335 grep -v '^ *+' conftest.er1 >conftest.err
36337 cat conftest.err >&5
36338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339 (exit $ac_status); } &&
36340 { ac_try='test -z "$ac_c_werror_flag"
36341 || test ! -s conftest.err'
36342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36343 (eval $ac_try) 2>&5
36345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346 (exit $ac_status); }; } &&
36347 { ac_try='test -s conftest.$ac_objext'
36348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36349 (eval $ac_try) 2>&5
36351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352 (exit $ac_status); }; }; then
36353 ac_header_compiler=yes
36355 echo "$as_me: failed program was:" >&5
36356 sed 's/^/| /' conftest.$ac_ext >&5
36358 ac_header_compiler=no
36360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36362 echo "${ECHO_T}$ac_header_compiler" >&6
36364 # Is the header present?
36365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36367 cat >conftest.$ac_ext <<_ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h. */
36373 #include <$ac_header>
36375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36378 grep -v '^ *+' conftest.er1 >conftest.err
36380 cat conftest.err >&5
36381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382 (exit $ac_status); } >/dev/null; then
36383 if test -s conftest.err; then
36384 ac_cpp_err=$ac_c_preproc_warn_flag
36385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36392 if test -z "$ac_cpp_err"; then
36393 ac_header_preproc=yes
36395 echo "$as_me: failed program was:" >&5
36396 sed 's/^/| /' conftest.$ac_ext >&5
36398 ac_header_preproc=no
36400 rm -f conftest.err conftest.$ac_ext
36401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36402 echo "${ECHO_T}$ac_header_preproc" >&6
36404 # So? What about this header?
36405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36411 ac_header_preproc=yes
36414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36428 ## ------------------------------------------ ##
36429 ## Report this to the AC_PACKAGE_NAME lists. ##
36430 ## ------------------------------------------ ##
36433 sed "s/^/$as_me: WARNING: /" >&2
36436 echo "$as_me:$LINENO: checking for $ac_header" >&5
36437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36439 echo $ECHO_N "(cached) $ECHO_C" >&6
36441 eval "$as_ac_Header=\$ac_header_preproc"
36443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36448 cat >>confdefs.h <<_ACEOF
36449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36456 if test $ac_cv_header_lwp_lwp_h = yes ; then
36457 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36458 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36459 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36460 echo $ECHO_N "(cached) $ECHO_C" >&6
36462 ac_check_lib_save_LIBS=$LIBS
36464 cat >conftest.$ac_ext <<_ACEOF
36467 cat confdefs.h >>conftest.$ac_ext
36468 cat >>conftest.$ac_ext <<_ACEOF
36469 /* end confdefs.h. */
36471 /* Override any gcc2 internal prototype to avoid an error. */
36475 /* We use char because int might match the return type of a gcc2
36476 builtin and then its argument prototype would still apply. */
36477 char lwp_create ();
36486 rm -f conftest.$ac_objext conftest$ac_exeext
36487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36488 (eval $ac_link) 2>conftest.er1
36490 grep -v '^ *+' conftest.er1 >conftest.err
36492 cat conftest.err >&5
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); } &&
36495 { ac_try='test -z "$ac_c_werror_flag"
36496 || test ! -s conftest.err'
36497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36498 (eval $ac_try) 2>&5
36500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36501 (exit $ac_status); }; } &&
36502 { ac_try='test -s conftest$ac_exeext'
36503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36504 (eval $ac_try) 2>&5
36506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507 (exit $ac_status); }; }; then
36508 ac_cv_lib_lwp_lwp_create=yes
36510 echo "$as_me: failed program was:" >&5
36511 sed 's/^/| /' conftest.$ac_ext >&5
36513 ac_cv_lib_lwp_lwp_create=no
36515 rm -f conftest.err conftest.$ac_objext \
36516 conftest$ac_exeext conftest.$ac_ext
36517 LIBS=$ac_check_lib_save_LIBS
36519 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36520 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36521 if test $ac_cv_lib_lwp_lwp_create = yes; then
36528 if test $have_lwp = yes ; then
36530 cat >>confdefs.h <<\_ACEOF
36534 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36535 ol_link_threads=lwp
36537 if test $ol_with_yielding_select = auto ; then
36538 ol_with_yielding_select=no
36544 if test $ol_with_yielding_select = yes ; then
36546 cat >>confdefs.h <<\_ACEOF
36547 #define HAVE_YIELDING_SELECT 1
36552 if test $ol_with_threads = manual ; then
36553 ol_link_threads=yes
36555 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36556 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36560 for ac_header in pthread.h sched.h
36562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36564 echo "$as_me:$LINENO: checking for $ac_header" >&5
36565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36567 echo $ECHO_N "(cached) $ECHO_C" >&6
36569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36572 # Is the header compilable?
36573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36575 cat >conftest.$ac_ext <<_ACEOF
36578 cat confdefs.h >>conftest.$ac_ext
36579 cat >>conftest.$ac_ext <<_ACEOF
36580 /* end confdefs.h. */
36581 $ac_includes_default
36582 #include <$ac_header>
36584 rm -f conftest.$ac_objext
36585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36586 (eval $ac_compile) 2>conftest.er1
36588 grep -v '^ *+' conftest.er1 >conftest.err
36590 cat conftest.err >&5
36591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592 (exit $ac_status); } &&
36593 { ac_try='test -z "$ac_c_werror_flag"
36594 || test ! -s conftest.err'
36595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36596 (eval $ac_try) 2>&5
36598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36599 (exit $ac_status); }; } &&
36600 { ac_try='test -s conftest.$ac_objext'
36601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602 (eval $ac_try) 2>&5
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); }; }; then
36606 ac_header_compiler=yes
36608 echo "$as_me: failed program was:" >&5
36609 sed 's/^/| /' conftest.$ac_ext >&5
36611 ac_header_compiler=no
36613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36615 echo "${ECHO_T}$ac_header_compiler" >&6
36617 # Is the header present?
36618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36620 cat >conftest.$ac_ext <<_ACEOF
36623 cat confdefs.h >>conftest.$ac_ext
36624 cat >>conftest.$ac_ext <<_ACEOF
36625 /* end confdefs.h. */
36626 #include <$ac_header>
36628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36631 grep -v '^ *+' conftest.er1 >conftest.err
36633 cat conftest.err >&5
36634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36635 (exit $ac_status); } >/dev/null; then
36636 if test -s conftest.err; then
36637 ac_cpp_err=$ac_c_preproc_warn_flag
36638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36645 if test -z "$ac_cpp_err"; then
36646 ac_header_preproc=yes
36648 echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36651 ac_header_preproc=no
36653 rm -f conftest.err conftest.$ac_ext
36654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36655 echo "${ECHO_T}$ac_header_preproc" >&6
36657 # So? What about this header?
36658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36664 ac_header_preproc=yes
36667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36681 ## ------------------------------------------ ##
36682 ## Report this to the AC_PACKAGE_NAME lists. ##
36683 ## ------------------------------------------ ##
36686 sed "s/^/$as_me: WARNING: /" >&2
36689 echo "$as_me:$LINENO: checking for $ac_header" >&5
36690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36692 echo $ECHO_N "(cached) $ECHO_C" >&6
36694 eval "$as_ac_Header=\$ac_header_preproc"
36696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36701 cat >>confdefs.h <<_ACEOF
36702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36711 for ac_func in sched_yield pthread_yield
36713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36714 echo "$as_me:$LINENO: checking for $ac_func" >&5
36715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36716 if eval "test \"\${$as_ac_var+set}\" = set"; then
36717 echo $ECHO_N "(cached) $ECHO_C" >&6
36719 cat >conftest.$ac_ext <<_ACEOF
36722 cat confdefs.h >>conftest.$ac_ext
36723 cat >>conftest.$ac_ext <<_ACEOF
36724 /* end confdefs.h. */
36725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36727 #define $ac_func innocuous_$ac_func
36729 /* System header to define __stub macros and hopefully few prototypes,
36730 which can conflict with char $ac_func (); below.
36731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36732 <limits.h> exists even on freestanding compilers. */
36735 # include <limits.h>
36737 # include <assert.h>
36742 /* Override any gcc2 internal prototype to avoid an error. */
36747 /* We use char because int might match the return type of a gcc2
36748 builtin and then its argument prototype would still apply. */
36750 /* The GNU C library defines this for functions which it implements
36751 to always fail with ENOSYS. Some functions are actually named
36752 something starting with __ and the normal name is an alias. */
36753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36756 char (*f) () = $ac_func;
36765 return f != $ac_func;
36770 rm -f conftest.$ac_objext conftest$ac_exeext
36771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36772 (eval $ac_link) 2>conftest.er1
36774 grep -v '^ *+' conftest.er1 >conftest.err
36776 cat conftest.err >&5
36777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778 (exit $ac_status); } &&
36779 { ac_try='test -z "$ac_c_werror_flag"
36780 || test ! -s conftest.err'
36781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36782 (eval $ac_try) 2>&5
36784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785 (exit $ac_status); }; } &&
36786 { ac_try='test -s conftest$ac_exeext'
36787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36788 (eval $ac_try) 2>&5
36790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); }; }; then
36792 eval "$as_ac_var=yes"
36794 echo "$as_me: failed program was:" >&5
36795 sed 's/^/| /' conftest.$ac_ext >&5
36797 eval "$as_ac_var=no"
36799 rm -f conftest.err conftest.$ac_objext \
36800 conftest$ac_exeext conftest.$ac_ext
36802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36804 if test `eval echo '${'$as_ac_var'}'` = yes; then
36805 cat >>confdefs.h <<_ACEOF
36806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36813 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36814 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36815 if test "${ol_cv_header_linux_threads+set}" = set; then
36816 echo $ECHO_N "(cached) $ECHO_C" >&6
36818 cat >conftest.$ac_ext <<_ACEOF
36821 cat confdefs.h >>conftest.$ac_ext
36822 cat >>conftest.$ac_ext <<_ACEOF
36823 /* end confdefs.h. */
36824 #include <pthread.h>
36826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36827 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36828 ol_cv_header_linux_threads=yes
36830 ol_cv_header_linux_threads=no
36836 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36837 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36838 if test $ol_cv_header_linux_threads = yes; then
36840 cat >>confdefs.h <<\_ACEOF
36841 #define HAVE_LINUX_THREADS 1
36848 for ac_header in mach/cthreads.h
36850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36852 echo "$as_me:$LINENO: checking for $ac_header" >&5
36853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36855 echo $ECHO_N "(cached) $ECHO_C" >&6
36857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36860 # Is the header compilable?
36861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36863 cat >conftest.$ac_ext <<_ACEOF
36866 cat confdefs.h >>conftest.$ac_ext
36867 cat >>conftest.$ac_ext <<_ACEOF
36868 /* end confdefs.h. */
36869 $ac_includes_default
36870 #include <$ac_header>
36872 rm -f conftest.$ac_objext
36873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36874 (eval $ac_compile) 2>conftest.er1
36876 grep -v '^ *+' conftest.er1 >conftest.err
36878 cat conftest.err >&5
36879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880 (exit $ac_status); } &&
36881 { ac_try='test -z "$ac_c_werror_flag"
36882 || test ! -s conftest.err'
36883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36884 (eval $ac_try) 2>&5
36886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887 (exit $ac_status); }; } &&
36888 { ac_try='test -s conftest.$ac_objext'
36889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890 (eval $ac_try) 2>&5
36892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893 (exit $ac_status); }; }; then
36894 ac_header_compiler=yes
36896 echo "$as_me: failed program was:" >&5
36897 sed 's/^/| /' conftest.$ac_ext >&5
36899 ac_header_compiler=no
36901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36903 echo "${ECHO_T}$ac_header_compiler" >&6
36905 # Is the header present?
36906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36908 cat >conftest.$ac_ext <<_ACEOF
36911 cat confdefs.h >>conftest.$ac_ext
36912 cat >>conftest.$ac_ext <<_ACEOF
36913 /* end confdefs.h. */
36914 #include <$ac_header>
36916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36919 grep -v '^ *+' conftest.er1 >conftest.err
36921 cat conftest.err >&5
36922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923 (exit $ac_status); } >/dev/null; then
36924 if test -s conftest.err; then
36925 ac_cpp_err=$ac_c_preproc_warn_flag
36926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36933 if test -z "$ac_cpp_err"; then
36934 ac_header_preproc=yes
36936 echo "$as_me: failed program was:" >&5
36937 sed 's/^/| /' conftest.$ac_ext >&5
36939 ac_header_preproc=no
36941 rm -f conftest.err conftest.$ac_ext
36942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36943 echo "${ECHO_T}$ac_header_preproc" >&6
36945 # So? What about this header?
36946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36952 ac_header_preproc=yes
36955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36969 ## ------------------------------------------ ##
36970 ## Report this to the AC_PACKAGE_NAME lists. ##
36971 ## ------------------------------------------ ##
36974 sed "s/^/$as_me: WARNING: /" >&2
36977 echo "$as_me:$LINENO: checking for $ac_header" >&5
36978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36980 echo $ECHO_N "(cached) $ECHO_C" >&6
36982 eval "$as_ac_Header=\$ac_header_preproc"
36984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36989 cat >>confdefs.h <<_ACEOF
36990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36998 for ac_header in lwp/lwp.h
37000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37002 echo "$as_me:$LINENO: checking for $ac_header" >&5
37003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37005 echo $ECHO_N "(cached) $ECHO_C" >&6
37007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37010 # Is the header compilable?
37011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37013 cat >conftest.$ac_ext <<_ACEOF
37016 cat confdefs.h >>conftest.$ac_ext
37017 cat >>conftest.$ac_ext <<_ACEOF
37018 /* end confdefs.h. */
37019 $ac_includes_default
37020 #include <$ac_header>
37022 rm -f conftest.$ac_objext
37023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37024 (eval $ac_compile) 2>conftest.er1
37026 grep -v '^ *+' conftest.er1 >conftest.err
37028 cat conftest.err >&5
37029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030 (exit $ac_status); } &&
37031 { ac_try='test -z "$ac_c_werror_flag"
37032 || test ! -s conftest.err'
37033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37034 (eval $ac_try) 2>&5
37036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037 (exit $ac_status); }; } &&
37038 { ac_try='test -s conftest.$ac_objext'
37039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040 (eval $ac_try) 2>&5
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); }; }; then
37044 ac_header_compiler=yes
37046 echo "$as_me: failed program was:" >&5
37047 sed 's/^/| /' conftest.$ac_ext >&5
37049 ac_header_compiler=no
37051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37053 echo "${ECHO_T}$ac_header_compiler" >&6
37055 # Is the header present?
37056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37058 cat >conftest.$ac_ext <<_ACEOF
37061 cat confdefs.h >>conftest.$ac_ext
37062 cat >>conftest.$ac_ext <<_ACEOF
37063 /* end confdefs.h. */
37064 #include <$ac_header>
37066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37069 grep -v '^ *+' conftest.er1 >conftest.err
37071 cat conftest.err >&5
37072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37073 (exit $ac_status); } >/dev/null; then
37074 if test -s conftest.err; then
37075 ac_cpp_err=$ac_c_preproc_warn_flag
37076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37083 if test -z "$ac_cpp_err"; then
37084 ac_header_preproc=yes
37086 echo "$as_me: failed program was:" >&5
37087 sed 's/^/| /' conftest.$ac_ext >&5
37089 ac_header_preproc=no
37091 rm -f conftest.err conftest.$ac_ext
37092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37093 echo "${ECHO_T}$ac_header_preproc" >&6
37095 # So? What about this header?
37096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37102 ac_header_preproc=yes
37105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37119 ## ------------------------------------------ ##
37120 ## Report this to the AC_PACKAGE_NAME lists. ##
37121 ## ------------------------------------------ ##
37124 sed "s/^/$as_me: WARNING: /" >&2
37127 echo "$as_me:$LINENO: checking for $ac_header" >&5
37128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37130 echo $ECHO_N "(cached) $ECHO_C" >&6
37132 eval "$as_ac_Header=\$ac_header_preproc"
37134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37139 cat >>confdefs.h <<_ACEOF
37140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37149 for ac_header in thread.h synch.h
37151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37153 echo "$as_me:$LINENO: checking for $ac_header" >&5
37154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37156 echo $ECHO_N "(cached) $ECHO_C" >&6
37158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37161 # Is the header compilable?
37162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37164 cat >conftest.$ac_ext <<_ACEOF
37167 cat confdefs.h >>conftest.$ac_ext
37168 cat >>conftest.$ac_ext <<_ACEOF
37169 /* end confdefs.h. */
37170 $ac_includes_default
37171 #include <$ac_header>
37173 rm -f conftest.$ac_objext
37174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37175 (eval $ac_compile) 2>conftest.er1
37177 grep -v '^ *+' conftest.er1 >conftest.err
37179 cat conftest.err >&5
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); } &&
37182 { ac_try='test -z "$ac_c_werror_flag"
37183 || test ! -s conftest.err'
37184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37185 (eval $ac_try) 2>&5
37187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37188 (exit $ac_status); }; } &&
37189 { ac_try='test -s conftest.$ac_objext'
37190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37191 (eval $ac_try) 2>&5
37193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194 (exit $ac_status); }; }; then
37195 ac_header_compiler=yes
37197 echo "$as_me: failed program was:" >&5
37198 sed 's/^/| /' conftest.$ac_ext >&5
37200 ac_header_compiler=no
37202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37204 echo "${ECHO_T}$ac_header_compiler" >&6
37206 # Is the header present?
37207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37209 cat >conftest.$ac_ext <<_ACEOF
37212 cat confdefs.h >>conftest.$ac_ext
37213 cat >>conftest.$ac_ext <<_ACEOF
37214 /* end confdefs.h. */
37215 #include <$ac_header>
37217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37220 grep -v '^ *+' conftest.er1 >conftest.err
37222 cat conftest.err >&5
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); } >/dev/null; then
37225 if test -s conftest.err; then
37226 ac_cpp_err=$ac_c_preproc_warn_flag
37227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37234 if test -z "$ac_cpp_err"; then
37235 ac_header_preproc=yes
37237 echo "$as_me: failed program was:" >&5
37238 sed 's/^/| /' conftest.$ac_ext >&5
37240 ac_header_preproc=no
37242 rm -f conftest.err conftest.$ac_ext
37243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37244 echo "${ECHO_T}$ac_header_preproc" >&6
37246 # So? What about this header?
37247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37253 ac_header_preproc=yes
37256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37270 ## ------------------------------------------ ##
37271 ## Report this to the AC_PACKAGE_NAME lists. ##
37272 ## ------------------------------------------ ##
37275 sed "s/^/$as_me: WARNING: /" >&2
37278 echo "$as_me:$LINENO: checking for $ac_header" >&5
37279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37281 echo $ECHO_N "(cached) $ECHO_C" >&6
37283 eval "$as_ac_Header=\$ac_header_preproc"
37285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37290 cat >>confdefs.h <<_ACEOF
37291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37300 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37301 cat >>confdefs.h <<\_ACEOF
37302 #define REENTRANT 1
37305 cat >>confdefs.h <<\_ACEOF
37306 #define _REENTRANT 1
37309 cat >>confdefs.h <<\_ACEOF
37310 #define THREAD_SAFE 1
37313 cat >>confdefs.h <<\_ACEOF
37314 #define _THREAD_SAFE 1
37317 cat >>confdefs.h <<\_ACEOF
37318 #define THREADSAFE 1
37321 cat >>confdefs.h <<\_ACEOF
37322 #define _THREADSAFE 1
37325 cat >>confdefs.h <<\_ACEOF
37326 #define _SGI_MP_SOURCE 1
37330 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37331 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37332 if test "${ol_cv_errno_thread_specific+set}" = set; then
37333 echo $ECHO_N "(cached) $ECHO_C" >&6
37336 cat >conftest.$ac_ext <<_ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h. */
37351 rm -f conftest.$ac_objext conftest$ac_exeext
37352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37353 (eval $ac_link) 2>conftest.er1
37355 grep -v '^ *+' conftest.er1 >conftest.err
37357 cat conftest.err >&5
37358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359 (exit $ac_status); } &&
37360 { ac_try='test -z "$ac_c_werror_flag"
37361 || test ! -s conftest.err'
37362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37363 (eval $ac_try) 2>&5
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); }; } &&
37367 { ac_try='test -s conftest$ac_exeext'
37368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37369 (eval $ac_try) 2>&5
37371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37372 (exit $ac_status); }; }; then
37373 ol_cv_errno_thread_specific=yes
37375 echo "$as_me: failed program was:" >&5
37376 sed 's/^/| /' conftest.$ac_ext >&5
37378 ol_cv_errno_thread_specific=no
37380 rm -f conftest.err conftest.$ac_objext \
37381 conftest$ac_exeext conftest.$ac_ext
37384 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37385 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37387 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37388 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37389 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37390 echo $ECHO_N "(cached) $ECHO_C" >&6
37393 cat >conftest.$ac_ext <<_ACEOF
37396 cat confdefs.h >>conftest.$ac_ext
37397 cat >>conftest.$ac_ext <<_ACEOF
37398 /* end confdefs.h. */
37408 rm -f conftest.$ac_objext conftest$ac_exeext
37409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37410 (eval $ac_link) 2>conftest.er1
37412 grep -v '^ *+' conftest.er1 >conftest.err
37414 cat conftest.err >&5
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); } &&
37417 { ac_try='test -z "$ac_c_werror_flag"
37418 || test ! -s conftest.err'
37419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37420 (eval $ac_try) 2>&5
37422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423 (exit $ac_status); }; } &&
37424 { ac_try='test -s conftest$ac_exeext'
37425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37426 (eval $ac_try) 2>&5
37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); }; }; then
37430 ol_cv_h_errno_thread_specific=yes
37432 echo "$as_me: failed program was:" >&5
37433 sed 's/^/| /' conftest.$ac_ext >&5
37435 ol_cv_h_errno_thread_specific=no
37437 rm -f conftest.err conftest.$ac_objext \
37438 conftest$ac_exeext conftest.$ac_ext
37441 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37442 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37444 if test $ol_cv_errno_thread_specific != yes \
37445 -o $ol_cv_h_errno_thread_specific != yes ; then
37446 LIBS="$LTHREAD_LIBS $LIBS"
37452 if test $ol_link_threads = no ; then
37453 if test $ol_with_threads = yes ; then
37454 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37455 echo "$as_me: error: no suitable thread support" >&2;}
37456 { (exit 1); exit 1; }; }
37459 if test $ol_with_threads = auto ; then
37460 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37461 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37466 cat >>confdefs.h <<\_ACEOF
37467 #define NO_THREADS 1
37473 if test $ol_link_threads != no ; then
37475 cat >>confdefs.h <<\_ACEOF
37476 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37486 gethostbyname_r gethostbyaddr_r \
37489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37490 echo "$as_me:$LINENO: checking for $ac_func" >&5
37491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37492 if eval "test \"\${$as_ac_var+set}\" = set"; then
37493 echo $ECHO_N "(cached) $ECHO_C" >&6
37495 cat >conftest.$ac_ext <<_ACEOF
37498 cat confdefs.h >>conftest.$ac_ext
37499 cat >>conftest.$ac_ext <<_ACEOF
37500 /* end confdefs.h. */
37501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37503 #define $ac_func innocuous_$ac_func
37505 /* System header to define __stub macros and hopefully few prototypes,
37506 which can conflict with char $ac_func (); below.
37507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37508 <limits.h> exists even on freestanding compilers. */
37511 # include <limits.h>
37513 # include <assert.h>
37518 /* Override any gcc2 internal prototype to avoid an error. */
37523 /* We use char because int might match the return type of a gcc2
37524 builtin and then its argument prototype would still apply. */
37526 /* The GNU C library defines this for functions which it implements
37527 to always fail with ENOSYS. Some functions are actually named
37528 something starting with __ and the normal name is an alias. */
37529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37532 char (*f) () = $ac_func;
37541 return f != $ac_func;
37546 rm -f conftest.$ac_objext conftest$ac_exeext
37547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37548 (eval $ac_link) 2>conftest.er1
37550 grep -v '^ *+' conftest.er1 >conftest.err
37552 cat conftest.err >&5
37553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); } &&
37555 { ac_try='test -z "$ac_c_werror_flag"
37556 || test ! -s conftest.err'
37557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37558 (eval $ac_try) 2>&5
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); }; } &&
37562 { ac_try='test -s conftest$ac_exeext'
37563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564 (eval $ac_try) 2>&5
37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567 (exit $ac_status); }; }; then
37568 eval "$as_ac_var=yes"
37570 echo "$as_me: failed program was:" >&5
37571 sed 's/^/| /' conftest.$ac_ext >&5
37573 eval "$as_ac_var=no"
37575 rm -f conftest.err conftest.$ac_objext \
37576 conftest$ac_exeext conftest.$ac_ext
37578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37580 if test `eval echo '${'$as_ac_var'}'` = yes; then
37581 cat >>confdefs.h <<_ACEOF
37582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37589 if test "$ac_cv_func_ctime_r" = no ; then
37590 ol_cv_func_ctime_r_nargs=0
37592 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37593 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37594 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37595 echo $ECHO_N "(cached) $ECHO_C" >&6
37597 cat >conftest.$ac_ext <<_ACEOF
37600 cat confdefs.h >>conftest.$ac_ext
37601 cat >>conftest.$ac_ext <<_ACEOF
37602 /* end confdefs.h. */
37607 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37612 rm -f conftest.$ac_objext
37613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37614 (eval $ac_compile) 2>conftest.er1
37616 grep -v '^ *+' conftest.er1 >conftest.err
37618 cat conftest.err >&5
37619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620 (exit $ac_status); } &&
37621 { ac_try='test -z "$ac_c_werror_flag"
37622 || test ! -s conftest.err'
37623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37624 (eval $ac_try) 2>&5
37626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 (exit $ac_status); }; } &&
37628 { ac_try='test -s conftest.$ac_objext'
37629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37630 (eval $ac_try) 2>&5
37632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37633 (exit $ac_status); }; }; then
37634 ol_cv_func_ctime_r_nargs3=yes
37636 echo "$as_me: failed program was:" >&5
37637 sed 's/^/| /' conftest.$ac_ext >&5
37639 ol_cv_func_ctime_r_nargs3=no
37641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37643 cat >conftest.$ac_ext <<_ACEOF
37646 cat confdefs.h >>conftest.$ac_ext
37647 cat >>conftest.$ac_ext <<_ACEOF
37648 /* end confdefs.h. */
37653 time_t ti; char *buffer; ctime_r(&ti,buffer);
37658 rm -f conftest.$ac_objext
37659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37660 (eval $ac_compile) 2>conftest.er1
37662 grep -v '^ *+' conftest.er1 >conftest.err
37664 cat conftest.err >&5
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); } &&
37667 { ac_try='test -z "$ac_c_werror_flag"
37668 || test ! -s conftest.err'
37669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37670 (eval $ac_try) 2>&5
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); }; } &&
37674 { ac_try='test -s conftest.$ac_objext'
37675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37676 (eval $ac_try) 2>&5
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); }; }; then
37680 ol_cv_func_ctime_r_nargs2=yes
37682 echo "$as_me: failed program was:" >&5
37683 sed 's/^/| /' conftest.$ac_ext >&5
37685 ol_cv_func_ctime_r_nargs2=no
37687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37689 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37690 $ol_cv_func_ctime_r_nargs2 = no ; then
37692 ol_cv_func_ctime_r_nargs=3
37694 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37695 $ol_cv_func_ctime_r_nargs2 = yes ; then
37697 ol_cv_func_ctime_r_nargs=2
37700 ol_cv_func_ctime_r_nargs=0
37704 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37705 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37707 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37709 cat >>confdefs.h <<_ACEOF
37710 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37717 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37718 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37719 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37720 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37721 echo $ECHO_N "(cached) $ECHO_C" >&6
37723 cat >conftest.$ac_ext <<_ACEOF
37726 cat confdefs.h >>conftest.$ac_ext
37727 cat >>conftest.$ac_ext <<_ACEOF
37728 /* end confdefs.h. */
37729 #include <sys/types.h>
37730 #include <sys/socket.h>
37731 #include <netinet/in.h>
37733 #define BUFSIZE (sizeof(struct hostent)+10)
37737 struct hostent hent; char buffer[BUFSIZE];
37738 int bufsize=BUFSIZE;int h_errno;
37739 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37740 buffer, bufsize, &h_errno);
37745 rm -f conftest.$ac_objext
37746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37747 (eval $ac_compile) 2>conftest.er1
37749 grep -v '^ *+' conftest.er1 >conftest.err
37751 cat conftest.err >&5
37752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37753 (exit $ac_status); } &&
37754 { ac_try='test -z "$ac_c_werror_flag"
37755 || test ! -s conftest.err'
37756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37757 (eval $ac_try) 2>&5
37759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37760 (exit $ac_status); }; } &&
37761 { ac_try='test -s conftest.$ac_objext'
37762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37763 (eval $ac_try) 2>&5
37765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766 (exit $ac_status); }; }; then
37767 ol_cv_func_gethostbyname_r_nargs5=yes
37769 echo "$as_me: failed program was:" >&5
37770 sed 's/^/| /' conftest.$ac_ext >&5
37772 ol_cv_func_gethostbyname_r_nargs5=no
37774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37776 cat >conftest.$ac_ext <<_ACEOF
37779 cat confdefs.h >>conftest.$ac_ext
37780 cat >>conftest.$ac_ext <<_ACEOF
37781 /* end confdefs.h. */
37782 #include <sys/types.h>
37783 #include <sys/socket.h>
37784 #include <netinet/in.h>
37786 #define BUFSIZE (sizeof(struct hostent)+10)
37790 struct hostent hent;struct hostent *rhent;
37791 char buffer[BUFSIZE];
37792 int bufsize=BUFSIZE;int h_errno;
37793 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37799 rm -f conftest.$ac_objext
37800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37801 (eval $ac_compile) 2>conftest.er1
37803 grep -v '^ *+' conftest.er1 >conftest.err
37805 cat conftest.err >&5
37806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807 (exit $ac_status); } &&
37808 { ac_try='test -z "$ac_c_werror_flag"
37809 || test ! -s conftest.err'
37810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37811 (eval $ac_try) 2>&5
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); }; } &&
37815 { ac_try='test -s conftest.$ac_objext'
37816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37817 (eval $ac_try) 2>&5
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); }; }; then
37821 ol_cv_func_gethostbyname_r_nargs6=yes
37823 echo "$as_me: failed program was:" >&5
37824 sed 's/^/| /' conftest.$ac_ext >&5
37826 ol_cv_func_gethostbyname_r_nargs6=no
37828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37830 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37831 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37833 ol_cv_func_gethostbyname_r_nargs=5
37835 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37836 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37838 ol_cv_func_gethostbyname_r_nargs=6
37841 ol_cv_func_gethostbyname_r_nargs=0
37845 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37846 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37847 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37849 cat >>confdefs.h <<_ACEOF
37850 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37856 ol_cv_func_gethostbyname_r_nargs=0
37859 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37860 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37861 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37862 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37863 echo $ECHO_N "(cached) $ECHO_C" >&6
37865 cat >conftest.$ac_ext <<_ACEOF
37868 cat confdefs.h >>conftest.$ac_ext
37869 cat >>conftest.$ac_ext <<_ACEOF
37870 /* end confdefs.h. */
37871 #include <sys/types.h>
37872 #include <sys/socket.h>
37873 #include <netinet/in.h>
37875 #define BUFSIZE (sizeof(struct hostent)+10)
37879 struct hostent hent; char buffer[BUFSIZE];
37880 struct in_addr add;
37881 size_t alen=sizeof(struct in_addr);
37882 int bufsize=BUFSIZE;int h_errno;
37883 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37884 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37889 rm -f conftest.$ac_objext
37890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37891 (eval $ac_compile) 2>conftest.er1
37893 grep -v '^ *+' conftest.er1 >conftest.err
37895 cat conftest.err >&5
37896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37897 (exit $ac_status); } &&
37898 { ac_try='test -z "$ac_c_werror_flag"
37899 || test ! -s conftest.err'
37900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37901 (eval $ac_try) 2>&5
37903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904 (exit $ac_status); }; } &&
37905 { ac_try='test -s conftest.$ac_objext'
37906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37907 (eval $ac_try) 2>&5
37909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910 (exit $ac_status); }; }; then
37911 ol_cv_func_gethostbyaddr_r_nargs7=yes
37913 echo "$as_me: failed program was:" >&5
37914 sed 's/^/| /' conftest.$ac_ext >&5
37916 ol_cv_func_gethostbyaddr_r_nargs7=no
37918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37920 cat >conftest.$ac_ext <<_ACEOF
37923 cat confdefs.h >>conftest.$ac_ext
37924 cat >>conftest.$ac_ext <<_ACEOF
37925 /* end confdefs.h. */
37926 #include <sys/types.h>
37927 #include <sys/socket.h>
37928 #include <netinet/in.h>
37930 #define BUFSIZE (sizeof(struct hostent)+10)
37934 struct hostent hent;
37935 struct hostent *rhent; char buffer[BUFSIZE];
37936 struct in_addr add;
37937 size_t alen=sizeof(struct in_addr);
37938 int bufsize=BUFSIZE;int h_errno;
37939 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37940 alen, AF_INET, &hent, buffer, bufsize,
37946 rm -f conftest.$ac_objext
37947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37948 (eval $ac_compile) 2>conftest.er1
37950 grep -v '^ *+' conftest.er1 >conftest.err
37952 cat conftest.err >&5
37953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954 (exit $ac_status); } &&
37955 { ac_try='test -z "$ac_c_werror_flag"
37956 || test ! -s conftest.err'
37957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37958 (eval $ac_try) 2>&5
37960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37961 (exit $ac_status); }; } &&
37962 { ac_try='test -s conftest.$ac_objext'
37963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37964 (eval $ac_try) 2>&5
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); }; }; then
37968 ol_cv_func_gethostbyaddr_r_nargs8=yes
37970 echo "$as_me: failed program was:" >&5
37971 sed 's/^/| /' conftest.$ac_ext >&5
37973 ol_cv_func_gethostbyaddr_r_nargs8=no
37975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37977 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37978 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37980 ol_cv_func_gethostbyaddr_r_nargs=7
37982 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37983 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37985 ol_cv_func_gethostbyaddr_r_nargs=8
37988 ol_cv_func_gethostbyaddr_r_nargs=0
37992 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37993 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37994 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37996 cat >>confdefs.h <<_ACEOF
37997 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
38003 ol_cv_func_gethostbyaddr_r_nargs=0
38008 if test $ol_enable_ldbm_api = auto \
38009 -o $ol_enable_ldbm_api = berkeley \
38010 -o $ol_enable_ldbm_api = bcompat ; then
38012 if test $ol_enable_ldbm_api = bcompat; then \
38015 for ac_header in db_185.h db.h
38017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38019 echo "$as_me:$LINENO: checking for $ac_header" >&5
38020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38022 echo $ECHO_N "(cached) $ECHO_C" >&6
38024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38027 # Is the header compilable?
38028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38030 cat >conftest.$ac_ext <<_ACEOF
38033 cat confdefs.h >>conftest.$ac_ext
38034 cat >>conftest.$ac_ext <<_ACEOF
38035 /* end confdefs.h. */
38036 $ac_includes_default
38037 #include <$ac_header>
38039 rm -f conftest.$ac_objext
38040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38041 (eval $ac_compile) 2>conftest.er1
38043 grep -v '^ *+' conftest.er1 >conftest.err
38045 cat conftest.err >&5
38046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047 (exit $ac_status); } &&
38048 { ac_try='test -z "$ac_c_werror_flag"
38049 || test ! -s conftest.err'
38050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38051 (eval $ac_try) 2>&5
38053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38054 (exit $ac_status); }; } &&
38055 { ac_try='test -s conftest.$ac_objext'
38056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38057 (eval $ac_try) 2>&5
38059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38060 (exit $ac_status); }; }; then
38061 ac_header_compiler=yes
38063 echo "$as_me: failed program was:" >&5
38064 sed 's/^/| /' conftest.$ac_ext >&5
38066 ac_header_compiler=no
38068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38070 echo "${ECHO_T}$ac_header_compiler" >&6
38072 # Is the header present?
38073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38075 cat >conftest.$ac_ext <<_ACEOF
38078 cat confdefs.h >>conftest.$ac_ext
38079 cat >>conftest.$ac_ext <<_ACEOF
38080 /* end confdefs.h. */
38081 #include <$ac_header>
38083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38086 grep -v '^ *+' conftest.er1 >conftest.err
38088 cat conftest.err >&5
38089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38090 (exit $ac_status); } >/dev/null; then
38091 if test -s conftest.err; then
38092 ac_cpp_err=$ac_c_preproc_warn_flag
38093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38100 if test -z "$ac_cpp_err"; then
38101 ac_header_preproc=yes
38103 echo "$as_me: failed program was:" >&5
38104 sed 's/^/| /' conftest.$ac_ext >&5
38106 ac_header_preproc=no
38108 rm -f conftest.err conftest.$ac_ext
38109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38110 echo "${ECHO_T}$ac_header_preproc" >&6
38112 # So? What about this header?
38113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38119 ac_header_preproc=yes
38122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38136 ## ------------------------------------------ ##
38137 ## Report this to the AC_PACKAGE_NAME lists. ##
38138 ## ------------------------------------------ ##
38141 sed "s/^/$as_me: WARNING: /" >&2
38144 echo "$as_me:$LINENO: checking for $ac_header" >&5
38145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38147 echo $ECHO_N "(cached) $ECHO_C" >&6
38149 eval "$as_ac_Header=\$ac_header_preproc"
38151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38156 cat >>confdefs.h <<_ACEOF
38157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38164 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38165 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38166 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38167 if test "${ol_cv_header_db1+set}" = set; then
38168 echo $ECHO_N "(cached) $ECHO_C" >&6
38171 cat >conftest.$ac_ext <<_ACEOF
38174 cat confdefs.h >>conftest.$ac_ext
38175 cat >>conftest.$ac_ext <<_ACEOF
38176 /* end confdefs.h. */
38179 # include <db_185.h>
38184 /* this check could be improved */
38185 #ifndef DB_VERSION_MAJOR
38186 # define DB_VERSION_MAJOR 1
38189 #if DB_VERSION_MAJOR == 1
38194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38195 $EGREP "__db_version_1" >/dev/null 2>&1; then
38196 ol_cv_header_db1=yes
38198 ol_cv_header_db1=no
38203 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38204 echo "${ECHO_T}$ol_cv_header_db1" >&6
38206 if test $ol_cv_header_db1 = yes ; then
38208 if test $ol_cv_lib_db = no ; then
38209 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38210 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38211 if test "${ol_cv_db_none+set}" = set; then
38212 echo $ECHO_N "(cached) $ECHO_C" >&6
38217 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38219 cat >conftest.$ac_ext <<_ACEOF
38222 cat confdefs.h >>conftest.$ac_ext
38223 cat >>conftest.$ac_ext <<_ACEOF
38224 /* end confdefs.h. */
38226 #ifdef HAVE_DB_185_H
38227 # include <db_185.h>
38232 #ifndef DB_VERSION_MAJOR
38233 # define DB_VERSION_MAJOR 1
38237 #define NULL ((void*)0)
38244 #if DB_VERSION_MAJOR > 1
38247 int major, minor, patch;
38249 version = db_version( &major, &minor, &patch );
38251 if( major != DB_VERSION_MAJOR ||
38252 minor < DB_VERSION_MINOR )
38254 printf("Berkeley DB version mismatch\n"
38255 "\theader: %s\n\tlibrary: %s\n",
38256 DB_VERSION_STRING, version);
38262 #if DB_VERSION_MAJOR > 2
38263 db_env_create( NULL, 0 );
38264 #elif DB_VERSION_MAJOR > 1
38265 db_appexit( NULL );
38267 (void) dbopen( NULL, 0, 0, 0, NULL);
38274 rm -f conftest.$ac_objext conftest$ac_exeext
38275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38276 (eval $ac_link) 2>conftest.er1
38278 grep -v '^ *+' conftest.er1 >conftest.err
38280 cat conftest.err >&5
38281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282 (exit $ac_status); } &&
38283 { ac_try='test -z "$ac_c_werror_flag"
38284 || test ! -s conftest.err'
38285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38286 (eval $ac_try) 2>&5
38288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38289 (exit $ac_status); }; } &&
38290 { ac_try='test -s conftest$ac_exeext'
38291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38292 (eval $ac_try) 2>&5
38294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38295 (exit $ac_status); }; }; then
38298 echo "$as_me: failed program was:" >&5
38299 sed 's/^/| /' conftest.$ac_ext >&5
38303 rm -f conftest.err conftest.$ac_objext \
38304 conftest$ac_exeext conftest.$ac_ext
38309 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38310 echo "${ECHO_T}$ol_cv_db_none" >&6
38312 if test $ol_cv_db_none = yes ; then
38317 if test $ol_cv_lib_db = no ; then
38318 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38319 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38320 if test "${ol_cv_db_db43+set}" = set; then
38321 echo $ECHO_N "(cached) $ECHO_C" >&6
38326 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38328 cat >conftest.$ac_ext <<_ACEOF
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h. */
38335 #ifdef HAVE_DB_185_H
38336 # include <db_185.h>
38341 #ifndef DB_VERSION_MAJOR
38342 # define DB_VERSION_MAJOR 1
38346 #define NULL ((void*)0)
38353 #if DB_VERSION_MAJOR > 1
38356 int major, minor, patch;
38358 version = db_version( &major, &minor, &patch );
38360 if( major != DB_VERSION_MAJOR ||
38361 minor < DB_VERSION_MINOR )
38363 printf("Berkeley DB version mismatch\n"
38364 "\theader: %s\n\tlibrary: %s\n",
38365 DB_VERSION_STRING, version);
38371 #if DB_VERSION_MAJOR > 2
38372 db_env_create( NULL, 0 );
38373 #elif DB_VERSION_MAJOR > 1
38374 db_appexit( NULL );
38376 (void) dbopen( NULL, 0, 0, 0, NULL);
38383 rm -f conftest.$ac_objext conftest$ac_exeext
38384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38385 (eval $ac_link) 2>conftest.er1
38387 grep -v '^ *+' conftest.er1 >conftest.err
38389 cat conftest.err >&5
38390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391 (exit $ac_status); } &&
38392 { ac_try='test -z "$ac_c_werror_flag"
38393 || test ! -s conftest.err'
38394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38395 (eval $ac_try) 2>&5
38397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38398 (exit $ac_status); }; } &&
38399 { ac_try='test -s conftest$ac_exeext'
38400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38401 (eval $ac_try) 2>&5
38403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38404 (exit $ac_status); }; }; then
38407 echo "$as_me: failed program was:" >&5
38408 sed 's/^/| /' conftest.$ac_ext >&5
38412 rm -f conftest.err conftest.$ac_objext \
38413 conftest$ac_exeext conftest.$ac_ext
38418 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38419 echo "${ECHO_T}$ol_cv_db_db43" >&6
38421 if test $ol_cv_db_db43 = yes ; then
38422 ol_cv_lib_db=-ldb43
38426 if test $ol_cv_lib_db = no ; then
38427 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38428 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38429 if test "${ol_cv_db_db_43+set}" = set; then
38430 echo $ECHO_N "(cached) $ECHO_C" >&6
38435 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38437 cat >conftest.$ac_ext <<_ACEOF
38440 cat confdefs.h >>conftest.$ac_ext
38441 cat >>conftest.$ac_ext <<_ACEOF
38442 /* end confdefs.h. */
38444 #ifdef HAVE_DB_185_H
38445 # include <db_185.h>
38450 #ifndef DB_VERSION_MAJOR
38451 # define DB_VERSION_MAJOR 1
38455 #define NULL ((void*)0)
38462 #if DB_VERSION_MAJOR > 1
38465 int major, minor, patch;
38467 version = db_version( &major, &minor, &patch );
38469 if( major != DB_VERSION_MAJOR ||
38470 minor < DB_VERSION_MINOR )
38472 printf("Berkeley DB version mismatch\n"
38473 "\theader: %s\n\tlibrary: %s\n",
38474 DB_VERSION_STRING, version);
38480 #if DB_VERSION_MAJOR > 2
38481 db_env_create( NULL, 0 );
38482 #elif DB_VERSION_MAJOR > 1
38483 db_appexit( NULL );
38485 (void) dbopen( NULL, 0, 0, 0, NULL);
38492 rm -f conftest.$ac_objext conftest$ac_exeext
38493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38494 (eval $ac_link) 2>conftest.er1
38496 grep -v '^ *+' conftest.er1 >conftest.err
38498 cat conftest.err >&5
38499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500 (exit $ac_status); } &&
38501 { ac_try='test -z "$ac_c_werror_flag"
38502 || test ! -s conftest.err'
38503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38504 (eval $ac_try) 2>&5
38506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38507 (exit $ac_status); }; } &&
38508 { ac_try='test -s conftest$ac_exeext'
38509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38510 (eval $ac_try) 2>&5
38512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513 (exit $ac_status); }; }; then
38516 echo "$as_me: failed program was:" >&5
38517 sed 's/^/| /' conftest.$ac_ext >&5
38521 rm -f conftest.err conftest.$ac_objext \
38522 conftest$ac_exeext conftest.$ac_ext
38527 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38528 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38530 if test $ol_cv_db_db_43 = yes ; then
38531 ol_cv_lib_db=-ldb-43
38535 if test $ol_cv_lib_db = no ; then
38536 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38537 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38538 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38539 echo $ECHO_N "(cached) $ECHO_C" >&6
38544 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38546 cat >conftest.$ac_ext <<_ACEOF
38549 cat confdefs.h >>conftest.$ac_ext
38550 cat >>conftest.$ac_ext <<_ACEOF
38551 /* end confdefs.h. */
38553 #ifdef HAVE_DB_185_H
38554 # include <db_185.h>
38559 #ifndef DB_VERSION_MAJOR
38560 # define DB_VERSION_MAJOR 1
38564 #define NULL ((void*)0)
38571 #if DB_VERSION_MAJOR > 1
38574 int major, minor, patch;
38576 version = db_version( &major, &minor, &patch );
38578 if( major != DB_VERSION_MAJOR ||
38579 minor < DB_VERSION_MINOR )
38581 printf("Berkeley DB version mismatch\n"
38582 "\theader: %s\n\tlibrary: %s\n",
38583 DB_VERSION_STRING, version);
38589 #if DB_VERSION_MAJOR > 2
38590 db_env_create( NULL, 0 );
38591 #elif DB_VERSION_MAJOR > 1
38592 db_appexit( NULL );
38594 (void) dbopen( NULL, 0, 0, 0, NULL);
38601 rm -f conftest.$ac_objext conftest$ac_exeext
38602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38603 (eval $ac_link) 2>conftest.er1
38605 grep -v '^ *+' conftest.er1 >conftest.err
38607 cat conftest.err >&5
38608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609 (exit $ac_status); } &&
38610 { ac_try='test -z "$ac_c_werror_flag"
38611 || test ! -s conftest.err'
38612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38613 (eval $ac_try) 2>&5
38615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616 (exit $ac_status); }; } &&
38617 { ac_try='test -s conftest$ac_exeext'
38618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38619 (eval $ac_try) 2>&5
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); }; }; then
38623 ol_cv_db_db_4_dot_3=yes
38625 echo "$as_me: failed program was:" >&5
38626 sed 's/^/| /' conftest.$ac_ext >&5
38628 ol_cv_db_db_4_dot_3=no
38630 rm -f conftest.err conftest.$ac_objext \
38631 conftest$ac_exeext conftest.$ac_ext
38636 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38637 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38639 if test $ol_cv_db_db_4_dot_3 = yes ; then
38640 ol_cv_lib_db=-ldb-4.3
38644 if test $ol_cv_lib_db = no ; then
38645 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38646 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38647 if test "${ol_cv_db_db_4_3+set}" = set; then
38648 echo $ECHO_N "(cached) $ECHO_C" >&6
38653 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38655 cat >conftest.$ac_ext <<_ACEOF
38658 cat confdefs.h >>conftest.$ac_ext
38659 cat >>conftest.$ac_ext <<_ACEOF
38660 /* end confdefs.h. */
38662 #ifdef HAVE_DB_185_H
38663 # include <db_185.h>
38668 #ifndef DB_VERSION_MAJOR
38669 # define DB_VERSION_MAJOR 1
38673 #define NULL ((void*)0)
38680 #if DB_VERSION_MAJOR > 1
38683 int major, minor, patch;
38685 version = db_version( &major, &minor, &patch );
38687 if( major != DB_VERSION_MAJOR ||
38688 minor < DB_VERSION_MINOR )
38690 printf("Berkeley DB version mismatch\n"
38691 "\theader: %s\n\tlibrary: %s\n",
38692 DB_VERSION_STRING, version);
38698 #if DB_VERSION_MAJOR > 2
38699 db_env_create( NULL, 0 );
38700 #elif DB_VERSION_MAJOR > 1
38701 db_appexit( NULL );
38703 (void) dbopen( NULL, 0, 0, 0, NULL);
38710 rm -f conftest.$ac_objext conftest$ac_exeext
38711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38712 (eval $ac_link) 2>conftest.er1
38714 grep -v '^ *+' conftest.er1 >conftest.err
38716 cat conftest.err >&5
38717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718 (exit $ac_status); } &&
38719 { ac_try='test -z "$ac_c_werror_flag"
38720 || test ! -s conftest.err'
38721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38722 (eval $ac_try) 2>&5
38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); }; } &&
38726 { ac_try='test -s conftest$ac_exeext'
38727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38728 (eval $ac_try) 2>&5
38730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731 (exit $ac_status); }; }; then
38732 ol_cv_db_db_4_3=yes
38734 echo "$as_me: failed program was:" >&5
38735 sed 's/^/| /' conftest.$ac_ext >&5
38739 rm -f conftest.err conftest.$ac_objext \
38740 conftest$ac_exeext conftest.$ac_ext
38745 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38746 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38748 if test $ol_cv_db_db_4_3 = yes ; then
38749 ol_cv_lib_db=-ldb-4-3
38753 if test $ol_cv_lib_db = no ; then
38754 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38755 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38756 if test "${ol_cv_db_db42+set}" = set; then
38757 echo $ECHO_N "(cached) $ECHO_C" >&6
38762 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38764 cat >conftest.$ac_ext <<_ACEOF
38767 cat confdefs.h >>conftest.$ac_ext
38768 cat >>conftest.$ac_ext <<_ACEOF
38769 /* end confdefs.h. */
38771 #ifdef HAVE_DB_185_H
38772 # include <db_185.h>
38777 #ifndef DB_VERSION_MAJOR
38778 # define DB_VERSION_MAJOR 1
38782 #define NULL ((void*)0)
38789 #if DB_VERSION_MAJOR > 1
38792 int major, minor, patch;
38794 version = db_version( &major, &minor, &patch );
38796 if( major != DB_VERSION_MAJOR ||
38797 minor < DB_VERSION_MINOR )
38799 printf("Berkeley DB version mismatch\n"
38800 "\theader: %s\n\tlibrary: %s\n",
38801 DB_VERSION_STRING, version);
38807 #if DB_VERSION_MAJOR > 2
38808 db_env_create( NULL, 0 );
38809 #elif DB_VERSION_MAJOR > 1
38810 db_appexit( NULL );
38812 (void) dbopen( NULL, 0, 0, 0, NULL);
38819 rm -f conftest.$ac_objext conftest$ac_exeext
38820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38821 (eval $ac_link) 2>conftest.er1
38823 grep -v '^ *+' conftest.er1 >conftest.err
38825 cat conftest.err >&5
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); } &&
38828 { ac_try='test -z "$ac_c_werror_flag"
38829 || test ! -s conftest.err'
38830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831 (eval $ac_try) 2>&5
38833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); }; } &&
38835 { ac_try='test -s conftest$ac_exeext'
38836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38837 (eval $ac_try) 2>&5
38839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38840 (exit $ac_status); }; }; then
38843 echo "$as_me: failed program was:" >&5
38844 sed 's/^/| /' conftest.$ac_ext >&5
38848 rm -f conftest.err conftest.$ac_objext \
38849 conftest$ac_exeext conftest.$ac_ext
38854 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38855 echo "${ECHO_T}$ol_cv_db_db42" >&6
38857 if test $ol_cv_db_db42 = yes ; then
38858 ol_cv_lib_db=-ldb42
38862 if test $ol_cv_lib_db = no ; then
38863 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38864 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38865 if test "${ol_cv_db_db_42+set}" = set; then
38866 echo $ECHO_N "(cached) $ECHO_C" >&6
38871 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38873 cat >conftest.$ac_ext <<_ACEOF
38876 cat confdefs.h >>conftest.$ac_ext
38877 cat >>conftest.$ac_ext <<_ACEOF
38878 /* end confdefs.h. */
38880 #ifdef HAVE_DB_185_H
38881 # include <db_185.h>
38886 #ifndef DB_VERSION_MAJOR
38887 # define DB_VERSION_MAJOR 1
38891 #define NULL ((void*)0)
38898 #if DB_VERSION_MAJOR > 1
38901 int major, minor, patch;
38903 version = db_version( &major, &minor, &patch );
38905 if( major != DB_VERSION_MAJOR ||
38906 minor < DB_VERSION_MINOR )
38908 printf("Berkeley DB version mismatch\n"
38909 "\theader: %s\n\tlibrary: %s\n",
38910 DB_VERSION_STRING, version);
38916 #if DB_VERSION_MAJOR > 2
38917 db_env_create( NULL, 0 );
38918 #elif DB_VERSION_MAJOR > 1
38919 db_appexit( NULL );
38921 (void) dbopen( NULL, 0, 0, 0, NULL);
38928 rm -f conftest.$ac_objext conftest$ac_exeext
38929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38930 (eval $ac_link) 2>conftest.er1
38932 grep -v '^ *+' conftest.er1 >conftest.err
38934 cat conftest.err >&5
38935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936 (exit $ac_status); } &&
38937 { ac_try='test -z "$ac_c_werror_flag"
38938 || test ! -s conftest.err'
38939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38940 (eval $ac_try) 2>&5
38942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38943 (exit $ac_status); }; } &&
38944 { ac_try='test -s conftest$ac_exeext'
38945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38946 (eval $ac_try) 2>&5
38948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949 (exit $ac_status); }; }; then
38952 echo "$as_me: failed program was:" >&5
38953 sed 's/^/| /' conftest.$ac_ext >&5
38957 rm -f conftest.err conftest.$ac_objext \
38958 conftest$ac_exeext conftest.$ac_ext
38963 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38964 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38966 if test $ol_cv_db_db_42 = yes ; then
38967 ol_cv_lib_db=-ldb-42
38971 if test $ol_cv_lib_db = no ; then
38972 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38973 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38974 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38975 echo $ECHO_N "(cached) $ECHO_C" >&6
38980 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38982 cat >conftest.$ac_ext <<_ACEOF
38985 cat confdefs.h >>conftest.$ac_ext
38986 cat >>conftest.$ac_ext <<_ACEOF
38987 /* end confdefs.h. */
38989 #ifdef HAVE_DB_185_H
38990 # include <db_185.h>
38995 #ifndef DB_VERSION_MAJOR
38996 # define DB_VERSION_MAJOR 1
39000 #define NULL ((void*)0)
39007 #if DB_VERSION_MAJOR > 1
39010 int major, minor, patch;
39012 version = db_version( &major, &minor, &patch );
39014 if( major != DB_VERSION_MAJOR ||
39015 minor < DB_VERSION_MINOR )
39017 printf("Berkeley DB version mismatch\n"
39018 "\theader: %s\n\tlibrary: %s\n",
39019 DB_VERSION_STRING, version);
39025 #if DB_VERSION_MAJOR > 2
39026 db_env_create( NULL, 0 );
39027 #elif DB_VERSION_MAJOR > 1
39028 db_appexit( NULL );
39030 (void) dbopen( NULL, 0, 0, 0, NULL);
39037 rm -f conftest.$ac_objext conftest$ac_exeext
39038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39039 (eval $ac_link) 2>conftest.er1
39041 grep -v '^ *+' conftest.er1 >conftest.err
39043 cat conftest.err >&5
39044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39045 (exit $ac_status); } &&
39046 { ac_try='test -z "$ac_c_werror_flag"
39047 || test ! -s conftest.err'
39048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39049 (eval $ac_try) 2>&5
39051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052 (exit $ac_status); }; } &&
39053 { ac_try='test -s conftest$ac_exeext'
39054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39055 (eval $ac_try) 2>&5
39057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058 (exit $ac_status); }; }; then
39059 ol_cv_db_db_4_dot_2=yes
39061 echo "$as_me: failed program was:" >&5
39062 sed 's/^/| /' conftest.$ac_ext >&5
39064 ol_cv_db_db_4_dot_2=no
39066 rm -f conftest.err conftest.$ac_objext \
39067 conftest$ac_exeext conftest.$ac_ext
39072 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
39073 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
39075 if test $ol_cv_db_db_4_dot_2 = yes ; then
39076 ol_cv_lib_db=-ldb-4.2
39080 if test $ol_cv_lib_db = no ; then
39081 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
39082 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
39083 if test "${ol_cv_db_db_4_2+set}" = set; then
39084 echo $ECHO_N "(cached) $ECHO_C" >&6
39089 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39091 cat >conftest.$ac_ext <<_ACEOF
39094 cat confdefs.h >>conftest.$ac_ext
39095 cat >>conftest.$ac_ext <<_ACEOF
39096 /* end confdefs.h. */
39098 #ifdef HAVE_DB_185_H
39099 # include <db_185.h>
39104 #ifndef DB_VERSION_MAJOR
39105 # define DB_VERSION_MAJOR 1
39109 #define NULL ((void*)0)
39116 #if DB_VERSION_MAJOR > 1
39119 int major, minor, patch;
39121 version = db_version( &major, &minor, &patch );
39123 if( major != DB_VERSION_MAJOR ||
39124 minor < DB_VERSION_MINOR )
39126 printf("Berkeley DB version mismatch\n"
39127 "\theader: %s\n\tlibrary: %s\n",
39128 DB_VERSION_STRING, version);
39134 #if DB_VERSION_MAJOR > 2
39135 db_env_create( NULL, 0 );
39136 #elif DB_VERSION_MAJOR > 1
39137 db_appexit( NULL );
39139 (void) dbopen( NULL, 0, 0, 0, NULL);
39146 rm -f conftest.$ac_objext conftest$ac_exeext
39147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39148 (eval $ac_link) 2>conftest.er1
39150 grep -v '^ *+' conftest.er1 >conftest.err
39152 cat conftest.err >&5
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); } &&
39155 { ac_try='test -z "$ac_c_werror_flag"
39156 || test ! -s conftest.err'
39157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39158 (eval $ac_try) 2>&5
39160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39161 (exit $ac_status); }; } &&
39162 { ac_try='test -s conftest$ac_exeext'
39163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39164 (eval $ac_try) 2>&5
39166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39167 (exit $ac_status); }; }; then
39168 ol_cv_db_db_4_2=yes
39170 echo "$as_me: failed program was:" >&5
39171 sed 's/^/| /' conftest.$ac_ext >&5
39175 rm -f conftest.err conftest.$ac_objext \
39176 conftest$ac_exeext conftest.$ac_ext
39181 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39182 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39184 if test $ol_cv_db_db_4_2 = yes ; then
39185 ol_cv_lib_db=-ldb-4-2
39189 if test $ol_cv_lib_db = no ; then
39190 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39191 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39192 if test "${ol_cv_db_db_4+set}" = set; then
39193 echo $ECHO_N "(cached) $ECHO_C" >&6
39198 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39200 cat >conftest.$ac_ext <<_ACEOF
39203 cat confdefs.h >>conftest.$ac_ext
39204 cat >>conftest.$ac_ext <<_ACEOF
39205 /* end confdefs.h. */
39207 #ifdef HAVE_DB_185_H
39208 # include <db_185.h>
39213 #ifndef DB_VERSION_MAJOR
39214 # define DB_VERSION_MAJOR 1
39218 #define NULL ((void*)0)
39225 #if DB_VERSION_MAJOR > 1
39228 int major, minor, patch;
39230 version = db_version( &major, &minor, &patch );
39232 if( major != DB_VERSION_MAJOR ||
39233 minor < DB_VERSION_MINOR )
39235 printf("Berkeley DB version mismatch\n"
39236 "\theader: %s\n\tlibrary: %s\n",
39237 DB_VERSION_STRING, version);
39243 #if DB_VERSION_MAJOR > 2
39244 db_env_create( NULL, 0 );
39245 #elif DB_VERSION_MAJOR > 1
39246 db_appexit( NULL );
39248 (void) dbopen( NULL, 0, 0, 0, NULL);
39255 rm -f conftest.$ac_objext conftest$ac_exeext
39256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39257 (eval $ac_link) 2>conftest.er1
39259 grep -v '^ *+' conftest.er1 >conftest.err
39261 cat conftest.err >&5
39262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39263 (exit $ac_status); } &&
39264 { ac_try='test -z "$ac_c_werror_flag"
39265 || test ! -s conftest.err'
39266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39267 (eval $ac_try) 2>&5
39269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39270 (exit $ac_status); }; } &&
39271 { ac_try='test -s conftest$ac_exeext'
39272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39273 (eval $ac_try) 2>&5
39275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276 (exit $ac_status); }; }; then
39279 echo "$as_me: failed program was:" >&5
39280 sed 's/^/| /' conftest.$ac_ext >&5
39284 rm -f conftest.err conftest.$ac_objext \
39285 conftest$ac_exeext conftest.$ac_ext
39290 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39291 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39293 if test $ol_cv_db_db_4 = yes ; then
39294 ol_cv_lib_db=-ldb-4
39298 if test $ol_cv_lib_db = no ; then
39299 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39300 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39301 if test "${ol_cv_db_db4+set}" = set; then
39302 echo $ECHO_N "(cached) $ECHO_C" >&6
39307 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39309 cat >conftest.$ac_ext <<_ACEOF
39312 cat confdefs.h >>conftest.$ac_ext
39313 cat >>conftest.$ac_ext <<_ACEOF
39314 /* end confdefs.h. */
39316 #ifdef HAVE_DB_185_H
39317 # include <db_185.h>
39322 #ifndef DB_VERSION_MAJOR
39323 # define DB_VERSION_MAJOR 1
39327 #define NULL ((void*)0)
39334 #if DB_VERSION_MAJOR > 1
39337 int major, minor, patch;
39339 version = db_version( &major, &minor, &patch );
39341 if( major != DB_VERSION_MAJOR ||
39342 minor < DB_VERSION_MINOR )
39344 printf("Berkeley DB version mismatch\n"
39345 "\theader: %s\n\tlibrary: %s\n",
39346 DB_VERSION_STRING, version);
39352 #if DB_VERSION_MAJOR > 2
39353 db_env_create( NULL, 0 );
39354 #elif DB_VERSION_MAJOR > 1
39355 db_appexit( NULL );
39357 (void) dbopen( NULL, 0, 0, 0, NULL);
39364 rm -f conftest.$ac_objext conftest$ac_exeext
39365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39366 (eval $ac_link) 2>conftest.er1
39368 grep -v '^ *+' conftest.er1 >conftest.err
39370 cat conftest.err >&5
39371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372 (exit $ac_status); } &&
39373 { ac_try='test -z "$ac_c_werror_flag"
39374 || test ! -s conftest.err'
39375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39376 (eval $ac_try) 2>&5
39378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39379 (exit $ac_status); }; } &&
39380 { ac_try='test -s conftest$ac_exeext'
39381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39382 (eval $ac_try) 2>&5
39384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); }; }; then
39388 echo "$as_me: failed program was:" >&5
39389 sed 's/^/| /' conftest.$ac_ext >&5
39393 rm -f conftest.err conftest.$ac_objext \
39394 conftest$ac_exeext conftest.$ac_ext
39399 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39400 echo "${ECHO_T}$ol_cv_db_db4" >&6
39402 if test $ol_cv_db_db4 = yes ; then
39407 if test $ol_cv_lib_db = no ; then
39408 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39409 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39410 if test "${ol_cv_db_db+set}" = set; then
39411 echo $ECHO_N "(cached) $ECHO_C" >&6
39416 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39418 cat >conftest.$ac_ext <<_ACEOF
39421 cat confdefs.h >>conftest.$ac_ext
39422 cat >>conftest.$ac_ext <<_ACEOF
39423 /* end confdefs.h. */
39425 #ifdef HAVE_DB_185_H
39426 # include <db_185.h>
39431 #ifndef DB_VERSION_MAJOR
39432 # define DB_VERSION_MAJOR 1
39436 #define NULL ((void*)0)
39443 #if DB_VERSION_MAJOR > 1
39446 int major, minor, patch;
39448 version = db_version( &major, &minor, &patch );
39450 if( major != DB_VERSION_MAJOR ||
39451 minor < DB_VERSION_MINOR )
39453 printf("Berkeley DB version mismatch\n"
39454 "\theader: %s\n\tlibrary: %s\n",
39455 DB_VERSION_STRING, version);
39461 #if DB_VERSION_MAJOR > 2
39462 db_env_create( NULL, 0 );
39463 #elif DB_VERSION_MAJOR > 1
39464 db_appexit( NULL );
39466 (void) dbopen( NULL, 0, 0, 0, NULL);
39473 rm -f conftest.$ac_objext conftest$ac_exeext
39474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39475 (eval $ac_link) 2>conftest.er1
39477 grep -v '^ *+' conftest.er1 >conftest.err
39479 cat conftest.err >&5
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); } &&
39482 { ac_try='test -z "$ac_c_werror_flag"
39483 || test ! -s conftest.err'
39484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39485 (eval $ac_try) 2>&5
39487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39488 (exit $ac_status); }; } &&
39489 { ac_try='test -s conftest$ac_exeext'
39490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39491 (eval $ac_try) 2>&5
39493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39494 (exit $ac_status); }; }; then
39497 echo "$as_me: failed program was:" >&5
39498 sed 's/^/| /' conftest.$ac_ext >&5
39502 rm -f conftest.err conftest.$ac_objext \
39503 conftest$ac_exeext conftest.$ac_ext
39508 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39509 echo "${ECHO_T}$ol_cv_db_db" >&6
39511 if test $ol_cv_db_db = yes ; then
39516 if test $ol_cv_lib_db = no ; then
39517 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39518 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39519 if test "${ol_cv_db_db41+set}" = set; then
39520 echo $ECHO_N "(cached) $ECHO_C" >&6
39525 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39527 cat >conftest.$ac_ext <<_ACEOF
39530 cat confdefs.h >>conftest.$ac_ext
39531 cat >>conftest.$ac_ext <<_ACEOF
39532 /* end confdefs.h. */
39534 #ifdef HAVE_DB_185_H
39535 # include <db_185.h>
39540 #ifndef DB_VERSION_MAJOR
39541 # define DB_VERSION_MAJOR 1
39545 #define NULL ((void*)0)
39552 #if DB_VERSION_MAJOR > 1
39555 int major, minor, patch;
39557 version = db_version( &major, &minor, &patch );
39559 if( major != DB_VERSION_MAJOR ||
39560 minor < DB_VERSION_MINOR )
39562 printf("Berkeley DB version mismatch\n"
39563 "\theader: %s\n\tlibrary: %s\n",
39564 DB_VERSION_STRING, version);
39570 #if DB_VERSION_MAJOR > 2
39571 db_env_create( NULL, 0 );
39572 #elif DB_VERSION_MAJOR > 1
39573 db_appexit( NULL );
39575 (void) dbopen( NULL, 0, 0, 0, NULL);
39582 rm -f conftest.$ac_objext conftest$ac_exeext
39583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39584 (eval $ac_link) 2>conftest.er1
39586 grep -v '^ *+' conftest.er1 >conftest.err
39588 cat conftest.err >&5
39589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); } &&
39591 { ac_try='test -z "$ac_c_werror_flag"
39592 || test ! -s conftest.err'
39593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39594 (eval $ac_try) 2>&5
39596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39597 (exit $ac_status); }; } &&
39598 { ac_try='test -s conftest$ac_exeext'
39599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39600 (eval $ac_try) 2>&5
39602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603 (exit $ac_status); }; }; then
39606 echo "$as_me: failed program was:" >&5
39607 sed 's/^/| /' conftest.$ac_ext >&5
39611 rm -f conftest.err conftest.$ac_objext \
39612 conftest$ac_exeext conftest.$ac_ext
39617 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39618 echo "${ECHO_T}$ol_cv_db_db41" >&6
39620 if test $ol_cv_db_db41 = yes ; then
39621 ol_cv_lib_db=-ldb41
39625 if test $ol_cv_lib_db = no ; then
39626 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39627 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39628 if test "${ol_cv_db_db_41+set}" = set; then
39629 echo $ECHO_N "(cached) $ECHO_C" >&6
39634 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39636 cat >conftest.$ac_ext <<_ACEOF
39639 cat confdefs.h >>conftest.$ac_ext
39640 cat >>conftest.$ac_ext <<_ACEOF
39641 /* end confdefs.h. */
39643 #ifdef HAVE_DB_185_H
39644 # include <db_185.h>
39649 #ifndef DB_VERSION_MAJOR
39650 # define DB_VERSION_MAJOR 1
39654 #define NULL ((void*)0)
39661 #if DB_VERSION_MAJOR > 1
39664 int major, minor, patch;
39666 version = db_version( &major, &minor, &patch );
39668 if( major != DB_VERSION_MAJOR ||
39669 minor < DB_VERSION_MINOR )
39671 printf("Berkeley DB version mismatch\n"
39672 "\theader: %s\n\tlibrary: %s\n",
39673 DB_VERSION_STRING, version);
39679 #if DB_VERSION_MAJOR > 2
39680 db_env_create( NULL, 0 );
39681 #elif DB_VERSION_MAJOR > 1
39682 db_appexit( NULL );
39684 (void) dbopen( NULL, 0, 0, 0, NULL);
39691 rm -f conftest.$ac_objext conftest$ac_exeext
39692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39693 (eval $ac_link) 2>conftest.er1
39695 grep -v '^ *+' conftest.er1 >conftest.err
39697 cat conftest.err >&5
39698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699 (exit $ac_status); } &&
39700 { ac_try='test -z "$ac_c_werror_flag"
39701 || test ! -s conftest.err'
39702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39703 (eval $ac_try) 2>&5
39705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39706 (exit $ac_status); }; } &&
39707 { ac_try='test -s conftest$ac_exeext'
39708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39709 (eval $ac_try) 2>&5
39711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39712 (exit $ac_status); }; }; then
39715 echo "$as_me: failed program was:" >&5
39716 sed 's/^/| /' conftest.$ac_ext >&5
39720 rm -f conftest.err conftest.$ac_objext \
39721 conftest$ac_exeext conftest.$ac_ext
39726 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39727 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39729 if test $ol_cv_db_db_41 = yes ; then
39730 ol_cv_lib_db=-ldb-41
39734 if test $ol_cv_lib_db = no ; then
39735 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39736 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39737 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39738 echo $ECHO_N "(cached) $ECHO_C" >&6
39743 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39745 cat >conftest.$ac_ext <<_ACEOF
39748 cat confdefs.h >>conftest.$ac_ext
39749 cat >>conftest.$ac_ext <<_ACEOF
39750 /* end confdefs.h. */
39752 #ifdef HAVE_DB_185_H
39753 # include <db_185.h>
39758 #ifndef DB_VERSION_MAJOR
39759 # define DB_VERSION_MAJOR 1
39763 #define NULL ((void*)0)
39770 #if DB_VERSION_MAJOR > 1
39773 int major, minor, patch;
39775 version = db_version( &major, &minor, &patch );
39777 if( major != DB_VERSION_MAJOR ||
39778 minor < DB_VERSION_MINOR )
39780 printf("Berkeley DB version mismatch\n"
39781 "\theader: %s\n\tlibrary: %s\n",
39782 DB_VERSION_STRING, version);
39788 #if DB_VERSION_MAJOR > 2
39789 db_env_create( NULL, 0 );
39790 #elif DB_VERSION_MAJOR > 1
39791 db_appexit( NULL );
39793 (void) dbopen( NULL, 0, 0, 0, NULL);
39800 rm -f conftest.$ac_objext conftest$ac_exeext
39801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39802 (eval $ac_link) 2>conftest.er1
39804 grep -v '^ *+' conftest.er1 >conftest.err
39806 cat conftest.err >&5
39807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808 (exit $ac_status); } &&
39809 { ac_try='test -z "$ac_c_werror_flag"
39810 || test ! -s conftest.err'
39811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39812 (eval $ac_try) 2>&5
39814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39815 (exit $ac_status); }; } &&
39816 { ac_try='test -s conftest$ac_exeext'
39817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39818 (eval $ac_try) 2>&5
39820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39821 (exit $ac_status); }; }; then
39822 ol_cv_db_db_4_dot_1=yes
39824 echo "$as_me: failed program was:" >&5
39825 sed 's/^/| /' conftest.$ac_ext >&5
39827 ol_cv_db_db_4_dot_1=no
39829 rm -f conftest.err conftest.$ac_objext \
39830 conftest$ac_exeext conftest.$ac_ext
39835 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39836 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39838 if test $ol_cv_db_db_4_dot_1 = yes ; then
39839 ol_cv_lib_db=-ldb-4.1
39843 if test $ol_cv_lib_db = no ; then
39844 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39845 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39846 if test "${ol_cv_db_db_4_1+set}" = set; then
39847 echo $ECHO_N "(cached) $ECHO_C" >&6
39852 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39854 cat >conftest.$ac_ext <<_ACEOF
39857 cat confdefs.h >>conftest.$ac_ext
39858 cat >>conftest.$ac_ext <<_ACEOF
39859 /* end confdefs.h. */
39861 #ifdef HAVE_DB_185_H
39862 # include <db_185.h>
39867 #ifndef DB_VERSION_MAJOR
39868 # define DB_VERSION_MAJOR 1
39872 #define NULL ((void*)0)
39879 #if DB_VERSION_MAJOR > 1
39882 int major, minor, patch;
39884 version = db_version( &major, &minor, &patch );
39886 if( major != DB_VERSION_MAJOR ||
39887 minor < DB_VERSION_MINOR )
39889 printf("Berkeley DB version mismatch\n"
39890 "\theader: %s\n\tlibrary: %s\n",
39891 DB_VERSION_STRING, version);
39897 #if DB_VERSION_MAJOR > 2
39898 db_env_create( NULL, 0 );
39899 #elif DB_VERSION_MAJOR > 1
39900 db_appexit( NULL );
39902 (void) dbopen( NULL, 0, 0, 0, NULL);
39909 rm -f conftest.$ac_objext conftest$ac_exeext
39910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39911 (eval $ac_link) 2>conftest.er1
39913 grep -v '^ *+' conftest.er1 >conftest.err
39915 cat conftest.err >&5
39916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917 (exit $ac_status); } &&
39918 { ac_try='test -z "$ac_c_werror_flag"
39919 || test ! -s conftest.err'
39920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39921 (eval $ac_try) 2>&5
39923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39924 (exit $ac_status); }; } &&
39925 { ac_try='test -s conftest$ac_exeext'
39926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39927 (eval $ac_try) 2>&5
39929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930 (exit $ac_status); }; }; then
39931 ol_cv_db_db_4_1=yes
39933 echo "$as_me: failed program was:" >&5
39934 sed 's/^/| /' conftest.$ac_ext >&5
39938 rm -f conftest.err conftest.$ac_objext \
39939 conftest$ac_exeext conftest.$ac_ext
39944 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39945 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39947 if test $ol_cv_db_db_4_1 = yes ; then
39948 ol_cv_lib_db=-ldb-4-1
39952 if test $ol_cv_lib_db = no ; then
39953 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39954 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39955 if test "${ol_cv_db_db3+set}" = set; then
39956 echo $ECHO_N "(cached) $ECHO_C" >&6
39961 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39963 cat >conftest.$ac_ext <<_ACEOF
39966 cat confdefs.h >>conftest.$ac_ext
39967 cat >>conftest.$ac_ext <<_ACEOF
39968 /* end confdefs.h. */
39970 #ifdef HAVE_DB_185_H
39971 # include <db_185.h>
39976 #ifndef DB_VERSION_MAJOR
39977 # define DB_VERSION_MAJOR 1
39981 #define NULL ((void*)0)
39988 #if DB_VERSION_MAJOR > 1
39991 int major, minor, patch;
39993 version = db_version( &major, &minor, &patch );
39995 if( major != DB_VERSION_MAJOR ||
39996 minor < DB_VERSION_MINOR )
39998 printf("Berkeley DB version mismatch\n"
39999 "\theader: %s\n\tlibrary: %s\n",
40000 DB_VERSION_STRING, version);
40006 #if DB_VERSION_MAJOR > 2
40007 db_env_create( NULL, 0 );
40008 #elif DB_VERSION_MAJOR > 1
40009 db_appexit( NULL );
40011 (void) dbopen( NULL, 0, 0, 0, NULL);
40018 rm -f conftest.$ac_objext conftest$ac_exeext
40019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40020 (eval $ac_link) 2>conftest.er1
40022 grep -v '^ *+' conftest.er1 >conftest.err
40024 cat conftest.err >&5
40025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026 (exit $ac_status); } &&
40027 { ac_try='test -z "$ac_c_werror_flag"
40028 || test ! -s conftest.err'
40029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40030 (eval $ac_try) 2>&5
40032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033 (exit $ac_status); }; } &&
40034 { ac_try='test -s conftest$ac_exeext'
40035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036 (eval $ac_try) 2>&5
40038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039 (exit $ac_status); }; }; then
40042 echo "$as_me: failed program was:" >&5
40043 sed 's/^/| /' conftest.$ac_ext >&5
40047 rm -f conftest.err conftest.$ac_objext \
40048 conftest$ac_exeext conftest.$ac_ext
40053 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
40054 echo "${ECHO_T}$ol_cv_db_db3" >&6
40056 if test $ol_cv_db_db3 = yes ; then
40061 if test $ol_cv_lib_db = no ; then
40062 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
40063 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
40064 if test "${ol_cv_db_db_3+set}" = set; then
40065 echo $ECHO_N "(cached) $ECHO_C" >&6
40070 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40072 cat >conftest.$ac_ext <<_ACEOF
40075 cat confdefs.h >>conftest.$ac_ext
40076 cat >>conftest.$ac_ext <<_ACEOF
40077 /* end confdefs.h. */
40079 #ifdef HAVE_DB_185_H
40080 # include <db_185.h>
40085 #ifndef DB_VERSION_MAJOR
40086 # define DB_VERSION_MAJOR 1
40090 #define NULL ((void*)0)
40097 #if DB_VERSION_MAJOR > 1
40100 int major, minor, patch;
40102 version = db_version( &major, &minor, &patch );
40104 if( major != DB_VERSION_MAJOR ||
40105 minor < DB_VERSION_MINOR )
40107 printf("Berkeley DB version mismatch\n"
40108 "\theader: %s\n\tlibrary: %s\n",
40109 DB_VERSION_STRING, version);
40115 #if DB_VERSION_MAJOR > 2
40116 db_env_create( NULL, 0 );
40117 #elif DB_VERSION_MAJOR > 1
40118 db_appexit( NULL );
40120 (void) dbopen( NULL, 0, 0, 0, NULL);
40127 rm -f conftest.$ac_objext conftest$ac_exeext
40128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40129 (eval $ac_link) 2>conftest.er1
40131 grep -v '^ *+' conftest.er1 >conftest.err
40133 cat conftest.err >&5
40134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135 (exit $ac_status); } &&
40136 { ac_try='test -z "$ac_c_werror_flag"
40137 || test ! -s conftest.err'
40138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40139 (eval $ac_try) 2>&5
40141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40142 (exit $ac_status); }; } &&
40143 { ac_try='test -s conftest$ac_exeext'
40144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40145 (eval $ac_try) 2>&5
40147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148 (exit $ac_status); }; }; then
40151 echo "$as_me: failed program was:" >&5
40152 sed 's/^/| /' conftest.$ac_ext >&5
40156 rm -f conftest.err conftest.$ac_objext \
40157 conftest$ac_exeext conftest.$ac_ext
40162 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40163 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40165 if test $ol_cv_db_db_3 = yes ; then
40166 ol_cv_lib_db=-ldb-3
40170 if test $ol_cv_lib_db = no ; then
40171 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40172 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40173 if test "${ol_cv_db_db2+set}" = set; then
40174 echo $ECHO_N "(cached) $ECHO_C" >&6
40179 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40181 cat >conftest.$ac_ext <<_ACEOF
40184 cat confdefs.h >>conftest.$ac_ext
40185 cat >>conftest.$ac_ext <<_ACEOF
40186 /* end confdefs.h. */
40188 #ifdef HAVE_DB_185_H
40189 # include <db_185.h>
40194 #ifndef DB_VERSION_MAJOR
40195 # define DB_VERSION_MAJOR 1
40199 #define NULL ((void*)0)
40206 #if DB_VERSION_MAJOR > 1
40209 int major, minor, patch;
40211 version = db_version( &major, &minor, &patch );
40213 if( major != DB_VERSION_MAJOR ||
40214 minor < DB_VERSION_MINOR )
40216 printf("Berkeley DB version mismatch\n"
40217 "\theader: %s\n\tlibrary: %s\n",
40218 DB_VERSION_STRING, version);
40224 #if DB_VERSION_MAJOR > 2
40225 db_env_create( NULL, 0 );
40226 #elif DB_VERSION_MAJOR > 1
40227 db_appexit( NULL );
40229 (void) dbopen( NULL, 0, 0, 0, NULL);
40236 rm -f conftest.$ac_objext conftest$ac_exeext
40237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40238 (eval $ac_link) 2>conftest.er1
40240 grep -v '^ *+' conftest.er1 >conftest.err
40242 cat conftest.err >&5
40243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 (exit $ac_status); } &&
40245 { ac_try='test -z "$ac_c_werror_flag"
40246 || test ! -s conftest.err'
40247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40248 (eval $ac_try) 2>&5
40250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40251 (exit $ac_status); }; } &&
40252 { ac_try='test -s conftest$ac_exeext'
40253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40254 (eval $ac_try) 2>&5
40256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257 (exit $ac_status); }; }; then
40260 echo "$as_me: failed program was:" >&5
40261 sed 's/^/| /' conftest.$ac_ext >&5
40265 rm -f conftest.err conftest.$ac_objext \
40266 conftest$ac_exeext conftest.$ac_ext
40271 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40272 echo "${ECHO_T}$ol_cv_db_db2" >&6
40274 if test $ol_cv_db_db2 = yes ; then
40279 if test $ol_cv_lib_db = no ; then
40280 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40281 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40282 if test "${ol_cv_db_db_2+set}" = set; then
40283 echo $ECHO_N "(cached) $ECHO_C" >&6
40288 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40290 cat >conftest.$ac_ext <<_ACEOF
40293 cat confdefs.h >>conftest.$ac_ext
40294 cat >>conftest.$ac_ext <<_ACEOF
40295 /* end confdefs.h. */
40297 #ifdef HAVE_DB_185_H
40298 # include <db_185.h>
40303 #ifndef DB_VERSION_MAJOR
40304 # define DB_VERSION_MAJOR 1
40308 #define NULL ((void*)0)
40315 #if DB_VERSION_MAJOR > 1
40318 int major, minor, patch;
40320 version = db_version( &major, &minor, &patch );
40322 if( major != DB_VERSION_MAJOR ||
40323 minor < DB_VERSION_MINOR )
40325 printf("Berkeley DB version mismatch\n"
40326 "\theader: %s\n\tlibrary: %s\n",
40327 DB_VERSION_STRING, version);
40333 #if DB_VERSION_MAJOR > 2
40334 db_env_create( NULL, 0 );
40335 #elif DB_VERSION_MAJOR > 1
40336 db_appexit( NULL );
40338 (void) dbopen( NULL, 0, 0, 0, NULL);
40345 rm -f conftest.$ac_objext conftest$ac_exeext
40346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40347 (eval $ac_link) 2>conftest.er1
40349 grep -v '^ *+' conftest.er1 >conftest.err
40351 cat conftest.err >&5
40352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353 (exit $ac_status); } &&
40354 { ac_try='test -z "$ac_c_werror_flag"
40355 || test ! -s conftest.err'
40356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40357 (eval $ac_try) 2>&5
40359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40360 (exit $ac_status); }; } &&
40361 { ac_try='test -s conftest$ac_exeext'
40362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40363 (eval $ac_try) 2>&5
40365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40366 (exit $ac_status); }; }; then
40369 echo "$as_me: failed program was:" >&5
40370 sed 's/^/| /' conftest.$ac_ext >&5
40374 rm -f conftest.err conftest.$ac_objext \
40375 conftest$ac_exeext conftest.$ac_ext
40380 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40381 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40383 if test $ol_cv_db_db_2 = yes ; then
40384 ol_cv_lib_db=-ldb-2
40388 if test $ol_cv_lib_db = no ; then
40389 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40390 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40391 if test "${ol_cv_db_db1+set}" = set; then
40392 echo $ECHO_N "(cached) $ECHO_C" >&6
40397 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40399 cat >conftest.$ac_ext <<_ACEOF
40402 cat confdefs.h >>conftest.$ac_ext
40403 cat >>conftest.$ac_ext <<_ACEOF
40404 /* end confdefs.h. */
40406 #ifdef HAVE_DB_185_H
40407 # include <db_185.h>
40412 #ifndef DB_VERSION_MAJOR
40413 # define DB_VERSION_MAJOR 1
40417 #define NULL ((void*)0)
40424 #if DB_VERSION_MAJOR > 1
40427 int major, minor, patch;
40429 version = db_version( &major, &minor, &patch );
40431 if( major != DB_VERSION_MAJOR ||
40432 minor < DB_VERSION_MINOR )
40434 printf("Berkeley DB version mismatch\n"
40435 "\theader: %s\n\tlibrary: %s\n",
40436 DB_VERSION_STRING, version);
40442 #if DB_VERSION_MAJOR > 2
40443 db_env_create( NULL, 0 );
40444 #elif DB_VERSION_MAJOR > 1
40445 db_appexit( NULL );
40447 (void) dbopen( NULL, 0, 0, 0, NULL);
40454 rm -f conftest.$ac_objext conftest$ac_exeext
40455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40456 (eval $ac_link) 2>conftest.er1
40458 grep -v '^ *+' conftest.er1 >conftest.err
40460 cat conftest.err >&5
40461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462 (exit $ac_status); } &&
40463 { ac_try='test -z "$ac_c_werror_flag"
40464 || test ! -s conftest.err'
40465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40466 (eval $ac_try) 2>&5
40468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40469 (exit $ac_status); }; } &&
40470 { ac_try='test -s conftest$ac_exeext'
40471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40472 (eval $ac_try) 2>&5
40474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475 (exit $ac_status); }; }; then
40478 echo "$as_me: failed program was:" >&5
40479 sed 's/^/| /' conftest.$ac_ext >&5
40483 rm -f conftest.err conftest.$ac_objext \
40484 conftest$ac_exeext conftest.$ac_ext
40489 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40490 echo "${ECHO_T}$ol_cv_db_db1" >&6
40492 if test $ol_cv_db_db1 = yes ; then
40497 if test $ol_cv_lib_db = no ; then
40498 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40499 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40500 if test "${ol_cv_db_db_1+set}" = set; then
40501 echo $ECHO_N "(cached) $ECHO_C" >&6
40506 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40508 cat >conftest.$ac_ext <<_ACEOF
40511 cat confdefs.h >>conftest.$ac_ext
40512 cat >>conftest.$ac_ext <<_ACEOF
40513 /* end confdefs.h. */
40515 #ifdef HAVE_DB_185_H
40516 # include <db_185.h>
40521 #ifndef DB_VERSION_MAJOR
40522 # define DB_VERSION_MAJOR 1
40526 #define NULL ((void*)0)
40533 #if DB_VERSION_MAJOR > 1
40536 int major, minor, patch;
40538 version = db_version( &major, &minor, &patch );
40540 if( major != DB_VERSION_MAJOR ||
40541 minor < DB_VERSION_MINOR )
40543 printf("Berkeley DB version mismatch\n"
40544 "\theader: %s\n\tlibrary: %s\n",
40545 DB_VERSION_STRING, version);
40551 #if DB_VERSION_MAJOR > 2
40552 db_env_create( NULL, 0 );
40553 #elif DB_VERSION_MAJOR > 1
40554 db_appexit( NULL );
40556 (void) dbopen( NULL, 0, 0, 0, NULL);
40563 rm -f conftest.$ac_objext conftest$ac_exeext
40564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40565 (eval $ac_link) 2>conftest.er1
40567 grep -v '^ *+' conftest.er1 >conftest.err
40569 cat conftest.err >&5
40570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40571 (exit $ac_status); } &&
40572 { ac_try='test -z "$ac_c_werror_flag"
40573 || test ! -s conftest.err'
40574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40575 (eval $ac_try) 2>&5
40577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578 (exit $ac_status); }; } &&
40579 { ac_try='test -s conftest$ac_exeext'
40580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40581 (eval $ac_try) 2>&5
40583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40584 (exit $ac_status); }; }; then
40587 echo "$as_me: failed program was:" >&5
40588 sed 's/^/| /' conftest.$ac_ext >&5
40592 rm -f conftest.err conftest.$ac_objext \
40593 conftest$ac_exeext conftest.$ac_ext
40598 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40599 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40601 if test $ol_cv_db_db_1 = yes ; then
40602 ol_cv_lib_db=-ldb-1
40607 if test "$ol_cv_lib_db" != no ; then
40608 ol_cv_berkeley_db=yes
40614 ol_cv_berkeley_db=no
40616 for ac_header in db.h
40618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40620 echo "$as_me:$LINENO: checking for $ac_header" >&5
40621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40623 echo $ECHO_N "(cached) $ECHO_C" >&6
40625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40628 # Is the header compilable?
40629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40631 cat >conftest.$ac_ext <<_ACEOF
40634 cat confdefs.h >>conftest.$ac_ext
40635 cat >>conftest.$ac_ext <<_ACEOF
40636 /* end confdefs.h. */
40637 $ac_includes_default
40638 #include <$ac_header>
40640 rm -f conftest.$ac_objext
40641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40642 (eval $ac_compile) 2>conftest.er1
40644 grep -v '^ *+' conftest.er1 >conftest.err
40646 cat conftest.err >&5
40647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40648 (exit $ac_status); } &&
40649 { ac_try='test -z "$ac_c_werror_flag"
40650 || test ! -s conftest.err'
40651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40652 (eval $ac_try) 2>&5
40654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655 (exit $ac_status); }; } &&
40656 { ac_try='test -s conftest.$ac_objext'
40657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40658 (eval $ac_try) 2>&5
40660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40661 (exit $ac_status); }; }; then
40662 ac_header_compiler=yes
40664 echo "$as_me: failed program was:" >&5
40665 sed 's/^/| /' conftest.$ac_ext >&5
40667 ac_header_compiler=no
40669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40671 echo "${ECHO_T}$ac_header_compiler" >&6
40673 # Is the header present?
40674 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40676 cat >conftest.$ac_ext <<_ACEOF
40679 cat confdefs.h >>conftest.$ac_ext
40680 cat >>conftest.$ac_ext <<_ACEOF
40681 /* end confdefs.h. */
40682 #include <$ac_header>
40684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40687 grep -v '^ *+' conftest.er1 >conftest.err
40689 cat conftest.err >&5
40690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40691 (exit $ac_status); } >/dev/null; then
40692 if test -s conftest.err; then
40693 ac_cpp_err=$ac_c_preproc_warn_flag
40694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40701 if test -z "$ac_cpp_err"; then
40702 ac_header_preproc=yes
40704 echo "$as_me: failed program was:" >&5
40705 sed 's/^/| /' conftest.$ac_ext >&5
40707 ac_header_preproc=no
40709 rm -f conftest.err conftest.$ac_ext
40710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40711 echo "${ECHO_T}$ac_header_preproc" >&6
40713 # So? What about this header?
40714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40720 ac_header_preproc=yes
40723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40730 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40737 ## ------------------------------------------ ##
40738 ## Report this to the AC_PACKAGE_NAME lists. ##
40739 ## ------------------------------------------ ##
40742 sed "s/^/$as_me: WARNING: /" >&2
40745 echo "$as_me:$LINENO: checking for $ac_header" >&5
40746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40748 echo $ECHO_N "(cached) $ECHO_C" >&6
40750 eval "$as_ac_Header=\$ac_header_preproc"
40752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40757 cat >>confdefs.h <<_ACEOF
40758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40765 if test $ac_cv_header_db_h = yes; then
40767 if test $ol_cv_lib_db = no ; then
40768 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40769 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40770 if test "${ol_cv_db_none+set}" = set; then
40771 echo $ECHO_N "(cached) $ECHO_C" >&6
40776 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40778 cat >conftest.$ac_ext <<_ACEOF
40781 cat confdefs.h >>conftest.$ac_ext
40782 cat >>conftest.$ac_ext <<_ACEOF
40783 /* end confdefs.h. */
40785 #ifdef HAVE_DB_185_H
40786 # include <db_185.h>
40791 #ifndef DB_VERSION_MAJOR
40792 # define DB_VERSION_MAJOR 1
40796 #define NULL ((void*)0)
40803 #if DB_VERSION_MAJOR > 1
40806 int major, minor, patch;
40808 version = db_version( &major, &minor, &patch );
40810 if( major != DB_VERSION_MAJOR ||
40811 minor < DB_VERSION_MINOR )
40813 printf("Berkeley DB version mismatch\n"
40814 "\theader: %s\n\tlibrary: %s\n",
40815 DB_VERSION_STRING, version);
40821 #if DB_VERSION_MAJOR > 2
40822 db_env_create( NULL, 0 );
40823 #elif DB_VERSION_MAJOR > 1
40824 db_appexit( NULL );
40826 (void) dbopen( NULL, 0, 0, 0, NULL);
40833 rm -f conftest.$ac_objext conftest$ac_exeext
40834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40835 (eval $ac_link) 2>conftest.er1
40837 grep -v '^ *+' conftest.er1 >conftest.err
40839 cat conftest.err >&5
40840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40841 (exit $ac_status); } &&
40842 { ac_try='test -z "$ac_c_werror_flag"
40843 || test ! -s conftest.err'
40844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40845 (eval $ac_try) 2>&5
40847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); }; } &&
40849 { ac_try='test -s conftest$ac_exeext'
40850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40851 (eval $ac_try) 2>&5
40853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40854 (exit $ac_status); }; }; then
40857 echo "$as_me: failed program was:" >&5
40858 sed 's/^/| /' conftest.$ac_ext >&5
40862 rm -f conftest.err conftest.$ac_objext \
40863 conftest$ac_exeext conftest.$ac_ext
40868 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40869 echo "${ECHO_T}$ol_cv_db_none" >&6
40871 if test $ol_cv_db_none = yes ; then
40876 if test $ol_cv_lib_db = no ; then
40877 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40878 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40879 if test "${ol_cv_db_db43+set}" = set; then
40880 echo $ECHO_N "(cached) $ECHO_C" >&6
40885 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40887 cat >conftest.$ac_ext <<_ACEOF
40890 cat confdefs.h >>conftest.$ac_ext
40891 cat >>conftest.$ac_ext <<_ACEOF
40892 /* end confdefs.h. */
40894 #ifdef HAVE_DB_185_H
40895 # include <db_185.h>
40900 #ifndef DB_VERSION_MAJOR
40901 # define DB_VERSION_MAJOR 1
40905 #define NULL ((void*)0)
40912 #if DB_VERSION_MAJOR > 1
40915 int major, minor, patch;
40917 version = db_version( &major, &minor, &patch );
40919 if( major != DB_VERSION_MAJOR ||
40920 minor < DB_VERSION_MINOR )
40922 printf("Berkeley DB version mismatch\n"
40923 "\theader: %s\n\tlibrary: %s\n",
40924 DB_VERSION_STRING, version);
40930 #if DB_VERSION_MAJOR > 2
40931 db_env_create( NULL, 0 );
40932 #elif DB_VERSION_MAJOR > 1
40933 db_appexit( NULL );
40935 (void) dbopen( NULL, 0, 0, 0, NULL);
40942 rm -f conftest.$ac_objext conftest$ac_exeext
40943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40944 (eval $ac_link) 2>conftest.er1
40946 grep -v '^ *+' conftest.er1 >conftest.err
40948 cat conftest.err >&5
40949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40950 (exit $ac_status); } &&
40951 { ac_try='test -z "$ac_c_werror_flag"
40952 || test ! -s conftest.err'
40953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40954 (eval $ac_try) 2>&5
40956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40957 (exit $ac_status); }; } &&
40958 { ac_try='test -s conftest$ac_exeext'
40959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40960 (eval $ac_try) 2>&5
40962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963 (exit $ac_status); }; }; then
40966 echo "$as_me: failed program was:" >&5
40967 sed 's/^/| /' conftest.$ac_ext >&5
40971 rm -f conftest.err conftest.$ac_objext \
40972 conftest$ac_exeext conftest.$ac_ext
40977 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40978 echo "${ECHO_T}$ol_cv_db_db43" >&6
40980 if test $ol_cv_db_db43 = yes ; then
40981 ol_cv_lib_db=-ldb43
40985 if test $ol_cv_lib_db = no ; then
40986 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40987 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40988 if test "${ol_cv_db_db_43+set}" = set; then
40989 echo $ECHO_N "(cached) $ECHO_C" >&6
40994 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40996 cat >conftest.$ac_ext <<_ACEOF
40999 cat confdefs.h >>conftest.$ac_ext
41000 cat >>conftest.$ac_ext <<_ACEOF
41001 /* end confdefs.h. */
41003 #ifdef HAVE_DB_185_H
41004 # include <db_185.h>
41009 #ifndef DB_VERSION_MAJOR
41010 # define DB_VERSION_MAJOR 1
41014 #define NULL ((void*)0)
41021 #if DB_VERSION_MAJOR > 1
41024 int major, minor, patch;
41026 version = db_version( &major, &minor, &patch );
41028 if( major != DB_VERSION_MAJOR ||
41029 minor < DB_VERSION_MINOR )
41031 printf("Berkeley DB version mismatch\n"
41032 "\theader: %s\n\tlibrary: %s\n",
41033 DB_VERSION_STRING, version);
41039 #if DB_VERSION_MAJOR > 2
41040 db_env_create( NULL, 0 );
41041 #elif DB_VERSION_MAJOR > 1
41042 db_appexit( NULL );
41044 (void) dbopen( NULL, 0, 0, 0, NULL);
41051 rm -f conftest.$ac_objext conftest$ac_exeext
41052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41053 (eval $ac_link) 2>conftest.er1
41055 grep -v '^ *+' conftest.er1 >conftest.err
41057 cat conftest.err >&5
41058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059 (exit $ac_status); } &&
41060 { ac_try='test -z "$ac_c_werror_flag"
41061 || test ! -s conftest.err'
41062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41063 (eval $ac_try) 2>&5
41065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41066 (exit $ac_status); }; } &&
41067 { ac_try='test -s conftest$ac_exeext'
41068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41069 (eval $ac_try) 2>&5
41071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); }; }; then
41075 echo "$as_me: failed program was:" >&5
41076 sed 's/^/| /' conftest.$ac_ext >&5
41080 rm -f conftest.err conftest.$ac_objext \
41081 conftest$ac_exeext conftest.$ac_ext
41086 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
41087 echo "${ECHO_T}$ol_cv_db_db_43" >&6
41089 if test $ol_cv_db_db_43 = yes ; then
41090 ol_cv_lib_db=-ldb-43
41094 if test $ol_cv_lib_db = no ; then
41095 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
41096 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
41097 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
41098 echo $ECHO_N "(cached) $ECHO_C" >&6
41103 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41105 cat >conftest.$ac_ext <<_ACEOF
41108 cat confdefs.h >>conftest.$ac_ext
41109 cat >>conftest.$ac_ext <<_ACEOF
41110 /* end confdefs.h. */
41112 #ifdef HAVE_DB_185_H
41113 # include <db_185.h>
41118 #ifndef DB_VERSION_MAJOR
41119 # define DB_VERSION_MAJOR 1
41123 #define NULL ((void*)0)
41130 #if DB_VERSION_MAJOR > 1
41133 int major, minor, patch;
41135 version = db_version( &major, &minor, &patch );
41137 if( major != DB_VERSION_MAJOR ||
41138 minor < DB_VERSION_MINOR )
41140 printf("Berkeley DB version mismatch\n"
41141 "\theader: %s\n\tlibrary: %s\n",
41142 DB_VERSION_STRING, version);
41148 #if DB_VERSION_MAJOR > 2
41149 db_env_create( NULL, 0 );
41150 #elif DB_VERSION_MAJOR > 1
41151 db_appexit( NULL );
41153 (void) dbopen( NULL, 0, 0, 0, NULL);
41160 rm -f conftest.$ac_objext conftest$ac_exeext
41161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41162 (eval $ac_link) 2>conftest.er1
41164 grep -v '^ *+' conftest.er1 >conftest.err
41166 cat conftest.err >&5
41167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168 (exit $ac_status); } &&
41169 { ac_try='test -z "$ac_c_werror_flag"
41170 || test ! -s conftest.err'
41171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41172 (eval $ac_try) 2>&5
41174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175 (exit $ac_status); }; } &&
41176 { ac_try='test -s conftest$ac_exeext'
41177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41178 (eval $ac_try) 2>&5
41180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41181 (exit $ac_status); }; }; then
41182 ol_cv_db_db_4_dot_3=yes
41184 echo "$as_me: failed program was:" >&5
41185 sed 's/^/| /' conftest.$ac_ext >&5
41187 ol_cv_db_db_4_dot_3=no
41189 rm -f conftest.err conftest.$ac_objext \
41190 conftest$ac_exeext conftest.$ac_ext
41195 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41196 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41198 if test $ol_cv_db_db_4_dot_3 = yes ; then
41199 ol_cv_lib_db=-ldb-4.3
41203 if test $ol_cv_lib_db = no ; then
41204 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41205 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41206 if test "${ol_cv_db_db_4_3+set}" = set; then
41207 echo $ECHO_N "(cached) $ECHO_C" >&6
41212 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41214 cat >conftest.$ac_ext <<_ACEOF
41217 cat confdefs.h >>conftest.$ac_ext
41218 cat >>conftest.$ac_ext <<_ACEOF
41219 /* end confdefs.h. */
41221 #ifdef HAVE_DB_185_H
41222 # include <db_185.h>
41227 #ifndef DB_VERSION_MAJOR
41228 # define DB_VERSION_MAJOR 1
41232 #define NULL ((void*)0)
41239 #if DB_VERSION_MAJOR > 1
41242 int major, minor, patch;
41244 version = db_version( &major, &minor, &patch );
41246 if( major != DB_VERSION_MAJOR ||
41247 minor < DB_VERSION_MINOR )
41249 printf("Berkeley DB version mismatch\n"
41250 "\theader: %s\n\tlibrary: %s\n",
41251 DB_VERSION_STRING, version);
41257 #if DB_VERSION_MAJOR > 2
41258 db_env_create( NULL, 0 );
41259 #elif DB_VERSION_MAJOR > 1
41260 db_appexit( NULL );
41262 (void) dbopen( NULL, 0, 0, 0, NULL);
41269 rm -f conftest.$ac_objext conftest$ac_exeext
41270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41271 (eval $ac_link) 2>conftest.er1
41273 grep -v '^ *+' conftest.er1 >conftest.err
41275 cat conftest.err >&5
41276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41277 (exit $ac_status); } &&
41278 { ac_try='test -z "$ac_c_werror_flag"
41279 || test ! -s conftest.err'
41280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41281 (eval $ac_try) 2>&5
41283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41284 (exit $ac_status); }; } &&
41285 { ac_try='test -s conftest$ac_exeext'
41286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41287 (eval $ac_try) 2>&5
41289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41290 (exit $ac_status); }; }; then
41291 ol_cv_db_db_4_3=yes
41293 echo "$as_me: failed program was:" >&5
41294 sed 's/^/| /' conftest.$ac_ext >&5
41298 rm -f conftest.err conftest.$ac_objext \
41299 conftest$ac_exeext conftest.$ac_ext
41304 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41305 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41307 if test $ol_cv_db_db_4_3 = yes ; then
41308 ol_cv_lib_db=-ldb-4-3
41312 if test $ol_cv_lib_db = no ; then
41313 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41314 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41315 if test "${ol_cv_db_db42+set}" = set; then
41316 echo $ECHO_N "(cached) $ECHO_C" >&6
41321 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41323 cat >conftest.$ac_ext <<_ACEOF
41326 cat confdefs.h >>conftest.$ac_ext
41327 cat >>conftest.$ac_ext <<_ACEOF
41328 /* end confdefs.h. */
41330 #ifdef HAVE_DB_185_H
41331 # include <db_185.h>
41336 #ifndef DB_VERSION_MAJOR
41337 # define DB_VERSION_MAJOR 1
41341 #define NULL ((void*)0)
41348 #if DB_VERSION_MAJOR > 1
41351 int major, minor, patch;
41353 version = db_version( &major, &minor, &patch );
41355 if( major != DB_VERSION_MAJOR ||
41356 minor < DB_VERSION_MINOR )
41358 printf("Berkeley DB version mismatch\n"
41359 "\theader: %s\n\tlibrary: %s\n",
41360 DB_VERSION_STRING, version);
41366 #if DB_VERSION_MAJOR > 2
41367 db_env_create( NULL, 0 );
41368 #elif DB_VERSION_MAJOR > 1
41369 db_appexit( NULL );
41371 (void) dbopen( NULL, 0, 0, 0, NULL);
41378 rm -f conftest.$ac_objext conftest$ac_exeext
41379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41380 (eval $ac_link) 2>conftest.er1
41382 grep -v '^ *+' conftest.er1 >conftest.err
41384 cat conftest.err >&5
41385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386 (exit $ac_status); } &&
41387 { ac_try='test -z "$ac_c_werror_flag"
41388 || test ! -s conftest.err'
41389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41390 (eval $ac_try) 2>&5
41392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41393 (exit $ac_status); }; } &&
41394 { ac_try='test -s conftest$ac_exeext'
41395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41396 (eval $ac_try) 2>&5
41398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41399 (exit $ac_status); }; }; then
41402 echo "$as_me: failed program was:" >&5
41403 sed 's/^/| /' conftest.$ac_ext >&5
41407 rm -f conftest.err conftest.$ac_objext \
41408 conftest$ac_exeext conftest.$ac_ext
41413 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41414 echo "${ECHO_T}$ol_cv_db_db42" >&6
41416 if test $ol_cv_db_db42 = yes ; then
41417 ol_cv_lib_db=-ldb42
41421 if test $ol_cv_lib_db = no ; then
41422 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41423 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41424 if test "${ol_cv_db_db_42+set}" = set; then
41425 echo $ECHO_N "(cached) $ECHO_C" >&6
41430 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41432 cat >conftest.$ac_ext <<_ACEOF
41435 cat confdefs.h >>conftest.$ac_ext
41436 cat >>conftest.$ac_ext <<_ACEOF
41437 /* end confdefs.h. */
41439 #ifdef HAVE_DB_185_H
41440 # include <db_185.h>
41445 #ifndef DB_VERSION_MAJOR
41446 # define DB_VERSION_MAJOR 1
41450 #define NULL ((void*)0)
41457 #if DB_VERSION_MAJOR > 1
41460 int major, minor, patch;
41462 version = db_version( &major, &minor, &patch );
41464 if( major != DB_VERSION_MAJOR ||
41465 minor < DB_VERSION_MINOR )
41467 printf("Berkeley DB version mismatch\n"
41468 "\theader: %s\n\tlibrary: %s\n",
41469 DB_VERSION_STRING, version);
41475 #if DB_VERSION_MAJOR > 2
41476 db_env_create( NULL, 0 );
41477 #elif DB_VERSION_MAJOR > 1
41478 db_appexit( NULL );
41480 (void) dbopen( NULL, 0, 0, 0, NULL);
41487 rm -f conftest.$ac_objext conftest$ac_exeext
41488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41489 (eval $ac_link) 2>conftest.er1
41491 grep -v '^ *+' conftest.er1 >conftest.err
41493 cat conftest.err >&5
41494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41495 (exit $ac_status); } &&
41496 { ac_try='test -z "$ac_c_werror_flag"
41497 || test ! -s conftest.err'
41498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41499 (eval $ac_try) 2>&5
41501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502 (exit $ac_status); }; } &&
41503 { ac_try='test -s conftest$ac_exeext'
41504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41505 (eval $ac_try) 2>&5
41507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41508 (exit $ac_status); }; }; then
41511 echo "$as_me: failed program was:" >&5
41512 sed 's/^/| /' conftest.$ac_ext >&5
41516 rm -f conftest.err conftest.$ac_objext \
41517 conftest$ac_exeext conftest.$ac_ext
41522 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41523 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41525 if test $ol_cv_db_db_42 = yes ; then
41526 ol_cv_lib_db=-ldb-42
41530 if test $ol_cv_lib_db = no ; then
41531 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41532 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41533 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41534 echo $ECHO_N "(cached) $ECHO_C" >&6
41539 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41541 cat >conftest.$ac_ext <<_ACEOF
41544 cat confdefs.h >>conftest.$ac_ext
41545 cat >>conftest.$ac_ext <<_ACEOF
41546 /* end confdefs.h. */
41548 #ifdef HAVE_DB_185_H
41549 # include <db_185.h>
41554 #ifndef DB_VERSION_MAJOR
41555 # define DB_VERSION_MAJOR 1
41559 #define NULL ((void*)0)
41566 #if DB_VERSION_MAJOR > 1
41569 int major, minor, patch;
41571 version = db_version( &major, &minor, &patch );
41573 if( major != DB_VERSION_MAJOR ||
41574 minor < DB_VERSION_MINOR )
41576 printf("Berkeley DB version mismatch\n"
41577 "\theader: %s\n\tlibrary: %s\n",
41578 DB_VERSION_STRING, version);
41584 #if DB_VERSION_MAJOR > 2
41585 db_env_create( NULL, 0 );
41586 #elif DB_VERSION_MAJOR > 1
41587 db_appexit( NULL );
41589 (void) dbopen( NULL, 0, 0, 0, NULL);
41596 rm -f conftest.$ac_objext conftest$ac_exeext
41597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41598 (eval $ac_link) 2>conftest.er1
41600 grep -v '^ *+' conftest.er1 >conftest.err
41602 cat conftest.err >&5
41603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41604 (exit $ac_status); } &&
41605 { ac_try='test -z "$ac_c_werror_flag"
41606 || test ! -s conftest.err'
41607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41608 (eval $ac_try) 2>&5
41610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41611 (exit $ac_status); }; } &&
41612 { ac_try='test -s conftest$ac_exeext'
41613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41614 (eval $ac_try) 2>&5
41616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617 (exit $ac_status); }; }; then
41618 ol_cv_db_db_4_dot_2=yes
41620 echo "$as_me: failed program was:" >&5
41621 sed 's/^/| /' conftest.$ac_ext >&5
41623 ol_cv_db_db_4_dot_2=no
41625 rm -f conftest.err conftest.$ac_objext \
41626 conftest$ac_exeext conftest.$ac_ext
41631 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41632 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41634 if test $ol_cv_db_db_4_dot_2 = yes ; then
41635 ol_cv_lib_db=-ldb-4.2
41639 if test $ol_cv_lib_db = no ; then
41640 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41641 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41642 if test "${ol_cv_db_db_4_2+set}" = set; then
41643 echo $ECHO_N "(cached) $ECHO_C" >&6
41648 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41650 cat >conftest.$ac_ext <<_ACEOF
41653 cat confdefs.h >>conftest.$ac_ext
41654 cat >>conftest.$ac_ext <<_ACEOF
41655 /* end confdefs.h. */
41657 #ifdef HAVE_DB_185_H
41658 # include <db_185.h>
41663 #ifndef DB_VERSION_MAJOR
41664 # define DB_VERSION_MAJOR 1
41668 #define NULL ((void*)0)
41675 #if DB_VERSION_MAJOR > 1
41678 int major, minor, patch;
41680 version = db_version( &major, &minor, &patch );
41682 if( major != DB_VERSION_MAJOR ||
41683 minor < DB_VERSION_MINOR )
41685 printf("Berkeley DB version mismatch\n"
41686 "\theader: %s\n\tlibrary: %s\n",
41687 DB_VERSION_STRING, version);
41693 #if DB_VERSION_MAJOR > 2
41694 db_env_create( NULL, 0 );
41695 #elif DB_VERSION_MAJOR > 1
41696 db_appexit( NULL );
41698 (void) dbopen( NULL, 0, 0, 0, NULL);
41705 rm -f conftest.$ac_objext conftest$ac_exeext
41706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41707 (eval $ac_link) 2>conftest.er1
41709 grep -v '^ *+' conftest.er1 >conftest.err
41711 cat conftest.err >&5
41712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41713 (exit $ac_status); } &&
41714 { ac_try='test -z "$ac_c_werror_flag"
41715 || test ! -s conftest.err'
41716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41717 (eval $ac_try) 2>&5
41719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720 (exit $ac_status); }; } &&
41721 { ac_try='test -s conftest$ac_exeext'
41722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41723 (eval $ac_try) 2>&5
41725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41726 (exit $ac_status); }; }; then
41727 ol_cv_db_db_4_2=yes
41729 echo "$as_me: failed program was:" >&5
41730 sed 's/^/| /' conftest.$ac_ext >&5
41734 rm -f conftest.err conftest.$ac_objext \
41735 conftest$ac_exeext conftest.$ac_ext
41740 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41741 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41743 if test $ol_cv_db_db_4_2 = yes ; then
41744 ol_cv_lib_db=-ldb-4-2
41748 if test $ol_cv_lib_db = no ; then
41749 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41750 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41751 if test "${ol_cv_db_db_4+set}" = set; then
41752 echo $ECHO_N "(cached) $ECHO_C" >&6
41757 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41759 cat >conftest.$ac_ext <<_ACEOF
41762 cat confdefs.h >>conftest.$ac_ext
41763 cat >>conftest.$ac_ext <<_ACEOF
41764 /* end confdefs.h. */
41766 #ifdef HAVE_DB_185_H
41767 # include <db_185.h>
41772 #ifndef DB_VERSION_MAJOR
41773 # define DB_VERSION_MAJOR 1
41777 #define NULL ((void*)0)
41784 #if DB_VERSION_MAJOR > 1
41787 int major, minor, patch;
41789 version = db_version( &major, &minor, &patch );
41791 if( major != DB_VERSION_MAJOR ||
41792 minor < DB_VERSION_MINOR )
41794 printf("Berkeley DB version mismatch\n"
41795 "\theader: %s\n\tlibrary: %s\n",
41796 DB_VERSION_STRING, version);
41802 #if DB_VERSION_MAJOR > 2
41803 db_env_create( NULL, 0 );
41804 #elif DB_VERSION_MAJOR > 1
41805 db_appexit( NULL );
41807 (void) dbopen( NULL, 0, 0, 0, NULL);
41814 rm -f conftest.$ac_objext conftest$ac_exeext
41815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41816 (eval $ac_link) 2>conftest.er1
41818 grep -v '^ *+' conftest.er1 >conftest.err
41820 cat conftest.err >&5
41821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822 (exit $ac_status); } &&
41823 { ac_try='test -z "$ac_c_werror_flag"
41824 || test ! -s conftest.err'
41825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41826 (eval $ac_try) 2>&5
41828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41829 (exit $ac_status); }; } &&
41830 { ac_try='test -s conftest$ac_exeext'
41831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41832 (eval $ac_try) 2>&5
41834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41835 (exit $ac_status); }; }; then
41838 echo "$as_me: failed program was:" >&5
41839 sed 's/^/| /' conftest.$ac_ext >&5
41843 rm -f conftest.err conftest.$ac_objext \
41844 conftest$ac_exeext conftest.$ac_ext
41849 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41850 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41852 if test $ol_cv_db_db_4 = yes ; then
41853 ol_cv_lib_db=-ldb-4
41857 if test $ol_cv_lib_db = no ; then
41858 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41859 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41860 if test "${ol_cv_db_db4+set}" = set; then
41861 echo $ECHO_N "(cached) $ECHO_C" >&6
41866 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41868 cat >conftest.$ac_ext <<_ACEOF
41871 cat confdefs.h >>conftest.$ac_ext
41872 cat >>conftest.$ac_ext <<_ACEOF
41873 /* end confdefs.h. */
41875 #ifdef HAVE_DB_185_H
41876 # include <db_185.h>
41881 #ifndef DB_VERSION_MAJOR
41882 # define DB_VERSION_MAJOR 1
41886 #define NULL ((void*)0)
41893 #if DB_VERSION_MAJOR > 1
41896 int major, minor, patch;
41898 version = db_version( &major, &minor, &patch );
41900 if( major != DB_VERSION_MAJOR ||
41901 minor < DB_VERSION_MINOR )
41903 printf("Berkeley DB version mismatch\n"
41904 "\theader: %s\n\tlibrary: %s\n",
41905 DB_VERSION_STRING, version);
41911 #if DB_VERSION_MAJOR > 2
41912 db_env_create( NULL, 0 );
41913 #elif DB_VERSION_MAJOR > 1
41914 db_appexit( NULL );
41916 (void) dbopen( NULL, 0, 0, 0, NULL);
41923 rm -f conftest.$ac_objext conftest$ac_exeext
41924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41925 (eval $ac_link) 2>conftest.er1
41927 grep -v '^ *+' conftest.er1 >conftest.err
41929 cat conftest.err >&5
41930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41931 (exit $ac_status); } &&
41932 { ac_try='test -z "$ac_c_werror_flag"
41933 || test ! -s conftest.err'
41934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41935 (eval $ac_try) 2>&5
41937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41938 (exit $ac_status); }; } &&
41939 { ac_try='test -s conftest$ac_exeext'
41940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41941 (eval $ac_try) 2>&5
41943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41944 (exit $ac_status); }; }; then
41947 echo "$as_me: failed program was:" >&5
41948 sed 's/^/| /' conftest.$ac_ext >&5
41952 rm -f conftest.err conftest.$ac_objext \
41953 conftest$ac_exeext conftest.$ac_ext
41958 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41959 echo "${ECHO_T}$ol_cv_db_db4" >&6
41961 if test $ol_cv_db_db4 = yes ; then
41966 if test $ol_cv_lib_db = no ; then
41967 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41968 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41969 if test "${ol_cv_db_db+set}" = set; then
41970 echo $ECHO_N "(cached) $ECHO_C" >&6
41975 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41977 cat >conftest.$ac_ext <<_ACEOF
41980 cat confdefs.h >>conftest.$ac_ext
41981 cat >>conftest.$ac_ext <<_ACEOF
41982 /* end confdefs.h. */
41984 #ifdef HAVE_DB_185_H
41985 # include <db_185.h>
41990 #ifndef DB_VERSION_MAJOR
41991 # define DB_VERSION_MAJOR 1
41995 #define NULL ((void*)0)
42002 #if DB_VERSION_MAJOR > 1
42005 int major, minor, patch;
42007 version = db_version( &major, &minor, &patch );
42009 if( major != DB_VERSION_MAJOR ||
42010 minor < DB_VERSION_MINOR )
42012 printf("Berkeley DB version mismatch\n"
42013 "\theader: %s\n\tlibrary: %s\n",
42014 DB_VERSION_STRING, version);
42020 #if DB_VERSION_MAJOR > 2
42021 db_env_create( NULL, 0 );
42022 #elif DB_VERSION_MAJOR > 1
42023 db_appexit( NULL );
42025 (void) dbopen( NULL, 0, 0, 0, NULL);
42032 rm -f conftest.$ac_objext conftest$ac_exeext
42033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42034 (eval $ac_link) 2>conftest.er1
42036 grep -v '^ *+' conftest.er1 >conftest.err
42038 cat conftest.err >&5
42039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42040 (exit $ac_status); } &&
42041 { ac_try='test -z "$ac_c_werror_flag"
42042 || test ! -s conftest.err'
42043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42044 (eval $ac_try) 2>&5
42046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42047 (exit $ac_status); }; } &&
42048 { ac_try='test -s conftest$ac_exeext'
42049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42050 (eval $ac_try) 2>&5
42052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053 (exit $ac_status); }; }; then
42056 echo "$as_me: failed program was:" >&5
42057 sed 's/^/| /' conftest.$ac_ext >&5
42061 rm -f conftest.err conftest.$ac_objext \
42062 conftest$ac_exeext conftest.$ac_ext
42067 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
42068 echo "${ECHO_T}$ol_cv_db_db" >&6
42070 if test $ol_cv_db_db = yes ; then
42075 if test $ol_cv_lib_db = no ; then
42076 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
42077 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
42078 if test "${ol_cv_db_db41+set}" = set; then
42079 echo $ECHO_N "(cached) $ECHO_C" >&6
42084 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42086 cat >conftest.$ac_ext <<_ACEOF
42089 cat confdefs.h >>conftest.$ac_ext
42090 cat >>conftest.$ac_ext <<_ACEOF
42091 /* end confdefs.h. */
42093 #ifdef HAVE_DB_185_H
42094 # include <db_185.h>
42099 #ifndef DB_VERSION_MAJOR
42100 # define DB_VERSION_MAJOR 1
42104 #define NULL ((void*)0)
42111 #if DB_VERSION_MAJOR > 1
42114 int major, minor, patch;
42116 version = db_version( &major, &minor, &patch );
42118 if( major != DB_VERSION_MAJOR ||
42119 minor < DB_VERSION_MINOR )
42121 printf("Berkeley DB version mismatch\n"
42122 "\theader: %s\n\tlibrary: %s\n",
42123 DB_VERSION_STRING, version);
42129 #if DB_VERSION_MAJOR > 2
42130 db_env_create( NULL, 0 );
42131 #elif DB_VERSION_MAJOR > 1
42132 db_appexit( NULL );
42134 (void) dbopen( NULL, 0, 0, 0, NULL);
42141 rm -f conftest.$ac_objext conftest$ac_exeext
42142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42143 (eval $ac_link) 2>conftest.er1
42145 grep -v '^ *+' conftest.er1 >conftest.err
42147 cat conftest.err >&5
42148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42149 (exit $ac_status); } &&
42150 { ac_try='test -z "$ac_c_werror_flag"
42151 || test ! -s conftest.err'
42152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42153 (eval $ac_try) 2>&5
42155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42156 (exit $ac_status); }; } &&
42157 { ac_try='test -s conftest$ac_exeext'
42158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42159 (eval $ac_try) 2>&5
42161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42162 (exit $ac_status); }; }; then
42165 echo "$as_me: failed program was:" >&5
42166 sed 's/^/| /' conftest.$ac_ext >&5
42170 rm -f conftest.err conftest.$ac_objext \
42171 conftest$ac_exeext conftest.$ac_ext
42176 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42177 echo "${ECHO_T}$ol_cv_db_db41" >&6
42179 if test $ol_cv_db_db41 = yes ; then
42180 ol_cv_lib_db=-ldb41
42184 if test $ol_cv_lib_db = no ; then
42185 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42186 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42187 if test "${ol_cv_db_db_41+set}" = set; then
42188 echo $ECHO_N "(cached) $ECHO_C" >&6
42193 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42195 cat >conftest.$ac_ext <<_ACEOF
42198 cat confdefs.h >>conftest.$ac_ext
42199 cat >>conftest.$ac_ext <<_ACEOF
42200 /* end confdefs.h. */
42202 #ifdef HAVE_DB_185_H
42203 # include <db_185.h>
42208 #ifndef DB_VERSION_MAJOR
42209 # define DB_VERSION_MAJOR 1
42213 #define NULL ((void*)0)
42220 #if DB_VERSION_MAJOR > 1
42223 int major, minor, patch;
42225 version = db_version( &major, &minor, &patch );
42227 if( major != DB_VERSION_MAJOR ||
42228 minor < DB_VERSION_MINOR )
42230 printf("Berkeley DB version mismatch\n"
42231 "\theader: %s\n\tlibrary: %s\n",
42232 DB_VERSION_STRING, version);
42238 #if DB_VERSION_MAJOR > 2
42239 db_env_create( NULL, 0 );
42240 #elif DB_VERSION_MAJOR > 1
42241 db_appexit( NULL );
42243 (void) dbopen( NULL, 0, 0, 0, NULL);
42250 rm -f conftest.$ac_objext conftest$ac_exeext
42251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42252 (eval $ac_link) 2>conftest.er1
42254 grep -v '^ *+' conftest.er1 >conftest.err
42256 cat conftest.err >&5
42257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258 (exit $ac_status); } &&
42259 { ac_try='test -z "$ac_c_werror_flag"
42260 || test ! -s conftest.err'
42261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42262 (eval $ac_try) 2>&5
42264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42265 (exit $ac_status); }; } &&
42266 { ac_try='test -s conftest$ac_exeext'
42267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42268 (eval $ac_try) 2>&5
42270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42271 (exit $ac_status); }; }; then
42274 echo "$as_me: failed program was:" >&5
42275 sed 's/^/| /' conftest.$ac_ext >&5
42279 rm -f conftest.err conftest.$ac_objext \
42280 conftest$ac_exeext conftest.$ac_ext
42285 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42286 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42288 if test $ol_cv_db_db_41 = yes ; then
42289 ol_cv_lib_db=-ldb-41
42293 if test $ol_cv_lib_db = no ; then
42294 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42295 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42296 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42297 echo $ECHO_N "(cached) $ECHO_C" >&6
42302 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42304 cat >conftest.$ac_ext <<_ACEOF
42307 cat confdefs.h >>conftest.$ac_ext
42308 cat >>conftest.$ac_ext <<_ACEOF
42309 /* end confdefs.h. */
42311 #ifdef HAVE_DB_185_H
42312 # include <db_185.h>
42317 #ifndef DB_VERSION_MAJOR
42318 # define DB_VERSION_MAJOR 1
42322 #define NULL ((void*)0)
42329 #if DB_VERSION_MAJOR > 1
42332 int major, minor, patch;
42334 version = db_version( &major, &minor, &patch );
42336 if( major != DB_VERSION_MAJOR ||
42337 minor < DB_VERSION_MINOR )
42339 printf("Berkeley DB version mismatch\n"
42340 "\theader: %s\n\tlibrary: %s\n",
42341 DB_VERSION_STRING, version);
42347 #if DB_VERSION_MAJOR > 2
42348 db_env_create( NULL, 0 );
42349 #elif DB_VERSION_MAJOR > 1
42350 db_appexit( NULL );
42352 (void) dbopen( NULL, 0, 0, 0, NULL);
42359 rm -f conftest.$ac_objext conftest$ac_exeext
42360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42361 (eval $ac_link) 2>conftest.er1
42363 grep -v '^ *+' conftest.er1 >conftest.err
42365 cat conftest.err >&5
42366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367 (exit $ac_status); } &&
42368 { ac_try='test -z "$ac_c_werror_flag"
42369 || test ! -s conftest.err'
42370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42371 (eval $ac_try) 2>&5
42373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42374 (exit $ac_status); }; } &&
42375 { ac_try='test -s conftest$ac_exeext'
42376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42377 (eval $ac_try) 2>&5
42379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380 (exit $ac_status); }; }; then
42381 ol_cv_db_db_4_dot_1=yes
42383 echo "$as_me: failed program was:" >&5
42384 sed 's/^/| /' conftest.$ac_ext >&5
42386 ol_cv_db_db_4_dot_1=no
42388 rm -f conftest.err conftest.$ac_objext \
42389 conftest$ac_exeext conftest.$ac_ext
42394 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42395 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42397 if test $ol_cv_db_db_4_dot_1 = yes ; then
42398 ol_cv_lib_db=-ldb-4.1
42402 if test $ol_cv_lib_db = no ; then
42403 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42404 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42405 if test "${ol_cv_db_db_4_1+set}" = set; then
42406 echo $ECHO_N "(cached) $ECHO_C" >&6
42411 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42413 cat >conftest.$ac_ext <<_ACEOF
42416 cat confdefs.h >>conftest.$ac_ext
42417 cat >>conftest.$ac_ext <<_ACEOF
42418 /* end confdefs.h. */
42420 #ifdef HAVE_DB_185_H
42421 # include <db_185.h>
42426 #ifndef DB_VERSION_MAJOR
42427 # define DB_VERSION_MAJOR 1
42431 #define NULL ((void*)0)
42438 #if DB_VERSION_MAJOR > 1
42441 int major, minor, patch;
42443 version = db_version( &major, &minor, &patch );
42445 if( major != DB_VERSION_MAJOR ||
42446 minor < DB_VERSION_MINOR )
42448 printf("Berkeley DB version mismatch\n"
42449 "\theader: %s\n\tlibrary: %s\n",
42450 DB_VERSION_STRING, version);
42456 #if DB_VERSION_MAJOR > 2
42457 db_env_create( NULL, 0 );
42458 #elif DB_VERSION_MAJOR > 1
42459 db_appexit( NULL );
42461 (void) dbopen( NULL, 0, 0, 0, NULL);
42468 rm -f conftest.$ac_objext conftest$ac_exeext
42469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42470 (eval $ac_link) 2>conftest.er1
42472 grep -v '^ *+' conftest.er1 >conftest.err
42474 cat conftest.err >&5
42475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476 (exit $ac_status); } &&
42477 { ac_try='test -z "$ac_c_werror_flag"
42478 || test ! -s conftest.err'
42479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42480 (eval $ac_try) 2>&5
42482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483 (exit $ac_status); }; } &&
42484 { ac_try='test -s conftest$ac_exeext'
42485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42486 (eval $ac_try) 2>&5
42488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42489 (exit $ac_status); }; }; then
42490 ol_cv_db_db_4_1=yes
42492 echo "$as_me: failed program was:" >&5
42493 sed 's/^/| /' conftest.$ac_ext >&5
42497 rm -f conftest.err conftest.$ac_objext \
42498 conftest$ac_exeext conftest.$ac_ext
42503 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42504 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42506 if test $ol_cv_db_db_4_1 = yes ; then
42507 ol_cv_lib_db=-ldb-4-1
42511 if test $ol_cv_lib_db = no ; then
42512 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42513 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42514 if test "${ol_cv_db_db3+set}" = set; then
42515 echo $ECHO_N "(cached) $ECHO_C" >&6
42520 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42522 cat >conftest.$ac_ext <<_ACEOF
42525 cat confdefs.h >>conftest.$ac_ext
42526 cat >>conftest.$ac_ext <<_ACEOF
42527 /* end confdefs.h. */
42529 #ifdef HAVE_DB_185_H
42530 # include <db_185.h>
42535 #ifndef DB_VERSION_MAJOR
42536 # define DB_VERSION_MAJOR 1
42540 #define NULL ((void*)0)
42547 #if DB_VERSION_MAJOR > 1
42550 int major, minor, patch;
42552 version = db_version( &major, &minor, &patch );
42554 if( major != DB_VERSION_MAJOR ||
42555 minor < DB_VERSION_MINOR )
42557 printf("Berkeley DB version mismatch\n"
42558 "\theader: %s\n\tlibrary: %s\n",
42559 DB_VERSION_STRING, version);
42565 #if DB_VERSION_MAJOR > 2
42566 db_env_create( NULL, 0 );
42567 #elif DB_VERSION_MAJOR > 1
42568 db_appexit( NULL );
42570 (void) dbopen( NULL, 0, 0, 0, NULL);
42577 rm -f conftest.$ac_objext conftest$ac_exeext
42578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42579 (eval $ac_link) 2>conftest.er1
42581 grep -v '^ *+' conftest.er1 >conftest.err
42583 cat conftest.err >&5
42584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42585 (exit $ac_status); } &&
42586 { ac_try='test -z "$ac_c_werror_flag"
42587 || test ! -s conftest.err'
42588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42589 (eval $ac_try) 2>&5
42591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42592 (exit $ac_status); }; } &&
42593 { ac_try='test -s conftest$ac_exeext'
42594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42595 (eval $ac_try) 2>&5
42597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42598 (exit $ac_status); }; }; then
42601 echo "$as_me: failed program was:" >&5
42602 sed 's/^/| /' conftest.$ac_ext >&5
42606 rm -f conftest.err conftest.$ac_objext \
42607 conftest$ac_exeext conftest.$ac_ext
42612 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42613 echo "${ECHO_T}$ol_cv_db_db3" >&6
42615 if test $ol_cv_db_db3 = yes ; then
42620 if test $ol_cv_lib_db = no ; then
42621 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42622 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42623 if test "${ol_cv_db_db_3+set}" = set; then
42624 echo $ECHO_N "(cached) $ECHO_C" >&6
42629 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42631 cat >conftest.$ac_ext <<_ACEOF
42634 cat confdefs.h >>conftest.$ac_ext
42635 cat >>conftest.$ac_ext <<_ACEOF
42636 /* end confdefs.h. */
42638 #ifdef HAVE_DB_185_H
42639 # include <db_185.h>
42644 #ifndef DB_VERSION_MAJOR
42645 # define DB_VERSION_MAJOR 1
42649 #define NULL ((void*)0)
42656 #if DB_VERSION_MAJOR > 1
42659 int major, minor, patch;
42661 version = db_version( &major, &minor, &patch );
42663 if( major != DB_VERSION_MAJOR ||
42664 minor < DB_VERSION_MINOR )
42666 printf("Berkeley DB version mismatch\n"
42667 "\theader: %s\n\tlibrary: %s\n",
42668 DB_VERSION_STRING, version);
42674 #if DB_VERSION_MAJOR > 2
42675 db_env_create( NULL, 0 );
42676 #elif DB_VERSION_MAJOR > 1
42677 db_appexit( NULL );
42679 (void) dbopen( NULL, 0, 0, 0, NULL);
42686 rm -f conftest.$ac_objext conftest$ac_exeext
42687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42688 (eval $ac_link) 2>conftest.er1
42690 grep -v '^ *+' conftest.er1 >conftest.err
42692 cat conftest.err >&5
42693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694 (exit $ac_status); } &&
42695 { ac_try='test -z "$ac_c_werror_flag"
42696 || test ! -s conftest.err'
42697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42698 (eval $ac_try) 2>&5
42700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42701 (exit $ac_status); }; } &&
42702 { ac_try='test -s conftest$ac_exeext'
42703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42704 (eval $ac_try) 2>&5
42706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42707 (exit $ac_status); }; }; then
42710 echo "$as_me: failed program was:" >&5
42711 sed 's/^/| /' conftest.$ac_ext >&5
42715 rm -f conftest.err conftest.$ac_objext \
42716 conftest$ac_exeext conftest.$ac_ext
42721 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42722 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42724 if test $ol_cv_db_db_3 = yes ; then
42725 ol_cv_lib_db=-ldb-3
42729 if test $ol_cv_lib_db = no ; then
42730 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42731 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42732 if test "${ol_cv_db_db2+set}" = set; then
42733 echo $ECHO_N "(cached) $ECHO_C" >&6
42738 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42740 cat >conftest.$ac_ext <<_ACEOF
42743 cat confdefs.h >>conftest.$ac_ext
42744 cat >>conftest.$ac_ext <<_ACEOF
42745 /* end confdefs.h. */
42747 #ifdef HAVE_DB_185_H
42748 # include <db_185.h>
42753 #ifndef DB_VERSION_MAJOR
42754 # define DB_VERSION_MAJOR 1
42758 #define NULL ((void*)0)
42765 #if DB_VERSION_MAJOR > 1
42768 int major, minor, patch;
42770 version = db_version( &major, &minor, &patch );
42772 if( major != DB_VERSION_MAJOR ||
42773 minor < DB_VERSION_MINOR )
42775 printf("Berkeley DB version mismatch\n"
42776 "\theader: %s\n\tlibrary: %s\n",
42777 DB_VERSION_STRING, version);
42783 #if DB_VERSION_MAJOR > 2
42784 db_env_create( NULL, 0 );
42785 #elif DB_VERSION_MAJOR > 1
42786 db_appexit( NULL );
42788 (void) dbopen( NULL, 0, 0, 0, NULL);
42795 rm -f conftest.$ac_objext conftest$ac_exeext
42796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42797 (eval $ac_link) 2>conftest.er1
42799 grep -v '^ *+' conftest.er1 >conftest.err
42801 cat conftest.err >&5
42802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803 (exit $ac_status); } &&
42804 { ac_try='test -z "$ac_c_werror_flag"
42805 || test ! -s conftest.err'
42806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42807 (eval $ac_try) 2>&5
42809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810 (exit $ac_status); }; } &&
42811 { ac_try='test -s conftest$ac_exeext'
42812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42813 (eval $ac_try) 2>&5
42815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42816 (exit $ac_status); }; }; then
42819 echo "$as_me: failed program was:" >&5
42820 sed 's/^/| /' conftest.$ac_ext >&5
42824 rm -f conftest.err conftest.$ac_objext \
42825 conftest$ac_exeext conftest.$ac_ext
42830 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42831 echo "${ECHO_T}$ol_cv_db_db2" >&6
42833 if test $ol_cv_db_db2 = yes ; then
42838 if test $ol_cv_lib_db = no ; then
42839 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42840 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42841 if test "${ol_cv_db_db_2+set}" = set; then
42842 echo $ECHO_N "(cached) $ECHO_C" >&6
42847 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42849 cat >conftest.$ac_ext <<_ACEOF
42852 cat confdefs.h >>conftest.$ac_ext
42853 cat >>conftest.$ac_ext <<_ACEOF
42854 /* end confdefs.h. */
42856 #ifdef HAVE_DB_185_H
42857 # include <db_185.h>
42862 #ifndef DB_VERSION_MAJOR
42863 # define DB_VERSION_MAJOR 1
42867 #define NULL ((void*)0)
42874 #if DB_VERSION_MAJOR > 1
42877 int major, minor, patch;
42879 version = db_version( &major, &minor, &patch );
42881 if( major != DB_VERSION_MAJOR ||
42882 minor < DB_VERSION_MINOR )
42884 printf("Berkeley DB version mismatch\n"
42885 "\theader: %s\n\tlibrary: %s\n",
42886 DB_VERSION_STRING, version);
42892 #if DB_VERSION_MAJOR > 2
42893 db_env_create( NULL, 0 );
42894 #elif DB_VERSION_MAJOR > 1
42895 db_appexit( NULL );
42897 (void) dbopen( NULL, 0, 0, 0, NULL);
42904 rm -f conftest.$ac_objext conftest$ac_exeext
42905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42906 (eval $ac_link) 2>conftest.er1
42908 grep -v '^ *+' conftest.er1 >conftest.err
42910 cat conftest.err >&5
42911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42912 (exit $ac_status); } &&
42913 { ac_try='test -z "$ac_c_werror_flag"
42914 || test ! -s conftest.err'
42915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42916 (eval $ac_try) 2>&5
42918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42919 (exit $ac_status); }; } &&
42920 { ac_try='test -s conftest$ac_exeext'
42921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42922 (eval $ac_try) 2>&5
42924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42925 (exit $ac_status); }; }; then
42928 echo "$as_me: failed program was:" >&5
42929 sed 's/^/| /' conftest.$ac_ext >&5
42933 rm -f conftest.err conftest.$ac_objext \
42934 conftest$ac_exeext conftest.$ac_ext
42939 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42940 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42942 if test $ol_cv_db_db_2 = yes ; then
42943 ol_cv_lib_db=-ldb-2
42947 if test $ol_cv_lib_db = no ; then
42948 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42949 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42950 if test "${ol_cv_db_db1+set}" = set; then
42951 echo $ECHO_N "(cached) $ECHO_C" >&6
42956 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42958 cat >conftest.$ac_ext <<_ACEOF
42961 cat confdefs.h >>conftest.$ac_ext
42962 cat >>conftest.$ac_ext <<_ACEOF
42963 /* end confdefs.h. */
42965 #ifdef HAVE_DB_185_H
42966 # include <db_185.h>
42971 #ifndef DB_VERSION_MAJOR
42972 # define DB_VERSION_MAJOR 1
42976 #define NULL ((void*)0)
42983 #if DB_VERSION_MAJOR > 1
42986 int major, minor, patch;
42988 version = db_version( &major, &minor, &patch );
42990 if( major != DB_VERSION_MAJOR ||
42991 minor < DB_VERSION_MINOR )
42993 printf("Berkeley DB version mismatch\n"
42994 "\theader: %s\n\tlibrary: %s\n",
42995 DB_VERSION_STRING, version);
43001 #if DB_VERSION_MAJOR > 2
43002 db_env_create( NULL, 0 );
43003 #elif DB_VERSION_MAJOR > 1
43004 db_appexit( NULL );
43006 (void) dbopen( NULL, 0, 0, 0, NULL);
43013 rm -f conftest.$ac_objext conftest$ac_exeext
43014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43015 (eval $ac_link) 2>conftest.er1
43017 grep -v '^ *+' conftest.er1 >conftest.err
43019 cat conftest.err >&5
43020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43021 (exit $ac_status); } &&
43022 { ac_try='test -z "$ac_c_werror_flag"
43023 || test ! -s conftest.err'
43024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43025 (eval $ac_try) 2>&5
43027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43028 (exit $ac_status); }; } &&
43029 { ac_try='test -s conftest$ac_exeext'
43030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43031 (eval $ac_try) 2>&5
43033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43034 (exit $ac_status); }; }; then
43037 echo "$as_me: failed program was:" >&5
43038 sed 's/^/| /' conftest.$ac_ext >&5
43042 rm -f conftest.err conftest.$ac_objext \
43043 conftest$ac_exeext conftest.$ac_ext
43048 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
43049 echo "${ECHO_T}$ol_cv_db_db1" >&6
43051 if test $ol_cv_db_db1 = yes ; then
43056 if test $ol_cv_lib_db = no ; then
43057 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
43058 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
43059 if test "${ol_cv_db_db_1+set}" = set; then
43060 echo $ECHO_N "(cached) $ECHO_C" >&6
43065 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
43067 cat >conftest.$ac_ext <<_ACEOF
43070 cat confdefs.h >>conftest.$ac_ext
43071 cat >>conftest.$ac_ext <<_ACEOF
43072 /* end confdefs.h. */
43074 #ifdef HAVE_DB_185_H
43075 # include <db_185.h>
43080 #ifndef DB_VERSION_MAJOR
43081 # define DB_VERSION_MAJOR 1
43085 #define NULL ((void*)0)
43092 #if DB_VERSION_MAJOR > 1
43095 int major, minor, patch;
43097 version = db_version( &major, &minor, &patch );
43099 if( major != DB_VERSION_MAJOR ||
43100 minor < DB_VERSION_MINOR )
43102 printf("Berkeley DB version mismatch\n"
43103 "\theader: %s\n\tlibrary: %s\n",
43104 DB_VERSION_STRING, version);
43110 #if DB_VERSION_MAJOR > 2
43111 db_env_create( NULL, 0 );
43112 #elif DB_VERSION_MAJOR > 1
43113 db_appexit( NULL );
43115 (void) dbopen( NULL, 0, 0, 0, NULL);
43122 rm -f conftest.$ac_objext conftest$ac_exeext
43123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43124 (eval $ac_link) 2>conftest.er1
43126 grep -v '^ *+' conftest.er1 >conftest.err
43128 cat conftest.err >&5
43129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43130 (exit $ac_status); } &&
43131 { ac_try='test -z "$ac_c_werror_flag"
43132 || test ! -s conftest.err'
43133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43134 (eval $ac_try) 2>&5
43136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43137 (exit $ac_status); }; } &&
43138 { ac_try='test -s conftest$ac_exeext'
43139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43140 (eval $ac_try) 2>&5
43142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43143 (exit $ac_status); }; }; then
43146 echo "$as_me: failed program was:" >&5
43147 sed 's/^/| /' conftest.$ac_ext >&5
43151 rm -f conftest.err conftest.$ac_objext \
43152 conftest$ac_exeext conftest.$ac_ext
43157 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43158 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43160 if test $ol_cv_db_db_1 = yes ; then
43161 ol_cv_lib_db=-ldb-1
43166 if test "$ol_cv_lib_db" != no ; then
43167 ol_cv_berkeley_db=yes
43168 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43169 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43170 if test "${ol_cv_berkeley_db_version+set}" = set; then
43171 echo $ECHO_N "(cached) $ECHO_C" >&6
43175 LIBS="$LTHREAD_LIBS $LIBS"
43176 if test $ol_cv_lib_db != yes ; then
43177 LIBS="$ol_cv_lib_db $LIBS"
43180 if test "$cross_compiling" = yes; then
43181 ol_cv_berkeley_db_version=cross
43183 cat >conftest.$ac_ext <<_ACEOF
43186 cat confdefs.h >>conftest.$ac_ext
43187 cat >>conftest.$ac_ext <<_ACEOF
43188 /* end confdefs.h. */
43190 #ifdef HAVE_DB_185_H
43195 #ifndef DB_VERSION_MAJOR
43196 # define DB_VERSION_MAJOR 1
43199 #define NULL ((void *)0)
43203 #if DB_VERSION_MAJOR > 1
43205 int major, minor, patch;
43207 version = db_version( &major, &minor, &patch );
43209 if( major != DB_VERSION_MAJOR ||
43210 minor != DB_VERSION_MINOR ||
43211 patch != DB_VERSION_PATCH )
43213 printf("Berkeley DB version mismatch\n"
43214 "\theader: %s\n\tlibrary: %s\n",
43215 DB_VERSION_STRING, version);
43223 rm -f conftest$ac_exeext
43224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43225 (eval $ac_link) 2>&5
43227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43230 (eval $ac_try) 2>&5
43232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43233 (exit $ac_status); }; }; then
43234 ol_cv_berkeley_db_version=yes
43236 echo "$as_me: program exited with status $ac_status" >&5
43237 echo "$as_me: failed program was:" >&5
43238 sed 's/^/| /' conftest.$ac_ext >&5
43240 ( exit $ac_status )
43241 ol_cv_berkeley_db_version=no
43243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43249 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43250 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43252 if test $ol_cv_berkeley_db_version = no ; then
43253 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43254 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43255 { (exit 1); exit 1; }; }
43258 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43259 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43260 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43261 echo $ECHO_N "(cached) $ECHO_C" >&6
43265 LIBS="$LTHREAD_LIBS $LIBS"
43266 if test $ol_cv_lib_db != yes ; then
43267 LIBS="$ol_cv_lib_db $LIBS"
43270 if test "$cross_compiling" = yes; then
43271 ol_cv_berkeley_db_thread=cross
43273 cat >conftest.$ac_ext <<_ACEOF
43276 cat confdefs.h >>conftest.$ac_ext
43277 cat >>conftest.$ac_ext <<_ACEOF
43278 /* end confdefs.h. */
43280 #ifdef HAVE_DB_185_H
43286 #define NULL ((void *)0)
43291 u_int32_t flags = DB_CREATE |
43297 #if DB_VERSION_MAJOR > 2
43298 DB_ENV *env = NULL;
43300 rc = db_env_create( &env, 0 );
43302 flags |= DB_INIT_MPOOL;
43303 #ifdef DB_MPOOL_PRIVATE
43304 flags |= DB_MPOOL_PRIVATE;
43308 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43312 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43313 rc = env->open( env, NULL, flags, 0 );
43315 rc = env->open( env, NULL, NULL, flags, 0 );
43319 rc = env->close( env, 0 );
43323 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43329 memset( &env, '\0', sizeof(env) );
43331 rc = db_appinit( NULL, NULL, &env, flags );
43334 db_appexit( &env );
43337 unlink("__db_mpool.share");
43338 unlink("__db_lock.share");
43344 rm -f conftest$ac_exeext
43345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43346 (eval $ac_link) 2>&5
43348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43351 (eval $ac_try) 2>&5
43353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43354 (exit $ac_status); }; }; then
43355 ol_cv_berkeley_db_thread=yes
43357 echo "$as_me: program exited with status $ac_status" >&5
43358 echo "$as_me: failed program was:" >&5
43359 sed 's/^/| /' conftest.$ac_ext >&5
43361 ( exit $ac_status )
43362 ol_cv_berkeley_db_thread=no
43364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43370 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43371 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43373 if test $ol_cv_berkeley_db_thread != no ; then
43375 cat >>confdefs.h <<\_ACEOF
43376 #define HAVE_BERKELEY_DB_THREAD 1
43386 if test $ol_cv_berkeley_db != no ; then
43388 cat >>confdefs.h <<\_ACEOF
43389 #define HAVE_BERKELEY_DB 1
43393 ol_link_ldbm=berkeley
43394 ol_enable_ldbm_api=berkeley
43396 if test $ol_enable_ldbm_type = hash ; then
43398 cat >>confdefs.h <<\_ACEOF
43399 #define LDBM_USE_DBHASH 1
43404 cat >>confdefs.h <<\_ACEOF
43405 #define LDBM_USE_DBBTREE 1
43410 if test $ol_cv_lib_db != yes ; then
43411 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43416 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43417 if test $ol_link_ldbm != berkeley ; then
43418 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43419 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43420 { (exit 1); exit 1; }; }
43422 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43423 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43424 if test "${ol_cv_bdb_compat+set}" = set; then
43425 echo $ECHO_N "(cached) $ECHO_C" >&6
43428 cat >conftest.$ac_ext <<_ACEOF
43431 cat confdefs.h >>conftest.$ac_ext
43432 cat >>conftest.$ac_ext <<_ACEOF
43433 /* end confdefs.h. */
43437 /* this check could be improved */
43438 #ifndef DB_VERSION_MAJOR
43439 # define DB_VERSION_MAJOR 1
43441 #ifndef DB_VERSION_MINOR
43442 # define DB_VERSION_MINOR 0
43445 /* require 4.2 or later */
43446 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43447 __db_version_compat
43451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43452 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43453 ol_cv_bdb_compat=yes
43455 ol_cv_bdb_compat=no
43460 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43461 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43464 if test $ol_cv_bdb_compat != yes ; then
43465 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43466 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43467 { (exit 1); exit 1; }; }
43472 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
43473 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43474 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43475 ol_enable_ldbm_api=none
43478 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
43479 echo "$as_me:$LINENO: checking for MDBM library" >&5
43480 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43481 if test "${ol_cv_lib_mdbm+set}" = set; then
43482 echo $ECHO_N "(cached) $ECHO_C" >&6
43485 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43486 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43487 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43488 echo $ECHO_N "(cached) $ECHO_C" >&6
43490 cat >conftest.$ac_ext <<_ACEOF
43493 cat confdefs.h >>conftest.$ac_ext
43494 cat >>conftest.$ac_ext <<_ACEOF
43495 /* end confdefs.h. */
43496 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43498 #define mdbm_set_chain innocuous_mdbm_set_chain
43500 /* System header to define __stub macros and hopefully few prototypes,
43501 which can conflict with char mdbm_set_chain (); below.
43502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43503 <limits.h> exists even on freestanding compilers. */
43506 # include <limits.h>
43508 # include <assert.h>
43511 #undef mdbm_set_chain
43513 /* Override any gcc2 internal prototype to avoid an error. */
43518 /* We use char because int might match the return type of a gcc2
43519 builtin and then its argument prototype would still apply. */
43520 char mdbm_set_chain ();
43521 /* The GNU C library defines this for functions which it implements
43522 to always fail with ENOSYS. Some functions are actually named
43523 something starting with __ and the normal name is an alias. */
43524 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43527 char (*f) () = mdbm_set_chain;
43536 return f != mdbm_set_chain;
43541 rm -f conftest.$ac_objext conftest$ac_exeext
43542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43543 (eval $ac_link) 2>conftest.er1
43545 grep -v '^ *+' conftest.er1 >conftest.err
43547 cat conftest.err >&5
43548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43549 (exit $ac_status); } &&
43550 { ac_try='test -z "$ac_c_werror_flag"
43551 || test ! -s conftest.err'
43552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43553 (eval $ac_try) 2>&5
43555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43556 (exit $ac_status); }; } &&
43557 { ac_try='test -s conftest$ac_exeext'
43558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43559 (eval $ac_try) 2>&5
43561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43562 (exit $ac_status); }; }; then
43563 ac_cv_func_mdbm_set_chain=yes
43565 echo "$as_me: failed program was:" >&5
43566 sed 's/^/| /' conftest.$ac_ext >&5
43568 ac_cv_func_mdbm_set_chain=no
43570 rm -f conftest.err conftest.$ac_objext \
43571 conftest$ac_exeext conftest.$ac_ext
43573 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43574 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43575 if test $ac_cv_func_mdbm_set_chain = yes; then
43579 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43580 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43581 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43582 echo $ECHO_N "(cached) $ECHO_C" >&6
43584 ac_check_lib_save_LIBS=$LIBS
43585 LIBS="-lmdbm $LIBS"
43586 cat >conftest.$ac_ext <<_ACEOF
43589 cat confdefs.h >>conftest.$ac_ext
43590 cat >>conftest.$ac_ext <<_ACEOF
43591 /* end confdefs.h. */
43593 /* Override any gcc2 internal prototype to avoid an error. */
43597 /* We use char because int might match the return type of a gcc2
43598 builtin and then its argument prototype would still apply. */
43599 char mdbm_set_chain ();
43608 rm -f conftest.$ac_objext conftest$ac_exeext
43609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43610 (eval $ac_link) 2>conftest.er1
43612 grep -v '^ *+' conftest.er1 >conftest.err
43614 cat conftest.err >&5
43615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43616 (exit $ac_status); } &&
43617 { ac_try='test -z "$ac_c_werror_flag"
43618 || test ! -s conftest.err'
43619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43620 (eval $ac_try) 2>&5
43622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43623 (exit $ac_status); }; } &&
43624 { ac_try='test -s conftest$ac_exeext'
43625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43626 (eval $ac_try) 2>&5
43628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43629 (exit $ac_status); }; }; then
43630 ac_cv_lib_mdbm_mdbm_set_chain=yes
43632 echo "$as_me: failed program was:" >&5
43633 sed 's/^/| /' conftest.$ac_ext >&5
43635 ac_cv_lib_mdbm_mdbm_set_chain=no
43637 rm -f conftest.err conftest.$ac_objext \
43638 conftest$ac_exeext conftest.$ac_ext
43639 LIBS=$ac_check_lib_save_LIBS
43641 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43642 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43643 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43644 ol_cv_lib_mdbm=-lmdbm
43655 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43656 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43660 for ac_header in mdbm.h
43662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43664 echo "$as_me:$LINENO: checking for $ac_header" >&5
43665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43667 echo $ECHO_N "(cached) $ECHO_C" >&6
43669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43672 # Is the header compilable?
43673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43675 cat >conftest.$ac_ext <<_ACEOF
43678 cat confdefs.h >>conftest.$ac_ext
43679 cat >>conftest.$ac_ext <<_ACEOF
43680 /* end confdefs.h. */
43681 $ac_includes_default
43682 #include <$ac_header>
43684 rm -f conftest.$ac_objext
43685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43686 (eval $ac_compile) 2>conftest.er1
43688 grep -v '^ *+' conftest.er1 >conftest.err
43690 cat conftest.err >&5
43691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43692 (exit $ac_status); } &&
43693 { ac_try='test -z "$ac_c_werror_flag"
43694 || test ! -s conftest.err'
43695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43696 (eval $ac_try) 2>&5
43698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43699 (exit $ac_status); }; } &&
43700 { ac_try='test -s conftest.$ac_objext'
43701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43702 (eval $ac_try) 2>&5
43704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43705 (exit $ac_status); }; }; then
43706 ac_header_compiler=yes
43708 echo "$as_me: failed program was:" >&5
43709 sed 's/^/| /' conftest.$ac_ext >&5
43711 ac_header_compiler=no
43713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43715 echo "${ECHO_T}$ac_header_compiler" >&6
43717 # Is the header present?
43718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43720 cat >conftest.$ac_ext <<_ACEOF
43723 cat confdefs.h >>conftest.$ac_ext
43724 cat >>conftest.$ac_ext <<_ACEOF
43725 /* end confdefs.h. */
43726 #include <$ac_header>
43728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43731 grep -v '^ *+' conftest.er1 >conftest.err
43733 cat conftest.err >&5
43734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735 (exit $ac_status); } >/dev/null; then
43736 if test -s conftest.err; then
43737 ac_cpp_err=$ac_c_preproc_warn_flag
43738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43745 if test -z "$ac_cpp_err"; then
43746 ac_header_preproc=yes
43748 echo "$as_me: failed program was:" >&5
43749 sed 's/^/| /' conftest.$ac_ext >&5
43751 ac_header_preproc=no
43753 rm -f conftest.err conftest.$ac_ext
43754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43755 echo "${ECHO_T}$ac_header_preproc" >&6
43757 # So? What about this header?
43758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43764 ac_header_preproc=yes
43767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43781 ## ------------------------------------------ ##
43782 ## Report this to the AC_PACKAGE_NAME lists. ##
43783 ## ------------------------------------------ ##
43786 sed "s/^/$as_me: WARNING: /" >&2
43789 echo "$as_me:$LINENO: checking for $ac_header" >&5
43790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43792 echo $ECHO_N "(cached) $ECHO_C" >&6
43794 eval "$as_ac_Header=\$ac_header_preproc"
43796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43801 cat >>confdefs.h <<_ACEOF
43802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43809 echo "$as_me:$LINENO: checking for db" >&5
43810 echo $ECHO_N "checking for db... $ECHO_C" >&6
43811 if test "${ol_cv_mdbm+set}" = set; then
43812 echo $ECHO_N "(cached) $ECHO_C" >&6
43815 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43822 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43823 echo "${ECHO_T}$ol_cv_mdbm" >&6
43824 if test $ol_cv_mdbm = yes ; then
43826 cat >>confdefs.h <<\_ACEOF
43827 #define HAVE_MDBM 1
43833 if test $ol_cv_mdbm = yes ; then
43835 ol_enable_ldbm_api=mdbm
43836 if test $ol_cv_lib_mdbm != yes ; then
43837 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43842 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
43843 echo "$as_me:$LINENO: checking for GDBM library" >&5
43844 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43845 if test "${ol_cv_lib_gdbm+set}" = set; then
43846 echo $ECHO_N "(cached) $ECHO_C" >&6
43849 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43850 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43851 if test "${ac_cv_func_gdbm_open+set}" = set; then
43852 echo $ECHO_N "(cached) $ECHO_C" >&6
43854 cat >conftest.$ac_ext <<_ACEOF
43857 cat confdefs.h >>conftest.$ac_ext
43858 cat >>conftest.$ac_ext <<_ACEOF
43859 /* end confdefs.h. */
43860 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43862 #define gdbm_open innocuous_gdbm_open
43864 /* System header to define __stub macros and hopefully few prototypes,
43865 which can conflict with char gdbm_open (); below.
43866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43867 <limits.h> exists even on freestanding compilers. */
43870 # include <limits.h>
43872 # include <assert.h>
43877 /* Override any gcc2 internal prototype to avoid an error. */
43882 /* We use char because int might match the return type of a gcc2
43883 builtin and then its argument prototype would still apply. */
43885 /* The GNU C library defines this for functions which it implements
43886 to always fail with ENOSYS. Some functions are actually named
43887 something starting with __ and the normal name is an alias. */
43888 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43891 char (*f) () = gdbm_open;
43900 return f != gdbm_open;
43905 rm -f conftest.$ac_objext conftest$ac_exeext
43906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43907 (eval $ac_link) 2>conftest.er1
43909 grep -v '^ *+' conftest.er1 >conftest.err
43911 cat conftest.err >&5
43912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43913 (exit $ac_status); } &&
43914 { ac_try='test -z "$ac_c_werror_flag"
43915 || test ! -s conftest.err'
43916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43917 (eval $ac_try) 2>&5
43919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43920 (exit $ac_status); }; } &&
43921 { ac_try='test -s conftest$ac_exeext'
43922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43923 (eval $ac_try) 2>&5
43925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43926 (exit $ac_status); }; }; then
43927 ac_cv_func_gdbm_open=yes
43929 echo "$as_me: failed program was:" >&5
43930 sed 's/^/| /' conftest.$ac_ext >&5
43932 ac_cv_func_gdbm_open=no
43934 rm -f conftest.err conftest.$ac_objext \
43935 conftest$ac_exeext conftest.$ac_ext
43937 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43938 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43939 if test $ac_cv_func_gdbm_open = yes; then
43943 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43944 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43945 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43946 echo $ECHO_N "(cached) $ECHO_C" >&6
43948 ac_check_lib_save_LIBS=$LIBS
43949 LIBS="-lgdbm $LIBS"
43950 cat >conftest.$ac_ext <<_ACEOF
43953 cat confdefs.h >>conftest.$ac_ext
43954 cat >>conftest.$ac_ext <<_ACEOF
43955 /* end confdefs.h. */
43957 /* Override any gcc2 internal prototype to avoid an error. */
43961 /* We use char because int might match the return type of a gcc2
43962 builtin and then its argument prototype would still apply. */
43972 rm -f conftest.$ac_objext conftest$ac_exeext
43973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43974 (eval $ac_link) 2>conftest.er1
43976 grep -v '^ *+' conftest.er1 >conftest.err
43978 cat conftest.err >&5
43979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43980 (exit $ac_status); } &&
43981 { ac_try='test -z "$ac_c_werror_flag"
43982 || test ! -s conftest.err'
43983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43984 (eval $ac_try) 2>&5
43986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43987 (exit $ac_status); }; } &&
43988 { ac_try='test -s conftest$ac_exeext'
43989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43990 (eval $ac_try) 2>&5
43992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43993 (exit $ac_status); }; }; then
43994 ac_cv_lib_gdbm_gdbm_open=yes
43996 echo "$as_me: failed program was:" >&5
43997 sed 's/^/| /' conftest.$ac_ext >&5
43999 ac_cv_lib_gdbm_gdbm_open=no
44001 rm -f conftest.err conftest.$ac_objext \
44002 conftest$ac_exeext conftest.$ac_ext
44003 LIBS=$ac_check_lib_save_LIBS
44005 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
44006 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
44007 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
44008 ol_cv_lib_gdbm=-lgdbm
44019 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
44020 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
44024 for ac_header in gdbm.h
44026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44028 echo "$as_me:$LINENO: checking for $ac_header" >&5
44029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44031 echo $ECHO_N "(cached) $ECHO_C" >&6
44033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44036 # Is the header compilable?
44037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44039 cat >conftest.$ac_ext <<_ACEOF
44042 cat confdefs.h >>conftest.$ac_ext
44043 cat >>conftest.$ac_ext <<_ACEOF
44044 /* end confdefs.h. */
44045 $ac_includes_default
44046 #include <$ac_header>
44048 rm -f conftest.$ac_objext
44049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44050 (eval $ac_compile) 2>conftest.er1
44052 grep -v '^ *+' conftest.er1 >conftest.err
44054 cat conftest.err >&5
44055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44056 (exit $ac_status); } &&
44057 { ac_try='test -z "$ac_c_werror_flag"
44058 || test ! -s conftest.err'
44059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44060 (eval $ac_try) 2>&5
44062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44063 (exit $ac_status); }; } &&
44064 { ac_try='test -s conftest.$ac_objext'
44065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44066 (eval $ac_try) 2>&5
44068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44069 (exit $ac_status); }; }; then
44070 ac_header_compiler=yes
44072 echo "$as_me: failed program was:" >&5
44073 sed 's/^/| /' conftest.$ac_ext >&5
44075 ac_header_compiler=no
44077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44079 echo "${ECHO_T}$ac_header_compiler" >&6
44081 # Is the header present?
44082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44084 cat >conftest.$ac_ext <<_ACEOF
44087 cat confdefs.h >>conftest.$ac_ext
44088 cat >>conftest.$ac_ext <<_ACEOF
44089 /* end confdefs.h. */
44090 #include <$ac_header>
44092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44095 grep -v '^ *+' conftest.er1 >conftest.err
44097 cat conftest.err >&5
44098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44099 (exit $ac_status); } >/dev/null; then
44100 if test -s conftest.err; then
44101 ac_cpp_err=$ac_c_preproc_warn_flag
44102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44109 if test -z "$ac_cpp_err"; then
44110 ac_header_preproc=yes
44112 echo "$as_me: failed program was:" >&5
44113 sed 's/^/| /' conftest.$ac_ext >&5
44115 ac_header_preproc=no
44117 rm -f conftest.err conftest.$ac_ext
44118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44119 echo "${ECHO_T}$ac_header_preproc" >&6
44121 # So? What about this header?
44122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44128 ac_header_preproc=yes
44131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44145 ## ------------------------------------------ ##
44146 ## Report this to the AC_PACKAGE_NAME lists. ##
44147 ## ------------------------------------------ ##
44150 sed "s/^/$as_me: WARNING: /" >&2
44153 echo "$as_me:$LINENO: checking for $ac_header" >&5
44154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44156 echo $ECHO_N "(cached) $ECHO_C" >&6
44158 eval "$as_ac_Header=\$ac_header_preproc"
44160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44165 cat >>confdefs.h <<_ACEOF
44166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44173 echo "$as_me:$LINENO: checking for db" >&5
44174 echo $ECHO_N "checking for db... $ECHO_C" >&6
44175 if test "${ol_cv_gdbm+set}" = set; then
44176 echo $ECHO_N "(cached) $ECHO_C" >&6
44179 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44186 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44187 echo "${ECHO_T}$ol_cv_gdbm" >&6
44188 if test $ol_cv_gdbm = yes ; then
44190 cat >>confdefs.h <<\_ACEOF
44191 #define HAVE_GDBM 1
44197 if test $ol_cv_gdbm = yes ; then
44199 ol_enable_ldbm_api=gdbm
44201 if test $ol_cv_lib_gdbm != yes ; then
44202 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44207 if test $ol_enable_ldbm_api = ndbm ; then
44208 echo "$as_me:$LINENO: checking for NDBM library" >&5
44209 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44210 if test "${ol_cv_lib_ndbm+set}" = set; then
44211 echo $ECHO_N "(cached) $ECHO_C" >&6
44214 echo "$as_me:$LINENO: checking for dbm_open" >&5
44215 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44216 if test "${ac_cv_func_dbm_open+set}" = set; then
44217 echo $ECHO_N "(cached) $ECHO_C" >&6
44219 cat >conftest.$ac_ext <<_ACEOF
44222 cat confdefs.h >>conftest.$ac_ext
44223 cat >>conftest.$ac_ext <<_ACEOF
44224 /* end confdefs.h. */
44225 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44227 #define dbm_open innocuous_dbm_open
44229 /* System header to define __stub macros and hopefully few prototypes,
44230 which can conflict with char dbm_open (); below.
44231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44232 <limits.h> exists even on freestanding compilers. */
44235 # include <limits.h>
44237 # include <assert.h>
44242 /* Override any gcc2 internal prototype to avoid an error. */
44247 /* We use char because int might match the return type of a gcc2
44248 builtin and then its argument prototype would still apply. */
44250 /* The GNU C library defines this for functions which it implements
44251 to always fail with ENOSYS. Some functions are actually named
44252 something starting with __ and the normal name is an alias. */
44253 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44256 char (*f) () = dbm_open;
44265 return f != dbm_open;
44270 rm -f conftest.$ac_objext conftest$ac_exeext
44271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44272 (eval $ac_link) 2>conftest.er1
44274 grep -v '^ *+' conftest.er1 >conftest.err
44276 cat conftest.err >&5
44277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44278 (exit $ac_status); } &&
44279 { ac_try='test -z "$ac_c_werror_flag"
44280 || test ! -s conftest.err'
44281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44282 (eval $ac_try) 2>&5
44284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44285 (exit $ac_status); }; } &&
44286 { ac_try='test -s conftest$ac_exeext'
44287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44288 (eval $ac_try) 2>&5
44290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44291 (exit $ac_status); }; }; then
44292 ac_cv_func_dbm_open=yes
44294 echo "$as_me: failed program was:" >&5
44295 sed 's/^/| /' conftest.$ac_ext >&5
44297 ac_cv_func_dbm_open=no
44299 rm -f conftest.err conftest.$ac_objext \
44300 conftest$ac_exeext conftest.$ac_ext
44302 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44303 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44304 if test $ac_cv_func_dbm_open = yes; then
44308 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44309 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44310 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44311 echo $ECHO_N "(cached) $ECHO_C" >&6
44313 ac_check_lib_save_LIBS=$LIBS
44314 LIBS="-lndbm $LIBS"
44315 cat >conftest.$ac_ext <<_ACEOF
44318 cat confdefs.h >>conftest.$ac_ext
44319 cat >>conftest.$ac_ext <<_ACEOF
44320 /* end confdefs.h. */
44322 /* Override any gcc2 internal prototype to avoid an error. */
44326 /* We use char because int might match the return type of a gcc2
44327 builtin and then its argument prototype would still apply. */
44337 rm -f conftest.$ac_objext conftest$ac_exeext
44338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44339 (eval $ac_link) 2>conftest.er1
44341 grep -v '^ *+' conftest.er1 >conftest.err
44343 cat conftest.err >&5
44344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345 (exit $ac_status); } &&
44346 { ac_try='test -z "$ac_c_werror_flag"
44347 || test ! -s conftest.err'
44348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44349 (eval $ac_try) 2>&5
44351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352 (exit $ac_status); }; } &&
44353 { ac_try='test -s conftest$ac_exeext'
44354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44355 (eval $ac_try) 2>&5
44357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44358 (exit $ac_status); }; }; then
44359 ac_cv_lib_ndbm_dbm_open=yes
44361 echo "$as_me: failed program was:" >&5
44362 sed 's/^/| /' conftest.$ac_ext >&5
44364 ac_cv_lib_ndbm_dbm_open=no
44366 rm -f conftest.err conftest.$ac_objext \
44367 conftest$ac_exeext conftest.$ac_ext
44368 LIBS=$ac_check_lib_save_LIBS
44370 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44371 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44372 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44373 ol_cv_lib_ndbm=-lndbm
44376 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44377 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44378 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44379 echo $ECHO_N "(cached) $ECHO_C" >&6
44381 ac_check_lib_save_LIBS=$LIBS
44383 cat >conftest.$ac_ext <<_ACEOF
44386 cat confdefs.h >>conftest.$ac_ext
44387 cat >>conftest.$ac_ext <<_ACEOF
44388 /* end confdefs.h. */
44390 /* Override any gcc2 internal prototype to avoid an error. */
44394 /* We use char because int might match the return type of a gcc2
44395 builtin and then its argument prototype would still apply. */
44405 rm -f conftest.$ac_objext conftest$ac_exeext
44406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44407 (eval $ac_link) 2>conftest.er1
44409 grep -v '^ *+' conftest.er1 >conftest.err
44411 cat conftest.err >&5
44412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44413 (exit $ac_status); } &&
44414 { ac_try='test -z "$ac_c_werror_flag"
44415 || test ! -s conftest.err'
44416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44417 (eval $ac_try) 2>&5
44419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44420 (exit $ac_status); }; } &&
44421 { ac_try='test -s conftest$ac_exeext'
44422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44423 (eval $ac_try) 2>&5
44425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44426 (exit $ac_status); }; }; then
44427 ac_cv_lib_dbm_dbm_open=yes
44429 echo "$as_me: failed program was:" >&5
44430 sed 's/^/| /' conftest.$ac_ext >&5
44432 ac_cv_lib_dbm_dbm_open=no
44434 rm -f conftest.err conftest.$ac_objext \
44435 conftest$ac_exeext conftest.$ac_ext
44436 LIBS=$ac_check_lib_save_LIBS
44438 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44439 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44440 if test $ac_cv_lib_dbm_dbm_open = yes; then
44441 ol_cv_lib_ndbm=-ldbm
44454 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44455 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44459 for ac_header in ndbm.h
44461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44463 echo "$as_me:$LINENO: checking for $ac_header" >&5
44464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44466 echo $ECHO_N "(cached) $ECHO_C" >&6
44468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44471 # Is the header compilable?
44472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44474 cat >conftest.$ac_ext <<_ACEOF
44477 cat confdefs.h >>conftest.$ac_ext
44478 cat >>conftest.$ac_ext <<_ACEOF
44479 /* end confdefs.h. */
44480 $ac_includes_default
44481 #include <$ac_header>
44483 rm -f conftest.$ac_objext
44484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44485 (eval $ac_compile) 2>conftest.er1
44487 grep -v '^ *+' conftest.er1 >conftest.err
44489 cat conftest.err >&5
44490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44491 (exit $ac_status); } &&
44492 { ac_try='test -z "$ac_c_werror_flag"
44493 || test ! -s conftest.err'
44494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44495 (eval $ac_try) 2>&5
44497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44498 (exit $ac_status); }; } &&
44499 { ac_try='test -s conftest.$ac_objext'
44500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44501 (eval $ac_try) 2>&5
44503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44504 (exit $ac_status); }; }; then
44505 ac_header_compiler=yes
44507 echo "$as_me: failed program was:" >&5
44508 sed 's/^/| /' conftest.$ac_ext >&5
44510 ac_header_compiler=no
44512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44514 echo "${ECHO_T}$ac_header_compiler" >&6
44516 # Is the header present?
44517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44519 cat >conftest.$ac_ext <<_ACEOF
44522 cat confdefs.h >>conftest.$ac_ext
44523 cat >>conftest.$ac_ext <<_ACEOF
44524 /* end confdefs.h. */
44525 #include <$ac_header>
44527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44530 grep -v '^ *+' conftest.er1 >conftest.err
44532 cat conftest.err >&5
44533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44534 (exit $ac_status); } >/dev/null; then
44535 if test -s conftest.err; then
44536 ac_cpp_err=$ac_c_preproc_warn_flag
44537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44544 if test -z "$ac_cpp_err"; then
44545 ac_header_preproc=yes
44547 echo "$as_me: failed program was:" >&5
44548 sed 's/^/| /' conftest.$ac_ext >&5
44550 ac_header_preproc=no
44552 rm -f conftest.err conftest.$ac_ext
44553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44554 echo "${ECHO_T}$ac_header_preproc" >&6
44556 # So? What about this header?
44557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44563 ac_header_preproc=yes
44566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44580 ## ------------------------------------------ ##
44581 ## Report this to the AC_PACKAGE_NAME lists. ##
44582 ## ------------------------------------------ ##
44585 sed "s/^/$as_me: WARNING: /" >&2
44588 echo "$as_me:$LINENO: checking for $ac_header" >&5
44589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44591 echo $ECHO_N "(cached) $ECHO_C" >&6
44593 eval "$as_ac_Header=\$ac_header_preproc"
44595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44600 cat >>confdefs.h <<_ACEOF
44601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44608 echo "$as_me:$LINENO: checking for db" >&5
44609 echo $ECHO_N "checking for db... $ECHO_C" >&6
44610 if test "${ol_cv_ndbm+set}" = set; then
44611 echo $ECHO_N "(cached) $ECHO_C" >&6
44614 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44621 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44622 echo "${ECHO_T}$ol_cv_ndbm" >&6
44623 if test $ol_cv_ndbm = yes ; then
44625 cat >>confdefs.h <<\_ACEOF
44626 #define HAVE_NDBM 1
44632 if test $ol_cv_ndbm = yes ; then
44634 ol_enable_ldbm_api=ndbm
44636 if test $ol_cv_lib_ndbm != yes ; then
44637 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44642 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44643 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44644 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44645 { (exit 1); exit 1; }; }
44648 if test $ol_enable_bdb = yes -o \
44649 $ol_enable_hdb = yes -o \
44650 $ol_enable_ldbm = yes ; then
44651 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44655 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44656 BUILD_LIBS_DYNAMIC=shared
44658 cat >>confdefs.h <<\_ACEOF
44659 #define LDAP_LIBS_DYNAMIC 1
44664 BUILD_LIBS_DYNAMIC=static
44668 if test $ol_enable_wrappers != no ; then
44670 for ac_header in tcpd.h
44672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44674 echo "$as_me:$LINENO: checking for $ac_header" >&5
44675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44677 echo $ECHO_N "(cached) $ECHO_C" >&6
44679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44682 # Is the header compilable?
44683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44685 cat >conftest.$ac_ext <<_ACEOF
44688 cat confdefs.h >>conftest.$ac_ext
44689 cat >>conftest.$ac_ext <<_ACEOF
44690 /* end confdefs.h. */
44691 $ac_includes_default
44692 #include <$ac_header>
44694 rm -f conftest.$ac_objext
44695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44696 (eval $ac_compile) 2>conftest.er1
44698 grep -v '^ *+' conftest.er1 >conftest.err
44700 cat conftest.err >&5
44701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702 (exit $ac_status); } &&
44703 { ac_try='test -z "$ac_c_werror_flag"
44704 || test ! -s conftest.err'
44705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44706 (eval $ac_try) 2>&5
44708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44709 (exit $ac_status); }; } &&
44710 { ac_try='test -s conftest.$ac_objext'
44711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44712 (eval $ac_try) 2>&5
44714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44715 (exit $ac_status); }; }; then
44716 ac_header_compiler=yes
44718 echo "$as_me: failed program was:" >&5
44719 sed 's/^/| /' conftest.$ac_ext >&5
44721 ac_header_compiler=no
44723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44725 echo "${ECHO_T}$ac_header_compiler" >&6
44727 # Is the header present?
44728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44730 cat >conftest.$ac_ext <<_ACEOF
44733 cat confdefs.h >>conftest.$ac_ext
44734 cat >>conftest.$ac_ext <<_ACEOF
44735 /* end confdefs.h. */
44736 #include <$ac_header>
44738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44741 grep -v '^ *+' conftest.er1 >conftest.err
44743 cat conftest.err >&5
44744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44745 (exit $ac_status); } >/dev/null; then
44746 if test -s conftest.err; then
44747 ac_cpp_err=$ac_c_preproc_warn_flag
44748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44755 if test -z "$ac_cpp_err"; then
44756 ac_header_preproc=yes
44758 echo "$as_me: failed program was:" >&5
44759 sed 's/^/| /' conftest.$ac_ext >&5
44761 ac_header_preproc=no
44763 rm -f conftest.err conftest.$ac_ext
44764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44765 echo "${ECHO_T}$ac_header_preproc" >&6
44767 # So? What about this header?
44768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44774 ac_header_preproc=yes
44777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44791 ## ------------------------------------------ ##
44792 ## Report this to the AC_PACKAGE_NAME lists. ##
44793 ## ------------------------------------------ ##
44796 sed "s/^/$as_me: WARNING: /" >&2
44799 echo "$as_me:$LINENO: checking for $ac_header" >&5
44800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44802 echo $ECHO_N "(cached) $ECHO_C" >&6
44804 eval "$as_ac_Header=\$ac_header_preproc"
44806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44811 cat >>confdefs.h <<_ACEOF
44812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44815 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44816 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44818 LIBS="$LIBS -lwrap"
44819 cat >conftest.$ac_ext <<_ACEOF
44822 cat confdefs.h >>conftest.$ac_ext
44823 cat >>conftest.$ac_ext <<_ACEOF
44824 /* end confdefs.h. */
44827 int allow_severity = 0;
44828 int deny_severity = 0;
44830 struct request_info *req;
44842 rm -f conftest.$ac_objext conftest$ac_exeext
44843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44844 (eval $ac_link) 2>conftest.er1
44846 grep -v '^ *+' conftest.er1 >conftest.err
44848 cat conftest.err >&5
44849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44850 (exit $ac_status); } &&
44851 { ac_try='test -z "$ac_c_werror_flag"
44852 || test ! -s conftest.err'
44853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44854 (eval $ac_try) 2>&5
44856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857 (exit $ac_status); }; } &&
44858 { ac_try='test -s conftest$ac_exeext'
44859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44860 (eval $ac_try) 2>&5
44862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44863 (exit $ac_status); }; }; then
44864 echo "$as_me:$LINENO: result: -lwrap" >&5
44865 echo "${ECHO_T}-lwrap" >&6
44869 echo "$as_me: failed program was:" >&5
44870 sed 's/^/| /' conftest.$ac_ext >&5
44874 cat >conftest.$ac_ext <<_ACEOF
44877 cat confdefs.h >>conftest.$ac_ext
44878 cat >>conftest.$ac_ext <<_ACEOF
44879 /* end confdefs.h. */
44882 int allow_severity = 0;
44883 int deny_severity = 0;
44885 struct request_info *req;
44897 rm -f conftest.$ac_objext conftest$ac_exeext
44898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44899 (eval $ac_link) 2>conftest.er1
44901 grep -v '^ *+' conftest.er1 >conftest.err
44903 cat conftest.err >&5
44904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44905 (exit $ac_status); } &&
44906 { ac_try='test -z "$ac_c_werror_flag"
44907 || test ! -s conftest.err'
44908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44909 (eval $ac_try) 2>&5
44911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44912 (exit $ac_status); }; } &&
44913 { ac_try='test -s conftest$ac_exeext'
44914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44915 (eval $ac_try) 2>&5
44917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44918 (exit $ac_status); }; }; then
44919 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44920 echo "${ECHO_T}-lwrap -lnsl" >&6
44922 LIBS="$save_LIBS -lnsl"
44924 echo "$as_me: failed program was:" >&5
44925 sed 's/^/| /' conftest.$ac_ext >&5
44928 echo "$as_me:$LINENO: result: no" >&5
44929 echo "${ECHO_T}no" >&6
44933 rm -f conftest.err conftest.$ac_objext \
44934 conftest$ac_exeext conftest.$ac_ext
44936 rm -f conftest.err conftest.$ac_objext \
44937 conftest$ac_exeext conftest.$ac_ext
44945 if test $have_wrappers = yes ; then
44947 cat >>confdefs.h <<\_ACEOF
44948 #define HAVE_TCPD 1
44952 elif test $ol_enable_wrappers = yes ; then
44953 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44954 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44955 { (exit 1); exit 1; }; }
44957 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44958 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44963 if test $ol_enable_syslog != no ; then
44964 echo "$as_me:$LINENO: checking for openlog" >&5
44965 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44966 if test "${ac_cv_func_openlog+set}" = set; then
44967 echo $ECHO_N "(cached) $ECHO_C" >&6
44969 cat >conftest.$ac_ext <<_ACEOF
44972 cat confdefs.h >>conftest.$ac_ext
44973 cat >>conftest.$ac_ext <<_ACEOF
44974 /* end confdefs.h. */
44975 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44977 #define openlog innocuous_openlog
44979 /* System header to define __stub macros and hopefully few prototypes,
44980 which can conflict with char openlog (); below.
44981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44982 <limits.h> exists even on freestanding compilers. */
44985 # include <limits.h>
44987 # include <assert.h>
44992 /* Override any gcc2 internal prototype to avoid an error. */
44997 /* We use char because int might match the return type of a gcc2
44998 builtin and then its argument prototype would still apply. */
45000 /* The GNU C library defines this for functions which it implements
45001 to always fail with ENOSYS. Some functions are actually named
45002 something starting with __ and the normal name is an alias. */
45003 #if defined (__stub_openlog) || defined (__stub___openlog)
45006 char (*f) () = openlog;
45015 return f != openlog;
45020 rm -f conftest.$ac_objext conftest$ac_exeext
45021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45022 (eval $ac_link) 2>conftest.er1
45024 grep -v '^ *+' conftest.er1 >conftest.err
45026 cat conftest.err >&5
45027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45028 (exit $ac_status); } &&
45029 { ac_try='test -z "$ac_c_werror_flag"
45030 || test ! -s conftest.err'
45031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45032 (eval $ac_try) 2>&5
45034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035 (exit $ac_status); }; } &&
45036 { ac_try='test -s conftest$ac_exeext'
45037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45038 (eval $ac_try) 2>&5
45040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45041 (exit $ac_status); }; }; then
45042 ac_cv_func_openlog=yes
45044 echo "$as_me: failed program was:" >&5
45045 sed 's/^/| /' conftest.$ac_ext >&5
45047 ac_cv_func_openlog=no
45049 rm -f conftest.err conftest.$ac_objext \
45050 conftest$ac_exeext conftest.$ac_ext
45052 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
45053 echo "${ECHO_T}$ac_cv_func_openlog" >&6
45055 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
45056 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
45057 echo "$as_me: error: could not find syslog" >&2;}
45058 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
45060 ol_enable_syslog=$ac_cv_func_openlog
45064 if test $ol_enable_sql != no ; then
45067 for ac_header in sql.h sqlext.h
45069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45071 echo "$as_me:$LINENO: checking for $ac_header" >&5
45072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45074 echo $ECHO_N "(cached) $ECHO_C" >&6
45076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45079 # Is the header compilable?
45080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45082 cat >conftest.$ac_ext <<_ACEOF
45085 cat confdefs.h >>conftest.$ac_ext
45086 cat >>conftest.$ac_ext <<_ACEOF
45087 /* end confdefs.h. */
45088 $ac_includes_default
45089 #include <$ac_header>
45091 rm -f conftest.$ac_objext
45092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45093 (eval $ac_compile) 2>conftest.er1
45095 grep -v '^ *+' conftest.er1 >conftest.err
45097 cat conftest.err >&5
45098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45099 (exit $ac_status); } &&
45100 { ac_try='test -z "$ac_c_werror_flag"
45101 || test ! -s conftest.err'
45102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45103 (eval $ac_try) 2>&5
45105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45106 (exit $ac_status); }; } &&
45107 { ac_try='test -s conftest.$ac_objext'
45108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45109 (eval $ac_try) 2>&5
45111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112 (exit $ac_status); }; }; then
45113 ac_header_compiler=yes
45115 echo "$as_me: failed program was:" >&5
45116 sed 's/^/| /' conftest.$ac_ext >&5
45118 ac_header_compiler=no
45120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45122 echo "${ECHO_T}$ac_header_compiler" >&6
45124 # Is the header present?
45125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45127 cat >conftest.$ac_ext <<_ACEOF
45130 cat confdefs.h >>conftest.$ac_ext
45131 cat >>conftest.$ac_ext <<_ACEOF
45132 /* end confdefs.h. */
45133 #include <$ac_header>
45135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45138 grep -v '^ *+' conftest.er1 >conftest.err
45140 cat conftest.err >&5
45141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45142 (exit $ac_status); } >/dev/null; then
45143 if test -s conftest.err; then
45144 ac_cpp_err=$ac_c_preproc_warn_flag
45145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45152 if test -z "$ac_cpp_err"; then
45153 ac_header_preproc=yes
45155 echo "$as_me: failed program was:" >&5
45156 sed 's/^/| /' conftest.$ac_ext >&5
45158 ac_header_preproc=no
45160 rm -f conftest.err conftest.$ac_ext
45161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45162 echo "${ECHO_T}$ac_header_preproc" >&6
45164 # So? What about this header?
45165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45171 ac_header_preproc=yes
45174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45188 ## ------------------------------------------ ##
45189 ## Report this to the AC_PACKAGE_NAME lists. ##
45190 ## ------------------------------------------ ##
45193 sed "s/^/$as_me: WARNING: /" >&2
45196 echo "$as_me:$LINENO: checking for $ac_header" >&5
45197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45199 echo $ECHO_N "(cached) $ECHO_C" >&6
45201 eval "$as_ac_Header=\$ac_header_preproc"
45203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45208 cat >>confdefs.h <<_ACEOF
45209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45214 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45215 echo "$as_me: error: could not locate SQL headers" >&2;}
45216 { (exit 1); exit 1; }; }
45224 LIBS="$LTHREAD_LIBS"
45226 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45227 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45228 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45229 echo $ECHO_N "(cached) $ECHO_C" >&6
45231 ac_check_lib_save_LIBS=$LIBS
45232 LIBS="-liodbc $LIBS"
45233 cat >conftest.$ac_ext <<_ACEOF
45236 cat confdefs.h >>conftest.$ac_ext
45237 cat >>conftest.$ac_ext <<_ACEOF
45238 /* end confdefs.h. */
45240 /* Override any gcc2 internal prototype to avoid an error. */
45244 /* We use char because int might match the return type of a gcc2
45245 builtin and then its argument prototype would still apply. */
45246 char SQLDriverConnect ();
45250 SQLDriverConnect ();
45255 rm -f conftest.$ac_objext conftest$ac_exeext
45256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45257 (eval $ac_link) 2>conftest.er1
45259 grep -v '^ *+' conftest.er1 >conftest.err
45261 cat conftest.err >&5
45262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45263 (exit $ac_status); } &&
45264 { ac_try='test -z "$ac_c_werror_flag"
45265 || test ! -s conftest.err'
45266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45267 (eval $ac_try) 2>&5
45269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45270 (exit $ac_status); }; } &&
45271 { ac_try='test -s conftest$ac_exeext'
45272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45273 (eval $ac_try) 2>&5
45275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45276 (exit $ac_status); }; }; then
45277 ac_cv_lib_iodbc_SQLDriverConnect=yes
45279 echo "$as_me: failed program was:" >&5
45280 sed 's/^/| /' conftest.$ac_ext >&5
45282 ac_cv_lib_iodbc_SQLDriverConnect=no
45284 rm -f conftest.err conftest.$ac_objext \
45285 conftest$ac_exeext conftest.$ac_ext
45286 LIBS=$ac_check_lib_save_LIBS
45288 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45289 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45290 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45296 if test $have_iodbc = yes ; then
45297 ol_link_sql="-liodbc"
45299 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45300 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45301 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45302 echo $ECHO_N "(cached) $ECHO_C" >&6
45304 ac_check_lib_save_LIBS=$LIBS
45305 LIBS="-lodbc $LIBS"
45306 cat >conftest.$ac_ext <<_ACEOF
45309 cat confdefs.h >>conftest.$ac_ext
45310 cat >>conftest.$ac_ext <<_ACEOF
45311 /* end confdefs.h. */
45313 /* Override any gcc2 internal prototype to avoid an error. */
45317 /* We use char because int might match the return type of a gcc2
45318 builtin and then its argument prototype would still apply. */
45319 char SQLDriverConnect ();
45323 SQLDriverConnect ();
45328 rm -f conftest.$ac_objext conftest$ac_exeext
45329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45330 (eval $ac_link) 2>conftest.er1
45332 grep -v '^ *+' conftest.er1 >conftest.err
45334 cat conftest.err >&5
45335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45336 (exit $ac_status); } &&
45337 { ac_try='test -z "$ac_c_werror_flag"
45338 || test ! -s conftest.err'
45339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45340 (eval $ac_try) 2>&5
45342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45343 (exit $ac_status); }; } &&
45344 { ac_try='test -s conftest$ac_exeext'
45345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45346 (eval $ac_try) 2>&5
45348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45349 (exit $ac_status); }; }; then
45350 ac_cv_lib_odbc_SQLDriverConnect=yes
45352 echo "$as_me: failed program was:" >&5
45353 sed 's/^/| /' conftest.$ac_ext >&5
45355 ac_cv_lib_odbc_SQLDriverConnect=no
45357 rm -f conftest.err conftest.$ac_objext \
45358 conftest$ac_exeext conftest.$ac_ext
45359 LIBS=$ac_check_lib_save_LIBS
45361 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45362 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45363 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45369 if test $have_odbc = yes ; then
45370 ol_link_sql="-lodbc"
45376 if test $ol_link_sql != no ; then
45377 SLAPD_SQL_LIBS="$ol_link_sql"
45379 elif test $ol_enable_sql != auto ; then
45380 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45381 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45382 { (exit 1); exit 1; }; }
45389 if test $ol_with_cyrus_sasl != no ; then
45392 for ac_header in sasl/sasl.h sasl.h
45394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45396 echo "$as_me:$LINENO: checking for $ac_header" >&5
45397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45399 echo $ECHO_N "(cached) $ECHO_C" >&6
45401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45404 # Is the header compilable?
45405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45407 cat >conftest.$ac_ext <<_ACEOF
45410 cat confdefs.h >>conftest.$ac_ext
45411 cat >>conftest.$ac_ext <<_ACEOF
45412 /* end confdefs.h. */
45413 $ac_includes_default
45414 #include <$ac_header>
45416 rm -f conftest.$ac_objext
45417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45418 (eval $ac_compile) 2>conftest.er1
45420 grep -v '^ *+' conftest.er1 >conftest.err
45422 cat conftest.err >&5
45423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45424 (exit $ac_status); } &&
45425 { ac_try='test -z "$ac_c_werror_flag"
45426 || test ! -s conftest.err'
45427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45428 (eval $ac_try) 2>&5
45430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45431 (exit $ac_status); }; } &&
45432 { ac_try='test -s conftest.$ac_objext'
45433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45434 (eval $ac_try) 2>&5
45436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45437 (exit $ac_status); }; }; then
45438 ac_header_compiler=yes
45440 echo "$as_me: failed program was:" >&5
45441 sed 's/^/| /' conftest.$ac_ext >&5
45443 ac_header_compiler=no
45445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45447 echo "${ECHO_T}$ac_header_compiler" >&6
45449 # Is the header present?
45450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45452 cat >conftest.$ac_ext <<_ACEOF
45455 cat confdefs.h >>conftest.$ac_ext
45456 cat >>conftest.$ac_ext <<_ACEOF
45457 /* end confdefs.h. */
45458 #include <$ac_header>
45460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45463 grep -v '^ *+' conftest.er1 >conftest.err
45465 cat conftest.err >&5
45466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45467 (exit $ac_status); } >/dev/null; then
45468 if test -s conftest.err; then
45469 ac_cpp_err=$ac_c_preproc_warn_flag
45470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45477 if test -z "$ac_cpp_err"; then
45478 ac_header_preproc=yes
45480 echo "$as_me: failed program was:" >&5
45481 sed 's/^/| /' conftest.$ac_ext >&5
45483 ac_header_preproc=no
45485 rm -f conftest.err conftest.$ac_ext
45486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45487 echo "${ECHO_T}$ac_header_preproc" >&6
45489 # So? What about this header?
45490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45496 ac_header_preproc=yes
45499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45513 ## ------------------------------------------ ##
45514 ## Report this to the AC_PACKAGE_NAME lists. ##
45515 ## ------------------------------------------ ##
45518 sed "s/^/$as_me: WARNING: /" >&2
45521 echo "$as_me:$LINENO: checking for $ac_header" >&5
45522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45524 echo $ECHO_N "(cached) $ECHO_C" >&6
45526 eval "$as_ac_Header=\$ac_header_preproc"
45528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45533 cat >>confdefs.h <<_ACEOF
45534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45542 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45543 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45544 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45545 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45546 echo $ECHO_N "(cached) $ECHO_C" >&6
45548 ac_check_lib_save_LIBS=$LIBS
45549 LIBS="-lsasl2 $LIBS"
45550 cat >conftest.$ac_ext <<_ACEOF
45553 cat confdefs.h >>conftest.$ac_ext
45554 cat >>conftest.$ac_ext <<_ACEOF
45555 /* end confdefs.h. */
45557 /* Override any gcc2 internal prototype to avoid an error. */
45561 /* We use char because int might match the return type of a gcc2
45562 builtin and then its argument prototype would still apply. */
45563 char sasl_client_init ();
45567 sasl_client_init ();
45572 rm -f conftest.$ac_objext conftest$ac_exeext
45573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45574 (eval $ac_link) 2>conftest.er1
45576 grep -v '^ *+' conftest.er1 >conftest.err
45578 cat conftest.err >&5
45579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45580 (exit $ac_status); } &&
45581 { ac_try='test -z "$ac_c_werror_flag"
45582 || test ! -s conftest.err'
45583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45584 (eval $ac_try) 2>&5
45586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45587 (exit $ac_status); }; } &&
45588 { ac_try='test -s conftest$ac_exeext'
45589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45590 (eval $ac_try) 2>&5
45592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45593 (exit $ac_status); }; }; then
45594 ac_cv_lib_sasl2_sasl_client_init=yes
45596 echo "$as_me: failed program was:" >&5
45597 sed 's/^/| /' conftest.$ac_ext >&5
45599 ac_cv_lib_sasl2_sasl_client_init=no
45601 rm -f conftest.err conftest.$ac_objext \
45602 conftest$ac_exeext conftest.$ac_ext
45603 LIBS=$ac_check_lib_save_LIBS
45605 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45606 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45607 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45608 ol_link_sasl="-lsasl2"
45610 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45611 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45612 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45613 echo $ECHO_N "(cached) $ECHO_C" >&6
45615 ac_check_lib_save_LIBS=$LIBS
45616 LIBS="-lsasl $LIBS"
45617 cat >conftest.$ac_ext <<_ACEOF
45620 cat confdefs.h >>conftest.$ac_ext
45621 cat >>conftest.$ac_ext <<_ACEOF
45622 /* end confdefs.h. */
45624 /* Override any gcc2 internal prototype to avoid an error. */
45628 /* We use char because int might match the return type of a gcc2
45629 builtin and then its argument prototype would still apply. */
45630 char sasl_client_init ();
45634 sasl_client_init ();
45639 rm -f conftest.$ac_objext conftest$ac_exeext
45640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45641 (eval $ac_link) 2>conftest.er1
45643 grep -v '^ *+' conftest.er1 >conftest.err
45645 cat conftest.err >&5
45646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45647 (exit $ac_status); } &&
45648 { ac_try='test -z "$ac_c_werror_flag"
45649 || test ! -s conftest.err'
45650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45651 (eval $ac_try) 2>&5
45653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45654 (exit $ac_status); }; } &&
45655 { ac_try='test -s conftest$ac_exeext'
45656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45657 (eval $ac_try) 2>&5
45659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45660 (exit $ac_status); }; }; then
45661 ac_cv_lib_sasl_sasl_client_init=yes
45663 echo "$as_me: failed program was:" >&5
45664 sed 's/^/| /' conftest.$ac_ext >&5
45666 ac_cv_lib_sasl_sasl_client_init=no
45668 rm -f conftest.err conftest.$ac_objext \
45669 conftest$ac_exeext conftest.$ac_ext
45670 LIBS=$ac_check_lib_save_LIBS
45672 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45673 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45674 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45675 ol_link_sasl="-lsasl"
45682 if test $ol_link_sasl = no ; then
45683 if test $ol_with_cyrus_sasl != auto ; then
45684 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45685 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45686 { (exit 1); exit 1; }; }
45688 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45689 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45690 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45691 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45692 if test $ol_link_tls = no ; then
45693 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45694 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45698 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45699 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45700 if test "${ol_cv_sasl_compat+set}" = set; then
45701 echo $ECHO_N "(cached) $ECHO_C" >&6
45704 cat >conftest.$ac_ext <<_ACEOF
45707 cat confdefs.h >>conftest.$ac_ext
45708 cat >>conftest.$ac_ext <<_ACEOF
45709 /* end confdefs.h. */
45711 #ifdef HAVE_SASL_SASL_H
45712 #include <sasl/sasl.h>
45717 /* Require 2.1.15+ */
45718 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45719 char *__sasl_compat = "2.2+ or better okay (we guess)";
45720 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45721 && SASL_VERSION_STEP >=15
45722 char *__sasl_compat = "2.1.15+ or better okay";
45726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45727 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45728 ol_cv_sasl_compat=yes
45730 ol_cv_sasl_compat=no
45735 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45736 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45738 if test $ol_cv_sasl_compat = no ; then
45740 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45741 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45742 { (exit 1); exit 1; }; }
45746 cat >>confdefs.h <<\_ACEOF
45747 #define HAVE_CYRUS_SASL 1
45750 SASL_LIBS="$ol_link_sasl"
45751 if test $ol_enable_spasswd != no ; then
45752 ol_link_spasswd=yes
45755 ac_save_LIBS="$LIBS"
45756 LIBS="$LIBS $ol_link_sasl"
45757 echo "$as_me:$LINENO: checking for sasl_version" >&5
45758 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45759 if test "${ac_cv_func_sasl_version+set}" = set; then
45760 echo $ECHO_N "(cached) $ECHO_C" >&6
45762 cat >conftest.$ac_ext <<_ACEOF
45765 cat confdefs.h >>conftest.$ac_ext
45766 cat >>conftest.$ac_ext <<_ACEOF
45767 /* end confdefs.h. */
45768 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45770 #define sasl_version innocuous_sasl_version
45772 /* System header to define __stub macros and hopefully few prototypes,
45773 which can conflict with char sasl_version (); below.
45774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45775 <limits.h> exists even on freestanding compilers. */
45778 # include <limits.h>
45780 # include <assert.h>
45783 #undef sasl_version
45785 /* Override any gcc2 internal prototype to avoid an error. */
45790 /* We use char because int might match the return type of a gcc2
45791 builtin and then its argument prototype would still apply. */
45792 char sasl_version ();
45793 /* The GNU C library defines this for functions which it implements
45794 to always fail with ENOSYS. Some functions are actually named
45795 something starting with __ and the normal name is an alias. */
45796 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45799 char (*f) () = sasl_version;
45808 return f != sasl_version;
45813 rm -f conftest.$ac_objext conftest$ac_exeext
45814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45815 (eval $ac_link) 2>conftest.er1
45817 grep -v '^ *+' conftest.er1 >conftest.err
45819 cat conftest.err >&5
45820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45821 (exit $ac_status); } &&
45822 { ac_try='test -z "$ac_c_werror_flag"
45823 || test ! -s conftest.err'
45824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45825 (eval $ac_try) 2>&5
45827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45828 (exit $ac_status); }; } &&
45829 { ac_try='test -s conftest$ac_exeext'
45830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45831 (eval $ac_try) 2>&5
45833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45834 (exit $ac_status); }; }; then
45835 ac_cv_func_sasl_version=yes
45837 echo "$as_me: failed program was:" >&5
45838 sed 's/^/| /' conftest.$ac_ext >&5
45840 ac_cv_func_sasl_version=no
45842 rm -f conftest.err conftest.$ac_objext \
45843 conftest$ac_exeext conftest.$ac_ext
45845 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45846 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45847 if test $ac_cv_func_sasl_version = yes; then
45849 cat >>confdefs.h <<\_ACEOF
45850 #define HAVE_SASL_VERSION 1
45855 LIBS="$ac_save_LIBS"
45861 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45862 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45863 if test $ol_link_tls = no ; then
45864 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45865 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45869 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45871 if test -r /dev/urandom ; then
45872 dev="/dev/urandom";
45873 elif test -r /idev/urandom ; then
45874 dev="/idev/urandom";
45875 elif test -r /dev/srandom ; then
45876 dev="/dev/srandom";
45877 elif test -r /dev/random ; then
45879 elif test -r /idev/random ; then
45880 dev="/idev/random";
45883 if test $dev != no ; then
45885 cat >>confdefs.h <<_ACEOF
45886 #define URANDOM_DEVICE "$dev"
45893 if test $ol_with_fetch != no ; then
45895 LIBS="-lfetch -lcom_err $LIBS"
45896 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45897 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45898 if test "${ol_cv_lib_fetch+set}" = set; then
45899 echo $ECHO_N "(cached) $ECHO_C" >&6
45902 cat >conftest.$ac_ext <<_ACEOF
45905 cat confdefs.h >>conftest.$ac_ext
45906 cat >>conftest.$ac_ext <<_ACEOF
45907 /* end confdefs.h. */
45909 #include <sys/param.h>
45915 struct url *u = fetchParseURL("file:///");
45920 rm -f conftest.$ac_objext conftest$ac_exeext
45921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45922 (eval $ac_link) 2>conftest.er1
45924 grep -v '^ *+' conftest.er1 >conftest.err
45926 cat conftest.err >&5
45927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45928 (exit $ac_status); } &&
45929 { ac_try='test -z "$ac_c_werror_flag"
45930 || test ! -s conftest.err'
45931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45932 (eval $ac_try) 2>&5
45934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45935 (exit $ac_status); }; } &&
45936 { ac_try='test -s conftest$ac_exeext'
45937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45938 (eval $ac_try) 2>&5
45940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45941 (exit $ac_status); }; }; then
45942 ol_cv_lib_fetch=yes
45944 echo "$as_me: failed program was:" >&5
45945 sed 's/^/| /' conftest.$ac_ext >&5
45949 rm -f conftest.err conftest.$ac_objext \
45950 conftest$ac_exeext conftest.$ac_ext
45952 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45953 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45955 if test $ol_cv_lib_fetch != no ; then
45956 ol_link_fetch="-lfetch -lcom_err"
45958 cat >>confdefs.h <<\_ACEOF
45959 #define HAVE_FETCH 1
45965 if test $ol_cv_lib_fetch != no ; then
45966 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45967 ol_link_fetch=freebsd
45969 elif test $ol_with_fetch != auto ; then
45970 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45971 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45972 { (exit 1); exit 1; }; }
45976 if test $ol_enable_crypt != no ; then
45978 LIBS="$TLS_LIBS $LIBS"
45980 echo "$as_me:$LINENO: checking for crypt" >&5
45981 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45982 if test "${ac_cv_func_crypt+set}" = set; then
45983 echo $ECHO_N "(cached) $ECHO_C" >&6
45985 cat >conftest.$ac_ext <<_ACEOF
45988 cat confdefs.h >>conftest.$ac_ext
45989 cat >>conftest.$ac_ext <<_ACEOF
45990 /* end confdefs.h. */
45991 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45993 #define crypt innocuous_crypt
45995 /* System header to define __stub macros and hopefully few prototypes,
45996 which can conflict with char crypt (); below.
45997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45998 <limits.h> exists even on freestanding compilers. */
46001 # include <limits.h>
46003 # include <assert.h>
46008 /* Override any gcc2 internal prototype to avoid an error. */
46013 /* We use char because int might match the return type of a gcc2
46014 builtin and then its argument prototype would still apply. */
46016 /* The GNU C library defines this for functions which it implements
46017 to always fail with ENOSYS. Some functions are actually named
46018 something starting with __ and the normal name is an alias. */
46019 #if defined (__stub_crypt) || defined (__stub___crypt)
46022 char (*f) () = crypt;
46036 rm -f conftest.$ac_objext conftest$ac_exeext
46037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46038 (eval $ac_link) 2>conftest.er1
46040 grep -v '^ *+' conftest.er1 >conftest.err
46042 cat conftest.err >&5
46043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46044 (exit $ac_status); } &&
46045 { ac_try='test -z "$ac_c_werror_flag"
46046 || test ! -s conftest.err'
46047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46048 (eval $ac_try) 2>&5
46050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46051 (exit $ac_status); }; } &&
46052 { ac_try='test -s conftest$ac_exeext'
46053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46054 (eval $ac_try) 2>&5
46056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46057 (exit $ac_status); }; }; then
46058 ac_cv_func_crypt=yes
46060 echo "$as_me: failed program was:" >&5
46061 sed 's/^/| /' conftest.$ac_ext >&5
46063 ac_cv_func_crypt=no
46065 rm -f conftest.err conftest.$ac_objext \
46066 conftest$ac_exeext conftest.$ac_ext
46068 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
46069 echo "${ECHO_T}$ac_cv_func_crypt" >&6
46070 if test $ac_cv_func_crypt = yes; then
46075 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
46076 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
46077 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
46078 echo $ECHO_N "(cached) $ECHO_C" >&6
46080 ac_check_lib_save_LIBS=$LIBS
46081 LIBS="-lcrypt $LIBS"
46082 cat >conftest.$ac_ext <<_ACEOF
46085 cat confdefs.h >>conftest.$ac_ext
46086 cat >>conftest.$ac_ext <<_ACEOF
46087 /* end confdefs.h. */
46089 /* Override any gcc2 internal prototype to avoid an error. */
46093 /* We use char because int might match the return type of a gcc2
46094 builtin and then its argument prototype would still apply. */
46104 rm -f conftest.$ac_objext conftest$ac_exeext
46105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46106 (eval $ac_link) 2>conftest.er1
46108 grep -v '^ *+' conftest.er1 >conftest.err
46110 cat conftest.err >&5
46111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112 (exit $ac_status); } &&
46113 { ac_try='test -z "$ac_c_werror_flag"
46114 || test ! -s conftest.err'
46115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46116 (eval $ac_try) 2>&5
46118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46119 (exit $ac_status); }; } &&
46120 { ac_try='test -s conftest$ac_exeext'
46121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46122 (eval $ac_try) 2>&5
46124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46125 (exit $ac_status); }; }; then
46126 ac_cv_lib_crypt_crypt=yes
46128 echo "$as_me: failed program was:" >&5
46129 sed 's/^/| /' conftest.$ac_ext >&5
46131 ac_cv_lib_crypt_crypt=no
46133 rm -f conftest.err conftest.$ac_objext \
46134 conftest$ac_exeext conftest.$ac_ext
46135 LIBS=$ac_check_lib_save_LIBS
46137 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
46138 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
46139 if test $ac_cv_lib_crypt_crypt = yes; then
46140 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46151 if test $have_crypt = yes ; then
46153 cat >>confdefs.h <<\_ACEOF
46154 #define HAVE_CRYPT 1
46158 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46159 echo "$as_me: WARNING: could not find crypt" >&2;}
46160 if test $ol_enable_crypt = yes ; then
46161 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46162 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46163 { (exit 1); exit 1; }; }
46166 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46167 echo "$as_me: WARNING: disabling crypt support" >&2;}
46172 if test $ol_enable_proctitle != no ; then
46173 echo "$as_me:$LINENO: checking for setproctitle" >&5
46174 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46175 if test "${ac_cv_func_setproctitle+set}" = set; then
46176 echo $ECHO_N "(cached) $ECHO_C" >&6
46178 cat >conftest.$ac_ext <<_ACEOF
46181 cat confdefs.h >>conftest.$ac_ext
46182 cat >>conftest.$ac_ext <<_ACEOF
46183 /* end confdefs.h. */
46184 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46186 #define setproctitle innocuous_setproctitle
46188 /* System header to define __stub macros and hopefully few prototypes,
46189 which can conflict with char setproctitle (); below.
46190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46191 <limits.h> exists even on freestanding compilers. */
46194 # include <limits.h>
46196 # include <assert.h>
46199 #undef setproctitle
46201 /* Override any gcc2 internal prototype to avoid an error. */
46206 /* We use char because int might match the return type of a gcc2
46207 builtin and then its argument prototype would still apply. */
46208 char setproctitle ();
46209 /* The GNU C library defines this for functions which it implements
46210 to always fail with ENOSYS. Some functions are actually named
46211 something starting with __ and the normal name is an alias. */
46212 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46215 char (*f) () = setproctitle;
46224 return f != setproctitle;
46229 rm -f conftest.$ac_objext conftest$ac_exeext
46230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46231 (eval $ac_link) 2>conftest.er1
46233 grep -v '^ *+' conftest.er1 >conftest.err
46235 cat conftest.err >&5
46236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46237 (exit $ac_status); } &&
46238 { ac_try='test -z "$ac_c_werror_flag"
46239 || test ! -s conftest.err'
46240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46241 (eval $ac_try) 2>&5
46243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46244 (exit $ac_status); }; } &&
46245 { ac_try='test -s conftest$ac_exeext'
46246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46247 (eval $ac_try) 2>&5
46249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46250 (exit $ac_status); }; }; then
46251 ac_cv_func_setproctitle=yes
46253 echo "$as_me: failed program was:" >&5
46254 sed 's/^/| /' conftest.$ac_ext >&5
46256 ac_cv_func_setproctitle=no
46258 rm -f conftest.err conftest.$ac_objext \
46259 conftest$ac_exeext conftest.$ac_ext
46261 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46262 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46263 if test $ac_cv_func_setproctitle = yes; then
46264 have_setproctitle=yes
46267 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46268 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46269 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46270 echo $ECHO_N "(cached) $ECHO_C" >&6
46272 ac_check_lib_save_LIBS=$LIBS
46273 LIBS="-lutil $LIBS"
46274 cat >conftest.$ac_ext <<_ACEOF
46277 cat confdefs.h >>conftest.$ac_ext
46278 cat >>conftest.$ac_ext <<_ACEOF
46279 /* end confdefs.h. */
46281 /* Override any gcc2 internal prototype to avoid an error. */
46285 /* We use char because int might match the return type of a gcc2
46286 builtin and then its argument prototype would still apply. */
46287 char setproctitle ();
46296 rm -f conftest.$ac_objext conftest$ac_exeext
46297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46298 (eval $ac_link) 2>conftest.er1
46300 grep -v '^ *+' conftest.er1 >conftest.err
46302 cat conftest.err >&5
46303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304 (exit $ac_status); } &&
46305 { ac_try='test -z "$ac_c_werror_flag"
46306 || test ! -s conftest.err'
46307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46308 (eval $ac_try) 2>&5
46310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46311 (exit $ac_status); }; } &&
46312 { ac_try='test -s conftest$ac_exeext'
46313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46314 (eval $ac_try) 2>&5
46316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46317 (exit $ac_status); }; }; then
46318 ac_cv_lib_util_setproctitle=yes
46320 echo "$as_me: failed program was:" >&5
46321 sed 's/^/| /' conftest.$ac_ext >&5
46323 ac_cv_lib_util_setproctitle=no
46325 rm -f conftest.err conftest.$ac_objext \
46326 conftest$ac_exeext conftest.$ac_ext
46327 LIBS=$ac_check_lib_save_LIBS
46329 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46330 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46331 if test $ac_cv_lib_util_setproctitle = yes; then
46332 have_setproctitle=yes
46333 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46335 have_setproctitle=no
46337 "setproctitle.$ac_objext" | \
46338 *" setproctitle.$ac_objext" | \
46339 "setproctitle.$ac_objext "* | \
46340 *" setproctitle.$ac_objext "* ) ;;
46341 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46344 LIBSRCS="$LIBSRCS setproctitle.c"
46350 if test $have_setproctitle = yes ; then
46352 cat >>confdefs.h <<\_ACEOF
46353 #define HAVE_SETPROCTITLE 1
46359 if test $ol_enable_slp != no ; then
46361 for ac_header in slp.h
46363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46365 echo "$as_me:$LINENO: checking for $ac_header" >&5
46366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46368 echo $ECHO_N "(cached) $ECHO_C" >&6
46370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46373 # Is the header compilable?
46374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46376 cat >conftest.$ac_ext <<_ACEOF
46379 cat confdefs.h >>conftest.$ac_ext
46380 cat >>conftest.$ac_ext <<_ACEOF
46381 /* end confdefs.h. */
46382 $ac_includes_default
46383 #include <$ac_header>
46385 rm -f conftest.$ac_objext
46386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46387 (eval $ac_compile) 2>conftest.er1
46389 grep -v '^ *+' conftest.er1 >conftest.err
46391 cat conftest.err >&5
46392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46393 (exit $ac_status); } &&
46394 { ac_try='test -z "$ac_c_werror_flag"
46395 || test ! -s conftest.err'
46396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46397 (eval $ac_try) 2>&5
46399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46400 (exit $ac_status); }; } &&
46401 { ac_try='test -s conftest.$ac_objext'
46402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46403 (eval $ac_try) 2>&5
46405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46406 (exit $ac_status); }; }; then
46407 ac_header_compiler=yes
46409 echo "$as_me: failed program was:" >&5
46410 sed 's/^/| /' conftest.$ac_ext >&5
46412 ac_header_compiler=no
46414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46416 echo "${ECHO_T}$ac_header_compiler" >&6
46418 # Is the header present?
46419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46421 cat >conftest.$ac_ext <<_ACEOF
46424 cat confdefs.h >>conftest.$ac_ext
46425 cat >>conftest.$ac_ext <<_ACEOF
46426 /* end confdefs.h. */
46427 #include <$ac_header>
46429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46432 grep -v '^ *+' conftest.er1 >conftest.err
46434 cat conftest.err >&5
46435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46436 (exit $ac_status); } >/dev/null; then
46437 if test -s conftest.err; then
46438 ac_cpp_err=$ac_c_preproc_warn_flag
46439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46446 if test -z "$ac_cpp_err"; then
46447 ac_header_preproc=yes
46449 echo "$as_me: failed program was:" >&5
46450 sed 's/^/| /' conftest.$ac_ext >&5
46452 ac_header_preproc=no
46454 rm -f conftest.err conftest.$ac_ext
46455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46456 echo "${ECHO_T}$ac_header_preproc" >&6
46458 # So? What about this header?
46459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46465 ac_header_preproc=yes
46468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46482 ## ------------------------------------------ ##
46483 ## Report this to the AC_PACKAGE_NAME lists. ##
46484 ## ------------------------------------------ ##
46487 sed "s/^/$as_me: WARNING: /" >&2
46490 echo "$as_me:$LINENO: checking for $ac_header" >&5
46491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46493 echo $ECHO_N "(cached) $ECHO_C" >&6
46495 eval "$as_ac_Header=\$ac_header_preproc"
46497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46502 cat >>confdefs.h <<_ACEOF
46503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46511 if test $ac_cv_header_slp_h = yes ; then
46512 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46513 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46514 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46515 echo $ECHO_N "(cached) $ECHO_C" >&6
46517 ac_check_lib_save_LIBS=$LIBS
46519 cat >conftest.$ac_ext <<_ACEOF
46522 cat confdefs.h >>conftest.$ac_ext
46523 cat >>conftest.$ac_ext <<_ACEOF
46524 /* end confdefs.h. */
46526 /* Override any gcc2 internal prototype to avoid an error. */
46530 /* We use char because int might match the return type of a gcc2
46531 builtin and then its argument prototype would still apply. */
46541 rm -f conftest.$ac_objext conftest$ac_exeext
46542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46543 (eval $ac_link) 2>conftest.er1
46545 grep -v '^ *+' conftest.er1 >conftest.err
46547 cat conftest.err >&5
46548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46549 (exit $ac_status); } &&
46550 { ac_try='test -z "$ac_c_werror_flag"
46551 || test ! -s conftest.err'
46552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46553 (eval $ac_try) 2>&5
46555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46556 (exit $ac_status); }; } &&
46557 { ac_try='test -s conftest$ac_exeext'
46558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46559 (eval $ac_try) 2>&5
46561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46562 (exit $ac_status); }; }; then
46563 ac_cv_lib_slp_SLPOpen=yes
46565 echo "$as_me: failed program was:" >&5
46566 sed 's/^/| /' conftest.$ac_ext >&5
46568 ac_cv_lib_slp_SLPOpen=no
46570 rm -f conftest.err conftest.$ac_objext \
46571 conftest$ac_exeext conftest.$ac_ext
46572 LIBS=$ac_check_lib_save_LIBS
46574 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46575 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46576 if test $ac_cv_lib_slp_SLPOpen = yes; then
46582 if test $have_slp = yes ; then
46584 cat >>confdefs.h <<\_ACEOF
46588 SLAPD_SLP_LIBS=-lslp
46591 elif test $ol_enable_slp = yes ; then
46592 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46593 echo "$as_me: error: SLP not found" >&2;}
46594 { (exit 1); exit 1; }; }
46598 if test "$ol_with_multiple_precision" != "no" ; then
46604 for ac_header in openssl/bn.h bn.h
46606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46608 echo "$as_me:$LINENO: checking for $ac_header" >&5
46609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46611 echo $ECHO_N "(cached) $ECHO_C" >&6
46613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46616 # Is the header compilable?
46617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46619 cat >conftest.$ac_ext <<_ACEOF
46622 cat confdefs.h >>conftest.$ac_ext
46623 cat >>conftest.$ac_ext <<_ACEOF
46624 /* end confdefs.h. */
46625 $ac_includes_default
46626 #include <$ac_header>
46628 rm -f conftest.$ac_objext
46629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46630 (eval $ac_compile) 2>conftest.er1
46632 grep -v '^ *+' conftest.er1 >conftest.err
46634 cat conftest.err >&5
46635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46636 (exit $ac_status); } &&
46637 { ac_try='test -z "$ac_c_werror_flag"
46638 || test ! -s conftest.err'
46639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46640 (eval $ac_try) 2>&5
46642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46643 (exit $ac_status); }; } &&
46644 { ac_try='test -s conftest.$ac_objext'
46645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46646 (eval $ac_try) 2>&5
46648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46649 (exit $ac_status); }; }; then
46650 ac_header_compiler=yes
46652 echo "$as_me: failed program was:" >&5
46653 sed 's/^/| /' conftest.$ac_ext >&5
46655 ac_header_compiler=no
46657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46659 echo "${ECHO_T}$ac_header_compiler" >&6
46661 # Is the header present?
46662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46664 cat >conftest.$ac_ext <<_ACEOF
46667 cat confdefs.h >>conftest.$ac_ext
46668 cat >>conftest.$ac_ext <<_ACEOF
46669 /* end confdefs.h. */
46670 #include <$ac_header>
46672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46675 grep -v '^ *+' conftest.er1 >conftest.err
46677 cat conftest.err >&5
46678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46679 (exit $ac_status); } >/dev/null; then
46680 if test -s conftest.err; then
46681 ac_cpp_err=$ac_c_preproc_warn_flag
46682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46689 if test -z "$ac_cpp_err"; then
46690 ac_header_preproc=yes
46692 echo "$as_me: failed program was:" >&5
46693 sed 's/^/| /' conftest.$ac_ext >&5
46695 ac_header_preproc=no
46697 rm -f conftest.err conftest.$ac_ext
46698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46699 echo "${ECHO_T}$ac_header_preproc" >&6
46701 # So? What about this header?
46702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46708 ac_header_preproc=yes
46711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46725 ## ------------------------------------------ ##
46726 ## Report this to the AC_PACKAGE_NAME lists. ##
46727 ## ------------------------------------------ ##
46730 sed "s/^/$as_me: WARNING: /" >&2
46733 echo "$as_me:$LINENO: checking for $ac_header" >&5
46734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46736 echo $ECHO_N "(cached) $ECHO_C" >&6
46738 eval "$as_ac_Header=\$ac_header_preproc"
46740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46745 cat >>confdefs.h <<_ACEOF
46746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46755 for ac_header in openssl/crypto.h crypto.h
46757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46759 echo "$as_me:$LINENO: checking for $ac_header" >&5
46760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46762 echo $ECHO_N "(cached) $ECHO_C" >&6
46764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46767 # Is the header compilable?
46768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46770 cat >conftest.$ac_ext <<_ACEOF
46773 cat confdefs.h >>conftest.$ac_ext
46774 cat >>conftest.$ac_ext <<_ACEOF
46775 /* end confdefs.h. */
46776 $ac_includes_default
46777 #include <$ac_header>
46779 rm -f conftest.$ac_objext
46780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46781 (eval $ac_compile) 2>conftest.er1
46783 grep -v '^ *+' conftest.er1 >conftest.err
46785 cat conftest.err >&5
46786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46787 (exit $ac_status); } &&
46788 { ac_try='test -z "$ac_c_werror_flag"
46789 || test ! -s conftest.err'
46790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46791 (eval $ac_try) 2>&5
46793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46794 (exit $ac_status); }; } &&
46795 { ac_try='test -s conftest.$ac_objext'
46796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46797 (eval $ac_try) 2>&5
46799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46800 (exit $ac_status); }; }; then
46801 ac_header_compiler=yes
46803 echo "$as_me: failed program was:" >&5
46804 sed 's/^/| /' conftest.$ac_ext >&5
46806 ac_header_compiler=no
46808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46810 echo "${ECHO_T}$ac_header_compiler" >&6
46812 # Is the header present?
46813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46815 cat >conftest.$ac_ext <<_ACEOF
46818 cat confdefs.h >>conftest.$ac_ext
46819 cat >>conftest.$ac_ext <<_ACEOF
46820 /* end confdefs.h. */
46821 #include <$ac_header>
46823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46826 grep -v '^ *+' conftest.er1 >conftest.err
46828 cat conftest.err >&5
46829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46830 (exit $ac_status); } >/dev/null; then
46831 if test -s conftest.err; then
46832 ac_cpp_err=$ac_c_preproc_warn_flag
46833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46840 if test -z "$ac_cpp_err"; then
46841 ac_header_preproc=yes
46843 echo "$as_me: failed program was:" >&5
46844 sed 's/^/| /' conftest.$ac_ext >&5
46846 ac_header_preproc=no
46848 rm -f conftest.err conftest.$ac_ext
46849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46850 echo "${ECHO_T}$ac_header_preproc" >&6
46852 # So? What about this header?
46853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46859 ac_header_preproc=yes
46862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46876 ## ------------------------------------------ ##
46877 ## Report this to the AC_PACKAGE_NAME lists. ##
46878 ## ------------------------------------------ ##
46881 sed "s/^/$as_me: WARNING: /" >&2
46884 echo "$as_me:$LINENO: checking for $ac_header" >&5
46885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46887 echo $ECHO_N "(cached) $ECHO_C" >&6
46889 eval "$as_ac_Header=\$ac_header_preproc"
46891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46896 cat >>confdefs.h <<_ACEOF
46897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46905 for ac_header in gmp.h
46907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46909 echo "$as_me:$LINENO: checking for $ac_header" >&5
46910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46912 echo $ECHO_N "(cached) $ECHO_C" >&6
46914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46917 # Is the header compilable?
46918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46920 cat >conftest.$ac_ext <<_ACEOF
46923 cat confdefs.h >>conftest.$ac_ext
46924 cat >>conftest.$ac_ext <<_ACEOF
46925 /* end confdefs.h. */
46926 $ac_includes_default
46927 #include <$ac_header>
46929 rm -f conftest.$ac_objext
46930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46931 (eval $ac_compile) 2>conftest.er1
46933 grep -v '^ *+' conftest.er1 >conftest.err
46935 cat conftest.err >&5
46936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46937 (exit $ac_status); } &&
46938 { ac_try='test -z "$ac_c_werror_flag"
46939 || test ! -s conftest.err'
46940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46941 (eval $ac_try) 2>&5
46943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46944 (exit $ac_status); }; } &&
46945 { ac_try='test -s conftest.$ac_objext'
46946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46947 (eval $ac_try) 2>&5
46949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46950 (exit $ac_status); }; }; then
46951 ac_header_compiler=yes
46953 echo "$as_me: failed program was:" >&5
46954 sed 's/^/| /' conftest.$ac_ext >&5
46956 ac_header_compiler=no
46958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46960 echo "${ECHO_T}$ac_header_compiler" >&6
46962 # Is the header present?
46963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46965 cat >conftest.$ac_ext <<_ACEOF
46968 cat confdefs.h >>conftest.$ac_ext
46969 cat >>conftest.$ac_ext <<_ACEOF
46970 /* end confdefs.h. */
46971 #include <$ac_header>
46973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46976 grep -v '^ *+' conftest.er1 >conftest.err
46978 cat conftest.err >&5
46979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980 (exit $ac_status); } >/dev/null; then
46981 if test -s conftest.err; then
46982 ac_cpp_err=$ac_c_preproc_warn_flag
46983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46990 if test -z "$ac_cpp_err"; then
46991 ac_header_preproc=yes
46993 echo "$as_me: failed program was:" >&5
46994 sed 's/^/| /' conftest.$ac_ext >&5
46996 ac_header_preproc=no
46998 rm -f conftest.err conftest.$ac_ext
46999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47000 echo "${ECHO_T}$ac_header_preproc" >&6
47002 # So? What about this header?
47003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47009 ac_header_preproc=yes
47012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47026 ## ------------------------------------------ ##
47027 ## Report this to the AC_PACKAGE_NAME lists. ##
47028 ## ------------------------------------------ ##
47031 sed "s/^/$as_me: WARNING: /" >&2
47034 echo "$as_me:$LINENO: checking for $ac_header" >&5
47035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47037 echo $ECHO_N "(cached) $ECHO_C" >&6
47039 eval "$as_ac_Header=\$ac_header_preproc"
47041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47046 cat >>confdefs.h <<_ACEOF
47047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47055 if test "$ol_with_tls" = "found" ; then
47057 ol_have_crypto_h=no
47059 if test "$ac_cv_header_openssl_bn_h" = "yes" \
47060 -o "$ac_cv_header_bn_h" = "yes" ; then
47064 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
47065 -o "$ac_cv_header_crypto_h" = "yes" ; then
47066 ol_have_crypto_h=yes
47069 if test "$ol_have_bn_h" = "yes" \
47070 -a "$ol_have_crypto_h" = "yes" ; then
47075 if test $ac_cv_header_gmp_h = yes ; then
47076 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
47077 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
47078 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
47079 echo $ECHO_N "(cached) $ECHO_C" >&6
47081 ac_check_lib_save_LIBS=$LIBS
47083 cat >conftest.$ac_ext <<_ACEOF
47086 cat confdefs.h >>conftest.$ac_ext
47087 cat >>conftest.$ac_ext <<_ACEOF
47088 /* end confdefs.h. */
47090 /* Override any gcc2 internal prototype to avoid an error. */
47094 /* We use char because int might match the return type of a gcc2
47095 builtin and then its argument prototype would still apply. */
47096 char __gmpz_add_ui ();
47105 rm -f conftest.$ac_objext conftest$ac_exeext
47106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47107 (eval $ac_link) 2>conftest.er1
47109 grep -v '^ *+' conftest.er1 >conftest.err
47111 cat conftest.err >&5
47112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47113 (exit $ac_status); } &&
47114 { ac_try='test -z "$ac_c_werror_flag"
47115 || test ! -s conftest.err'
47116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47117 (eval $ac_try) 2>&5
47119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47120 (exit $ac_status); }; } &&
47121 { ac_try='test -s conftest$ac_exeext'
47122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47123 (eval $ac_try) 2>&5
47125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47126 (exit $ac_status); }; }; then
47127 ac_cv_lib_gmp___gmpz_add_ui=yes
47129 echo "$as_me: failed program was:" >&5
47130 sed 's/^/| /' conftest.$ac_ext >&5
47132 ac_cv_lib_gmp___gmpz_add_ui=no
47134 rm -f conftest.err conftest.$ac_objext \
47135 conftest$ac_exeext conftest.$ac_ext
47136 LIBS=$ac_check_lib_save_LIBS
47138 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
47139 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47140 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47146 if test $have_gmp = yes ; then
47151 echo "$as_me:$LINENO: checking for multiple precision support" >&5
47152 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47154 ol_mp_support="none"
47155 case "$ol_with_multiple_precision" in
47157 if test "$ol_have_bignum" = "yes" ; then
47158 ol_mp_support="bignum"
47160 if test "$ol_have_gmp" = "yes" ; then
47161 ol_mp_support="gmp"
47166 if test "$ol_have_bignum" != "yes" ; then
47167 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47168 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47169 { (exit 1); exit 1; }; }
47171 ol_mp_support="bignum"
47174 if test "$ol_have_gmp" != "yes" ; then
47175 { { echo "$as_me:$LINENO: error: GMP not available" >&5
47176 echo "$as_me: error: GMP not available" >&2;}
47177 { (exit 1); exit 1; }; }
47179 ol_mp_support="gmp"
47182 if test "$ol_have_bignum" = "yes" ; then
47183 ol_mp_support="bignum"
47184 elif test "$ol_have_gmp" = "yes" ; then
47185 ol_mp_support="gmp"
47187 { { echo "$as_me:$LINENO: error: not available" >&5
47188 echo "$as_me: error: not available" >&2;}
47189 { (exit 1); exit 1; }; }
47194 case "$ol_mp_support" in
47197 cat >>confdefs.h <<\_ACEOF
47198 #define HAVE_BIGNUM 1
47204 cat >>confdefs.h <<\_ACEOF
47208 SLAPD_GMP_LIBS=-lgmp
47214 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47215 echo "${ECHO_T}$ol_mp_support" >&6
47219 echo "$as_me:$LINENO: checking for mode_t" >&5
47220 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47221 if test "${ac_cv_type_mode_t+set}" = set; then
47222 echo $ECHO_N "(cached) $ECHO_C" >&6
47224 cat >conftest.$ac_ext <<_ACEOF
47227 cat confdefs.h >>conftest.$ac_ext
47228 cat >>conftest.$ac_ext <<_ACEOF
47229 /* end confdefs.h. */
47230 $ac_includes_default
47236 if (sizeof (mode_t))
47242 rm -f conftest.$ac_objext
47243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47244 (eval $ac_compile) 2>conftest.er1
47246 grep -v '^ *+' conftest.er1 >conftest.err
47248 cat conftest.err >&5
47249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47250 (exit $ac_status); } &&
47251 { ac_try='test -z "$ac_c_werror_flag"
47252 || test ! -s conftest.err'
47253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47254 (eval $ac_try) 2>&5
47256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47257 (exit $ac_status); }; } &&
47258 { ac_try='test -s conftest.$ac_objext'
47259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47260 (eval $ac_try) 2>&5
47262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47263 (exit $ac_status); }; }; then
47264 ac_cv_type_mode_t=yes
47266 echo "$as_me: failed program was:" >&5
47267 sed 's/^/| /' conftest.$ac_ext >&5
47269 ac_cv_type_mode_t=no
47271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47273 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47274 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47275 if test $ac_cv_type_mode_t = yes; then
47279 cat >>confdefs.h <<_ACEOF
47285 echo "$as_me:$LINENO: checking for off_t" >&5
47286 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47287 if test "${ac_cv_type_off_t+set}" = set; then
47288 echo $ECHO_N "(cached) $ECHO_C" >&6
47290 cat >conftest.$ac_ext <<_ACEOF
47293 cat confdefs.h >>conftest.$ac_ext
47294 cat >>conftest.$ac_ext <<_ACEOF
47295 /* end confdefs.h. */
47296 $ac_includes_default
47302 if (sizeof (off_t))
47308 rm -f conftest.$ac_objext
47309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47310 (eval $ac_compile) 2>conftest.er1
47312 grep -v '^ *+' conftest.er1 >conftest.err
47314 cat conftest.err >&5
47315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47316 (exit $ac_status); } &&
47317 { ac_try='test -z "$ac_c_werror_flag"
47318 || test ! -s conftest.err'
47319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47320 (eval $ac_try) 2>&5
47322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47323 (exit $ac_status); }; } &&
47324 { ac_try='test -s conftest.$ac_objext'
47325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47326 (eval $ac_try) 2>&5
47328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47329 (exit $ac_status); }; }; then
47330 ac_cv_type_off_t=yes
47332 echo "$as_me: failed program was:" >&5
47333 sed 's/^/| /' conftest.$ac_ext >&5
47335 ac_cv_type_off_t=no
47337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47339 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47340 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47341 if test $ac_cv_type_off_t = yes; then
47345 cat >>confdefs.h <<_ACEOF
47351 echo "$as_me:$LINENO: checking for pid_t" >&5
47352 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47353 if test "${ac_cv_type_pid_t+set}" = set; then
47354 echo $ECHO_N "(cached) $ECHO_C" >&6
47356 cat >conftest.$ac_ext <<_ACEOF
47359 cat confdefs.h >>conftest.$ac_ext
47360 cat >>conftest.$ac_ext <<_ACEOF
47361 /* end confdefs.h. */
47362 $ac_includes_default
47368 if (sizeof (pid_t))
47374 rm -f conftest.$ac_objext
47375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47376 (eval $ac_compile) 2>conftest.er1
47378 grep -v '^ *+' conftest.er1 >conftest.err
47380 cat conftest.err >&5
47381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47382 (exit $ac_status); } &&
47383 { ac_try='test -z "$ac_c_werror_flag"
47384 || test ! -s conftest.err'
47385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47386 (eval $ac_try) 2>&5
47388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47389 (exit $ac_status); }; } &&
47390 { ac_try='test -s conftest.$ac_objext'
47391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47392 (eval $ac_try) 2>&5
47394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47395 (exit $ac_status); }; }; then
47396 ac_cv_type_pid_t=yes
47398 echo "$as_me: failed program was:" >&5
47399 sed 's/^/| /' conftest.$ac_ext >&5
47401 ac_cv_type_pid_t=no
47403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47405 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47406 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47407 if test $ac_cv_type_pid_t = yes; then
47411 cat >>confdefs.h <<_ACEOF
47417 echo "$as_me:$LINENO: checking for ssize_t" >&5
47418 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47419 if test "${ac_cv_type_ssize_t+set}" = set; then
47420 echo $ECHO_N "(cached) $ECHO_C" >&6
47422 cat >conftest.$ac_ext <<_ACEOF
47425 cat confdefs.h >>conftest.$ac_ext
47426 cat >>conftest.$ac_ext <<_ACEOF
47427 /* end confdefs.h. */
47428 $ac_includes_default
47434 if (sizeof (ssize_t))
47440 rm -f conftest.$ac_objext
47441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47442 (eval $ac_compile) 2>conftest.er1
47444 grep -v '^ *+' conftest.er1 >conftest.err
47446 cat conftest.err >&5
47447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47448 (exit $ac_status); } &&
47449 { ac_try='test -z "$ac_c_werror_flag"
47450 || test ! -s conftest.err'
47451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47452 (eval $ac_try) 2>&5
47454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47455 (exit $ac_status); }; } &&
47456 { ac_try='test -s conftest.$ac_objext'
47457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47458 (eval $ac_try) 2>&5
47460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47461 (exit $ac_status); }; }; then
47462 ac_cv_type_ssize_t=yes
47464 echo "$as_me: failed program was:" >&5
47465 sed 's/^/| /' conftest.$ac_ext >&5
47467 ac_cv_type_ssize_t=no
47469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47471 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47472 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47473 if test $ac_cv_type_ssize_t = yes; then
47477 cat >>confdefs.h <<_ACEOF
47478 #define ssize_t signed int
47483 echo "$as_me:$LINENO: checking for caddr_t" >&5
47484 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47485 if test "${ac_cv_type_caddr_t+set}" = set; then
47486 echo $ECHO_N "(cached) $ECHO_C" >&6
47488 cat >conftest.$ac_ext <<_ACEOF
47491 cat confdefs.h >>conftest.$ac_ext
47492 cat >>conftest.$ac_ext <<_ACEOF
47493 /* end confdefs.h. */
47494 $ac_includes_default
47500 if (sizeof (caddr_t))
47506 rm -f conftest.$ac_objext
47507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47508 (eval $ac_compile) 2>conftest.er1
47510 grep -v '^ *+' conftest.er1 >conftest.err
47512 cat conftest.err >&5
47513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47514 (exit $ac_status); } &&
47515 { ac_try='test -z "$ac_c_werror_flag"
47516 || test ! -s conftest.err'
47517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47518 (eval $ac_try) 2>&5
47520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47521 (exit $ac_status); }; } &&
47522 { ac_try='test -s conftest.$ac_objext'
47523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47524 (eval $ac_try) 2>&5
47526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47527 (exit $ac_status); }; }; then
47528 ac_cv_type_caddr_t=yes
47530 echo "$as_me: failed program was:" >&5
47531 sed 's/^/| /' conftest.$ac_ext >&5
47533 ac_cv_type_caddr_t=no
47535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47537 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47538 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47539 if test $ac_cv_type_caddr_t = yes; then
47543 cat >>confdefs.h <<_ACEOF
47544 #define caddr_t char *
47549 echo "$as_me:$LINENO: checking for size_t" >&5
47550 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47551 if test "${ac_cv_type_size_t+set}" = set; then
47552 echo $ECHO_N "(cached) $ECHO_C" >&6
47554 cat >conftest.$ac_ext <<_ACEOF
47557 cat confdefs.h >>conftest.$ac_ext
47558 cat >>conftest.$ac_ext <<_ACEOF
47559 /* end confdefs.h. */
47560 $ac_includes_default
47566 if (sizeof (size_t))
47572 rm -f conftest.$ac_objext
47573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47574 (eval $ac_compile) 2>conftest.er1
47576 grep -v '^ *+' conftest.er1 >conftest.err
47578 cat conftest.err >&5
47579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47580 (exit $ac_status); } &&
47581 { ac_try='test -z "$ac_c_werror_flag"
47582 || test ! -s conftest.err'
47583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47584 (eval $ac_try) 2>&5
47586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47587 (exit $ac_status); }; } &&
47588 { ac_try='test -s conftest.$ac_objext'
47589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47590 (eval $ac_try) 2>&5
47592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47593 (exit $ac_status); }; }; then
47594 ac_cv_type_size_t=yes
47596 echo "$as_me: failed program was:" >&5
47597 sed 's/^/| /' conftest.$ac_ext >&5
47599 ac_cv_type_size_t=no
47601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47603 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47604 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47605 if test $ac_cv_type_size_t = yes; then
47609 cat >>confdefs.h <<_ACEOF
47610 #define size_t unsigned
47616 echo "$as_me:$LINENO: checking for long long" >&5
47617 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47618 if test "${ac_cv_type_long_long+set}" = set; then
47619 echo $ECHO_N "(cached) $ECHO_C" >&6
47621 cat >conftest.$ac_ext <<_ACEOF
47624 cat confdefs.h >>conftest.$ac_ext
47625 cat >>conftest.$ac_ext <<_ACEOF
47626 /* end confdefs.h. */
47627 $ac_includes_default
47631 if ((long long *) 0)
47633 if (sizeof (long long))
47639 rm -f conftest.$ac_objext
47640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47641 (eval $ac_compile) 2>conftest.er1
47643 grep -v '^ *+' conftest.er1 >conftest.err
47645 cat conftest.err >&5
47646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47647 (exit $ac_status); } &&
47648 { ac_try='test -z "$ac_c_werror_flag"
47649 || test ! -s conftest.err'
47650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47651 (eval $ac_try) 2>&5
47653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47654 (exit $ac_status); }; } &&
47655 { ac_try='test -s conftest.$ac_objext'
47656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47657 (eval $ac_try) 2>&5
47659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47660 (exit $ac_status); }; }; then
47661 ac_cv_type_long_long=yes
47663 echo "$as_me: failed program was:" >&5
47664 sed 's/^/| /' conftest.$ac_ext >&5
47666 ac_cv_type_long_long=no
47668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47670 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47671 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47672 if test $ac_cv_type_long_long = yes; then
47674 cat >>confdefs.h <<_ACEOF
47675 #define HAVE_LONG_LONG 1
47681 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47682 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47683 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47684 echo $ECHO_N "(cached) $ECHO_C" >&6
47686 cat >conftest.$ac_ext <<_ACEOF
47689 cat confdefs.h >>conftest.$ac_ext
47690 cat >>conftest.$ac_ext <<_ACEOF
47691 /* end confdefs.h. */
47692 $ac_includes_default
47696 if ((ptrdiff_t *) 0)
47698 if (sizeof (ptrdiff_t))
47704 rm -f conftest.$ac_objext
47705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47706 (eval $ac_compile) 2>conftest.er1
47708 grep -v '^ *+' conftest.er1 >conftest.err
47710 cat conftest.err >&5
47711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47712 (exit $ac_status); } &&
47713 { ac_try='test -z "$ac_c_werror_flag"
47714 || test ! -s conftest.err'
47715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47716 (eval $ac_try) 2>&5
47718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47719 (exit $ac_status); }; } &&
47720 { ac_try='test -s conftest.$ac_objext'
47721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47722 (eval $ac_try) 2>&5
47724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47725 (exit $ac_status); }; }; then
47726 ac_cv_type_ptrdiff_t=yes
47728 echo "$as_me: failed program was:" >&5
47729 sed 's/^/| /' conftest.$ac_ext >&5
47731 ac_cv_type_ptrdiff_t=no
47733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47735 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47736 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47737 if test $ac_cv_type_ptrdiff_t = yes; then
47739 cat >>confdefs.h <<_ACEOF
47740 #define HAVE_PTRDIFF_T 1
47747 echo "$as_me:$LINENO: checking for socklen_t" >&5
47748 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47749 if test "${ac_cv_type_socklen_t+set}" = set; then
47750 echo $ECHO_N "(cached) $ECHO_C" >&6
47752 cat >conftest.$ac_ext <<_ACEOF
47755 cat confdefs.h >>conftest.$ac_ext
47756 cat >>conftest.$ac_ext <<_ACEOF
47757 /* end confdefs.h. */
47758 $ac_includes_default
47759 #ifdef HAVE_SYS_SOCKET_H
47760 #include <sys/socket.h>
47767 if ((socklen_t *) 0)
47769 if (sizeof (socklen_t))
47775 rm -f conftest.$ac_objext
47776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47777 (eval $ac_compile) 2>conftest.er1
47779 grep -v '^ *+' conftest.er1 >conftest.err
47781 cat conftest.err >&5
47782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47783 (exit $ac_status); } &&
47784 { ac_try='test -z "$ac_c_werror_flag"
47785 || test ! -s conftest.err'
47786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47787 (eval $ac_try) 2>&5
47789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47790 (exit $ac_status); }; } &&
47791 { ac_try='test -s conftest.$ac_objext'
47792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47793 (eval $ac_try) 2>&5
47795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47796 (exit $ac_status); }; }; then
47797 ac_cv_type_socklen_t=yes
47799 echo "$as_me: failed program was:" >&5
47800 sed 's/^/| /' conftest.$ac_ext >&5
47802 ac_cv_type_socklen_t=no
47804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47806 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47807 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47808 if test $ac_cv_type_socklen_t = yes; then
47812 cat >>confdefs.h <<_ACEOF
47813 #define socklen_t int
47819 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47820 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47821 if test "${ac_cv_type_signal+set}" = set; then
47822 echo $ECHO_N "(cached) $ECHO_C" >&6
47824 cat >conftest.$ac_ext <<_ACEOF
47827 cat confdefs.h >>conftest.$ac_ext
47828 cat >>conftest.$ac_ext <<_ACEOF
47829 /* end confdefs.h. */
47830 #include <sys/types.h>
47831 #include <signal.h>
47836 extern "C" void (*signal (int, void (*)(int)))(int);
47838 void (*signal ()) ();
47849 rm -f conftest.$ac_objext
47850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47851 (eval $ac_compile) 2>conftest.er1
47853 grep -v '^ *+' conftest.er1 >conftest.err
47855 cat conftest.err >&5
47856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47857 (exit $ac_status); } &&
47858 { ac_try='test -z "$ac_c_werror_flag"
47859 || test ! -s conftest.err'
47860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47861 (eval $ac_try) 2>&5
47863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47864 (exit $ac_status); }; } &&
47865 { ac_try='test -s conftest.$ac_objext'
47866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47867 (eval $ac_try) 2>&5
47869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47870 (exit $ac_status); }; }; then
47871 ac_cv_type_signal=void
47873 echo "$as_me: failed program was:" >&5
47874 sed 's/^/| /' conftest.$ac_ext >&5
47876 ac_cv_type_signal=int
47878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47880 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47881 echo "${ECHO_T}$ac_cv_type_signal" >&6
47883 cat >>confdefs.h <<_ACEOF
47884 #define RETSIGTYPE $ac_cv_type_signal
47889 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47890 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47891 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47892 echo $ECHO_N "(cached) $ECHO_C" >&6
47894 cat >conftest.$ac_ext <<_ACEOF
47897 cat confdefs.h >>conftest.$ac_ext
47898 cat >>conftest.$ac_ext <<_ACEOF
47899 /* end confdefs.h. */
47900 $ac_includes_default
47901 #include <signal.h>
47907 if ((sig_atomic_t *) 0)
47909 if (sizeof (sig_atomic_t))
47915 rm -f conftest.$ac_objext
47916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47917 (eval $ac_compile) 2>conftest.er1
47919 grep -v '^ *+' conftest.er1 >conftest.err
47921 cat conftest.err >&5
47922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47923 (exit $ac_status); } &&
47924 { ac_try='test -z "$ac_c_werror_flag"
47925 || test ! -s conftest.err'
47926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47927 (eval $ac_try) 2>&5
47929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47930 (exit $ac_status); }; } &&
47931 { ac_try='test -s conftest.$ac_objext'
47932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47933 (eval $ac_try) 2>&5
47935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47936 (exit $ac_status); }; }; then
47937 ac_cv_type_sig_atomic_t=yes
47939 echo "$as_me: failed program was:" >&5
47940 sed 's/^/| /' conftest.$ac_ext >&5
47942 ac_cv_type_sig_atomic_t=no
47944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47946 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47947 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47948 if test $ac_cv_type_sig_atomic_t = yes; then
47952 cat >>confdefs.h <<_ACEOF
47953 #define sig_atomic_t int
47959 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47960 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47961 if test "${ac_cv_type_uid_t+set}" = set; then
47962 echo $ECHO_N "(cached) $ECHO_C" >&6
47964 cat >conftest.$ac_ext <<_ACEOF
47967 cat confdefs.h >>conftest.$ac_ext
47968 cat >>conftest.$ac_ext <<_ACEOF
47969 /* end confdefs.h. */
47970 #include <sys/types.h>
47973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47974 $EGREP "uid_t" >/dev/null 2>&1; then
47975 ac_cv_type_uid_t=yes
47977 ac_cv_type_uid_t=no
47982 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47983 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47984 if test $ac_cv_type_uid_t = no; then
47986 cat >>confdefs.h <<\_ACEOF
47991 cat >>confdefs.h <<\_ACEOF
47998 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47999 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
48000 if test "${ac_cv_header_time+set}" = set; then
48001 echo $ECHO_N "(cached) $ECHO_C" >&6
48003 cat >conftest.$ac_ext <<_ACEOF
48006 cat confdefs.h >>conftest.$ac_ext
48007 cat >>conftest.$ac_ext <<_ACEOF
48008 /* end confdefs.h. */
48009 #include <sys/types.h>
48010 #include <sys/time.h>
48016 if ((struct tm *) 0)
48022 rm -f conftest.$ac_objext
48023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48024 (eval $ac_compile) 2>conftest.er1
48026 grep -v '^ *+' conftest.er1 >conftest.err
48028 cat conftest.err >&5
48029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48030 (exit $ac_status); } &&
48031 { ac_try='test -z "$ac_c_werror_flag"
48032 || test ! -s conftest.err'
48033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48034 (eval $ac_try) 2>&5
48036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48037 (exit $ac_status); }; } &&
48038 { ac_try='test -s conftest.$ac_objext'
48039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48040 (eval $ac_try) 2>&5
48042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48043 (exit $ac_status); }; }; then
48044 ac_cv_header_time=yes
48046 echo "$as_me: failed program was:" >&5
48047 sed 's/^/| /' conftest.$ac_ext >&5
48049 ac_cv_header_time=no
48051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48053 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48054 echo "${ECHO_T}$ac_cv_header_time" >&6
48055 if test $ac_cv_header_time = yes; then
48057 cat >>confdefs.h <<\_ACEOF
48058 #define TIME_WITH_SYS_TIME 1
48063 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48064 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48065 if test "${ac_cv_struct_tm+set}" = set; then
48066 echo $ECHO_N "(cached) $ECHO_C" >&6
48068 cat >conftest.$ac_ext <<_ACEOF
48071 cat confdefs.h >>conftest.$ac_ext
48072 cat >>conftest.$ac_ext <<_ACEOF
48073 /* end confdefs.h. */
48074 #include <sys/types.h>
48080 struct tm *tp; tp->tm_sec;
48085 rm -f conftest.$ac_objext
48086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48087 (eval $ac_compile) 2>conftest.er1
48089 grep -v '^ *+' conftest.er1 >conftest.err
48091 cat conftest.err >&5
48092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48093 (exit $ac_status); } &&
48094 { ac_try='test -z "$ac_c_werror_flag"
48095 || test ! -s conftest.err'
48096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48097 (eval $ac_try) 2>&5
48099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48100 (exit $ac_status); }; } &&
48101 { ac_try='test -s conftest.$ac_objext'
48102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48103 (eval $ac_try) 2>&5
48105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48106 (exit $ac_status); }; }; then
48107 ac_cv_struct_tm=time.h
48109 echo "$as_me: failed program was:" >&5
48110 sed 's/^/| /' conftest.$ac_ext >&5
48112 ac_cv_struct_tm=sys/time.h
48114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48116 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48117 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48118 if test $ac_cv_struct_tm = sys/time.h; then
48120 cat >>confdefs.h <<\_ACEOF
48121 #define TM_IN_SYS_TIME 1
48126 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
48127 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
48128 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
48129 echo $ECHO_N "(cached) $ECHO_C" >&6
48131 cat >conftest.$ac_ext <<_ACEOF
48134 cat confdefs.h >>conftest.$ac_ext
48135 cat >>conftest.$ac_ext <<_ACEOF
48136 /* end confdefs.h. */
48137 $ac_includes_default
48141 static struct stat ac_aggr;
48142 if (ac_aggr.st_blksize)
48148 rm -f conftest.$ac_objext
48149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48150 (eval $ac_compile) 2>conftest.er1
48152 grep -v '^ *+' conftest.er1 >conftest.err
48154 cat conftest.err >&5
48155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48156 (exit $ac_status); } &&
48157 { ac_try='test -z "$ac_c_werror_flag"
48158 || test ! -s conftest.err'
48159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48160 (eval $ac_try) 2>&5
48162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48163 (exit $ac_status); }; } &&
48164 { ac_try='test -s conftest.$ac_objext'
48165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48166 (eval $ac_try) 2>&5
48168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48169 (exit $ac_status); }; }; then
48170 ac_cv_member_struct_stat_st_blksize=yes
48172 echo "$as_me: failed program was:" >&5
48173 sed 's/^/| /' conftest.$ac_ext >&5
48175 cat >conftest.$ac_ext <<_ACEOF
48178 cat confdefs.h >>conftest.$ac_ext
48179 cat >>conftest.$ac_ext <<_ACEOF
48180 /* end confdefs.h. */
48181 $ac_includes_default
48185 static struct stat ac_aggr;
48186 if (sizeof ac_aggr.st_blksize)
48192 rm -f conftest.$ac_objext
48193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48194 (eval $ac_compile) 2>conftest.er1
48196 grep -v '^ *+' conftest.er1 >conftest.err
48198 cat conftest.err >&5
48199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48200 (exit $ac_status); } &&
48201 { ac_try='test -z "$ac_c_werror_flag"
48202 || test ! -s conftest.err'
48203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48204 (eval $ac_try) 2>&5
48206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48207 (exit $ac_status); }; } &&
48208 { ac_try='test -s conftest.$ac_objext'
48209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48210 (eval $ac_try) 2>&5
48212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48213 (exit $ac_status); }; }; then
48214 ac_cv_member_struct_stat_st_blksize=yes
48216 echo "$as_me: failed program was:" >&5
48217 sed 's/^/| /' conftest.$ac_ext >&5
48219 ac_cv_member_struct_stat_st_blksize=no
48221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48225 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48226 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48227 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48229 cat >>confdefs.h <<_ACEOF
48230 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48236 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48237 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48238 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48239 echo $ECHO_N "(cached) $ECHO_C" >&6
48241 cat >conftest.$ac_ext <<_ACEOF
48244 cat confdefs.h >>conftest.$ac_ext
48245 cat >>conftest.$ac_ext <<_ACEOF
48246 /* end confdefs.h. */
48247 $ac_includes_default
48253 static struct passwd ac_aggr;
48254 if (ac_aggr.pw_gecos)
48260 rm -f conftest.$ac_objext
48261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48262 (eval $ac_compile) 2>conftest.er1
48264 grep -v '^ *+' conftest.er1 >conftest.err
48266 cat conftest.err >&5
48267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48268 (exit $ac_status); } &&
48269 { ac_try='test -z "$ac_c_werror_flag"
48270 || test ! -s conftest.err'
48271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48272 (eval $ac_try) 2>&5
48274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48275 (exit $ac_status); }; } &&
48276 { ac_try='test -s conftest.$ac_objext'
48277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48278 (eval $ac_try) 2>&5
48280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281 (exit $ac_status); }; }; then
48282 ac_cv_member_struct_passwd_pw_gecos=yes
48284 echo "$as_me: failed program was:" >&5
48285 sed 's/^/| /' conftest.$ac_ext >&5
48287 cat >conftest.$ac_ext <<_ACEOF
48290 cat confdefs.h >>conftest.$ac_ext
48291 cat >>conftest.$ac_ext <<_ACEOF
48292 /* end confdefs.h. */
48293 $ac_includes_default
48299 static struct passwd ac_aggr;
48300 if (sizeof ac_aggr.pw_gecos)
48306 rm -f conftest.$ac_objext
48307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48308 (eval $ac_compile) 2>conftest.er1
48310 grep -v '^ *+' conftest.er1 >conftest.err
48312 cat conftest.err >&5
48313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48314 (exit $ac_status); } &&
48315 { ac_try='test -z "$ac_c_werror_flag"
48316 || test ! -s conftest.err'
48317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48318 (eval $ac_try) 2>&5
48320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48321 (exit $ac_status); }; } &&
48322 { ac_try='test -s conftest.$ac_objext'
48323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48324 (eval $ac_try) 2>&5
48326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48327 (exit $ac_status); }; }; then
48328 ac_cv_member_struct_passwd_pw_gecos=yes
48330 echo "$as_me: failed program was:" >&5
48331 sed 's/^/| /' conftest.$ac_ext >&5
48333 ac_cv_member_struct_passwd_pw_gecos=no
48335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48339 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48340 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48341 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48343 cat >>confdefs.h <<_ACEOF
48344 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48350 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48351 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48352 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48353 echo $ECHO_N "(cached) $ECHO_C" >&6
48355 cat >conftest.$ac_ext <<_ACEOF
48358 cat confdefs.h >>conftest.$ac_ext
48359 cat >>conftest.$ac_ext <<_ACEOF
48360 /* end confdefs.h. */
48361 $ac_includes_default
48367 static struct passwd ac_aggr;
48368 if (ac_aggr.pw_passwd)
48374 rm -f conftest.$ac_objext
48375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48376 (eval $ac_compile) 2>conftest.er1
48378 grep -v '^ *+' conftest.er1 >conftest.err
48380 cat conftest.err >&5
48381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48382 (exit $ac_status); } &&
48383 { ac_try='test -z "$ac_c_werror_flag"
48384 || test ! -s conftest.err'
48385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48386 (eval $ac_try) 2>&5
48388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48389 (exit $ac_status); }; } &&
48390 { ac_try='test -s conftest.$ac_objext'
48391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48392 (eval $ac_try) 2>&5
48394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48395 (exit $ac_status); }; }; then
48396 ac_cv_member_struct_passwd_pw_passwd=yes
48398 echo "$as_me: failed program was:" >&5
48399 sed 's/^/| /' conftest.$ac_ext >&5
48401 cat >conftest.$ac_ext <<_ACEOF
48404 cat confdefs.h >>conftest.$ac_ext
48405 cat >>conftest.$ac_ext <<_ACEOF
48406 /* end confdefs.h. */
48407 $ac_includes_default
48413 static struct passwd ac_aggr;
48414 if (sizeof ac_aggr.pw_passwd)
48420 rm -f conftest.$ac_objext
48421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48422 (eval $ac_compile) 2>conftest.er1
48424 grep -v '^ *+' conftest.er1 >conftest.err
48426 cat conftest.err >&5
48427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48428 (exit $ac_status); } &&
48429 { ac_try='test -z "$ac_c_werror_flag"
48430 || test ! -s conftest.err'
48431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48432 (eval $ac_try) 2>&5
48434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48435 (exit $ac_status); }; } &&
48436 { ac_try='test -s conftest.$ac_objext'
48437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48438 (eval $ac_try) 2>&5
48440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48441 (exit $ac_status); }; }; then
48442 ac_cv_member_struct_passwd_pw_passwd=yes
48444 echo "$as_me: failed program was:" >&5
48445 sed 's/^/| /' conftest.$ac_ext >&5
48447 ac_cv_member_struct_passwd_pw_passwd=no
48449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48453 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48454 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48455 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48457 cat >>confdefs.h <<_ACEOF
48458 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48465 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48466 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48467 if test "${ol_cv_c_upper_lower+set}" = set; then
48468 echo $ECHO_N "(cached) $ECHO_C" >&6
48471 if test "$cross_compiling" = yes; then
48472 ol_cv_c_upper_lower=safe
48474 cat >conftest.$ac_ext <<_ACEOF
48477 cat confdefs.h >>conftest.$ac_ext
48478 cat >>conftest.$ac_ext <<_ACEOF
48479 /* end confdefs.h. */
48484 if ('C' == toupper('C'))
48490 rm -f conftest$ac_exeext
48491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48492 (eval $ac_link) 2>&5
48494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48497 (eval $ac_try) 2>&5
48499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48500 (exit $ac_status); }; }; then
48501 ol_cv_c_upper_lower=no
48503 echo "$as_me: program exited with status $ac_status" >&5
48504 echo "$as_me: failed program was:" >&5
48505 sed 's/^/| /' conftest.$ac_ext >&5
48507 ( exit $ac_status )
48508 ol_cv_c_upper_lower=yes
48510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48513 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48514 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48515 if test $ol_cv_c_upper_lower != no ; then
48517 cat >>confdefs.h <<\_ACEOF
48518 #define C_UPPER_LOWER 1
48523 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48524 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48525 if test "${ac_cv_c_const+set}" = set; then
48526 echo $ECHO_N "(cached) $ECHO_C" >&6
48528 cat >conftest.$ac_ext <<_ACEOF
48531 cat confdefs.h >>conftest.$ac_ext
48532 cat >>conftest.$ac_ext <<_ACEOF
48533 /* end confdefs.h. */
48538 /* FIXME: Include the comments suggested by Paul. */
48539 #ifndef __cplusplus
48540 /* Ultrix mips cc rejects this. */
48541 typedef int charset[2];
48543 /* SunOS 4.1.1 cc rejects this. */
48544 char const *const *ccp;
48546 /* NEC SVR4.0.2 mips cc rejects this. */
48547 struct point {int x, y;};
48548 static struct point const zero = {0,0};
48549 /* AIX XL C 1.02.0.0 rejects this.
48550 It does not let you subtract one const X* pointer from another in
48551 an arm of an if-expression whose if-part is not a constant
48553 const char *g = "string";
48554 ccp = &g + (g ? g-g : 0);
48555 /* HPUX 7.0 cc rejects these. */
48558 ccp = (char const *const *) p;
48559 { /* SCO 3.2v4 cc rejects this. */
48561 char const *s = 0 ? (char *) 0 : (char const *) 0;
48565 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48566 int x[] = {25, 17};
48567 const int *foo = &x[0];
48570 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48571 typedef const int *iptr;
48575 { /* AIX XL C 1.02.0.0 rejects this saying
48576 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48577 struct s { int j; const int *ap[3]; };
48578 struct s *b; b->j = 5;
48580 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48581 const int foo = 10;
48589 rm -f conftest.$ac_objext
48590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48591 (eval $ac_compile) 2>conftest.er1
48593 grep -v '^ *+' conftest.er1 >conftest.err
48595 cat conftest.err >&5
48596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48597 (exit $ac_status); } &&
48598 { ac_try='test -z "$ac_c_werror_flag"
48599 || test ! -s conftest.err'
48600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48601 (eval $ac_try) 2>&5
48603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48604 (exit $ac_status); }; } &&
48605 { ac_try='test -s conftest.$ac_objext'
48606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48607 (eval $ac_try) 2>&5
48609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48610 (exit $ac_status); }; }; then
48613 echo "$as_me: failed program was:" >&5
48614 sed 's/^/| /' conftest.$ac_ext >&5
48618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48620 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48621 echo "${ECHO_T}$ac_cv_c_const" >&6
48622 if test $ac_cv_c_const = no; then
48624 cat >>confdefs.h <<\_ACEOF
48630 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48631 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48632 if test "${ol_cv_c_volatile+set}" = set; then
48633 echo $ECHO_N "(cached) $ECHO_C" >&6
48635 cat >conftest.$ac_ext <<_ACEOF
48638 cat confdefs.h >>conftest.$ac_ext
48639 cat >>conftest.$ac_ext <<_ACEOF
48640 /* end confdefs.h. */
48645 volatile int a; int * volatile b = x ? &y : &z;
48646 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48652 rm -f conftest.$ac_objext
48653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48654 (eval $ac_compile) 2>conftest.er1
48656 grep -v '^ *+' conftest.er1 >conftest.err
48658 cat conftest.err >&5
48659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48660 (exit $ac_status); } &&
48661 { ac_try='test -z "$ac_c_werror_flag"
48662 || test ! -s conftest.err'
48663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48664 (eval $ac_try) 2>&5
48666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48667 (exit $ac_status); }; } &&
48668 { ac_try='test -s conftest.$ac_objext'
48669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48670 (eval $ac_try) 2>&5
48672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48673 (exit $ac_status); }; }; then
48674 ol_cv_c_volatile=yes
48676 echo "$as_me: failed program was:" >&5
48677 sed 's/^/| /' conftest.$ac_ext >&5
48679 ol_cv_c_volatile=no
48681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48683 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48684 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48685 if test $ol_cv_c_volatile = yes; then
48689 cat >>confdefs.h <<\_ACEOF
48696 if test $cross_compiling = yes ; then
48697 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48698 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48700 cat >>confdefs.h <<\_ACEOF
48701 #define CROSS_COMPILING 1
48705 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48706 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48707 if test "${ac_cv_c_bigendian+set}" = set; then
48708 echo $ECHO_N "(cached) $ECHO_C" >&6
48710 # See if sys/param.h defines the BYTE_ORDER macro.
48711 cat >conftest.$ac_ext <<_ACEOF
48714 cat confdefs.h >>conftest.$ac_ext
48715 cat >>conftest.$ac_ext <<_ACEOF
48716 /* end confdefs.h. */
48717 #include <sys/types.h>
48718 #include <sys/param.h>
48723 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48724 bogus endian macros
48731 rm -f conftest.$ac_objext
48732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48733 (eval $ac_compile) 2>conftest.er1
48735 grep -v '^ *+' conftest.er1 >conftest.err
48737 cat conftest.err >&5
48738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48739 (exit $ac_status); } &&
48740 { ac_try='test -z "$ac_c_werror_flag"
48741 || test ! -s conftest.err'
48742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48743 (eval $ac_try) 2>&5
48745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48746 (exit $ac_status); }; } &&
48747 { ac_try='test -s conftest.$ac_objext'
48748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48749 (eval $ac_try) 2>&5
48751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48752 (exit $ac_status); }; }; then
48753 # It does; now see whether it defined to BIG_ENDIAN or not.
48754 cat >conftest.$ac_ext <<_ACEOF
48757 cat confdefs.h >>conftest.$ac_ext
48758 cat >>conftest.$ac_ext <<_ACEOF
48759 /* end confdefs.h. */
48760 #include <sys/types.h>
48761 #include <sys/param.h>
48766 #if BYTE_ORDER != BIG_ENDIAN
48774 rm -f conftest.$ac_objext
48775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48776 (eval $ac_compile) 2>conftest.er1
48778 grep -v '^ *+' conftest.er1 >conftest.err
48780 cat conftest.err >&5
48781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48782 (exit $ac_status); } &&
48783 { ac_try='test -z "$ac_c_werror_flag"
48784 || test ! -s conftest.err'
48785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48786 (eval $ac_try) 2>&5
48788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48789 (exit $ac_status); }; } &&
48790 { ac_try='test -s conftest.$ac_objext'
48791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48792 (eval $ac_try) 2>&5
48794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48795 (exit $ac_status); }; }; then
48796 ac_cv_c_bigendian=yes
48798 echo "$as_me: failed program was:" >&5
48799 sed 's/^/| /' conftest.$ac_ext >&5
48801 ac_cv_c_bigendian=no
48803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48805 echo "$as_me: failed program was:" >&5
48806 sed 's/^/| /' conftest.$ac_ext >&5
48808 # It does not; compile a test program.
48809 if test "$cross_compiling" = yes; then
48810 # try to guess the endianness by grepping values into an object file
48811 ac_cv_c_bigendian=unknown
48812 cat >conftest.$ac_ext <<_ACEOF
48815 cat confdefs.h >>conftest.$ac_ext
48816 cat >>conftest.$ac_ext <<_ACEOF
48817 /* end confdefs.h. */
48818 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48819 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48820 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48821 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48822 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48823 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48827 _ascii (); _ebcdic ();
48832 rm -f conftest.$ac_objext
48833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48834 (eval $ac_compile) 2>conftest.er1
48836 grep -v '^ *+' conftest.er1 >conftest.err
48838 cat conftest.err >&5
48839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48840 (exit $ac_status); } &&
48841 { ac_try='test -z "$ac_c_werror_flag"
48842 || test ! -s conftest.err'
48843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48844 (eval $ac_try) 2>&5
48846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48847 (exit $ac_status); }; } &&
48848 { ac_try='test -s conftest.$ac_objext'
48849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48850 (eval $ac_try) 2>&5
48852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48853 (exit $ac_status); }; }; then
48854 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48855 ac_cv_c_bigendian=yes
48857 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48858 if test "$ac_cv_c_bigendian" = unknown; then
48859 ac_cv_c_bigendian=no
48861 # finding both strings is unlikely to happen, but who knows?
48862 ac_cv_c_bigendian=unknown
48866 echo "$as_me: failed program was:" >&5
48867 sed 's/^/| /' conftest.$ac_ext >&5
48870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48872 cat >conftest.$ac_ext <<_ACEOF
48875 cat confdefs.h >>conftest.$ac_ext
48876 cat >>conftest.$ac_ext <<_ACEOF
48877 /* end confdefs.h. */
48881 /* Are we little or big endian? From Harbison&Steele. */
48885 char c[sizeof (long)];
48888 exit (u.c[sizeof (long) - 1] == 1);
48891 rm -f conftest$ac_exeext
48892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48893 (eval $ac_link) 2>&5
48895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48898 (eval $ac_try) 2>&5
48900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48901 (exit $ac_status); }; }; then
48902 ac_cv_c_bigendian=no
48904 echo "$as_me: program exited with status $ac_status" >&5
48905 echo "$as_me: failed program was:" >&5
48906 sed 's/^/| /' conftest.$ac_ext >&5
48908 ( exit $ac_status )
48909 ac_cv_c_bigendian=yes
48911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48916 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48917 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48918 case $ac_cv_c_bigendian in
48921 cat >>confdefs.h <<\_ACEOF
48922 #define WORDS_BIGENDIAN 1
48928 { { echo "$as_me:$LINENO: error: unknown endianness
48929 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48930 echo "$as_me: error: unknown endianness
48931 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48932 { (exit 1); exit 1; }; } ;;
48937 echo "$as_me:$LINENO: checking for short" >&5
48938 echo $ECHO_N "checking for short... $ECHO_C" >&6
48939 if test "${ac_cv_type_short+set}" = set; then
48940 echo $ECHO_N "(cached) $ECHO_C" >&6
48942 cat >conftest.$ac_ext <<_ACEOF
48945 cat confdefs.h >>conftest.$ac_ext
48946 cat >>conftest.$ac_ext <<_ACEOF
48947 /* end confdefs.h. */
48948 $ac_includes_default
48954 if (sizeof (short))
48960 rm -f conftest.$ac_objext
48961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48962 (eval $ac_compile) 2>conftest.er1
48964 grep -v '^ *+' conftest.er1 >conftest.err
48966 cat conftest.err >&5
48967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48968 (exit $ac_status); } &&
48969 { ac_try='test -z "$ac_c_werror_flag"
48970 || test ! -s conftest.err'
48971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48972 (eval $ac_try) 2>&5
48974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48975 (exit $ac_status); }; } &&
48976 { ac_try='test -s conftest.$ac_objext'
48977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48978 (eval $ac_try) 2>&5
48980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48981 (exit $ac_status); }; }; then
48982 ac_cv_type_short=yes
48984 echo "$as_me: failed program was:" >&5
48985 sed 's/^/| /' conftest.$ac_ext >&5
48987 ac_cv_type_short=no
48989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48991 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48992 echo "${ECHO_T}$ac_cv_type_short" >&6
48994 echo "$as_me:$LINENO: checking size of short" >&5
48995 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48996 if test "${ac_cv_sizeof_short+set}" = set; then
48997 echo $ECHO_N "(cached) $ECHO_C" >&6
48999 if test "$ac_cv_type_short" = yes; then
49000 # The cast to unsigned long works around a bug in the HP C Compiler
49001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49003 # This bug is HP SR number 8606223364.
49004 if test "$cross_compiling" = yes; then
49005 # Depending upon the size, compute the lo and hi bounds.
49006 cat >conftest.$ac_ext <<_ACEOF
49009 cat confdefs.h >>conftest.$ac_ext
49010 cat >>conftest.$ac_ext <<_ACEOF
49011 /* end confdefs.h. */
49012 $ac_includes_default
49016 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
49023 rm -f conftest.$ac_objext
49024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49025 (eval $ac_compile) 2>conftest.er1
49027 grep -v '^ *+' conftest.er1 >conftest.err
49029 cat conftest.err >&5
49030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49031 (exit $ac_status); } &&
49032 { ac_try='test -z "$ac_c_werror_flag"
49033 || test ! -s conftest.err'
49034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49035 (eval $ac_try) 2>&5
49037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49038 (exit $ac_status); }; } &&
49039 { ac_try='test -s conftest.$ac_objext'
49040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49041 (eval $ac_try) 2>&5
49043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49044 (exit $ac_status); }; }; then
49047 cat >conftest.$ac_ext <<_ACEOF
49050 cat confdefs.h >>conftest.$ac_ext
49051 cat >>conftest.$ac_ext <<_ACEOF
49052 /* end confdefs.h. */
49053 $ac_includes_default
49057 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49064 rm -f conftest.$ac_objext
49065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49066 (eval $ac_compile) 2>conftest.er1
49068 grep -v '^ *+' conftest.er1 >conftest.err
49070 cat conftest.err >&5
49071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49072 (exit $ac_status); } &&
49073 { ac_try='test -z "$ac_c_werror_flag"
49074 || test ! -s conftest.err'
49075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49076 (eval $ac_try) 2>&5
49078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49079 (exit $ac_status); }; } &&
49080 { ac_try='test -s conftest.$ac_objext'
49081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49082 (eval $ac_try) 2>&5
49084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49085 (exit $ac_status); }; }; then
49086 ac_hi=$ac_mid; break
49088 echo "$as_me: failed program was:" >&5
49089 sed 's/^/| /' conftest.$ac_ext >&5
49091 ac_lo=`expr $ac_mid + 1`
49092 if test $ac_lo -le $ac_mid; then
49096 ac_mid=`expr 2 '*' $ac_mid + 1`
49098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49101 echo "$as_me: failed program was:" >&5
49102 sed 's/^/| /' conftest.$ac_ext >&5
49104 cat >conftest.$ac_ext <<_ACEOF
49107 cat confdefs.h >>conftest.$ac_ext
49108 cat >>conftest.$ac_ext <<_ACEOF
49109 /* end confdefs.h. */
49110 $ac_includes_default
49114 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
49121 rm -f conftest.$ac_objext
49122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49123 (eval $ac_compile) 2>conftest.er1
49125 grep -v '^ *+' conftest.er1 >conftest.err
49127 cat conftest.err >&5
49128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49129 (exit $ac_status); } &&
49130 { ac_try='test -z "$ac_c_werror_flag"
49131 || test ! -s conftest.err'
49132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49133 (eval $ac_try) 2>&5
49135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49136 (exit $ac_status); }; } &&
49137 { ac_try='test -s conftest.$ac_objext'
49138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49139 (eval $ac_try) 2>&5
49141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49142 (exit $ac_status); }; }; then
49145 cat >conftest.$ac_ext <<_ACEOF
49148 cat confdefs.h >>conftest.$ac_ext
49149 cat >>conftest.$ac_ext <<_ACEOF
49150 /* end confdefs.h. */
49151 $ac_includes_default
49155 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49162 rm -f conftest.$ac_objext
49163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49164 (eval $ac_compile) 2>conftest.er1
49166 grep -v '^ *+' conftest.er1 >conftest.err
49168 cat conftest.err >&5
49169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49170 (exit $ac_status); } &&
49171 { ac_try='test -z "$ac_c_werror_flag"
49172 || test ! -s conftest.err'
49173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49174 (eval $ac_try) 2>&5
49176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49177 (exit $ac_status); }; } &&
49178 { ac_try='test -s conftest.$ac_objext'
49179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49180 (eval $ac_try) 2>&5
49182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49183 (exit $ac_status); }; }; then
49184 ac_lo=$ac_mid; break
49186 echo "$as_me: failed program was:" >&5
49187 sed 's/^/| /' conftest.$ac_ext >&5
49189 ac_hi=`expr '(' $ac_mid ')' - 1`
49190 if test $ac_mid -le $ac_hi; then
49194 ac_mid=`expr 2 '*' $ac_mid`
49196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49199 echo "$as_me: failed program was:" >&5
49200 sed 's/^/| /' conftest.$ac_ext >&5
49204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49207 # Binary search between lo and hi bounds.
49208 while test "x$ac_lo" != "x$ac_hi"; do
49209 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49210 cat >conftest.$ac_ext <<_ACEOF
49213 cat confdefs.h >>conftest.$ac_ext
49214 cat >>conftest.$ac_ext <<_ACEOF
49215 /* end confdefs.h. */
49216 $ac_includes_default
49220 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49227 rm -f conftest.$ac_objext
49228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49229 (eval $ac_compile) 2>conftest.er1
49231 grep -v '^ *+' conftest.er1 >conftest.err
49233 cat conftest.err >&5
49234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49235 (exit $ac_status); } &&
49236 { ac_try='test -z "$ac_c_werror_flag"
49237 || test ! -s conftest.err'
49238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49239 (eval $ac_try) 2>&5
49241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49242 (exit $ac_status); }; } &&
49243 { ac_try='test -s conftest.$ac_objext'
49244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49245 (eval $ac_try) 2>&5
49247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49248 (exit $ac_status); }; }; then
49251 echo "$as_me: failed program was:" >&5
49252 sed 's/^/| /' conftest.$ac_ext >&5
49254 ac_lo=`expr '(' $ac_mid ')' + 1`
49256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49259 ?*) ac_cv_sizeof_short=$ac_lo;;
49260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49261 See \`config.log' for more details." >&5
49262 echo "$as_me: error: cannot compute sizeof (short), 77
49263 See \`config.log' for more details." >&2;}
49264 { (exit 1); exit 1; }; } ;;
49267 if test "$cross_compiling" = yes; then
49268 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49269 See \`config.log' for more details." >&5
49270 echo "$as_me: error: cannot run test program while cross compiling
49271 See \`config.log' for more details." >&2;}
49272 { (exit 1); exit 1; }; }
49274 cat >conftest.$ac_ext <<_ACEOF
49277 cat confdefs.h >>conftest.$ac_ext
49278 cat >>conftest.$ac_ext <<_ACEOF
49279 /* end confdefs.h. */
49280 $ac_includes_default
49281 long longval () { return (long) (sizeof (short)); }
49282 unsigned long ulongval () { return (long) (sizeof (short)); }
49284 #include <stdlib.h>
49289 FILE *f = fopen ("conftest.val", "w");
49292 if (((long) (sizeof (short))) < 0)
49294 long i = longval ();
49295 if (i != ((long) (sizeof (short))))
49297 fprintf (f, "%ld\n", i);
49301 unsigned long i = ulongval ();
49302 if (i != ((long) (sizeof (short))))
49304 fprintf (f, "%lu\n", i);
49306 exit (ferror (f) || fclose (f) != 0);
49312 rm -f conftest$ac_exeext
49313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49314 (eval $ac_link) 2>&5
49316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49319 (eval $ac_try) 2>&5
49321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49322 (exit $ac_status); }; }; then
49323 ac_cv_sizeof_short=`cat conftest.val`
49325 echo "$as_me: program exited with status $ac_status" >&5
49326 echo "$as_me: failed program was:" >&5
49327 sed 's/^/| /' conftest.$ac_ext >&5
49329 ( exit $ac_status )
49330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49331 See \`config.log' for more details." >&5
49332 echo "$as_me: error: cannot compute sizeof (short), 77
49333 See \`config.log' for more details." >&2;}
49334 { (exit 1); exit 1; }; }
49336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49341 ac_cv_sizeof_short=0
49344 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49345 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49346 cat >>confdefs.h <<_ACEOF
49347 #define SIZEOF_SHORT $ac_cv_sizeof_short
49351 echo "$as_me:$LINENO: checking for int" >&5
49352 echo $ECHO_N "checking for int... $ECHO_C" >&6
49353 if test "${ac_cv_type_int+set}" = set; then
49354 echo $ECHO_N "(cached) $ECHO_C" >&6
49356 cat >conftest.$ac_ext <<_ACEOF
49359 cat confdefs.h >>conftest.$ac_ext
49360 cat >>conftest.$ac_ext <<_ACEOF
49361 /* end confdefs.h. */
49362 $ac_includes_default
49374 rm -f conftest.$ac_objext
49375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49376 (eval $ac_compile) 2>conftest.er1
49378 grep -v '^ *+' conftest.er1 >conftest.err
49380 cat conftest.err >&5
49381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49382 (exit $ac_status); } &&
49383 { ac_try='test -z "$ac_c_werror_flag"
49384 || test ! -s conftest.err'
49385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49386 (eval $ac_try) 2>&5
49388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49389 (exit $ac_status); }; } &&
49390 { ac_try='test -s conftest.$ac_objext'
49391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49392 (eval $ac_try) 2>&5
49394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49395 (exit $ac_status); }; }; then
49398 echo "$as_me: failed program was:" >&5
49399 sed 's/^/| /' conftest.$ac_ext >&5
49403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49405 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49406 echo "${ECHO_T}$ac_cv_type_int" >&6
49408 echo "$as_me:$LINENO: checking size of int" >&5
49409 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49410 if test "${ac_cv_sizeof_int+set}" = set; then
49411 echo $ECHO_N "(cached) $ECHO_C" >&6
49413 if test "$ac_cv_type_int" = yes; then
49414 # The cast to unsigned long works around a bug in the HP C Compiler
49415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49417 # This bug is HP SR number 8606223364.
49418 if test "$cross_compiling" = yes; then
49419 # Depending upon the size, compute the lo and hi bounds.
49420 cat >conftest.$ac_ext <<_ACEOF
49423 cat confdefs.h >>conftest.$ac_ext
49424 cat >>conftest.$ac_ext <<_ACEOF
49425 /* end confdefs.h. */
49426 $ac_includes_default
49430 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49437 rm -f conftest.$ac_objext
49438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49439 (eval $ac_compile) 2>conftest.er1
49441 grep -v '^ *+' conftest.er1 >conftest.err
49443 cat conftest.err >&5
49444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49445 (exit $ac_status); } &&
49446 { ac_try='test -z "$ac_c_werror_flag"
49447 || test ! -s conftest.err'
49448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49449 (eval $ac_try) 2>&5
49451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49452 (exit $ac_status); }; } &&
49453 { ac_try='test -s conftest.$ac_objext'
49454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49455 (eval $ac_try) 2>&5
49457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49458 (exit $ac_status); }; }; then
49461 cat >conftest.$ac_ext <<_ACEOF
49464 cat confdefs.h >>conftest.$ac_ext
49465 cat >>conftest.$ac_ext <<_ACEOF
49466 /* end confdefs.h. */
49467 $ac_includes_default
49471 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49478 rm -f conftest.$ac_objext
49479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49480 (eval $ac_compile) 2>conftest.er1
49482 grep -v '^ *+' conftest.er1 >conftest.err
49484 cat conftest.err >&5
49485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49486 (exit $ac_status); } &&
49487 { ac_try='test -z "$ac_c_werror_flag"
49488 || test ! -s conftest.err'
49489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49490 (eval $ac_try) 2>&5
49492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49493 (exit $ac_status); }; } &&
49494 { ac_try='test -s conftest.$ac_objext'
49495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49496 (eval $ac_try) 2>&5
49498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49499 (exit $ac_status); }; }; then
49500 ac_hi=$ac_mid; break
49502 echo "$as_me: failed program was:" >&5
49503 sed 's/^/| /' conftest.$ac_ext >&5
49505 ac_lo=`expr $ac_mid + 1`
49506 if test $ac_lo -le $ac_mid; then
49510 ac_mid=`expr 2 '*' $ac_mid + 1`
49512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49515 echo "$as_me: failed program was:" >&5
49516 sed 's/^/| /' conftest.$ac_ext >&5
49518 cat >conftest.$ac_ext <<_ACEOF
49521 cat confdefs.h >>conftest.$ac_ext
49522 cat >>conftest.$ac_ext <<_ACEOF
49523 /* end confdefs.h. */
49524 $ac_includes_default
49528 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49535 rm -f conftest.$ac_objext
49536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49537 (eval $ac_compile) 2>conftest.er1
49539 grep -v '^ *+' conftest.er1 >conftest.err
49541 cat conftest.err >&5
49542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49543 (exit $ac_status); } &&
49544 { ac_try='test -z "$ac_c_werror_flag"
49545 || test ! -s conftest.err'
49546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49547 (eval $ac_try) 2>&5
49549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49550 (exit $ac_status); }; } &&
49551 { ac_try='test -s conftest.$ac_objext'
49552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49553 (eval $ac_try) 2>&5
49555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49556 (exit $ac_status); }; }; then
49559 cat >conftest.$ac_ext <<_ACEOF
49562 cat confdefs.h >>conftest.$ac_ext
49563 cat >>conftest.$ac_ext <<_ACEOF
49564 /* end confdefs.h. */
49565 $ac_includes_default
49569 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49576 rm -f conftest.$ac_objext
49577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49578 (eval $ac_compile) 2>conftest.er1
49580 grep -v '^ *+' conftest.er1 >conftest.err
49582 cat conftest.err >&5
49583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49584 (exit $ac_status); } &&
49585 { ac_try='test -z "$ac_c_werror_flag"
49586 || test ! -s conftest.err'
49587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49588 (eval $ac_try) 2>&5
49590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49591 (exit $ac_status); }; } &&
49592 { ac_try='test -s conftest.$ac_objext'
49593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49594 (eval $ac_try) 2>&5
49596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49597 (exit $ac_status); }; }; then
49598 ac_lo=$ac_mid; break
49600 echo "$as_me: failed program was:" >&5
49601 sed 's/^/| /' conftest.$ac_ext >&5
49603 ac_hi=`expr '(' $ac_mid ')' - 1`
49604 if test $ac_mid -le $ac_hi; then
49608 ac_mid=`expr 2 '*' $ac_mid`
49610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49613 echo "$as_me: failed program was:" >&5
49614 sed 's/^/| /' conftest.$ac_ext >&5
49618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49621 # Binary search between lo and hi bounds.
49622 while test "x$ac_lo" != "x$ac_hi"; do
49623 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49624 cat >conftest.$ac_ext <<_ACEOF
49627 cat confdefs.h >>conftest.$ac_ext
49628 cat >>conftest.$ac_ext <<_ACEOF
49629 /* end confdefs.h. */
49630 $ac_includes_default
49634 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49641 rm -f conftest.$ac_objext
49642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49643 (eval $ac_compile) 2>conftest.er1
49645 grep -v '^ *+' conftest.er1 >conftest.err
49647 cat conftest.err >&5
49648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49649 (exit $ac_status); } &&
49650 { ac_try='test -z "$ac_c_werror_flag"
49651 || test ! -s conftest.err'
49652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49653 (eval $ac_try) 2>&5
49655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656 (exit $ac_status); }; } &&
49657 { ac_try='test -s conftest.$ac_objext'
49658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49659 (eval $ac_try) 2>&5
49661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49662 (exit $ac_status); }; }; then
49665 echo "$as_me: failed program was:" >&5
49666 sed 's/^/| /' conftest.$ac_ext >&5
49668 ac_lo=`expr '(' $ac_mid ')' + 1`
49670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49673 ?*) ac_cv_sizeof_int=$ac_lo;;
49674 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49675 See \`config.log' for more details." >&5
49676 echo "$as_me: error: cannot compute sizeof (int), 77
49677 See \`config.log' for more details." >&2;}
49678 { (exit 1); exit 1; }; } ;;
49681 if test "$cross_compiling" = yes; then
49682 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49683 See \`config.log' for more details." >&5
49684 echo "$as_me: error: cannot run test program while cross compiling
49685 See \`config.log' for more details." >&2;}
49686 { (exit 1); exit 1; }; }
49688 cat >conftest.$ac_ext <<_ACEOF
49691 cat confdefs.h >>conftest.$ac_ext
49692 cat >>conftest.$ac_ext <<_ACEOF
49693 /* end confdefs.h. */
49694 $ac_includes_default
49695 long longval () { return (long) (sizeof (int)); }
49696 unsigned long ulongval () { return (long) (sizeof (int)); }
49698 #include <stdlib.h>
49703 FILE *f = fopen ("conftest.val", "w");
49706 if (((long) (sizeof (int))) < 0)
49708 long i = longval ();
49709 if (i != ((long) (sizeof (int))))
49711 fprintf (f, "%ld\n", i);
49715 unsigned long i = ulongval ();
49716 if (i != ((long) (sizeof (int))))
49718 fprintf (f, "%lu\n", i);
49720 exit (ferror (f) || fclose (f) != 0);
49726 rm -f conftest$ac_exeext
49727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49728 (eval $ac_link) 2>&5
49730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49733 (eval $ac_try) 2>&5
49735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49736 (exit $ac_status); }; }; then
49737 ac_cv_sizeof_int=`cat conftest.val`
49739 echo "$as_me: program exited with status $ac_status" >&5
49740 echo "$as_me: failed program was:" >&5
49741 sed 's/^/| /' conftest.$ac_ext >&5
49743 ( exit $ac_status )
49744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49745 See \`config.log' for more details." >&5
49746 echo "$as_me: error: cannot compute sizeof (int), 77
49747 See \`config.log' for more details." >&2;}
49748 { (exit 1); exit 1; }; }
49750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49758 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49759 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49760 cat >>confdefs.h <<_ACEOF
49761 #define SIZEOF_INT $ac_cv_sizeof_int
49765 echo "$as_me:$LINENO: checking for long" >&5
49766 echo $ECHO_N "checking for long... $ECHO_C" >&6
49767 if test "${ac_cv_type_long+set}" = set; then
49768 echo $ECHO_N "(cached) $ECHO_C" >&6
49770 cat >conftest.$ac_ext <<_ACEOF
49773 cat confdefs.h >>conftest.$ac_ext
49774 cat >>conftest.$ac_ext <<_ACEOF
49775 /* end confdefs.h. */
49776 $ac_includes_default
49788 rm -f conftest.$ac_objext
49789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49790 (eval $ac_compile) 2>conftest.er1
49792 grep -v '^ *+' conftest.er1 >conftest.err
49794 cat conftest.err >&5
49795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49796 (exit $ac_status); } &&
49797 { ac_try='test -z "$ac_c_werror_flag"
49798 || test ! -s conftest.err'
49799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49800 (eval $ac_try) 2>&5
49802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49803 (exit $ac_status); }; } &&
49804 { ac_try='test -s conftest.$ac_objext'
49805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49806 (eval $ac_try) 2>&5
49808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49809 (exit $ac_status); }; }; then
49810 ac_cv_type_long=yes
49812 echo "$as_me: failed program was:" >&5
49813 sed 's/^/| /' conftest.$ac_ext >&5
49817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49819 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49820 echo "${ECHO_T}$ac_cv_type_long" >&6
49822 echo "$as_me:$LINENO: checking size of long" >&5
49823 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49824 if test "${ac_cv_sizeof_long+set}" = set; then
49825 echo $ECHO_N "(cached) $ECHO_C" >&6
49827 if test "$ac_cv_type_long" = yes; then
49828 # The cast to unsigned long works around a bug in the HP C Compiler
49829 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49830 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49831 # This bug is HP SR number 8606223364.
49832 if test "$cross_compiling" = yes; then
49833 # Depending upon the size, compute the lo and hi bounds.
49834 cat >conftest.$ac_ext <<_ACEOF
49837 cat confdefs.h >>conftest.$ac_ext
49838 cat >>conftest.$ac_ext <<_ACEOF
49839 /* end confdefs.h. */
49840 $ac_includes_default
49844 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49851 rm -f conftest.$ac_objext
49852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49853 (eval $ac_compile) 2>conftest.er1
49855 grep -v '^ *+' conftest.er1 >conftest.err
49857 cat conftest.err >&5
49858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49859 (exit $ac_status); } &&
49860 { ac_try='test -z "$ac_c_werror_flag"
49861 || test ! -s conftest.err'
49862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49863 (eval $ac_try) 2>&5
49865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49866 (exit $ac_status); }; } &&
49867 { ac_try='test -s conftest.$ac_objext'
49868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49869 (eval $ac_try) 2>&5
49871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49872 (exit $ac_status); }; }; then
49875 cat >conftest.$ac_ext <<_ACEOF
49878 cat confdefs.h >>conftest.$ac_ext
49879 cat >>conftest.$ac_ext <<_ACEOF
49880 /* end confdefs.h. */
49881 $ac_includes_default
49885 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49892 rm -f conftest.$ac_objext
49893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49894 (eval $ac_compile) 2>conftest.er1
49896 grep -v '^ *+' conftest.er1 >conftest.err
49898 cat conftest.err >&5
49899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49900 (exit $ac_status); } &&
49901 { ac_try='test -z "$ac_c_werror_flag"
49902 || test ! -s conftest.err'
49903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49904 (eval $ac_try) 2>&5
49906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49907 (exit $ac_status); }; } &&
49908 { ac_try='test -s conftest.$ac_objext'
49909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49910 (eval $ac_try) 2>&5
49912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49913 (exit $ac_status); }; }; then
49914 ac_hi=$ac_mid; break
49916 echo "$as_me: failed program was:" >&5
49917 sed 's/^/| /' conftest.$ac_ext >&5
49919 ac_lo=`expr $ac_mid + 1`
49920 if test $ac_lo -le $ac_mid; then
49924 ac_mid=`expr 2 '*' $ac_mid + 1`
49926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49929 echo "$as_me: failed program was:" >&5
49930 sed 's/^/| /' conftest.$ac_ext >&5
49932 cat >conftest.$ac_ext <<_ACEOF
49935 cat confdefs.h >>conftest.$ac_ext
49936 cat >>conftest.$ac_ext <<_ACEOF
49937 /* end confdefs.h. */
49938 $ac_includes_default
49942 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49949 rm -f conftest.$ac_objext
49950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49951 (eval $ac_compile) 2>conftest.er1
49953 grep -v '^ *+' conftest.er1 >conftest.err
49955 cat conftest.err >&5
49956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49957 (exit $ac_status); } &&
49958 { ac_try='test -z "$ac_c_werror_flag"
49959 || test ! -s conftest.err'
49960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49961 (eval $ac_try) 2>&5
49963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49964 (exit $ac_status); }; } &&
49965 { ac_try='test -s conftest.$ac_objext'
49966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49967 (eval $ac_try) 2>&5
49969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49970 (exit $ac_status); }; }; then
49973 cat >conftest.$ac_ext <<_ACEOF
49976 cat confdefs.h >>conftest.$ac_ext
49977 cat >>conftest.$ac_ext <<_ACEOF
49978 /* end confdefs.h. */
49979 $ac_includes_default
49983 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49990 rm -f conftest.$ac_objext
49991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49992 (eval $ac_compile) 2>conftest.er1
49994 grep -v '^ *+' conftest.er1 >conftest.err
49996 cat conftest.err >&5
49997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49998 (exit $ac_status); } &&
49999 { ac_try='test -z "$ac_c_werror_flag"
50000 || test ! -s conftest.err'
50001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50002 (eval $ac_try) 2>&5
50004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50005 (exit $ac_status); }; } &&
50006 { ac_try='test -s conftest.$ac_objext'
50007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50008 (eval $ac_try) 2>&5
50010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50011 (exit $ac_status); }; }; then
50012 ac_lo=$ac_mid; break
50014 echo "$as_me: failed program was:" >&5
50015 sed 's/^/| /' conftest.$ac_ext >&5
50017 ac_hi=`expr '(' $ac_mid ')' - 1`
50018 if test $ac_mid -le $ac_hi; then
50022 ac_mid=`expr 2 '*' $ac_mid`
50024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50027 echo "$as_me: failed program was:" >&5
50028 sed 's/^/| /' conftest.$ac_ext >&5
50032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50035 # Binary search between lo and hi bounds.
50036 while test "x$ac_lo" != "x$ac_hi"; do
50037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50038 cat >conftest.$ac_ext <<_ACEOF
50041 cat confdefs.h >>conftest.$ac_ext
50042 cat >>conftest.$ac_ext <<_ACEOF
50043 /* end confdefs.h. */
50044 $ac_includes_default
50048 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
50055 rm -f conftest.$ac_objext
50056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50057 (eval $ac_compile) 2>conftest.er1
50059 grep -v '^ *+' conftest.er1 >conftest.err
50061 cat conftest.err >&5
50062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50063 (exit $ac_status); } &&
50064 { ac_try='test -z "$ac_c_werror_flag"
50065 || test ! -s conftest.err'
50066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50067 (eval $ac_try) 2>&5
50069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50070 (exit $ac_status); }; } &&
50071 { ac_try='test -s conftest.$ac_objext'
50072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50073 (eval $ac_try) 2>&5
50075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50076 (exit $ac_status); }; }; then
50079 echo "$as_me: failed program was:" >&5
50080 sed 's/^/| /' conftest.$ac_ext >&5
50082 ac_lo=`expr '(' $ac_mid ')' + 1`
50084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50087 ?*) ac_cv_sizeof_long=$ac_lo;;
50088 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50089 See \`config.log' for more details." >&5
50090 echo "$as_me: error: cannot compute sizeof (long), 77
50091 See \`config.log' for more details." >&2;}
50092 { (exit 1); exit 1; }; } ;;
50095 if test "$cross_compiling" = yes; then
50096 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50097 See \`config.log' for more details." >&5
50098 echo "$as_me: error: cannot run test program while cross compiling
50099 See \`config.log' for more details." >&2;}
50100 { (exit 1); exit 1; }; }
50102 cat >conftest.$ac_ext <<_ACEOF
50105 cat confdefs.h >>conftest.$ac_ext
50106 cat >>conftest.$ac_ext <<_ACEOF
50107 /* end confdefs.h. */
50108 $ac_includes_default
50109 long longval () { return (long) (sizeof (long)); }
50110 unsigned long ulongval () { return (long) (sizeof (long)); }
50112 #include <stdlib.h>
50117 FILE *f = fopen ("conftest.val", "w");
50120 if (((long) (sizeof (long))) < 0)
50122 long i = longval ();
50123 if (i != ((long) (sizeof (long))))
50125 fprintf (f, "%ld\n", i);
50129 unsigned long i = ulongval ();
50130 if (i != ((long) (sizeof (long))))
50132 fprintf (f, "%lu\n", i);
50134 exit (ferror (f) || fclose (f) != 0);
50140 rm -f conftest$ac_exeext
50141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50142 (eval $ac_link) 2>&5
50144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50147 (eval $ac_try) 2>&5
50149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50150 (exit $ac_status); }; }; then
50151 ac_cv_sizeof_long=`cat conftest.val`
50153 echo "$as_me: program exited with status $ac_status" >&5
50154 echo "$as_me: failed program was:" >&5
50155 sed 's/^/| /' conftest.$ac_ext >&5
50157 ( exit $ac_status )
50158 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50159 See \`config.log' for more details." >&5
50160 echo "$as_me: error: cannot compute sizeof (long), 77
50161 See \`config.log' for more details." >&2;}
50162 { (exit 1); exit 1; }; }
50164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50169 ac_cv_sizeof_long=0
50172 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50173 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50174 cat >>confdefs.h <<_ACEOF
50175 #define SIZEOF_LONG $ac_cv_sizeof_long
50179 echo "$as_me:$LINENO: checking for wchar_t" >&5
50180 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50181 if test "${ac_cv_type_wchar_t+set}" = set; then
50182 echo $ECHO_N "(cached) $ECHO_C" >&6
50184 cat >conftest.$ac_ext <<_ACEOF
50187 cat confdefs.h >>conftest.$ac_ext
50188 cat >>conftest.$ac_ext <<_ACEOF
50189 /* end confdefs.h. */
50190 $ac_includes_default
50196 if (sizeof (wchar_t))
50202 rm -f conftest.$ac_objext
50203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50204 (eval $ac_compile) 2>conftest.er1
50206 grep -v '^ *+' conftest.er1 >conftest.err
50208 cat conftest.err >&5
50209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50210 (exit $ac_status); } &&
50211 { ac_try='test -z "$ac_c_werror_flag"
50212 || test ! -s conftest.err'
50213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50214 (eval $ac_try) 2>&5
50216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50217 (exit $ac_status); }; } &&
50218 { ac_try='test -s conftest.$ac_objext'
50219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50220 (eval $ac_try) 2>&5
50222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50223 (exit $ac_status); }; }; then
50224 ac_cv_type_wchar_t=yes
50226 echo "$as_me: failed program was:" >&5
50227 sed 's/^/| /' conftest.$ac_ext >&5
50229 ac_cv_type_wchar_t=no
50231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50233 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50234 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50236 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50237 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50238 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50239 echo $ECHO_N "(cached) $ECHO_C" >&6
50241 if test "$ac_cv_type_wchar_t" = yes; then
50242 # The cast to unsigned long works around a bug in the HP C Compiler
50243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50245 # This bug is HP SR number 8606223364.
50246 if test "$cross_compiling" = yes; then
50247 # Depending upon the size, compute the lo and hi bounds.
50248 cat >conftest.$ac_ext <<_ACEOF
50251 cat confdefs.h >>conftest.$ac_ext
50252 cat >>conftest.$ac_ext <<_ACEOF
50253 /* end confdefs.h. */
50254 $ac_includes_default
50258 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50265 rm -f conftest.$ac_objext
50266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50267 (eval $ac_compile) 2>conftest.er1
50269 grep -v '^ *+' conftest.er1 >conftest.err
50271 cat conftest.err >&5
50272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50273 (exit $ac_status); } &&
50274 { ac_try='test -z "$ac_c_werror_flag"
50275 || test ! -s conftest.err'
50276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50277 (eval $ac_try) 2>&5
50279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50280 (exit $ac_status); }; } &&
50281 { ac_try='test -s conftest.$ac_objext'
50282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50283 (eval $ac_try) 2>&5
50285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50286 (exit $ac_status); }; }; then
50289 cat >conftest.$ac_ext <<_ACEOF
50292 cat confdefs.h >>conftest.$ac_ext
50293 cat >>conftest.$ac_ext <<_ACEOF
50294 /* end confdefs.h. */
50295 $ac_includes_default
50299 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50306 rm -f conftest.$ac_objext
50307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50308 (eval $ac_compile) 2>conftest.er1
50310 grep -v '^ *+' conftest.er1 >conftest.err
50312 cat conftest.err >&5
50313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50314 (exit $ac_status); } &&
50315 { ac_try='test -z "$ac_c_werror_flag"
50316 || test ! -s conftest.err'
50317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50318 (eval $ac_try) 2>&5
50320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50321 (exit $ac_status); }; } &&
50322 { ac_try='test -s conftest.$ac_objext'
50323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50324 (eval $ac_try) 2>&5
50326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50327 (exit $ac_status); }; }; then
50328 ac_hi=$ac_mid; break
50330 echo "$as_me: failed program was:" >&5
50331 sed 's/^/| /' conftest.$ac_ext >&5
50333 ac_lo=`expr $ac_mid + 1`
50334 if test $ac_lo -le $ac_mid; then
50338 ac_mid=`expr 2 '*' $ac_mid + 1`
50340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50343 echo "$as_me: failed program was:" >&5
50344 sed 's/^/| /' conftest.$ac_ext >&5
50346 cat >conftest.$ac_ext <<_ACEOF
50349 cat confdefs.h >>conftest.$ac_ext
50350 cat >>conftest.$ac_ext <<_ACEOF
50351 /* end confdefs.h. */
50352 $ac_includes_default
50356 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50363 rm -f conftest.$ac_objext
50364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50365 (eval $ac_compile) 2>conftest.er1
50367 grep -v '^ *+' conftest.er1 >conftest.err
50369 cat conftest.err >&5
50370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50371 (exit $ac_status); } &&
50372 { ac_try='test -z "$ac_c_werror_flag"
50373 || test ! -s conftest.err'
50374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50375 (eval $ac_try) 2>&5
50377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50378 (exit $ac_status); }; } &&
50379 { ac_try='test -s conftest.$ac_objext'
50380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50381 (eval $ac_try) 2>&5
50383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50384 (exit $ac_status); }; }; then
50387 cat >conftest.$ac_ext <<_ACEOF
50390 cat confdefs.h >>conftest.$ac_ext
50391 cat >>conftest.$ac_ext <<_ACEOF
50392 /* end confdefs.h. */
50393 $ac_includes_default
50397 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50404 rm -f conftest.$ac_objext
50405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50406 (eval $ac_compile) 2>conftest.er1
50408 grep -v '^ *+' conftest.er1 >conftest.err
50410 cat conftest.err >&5
50411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50412 (exit $ac_status); } &&
50413 { ac_try='test -z "$ac_c_werror_flag"
50414 || test ! -s conftest.err'
50415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50416 (eval $ac_try) 2>&5
50418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50419 (exit $ac_status); }; } &&
50420 { ac_try='test -s conftest.$ac_objext'
50421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50422 (eval $ac_try) 2>&5
50424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50425 (exit $ac_status); }; }; then
50426 ac_lo=$ac_mid; break
50428 echo "$as_me: failed program was:" >&5
50429 sed 's/^/| /' conftest.$ac_ext >&5
50431 ac_hi=`expr '(' $ac_mid ')' - 1`
50432 if test $ac_mid -le $ac_hi; then
50436 ac_mid=`expr 2 '*' $ac_mid`
50438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50441 echo "$as_me: failed program was:" >&5
50442 sed 's/^/| /' conftest.$ac_ext >&5
50446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50449 # Binary search between lo and hi bounds.
50450 while test "x$ac_lo" != "x$ac_hi"; do
50451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50452 cat >conftest.$ac_ext <<_ACEOF
50455 cat confdefs.h >>conftest.$ac_ext
50456 cat >>conftest.$ac_ext <<_ACEOF
50457 /* end confdefs.h. */
50458 $ac_includes_default
50462 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50469 rm -f conftest.$ac_objext
50470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50471 (eval $ac_compile) 2>conftest.er1
50473 grep -v '^ *+' conftest.er1 >conftest.err
50475 cat conftest.err >&5
50476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50477 (exit $ac_status); } &&
50478 { ac_try='test -z "$ac_c_werror_flag"
50479 || test ! -s conftest.err'
50480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50481 (eval $ac_try) 2>&5
50483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50484 (exit $ac_status); }; } &&
50485 { ac_try='test -s conftest.$ac_objext'
50486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50487 (eval $ac_try) 2>&5
50489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50490 (exit $ac_status); }; }; then
50493 echo "$as_me: failed program was:" >&5
50494 sed 's/^/| /' conftest.$ac_ext >&5
50496 ac_lo=`expr '(' $ac_mid ')' + 1`
50498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50501 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50502 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50503 See \`config.log' for more details." >&5
50504 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50505 See \`config.log' for more details." >&2;}
50506 { (exit 1); exit 1; }; } ;;
50509 if test "$cross_compiling" = yes; then
50510 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50511 See \`config.log' for more details." >&5
50512 echo "$as_me: error: cannot run test program while cross compiling
50513 See \`config.log' for more details." >&2;}
50514 { (exit 1); exit 1; }; }
50516 cat >conftest.$ac_ext <<_ACEOF
50519 cat confdefs.h >>conftest.$ac_ext
50520 cat >>conftest.$ac_ext <<_ACEOF
50521 /* end confdefs.h. */
50522 $ac_includes_default
50523 long longval () { return (long) (sizeof (wchar_t)); }
50524 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50526 #include <stdlib.h>
50531 FILE *f = fopen ("conftest.val", "w");
50534 if (((long) (sizeof (wchar_t))) < 0)
50536 long i = longval ();
50537 if (i != ((long) (sizeof (wchar_t))))
50539 fprintf (f, "%ld\n", i);
50543 unsigned long i = ulongval ();
50544 if (i != ((long) (sizeof (wchar_t))))
50546 fprintf (f, "%lu\n", i);
50548 exit (ferror (f) || fclose (f) != 0);
50554 rm -f conftest$ac_exeext
50555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50556 (eval $ac_link) 2>&5
50558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50561 (eval $ac_try) 2>&5
50563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50564 (exit $ac_status); }; }; then
50565 ac_cv_sizeof_wchar_t=`cat conftest.val`
50567 echo "$as_me: program exited with status $ac_status" >&5
50568 echo "$as_me: failed program was:" >&5
50569 sed 's/^/| /' conftest.$ac_ext >&5
50571 ( exit $ac_status )
50572 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50573 See \`config.log' for more details." >&5
50574 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50575 See \`config.log' for more details." >&2;}
50576 { (exit 1); exit 1; }; }
50578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50583 ac_cv_sizeof_wchar_t=0
50586 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50587 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50588 cat >>confdefs.h <<_ACEOF
50589 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50594 if test "$ac_cv_sizeof_int" -lt 4 ; then
50595 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50596 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50599 cat >>confdefs.h <<\_ACEOF
50600 #define LBER_INT_T long
50605 cat >>confdefs.h <<\_ACEOF
50606 #define LBER_INT_T int
50612 cat >>confdefs.h <<\_ACEOF
50613 #define LBER_LEN_T long
50617 cat >>confdefs.h <<\_ACEOF
50618 #define LBER_SOCKET_T int
50622 cat >>confdefs.h <<\_ACEOF
50623 #define LBER_TAG_T long
50627 echo "$as_me:$LINENO: checking for working memcmp" >&5
50628 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50629 if test "${ac_cv_func_memcmp_working+set}" = set; then
50630 echo $ECHO_N "(cached) $ECHO_C" >&6
50632 if test "$cross_compiling" = yes; then
50633 ac_cv_func_memcmp_working=no
50635 cat >conftest.$ac_ext <<_ACEOF
50638 cat confdefs.h >>conftest.$ac_ext
50639 cat >>conftest.$ac_ext <<_ACEOF
50640 /* end confdefs.h. */
50641 $ac_includes_default
50646 /* Some versions of memcmp are not 8-bit clean. */
50647 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50648 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50651 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50652 or more and with at least one buffer not starting on a 4-byte boundary.
50653 William Lewis provided this test program. */
50658 for (i = 0; i < 4; i++)
50662 strcpy (a, "--------01111111");
50663 strcpy (b, "--------10000000");
50664 if (memcmp (a, b, 16) >= 0)
50674 rm -f conftest$ac_exeext
50675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50676 (eval $ac_link) 2>&5
50678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50681 (eval $ac_try) 2>&5
50683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50684 (exit $ac_status); }; }; then
50685 ac_cv_func_memcmp_working=yes
50687 echo "$as_me: program exited with status $ac_status" >&5
50688 echo "$as_me: failed program was:" >&5
50689 sed 's/^/| /' conftest.$ac_ext >&5
50691 ( exit $ac_status )
50692 ac_cv_func_memcmp_working=no
50694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50697 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50698 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50699 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50700 "memcmp.$ac_objext" | \
50701 *" memcmp.$ac_objext" | \
50702 "memcmp.$ac_objext "* | \
50703 *" memcmp.$ac_objext "* ) ;;
50704 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50709 if test $ac_cv_func_memcmp_working = no ; then
50711 cat >>confdefs.h <<\_ACEOF
50712 #define NEED_MEMCMP_REPLACEMENT 1
50718 for ac_func in strftime
50720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50721 echo "$as_me:$LINENO: checking for $ac_func" >&5
50722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50723 if eval "test \"\${$as_ac_var+set}\" = set"; then
50724 echo $ECHO_N "(cached) $ECHO_C" >&6
50726 cat >conftest.$ac_ext <<_ACEOF
50729 cat confdefs.h >>conftest.$ac_ext
50730 cat >>conftest.$ac_ext <<_ACEOF
50731 /* end confdefs.h. */
50732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50734 #define $ac_func innocuous_$ac_func
50736 /* System header to define __stub macros and hopefully few prototypes,
50737 which can conflict with char $ac_func (); below.
50738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50739 <limits.h> exists even on freestanding compilers. */
50742 # include <limits.h>
50744 # include <assert.h>
50749 /* Override any gcc2 internal prototype to avoid an error. */
50754 /* We use char because int might match the return type of a gcc2
50755 builtin and then its argument prototype would still apply. */
50757 /* The GNU C library defines this for functions which it implements
50758 to always fail with ENOSYS. Some functions are actually named
50759 something starting with __ and the normal name is an alias. */
50760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50763 char (*f) () = $ac_func;
50772 return f != $ac_func;
50777 rm -f conftest.$ac_objext conftest$ac_exeext
50778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50779 (eval $ac_link) 2>conftest.er1
50781 grep -v '^ *+' conftest.er1 >conftest.err
50783 cat conftest.err >&5
50784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50785 (exit $ac_status); } &&
50786 { ac_try='test -z "$ac_c_werror_flag"
50787 || test ! -s conftest.err'
50788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50789 (eval $ac_try) 2>&5
50791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50792 (exit $ac_status); }; } &&
50793 { ac_try='test -s conftest$ac_exeext'
50794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50795 (eval $ac_try) 2>&5
50797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50798 (exit $ac_status); }; }; then
50799 eval "$as_ac_var=yes"
50801 echo "$as_me: failed program was:" >&5
50802 sed 's/^/| /' conftest.$ac_ext >&5
50804 eval "$as_ac_var=no"
50806 rm -f conftest.err conftest.$ac_objext \
50807 conftest$ac_exeext conftest.$ac_ext
50809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50811 if test `eval echo '${'$as_ac_var'}'` = yes; then
50812 cat >>confdefs.h <<_ACEOF
50813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50817 # strftime is in -lintl on SCO UNIX.
50818 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50819 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50820 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50821 echo $ECHO_N "(cached) $ECHO_C" >&6
50823 ac_check_lib_save_LIBS=$LIBS
50824 LIBS="-lintl $LIBS"
50825 cat >conftest.$ac_ext <<_ACEOF
50828 cat confdefs.h >>conftest.$ac_ext
50829 cat >>conftest.$ac_ext <<_ACEOF
50830 /* end confdefs.h. */
50832 /* Override any gcc2 internal prototype to avoid an error. */
50836 /* We use char because int might match the return type of a gcc2
50837 builtin and then its argument prototype would still apply. */
50847 rm -f conftest.$ac_objext conftest$ac_exeext
50848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50849 (eval $ac_link) 2>conftest.er1
50851 grep -v '^ *+' conftest.er1 >conftest.err
50853 cat conftest.err >&5
50854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50855 (exit $ac_status); } &&
50856 { ac_try='test -z "$ac_c_werror_flag"
50857 || test ! -s conftest.err'
50858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50859 (eval $ac_try) 2>&5
50861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50862 (exit $ac_status); }; } &&
50863 { ac_try='test -s conftest$ac_exeext'
50864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50865 (eval $ac_try) 2>&5
50867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50868 (exit $ac_status); }; }; then
50869 ac_cv_lib_intl_strftime=yes
50871 echo "$as_me: failed program was:" >&5
50872 sed 's/^/| /' conftest.$ac_ext >&5
50874 ac_cv_lib_intl_strftime=no
50876 rm -f conftest.err conftest.$ac_objext \
50877 conftest$ac_exeext conftest.$ac_ext
50878 LIBS=$ac_check_lib_save_LIBS
50880 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50881 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50882 if test $ac_cv_lib_intl_strftime = yes; then
50883 cat >>confdefs.h <<\_ACEOF
50884 #define HAVE_STRFTIME 1
50887 LIBS="-lintl $LIBS"
50894 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50895 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50896 if test "${ol_cv_func_inet_aton+set}" = set; then
50897 echo $ECHO_N "(cached) $ECHO_C" >&6
50899 cat >conftest.$ac_ext <<_ACEOF
50902 cat confdefs.h >>conftest.$ac_ext
50903 cat >>conftest.$ac_ext <<_ACEOF
50904 /* end confdefs.h. */
50906 #ifdef HAVE_SYS_TYPES_H
50907 # include <sys/types.h>
50909 #ifdef HAVE_SYS_SOCKET_H
50910 # include <sys/socket.h>
50911 # ifdef HAVE_SYS_SELECT_H
50912 # include <sys/select.h>
50914 # include <netinet/in.h>
50915 # ifdef HAVE_ARPA_INET_H
50916 # include <arpa/inet.h>
50924 int rc = inet_aton( "255.255.255.255", &in );
50929 rm -f conftest.$ac_objext conftest$ac_exeext
50930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50931 (eval $ac_link) 2>conftest.er1
50933 grep -v '^ *+' conftest.er1 >conftest.err
50935 cat conftest.err >&5
50936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50937 (exit $ac_status); } &&
50938 { ac_try='test -z "$ac_c_werror_flag"
50939 || test ! -s conftest.err'
50940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50941 (eval $ac_try) 2>&5
50943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50944 (exit $ac_status); }; } &&
50945 { ac_try='test -s conftest$ac_exeext'
50946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50947 (eval $ac_try) 2>&5
50949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50950 (exit $ac_status); }; }; then
50951 ol_cv_func_inet_aton=yes
50953 echo "$as_me: failed program was:" >&5
50954 sed 's/^/| /' conftest.$ac_ext >&5
50956 ol_cv_func_inet_aton=no
50958 rm -f conftest.err conftest.$ac_objext \
50959 conftest$ac_exeext conftest.$ac_ext
50961 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50962 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50963 if test $ol_cv_func_inet_aton != no; then
50965 cat >>confdefs.h <<\_ACEOF
50966 #define HAVE_INET_ATON 1
50972 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50973 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50974 if test "${ac_cv_func__spawnlp+set}" = set; then
50975 echo $ECHO_N "(cached) $ECHO_C" >&6
50977 cat >conftest.$ac_ext <<_ACEOF
50980 cat confdefs.h >>conftest.$ac_ext
50981 cat >>conftest.$ac_ext <<_ACEOF
50982 /* end confdefs.h. */
50983 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50985 #define _spawnlp innocuous__spawnlp
50987 /* System header to define __stub macros and hopefully few prototypes,
50988 which can conflict with char _spawnlp (); below.
50989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50990 <limits.h> exists even on freestanding compilers. */
50993 # include <limits.h>
50995 # include <assert.h>
51000 /* Override any gcc2 internal prototype to avoid an error. */
51005 /* We use char because int might match the return type of a gcc2
51006 builtin and then its argument prototype would still apply. */
51008 /* The GNU C library defines this for functions which it implements
51009 to always fail with ENOSYS. Some functions are actually named
51010 something starting with __ and the normal name is an alias. */
51011 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
51014 char (*f) () = _spawnlp;
51023 return f != _spawnlp;
51028 rm -f conftest.$ac_objext conftest$ac_exeext
51029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51030 (eval $ac_link) 2>conftest.er1
51032 grep -v '^ *+' conftest.er1 >conftest.err
51034 cat conftest.err >&5
51035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51036 (exit $ac_status); } &&
51037 { ac_try='test -z "$ac_c_werror_flag"
51038 || test ! -s conftest.err'
51039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51040 (eval $ac_try) 2>&5
51042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51043 (exit $ac_status); }; } &&
51044 { ac_try='test -s conftest$ac_exeext'
51045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51046 (eval $ac_try) 2>&5
51048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51049 (exit $ac_status); }; }; then
51050 ac_cv_func__spawnlp=yes
51052 echo "$as_me: failed program was:" >&5
51053 sed 's/^/| /' conftest.$ac_ext >&5
51055 ac_cv_func__spawnlp=no
51057 rm -f conftest.err conftest.$ac_objext \
51058 conftest$ac_exeext conftest.$ac_ext
51060 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
51061 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
51062 if test $ac_cv_func__spawnlp = yes; then
51064 cat >>confdefs.h <<\_ACEOF
51065 #define HAVE_SPAWNLP 1
51071 echo "$as_me:$LINENO: checking for _snprintf" >&5
51072 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
51073 if test "${ac_cv_func__snprintf+set}" = set; then
51074 echo $ECHO_N "(cached) $ECHO_C" >&6
51076 cat >conftest.$ac_ext <<_ACEOF
51079 cat confdefs.h >>conftest.$ac_ext
51080 cat >>conftest.$ac_ext <<_ACEOF
51081 /* end confdefs.h. */
51082 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
51083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51084 #define _snprintf innocuous__snprintf
51086 /* System header to define __stub macros and hopefully few prototypes,
51087 which can conflict with char _snprintf (); below.
51088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51089 <limits.h> exists even on freestanding compilers. */
51092 # include <limits.h>
51094 # include <assert.h>
51099 /* Override any gcc2 internal prototype to avoid an error. */
51104 /* We use char because int might match the return type of a gcc2
51105 builtin and then its argument prototype would still apply. */
51107 /* The GNU C library defines this for functions which it implements
51108 to always fail with ENOSYS. Some functions are actually named
51109 something starting with __ and the normal name is an alias. */
51110 #if defined (__stub__snprintf) || defined (__stub____snprintf)
51113 char (*f) () = _snprintf;
51122 return f != _snprintf;
51127 rm -f conftest.$ac_objext conftest$ac_exeext
51128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51129 (eval $ac_link) 2>conftest.er1
51131 grep -v '^ *+' conftest.er1 >conftest.err
51133 cat conftest.err >&5
51134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51135 (exit $ac_status); } &&
51136 { ac_try='test -z "$ac_c_werror_flag"
51137 || test ! -s conftest.err'
51138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51139 (eval $ac_try) 2>&5
51141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51142 (exit $ac_status); }; } &&
51143 { ac_try='test -s conftest$ac_exeext'
51144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51145 (eval $ac_try) 2>&5
51147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51148 (exit $ac_status); }; }; then
51149 ac_cv_func__snprintf=yes
51151 echo "$as_me: failed program was:" >&5
51152 sed 's/^/| /' conftest.$ac_ext >&5
51154 ac_cv_func__snprintf=no
51156 rm -f conftest.err conftest.$ac_objext \
51157 conftest$ac_exeext conftest.$ac_ext
51159 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51160 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51161 if test $ac_cv_func__snprintf = yes; then
51162 ac_cv_func_snprintf=yes
51164 cat >>confdefs.h <<\_ACEOF
51165 #define snprintf _snprintf
51172 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51173 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51174 if test "${ac_cv_func__vsnprintf+set}" = set; then
51175 echo $ECHO_N "(cached) $ECHO_C" >&6
51177 cat >conftest.$ac_ext <<_ACEOF
51180 cat confdefs.h >>conftest.$ac_ext
51181 cat >>conftest.$ac_ext <<_ACEOF
51182 /* end confdefs.h. */
51183 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51185 #define _vsnprintf innocuous__vsnprintf
51187 /* System header to define __stub macros and hopefully few prototypes,
51188 which can conflict with char _vsnprintf (); below.
51189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51190 <limits.h> exists even on freestanding compilers. */
51193 # include <limits.h>
51195 # include <assert.h>
51200 /* Override any gcc2 internal prototype to avoid an error. */
51205 /* We use char because int might match the return type of a gcc2
51206 builtin and then its argument prototype would still apply. */
51207 char _vsnprintf ();
51208 /* The GNU C library defines this for functions which it implements
51209 to always fail with ENOSYS. Some functions are actually named
51210 something starting with __ and the normal name is an alias. */
51211 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51214 char (*f) () = _vsnprintf;
51223 return f != _vsnprintf;
51228 rm -f conftest.$ac_objext conftest$ac_exeext
51229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51230 (eval $ac_link) 2>conftest.er1
51232 grep -v '^ *+' conftest.er1 >conftest.err
51234 cat conftest.err >&5
51235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51236 (exit $ac_status); } &&
51237 { ac_try='test -z "$ac_c_werror_flag"
51238 || test ! -s conftest.err'
51239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51240 (eval $ac_try) 2>&5
51242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51243 (exit $ac_status); }; } &&
51244 { ac_try='test -s conftest$ac_exeext'
51245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51246 (eval $ac_try) 2>&5
51248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51249 (exit $ac_status); }; }; then
51250 ac_cv_func__vsnprintf=yes
51252 echo "$as_me: failed program was:" >&5
51253 sed 's/^/| /' conftest.$ac_ext >&5
51255 ac_cv_func__vsnprintf=no
51257 rm -f conftest.err conftest.$ac_objext \
51258 conftest$ac_exeext conftest.$ac_ext
51260 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51261 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51262 if test $ac_cv_func__vsnprintf = yes; then
51263 ac_cv_func_vsnprintf=yes
51265 cat >>confdefs.h <<\_ACEOF
51266 #define vsnprintf _vsnprintf
51274 for ac_func in vprintf
51276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51277 echo "$as_me:$LINENO: checking for $ac_func" >&5
51278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51279 if eval "test \"\${$as_ac_var+set}\" = set"; then
51280 echo $ECHO_N "(cached) $ECHO_C" >&6
51282 cat >conftest.$ac_ext <<_ACEOF
51285 cat confdefs.h >>conftest.$ac_ext
51286 cat >>conftest.$ac_ext <<_ACEOF
51287 /* end confdefs.h. */
51288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51290 #define $ac_func innocuous_$ac_func
51292 /* System header to define __stub macros and hopefully few prototypes,
51293 which can conflict with char $ac_func (); below.
51294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51295 <limits.h> exists even on freestanding compilers. */
51298 # include <limits.h>
51300 # include <assert.h>
51305 /* Override any gcc2 internal prototype to avoid an error. */
51310 /* We use char because int might match the return type of a gcc2
51311 builtin and then its argument prototype would still apply. */
51313 /* The GNU C library defines this for functions which it implements
51314 to always fail with ENOSYS. Some functions are actually named
51315 something starting with __ and the normal name is an alias. */
51316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51319 char (*f) () = $ac_func;
51328 return f != $ac_func;
51333 rm -f conftest.$ac_objext conftest$ac_exeext
51334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51335 (eval $ac_link) 2>conftest.er1
51337 grep -v '^ *+' conftest.er1 >conftest.err
51339 cat conftest.err >&5
51340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51341 (exit $ac_status); } &&
51342 { ac_try='test -z "$ac_c_werror_flag"
51343 || test ! -s conftest.err'
51344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51345 (eval $ac_try) 2>&5
51347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51348 (exit $ac_status); }; } &&
51349 { ac_try='test -s conftest$ac_exeext'
51350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51351 (eval $ac_try) 2>&5
51353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51354 (exit $ac_status); }; }; then
51355 eval "$as_ac_var=yes"
51357 echo "$as_me: failed program was:" >&5
51358 sed 's/^/| /' conftest.$ac_ext >&5
51360 eval "$as_ac_var=no"
51362 rm -f conftest.err conftest.$ac_objext \
51363 conftest$ac_exeext conftest.$ac_ext
51365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51367 if test `eval echo '${'$as_ac_var'}'` = yes; then
51368 cat >>confdefs.h <<_ACEOF
51369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51372 echo "$as_me:$LINENO: checking for _doprnt" >&5
51373 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51374 if test "${ac_cv_func__doprnt+set}" = set; then
51375 echo $ECHO_N "(cached) $ECHO_C" >&6
51377 cat >conftest.$ac_ext <<_ACEOF
51380 cat confdefs.h >>conftest.$ac_ext
51381 cat >>conftest.$ac_ext <<_ACEOF
51382 /* end confdefs.h. */
51383 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51385 #define _doprnt innocuous__doprnt
51387 /* System header to define __stub macros and hopefully few prototypes,
51388 which can conflict with char _doprnt (); below.
51389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51390 <limits.h> exists even on freestanding compilers. */
51393 # include <limits.h>
51395 # include <assert.h>
51400 /* Override any gcc2 internal prototype to avoid an error. */
51405 /* We use char because int might match the return type of a gcc2
51406 builtin and then its argument prototype would still apply. */
51408 /* The GNU C library defines this for functions which it implements
51409 to always fail with ENOSYS. Some functions are actually named
51410 something starting with __ and the normal name is an alias. */
51411 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51414 char (*f) () = _doprnt;
51423 return f != _doprnt;
51428 rm -f conftest.$ac_objext conftest$ac_exeext
51429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51430 (eval $ac_link) 2>conftest.er1
51432 grep -v '^ *+' conftest.er1 >conftest.err
51434 cat conftest.err >&5
51435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51436 (exit $ac_status); } &&
51437 { ac_try='test -z "$ac_c_werror_flag"
51438 || test ! -s conftest.err'
51439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51440 (eval $ac_try) 2>&5
51442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51443 (exit $ac_status); }; } &&
51444 { ac_try='test -s conftest$ac_exeext'
51445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51446 (eval $ac_try) 2>&5
51448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51449 (exit $ac_status); }; }; then
51450 ac_cv_func__doprnt=yes
51452 echo "$as_me: failed program was:" >&5
51453 sed 's/^/| /' conftest.$ac_ext >&5
51455 ac_cv_func__doprnt=no
51457 rm -f conftest.err conftest.$ac_objext \
51458 conftest$ac_exeext conftest.$ac_ext
51460 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51461 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51462 if test $ac_cv_func__doprnt = yes; then
51464 cat >>confdefs.h <<\_ACEOF
51465 #define HAVE_DOPRNT 1
51475 if test $ac_cv_func_vprintf = yes ; then
51478 for ac_func in snprintf vsnprintf
51480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51481 echo "$as_me:$LINENO: checking for $ac_func" >&5
51482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51483 if eval "test \"\${$as_ac_var+set}\" = set"; then
51484 echo $ECHO_N "(cached) $ECHO_C" >&6
51486 cat >conftest.$ac_ext <<_ACEOF
51489 cat confdefs.h >>conftest.$ac_ext
51490 cat >>conftest.$ac_ext <<_ACEOF
51491 /* end confdefs.h. */
51492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51494 #define $ac_func innocuous_$ac_func
51496 /* System header to define __stub macros and hopefully few prototypes,
51497 which can conflict with char $ac_func (); below.
51498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51499 <limits.h> exists even on freestanding compilers. */
51502 # include <limits.h>
51504 # include <assert.h>
51509 /* Override any gcc2 internal prototype to avoid an error. */
51514 /* We use char because int might match the return type of a gcc2
51515 builtin and then its argument prototype would still apply. */
51517 /* The GNU C library defines this for functions which it implements
51518 to always fail with ENOSYS. Some functions are actually named
51519 something starting with __ and the normal name is an alias. */
51520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51523 char (*f) () = $ac_func;
51532 return f != $ac_func;
51537 rm -f conftest.$ac_objext conftest$ac_exeext
51538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51539 (eval $ac_link) 2>conftest.er1
51541 grep -v '^ *+' conftest.er1 >conftest.err
51543 cat conftest.err >&5
51544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51545 (exit $ac_status); } &&
51546 { ac_try='test -z "$ac_c_werror_flag"
51547 || test ! -s conftest.err'
51548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51549 (eval $ac_try) 2>&5
51551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51552 (exit $ac_status); }; } &&
51553 { ac_try='test -s conftest$ac_exeext'
51554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51555 (eval $ac_try) 2>&5
51557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51558 (exit $ac_status); }; }; then
51559 eval "$as_ac_var=yes"
51561 echo "$as_me: failed program was:" >&5
51562 sed 's/^/| /' conftest.$ac_ext >&5
51564 eval "$as_ac_var=no"
51566 rm -f conftest.err conftest.$ac_objext \
51567 conftest$ac_exeext conftest.$ac_ext
51569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51571 if test `eval echo '${'$as_ac_var'}'` = yes; then
51572 cat >>confdefs.h <<_ACEOF
51573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51691 echo "$as_me:$LINENO: checking for $ac_func" >&5
51692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51693 if eval "test \"\${$as_ac_var+set}\" = set"; then
51694 echo $ECHO_N "(cached) $ECHO_C" >&6
51696 cat >conftest.$ac_ext <<_ACEOF
51699 cat confdefs.h >>conftest.$ac_ext
51700 cat >>conftest.$ac_ext <<_ACEOF
51701 /* end confdefs.h. */
51702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51704 #define $ac_func innocuous_$ac_func
51706 /* System header to define __stub macros and hopefully few prototypes,
51707 which can conflict with char $ac_func (); below.
51708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51709 <limits.h> exists even on freestanding compilers. */
51712 # include <limits.h>
51714 # include <assert.h>
51719 /* Override any gcc2 internal prototype to avoid an error. */
51724 /* We use char because int might match the return type of a gcc2
51725 builtin and then its argument prototype would still apply. */
51727 /* The GNU C library defines this for functions which it implements
51728 to always fail with ENOSYS. Some functions are actually named
51729 something starting with __ and the normal name is an alias. */
51730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51733 char (*f) () = $ac_func;
51742 return f != $ac_func;
51747 rm -f conftest.$ac_objext conftest$ac_exeext
51748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51749 (eval $ac_link) 2>conftest.er1
51751 grep -v '^ *+' conftest.er1 >conftest.err
51753 cat conftest.err >&5
51754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51755 (exit $ac_status); } &&
51756 { ac_try='test -z "$ac_c_werror_flag"
51757 || test ! -s conftest.err'
51758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51759 (eval $ac_try) 2>&5
51761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51762 (exit $ac_status); }; } &&
51763 { ac_try='test -s conftest$ac_exeext'
51764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51765 (eval $ac_try) 2>&5
51767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51768 (exit $ac_status); }; }; then
51769 eval "$as_ac_var=yes"
51771 echo "$as_me: failed program was:" >&5
51772 sed 's/^/| /' conftest.$ac_ext >&5
51774 eval "$as_ac_var=no"
51776 rm -f conftest.err conftest.$ac_objext \
51777 conftest$ac_exeext conftest.$ac_ext
51779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51781 if test `eval echo '${'$as_ac_var'}'` = yes; then
51782 cat >>confdefs.h <<_ACEOF
51783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51792 for ac_func in getopt getpeereid
51794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51795 echo "$as_me:$LINENO: checking for $ac_func" >&5
51796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51797 if eval "test \"\${$as_ac_var+set}\" = set"; then
51798 echo $ECHO_N "(cached) $ECHO_C" >&6
51800 cat >conftest.$ac_ext <<_ACEOF
51803 cat confdefs.h >>conftest.$ac_ext
51804 cat >>conftest.$ac_ext <<_ACEOF
51805 /* end confdefs.h. */
51806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51808 #define $ac_func innocuous_$ac_func
51810 /* System header to define __stub macros and hopefully few prototypes,
51811 which can conflict with char $ac_func (); below.
51812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51813 <limits.h> exists even on freestanding compilers. */
51816 # include <limits.h>
51818 # include <assert.h>
51823 /* Override any gcc2 internal prototype to avoid an error. */
51828 /* We use char because int might match the return type of a gcc2
51829 builtin and then its argument prototype would still apply. */
51831 /* The GNU C library defines this for functions which it implements
51832 to always fail with ENOSYS. Some functions are actually named
51833 something starting with __ and the normal name is an alias. */
51834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51837 char (*f) () = $ac_func;
51846 return f != $ac_func;
51851 rm -f conftest.$ac_objext conftest$ac_exeext
51852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51853 (eval $ac_link) 2>conftest.er1
51855 grep -v '^ *+' conftest.er1 >conftest.err
51857 cat conftest.err >&5
51858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51859 (exit $ac_status); } &&
51860 { ac_try='test -z "$ac_c_werror_flag"
51861 || test ! -s conftest.err'
51862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51863 (eval $ac_try) 2>&5
51865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51866 (exit $ac_status); }; } &&
51867 { ac_try='test -s conftest$ac_exeext'
51868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51869 (eval $ac_try) 2>&5
51871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51872 (exit $ac_status); }; }; then
51873 eval "$as_ac_var=yes"
51875 echo "$as_me: failed program was:" >&5
51876 sed 's/^/| /' conftest.$ac_ext >&5
51878 eval "$as_ac_var=no"
51880 rm -f conftest.err conftest.$ac_objext \
51881 conftest$ac_exeext conftest.$ac_ext
51883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51885 if test `eval echo '${'$as_ac_var'}'` = yes; then
51886 cat >>confdefs.h <<_ACEOF
51887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51892 "$ac_func.$ac_objext" | \
51893 *" $ac_func.$ac_objext" | \
51894 "$ac_func.$ac_objext "* | \
51895 *" $ac_func.$ac_objext "* ) ;;
51896 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51904 if test "$ac_cv_func_getopt" != yes; then
51905 LIBSRCS="$LIBSRCS getopt.c"
51907 if test "$ac_cv_func_getpeereid" != yes; then
51908 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51909 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51910 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51911 echo $ECHO_N "(cached) $ECHO_C" >&6
51913 cat >conftest.$ac_ext <<_ACEOF
51916 cat confdefs.h >>conftest.$ac_ext
51917 cat >>conftest.$ac_ext <<_ACEOF
51918 /* end confdefs.h. */
51919 $ac_includes_default
51920 #ifdef HAVE_SYS_SOCKET_H
51921 #include <sys/socket.h>
51927 static struct msghdr ac_aggr;
51928 if (ac_aggr.msg_accrightslen)
51934 rm -f conftest.$ac_objext
51935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51936 (eval $ac_compile) 2>conftest.er1
51938 grep -v '^ *+' conftest.er1 >conftest.err
51940 cat conftest.err >&5
51941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51942 (exit $ac_status); } &&
51943 { ac_try='test -z "$ac_c_werror_flag"
51944 || test ! -s conftest.err'
51945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51946 (eval $ac_try) 2>&5
51948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51949 (exit $ac_status); }; } &&
51950 { ac_try='test -s conftest.$ac_objext'
51951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51952 (eval $ac_try) 2>&5
51954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51955 (exit $ac_status); }; }; then
51956 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51958 echo "$as_me: failed program was:" >&5
51959 sed 's/^/| /' conftest.$ac_ext >&5
51961 cat >conftest.$ac_ext <<_ACEOF
51964 cat confdefs.h >>conftest.$ac_ext
51965 cat >>conftest.$ac_ext <<_ACEOF
51966 /* end confdefs.h. */
51967 $ac_includes_default
51968 #ifdef HAVE_SYS_SOCKET_H
51969 #include <sys/socket.h>
51975 static struct msghdr ac_aggr;
51976 if (sizeof ac_aggr.msg_accrightslen)
51982 rm -f conftest.$ac_objext
51983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51984 (eval $ac_compile) 2>conftest.er1
51986 grep -v '^ *+' conftest.er1 >conftest.err
51988 cat conftest.err >&5
51989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51990 (exit $ac_status); } &&
51991 { ac_try='test -z "$ac_c_werror_flag"
51992 || test ! -s conftest.err'
51993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51994 (eval $ac_try) 2>&5
51996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51997 (exit $ac_status); }; } &&
51998 { ac_try='test -s conftest.$ac_objext'
51999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52000 (eval $ac_try) 2>&5
52002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52003 (exit $ac_status); }; }; then
52004 ac_cv_member_struct_msghdr_msg_accrightslen=yes
52006 echo "$as_me: failed program was:" >&5
52007 sed 's/^/| /' conftest.$ac_ext >&5
52009 ac_cv_member_struct_msghdr_msg_accrightslen=no
52011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
52016 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
52017 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
52019 cat >>confdefs.h <<_ACEOF
52020 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
52026 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
52027 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
52028 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
52029 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
52030 echo $ECHO_N "(cached) $ECHO_C" >&6
52032 cat >conftest.$ac_ext <<_ACEOF
52035 cat confdefs.h >>conftest.$ac_ext
52036 cat >>conftest.$ac_ext <<_ACEOF
52037 /* end confdefs.h. */
52038 $ac_includes_default
52039 #ifdef HAVE_SYS_SOCKET_H
52040 #include <sys/socket.h>
52046 static struct msghdr ac_aggr;
52047 if (ac_aggr.msg_control)
52053 rm -f conftest.$ac_objext
52054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52055 (eval $ac_compile) 2>conftest.er1
52057 grep -v '^ *+' conftest.er1 >conftest.err
52059 cat conftest.err >&5
52060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52061 (exit $ac_status); } &&
52062 { ac_try='test -z "$ac_c_werror_flag"
52063 || test ! -s conftest.err'
52064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52065 (eval $ac_try) 2>&5
52067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52068 (exit $ac_status); }; } &&
52069 { ac_try='test -s conftest.$ac_objext'
52070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52071 (eval $ac_try) 2>&5
52073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52074 (exit $ac_status); }; }; then
52075 ac_cv_member_struct_msghdr_msg_control=yes
52077 echo "$as_me: failed program was:" >&5
52078 sed 's/^/| /' conftest.$ac_ext >&5
52080 cat >conftest.$ac_ext <<_ACEOF
52083 cat confdefs.h >>conftest.$ac_ext
52084 cat >>conftest.$ac_ext <<_ACEOF
52085 /* end confdefs.h. */
52086 $ac_includes_default
52087 #ifdef HAVE_SYS_SOCKET_H
52088 #include <sys/socket.h>
52094 static struct msghdr ac_aggr;
52095 if (sizeof ac_aggr.msg_control)
52101 rm -f conftest.$ac_objext
52102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52103 (eval $ac_compile) 2>conftest.er1
52105 grep -v '^ *+' conftest.er1 >conftest.err
52107 cat conftest.err >&5
52108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52109 (exit $ac_status); } &&
52110 { ac_try='test -z "$ac_c_werror_flag"
52111 || test ! -s conftest.err'
52112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52113 (eval $ac_try) 2>&5
52115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52116 (exit $ac_status); }; } &&
52117 { ac_try='test -s conftest.$ac_objext'
52118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52119 (eval $ac_try) 2>&5
52121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52122 (exit $ac_status); }; }; then
52123 ac_cv_member_struct_msghdr_msg_control=yes
52125 echo "$as_me: failed program was:" >&5
52126 sed 's/^/| /' conftest.$ac_ext >&5
52128 ac_cv_member_struct_msghdr_msg_control=no
52130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52134 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
52135 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
52136 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
52138 cat >>confdefs.h <<_ACEOF
52139 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52146 LIBSRCS="$LIBSRCS getpeereid.c"
52148 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52149 if test "$ac_cv_func_snprintf" != yes; then
52151 cat >>confdefs.h <<\_ACEOF
52152 #define snprintf ber_pvt_snprintf
52156 if test "$ac_cv_func_vsnprintf" != yes; then
52158 cat >>confdefs.h <<\_ACEOF
52159 #define vsnprintf ber_pvt_vsnprintf
52166 if test "$ol_enable_slapi" != no ; then
52168 for ac_header in ltdl.h
52170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52172 echo "$as_me:$LINENO: checking for $ac_header" >&5
52173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52175 echo $ECHO_N "(cached) $ECHO_C" >&6
52177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52180 # Is the header compilable?
52181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52183 cat >conftest.$ac_ext <<_ACEOF
52186 cat confdefs.h >>conftest.$ac_ext
52187 cat >>conftest.$ac_ext <<_ACEOF
52188 /* end confdefs.h. */
52189 $ac_includes_default
52190 #include <$ac_header>
52192 rm -f conftest.$ac_objext
52193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52194 (eval $ac_compile) 2>conftest.er1
52196 grep -v '^ *+' conftest.er1 >conftest.err
52198 cat conftest.err >&5
52199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52200 (exit $ac_status); } &&
52201 { ac_try='test -z "$ac_c_werror_flag"
52202 || test ! -s conftest.err'
52203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52204 (eval $ac_try) 2>&5
52206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52207 (exit $ac_status); }; } &&
52208 { ac_try='test -s conftest.$ac_objext'
52209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52210 (eval $ac_try) 2>&5
52212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52213 (exit $ac_status); }; }; then
52214 ac_header_compiler=yes
52216 echo "$as_me: failed program was:" >&5
52217 sed 's/^/| /' conftest.$ac_ext >&5
52219 ac_header_compiler=no
52221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52223 echo "${ECHO_T}$ac_header_compiler" >&6
52225 # Is the header present?
52226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52228 cat >conftest.$ac_ext <<_ACEOF
52231 cat confdefs.h >>conftest.$ac_ext
52232 cat >>conftest.$ac_ext <<_ACEOF
52233 /* end confdefs.h. */
52234 #include <$ac_header>
52236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52239 grep -v '^ *+' conftest.er1 >conftest.err
52241 cat conftest.err >&5
52242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52243 (exit $ac_status); } >/dev/null; then
52244 if test -s conftest.err; then
52245 ac_cpp_err=$ac_c_preproc_warn_flag
52246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52253 if test -z "$ac_cpp_err"; then
52254 ac_header_preproc=yes
52256 echo "$as_me: failed program was:" >&5
52257 sed 's/^/| /' conftest.$ac_ext >&5
52259 ac_header_preproc=no
52261 rm -f conftest.err conftest.$ac_ext
52262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52263 echo "${ECHO_T}$ac_header_preproc" >&6
52265 # So? What about this header?
52266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52272 ac_header_preproc=yes
52275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52289 ## ------------------------------------------ ##
52290 ## Report this to the AC_PACKAGE_NAME lists. ##
52291 ## ------------------------------------------ ##
52294 sed "s/^/$as_me: WARNING: /" >&2
52297 echo "$as_me:$LINENO: checking for $ac_header" >&5
52298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52300 echo $ECHO_N "(cached) $ECHO_C" >&6
52302 eval "$as_ac_Header=\$ac_header_preproc"
52304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52309 cat >>confdefs.h <<_ACEOF
52310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52318 if test $ac_cv_header_ltdl_h != yes ; then
52319 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52320 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52321 { (exit 1); exit 1; }; }
52323 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52324 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52325 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52326 echo $ECHO_N "(cached) $ECHO_C" >&6
52328 ac_check_lib_save_LIBS=$LIBS
52329 LIBS="-lltdl $LIBS"
52330 cat >conftest.$ac_ext <<_ACEOF
52333 cat confdefs.h >>conftest.$ac_ext
52334 cat >>conftest.$ac_ext <<_ACEOF
52335 /* end confdefs.h. */
52337 /* Override any gcc2 internal prototype to avoid an error. */
52341 /* We use char because int might match the return type of a gcc2
52342 builtin and then its argument prototype would still apply. */
52352 rm -f conftest.$ac_objext conftest$ac_exeext
52353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52354 (eval $ac_link) 2>conftest.er1
52356 grep -v '^ *+' conftest.er1 >conftest.err
52358 cat conftest.err >&5
52359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52360 (exit $ac_status); } &&
52361 { ac_try='test -z "$ac_c_werror_flag"
52362 || test ! -s conftest.err'
52363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52364 (eval $ac_try) 2>&5
52366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52367 (exit $ac_status); }; } &&
52368 { ac_try='test -s conftest$ac_exeext'
52369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52370 (eval $ac_try) 2>&5
52372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52373 (exit $ac_status); }; }; then
52374 ac_cv_lib_ltdl_lt_dlinit=yes
52376 echo "$as_me: failed program was:" >&5
52377 sed 's/^/| /' conftest.$ac_ext >&5
52379 ac_cv_lib_ltdl_lt_dlinit=no
52381 rm -f conftest.err conftest.$ac_objext \
52382 conftest$ac_exeext conftest.$ac_ext
52383 LIBS=$ac_check_lib_save_LIBS
52385 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52386 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52387 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52390 LIBSLAPI=libslapi.a
52391 LIBSLAPITOOLS=../libslapi.a
52393 cat >>confdefs.h <<\_ACEOF
52394 #define HAVE_LIBLTDL 1
52399 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52400 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52401 { (exit 1); exit 1; }; }
52406 cat >>confdefs.h <<\_ACEOF
52407 #define LDAP_SLAPI 1
52412 if test "$ol_enable_debug" != no ; then
52414 cat >>confdefs.h <<\_ACEOF
52415 #define LDAP_DEBUG 1
52419 if test "$ol_enable_syslog" = yes ; then
52421 cat >>confdefs.h <<\_ACEOF
52422 #define LDAP_SYSLOG 1
52426 if test "$ol_link_kbind" != no ; then
52428 cat >>confdefs.h <<\_ACEOF
52429 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52433 if test "$ol_enable_proctitle" != no ; then
52435 cat >>confdefs.h <<\_ACEOF
52436 #define LDAP_PROCTITLE 1
52440 if test "$ol_enable_referrals" != no ; then
52442 cat >>confdefs.h <<\_ACEOF
52443 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52447 if test "$ol_enable_local" != no; then
52449 cat >>confdefs.h <<\_ACEOF
52450 #define LDAP_PF_LOCAL 1
52454 if test "$ol_link_ipv6" != no; then
52456 cat >>confdefs.h <<\_ACEOF
52457 #define LDAP_PF_INET6 1
52461 if test "$ol_enable_cleartext" != no ; then
52463 cat >>confdefs.h <<\_ACEOF
52464 #define SLAPD_CLEARTEXT 1
52468 if test "$ol_enable_crypt" != no ; then
52470 cat >>confdefs.h <<\_ACEOF
52471 #define SLAPD_CRYPT 1
52475 if test "$ol_link_spasswd" != no ; then
52477 cat >>confdefs.h <<\_ACEOF
52478 #define SLAPD_SPASSWD 1
52482 if test "$ol_enable_multimaster" != no ; then
52484 cat >>confdefs.h <<\_ACEOF
52485 #define SLAPD_MULTIMASTER 1
52489 if test "$ol_enable_rlookups" != no ; then
52491 cat >>confdefs.h <<\_ACEOF
52492 #define SLAPD_RLOOKUPS 1
52496 if test "$ol_enable_aci" != no ; then
52498 cat >>confdefs.h <<\_ACEOF
52499 #define SLAPD_ACI_ENABLED 1
52504 if test "$ol_link_modules" != no ; then
52506 cat >>confdefs.h <<\_ACEOF
52507 #define SLAPD_MODULES 1
52511 SLAPD_MODULES_LDFLAGS="-dlopen self"
52515 cat >>confdefs.h <<\_ACEOF
52516 #define SLAPD_MOD_STATIC 1
52520 cat >>confdefs.h <<\_ACEOF
52521 #define SLAPD_MOD_DYNAMIC 2
52525 if test "$ol_enable_bdb" != no ; then
52527 BUILD_BDB=$ol_enable_bdb
52528 if test "$ol_enable_bdb" = mod ; then
52529 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52530 MFLAG=SLAPD_MOD_DYNAMIC
52532 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52533 MFLAG=SLAPD_MOD_STATIC
52536 cat >>confdefs.h <<_ACEOF
52537 #define SLAPD_BDB $MFLAG
52542 if test "$ol_enable_dnssrv" != no ; then
52544 BUILD_DNSSRV=$ol_enable_dnssrv
52545 if test "$ol_enable_dnssrv" = mod ; then
52546 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52547 MFLAG=SLAPD_MOD_DYNAMIC
52549 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52550 MFLAG=SLAPD_MOD_STATIC
52553 cat >>confdefs.h <<_ACEOF
52554 #define SLAPD_DNSSRV $MFLAG
52559 if test "$ol_enable_hdb" != no ; then
52561 BUILD_HDB=$ol_enable_hdb
52562 if test "$ol_enable_hdb" = mod ; then
52563 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52564 MFLAG=SLAPD_MOD_DYNAMIC
52566 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52567 MFLAG=SLAPD_MOD_STATIC
52570 cat >>confdefs.h <<_ACEOF
52571 #define SLAPD_HDB $MFLAG
52576 if test "$ol_enable_ldap" != no ; then
52578 BUILD_LDAP=$ol_enable_ldap
52579 if test "$ol_enable_ldap" = mod ; then
52580 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52581 MFLAG=SLAPD_MOD_DYNAMIC
52583 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52584 MFLAG=SLAPD_MOD_STATIC
52587 cat >>confdefs.h <<_ACEOF
52588 #define SLAPD_LDAP $MFLAG
52593 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52595 BUILD_LDBM=$ol_enable_ldbm
52596 if test "$ol_enable_ldbm" = mod ; then
52597 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52598 MFLAG=SLAPD_MOD_DYNAMIC
52600 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52601 MFLAG=SLAPD_MOD_STATIC
52604 cat >>confdefs.h <<_ACEOF
52605 #define SLAPD_LDBM $MFLAG
52610 if test "$ol_enable_meta" != no ; then
52612 BUILD_META=$ol_enable_meta
52614 if test "$ol_enable_meta" = mod ; then
52615 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52616 MFLAG=SLAPD_MOD_DYNAMIC
52618 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52619 MFLAG=SLAPD_MOD_STATIC
52622 cat >>confdefs.h <<_ACEOF
52623 #define SLAPD_META $MFLAG
52628 if test "$ol_enable_monitor" != no ; then
52630 BUILD_MONITOR=$ol_enable_monitor
52631 if test "$ol_enable_monitor" = mod ; then
52632 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52633 MFLAG=SLAPD_MOD_DYNAMIC
52635 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52636 MFLAG=SLAPD_MOD_STATIC
52639 cat >>confdefs.h <<_ACEOF
52640 #define SLAPD_MONITOR $MFLAG
52645 if test "$ol_enable_null" != no ; then
52647 BUILD_NULL=$ol_enable_null
52648 if test "$ol_enable_null" = mod ; then
52649 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52650 MFLAG=SLAPD_MOD_DYNAMIC
52652 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52653 MFLAG=SLAPD_MOD_STATIC
52656 cat >>confdefs.h <<_ACEOF
52657 #define SLAPD_NULL $MFLAG
52662 if test "$ol_enable_passwd" != no ; then
52664 BUILD_PASSWD=$ol_enable_passwd
52665 if test "$ol_enable_passwd" = mod ; then
52666 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52667 MFLAG=SLAPD_MOD_DYNAMIC
52669 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52670 MFLAG=SLAPD_MOD_STATIC
52673 cat >>confdefs.h <<_ACEOF
52674 #define SLAPD_PASSWD $MFLAG
52679 if test "$ol_link_perl" != no ; then
52681 BUILD_PERL=$ol_enable_perl
52682 if test "$ol_enable_perl" = mod ; then
52683 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52684 MFLAG=SLAPD_MOD_DYNAMIC
52686 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52687 MFLAG=SLAPD_MOD_STATIC
52690 cat >>confdefs.h <<_ACEOF
52691 #define SLAPD_PERL $MFLAG
52696 if test "$ol_enable_relay" != no ; then
52698 BUILD_RELAY=$ol_enable_relay
52699 if test "$ol_enable_relay" = mod ; then
52700 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52701 MFLAG=SLAPD_MOD_DYNAMIC
52703 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52704 MFLAG=SLAPD_MOD_STATIC
52707 cat >>confdefs.h <<_ACEOF
52708 #define SLAPD_RELAY $MFLAG
52713 if test "$ol_enable_shell" != no ; then
52714 if test "$ol_link_threads" != no ; then
52715 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52716 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52719 BUILD_SHELL=$ol_enable_shell
52720 if test "$ol_enable_shell" = mod ; then
52721 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52722 MFLAG=SLAPD_MOD_DYNAMIC
52724 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52725 MFLAG=SLAPD_MOD_STATIC
52728 cat >>confdefs.h <<_ACEOF
52729 #define SLAPD_SHELL $MFLAG
52734 if test "$ol_link_sql" != no ; then
52736 BUILD_SQL=$ol_enable_sql
52737 if test "$ol_enable_sql" = mod; then
52738 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52739 MFLAG=SLAPD_MOD_DYNAMIC
52741 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52742 MFLAG=SLAPD_MOD_STATIC
52745 cat >>confdefs.h <<_ACEOF
52746 #define SLAPD_SQL $MFLAG
52751 if test "$ol_enable_accesslog" != no ; then
52752 BUILD_ACCESSLOG=$ol_enable_accesslog
52753 if test "$ol_enable_accesslog" = mod ; then
52754 MFLAG=SLAPD_MOD_DYNAMIC
52755 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52757 MFLAG=SLAPD_MOD_STATIC
52758 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52761 cat >>confdefs.h <<_ACEOF
52762 #define SLAPD_OVER_ACCESSLOG $MFLAG
52767 if test "$ol_enable_denyop" != no ; then
52768 BUILD_DENYOP=$ol_enable_denyop
52769 if test "$ol_enable_denyop" = mod ; then
52770 MFLAG=SLAPD_MOD_DYNAMIC
52771 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52773 MFLAG=SLAPD_MOD_STATIC
52774 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52777 cat >>confdefs.h <<_ACEOF
52778 #define SLAPD_OVER_DENYOP $MFLAG
52783 if test "$ol_enable_dyngroup" != no ; then
52784 BUILD_DYNGROUP=$ol_enable_dyngroup
52785 if test "$ol_enable_dyngroup" = mod ; then
52786 MFLAG=SLAPD_MOD_DYNAMIC
52787 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52789 MFLAG=SLAPD_MOD_STATIC
52790 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52793 cat >>confdefs.h <<_ACEOF
52794 #define SLAPD_OVER_DYNGROUP $MFLAG
52799 if test "$ol_enable_dynlist" != no ; then
52800 BUILD_DYNLIST=$ol_enable_dynlist
52801 if test "$ol_enable_dynlist" = mod ; then
52802 MFLAG=SLAPD_MOD_DYNAMIC
52803 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52805 MFLAG=SLAPD_MOD_STATIC
52806 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52809 cat >>confdefs.h <<_ACEOF
52810 #define SLAPD_OVER_DYNLIST $MFLAG
52815 if test "$ol_enable_glue" != no ; then
52816 BUILD_GLUE=$ol_enable_glue
52817 if test "$ol_enable_glue" = mod ; then
52818 MFLAG=SLAPD_MOD_DYNAMIC
52819 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52821 MFLAG=SLAPD_MOD_STATIC
52822 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52825 cat >>confdefs.h <<_ACEOF
52826 #define SLAPD_OVER_GLUE $MFLAG
52831 if test "$ol_enable_lastmod" != no ; then
52832 BUILD_LASTMOD=$ol_enable_lastmod
52833 if test "$ol_enable_lastmod" = mod ; then
52834 MFLAG=SLAPD_MOD_DYNAMIC
52835 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52837 MFLAG=SLAPD_MOD_STATIC
52838 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52841 cat >>confdefs.h <<_ACEOF
52842 #define SLAPD_OVER_LASTMOD $MFLAG
52847 if test "$ol_enable_ppolicy" != no ; then
52848 BUILD_PPOLICY=$ol_enable_ppolicy
52849 if test "$ol_enable_ppolicy" = mod ; then
52850 MFLAG=SLAPD_MOD_DYNAMIC
52851 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52853 MFLAG=SLAPD_MOD_STATIC
52854 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52857 cat >>confdefs.h <<_ACEOF
52858 #define SLAPD_OVER_PPOLICY $MFLAG
52863 if test "$ol_enable_proxycache" != no ; then
52864 BUILD_PROXYCACHE=$ol_enable_proxycache
52865 if test "$ol_enable_proxycache" = mod ; then
52866 MFLAG=SLAPD_MOD_DYNAMIC
52867 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52869 MFLAG=SLAPD_MOD_STATIC
52870 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52873 cat >>confdefs.h <<_ACEOF
52874 #define SLAPD_OVER_PROXYCACHE $MFLAG
52879 if test "$ol_enable_refint" != no ; then
52880 BUILD_REFINT=$ol_enable_refint
52881 if test "$ol_enable_refint" = mod ; then
52882 MFLAG=SLAPD_MOD_DYNAMIC
52883 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52885 MFLAG=SLAPD_MOD_STATIC
52886 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52889 cat >>confdefs.h <<_ACEOF
52890 #define SLAPD_OVER_REFINT $MFLAG
52895 if test "$ol_enable_retcode" != no ; then
52896 BUILD_RETCODE=$ol_enable_retcode
52897 if test "$ol_enable_retcode" = mod ; then
52898 MFLAG=SLAPD_MOD_DYNAMIC
52899 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52901 MFLAG=SLAPD_MOD_STATIC
52902 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52905 cat >>confdefs.h <<_ACEOF
52906 #define SLAPD_OVER_RETCODE $MFLAG
52911 if test "$ol_enable_rwm" != no ; then
52913 BUILD_RWM=$ol_enable_rwm
52914 if test "$ol_enable_rwm" = mod ; then
52915 MFLAG=SLAPD_MOD_DYNAMIC
52916 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52918 MFLAG=SLAPD_MOD_STATIC
52919 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52922 cat >>confdefs.h <<_ACEOF
52923 #define SLAPD_OVER_RWM $MFLAG
52928 if test "$ol_enable_syncprov" != no ; then
52929 BUILD_SYNCPROV=$ol_enable_syncprov
52930 if test "$ol_enable_syncprov" = mod ; then
52931 MFLAG=SLAPD_MOD_DYNAMIC
52932 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52934 MFLAG=SLAPD_MOD_STATIC
52935 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52938 cat >>confdefs.h <<_ACEOF
52939 #define SLAPD_OVER_SYNCPROV $MFLAG
52944 if test "$ol_enable_translucent" != no ; then
52945 BUILD_TRANSLUCENT=$ol_enable_translucent
52946 if test "$ol_enable_translucent" = mod ; then
52947 MFLAG=SLAPD_MOD_DYNAMIC
52948 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52950 MFLAG=SLAPD_MOD_STATIC
52951 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52954 cat >>confdefs.h <<_ACEOF
52955 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52960 if test "$ol_enable_unique" != no ; then
52961 BUILD_UNIQUE=$ol_enable_unique
52962 if test "$ol_enable_unique" = mod ; then
52963 MFLAG=SLAPD_MOD_DYNAMIC
52964 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52966 MFLAG=SLAPD_MOD_STATIC
52967 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52970 cat >>confdefs.h <<_ACEOF
52971 #define SLAPD_OVER_UNIQUE $MFLAG
52976 if test "$ol_enable_valsort" != no ; then
52977 BUILD_VALSORT=$ol_enable_valsort
52978 if test "$ol_enable_valsort" = mod ; then
52979 MFLAG=SLAPD_MOD_DYNAMIC
52980 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
52982 MFLAG=SLAPD_MOD_STATIC
52983 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
52986 cat >>confdefs.h <<_ACEOF
52987 #define SLAPD_OVER_VALSORT $MFLAG
52992 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52993 $BUILD_SLAPD = yes ; then
52997 if test "$ol_enable_rewrite" != no ; then
52999 cat >>confdefs.h <<\_ACEOF
53000 #define ENABLE_REWRITE 1
53006 if test "$ol_enable_slapi" != no ; then
53008 cat >>confdefs.h <<\_ACEOF
53009 #define ENABLE_SLAPI 1
53013 SLAPD_SLAPI_DEPEND=libslapi.a
53018 if test "$ac_cv_mingw32" = yes ; then
53020 SLAPD_MODULES_LDFLAGS=
53104 # Check whether --with-xxinstall or --without-xxinstall was given.
53105 if test "${with_xxinstall+set}" = set; then
53106 withval="$with_xxinstall"
53111 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"
53114 ac_config_commands="$ac_config_commands default"
53118 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53119 # Let make expand exec_prefix.
53120 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53122 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53123 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53124 # trailing colons and then remove the whole line if VPATH becomes empty
53125 # (actually we leave an empty line to preserve line numbers).
53126 if test "x$srcdir" = x.; then
53127 ac_vpsub='/^[ ]*VPATH[ ]*=/{
53128 s/:*\$(srcdir):*/:/;
53129 s/:*\${srcdir}:*/:/;
53131 s/^\([^=]*=[ ]*\):*/\1/;
53137 DEFS=-DHAVE_CONFIG_H
53141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53142 # 1. Remove the extension, and $U if already installed.
53143 ac_i=`echo "$ac_i" |
53144 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53146 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53147 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53149 LIBOBJS=$ac_libobjs
53151 LTLIBOBJS=$ac_ltlibobjs
53154 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53155 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53156 Usually this means the macro was only invoked conditionally." >&5
53157 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53158 Usually this means the macro was only invoked conditionally." >&2;}
53159 { (exit 1); exit 1; }; }
53161 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53162 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53163 Usually this means the macro was only invoked conditionally." >&5
53164 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53165 Usually this means the macro was only invoked conditionally." >&2;}
53166 { (exit 1); exit 1; }; }
53168 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53169 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53170 Usually this means the macro was only invoked conditionally." >&5
53171 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53172 Usually this means the macro was only invoked conditionally." >&2;}
53173 { (exit 1); exit 1; }; }
53175 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53176 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53177 Usually this means the macro was only invoked conditionally." >&5
53178 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53179 Usually this means the macro was only invoked conditionally." >&2;}
53180 { (exit 1); exit 1; }; }
53183 : ${CONFIG_STATUS=./config.status}
53184 ac_clean_files_save=$ac_clean_files
53185 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53186 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53187 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53188 cat >$CONFIG_STATUS <<_ACEOF
53190 # Generated by $as_me.
53191 # Run this file to recreate the current configuration.
53192 # Compiler output produced by configure, useful for debugging
53193 # configure, is in config.log if it exists.
53196 ac_cs_recheck=false
53198 SHELL=\${CONFIG_SHELL-$SHELL}
53201 cat >>$CONFIG_STATUS <<\_ACEOF
53202 ## --------------------- ##
53203 ## M4sh Initialization. ##
53204 ## --------------------- ##
53206 # Be Bourne compatible
53207 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53210 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53211 # is contrary to our usage. Disable this feature.
53212 alias -g '${1+"$@"}'='"$@"'
53213 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53216 DUALCASE=1; export DUALCASE # for MKS sh
53218 # Support unset when possible.
53219 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53226 # Work around bugs in pre-3.0 UWIN ksh.
53227 $as_unset ENV MAIL MAILPATH
53234 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53235 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53236 LC_TELEPHONE LC_TIME
53238 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53239 eval $as_var=C; export $as_var
53245 # Required to use basename.
53246 if expr a : '\(a\)' >/dev/null 2>&1; then
53252 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53253 as_basename=basename
53259 # Name of the executable.
53260 as_me=`$as_basename "$0" ||
53261 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53262 X"$0" : 'X\(//\)$' \| \
53263 X"$0" : 'X\(/\)$' \| \
53264 . : '\(.\)' 2>/dev/null ||
53266 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53267 /^X\/\(\/\/\)$/{ s//\1/; q; }
53268 /^X\/\(\/\).*/{ s//\1/; q; }
53272 # PATH needs CR, and LINENO needs CR and PATH.
53273 # Avoid depending upon Character Ranges.
53274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53277 as_cr_digits='0123456789'
53278 as_cr_alnum=$as_cr_Letters$as_cr_digits
53280 # The user is always right.
53281 if test "${PATH_SEPARATOR+set}" != set; then
53282 echo "#! /bin/sh" >conf$$.sh
53283 echo "exit 0" >>conf$$.sh
53285 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53294 as_lineno_1=$LINENO
53295 as_lineno_2=$LINENO
53296 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53297 test "x$as_lineno_1" != "x$as_lineno_2" &&
53298 test "x$as_lineno_3" = "x$as_lineno_2" || {
53299 # Find who we are. Look in the path if we contain no path at all
53302 *[\\/]* ) as_myself=$0 ;;
53303 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53304 for as_dir in $PATH
53307 test -z "$as_dir" && as_dir=.
53308 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53313 # We did not find ourselves, most probably we were run as `sh COMMAND'
53314 # in which case we are not to be found in the path.
53315 if test "x$as_myself" = x; then
53318 if test ! -f "$as_myself"; then
53319 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53320 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53321 { (exit 1); exit 1; }; }
53323 case $CONFIG_SHELL in
53325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53326 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53329 test -z "$as_dir" && as_dir=.
53330 for as_base in sh bash ksh sh5; do
53333 if ("$as_dir/$as_base" -c '
53334 as_lineno_1=$LINENO
53335 as_lineno_2=$LINENO
53336 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53337 test "x$as_lineno_1" != "x$as_lineno_2" &&
53338 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
53339 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53340 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53341 CONFIG_SHELL=$as_dir/$as_base
53342 export CONFIG_SHELL
53343 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53352 # uniformly replaced by the line number. The first 'sed' inserts a
53353 # line-number line before each line; the second 'sed' does the real
53354 # work. The second script uses 'N' to pair each line-number line
53355 # with the numbered line, and appends trailing '-' during
53356 # substitution so that $LINENO is not a special case at line end.
53357 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53358 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
53359 sed '=' <$as_myself |
53364 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53367 s,^['$as_cr_digits']*\n,,
53368 ' >$as_me.lineno &&
53369 chmod +x $as_me.lineno ||
53370 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53371 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53372 { (exit 1); exit 1; }; }
53374 # Don't try to exec as it changes $[0], causing all sort of problems
53375 # (the dirname of $[0] is not the place where we might find the
53376 # original and so on. Autoconf is especially sensible to this).
53378 # Exit status is that of the last command.
53383 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53384 *c*,-n*) ECHO_N= ECHO_C='
53386 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53387 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
53390 if expr a : '\(a\)' >/dev/null 2>&1; then
53396 rm -f conf$$ conf$$.exe conf$$.file
53398 if ln -s conf$$.file conf$$ 2>/dev/null; then
53399 # We could just check for DJGPP; but this test a) works b) is more generic
53400 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53401 if test -f conf$$.exe; then
53402 # Don't use ln at all; we don't have any links
53407 elif ln conf$$.file conf$$ 2>/dev/null; then
53412 rm -f conf$$ conf$$.exe conf$$.file
53414 if mkdir -p . 2>/dev/null; then
53417 test -d ./-p && rmdir ./-p
53421 as_executable_p="test -f"
53423 # Sed expression to map a string onto a valid CPP name.
53424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53426 # Sed expression to map a string onto a valid variable name.
53427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53431 # We need space, tab and new line, in precisely that order.
53441 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53442 # report actual input values of CONFIG_FILES etc. instead of their
53443 # values after options handling. Logging --version etc. is OK.
53447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53448 ## Running $as_me. ##
53453 This file was extended by $as_me, which was
53454 generated by GNU Autoconf 2.59. Invocation command line was
53456 CONFIG_FILES = $CONFIG_FILES
53457 CONFIG_HEADERS = $CONFIG_HEADERS
53458 CONFIG_LINKS = $CONFIG_LINKS
53459 CONFIG_COMMANDS = $CONFIG_COMMANDS
53463 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53467 # Files that config.status was made for.
53468 if test -n "$ac_config_files"; then
53469 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53472 if test -n "$ac_config_headers"; then
53473 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53476 if test -n "$ac_config_links"; then
53477 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53480 if test -n "$ac_config_commands"; then
53481 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53484 cat >>$CONFIG_STATUS <<\_ACEOF
53487 \`$as_me' instantiates files from templates according to the
53488 current configuration.
53490 Usage: $0 [OPTIONS] [FILE]...
53492 -h, --help print this help, then exit
53493 -V, --version print version number, then exit
53494 -q, --quiet do not print progress messages
53495 -d, --debug don't remove temporary files
53496 --recheck update $as_me by reconfiguring in the same conditions
53497 --file=FILE[:TEMPLATE]
53498 instantiate the configuration file FILE
53499 --header=FILE[:TEMPLATE]
53500 instantiate the configuration header FILE
53502 Configuration files:
53505 Configuration headers:
53508 Configuration commands:
53511 Report bugs to <bug-autoconf@gnu.org>."
53514 cat >>$CONFIG_STATUS <<_ACEOF
53517 configured by $0, generated by GNU Autoconf 2.59,
53518 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53520 Copyright (C) 2003 Free Software Foundation, Inc.
53521 This config.status script is free software; the Free Software Foundation
53522 gives unlimited permission to copy, distribute and modify it."
53527 cat >>$CONFIG_STATUS <<\_ACEOF
53528 # If no file are specified by the user, then we need to provide default
53529 # value. By we need to know if files were specified by the user.
53535 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53536 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53544 *) # This is not an option, so the user has probably given explicit
53547 ac_need_defaults=false;;
53551 # Handling of the options.
53553 cat >>$CONFIG_STATUS <<\_ACEOF
53554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53556 --version | --vers* | -V )
53557 echo "$ac_cs_version"; exit 0 ;;
53559 # Conflict between --help and --header
53560 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53561 Try \`$0 --help' for more information." >&5
53562 echo "$as_me: error: ambiguous option: $1
53563 Try \`$0 --help' for more information." >&2;}
53564 { (exit 1); exit 1; }; };;
53565 --help | --hel | -h )
53566 echo "$ac_cs_usage"; exit 0 ;;
53567 --debug | --d* | -d )
53569 --file | --fil | --fi | --f )
53571 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53572 ac_need_defaults=false;;
53573 --header | --heade | --head | --hea )
53575 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53576 ac_need_defaults=false;;
53577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53578 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53581 # This is an error.
53582 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53583 Try \`$0 --help' for more information." >&5
53584 echo "$as_me: error: unrecognized option: $1
53585 Try \`$0 --help' for more information." >&2;}
53586 { (exit 1); exit 1; }; } ;;
53588 *) ac_config_targets="$ac_config_targets $1" ;;
53594 ac_configure_extra_args=
53596 if $ac_cs_silent; then
53598 ac_configure_extra_args="$ac_configure_extra_args --silent"
53602 cat >>$CONFIG_STATUS <<_ACEOF
53603 if \$ac_cs_recheck; then
53604 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53605 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53610 cat >>$CONFIG_STATUS <<_ACEOF
53612 # INIT-COMMANDS section.
53615 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53616 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53622 cat >>$CONFIG_STATUS <<\_ACEOF
53623 for ac_config_target in $ac_config_targets
53625 case "$ac_config_target" in
53626 # Handling of arguments.
53627 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53628 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53629 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53630 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53631 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53632 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53633 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53634 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53635 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53636 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53637 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53638 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53639 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53640 "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" ;;
53641 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53642 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53643 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53644 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53645 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53646 "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" ;;
53647 "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" ;;
53648 "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" ;;
53649 "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" ;;
53650 "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" ;;
53651 "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" ;;
53652 "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" ;;
53653 "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" ;;
53654 "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" ;;
53655 "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" ;;
53656 "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" ;;
53657 "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" ;;
53658 "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" ;;
53659 "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" ;;
53660 "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" ;;
53661 "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" ;;
53662 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53663 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53664 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53665 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53666 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53667 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53668 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53669 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53670 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53671 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53672 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53673 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53674 { (exit 1); exit 1; }; };;
53678 # If the user did not use the arguments to specify the items to instantiate,
53679 # then the envvar interface is used. Set only those that are not.
53680 # We use the long form for the default assignment because of an extremely
53681 # bizarre bug on SunOS 4.1.3.
53682 if $ac_need_defaults; then
53683 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53684 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53685 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53688 # Have a temporary directory for convenience. Make it in the build tree
53689 # simply because there is no reason to put it here, and in addition,
53690 # creating and moving files from /tmp can sometimes cause problems.
53691 # Create a temporary directory, and hook for its removal unless debugging.
53694 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53695 trap '{ (exit 1); exit 1; }' 1 2 13 15
53698 # Create a (secure) tmp directory for tmp files.
53701 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53702 test -n "$tmp" && test -d "$tmp"
53705 tmp=./confstat$$-$RANDOM
53706 (umask 077 && mkdir $tmp)
53709 echo "$me: cannot create a temporary directory in ." >&2
53710 { (exit 1); exit 1; }
53715 cat >>$CONFIG_STATUS <<_ACEOF
53718 # CONFIG_FILES section.
53721 # No need to generate the scripts if there are no CONFIG_FILES.
53722 # This happens for instance when ./config.status config.h
53723 if test -n "\$CONFIG_FILES"; then
53724 # Protect against being on the right side of a sed subst in config.status.
53725 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53726 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53727 s,@SHELL@,$SHELL,;t t
53728 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53729 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53730 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53731 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53732 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53733 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53734 s,@exec_prefix@,$exec_prefix,;t t
53735 s,@prefix@,$prefix,;t t
53736 s,@program_transform_name@,$program_transform_name,;t t
53737 s,@bindir@,$bindir,;t t
53738 s,@sbindir@,$sbindir,;t t
53739 s,@libexecdir@,$libexecdir,;t t
53740 s,@datadir@,$datadir,;t t
53741 s,@sysconfdir@,$sysconfdir,;t t
53742 s,@sharedstatedir@,$sharedstatedir,;t t
53743 s,@localstatedir@,$localstatedir,;t t
53744 s,@libdir@,$libdir,;t t
53745 s,@includedir@,$includedir,;t t
53746 s,@oldincludedir@,$oldincludedir,;t t
53747 s,@infodir@,$infodir,;t t
53748 s,@mandir@,$mandir,;t t
53749 s,@build_alias@,$build_alias,;t t
53750 s,@host_alias@,$host_alias,;t t
53751 s,@target_alias@,$target_alias,;t t
53752 s,@DEFS@,$DEFS,;t t
53753 s,@ECHO_C@,$ECHO_C,;t t
53754 s,@ECHO_N@,$ECHO_N,;t t
53755 s,@ECHO_T@,$ECHO_T,;t t
53756 s,@LIBS@,$LIBS,;t t
53757 s,@build@,$build,;t t
53758 s,@build_cpu@,$build_cpu,;t t
53759 s,@build_vendor@,$build_vendor,;t t
53760 s,@build_os@,$build_os,;t t
53761 s,@host@,$host,;t t
53762 s,@host_cpu@,$host_cpu,;t t
53763 s,@host_vendor@,$host_vendor,;t t
53764 s,@host_os@,$host_os,;t t
53765 s,@target@,$target,;t t
53766 s,@target_cpu@,$target_cpu,;t t
53767 s,@target_vendor@,$target_vendor,;t t
53768 s,@target_os@,$target_os,;t t
53769 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53770 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53771 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53772 s,@CYGPATH_W@,$CYGPATH_W,;t t
53773 s,@PACKAGE@,$PACKAGE,;t t
53774 s,@VERSION@,$VERSION,;t t
53775 s,@ACLOCAL@,$ACLOCAL,;t t
53776 s,@AUTOCONF@,$AUTOCONF,;t t
53777 s,@AUTOMAKE@,$AUTOMAKE,;t t
53778 s,@AUTOHEADER@,$AUTOHEADER,;t t
53779 s,@MAKEINFO@,$MAKEINFO,;t t
53780 s,@install_sh@,$install_sh,;t t
53781 s,@STRIP@,$STRIP,;t t
53782 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53783 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53784 s,@mkdir_p@,$mkdir_p,;t t
53786 s,@SET_MAKE@,$SET_MAKE,;t t
53787 s,@am__leading_dot@,$am__leading_dot,;t t
53788 s,@AMTAR@,$AMTAR,;t t
53789 s,@am__tar@,$am__tar,;t t
53790 s,@am__untar@,$am__untar,;t t
53791 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53792 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53793 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53794 s,@top_builddir@,$top_builddir,;t t
53795 s,@ldap_subdir@,$ldap_subdir,;t t
53798 s,@CFLAGS@,$CFLAGS,;t t
53799 s,@LDFLAGS@,$LDFLAGS,;t t
53800 s,@CPPFLAGS@,$CPPFLAGS,;t t
53801 s,@ac_ct_CC@,$ac_ct_CC,;t t
53802 s,@EXEEXT@,$EXEEXT,;t t
53803 s,@OBJEXT@,$OBJEXT,;t t
53804 s,@DEPDIR@,$DEPDIR,;t t
53805 s,@am__include@,$am__include,;t t
53806 s,@am__quote@,$am__quote,;t t
53807 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53808 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53809 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53810 s,@CCDEPMODE@,$CCDEPMODE,;t t
53811 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53812 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53813 s,@EGREP@,$EGREP,;t t
53814 s,@LN_S@,$LN_S,;t t
53815 s,@ECHO@,$ECHO,;t t
53816 s,@ac_ct_AR@,$ac_ct_AR,;t t
53817 s,@RANLIB@,$RANLIB,;t t
53818 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53819 s,@DLLTOOL@,$DLLTOOL,;t t
53820 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53822 s,@ac_ct_AS@,$ac_ct_AS,;t t
53823 s,@OBJDUMP@,$OBJDUMP,;t t
53824 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53827 s,@CXXFLAGS@,$CXXFLAGS,;t t
53828 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53829 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53830 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53831 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53832 s,@CXXCPP@,$CXXCPP,;t t
53834 s,@FFLAGS@,$FFLAGS,;t t
53835 s,@ac_ct_F77@,$ac_ct_F77,;t t
53836 s,@LIBTOOL@,$LIBTOOL,;t t
53837 s,@PERLBIN@,$PERLBIN,;t t
53838 s,@OL_MKDEP@,$OL_MKDEP,;t t
53839 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53840 s,@LTSTATIC@,$LTSTATIC,;t t
53841 s,@LIBOBJS@,$LIBOBJS,;t t
53842 s,@LIBSRCS@,$LIBSRCS,;t t
53843 s,@PLAT@,$PLAT,;t t
53844 s,@WITH_SASL@,$WITH_SASL,;t t
53845 s,@WITH_TLS@,$WITH_TLS,;t t
53846 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53847 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53848 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53849 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53850 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53851 s,@BUILD_BDB@,$BUILD_BDB,;t t
53852 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53853 s,@BUILD_HDB@,$BUILD_HDB,;t t
53854 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53855 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53856 s,@BUILD_META@,$BUILD_META,;t t
53857 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53858 s,@BUILD_NULL@,$BUILD_NULL,;t t
53859 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53860 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53861 s,@BUILD_PERL@,$BUILD_PERL,;t t
53862 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53863 s,@BUILD_SQL@,$BUILD_SQL,;t t
53864 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53865 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53866 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53867 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53868 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53869 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53870 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53871 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53872 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53873 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53874 s,@BUILD_RWM@,$BUILD_RWM,;t t
53875 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53876 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53877 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53878 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
53879 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53880 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53881 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53882 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53883 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53884 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53885 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53886 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53887 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53888 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53889 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53890 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53891 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53892 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53893 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53894 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53895 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53896 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53897 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53898 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53899 s,@SASL_LIBS@,$SASL_LIBS,;t t
53900 s,@TLS_LIBS@,$TLS_LIBS,;t t
53901 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53902 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53903 s,@LIBSLAPI@,$LIBSLAPI,;t t
53904 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53905 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53906 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53907 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53908 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53909 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53910 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53911 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53916 cat >>$CONFIG_STATUS <<\_ACEOF
53917 # Split the substitutions into bite-sized pieces for seds with
53918 # small command number limits, like on Digital OSF/1 and HP-UX.
53919 ac_max_sed_lines=48
53920 ac_sed_frag=1 # Number of current file.
53921 ac_beg=1 # First line for current file.
53922 ac_end=$ac_max_sed_lines # Line after last line for current file.
53925 while $ac_more_lines; do
53926 if test $ac_beg -gt 1; then
53927 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53929 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53931 if test ! -s $tmp/subs.frag; then
53932 ac_more_lines=false
53934 # The purpose of the label and of the branching condition is to
53935 # speed up the sed processing (if there are no `@' at all, there
53936 # is no need to browse any of the substitutions).
53937 # These are the two extra sed commands mentioned above.
53939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53940 if test -z "$ac_sed_cmds"; then
53941 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53943 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53945 ac_sed_frag=`expr $ac_sed_frag + 1`
53947 ac_end=`expr $ac_end + $ac_max_sed_lines`
53950 if test -z "$ac_sed_cmds"; then
53953 fi # test -n "$CONFIG_FILES"
53956 cat >>$CONFIG_STATUS <<\_ACEOF
53957 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53960 - | *:- | *:-:* ) # input from stdin
53962 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53964 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53966 * ) ac_file_in=$ac_file.in ;;
53969 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53970 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53972 X"$ac_file" : 'X\(//\)[^/]' \| \
53973 X"$ac_file" : 'X\(//\)$' \| \
53974 X"$ac_file" : 'X\(/\)' \| \
53975 . : '\(.\)' 2>/dev/null ||
53977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53979 /^X\(\/\/\)$/{ s//\1/; q; }
53980 /^X\(\/\).*/{ s//\1/; q; }
53982 { if $as_mkdir_p; then
53987 while test ! -d "$as_dir"; do
53988 as_dirs="$as_dir $as_dirs"
53989 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53991 X"$as_dir" : 'X\(//\)[^/]' \| \
53992 X"$as_dir" : 'X\(//\)$' \| \
53993 X"$as_dir" : 'X\(/\)' \| \
53994 . : '\(.\)' 2>/dev/null ||
53996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53998 /^X\(\/\/\)$/{ s//\1/; q; }
53999 /^X\(\/\).*/{ s//\1/; q; }
54002 test ! -n "$as_dirs" || mkdir $as_dirs
54003 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54004 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54005 { (exit 1); exit 1; }; }; }
54009 if test "$ac_dir" != .; then
54010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54011 # A "../" for each directory in $ac_dir_suffix.
54012 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54014 ac_dir_suffix= ac_top_builddir=
54018 .) # No --srcdir option. We are building in place.
54020 if test -z "$ac_top_builddir"; then
54023 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54025 [\\/]* | ?:[\\/]* ) # Absolute path.
54026 ac_srcdir=$srcdir$ac_dir_suffix;
54027 ac_top_srcdir=$srcdir ;;
54028 *) # Relative path.
54029 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54030 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54033 # Do not use `cd foo && pwd` to compute absolute paths, because
54034 # the directories may not exist.
54036 .) ac_abs_builddir="$ac_dir";;
54039 .) ac_abs_builddir=`pwd`;;
54040 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54041 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54044 case $ac_abs_builddir in
54045 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54047 case ${ac_top_builddir}. in
54048 .) ac_abs_top_builddir=$ac_abs_builddir;;
54049 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54050 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54053 case $ac_abs_builddir in
54054 .) ac_abs_srcdir=$ac_srcdir;;
54057 .) ac_abs_srcdir=$ac_abs_builddir;;
54058 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54059 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54062 case $ac_abs_builddir in
54063 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54065 case $ac_top_srcdir in
54066 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54067 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54068 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54074 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54075 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54078 if test x"$ac_file" != x-; then
54079 { echo "$as_me:$LINENO: creating $ac_file" >&5
54080 echo "$as_me: creating $ac_file" >&6;}
54083 # Let's still pretend it is `configure' which instantiates (i.e., don't
54084 # use $as_me), people would be surprised to read:
54085 # /* config.h. Generated by config.status. */
54086 if test x"$ac_file" = x-; then
54089 configure_input="$ac_file. "
54091 configure_input=$configure_input"Generated from `echo $ac_file_in |
54092 sed 's,.*/,,'` by configure."
54094 # First look for the input files in the build tree, otherwise in the
54096 ac_file_inputs=`IFS=:
54097 for f in $ac_file_in; do
54099 -) echo $tmp/stdin ;;
54101 # Absolute (can't be DOS-style, as IFS=:)
54102 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54103 echo "$as_me: error: cannot find input file: $f" >&2;}
54104 { (exit 1); exit 1; }; }
54107 if test -f "$f"; then
54110 elif test -f "$srcdir/$f"; then
54115 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54116 echo "$as_me: error: cannot find input file: $f" >&2;}
54117 { (exit 1); exit 1; }; }
54120 done` || { (exit 1); exit 1; }
54122 cat >>$CONFIG_STATUS <<_ACEOF
54126 cat >>$CONFIG_STATUS <<\_ACEOF
54128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54129 s,@configure_input@,$configure_input,;t t
54130 s,@srcdir@,$ac_srcdir,;t t
54131 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54132 s,@top_srcdir@,$ac_top_srcdir,;t t
54133 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54134 s,@builddir@,$ac_builddir,;t t
54135 s,@abs_builddir@,$ac_abs_builddir,;t t
54136 s,@top_builddir@,$ac_top_builddir,;t t
54137 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54138 s,@INSTALL@,$ac_INSTALL,;t t
54139 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54141 if test x"$ac_file" != x-; then
54142 mv $tmp/out $ac_file
54150 cat >>$CONFIG_STATUS <<\_ACEOF
54153 # CONFIG_HEADER section.
54156 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54157 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54159 # ac_d sets the value in "#define NAME VALUE" lines.
54160 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
54161 ac_dB='[ ].*$,\1#\2'
54164 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54165 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
54166 ac_uB='$,\1#\2define\3'
54170 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54173 - | *:- | *:-:* ) # input from stdin
54175 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54177 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54178 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54179 * ) ac_file_in=$ac_file.in ;;
54182 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54183 echo "$as_me: creating $ac_file" >&6;}
54185 # First look for the input files in the build tree, otherwise in the
54187 ac_file_inputs=`IFS=:
54188 for f in $ac_file_in; do
54190 -) echo $tmp/stdin ;;
54192 # Absolute (can't be DOS-style, as IFS=:)
54193 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54194 echo "$as_me: error: cannot find input file: $f" >&2;}
54195 { (exit 1); exit 1; }; }
54196 # Do quote $f, to prevent DOS paths from being IFS'd.
54199 if test -f "$f"; then
54202 elif test -f "$srcdir/$f"; then
54207 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54208 echo "$as_me: error: cannot find input file: $f" >&2;}
54209 { (exit 1); exit 1; }; }
54212 done` || { (exit 1); exit 1; }
54213 # Remove the trailing spaces.
54214 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
54218 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54219 # `conftest.undefs', that substitutes the proper values into
54220 # config.h.in to produce config.h. The first handles `#define'
54221 # templates, and the second `#undef' templates.
54222 # And first: Protect against being on the right side of a sed subst in
54223 # config.status. Protect against being in an unquoted here document
54224 # in config.status.
54225 rm -f conftest.defines conftest.undefs
54226 # Using a here document instead of a string reduces the quoting nightmare.
54227 # Putting comments in sed scripts is not portable.
54229 # `end' is used to avoid that the second main sed command (meant for
54230 # 0-ary CPP macros) applies to n-ary macro definitions.
54231 # See the Autoconf documentation for `clear'.
54232 cat >confdef2sed.sed <<\_ACEOF
54237 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54239 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54242 # If some macros were called several times there might be several times
54243 # the same #defines, which is useless. Nevertheless, we may not want to
54244 # sort them, since we want the *last* AC-DEFINE to be honored.
54245 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54246 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54247 rm -f confdef2sed.sed
54249 # This sed command replaces #undef with comments. This is necessary, for
54250 # example, in the case of _POSIX_SOURCE, which is predefined and required
54251 # on some systems where configure will not decide to define it.
54252 cat >>conftest.undefs <<\_ACEOF
54253 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54256 # Break up conftest.defines because some shells have a limit on the size
54257 # of here documents, and old seds have small limits too (100 cmds).
54258 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54259 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54260 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54261 echo ' :' >>$CONFIG_STATUS
54262 rm -f conftest.tail
54263 while grep . conftest.defines >/dev/null
54265 # Write a limited-size here document to $tmp/defines.sed.
54266 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54267 # Speed up: don't consider the non `#define' lines.
54268 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
54269 # Work around the forget-to-reset-the-flag bug.
54270 echo 't clr' >>$CONFIG_STATUS
54271 echo ': clr' >>$CONFIG_STATUS
54272 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54274 sed -f $tmp/defines.sed $tmp/in >$tmp/out
54276 mv $tmp/out $tmp/in
54278 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54279 rm -f conftest.defines
54280 mv conftest.tail conftest.defines
54282 rm -f conftest.defines
54283 echo ' fi # grep' >>$CONFIG_STATUS
54284 echo >>$CONFIG_STATUS
54286 # Break up conftest.undefs because some shells have a limit on the size
54287 # of here documents, and old seds have small limits too (100 cmds).
54288 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
54289 rm -f conftest.tail
54290 while grep . conftest.undefs >/dev/null
54292 # Write a limited-size here document to $tmp/undefs.sed.
54293 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54294 # Speed up: don't consider the non `#undef'
54295 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
54296 # Work around the forget-to-reset-the-flag bug.
54297 echo 't clr' >>$CONFIG_STATUS
54298 echo ': clr' >>$CONFIG_STATUS
54299 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54301 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54303 mv $tmp/out $tmp/in
54305 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54306 rm -f conftest.undefs
54307 mv conftest.tail conftest.undefs
54309 rm -f conftest.undefs
54311 cat >>$CONFIG_STATUS <<\_ACEOF
54312 # Let's still pretend it is `configure' which instantiates (i.e., don't
54313 # use $as_me), people would be surprised to read:
54314 # /* config.h. Generated by config.status. */
54315 if test x"$ac_file" = x-; then
54316 echo "/* Generated by configure. */" >$tmp/config.h
54318 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
54320 cat $tmp/in >>$tmp/config.h
54322 if test x"$ac_file" != x-; then
54323 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54324 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54325 echo "$as_me: $ac_file is unchanged" >&6;}
54327 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54329 X"$ac_file" : 'X\(//\)[^/]' \| \
54330 X"$ac_file" : 'X\(//\)$' \| \
54331 X"$ac_file" : 'X\(/\)' \| \
54332 . : '\(.\)' 2>/dev/null ||
54334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54336 /^X\(\/\/\)$/{ s//\1/; q; }
54337 /^X\(\/\).*/{ s//\1/; q; }
54339 { if $as_mkdir_p; then
54344 while test ! -d "$as_dir"; do
54345 as_dirs="$as_dir $as_dirs"
54346 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54348 X"$as_dir" : 'X\(//\)[^/]' \| \
54349 X"$as_dir" : 'X\(//\)$' \| \
54350 X"$as_dir" : 'X\(/\)' \| \
54351 . : '\(.\)' 2>/dev/null ||
54353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54355 /^X\(\/\/\)$/{ s//\1/; q; }
54356 /^X\(\/\).*/{ s//\1/; q; }
54359 test ! -n "$as_dirs" || mkdir $as_dirs
54360 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54361 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54362 { (exit 1); exit 1; }; }; }
54365 mv $tmp/config.h $ac_file
54369 rm -f $tmp/config.h
54371 # Compute $ac_file's index in $config_headers.
54373 for _am_header in $config_headers :; do
54374 case $_am_header in
54375 $ac_file | $ac_file:* )
54378 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54381 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54382 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54383 X$ac_file : 'X\(//\)[^/]' \| \
54384 X$ac_file : 'X\(//\)$' \| \
54385 X$ac_file : 'X\(/\)' \| \
54386 . : '\(.\)' 2>/dev/null ||
54388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54390 /^X\(\/\/\)$/{ s//\1/; q; }
54391 /^X\(\/\).*/{ s//\1/; q; }
54392 s/.*/./; q'`/stamp-h$_am_stamp_count
54395 cat >>$CONFIG_STATUS <<\_ACEOF
54398 # CONFIG_COMMANDS section.
54400 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54401 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54402 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54403 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54404 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54405 X"$ac_dest" : 'X\(//\)[^/]' \| \
54406 X"$ac_dest" : 'X\(//\)$' \| \
54407 X"$ac_dest" : 'X\(/\)' \| \
54408 . : '\(.\)' 2>/dev/null ||
54410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54412 /^X\(\/\/\)$/{ s//\1/; q; }
54413 /^X\(\/\).*/{ s//\1/; q; }
54415 { if $as_mkdir_p; then
54420 while test ! -d "$as_dir"; do
54421 as_dirs="$as_dir $as_dirs"
54422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54424 X"$as_dir" : 'X\(//\)[^/]' \| \
54425 X"$as_dir" : 'X\(//\)$' \| \
54426 X"$as_dir" : 'X\(/\)' \| \
54427 . : '\(.\)' 2>/dev/null ||
54429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54431 /^X\(\/\/\)$/{ s//\1/; q; }
54432 /^X\(\/\).*/{ s//\1/; q; }
54435 test ! -n "$as_dirs" || mkdir $as_dirs
54436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54438 { (exit 1); exit 1; }; }; }
54442 if test "$ac_dir" != .; then
54443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54444 # A "../" for each directory in $ac_dir_suffix.
54445 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54447 ac_dir_suffix= ac_top_builddir=
54451 .) # No --srcdir option. We are building in place.
54453 if test -z "$ac_top_builddir"; then
54456 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54458 [\\/]* | ?:[\\/]* ) # Absolute path.
54459 ac_srcdir=$srcdir$ac_dir_suffix;
54460 ac_top_srcdir=$srcdir ;;
54461 *) # Relative path.
54462 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54463 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54466 # Do not use `cd foo && pwd` to compute absolute paths, because
54467 # the directories may not exist.
54469 .) ac_abs_builddir="$ac_dir";;
54472 .) ac_abs_builddir=`pwd`;;
54473 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54474 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54477 case $ac_abs_builddir in
54478 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54480 case ${ac_top_builddir}. in
54481 .) ac_abs_top_builddir=$ac_abs_builddir;;
54482 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54483 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54486 case $ac_abs_builddir in
54487 .) ac_abs_srcdir=$ac_srcdir;;
54490 .) ac_abs_srcdir=$ac_abs_builddir;;
54491 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54492 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54495 case $ac_abs_builddir in
54496 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54498 case $ac_top_srcdir in
54499 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54500 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54501 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54506 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54507 echo "$as_me: executing $ac_dest commands" >&6;}
54509 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54510 # Strip MF so we end up with the name of the file.
54511 mf=`echo "$mf" | sed -e 's/:.*$//'`
54512 # Check whether this is an Automake generated Makefile or not.
54513 # We used to match only the files named `Makefile.in', but
54514 # some people rename them; so instead we look at the file content.
54515 # Grep'ing the first line is not enough: some people post-process
54516 # each Makefile.in and add a new line on top of each file to say so.
54517 # So let's grep whole file.
54518 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54519 dirpart=`(dirname "$mf") 2>/dev/null ||
54520 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54521 X"$mf" : 'X\(//\)[^/]' \| \
54522 X"$mf" : 'X\(//\)$' \| \
54523 X"$mf" : 'X\(/\)' \| \
54524 . : '\(.\)' 2>/dev/null ||
54526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54528 /^X\(\/\/\)$/{ s//\1/; q; }
54529 /^X\(\/\).*/{ s//\1/; q; }
54534 # Extract the definition of DEPDIR, am__include, and am__quote
54535 # from the Makefile without running `make'.
54536 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54537 test -z "$DEPDIR" && continue
54538 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54539 test -z "am__include" && continue
54540 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54541 # When using ansi2knr, U may be empty or an underscore; expand it
54542 U=`sed -n 's/^U = //p' < "$mf"`
54543 # Find all dependency output files, they are included files with
54544 # $(DEPDIR) in their names. We invoke sed twice because it is the
54545 # simplest approach to changing $(DEPDIR) to its actual value in the
54547 for file in `sed -n "
54548 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54549 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54550 # Make sure the directory exists.
54551 test -f "$dirpart/$file" && continue
54552 fdir=`(dirname "$file") 2>/dev/null ||
54553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54554 X"$file" : 'X\(//\)[^/]' \| \
54555 X"$file" : 'X\(//\)$' \| \
54556 X"$file" : 'X\(/\)' \| \
54557 . : '\(.\)' 2>/dev/null ||
54559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54561 /^X\(\/\/\)$/{ s//\1/; q; }
54562 /^X\(\/\).*/{ s//\1/; q; }
54564 { if $as_mkdir_p; then
54565 mkdir -p $dirpart/$fdir
54567 as_dir=$dirpart/$fdir
54569 while test ! -d "$as_dir"; do
54570 as_dirs="$as_dir $as_dirs"
54571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54573 X"$as_dir" : 'X\(//\)[^/]' \| \
54574 X"$as_dir" : 'X\(//\)$' \| \
54575 X"$as_dir" : 'X\(/\)' \| \
54576 . : '\(.\)' 2>/dev/null ||
54578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54580 /^X\(\/\/\)$/{ s//\1/; q; }
54581 /^X\(\/\).*/{ s//\1/; q; }
54584 test ! -n "$as_dirs" || mkdir $as_dirs
54585 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54586 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54587 { (exit 1); exit 1; }; }; }
54589 # echo "creating $dirpart/$file"
54590 echo '# dummy' > "$dirpart/$file"
54597 BACKENDSC="servers/slapd/backends.c"
54598 echo "Making $BACKENDSC"
54600 cat > $BACKENDSC << ENDX
54601 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54603 * Copyright 1998-2005 The OpenLDAP Foundation.
54604 * All rights reserved.
54606 * Redistribution and use in source and binary forms, with or without
54607 * modification, are permitted only as authorized by the OpenLDAP
54610 * A copy of this license is available in the file LICENSE in the
54611 * top-level directory of the distribution or, alternatively, at
54612 * <http://www.OpenLDAP.org/license.html>.
54614 /* This file is automatically generated by configure; please do not edit. */
54616 #include "portable.h"
54620 if test "${STATIC_BACKENDS}"; then
54621 for b in config ${STATIC_BACKENDS}; do
54622 bb=`echo "${b}" | sed -e 's/back-//'`
54623 cat >> $BACKENDSC << ENDX
54624 extern BI_init ${bb}_back_initialize;
54628 cat >> $BACKENDSC << ENDX
54630 BackendInfo slap_binfo[] = {
54633 for b in config ${STATIC_BACKENDS}; do
54634 bb=`echo "${b}" | sed -e 's/back-//'`
54635 echo " Add ${bb} ..."
54636 cat >> $BACKENDSC << ENDX
54637 { "${bb}", ${bb}_back_initialize },
54641 cat >> $BACKENDSC << ENDX
54645 /* end of generated file */
54649 echo Please run \"make depend\" to build dependencies
54655 cat >>$CONFIG_STATUS <<\_ACEOF
54657 { (exit 0); exit 0; }
54659 chmod +x $CONFIG_STATUS
54660 ac_clean_files=$ac_clean_files_save
54663 # configure is writing to config.log, and then calls config.status.
54664 # config.status does its own redirection, appending to config.log.
54665 # Unfortunately, on DOS this fails, as config.log is still kept open
54666 # by configure, so config.status won't be able to write to it; its
54667 # output is simply discarded. So we exec the FD to /dev/null,
54668 # effectively closing config.log, so it can be properly (re)opened and
54669 # appended to by config.status. When coming back to configure, we
54670 # need to make the FD available again.
54671 if test "$no_create" != yes; then
54673 ac_config_status_args=
54674 test "$silent" = yes &&
54675 ac_config_status_args="$ac_config_status_args --quiet"
54677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54680 # would make configure fail if this is the last instruction.
54681 $ac_cs_success || { (exit 1); exit 1; }