2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.596 2005/08/26 01:26:05 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
432 ac_unique_file="OpenLDAP"
433 ac_unique_file="build/version.sh"
434 ac_default_prefix=/usr/local
435 # Factoring default headers for most tests.
436 ac_includes_default="\
439 # include <sys/types.h>
442 # include <sys/stat.h>
453 # if !STDC_HEADERS && HAVE_MEMORY_H
459 # include <strings.h>
462 # include <inttypes.h>
472 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
475 # Initialize some variables set by options.
477 ac_init_version=false
478 # The variables have the same names as the options, with
479 # dashes changed to underlines.
487 program_transform_name=s,x,x,
495 # Installation directory options.
496 # These are left unexpanded so users can "make install exec_prefix=/foo"
497 # and all the variables that are supposed to be based on exec_prefix
498 # by default will actually change.
499 # Use braces instead of parens because sh, perl, etc. also accept them.
500 bindir='${exec_prefix}/bin'
501 sbindir='${exec_prefix}/sbin'
502 libexecdir='${exec_prefix}/libexec'
503 datadir='${prefix}/share'
504 sysconfdir='${prefix}/etc'
505 sharedstatedir='${prefix}/com'
506 localstatedir='${prefix}/var'
507 libdir='${exec_prefix}/lib'
508 includedir='${prefix}/include'
509 oldincludedir='/usr/include'
510 infodir='${prefix}/info'
511 mandir='${prefix}/man'
516 # If the previous option needs an argument, assign it.
517 if test -n "$ac_prev"; then
518 eval "$ac_prev=\$ac_option"
523 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525 # Accept the important Cygnus configure options, so we can diagnose typos.
529 -bindir | --bindir | --bindi | --bind | --bin | --bi)
531 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
534 -build | --build | --buil | --bui | --bu)
535 ac_prev=build_alias ;;
536 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537 build_alias=$ac_optarg ;;
539 -cache-file | --cache-file | --cache-fil | --cache-fi \
540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541 ac_prev=cache_file ;;
542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544 cache_file=$ac_optarg ;;
547 cache_file=config.cache ;;
549 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553 datadir=$ac_optarg ;;
555 -disable-* | --disable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 eval "enable_$ac_feature=no" ;;
564 -enable-* | --enable-*)
565 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566 # Reject names that are not valid shell variable names.
567 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569 { (exit 1); exit 1; }; }
570 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575 eval "enable_$ac_feature='$ac_optarg'" ;;
577 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579 | --exec | --exe | --ex)
580 ac_prev=exec_prefix ;;
581 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583 | --exec=* | --exe=* | --ex=*)
584 exec_prefix=$ac_optarg ;;
586 -gas | --gas | --ga | --g)
587 # Obsolete; use --with-gas.
590 -help | --help | --hel | --he | -h)
592 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593 ac_init_help=recursive ;;
594 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595 ac_init_help=short ;;
597 -host | --host | --hos | --ho)
598 ac_prev=host_alias ;;
599 -host=* | --host=* | --hos=* | --ho=*)
600 host_alias=$ac_optarg ;;
602 -includedir | --includedir | --includedi | --included | --include \
603 | --includ | --inclu | --incl | --inc)
604 ac_prev=includedir ;;
605 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606 | --includ=* | --inclu=* | --incl=* | --inc=*)
607 includedir=$ac_optarg ;;
609 -infodir | --infodir | --infodi | --infod | --info | --inf)
611 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612 infodir=$ac_optarg ;;
614 -libdir | --libdir | --libdi | --libd)
616 -libdir=* | --libdir=* | --libdi=* | --libd=*)
619 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620 | --libexe | --libex | --libe)
621 ac_prev=libexecdir ;;
622 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623 | --libexe=* | --libex=* | --libe=*)
624 libexecdir=$ac_optarg ;;
626 -localstatedir | --localstatedir | --localstatedi | --localstated \
627 | --localstate | --localstat | --localsta | --localst \
628 | --locals | --local | --loca | --loc | --lo)
629 ac_prev=localstatedir ;;
630 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633 localstatedir=$ac_optarg ;;
635 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641 # Obsolete; use --without-fp.
644 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645 | --no-cr | --no-c | -n)
648 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
652 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654 | --oldin | --oldi | --old | --ol | --o)
655 ac_prev=oldincludedir ;;
656 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659 oldincludedir=$ac_optarg ;;
661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
666 -program-prefix | --program-prefix | --program-prefi | --program-pref \
667 | --program-pre | --program-pr | --program-p)
668 ac_prev=program_prefix ;;
669 -program-prefix=* | --program-prefix=* | --program-prefi=* \
670 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671 program_prefix=$ac_optarg ;;
673 -program-suffix | --program-suffix | --program-suffi | --program-suff \
674 | --program-suf | --program-su | --program-s)
675 ac_prev=program_suffix ;;
676 -program-suffix=* | --program-suffix=* | --program-suffi=* \
677 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678 program_suffix=$ac_optarg ;;
680 -program-transform-name | --program-transform-name \
681 | --program-transform-nam | --program-transform-na \
682 | --program-transform-n | --program-transform- \
683 | --program-transform | --program-transfor \
684 | --program-transfo | --program-transf \
685 | --program-trans | --program-tran \
686 | --progr-tra | --program-tr | --program-t)
687 ac_prev=program_transform_name ;;
688 -program-transform-name=* | --program-transform-name=* \
689 | --program-transform-nam=* | --program-transform-na=* \
690 | --program-transform-n=* | --program-transform-=* \
691 | --program-transform=* | --program-transfor=* \
692 | --program-transfo=* | --program-transf=* \
693 | --program-trans=* | --program-tran=* \
694 | --progr-tra=* | --program-tr=* | --program-t=*)
695 program_transform_name=$ac_optarg ;;
697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698 | -silent | --silent | --silen | --sile | --sil)
701 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705 sbindir=$ac_optarg ;;
707 -sharedstatedir | --sharedstatedir | --sharedstatedi \
708 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709 | --sharedst | --shareds | --shared | --share | --shar \
711 ac_prev=sharedstatedir ;;
712 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716 sharedstatedir=$ac_optarg ;;
718 -site | --site | --sit)
720 -site=* | --site=* | --sit=*)
723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
728 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729 | --syscon | --sysco | --sysc | --sys | --sy)
730 ac_prev=sysconfdir ;;
731 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733 sysconfdir=$ac_optarg ;;
735 -target | --target | --targe | --targ | --tar | --ta | --t)
736 ac_prev=target_alias ;;
737 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738 target_alias=$ac_optarg ;;
740 -v | -verbose | --verbose | --verbos | --verbo | --verb)
743 -version | --version | --versio | --versi | --vers | -V)
747 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748 # Reject names that are not valid shell variable names.
749 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750 { echo "$as_me: error: invalid package name: $ac_package" >&2
751 { (exit 1); exit 1; }; }
752 ac_package=`echo $ac_package| sed 's/-/_/g'`
754 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
757 eval "with_$ac_package='$ac_optarg'" ;;
759 -without-* | --without-*)
760 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761 # Reject names that are not valid shell variable names.
762 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763 { echo "$as_me: error: invalid package name: $ac_package" >&2
764 { (exit 1); exit 1; }; }
765 ac_package=`echo $ac_package | sed 's/-/_/g'`
766 eval "with_$ac_package=no" ;;
769 # Obsolete; use --with-x.
772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773 | --x-incl | --x-inc | --x-in | --x-i)
774 ac_prev=x_includes ;;
775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777 x_includes=$ac_optarg ;;
779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781 ac_prev=x_libraries ;;
782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784 x_libraries=$ac_optarg ;;
786 -*) { echo "$as_me: error: unrecognized option: $ac_option
787 Try \`$0 --help' for more information." >&2
788 { (exit 1); exit 1; }; }
792 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796 { (exit 1); exit 1; }; }
797 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798 eval "$ac_envvar='$ac_optarg'"
802 # FIXME: should be removed in autoconf 3.0.
803 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812 if test -n "$ac_prev"; then
813 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814 { echo "$as_me: error: missing argument to $ac_option" >&2
815 { (exit 1); exit 1; }; }
818 # Be sure to have absolute paths.
819 for ac_var in exec_prefix prefix
821 eval ac_val=$`echo $ac_var`
823 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
829 # Be sure to have absolute paths.
830 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831 localstatedir libdir includedir oldincludedir infodir mandir
833 eval ac_val=$`echo $ac_var`
835 [\\/$]* | ?:[\\/]* ) ;;
836 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837 { (exit 1); exit 1; }; };;
841 # There might be people who depend on the old broken behavior: `$host'
842 # used to hold the argument of --host etc.
843 # FIXME: To remove some day.
848 # FIXME: To remove some day.
849 if test "x$host_alias" != x; then
850 if test "x$build_alias" = x; then
851 cross_compiling=maybe
852 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853 If a cross compiler is detected then cross compile mode will be used." >&2
854 elif test "x$build_alias" != "x$host_alias"; then
860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
862 test "$silent" = yes && exec 6>/dev/null
865 # Find the source files, if location was not specified.
866 if test -z "$srcdir"; then
867 ac_srcdir_defaulted=yes
868 # Try the directory containing this script, then its parent.
869 ac_confdir=`(dirname "$0") 2>/dev/null ||
870 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871 X"$0" : 'X\(//\)[^/]' \| \
872 X"$0" : 'X\(//\)$' \| \
873 X"$0" : 'X\(/\)' \| \
874 . : '\(.\)' 2>/dev/null ||
876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878 /^X\(\/\/\)$/{ s//\1/; q; }
879 /^X\(\/\).*/{ s//\1/; q; }
882 if test ! -r $srcdir/$ac_unique_file; then
886 ac_srcdir_defaulted=no
888 if test ! -r $srcdir/$ac_unique_file; then
889 if test "$ac_srcdir_defaulted" = yes; then
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891 { (exit 1); exit 1; }; }
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894 { (exit 1); exit 1; }; }
897 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899 { (exit 1); exit 1; }; }
900 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901 ac_env_build_alias_set=${build_alias+set}
902 ac_env_build_alias_value=$build_alias
903 ac_cv_env_build_alias_set=${build_alias+set}
904 ac_cv_env_build_alias_value=$build_alias
905 ac_env_host_alias_set=${host_alias+set}
906 ac_env_host_alias_value=$host_alias
907 ac_cv_env_host_alias_set=${host_alias+set}
908 ac_cv_env_host_alias_value=$host_alias
909 ac_env_target_alias_set=${target_alias+set}
910 ac_env_target_alias_value=$target_alias
911 ac_cv_env_target_alias_set=${target_alias+set}
912 ac_cv_env_target_alias_value=$target_alias
913 ac_env_CC_set=${CC+set}
915 ac_cv_env_CC_set=${CC+set}
916 ac_cv_env_CC_value=$CC
917 ac_env_CFLAGS_set=${CFLAGS+set}
918 ac_env_CFLAGS_value=$CFLAGS
919 ac_cv_env_CFLAGS_set=${CFLAGS+set}
920 ac_cv_env_CFLAGS_value=$CFLAGS
921 ac_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_env_LDFLAGS_value=$LDFLAGS
923 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924 ac_cv_env_LDFLAGS_value=$LDFLAGS
925 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_env_CPPFLAGS_value=$CPPFLAGS
927 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929 ac_env_CPP_set=${CPP+set}
930 ac_env_CPP_value=$CPP
931 ac_cv_env_CPP_set=${CPP+set}
932 ac_cv_env_CPP_value=$CPP
933 ac_env_CXX_set=${CXX+set}
934 ac_env_CXX_value=$CXX
935 ac_cv_env_CXX_set=${CXX+set}
936 ac_cv_env_CXX_value=$CXX
937 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_env_CXXFLAGS_value=$CXXFLAGS
939 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
941 ac_env_CXXCPP_set=${CXXCPP+set}
942 ac_env_CXXCPP_value=$CXXCPP
943 ac_cv_env_CXXCPP_set=${CXXCPP+set}
944 ac_cv_env_CXXCPP_value=$CXXCPP
945 ac_env_F77_set=${F77+set}
946 ac_env_F77_value=$F77
947 ac_cv_env_F77_set=${F77+set}
948 ac_cv_env_F77_value=$F77
949 ac_env_FFLAGS_set=${FFLAGS+set}
950 ac_env_FFLAGS_value=$FFLAGS
951 ac_cv_env_FFLAGS_set=${FFLAGS+set}
952 ac_cv_env_FFLAGS_value=$FFLAGS
955 # Report the --help message.
957 if test "$ac_init_help" = "long"; then
958 # Omit some internal or obsolete options to make the list less imposing.
959 # This message is too long to be a string in the A/UX 3.1 sh.
961 \`configure' configures this package to adapt to many kinds of systems.
963 Usage: $0 [OPTION]... [VAR=VALUE]...
965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
966 VAR=VALUE. See below for descriptions of some of the useful variables.
968 Defaults for the options are specified in brackets.
971 -h, --help display this help and exit
972 --help=short display options specific to this package
973 --help=recursive display the short help of all the included packages
974 -V, --version display version information and exit
975 -q, --quiet, --silent do not print \`checking...' messages
976 --cache-file=FILE cache test results in FILE [disabled]
977 -C, --config-cache alias for \`--cache-file=config.cache'
978 -n, --no-create do not create output files
979 --srcdir=DIR find the sources in DIR [configure dir or \`..']
984 Installation directories:
985 --prefix=PREFIX install architecture-independent files in PREFIX
987 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
990 By default, \`make install' will install all the files in
991 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
992 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993 for instance \`--prefix=\$HOME'.
995 For better control, use the options below.
997 Fine tuning of the installation directories:
998 --bindir=DIR user executables [EPREFIX/bin]
999 --sbindir=DIR system admin executables [EPREFIX/sbin]
1000 --libexecdir=DIR program executables [EPREFIX/libexec]
1001 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1005 --libdir=DIR object code libraries [EPREFIX/lib]
1006 --includedir=DIR C header files [PREFIX/include]
1007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1008 --infodir=DIR info documentation [PREFIX/info]
1009 --mandir=DIR man documentation [PREFIX/man]
1015 --program-prefix=PREFIX prepend PREFIX to installed program names
1016 --program-suffix=SUFFIX append SUFFIX to installed program names
1017 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1026 if test -n "$ac_init_help"; then
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --enable-debug enable debugging [yes]
1034 --enable-dynamic enable linking built binaries with dynamic libs [no]
1035 --enable-syslog enable syslog support [auto]
1036 --enable-proctitle enable proctitle support [yes]
1037 --enable-ipv6 enable IPv6 support [auto]
1038 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1040 SLAPD (Standalone LDAP Daemon) Options:
1041 --enable-slapd enable building slapd [yes]
1042 --enable-aci enable per-object ACIs (experimental) [no]
1043 --enable-cleartext enable cleartext passwords [yes]
1044 --enable-crypt enable crypt(3) passwords [no]
1045 --enable-lmpasswd enable LAN Manager passwords [no]
1046 --enable-spasswd enable (Cyrus) SASL password verification [no]
1047 --enable-modules enable dynamic module support [no]
1048 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1049 --enable-rlookups enable reverse lookups of client hostnames [no]
1050 --enable-slapi enable SLAPI support (experimental) [no]
1051 --enable-slp enable SLPv2 support [no]
1052 --enable-wrappers enable tcp wrapper support [no]
1054 SLAPD Backend Options:
1055 --enable-backends enable all available backends no|yes|mod
1056 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1057 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1058 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1059 --enable-ldap enable ldap backend no|yes|mod [no]
1060 --enable-ldbm enable ldbm backend no|yes|mod [no]
1061 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1062 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1063 --enable-meta enable metadirectory backend no|yes|mod [no]
1064 --enable-monitor enable monitor backend no|yes|mod [yes]
1065 --enable-null enable null backend no|yes|mod [no]
1066 --enable-passwd enable passwd backend no|yes|mod [no]
1067 --enable-perl enable perl backend no|yes|mod [no]
1068 --enable-relay enable relay backend no|yes|mod [yes]
1069 --enable-shell enable shell backend no|yes|mod [no]
1070 --enable-sql enable sql backend no|yes|mod [no]
1072 SLAPD Overlay Options:
1073 --enable-overlays enable all available overlays no|yes|mod
1074 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1075 --enable-denyop Deny Operation overlay no|yes|mod [no]
1076 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1077 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1078 --enable-glue Backend Glue overlay no|yes|mod [yes]
1079 --enable-lastmod Last Modification overlay no|yes|mod [no]
1080 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1081 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1082 --enable-refint Referential Integrity overlay no|yes|mod [no]
1083 --enable-retcode Return Code testing overlay no|yes|mod [no]
1084 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1085 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1086 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1087 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1088 --enable-valsort Value Sorting overlay no|yes|mod [no]
1090 SLURPD (Replication Daemon) Options:
1091 --enable-slurpd enable building slurpd [auto]
1093 Library Generation & Linking Options
1094 --enable-static[=PKGS]
1095 build static libraries [default=yes]
1096 --enable-shared[=PKGS]
1097 build shared libraries [default=yes]
1098 --enable-fast-install[=PKGS]
1099 optimize for fast installation [default=yes]
1100 --disable-dependency-tracking speeds up one-time build
1101 --enable-dependency-tracking do not reject slow dependency extractors
1102 --disable-libtool-lock avoid locking (might break parallel builds)
1105 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1106 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1107 --with-subdir=DIR change default subdirectory used for installs
1108 --with-cyrus-sasl with Cyrus SASL support [auto]
1109 --with-fetch with fetch(3) URL support [auto]
1110 --with-threads with threads [auto]
1111 --with-tls with TLS/SSL support [auto]
1112 --with-yielding-select with implicitly yielding select [auto]
1113 --with-multiple-precision
1114 multiple precision support for statistics
1115 auto|bignum|gmp [auto]
1117 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1118 --with-pic try to use only PIC/non-PIC objects [default=use
1121 include additional configurations [automatic]
1123 See INSTALL file for further details.
1125 Some influential environment variables:
1126 CC C compiler command
1127 CFLAGS C compiler flags
1128 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1129 nonstandard directory <lib dir>
1130 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1131 headers in a nonstandard directory <include dir>
1133 CXX C++ compiler command
1134 CXXFLAGS C++ compiler flags
1135 CXXCPP C++ preprocessor
1136 F77 Fortran 77 compiler command
1137 FFLAGS Fortran 77 compiler flags
1139 Use these variables to override the choices made by `configure' or to help
1140 it to find libraries and programs with nonstandard names/locations.
1145 if test "$ac_init_help" = "recursive"; then
1146 # If there are subdirs, report their specific --help.
1148 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1149 test -d $ac_dir || continue
1152 if test "$ac_dir" != .; then
1153 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1154 # A "../" for each directory in $ac_dir_suffix.
1155 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1157 ac_dir_suffix= ac_top_builddir=
1161 .) # No --srcdir option. We are building in place.
1163 if test -z "$ac_top_builddir"; then
1166 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1168 [\\/]* | ?:[\\/]* ) # Absolute path.
1169 ac_srcdir=$srcdir$ac_dir_suffix;
1170 ac_top_srcdir=$srcdir ;;
1172 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1173 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1176 # Do not use `cd foo && pwd` to compute absolute paths, because
1177 # the directories may not exist.
1179 .) ac_abs_builddir="$ac_dir";;
1182 .) ac_abs_builddir=`pwd`;;
1183 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1184 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1187 case $ac_abs_builddir in
1188 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1190 case ${ac_top_builddir}. in
1191 .) ac_abs_top_builddir=$ac_abs_builddir;;
1192 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1193 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1196 case $ac_abs_builddir in
1197 .) ac_abs_srcdir=$ac_srcdir;;
1200 .) ac_abs_srcdir=$ac_abs_builddir;;
1201 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1202 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1205 case $ac_abs_builddir in
1206 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1208 case $ac_top_srcdir in
1209 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1210 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1211 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1216 # Check for guested configure; otherwise get Cygnus style configure.
1217 if test -f $ac_srcdir/configure.gnu; then
1219 $SHELL $ac_srcdir/configure.gnu --help=recursive
1220 elif test -f $ac_srcdir/configure; then
1222 $SHELL $ac_srcdir/configure --help=recursive
1223 elif test -f $ac_srcdir/configure.ac ||
1224 test -f $ac_srcdir/configure.in; then
1226 $ac_configure --help
1228 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1234 test -n "$ac_init_help" && exit 0
1235 if $ac_init_version; then
1238 Copyright (C) 2003 Free Software Foundation, Inc.
1239 This configure script is free software; the Free Software Foundation
1240 gives unlimited permission to copy, distribute and modify it.
1242 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1243 Restrictions apply, see COPYRIGHT and LICENSE files.
1249 This file contains any messages produced by compilers while
1250 running configure, to aid debugging if configure makes a mistake.
1252 It was created by $as_me, which was
1253 generated by GNU Autoconf 2.59. Invocation command line was
1264 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1265 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1266 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1267 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1268 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1270 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1271 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1273 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1274 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1275 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1276 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1277 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1278 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1279 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287 test -z "$as_dir" && as_dir=.
1288 echo "PATH: $as_dir"
1303 # Keep a trace of the command line.
1304 # Strip out --no-create and --no-recursion so they do not pile up.
1305 # Strip out --silent because we don't want to record it for future runs.
1306 # Also quote any args containing shell meta-characters.
1307 # Make two passes to allow for proper duplicate-argument suppression.
1312 ac_must_keep_next=false
1318 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1320 | -silent | --silent | --silen | --sile | --sil)
1322 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1323 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1326 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1328 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1329 if test $ac_must_keep_next = true; then
1330 ac_must_keep_next=false # Got value, back to normal.
1333 *=* | --config-cache | -C | -disable-* | --disable-* \
1334 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1335 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1336 | -with-* | --with-* | -without-* | --without-* | --x)
1337 case "$ac_configure_args0 " in
1338 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1341 -* ) ac_must_keep_next=true ;;
1344 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1345 # Get rid of the leading space.
1351 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1352 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1354 # When interrupted or exit'd, cleanup temporary files, and complete
1355 # config.log. We remove comments because anyway the quotes in there
1356 # would cause problems or look ugly.
1357 # WARNING: Be sure not to use single quotes in there, as some shells,
1358 # such as our DU 5.0 friend, will then `close' the trap.
1359 trap 'exit_status=$?
1360 # Save into config.log some information that might help in debugging.
1365 ## ---------------- ##
1366 ## Cache variables. ##
1367 ## ---------------- ##
1370 # The following way of writing the cache mishandles newlines in values,
1373 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1376 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1388 ## ----------------- ##
1389 ## Output variables. ##
1390 ## ----------------- ##
1393 for ac_var in $ac_subst_vars
1395 eval ac_val=$`echo $ac_var`
1396 echo "$ac_var='"'"'$ac_val'"'"'"
1400 if test -n "$ac_subst_files"; then
1407 for ac_var in $ac_subst_files
1409 eval ac_val=$`echo $ac_var`
1410 echo "$ac_var='"'"'$ac_val'"'"'"
1415 if test -s confdefs.h; then
1422 sed "/^$/d" confdefs.h | sort
1425 test "$ac_signal" != 0 &&
1426 echo "$as_me: caught signal $ac_signal"
1427 echo "$as_me: exit $exit_status"
1429 rm -f core *.core &&
1430 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1433 for ac_signal in 1 2 13 15; do
1434 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1439 rm -rf conftest* confdefs.h
1440 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1443 # Predefined preprocessor variables.
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_NAME "$PACKAGE_NAME"
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1460 cat >>confdefs.h <<_ACEOF
1461 #define PACKAGE_STRING "$PACKAGE_STRING"
1465 cat >>confdefs.h <<_ACEOF
1466 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470 # Let the site file select an alternate cache file if it wants to.
1471 # Prefer explicitly selected file to automatically selected ones.
1472 if test -z "$CONFIG_SITE"; then
1473 if test "x$prefix" != xNONE; then
1474 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1476 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1479 for ac_site_file in $CONFIG_SITE; do
1480 if test -r "$ac_site_file"; then
1481 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1482 echo "$as_me: loading site script $ac_site_file" >&6;}
1483 sed 's/^/| /' "$ac_site_file" >&5
1489 # Check that the precious variables saved in the cache have kept the same
1491 ac_cache_corrupted=false
1492 for ac_var in `(set) 2>&1 |
1493 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1494 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1495 eval ac_new_set=\$ac_env_${ac_var}_set
1496 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1497 eval ac_new_val="\$ac_env_${ac_var}_value"
1498 case $ac_old_set,$ac_new_set in
1500 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1501 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1502 ac_cache_corrupted=: ;;
1504 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1505 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1506 ac_cache_corrupted=: ;;
1509 if test "x$ac_old_val" != "x$ac_new_val"; then
1510 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1511 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1512 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1513 echo "$as_me: former value: $ac_old_val" >&2;}
1514 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1515 echo "$as_me: current value: $ac_new_val" >&2;}
1516 ac_cache_corrupted=:
1519 # Pass precious variables to config.status.
1520 if test "$ac_new_set" = set; then
1522 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1523 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1524 *) ac_arg=$ac_var=$ac_new_val ;;
1526 case " $ac_configure_args " in
1527 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1528 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1532 if $ac_cache_corrupted; then
1533 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1534 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1535 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1536 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1537 { (exit 1); exit 1; }; }
1541 ac_cpp='$CPP $CPPFLAGS'
1542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1587 for ac_dir in build $srcdir/build; do
1588 if test -f $ac_dir/install-sh; then
1590 ac_install_sh="$ac_aux_dir/install-sh -c"
1592 elif test -f $ac_dir/install.sh; then
1594 ac_install_sh="$ac_aux_dir/install.sh -c"
1596 elif test -f $ac_dir/shtool; then
1598 ac_install_sh="$ac_aux_dir/shtool install -c"
1602 if test -z "$ac_aux_dir"; then
1603 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1604 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1605 { (exit 1); exit 1; }; }
1607 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1608 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1609 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1611 eval `$ac_aux_dir/version.sh`
1612 if test -z "$OL_STRING"; then
1613 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1614 echo "$as_me: error: could not determine version" >&2;}
1615 { (exit 1); exit 1; }; }
1618 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1619 ac_cv_shtool="$ac_aux_dir/shtool"
1621 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1622 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1623 { (exit 1); exit 1; }; }
1626 SHTOOL="$ac_cv_shtool"
1628 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1629 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1632 if test -d $ac_aux_dir/CVS; then
1633 OPENLDAP_CVS="(from CVS sources) "
1636 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1638 # Make sure we can run config.sub.
1639 $ac_config_sub sun4 >/dev/null 2>&1 ||
1640 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1641 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1642 { (exit 1); exit 1; }; }
1644 echo "$as_me:$LINENO: checking build system type" >&5
1645 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1646 if test "${ac_cv_build+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 ac_cv_build_alias=$build_alias
1650 test -z "$ac_cv_build_alias" &&
1651 ac_cv_build_alias=`$ac_config_guess`
1652 test -z "$ac_cv_build_alias" &&
1653 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1654 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1655 { (exit 1); exit 1; }; }
1656 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1663 echo "${ECHO_T}$ac_cv_build" >&6
1665 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking host system type" >&5
1671 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1672 if test "${ac_cv_host+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_host_alias=$host_alias
1676 test -z "$ac_cv_host_alias" &&
1677 ac_cv_host_alias=$ac_cv_build_alias
1678 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1685 echo "${ECHO_T}$ac_cv_host" >&6
1687 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 echo "$as_me:$LINENO: checking target system type" >&5
1693 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1694 if test "${ac_cv_target+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 ac_cv_target_alias=$target_alias
1698 test "x$ac_cv_target_alias" = "x" &&
1699 ac_cv_target_alias=$ac_cv_host_alias
1700 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1701 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1702 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1703 { (exit 1); exit 1; }; }
1706 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1707 echo "${ECHO_T}$ac_cv_target" >&6
1708 target=$ac_cv_target
1709 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1710 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1711 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1714 # The aliases save the names the user supplied, while $host etc.
1715 # will get canonicalized.
1716 test -n "$target_alias" &&
1717 test "$program_prefix$program_suffix$program_transform_name" = \
1719 program_prefix=${target_alias}-
1721 am__api_version="1.9"
1722 # Find a good install program. We prefer a C program (faster),
1723 # so one script is as good as another. But avoid the broken or
1724 # incompatible versions:
1725 # SysV /etc/install, /usr/sbin/install
1726 # SunOS /usr/etc/install
1727 # IRIX /sbin/install
1729 # AmigaOS /C/install, which installs bootblocks on floppy discs
1730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1733 # OS/2's system install, which has a completely different semantic
1734 # ./install, which can be erroneously created by make from ./install.sh.
1735 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1736 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1737 if test -z "$INSTALL"; then
1738 if test "${ac_cv_path_install+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 test -z "$as_dir" && as_dir=.
1746 # Account for people who put trailing slashes in PATH elements.
1748 ./ | .// | /cC/* | \
1749 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1750 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1753 # OSF1 and SCO ODT 3.0 have their own names for install.
1754 # Don't use installbsd from OSF since it installs stuff as root
1756 for ac_prog in ginstall scoinst install; do
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1759 if test $ac_prog = install &&
1760 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1761 # AIX install. It has an incompatible calling convention.
1763 elif test $ac_prog = install &&
1764 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1765 # program-specific install script used by HP pwplus--don't use.
1768 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1780 if test "${ac_cv_path_install+set}" = set; then
1781 INSTALL=$ac_cv_path_install
1783 # As a last resort, use the slow shell script. We don't cache a
1784 # path for INSTALL within a source directory, because that will
1785 # break other packages using the cache if that directory is
1786 # removed, or if the path is relative.
1787 INSTALL=$ac_install_sh
1790 echo "$as_me:$LINENO: result: $INSTALL" >&5
1791 echo "${ECHO_T}$INSTALL" >&6
1793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1794 # It thinks the first close brace ends the variable substitution.
1795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1801 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1802 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1805 echo timestamp > conftest.file
1806 # Do `set' in a subshell so we don't clobber the current shell's
1807 # arguments. Must try -L first in case configure is actually a
1808 # symlink; some systems play weird games with the mod time of symlinks
1809 # (eg FreeBSD returns the mod time of the symlink's containing
1812 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1813 if test "$*" = "X"; then
1815 set X `ls -t $srcdir/configure conftest.file`
1818 if test "$*" != "X $srcdir/configure conftest.file" \
1819 && test "$*" != "X conftest.file $srcdir/configure"; then
1821 # If neither matched, then we have a broken ls. This can happen
1822 # if, for instance, CONFIG_SHELL is bash and it inherits a
1823 # broken ls alias from the environment. This has actually
1824 # happened. Such a system could not be considered "sane".
1825 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1826 alias in your environment" >&5
1827 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1828 alias in your environment" >&2;}
1829 { (exit 1); exit 1; }; }
1832 test "$2" = conftest.file
1838 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1839 Check your system clock" >&5
1840 echo "$as_me: error: newly created file is older than distributed files!
1841 Check your system clock" >&2;}
1842 { (exit 1); exit 1; }; }
1844 echo "$as_me:$LINENO: result: yes" >&5
1845 echo "${ECHO_T}yes" >&6
1846 test "$program_prefix" != NONE &&
1847 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1848 # Use a double $ so make ignores it.
1849 test "$program_suffix" != NONE &&
1850 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1851 # Double any \ or $. echo might interpret backslashes.
1852 # By default was `s,x,x', remove it if useless.
1853 cat <<\_ACEOF >conftest.sed
1854 s/[\\$]/&&/g;s/;s,x,x,$//
1856 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1859 # expand $ac_aux_dir to an absolute path
1860 am_aux_dir=`cd $ac_aux_dir && pwd`
1862 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1863 # Use eval to expand $SHELL
1864 if eval "$MISSING --run true"; then
1865 am_missing_run="$MISSING --run "
1868 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1869 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1872 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1873 # We used to keeping the `.' as first argument, in order to
1874 # allow $(mkdir_p) to be used without argument. As in
1875 # $(mkdir_p) $(somedir)
1876 # where $(somedir) is conditionally defined. However this is wrong
1878 # 1. if the package is installed by a user who cannot write `.'
1879 # make install will fail,
1880 # 2. the above comment should most certainly read
1881 # $(mkdir_p) $(DESTDIR)$(somedir)
1882 # so it does not work when $(somedir) is undefined and
1883 # $(DESTDIR) is not.
1884 # To support the latter case, we have to write
1885 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1886 # so the `.' trick is pointless.
1887 mkdir_p='mkdir -p --'
1889 # On NextStep and OpenStep, the `mkdir' command does not
1890 # recognize any option. It will interpret all options as
1891 # directories to create, and then abort because `.' already
1893 for d in ./-p ./--version;
1895 test -d $d && rmdir $d
1897 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1898 if test -f "$ac_aux_dir/mkinstalldirs"; then
1899 mkdir_p='$(mkinstalldirs)'
1901 mkdir_p='$(install_sh) -d'
1905 for ac_prog in gawk mawk nawk awk
1907 # Extract the first word of "$ac_prog", so it can be a program name with args.
1908 set dummy $ac_prog; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_AWK+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 if test -n "$AWK"; then
1915 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_AWK="$ac_prog"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 if test -n "$AWK"; then
1935 echo "$as_me:$LINENO: result: $AWK" >&5
1936 echo "${ECHO_T}$AWK" >&6
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1942 test -n "$AWK" && break
1945 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1946 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1947 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1948 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 cat >conftest.make <<\_ACEOF
1953 @echo 'ac_maketemp="$(MAKE)"'
1955 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1956 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1957 if test -n "$ac_maketemp"; then
1958 eval ac_cv_prog_make_${ac_make}_set=yes
1960 eval ac_cv_prog_make_${ac_make}_set=no
1964 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1965 echo "$as_me:$LINENO: result: yes" >&5
1966 echo "${ECHO_T}yes" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1971 SET_MAKE="MAKE=${MAKE-make}"
1974 rm -rf .tst 2>/dev/null
1975 mkdir .tst 2>/dev/null
1976 if test -d .tst; then
1981 rmdir .tst 2>/dev/null
1983 # test to see if srcdir already configured
1984 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1985 test -f $srcdir/config.status; then
1986 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1987 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1988 { (exit 1); exit 1; }; }
1991 # test whether we have cygpath
1992 if test -z "$CYGPATH_W"; then
1993 if (cygpath --version) >/dev/null 2>/dev/null; then
1994 CYGPATH_W='cygpath -w'
2001 # Define the identity of the package.
2006 # Some tools Automake needs.
2008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2022 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2024 # Installed binaries are usually stripped using `strip' when the user
2025 # run `make install-strip'. However `strip' might not be the right
2026 # tool to use in cross-compilation environments, therefore Automake
2027 # will honor the `STRIP' environment variable to overrule this program.
2028 if test "$cross_compiling" != no; then
2029 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}strip; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_STRIP+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$STRIP"; then
2038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 STRIP=$ac_cv_prog_STRIP
2057 if test -n "$STRIP"; then
2058 echo "$as_me:$LINENO: result: $STRIP" >&5
2059 echo "${ECHO_T}$STRIP" >&6
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2066 if test -z "$ac_cv_prog_STRIP"; then
2068 # Extract the first word of "strip", so it can be a program name with args.
2069 set dummy strip; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$ac_ct_STRIP"; then
2076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_STRIP="strip"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2096 if test -n "$ac_ct_STRIP"; then
2097 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2098 echo "${ECHO_T}$ac_ct_STRIP" >&6
2100 echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2106 STRIP="$ac_cv_prog_STRIP"
2110 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2112 # We need awk for the "check" target. The system "awk" is bad on
2114 # Always define AMTAR for backward compatibility.
2116 AMTAR=${AMTAR-"${am_missing_run}tar"}
2118 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2124 cat >>confdefs.h <<_ACEOF
2125 #define OPENLDAP_PACKAGE "$PACKAGE"
2129 cat >>confdefs.h <<_ACEOF
2130 #define OPENLDAP_VERSION "$VERSION"
2135 cat >>confdefs.h <<_ACEOF
2136 #define LDAP_VENDOR_VERSION $OL_API_INC
2140 cat >>confdefs.h <<_ACEOF
2141 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2145 cat >>confdefs.h <<_ACEOF
2146 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2150 cat >>confdefs.h <<_ACEOF
2151 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2155 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2157 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2159 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2167 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2169 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2171 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2174 echo "$as_me:$LINENO: checking configure arguments" >&5
2175 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2180 ldap_subdir="/openldap"
2183 # Check whether --with-subdir or --without-subdir was given.
2184 if test "${with_subdir+set}" = set; then
2185 withval="$with_subdir"
2192 ldap_subdir="$withval"
2195 ldap_subdir="/$withval"
2201 # OpenLDAP --enable-debug
2203 # Check whether --enable-debug or --disable-debug was given.
2204 if test "${enable_debug+set}" = set; then
2205 enableval="$enable_debug"
2208 for ol_val in auto yes no ; do
2209 if test "$enableval" = "$ol_val" ; then
2213 if test "$ol_arg" = "invalid" ; then
2214 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2215 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2216 { (exit 1); exit 1; }; }
2218 ol_enable_debug="$ol_arg"
2223 # end --enable-debug
2224 # OpenLDAP --enable-dynamic
2226 # Check whether --enable-dynamic or --disable-dynamic was given.
2227 if test "${enable_dynamic+set}" = set; then
2228 enableval="$enable_dynamic"
2231 for ol_val in auto yes no ; do
2232 if test "$enableval" = "$ol_val" ; then
2236 if test "$ol_arg" = "invalid" ; then
2237 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2238 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2239 { (exit 1); exit 1; }; }
2241 ol_enable_dynamic="$ol_arg"
2244 ol_enable_dynamic=no
2246 # end --enable-dynamic
2247 # OpenLDAP --enable-syslog
2249 # Check whether --enable-syslog or --disable-syslog was given.
2250 if test "${enable_syslog+set}" = set; then
2251 enableval="$enable_syslog"
2254 for ol_val in auto yes no ; do
2255 if test "$enableval" = "$ol_val" ; then
2259 if test "$ol_arg" = "invalid" ; then
2260 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2261 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2262 { (exit 1); exit 1; }; }
2264 ol_enable_syslog="$ol_arg"
2267 ol_enable_syslog=auto
2269 # end --enable-syslog
2270 # OpenLDAP --enable-proctitle
2272 # Check whether --enable-proctitle or --disable-proctitle was given.
2273 if test "${enable_proctitle+set}" = set; then
2274 enableval="$enable_proctitle"
2277 for ol_val in auto yes no ; do
2278 if test "$enableval" = "$ol_val" ; then
2282 if test "$ol_arg" = "invalid" ; then
2283 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2284 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2285 { (exit 1); exit 1; }; }
2287 ol_enable_proctitle="$ol_arg"
2290 ol_enable_proctitle=yes
2292 # end --enable-proctitle
2293 ol_enable_referrals=${ol_enable_referrals-no}
2294 ol_enable_kbind=${ol_enable_kbind-no}
2295 # OpenLDAP --enable-ipv6
2297 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2298 if test "${enable_ipv6+set}" = set; then
2299 enableval="$enable_ipv6"
2302 for ol_val in auto yes no ; do
2303 if test "$enableval" = "$ol_val" ; then
2307 if test "$ol_arg" = "invalid" ; then
2308 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2309 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2310 { (exit 1); exit 1; }; }
2312 ol_enable_ipv6="$ol_arg"
2318 # OpenLDAP --enable-local
2320 # Check whether --enable-local or --disable-local was given.
2321 if test "${enable_local+set}" = set; then
2322 enableval="$enable_local"
2325 for ol_val in auto yes no ; do
2326 if test "$enableval" = "$ol_val" ; then
2330 if test "$ol_arg" = "invalid" ; then
2331 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2332 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2333 { (exit 1); exit 1; }; }
2335 ol_enable_local="$ol_arg"
2338 ol_enable_local=auto
2340 # end --enable-local
2342 # OpenLDAP --with-cyrus_sasl
2344 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2345 if test "${with_cyrus_sasl+set}" = set; then
2346 withval="$with_cyrus_sasl"
2349 for ol_val in auto yes no ; do
2350 if test "$withval" = "$ol_val" ; then
2354 if test "$ol_arg" = "invalid" ; then
2355 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2356 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2357 { (exit 1); exit 1; }; }
2359 ol_with_cyrus_sasl="$ol_arg"
2362 ol_with_cyrus_sasl="auto"
2363 fi; # end --with-cyrus_sasl
2365 # OpenLDAP --with-fetch
2367 # Check whether --with-fetch or --without-fetch was given.
2368 if test "${with_fetch+set}" = set; then
2369 withval="$with_fetch"
2372 for ol_val in auto yes no ; do
2373 if test "$withval" = "$ol_val" ; then
2377 if test "$ol_arg" = "invalid" ; then
2378 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2379 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2380 { (exit 1); exit 1; }; }
2382 ol_with_fetch="$ol_arg"
2385 ol_with_fetch="auto"
2386 fi; # end --with-fetch
2388 ol_with_kerberos=${ol_with_kerberos-auto}
2389 # OpenLDAP --with-threads
2391 # Check whether --with-threads or --without-threads was given.
2392 if test "${with_threads+set}" = set; then
2393 withval="$with_threads"
2396 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2397 if test "$withval" = "$ol_val" ; then
2401 if test "$ol_arg" = "invalid" ; then
2402 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2403 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2404 { (exit 1); exit 1; }; }
2406 ol_with_threads="$ol_arg"
2409 ol_with_threads="auto"
2410 fi; # end --with-threads
2412 # OpenLDAP --with-tls
2414 # Check whether --with-tls or --without-tls was given.
2415 if test "${with_tls+set}" = set; then
2419 for ol_val in auto ssleay openssl yes no ; do
2420 if test "$withval" = "$ol_val" ; then
2424 if test "$ol_arg" = "invalid" ; then
2425 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2426 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2427 { (exit 1); exit 1; }; }
2429 ol_with_tls="$ol_arg"
2433 fi; # end --with-tls
2435 # OpenLDAP --with-yielding_select
2437 # Check whether --with-yielding_select or --without-yielding_select was given.
2438 if test "${with_yielding_select+set}" = set; then
2439 withval="$with_yielding_select"
2442 for ol_val in auto yes no manual ; do
2443 if test "$withval" = "$ol_val" ; then
2447 if test "$ol_arg" = "invalid" ; then
2448 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2449 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2450 { (exit 1); exit 1; }; }
2452 ol_with_yielding_select="$ol_arg"
2455 ol_with_yielding_select="auto"
2456 fi; # end --with-yielding_select
2458 # OpenLDAP --with-multiple_precision
2460 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2461 if test "${with_multiple_precision+set}" = set; then
2462 withval="$with_multiple_precision"
2465 for ol_val in auto bignum gmp yes no ; do
2466 if test "$withval" = "$ol_val" ; then
2470 if test "$ol_arg" = "invalid" ; then
2471 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2472 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2473 { (exit 1); exit 1; }; }
2475 ol_with_multiple_precision="$ol_arg"
2478 ol_with_multiple_precision="auto"
2479 fi; # end --with-multiple_precision
2483 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2484 if test "${enable_xxslapdoptions+set}" = set; then
2485 enableval="$enable_xxslapdoptions"
2488 # OpenLDAP --enable-slapd
2490 # Check whether --enable-slapd or --disable-slapd was given.
2491 if test "${enable_slapd+set}" = set; then
2492 enableval="$enable_slapd"
2495 for ol_val in auto yes no ; do
2496 if test "$enableval" = "$ol_val" ; then
2500 if test "$ol_arg" = "invalid" ; then
2501 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2502 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2503 { (exit 1); exit 1; }; }
2505 ol_enable_slapd="$ol_arg"
2510 # end --enable-slapd
2511 # OpenLDAP --enable-aci
2513 # Check whether --enable-aci or --disable-aci was given.
2514 if test "${enable_aci+set}" = set; then
2515 enableval="$enable_aci"
2518 for ol_val in auto yes no ; do
2519 if test "$enableval" = "$ol_val" ; then
2523 if test "$ol_arg" = "invalid" ; then
2524 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2525 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2526 { (exit 1); exit 1; }; }
2528 ol_enable_aci="$ol_arg"
2534 # OpenLDAP --enable-cleartext
2536 # Check whether --enable-cleartext or --disable-cleartext was given.
2537 if test "${enable_cleartext+set}" = set; then
2538 enableval="$enable_cleartext"
2541 for ol_val in auto yes no ; do
2542 if test "$enableval" = "$ol_val" ; then
2546 if test "$ol_arg" = "invalid" ; then
2547 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2548 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2549 { (exit 1); exit 1; }; }
2551 ol_enable_cleartext="$ol_arg"
2554 ol_enable_cleartext=yes
2556 # end --enable-cleartext
2557 # OpenLDAP --enable-crypt
2559 # Check whether --enable-crypt or --disable-crypt was given.
2560 if test "${enable_crypt+set}" = set; then
2561 enableval="$enable_crypt"
2564 for ol_val in auto yes no ; do
2565 if test "$enableval" = "$ol_val" ; then
2569 if test "$ol_arg" = "invalid" ; then
2570 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2571 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2572 { (exit 1); exit 1; }; }
2574 ol_enable_crypt="$ol_arg"
2579 # end --enable-crypt
2580 # OpenLDAP --enable-lmpasswd
2582 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2583 if test "${enable_lmpasswd+set}" = set; then
2584 enableval="$enable_lmpasswd"
2587 for ol_val in auto yes no ; do
2588 if test "$enableval" = "$ol_val" ; then
2592 if test "$ol_arg" = "invalid" ; then
2593 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2594 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2595 { (exit 1); exit 1; }; }
2597 ol_enable_lmpasswd="$ol_arg"
2600 ol_enable_lmpasswd=no
2602 # end --enable-lmpasswd
2603 # OpenLDAP --enable-spasswd
2605 # Check whether --enable-spasswd or --disable-spasswd was given.
2606 if test "${enable_spasswd+set}" = set; then
2607 enableval="$enable_spasswd"
2610 for ol_val in auto yes no ; do
2611 if test "$enableval" = "$ol_val" ; then
2615 if test "$ol_arg" = "invalid" ; then
2616 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2617 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2618 { (exit 1); exit 1; }; }
2620 ol_enable_spasswd="$ol_arg"
2623 ol_enable_spasswd=no
2625 # end --enable-spasswd
2626 # OpenLDAP --enable-modules
2628 # Check whether --enable-modules or --disable-modules was given.
2629 if test "${enable_modules+set}" = set; then
2630 enableval="$enable_modules"
2633 for ol_val in auto yes no ; do
2634 if test "$enableval" = "$ol_val" ; then
2638 if test "$ol_arg" = "invalid" ; then
2639 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2640 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2641 { (exit 1); exit 1; }; }
2643 ol_enable_modules="$ol_arg"
2646 ol_enable_modules=no
2648 # end --enable-modules
2649 ol_enable_multimaster=${ol_enable_multimaster-no}
2650 # OpenLDAP --enable-rewrite
2652 # Check whether --enable-rewrite or --disable-rewrite was given.
2653 if test "${enable_rewrite+set}" = set; then
2654 enableval="$enable_rewrite"
2657 for ol_val in auto yes no ; do
2658 if test "$enableval" = "$ol_val" ; then
2662 if test "$ol_arg" = "invalid" ; then
2663 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2664 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2665 { (exit 1); exit 1; }; }
2667 ol_enable_rewrite="$ol_arg"
2670 ol_enable_rewrite=auto
2672 # end --enable-rewrite
2673 # OpenLDAP --enable-rlookups
2675 # Check whether --enable-rlookups or --disable-rlookups was given.
2676 if test "${enable_rlookups+set}" = set; then
2677 enableval="$enable_rlookups"
2680 for ol_val in auto yes no ; do
2681 if test "$enableval" = "$ol_val" ; then
2685 if test "$ol_arg" = "invalid" ; then
2686 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2687 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2688 { (exit 1); exit 1; }; }
2690 ol_enable_rlookups="$ol_arg"
2693 ol_enable_rlookups=no
2695 # end --enable-rlookups
2696 # OpenLDAP --enable-slapi
2698 # Check whether --enable-slapi or --disable-slapi was given.
2699 if test "${enable_slapi+set}" = set; then
2700 enableval="$enable_slapi"
2703 for ol_val in auto yes no ; do
2704 if test "$enableval" = "$ol_val" ; then
2708 if test "$ol_arg" = "invalid" ; then
2709 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2710 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2711 { (exit 1); exit 1; }; }
2713 ol_enable_slapi="$ol_arg"
2718 # end --enable-slapi
2719 # OpenLDAP --enable-slp
2721 # Check whether --enable-slp or --disable-slp was given.
2722 if test "${enable_slp+set}" = set; then
2723 enableval="$enable_slp"
2726 for ol_val in auto yes no ; do
2727 if test "$enableval" = "$ol_val" ; then
2731 if test "$ol_arg" = "invalid" ; then
2732 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2733 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2734 { (exit 1); exit 1; }; }
2736 ol_enable_slp="$ol_arg"
2742 # OpenLDAP --enable-wrappers
2744 # Check whether --enable-wrappers or --disable-wrappers was given.
2745 if test "${enable_wrappers+set}" = set; then
2746 enableval="$enable_wrappers"
2749 for ol_val in auto yes no ; do
2750 if test "$enableval" = "$ol_val" ; then
2754 if test "$ol_arg" = "invalid" ; then
2755 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2756 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2757 { (exit 1); exit 1; }; }
2759 ol_enable_wrappers="$ol_arg"
2762 ol_enable_wrappers=no
2764 # end --enable-wrappers
2780 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2781 if test "${enable_xxslapbackends+set}" = set; then
2782 enableval="$enable_xxslapbackends"
2786 # OpenLDAP --enable-backends
2788 # Check whether --enable-backends or --disable-backends was given.
2789 if test "${enable_backends+set}" = set; then
2790 enableval="$enable_backends"
2793 for ol_val in no yes mod ; do
2794 if test "$enableval" = "$ol_val" ; then
2798 if test "$ol_arg" = "invalid" ; then
2799 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2800 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2801 { (exit 1); exit 1; }; }
2803 ol_enable_backends="$ol_arg"
2806 # end --enable-backends
2807 # OpenLDAP --enable-bdb
2809 # Check whether --enable-bdb or --disable-bdb was given.
2810 if test "${enable_bdb+set}" = set; then
2811 enableval="$enable_bdb"
2814 for ol_val in no yes mod ; do
2815 if test "$enableval" = "$ol_val" ; then
2819 if test "$ol_arg" = "invalid" ; then
2820 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2821 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2822 { (exit 1); exit 1; }; }
2824 ol_enable_bdb="$ol_arg"
2827 ol_enable_bdb=${ol_enable_backends:-yes}
2830 # OpenLDAP --enable-dnssrv
2832 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2833 if test "${enable_dnssrv+set}" = set; then
2834 enableval="$enable_dnssrv"
2837 for ol_val in no yes mod ; do
2838 if test "$enableval" = "$ol_val" ; then
2842 if test "$ol_arg" = "invalid" ; then
2843 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2844 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2845 { (exit 1); exit 1; }; }
2847 ol_enable_dnssrv="$ol_arg"
2850 ol_enable_dnssrv=${ol_enable_backends:-no}
2852 # end --enable-dnssrv
2853 # OpenLDAP --enable-hdb
2855 # Check whether --enable-hdb or --disable-hdb was given.
2856 if test "${enable_hdb+set}" = set; then
2857 enableval="$enable_hdb"
2860 for ol_val in no yes mod ; do
2861 if test "$enableval" = "$ol_val" ; then
2865 if test "$ol_arg" = "invalid" ; then
2866 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2867 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2868 { (exit 1); exit 1; }; }
2870 ol_enable_hdb="$ol_arg"
2873 ol_enable_hdb=${ol_enable_backends:-yes}
2876 # OpenLDAP --enable-ldap
2878 # Check whether --enable-ldap or --disable-ldap was given.
2879 if test "${enable_ldap+set}" = set; then
2880 enableval="$enable_ldap"
2883 for ol_val in no yes mod ; do
2884 if test "$enableval" = "$ol_val" ; then
2888 if test "$ol_arg" = "invalid" ; then
2889 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2890 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2891 { (exit 1); exit 1; }; }
2893 ol_enable_ldap="$ol_arg"
2896 ol_enable_ldap=${ol_enable_backends:-no}
2899 # OpenLDAP --enable-ldbm
2901 # Check whether --enable-ldbm or --disable-ldbm was given.
2902 if test "${enable_ldbm+set}" = set; then
2903 enableval="$enable_ldbm"
2906 for ol_val in no yes mod ; do
2907 if test "$enableval" = "$ol_val" ; then
2911 if test "$ol_arg" = "invalid" ; then
2912 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2913 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2914 { (exit 1); exit 1; }; }
2916 ol_enable_ldbm="$ol_arg"
2919 ol_enable_ldbm=${ol_enable_backends:-no}
2923 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2924 if test "${with_ldbm_api+set}" = set; then
2925 withval="$with_ldbm_api"
2927 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2928 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2929 enable_ldbm_api="$with_ldbm_api"
2931 # OpenLDAP --enable-ldbm_api
2933 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2934 if test "${enable_ldbm_api+set}" = set; then
2935 enableval="$enable_ldbm_api"
2938 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2939 if test "$enableval" = "$ol_val" ; then
2943 if test "$ol_arg" = "invalid" ; then
2944 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2945 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2946 { (exit 1); exit 1; }; }
2948 ol_enable_ldbm_api="$ol_arg"
2951 ol_enable_ldbm_api=auto
2953 # end --enable-ldbm_api
2956 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2957 if test "${with_ldbm_type+set}" = set; then
2958 withval="$with_ldbm_type"
2960 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2961 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2962 enable_ldbm_type="$with_ldbm_type"
2964 # OpenLDAP --enable-ldbm_type
2966 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2967 if test "${enable_ldbm_type+set}" = set; then
2968 enableval="$enable_ldbm_type"
2971 for ol_val in auto btree hash ; do
2972 if test "$enableval" = "$ol_val" ; then
2976 if test "$ol_arg" = "invalid" ; then
2977 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2978 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2979 { (exit 1); exit 1; }; }
2981 ol_enable_ldbm_type="$ol_arg"
2984 ol_enable_ldbm_type=auto
2986 # end --enable-ldbm_type
2988 # OpenLDAP --enable-meta
2990 # Check whether --enable-meta or --disable-meta was given.
2991 if test "${enable_meta+set}" = set; then
2992 enableval="$enable_meta"
2995 for ol_val in no yes mod ; do
2996 if test "$enableval" = "$ol_val" ; then
3000 if test "$ol_arg" = "invalid" ; then
3001 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3002 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3003 { (exit 1); exit 1; }; }
3005 ol_enable_meta="$ol_arg"
3008 ol_enable_meta=${ol_enable_backends:-no}
3011 # OpenLDAP --enable-monitor
3013 # Check whether --enable-monitor or --disable-monitor was given.
3014 if test "${enable_monitor+set}" = set; then
3015 enableval="$enable_monitor"
3018 for ol_val in no yes mod ; do
3019 if test "$enableval" = "$ol_val" ; then
3023 if test "$ol_arg" = "invalid" ; then
3024 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3025 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3026 { (exit 1); exit 1; }; }
3028 ol_enable_monitor="$ol_arg"
3031 ol_enable_monitor=${ol_enable_backends:-yes}
3033 # end --enable-monitor
3034 # OpenLDAP --enable-null
3036 # Check whether --enable-null or --disable-null was given.
3037 if test "${enable_null+set}" = set; then
3038 enableval="$enable_null"
3041 for ol_val in no yes mod ; do
3042 if test "$enableval" = "$ol_val" ; then
3046 if test "$ol_arg" = "invalid" ; then
3047 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3048 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3049 { (exit 1); exit 1; }; }
3051 ol_enable_null="$ol_arg"
3054 ol_enable_null=${ol_enable_backends:-no}
3057 # OpenLDAP --enable-passwd
3059 # Check whether --enable-passwd or --disable-passwd was given.
3060 if test "${enable_passwd+set}" = set; then
3061 enableval="$enable_passwd"
3064 for ol_val in no yes mod ; do
3065 if test "$enableval" = "$ol_val" ; then
3069 if test "$ol_arg" = "invalid" ; then
3070 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3071 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3072 { (exit 1); exit 1; }; }
3074 ol_enable_passwd="$ol_arg"
3077 ol_enable_passwd=${ol_enable_backends:-no}
3079 # end --enable-passwd
3080 # OpenLDAP --enable-perl
3082 # Check whether --enable-perl or --disable-perl was given.
3083 if test "${enable_perl+set}" = set; then
3084 enableval="$enable_perl"
3087 for ol_val in no yes mod ; do
3088 if test "$enableval" = "$ol_val" ; then
3092 if test "$ol_arg" = "invalid" ; then
3093 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3094 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3095 { (exit 1); exit 1; }; }
3097 ol_enable_perl="$ol_arg"
3100 ol_enable_perl=${ol_enable_backends:-no}
3103 # OpenLDAP --enable-relay
3105 # Check whether --enable-relay or --disable-relay was given.
3106 if test "${enable_relay+set}" = set; then
3107 enableval="$enable_relay"
3110 for ol_val in no yes mod ; do
3111 if test "$enableval" = "$ol_val" ; then
3115 if test "$ol_arg" = "invalid" ; then
3116 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3117 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3118 { (exit 1); exit 1; }; }
3120 ol_enable_relay="$ol_arg"
3123 ol_enable_relay=${ol_enable_backends:-yes}
3125 # end --enable-relay
3126 # OpenLDAP --enable-shell
3128 # Check whether --enable-shell or --disable-shell was given.
3129 if test "${enable_shell+set}" = set; then
3130 enableval="$enable_shell"
3133 for ol_val in no yes mod ; do
3134 if test "$enableval" = "$ol_val" ; then
3138 if test "$ol_arg" = "invalid" ; then
3139 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3140 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3141 { (exit 1); exit 1; }; }
3143 ol_enable_shell="$ol_arg"
3146 ol_enable_shell=${ol_enable_backends:-no}
3148 # end --enable-shell
3149 # OpenLDAP --enable-sql
3151 # Check whether --enable-sql or --disable-sql was given.
3152 if test "${enable_sql+set}" = set; then
3153 enableval="$enable_sql"
3156 for ol_val in no yes mod ; do
3157 if test "$enableval" = "$ol_val" ; then
3161 if test "$ol_arg" = "invalid" ; then
3162 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3163 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3164 { (exit 1); exit 1; }; }
3166 ol_enable_sql="$ol_arg"
3169 ol_enable_sql=${ol_enable_backends:-no}
3173 Overlays="accesslog \
3189 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3190 if test "${enable_xxslapoverlays+set}" = set; then
3191 enableval="$enable_xxslapoverlays"
3195 # OpenLDAP --enable-overlays
3197 # Check whether --enable-overlays or --disable-overlays was given.
3198 if test "${enable_overlays+set}" = set; then
3199 enableval="$enable_overlays"
3202 for ol_val in no yes mod ; do
3203 if test "$enableval" = "$ol_val" ; then
3207 if test "$ol_arg" = "invalid" ; then
3208 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3209 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3210 { (exit 1); exit 1; }; }
3212 ol_enable_overlays="$ol_arg"
3215 # end --enable-overlays
3216 # OpenLDAP --enable-accesslog
3218 # Check whether --enable-accesslog or --disable-accesslog was given.
3219 if test "${enable_accesslog+set}" = set; then
3220 enableval="$enable_accesslog"
3223 for ol_val in no yes mod ; do
3224 if test "$enableval" = "$ol_val" ; then
3228 if test "$ol_arg" = "invalid" ; then
3229 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3231 { (exit 1); exit 1; }; }
3233 ol_enable_accesslog="$ol_arg"
3236 ol_enable_accesslog=${ol_enable_overlays:-no}
3238 # end --enable-accesslog
3240 # OpenLDAP --enable-denyop
3242 # Check whether --enable-denyop or --disable-denyop was given.
3243 if test "${enable_denyop+set}" = set; then
3244 enableval="$enable_denyop"
3247 for ol_val in no yes mod ; do
3248 if test "$enableval" = "$ol_val" ; then
3252 if test "$ol_arg" = "invalid" ; then
3253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3254 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3255 { (exit 1); exit 1; }; }
3257 ol_enable_denyop="$ol_arg"
3260 ol_enable_denyop=${ol_enable_overlays:-no}
3262 # end --enable-denyop
3264 # OpenLDAP --enable-dyngroup
3266 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3267 if test "${enable_dyngroup+set}" = set; then
3268 enableval="$enable_dyngroup"
3271 for ol_val in no yes mod ; do
3272 if test "$enableval" = "$ol_val" ; then
3276 if test "$ol_arg" = "invalid" ; then
3277 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3278 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3279 { (exit 1); exit 1; }; }
3281 ol_enable_dyngroup="$ol_arg"
3284 ol_enable_dyngroup=${ol_enable_overlays:-no}
3286 # end --enable-dyngroup
3288 # OpenLDAP --enable-dynlist
3290 # Check whether --enable-dynlist or --disable-dynlist was given.
3291 if test "${enable_dynlist+set}" = set; then
3292 enableval="$enable_dynlist"
3295 for ol_val in no yes mod ; do
3296 if test "$enableval" = "$ol_val" ; then
3300 if test "$ol_arg" = "invalid" ; then
3301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3302 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3303 { (exit 1); exit 1; }; }
3305 ol_enable_dynlist="$ol_arg"
3308 ol_enable_dynlist=${ol_enable_overlays:-no}
3310 # end --enable-dynlist
3312 # OpenLDAP --enable-glue
3314 # Check whether --enable-glue or --disable-glue was given.
3315 if test "${enable_glue+set}" = set; then
3316 enableval="$enable_glue"
3319 for ol_val in no yes mod ; do
3320 if test "$enableval" = "$ol_val" ; then
3324 if test "$ol_arg" = "invalid" ; then
3325 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3326 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3327 { (exit 1); exit 1; }; }
3329 ol_enable_glue="$ol_arg"
3332 ol_enable_glue=${ol_enable_overlays:-yes}
3336 # OpenLDAP --enable-lastmod
3338 # Check whether --enable-lastmod or --disable-lastmod was given.
3339 if test "${enable_lastmod+set}" = set; then
3340 enableval="$enable_lastmod"
3343 for ol_val in no yes mod ; do
3344 if test "$enableval" = "$ol_val" ; then
3348 if test "$ol_arg" = "invalid" ; then
3349 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3350 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3351 { (exit 1); exit 1; }; }
3353 ol_enable_lastmod="$ol_arg"
3356 ol_enable_lastmod=${ol_enable_overlays:-no}
3358 # end --enable-lastmod
3360 # OpenLDAP --enable-ppolicy
3362 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3363 if test "${enable_ppolicy+set}" = set; then
3364 enableval="$enable_ppolicy"
3367 for ol_val in no yes mod ; do
3368 if test "$enableval" = "$ol_val" ; then
3372 if test "$ol_arg" = "invalid" ; then
3373 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3375 { (exit 1); exit 1; }; }
3377 ol_enable_ppolicy="$ol_arg"
3380 ol_enable_ppolicy=${ol_enable_overlays:-no}
3382 # end --enable-ppolicy
3384 # OpenLDAP --enable-proxycache
3386 # Check whether --enable-proxycache or --disable-proxycache was given.
3387 if test "${enable_proxycache+set}" = set; then
3388 enableval="$enable_proxycache"
3391 for ol_val in no yes mod ; do
3392 if test "$enableval" = "$ol_val" ; then
3396 if test "$ol_arg" = "invalid" ; then
3397 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3398 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3399 { (exit 1); exit 1; }; }
3401 ol_enable_proxycache="$ol_arg"
3404 ol_enable_proxycache=${ol_enable_overlays:-no}
3406 # end --enable-proxycache
3408 # OpenLDAP --enable-refint
3410 # Check whether --enable-refint or --disable-refint was given.
3411 if test "${enable_refint+set}" = set; then
3412 enableval="$enable_refint"
3415 for ol_val in no yes mod ; do
3416 if test "$enableval" = "$ol_val" ; then
3420 if test "$ol_arg" = "invalid" ; then
3421 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3422 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3423 { (exit 1); exit 1; }; }
3425 ol_enable_refint="$ol_arg"
3428 ol_enable_refint=${ol_enable_overlays:-no}
3430 # end --enable-refint
3432 # OpenLDAP --enable-retcode
3434 # Check whether --enable-retcode or --disable-retcode was given.
3435 if test "${enable_retcode+set}" = set; then
3436 enableval="$enable_retcode"
3439 for ol_val in no yes mod ; do
3440 if test "$enableval" = "$ol_val" ; then
3444 if test "$ol_arg" = "invalid" ; then
3445 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3446 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3447 { (exit 1); exit 1; }; }
3449 ol_enable_retcode="$ol_arg"
3452 ol_enable_retcode=${ol_enable_overlays:-no}
3454 # end --enable-retcode
3456 # OpenLDAP --enable-rwm
3458 # Check whether --enable-rwm or --disable-rwm was given.
3459 if test "${enable_rwm+set}" = set; then
3460 enableval="$enable_rwm"
3463 for ol_val in no yes mod ; do
3464 if test "$enableval" = "$ol_val" ; then
3468 if test "$ol_arg" = "invalid" ; then
3469 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3470 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3471 { (exit 1); exit 1; }; }
3473 ol_enable_rwm="$ol_arg"
3476 ol_enable_rwm=${ol_enable_overlays:-no}
3480 # OpenLDAP --enable-syncprov
3482 # Check whether --enable-syncprov or --disable-syncprov was given.
3483 if test "${enable_syncprov+set}" = set; then
3484 enableval="$enable_syncprov"
3487 for ol_val in no yes mod ; do
3488 if test "$enableval" = "$ol_val" ; then
3492 if test "$ol_arg" = "invalid" ; then
3493 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3494 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3495 { (exit 1); exit 1; }; }
3497 ol_enable_syncprov="$ol_arg"
3500 ol_enable_syncprov=${ol_enable_overlays:-yes}
3502 # end --enable-syncprov
3504 # OpenLDAP --enable-translucent
3506 # Check whether --enable-translucent or --disable-translucent was given.
3507 if test "${enable_translucent+set}" = set; then
3508 enableval="$enable_translucent"
3511 for ol_val in no yes mod ; do
3512 if test "$enableval" = "$ol_val" ; then
3516 if test "$ol_arg" = "invalid" ; then
3517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3518 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3519 { (exit 1); exit 1; }; }
3521 ol_enable_translucent="$ol_arg"
3524 ol_enable_translucent=${ol_enable_overlays:-no}
3526 # end --enable-translucent
3528 # OpenLDAP --enable-unique
3530 # Check whether --enable-unique or --disable-unique was given.
3531 if test "${enable_unique+set}" = set; then
3532 enableval="$enable_unique"
3535 for ol_val in no yes mod ; do
3536 if test "$enableval" = "$ol_val" ; then
3540 if test "$ol_arg" = "invalid" ; then
3541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3542 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3543 { (exit 1); exit 1; }; }
3545 ol_enable_unique="$ol_arg"
3548 ol_enable_unique=${ol_enable_overlays:-no}
3550 # end --enable-unique
3552 # OpenLDAP --enable-valsort
3554 # Check whether --enable-valsort or --disable-valsort was given.
3555 if test "${enable_valsort+set}" = set; then
3556 enableval="$enable_valsort"
3559 for ol_val in no yes mod ; do
3560 if test "$enableval" = "$ol_val" ; then
3564 if test "$ol_arg" = "invalid" ; then
3565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3566 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3567 { (exit 1); exit 1; }; }
3569 ol_enable_valsort="$ol_arg"
3572 ol_enable_valsort=${ol_enable_overlays:-no}
3574 # end --enable-valsort
3577 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3578 if test "${enable_xxslurpdoptions+set}" = set; then
3579 enableval="$enable_xxslurpdoptions"
3582 # OpenLDAP --enable-slurpd
3584 # Check whether --enable-slurpd or --disable-slurpd was given.
3585 if test "${enable_slurpd+set}" = set; then
3586 enableval="$enable_slurpd"
3589 for ol_val in auto yes no ; do
3590 if test "$enableval" = "$ol_val" ; then
3594 if test "$ol_arg" = "invalid" ; then
3595 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3596 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3597 { (exit 1); exit 1; }; }
3599 ol_enable_slurpd="$ol_arg"
3602 ol_enable_slurpd=auto
3604 # end --enable-slurpd
3606 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3607 if test "${enable_xxliboptions+set}" = set; then
3608 enableval="$enable_xxliboptions"
3611 # Check whether --enable-static or --disable-static was given.
3612 if test "${enable_static+set}" = set; then
3613 enableval="$enable_static"
3614 p=${PACKAGE-default}
3616 yes) enable_static=yes ;;
3617 no) enable_static=no ;;
3620 # Look at the argument we got. We use all the common list separators.
3621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3622 for pkg in $enableval; do
3624 if test "X$pkg" = "X$p"; then
3635 # Check whether --enable-shared or --disable-shared was given.
3636 if test "${enable_shared+set}" = set; then
3637 enableval="$enable_shared"
3638 p=${PACKAGE-default}
3640 yes) enable_shared=yes ;;
3641 no) enable_shared=no ;;
3644 # Look at the argument we got. We use all the common list separators.
3645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3646 for pkg in $enableval; do
3648 if test "X$pkg" = "X$p"; then
3662 if test $ol_enable_slapd = no ; then
3663 if test $ol_enable_slapi = yes ; then
3664 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3665 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3667 case "$ol_enable_backends" in yes | mod)
3668 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3669 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3671 for i in $Backends; do
3672 eval "ol_tmp=\$ol_enable_$i"
3673 if test $ol_tmp != no ; then
3674 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3675 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3676 eval "ol_enable_$i=no"
3679 if test $ol_enable_modules = yes ; then
3680 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3681 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3683 if test $ol_enable_multimaster = yes ; then
3684 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3687 if test $ol_enable_wrappers = yes ; then
3688 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3691 if test $ol_enable_rlookups = yes ; then
3692 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3693 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3695 if test $ol_enable_aci = yes ; then
3696 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3697 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3699 if test $ol_enable_ldbm_api != auto ; then
3700 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3701 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3703 if test $ol_enable_ldbm_type != auto ; then
3704 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3705 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3707 if test $ol_enable_slurpd = yes ; then
3708 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3709 echo "$as_me: error: slurpd requires slapd" >&2;}
3710 { (exit 1); exit 1; }; }
3712 if test $ol_enable_rewrite = yes ; then
3713 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3716 case "$ol_enable_overlays" in yes | mod)
3717 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3718 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3720 for i in $Overlays; do
3721 eval "ol_tmp=\$ol_enable_$i"
3722 if test $ol_tmp != no ; then
3723 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3724 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3725 eval "ol_enable_$i=no"
3729 # force settings to no
3734 ol_enable_modules=no
3735 ol_enable_multimaster=no
3736 ol_enable_rlookups=no
3738 ol_enable_wrappers=no
3740 ol_enable_ldbm_api=no
3741 ol_enable_ldbm_type=no
3745 ol_enable_rewrite=no
3747 elif test $ol_enable_ldbm = no ; then
3749 if test $ol_enable_ldbm_api != auto ; then
3750 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3751 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3754 if test $ol_enable_ldbm_type != auto ; then
3755 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3756 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3759 if test $ol_enable_modules != yes -a \
3760 $ol_enable_bdb = no -a \
3761 $ol_enable_dnssrv = no -a \
3762 $ol_enable_hdb = no -a \
3763 $ol_enable_ldap = no -a \
3764 $ol_enable_meta = no -a \
3765 $ol_enable_monitor = no -a \
3766 $ol_enable_null = no -a \
3767 $ol_enable_passwd = no -a \
3768 $ol_enable_perl = no -a \
3769 $ol_enable_relay = no -a \
3770 $ol_enable_shell = no -a \
3771 $ol_enable_sql = no ; then
3773 if test $ol_enable_slapd = yes ; then
3774 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3775 echo "$as_me: error: slapd requires a backend" >&2;}
3776 { (exit 1); exit 1; }; }
3778 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3779 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3784 ol_enable_ldbm_api=no
3785 ol_enable_ldbm_type=no
3787 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3788 ol_enable_ldbm_api=berkeley
3792 if test $ol_enable_ldbm_api = gdbm -a \
3793 $ol_enable_ldbm_type = btree ; then
3794 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3795 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3796 { (exit 1); exit 1; }; }
3798 if test $ol_enable_ldbm_api = mdbm -a \
3799 $ol_enable_ldbm_type = btree ; then
3800 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3801 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3802 { (exit 1); exit 1; }; }
3804 if test $ol_enable_ldbm_api = ndbm -a \
3805 $ol_enable_ldbm_type = btree ; then
3806 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3807 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3808 { (exit 1); exit 1; }; }
3811 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3812 if test $ol_enable_ldbm_api = auto ; then
3813 ol_enable_ldbm_api=berkeley
3814 elif test $ol_enable_ldbm_api != berkeley ; then
3815 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3816 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3817 { (exit 1); exit 1; }; }
3822 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3823 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3824 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3825 { (exit 1); exit 1; }; }
3828 if test $ol_enable_slurpd = yes ; then
3829 if test $ol_with_threads = no ; then
3830 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3831 echo "$as_me: error: slurpd requires threads" >&2;}
3832 { (exit 1); exit 1; }; }
3836 if test $ol_enable_lmpasswd = yes ; then
3837 if test $ol_with_tls = no ; then
3838 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3839 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3840 { (exit 1); exit 1; }; }
3844 if test $ol_enable_kbind = yes ; then
3845 if test $ol_with_kerberos = no ; then
3846 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3847 echo "$as_me: error: options require --with-kerberos" >&2;}
3848 { (exit 1); exit 1; }; }
3849 elif test $ol_with_kerberos = auto ; then
3850 ol_with_kerberos=yes
3853 elif test $ol_enable_kbind = no ; then
3854 if test $ol_with_kerberos = auto ; then
3856 elif test $ol_with_kerberos != no ; then
3857 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3858 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3863 if test $ol_enable_spasswd = yes ; then
3864 if test $ol_with_cyrus_sasl = no ; then
3865 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3866 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3867 { (exit 1); exit 1; }; }
3869 ol_with_cyrus_sasl=yes
3872 echo "$as_me:$LINENO: result: done" >&5
3873 echo "${ECHO_T}done" >&6
3917 BUILD_TRANSLUCENT=no
3921 SLAPD_STATIC_OVERLAYS=
3922 SLAPD_DYNAMIC_OVERLAYS=
3924 SLAPD_MODULES_LDFLAGS=
3925 SLAPD_MODULES_CPPFLAGS=
3927 SLAPD_STATIC_BACKENDS=back-ldif
3928 SLAPD_DYNAMIC_BACKENDS=
3953 cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_MKVERSION 1
3962 *-*-aix*) if test -z "$CC" ; then
3963 case "$ol_with_threads" in
3964 auto | yes | posix) ol_aix_threads=yes ;;
3970 if test $ol_aix_threads = yes ; then
3971 if test -z "${CC}" ; then
3972 for ac_prog in cc_r xlc_r cc
3974 # Extract the first word of "$ac_prog", so it can be a program name with args.
3975 set dummy $ac_prog; ac_word=$2
3976 echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3978 if test "${ac_cv_prog_CC+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 if test -n "$CC"; then
3982 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991 ac_cv_prog_CC="$ac_prog"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 if test -n "$CC"; then
4002 echo "$as_me:$LINENO: result: $CC" >&5
4003 echo "${ECHO_T}$CC" >&6
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4009 test -n "$CC" && break
4013 if test "$CC" = cc ; then
4014 if test $ol_with_threads != auto ; then
4015 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4016 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4017 { (exit 1); exit 1; }; }
4019 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4020 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4026 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
4027 ol_with_threads=posix
4028 ol_cv_pthread_create=yes
4032 if test -z "${CC}"; then
4033 for ac_prog in cc gcc
4035 # Extract the first word of "$ac_prog", so it can be a program name with args.
4036 set dummy $ac_prog; ac_word=$2
4037 echo "$as_me:$LINENO: checking for $ac_word" >&5
4038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4039 if test "${ac_cv_prog_CC+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_CC="$ac_prog"
4053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 if test -n "$CC"; then
4063 echo "$as_me:$LINENO: result: $CC" >&5
4064 echo "${ECHO_T}$CC" >&6
4066 echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4070 test -n "$CC" && break
4072 test -n "$CC" || CC="missing"
4075 if test "${CC}" = "missing" ; then
4076 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4077 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4078 { (exit 1); exit 1; }; }
4082 if test -z "${AR}"; then
4083 for ac_prog in ar gar
4085 # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_AR+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 if test -n "$AR"; then
4093 ac_cv_prog_AR="$AR" # Let the user override the test.
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_AR="$ac_prog"
4103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$AR"; then
4113 echo "$as_me:$LINENO: result: $AR" >&5
4114 echo "${ECHO_T}$AR" >&6
4116 echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4120 test -n "$AR" && break
4122 test -n "$AR" || AR="missing"
4125 if test "${AR}" = "missing" ; then
4126 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4127 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4128 { (exit 1); exit 1; }; }
4136 # Check whether --enable-fast-install or --disable-fast-install was given.
4137 if test "${enable_fast_install+set}" = set; then
4138 enableval="$enable_fast_install"
4139 p=${PACKAGE-default}
4141 yes) enable_fast_install=yes ;;
4142 no) enable_fast_install=no ;;
4144 enable_fast_install=no
4145 # Look at the argument we got. We use all the common list separators.
4146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4147 for pkg in $enableval; do
4149 if test "X$pkg" = "X$p"; then
4150 enable_fast_install=yes
4157 enable_fast_install=yes
4160 DEPDIR="${am__leading_dot}deps"
4162 ac_config_commands="$ac_config_commands depfiles"
4165 am_make=${MAKE-make}
4166 cat > confinc << 'END'
4171 # If we don't find an include directive, just comment out the code.
4172 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4173 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4177 # First try GNU make style include.
4178 echo "include confinc" > confmf
4179 # We grep out `Entering directory' and `Leaving directory'
4180 # messages which can occur if `w' ends up in MAKEFLAGS.
4181 # In particular we don't look at `^make:' because GNU make might
4182 # be invoked under some other name (usually "gmake"), in which
4183 # case it prints its new name instead of `make'.
4184 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4189 # Now try BSD make style include.
4190 if test "$am__include" = "#"; then
4191 echo '.include "confinc"' > confmf
4192 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4193 am__include=.include
4200 echo "$as_me:$LINENO: result: $_am_result" >&5
4201 echo "${ECHO_T}$_am_result" >&6
4202 rm -f confinc confmf
4204 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4205 if test "${enable_dependency_tracking+set}" = set; then
4206 enableval="$enable_dependency_tracking"
4209 if test "x$enable_dependency_tracking" != xno; then
4210 am_depcomp="$ac_aux_dir/depcomp"
4215 if test "x$enable_dependency_tracking" != xno; then
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4232 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_prog_CC+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 if test -n "$CC"; then
4259 echo "$as_me:$LINENO: result: $CC" >&5
4260 echo "${ECHO_T}$CC" >&6
4262 echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4267 if test -z "$ac_cv_prog_CC"; then
4269 # Extract the first word of "gcc", so it can be a program name with args.
4270 set dummy gcc; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 if test -n "$ac_ct_CC"; then
4277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_ac_ct_CC="gcc"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296 if test -n "$ac_ct_CC"; then
4297 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4298 echo "${ECHO_T}$ac_ct_CC" >&6
4300 echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4309 if test -z "$CC"; then
4310 if test -n "$ac_tool_prefix"; then
4311 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4312 set dummy ${ac_tool_prefix}cc; ac_word=$2
4313 echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4315 if test "${ac_cv_prog_CC+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 if test -n "$CC"; then
4319 ac_cv_prog_CC="$CC" # Let the user override the test.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_CC="${ac_tool_prefix}cc"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 if test -n "$CC"; then
4339 echo "$as_me:$LINENO: result: $CC" >&5
4340 echo "${ECHO_T}$CC" >&6
4342 echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6
4347 if test -z "$ac_cv_prog_CC"; then
4349 # Extract the first word of "cc", so it can be a program name with args.
4350 set dummy cc; ac_word=$2
4351 echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 if test -n "$ac_ct_CC"; then
4357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_ac_ct_CC="cc"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4376 if test -n "$ac_ct_CC"; then
4377 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4378 echo "${ECHO_T}$ac_ct_CC" >&6
4380 echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4390 if test -z "$CC"; then
4391 # Extract the first word of "cc", so it can be a program name with args.
4392 set dummy cc; ac_word=$2
4393 echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4395 if test "${ac_cv_prog_CC+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 if test -n "$CC"; then
4399 ac_cv_prog_CC="$CC" # Let the user override the test.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4410 ac_prog_rejected=yes
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 if test $ac_prog_rejected = yes; then
4421 # We found a bogon in the path, so make sure we never use it.
4422 set dummy $ac_cv_prog_CC
4424 if test $# != 0; then
4425 # We chose a different compiler from the bogus one.
4426 # However, it has the same basename, so the bogon will be chosen
4427 # first if we set CC to just the basename; use the full file name.
4429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4435 if test -n "$CC"; then
4436 echo "$as_me:$LINENO: result: $CC" >&5
4437 echo "${ECHO_T}$CC" >&6
4439 echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4444 if test -z "$CC"; then
4445 if test -n "$ac_tool_prefix"; then
4448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4450 echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4452 if test "${ac_cv_prog_CC+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC="$CC" # Let the user override the test.
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 if test -n "$CC"; then
4476 echo "$as_me:$LINENO: result: $CC" >&5
4477 echo "${ECHO_T}$CC" >&6
4479 echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6
4483 test -n "$CC" && break
4486 if test -z "$CC"; then
4490 # Extract the first word of "$ac_prog", so it can be a program name with args.
4491 set dummy $ac_prog; ac_word=$2
4492 echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 if test -n "$ac_ct_CC"; then
4498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507 ac_cv_prog_ac_ct_CC="$ac_prog"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4517 if test -n "$ac_ct_CC"; then
4518 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4519 echo "${ECHO_T}$ac_ct_CC" >&6
4521 echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6
4525 test -n "$ac_ct_CC" && break
4534 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4535 See \`config.log' for more details." >&5
4536 echo "$as_me: error: no acceptable C compiler found in \$PATH
4537 See \`config.log' for more details." >&2;}
4538 { (exit 1); exit 1; }; }
4540 # Provide some information about the compiler.
4541 echo "$as_me:$LINENO:" \
4542 "checking for C compiler version" >&5
4543 ac_compiler=`set X $ac_compile; echo $2`
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4545 (eval $ac_compiler --version </dev/null >&5) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4550 (eval $ac_compiler -v </dev/null >&5) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }
4554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4555 (eval $ac_compiler -V </dev/null >&5) 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4575 ac_clean_files_save=$ac_clean_files
4576 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4577 # Try to create an executable without -o first, disregard a.out.
4578 # It will help us diagnose broken compilers, and finding out an intuition
4580 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4581 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4582 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4583 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4584 (eval $ac_link_default) 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; then
4588 # Find the output, starting from the most likely. This scheme is
4589 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4592 # Be careful to initialize this variable, since it used to be cached.
4593 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4595 # b.out is created by i960 compilers.
4596 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4598 test -f "$ac_file" || continue
4600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4603 # This is the source file.
4606 # We found the default executable, but exeext='' is most
4610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4611 # FIXME: I believe we export ac_cv_exeext for Libtool,
4612 # but it would be cool to find out if it's true. Does anybody
4613 # maintain Libtool? --akim.
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4625 See \`config.log' for more details." >&5
4626 echo "$as_me: error: C compiler cannot create executables
4627 See \`config.log' for more details." >&2;}
4628 { (exit 77); exit 77; }; }
4631 ac_exeext=$ac_cv_exeext
4632 echo "$as_me:$LINENO: result: $ac_file" >&5
4633 echo "${ECHO_T}$ac_file" >&6
4635 # Check the compiler produces executables we can run. If not, either
4636 # the compiler is broken, or we cross compile.
4637 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4638 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4639 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4640 # If not cross compiling, check that we can run a simple program.
4641 if test "$cross_compiling" != yes; then
4642 if { ac_try='./$ac_file'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4650 if test "$cross_compiling" = maybe; then
4653 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4654 If you meant to cross compile, use \`--host'.
4655 See \`config.log' for more details." >&5
4656 echo "$as_me: error: cannot run C compiled programs.
4657 If you meant to cross compile, use \`--host'.
4658 See \`config.log' for more details." >&2;}
4659 { (exit 1); exit 1; }; }
4663 echo "$as_me:$LINENO: result: yes" >&5
4664 echo "${ECHO_T}yes" >&6
4666 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4667 ac_clean_files=$ac_clean_files_save
4668 # Check the compiler produces executables we can run. If not, either
4669 # the compiler is broken, or we cross compile.
4670 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4671 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4672 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4673 echo "${ECHO_T}$cross_compiling" >&6
4675 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4676 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4678 (eval $ac_link) 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; then
4682 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4683 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4684 # work properly (i.e., refer to `conftest.exe'), while it won't with
4686 for ac_file in conftest.exe conftest conftest.*; do
4687 test -f "$ac_file" || continue
4689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4690 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4697 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4698 See \`config.log' for more details." >&5
4699 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4700 See \`config.log' for more details." >&2;}
4701 { (exit 1); exit 1; }; }
4704 rm -f conftest$ac_cv_exeext
4705 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4706 echo "${ECHO_T}$ac_cv_exeext" >&6
4708 rm -f conftest.$ac_ext
4709 EXEEXT=$ac_cv_exeext
4711 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4712 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4713 if test "${ac_cv_objext+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4731 rm -f conftest.o conftest.obj
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; then
4737 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4740 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4749 See \`config.log' for more details." >&5
4750 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4751 See \`config.log' for more details." >&2;}
4752 { (exit 1); exit 1; }; }
4755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4757 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4758 echo "${ECHO_T}$ac_cv_objext" >&6
4759 OBJEXT=$ac_cv_objext
4761 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>conftest.er1
4788 grep -v '^ *+' conftest.er1 >conftest.err
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
4793 { ac_try='test -z "$ac_c_werror_flag"
4794 || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4817 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4818 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4819 GCC=`test $ac_compiler_gnu = yes && echo yes`
4820 ac_test_CFLAGS=${CFLAGS+set}
4821 ac_save_CFLAGS=$CFLAGS
4823 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4824 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4825 if test "${ac_cv_prog_cc_g+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4843 rm -f conftest.$ac_objext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845 (eval $ac_compile) 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try='test -z "$ac_c_werror_flag"
4853 || test ! -s conftest.err'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest.$ac_objext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4875 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4876 if test "$ac_test_CFLAGS" = set; then
4877 CFLAGS=$ac_save_CFLAGS
4878 elif test $ac_cv_prog_cc_g = yes; then
4879 if test "$GCC" = yes; then
4885 if test "$GCC" = yes; then
4891 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4892 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4893 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 ac_cv_prog_cc_stdc=no
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4906 #include <sys/types.h>
4907 #include <sys/stat.h>
4908 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4909 struct buf { int x; };
4910 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4911 static char *e (p, i)
4917 static char *f (char * (*g) (char **, int), char **p, ...)
4922 s = g (p, va_arg (v,int));
4927 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4928 function prototypes and stuff, but not '\xHH' hex character constants.
4929 These don't provoke an error unfortunately, instead are silently treated
4930 as 'x'. The following induces an error, until -std1 is added to get
4931 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4932 array size at least. It's necessary to write '\x00'==0 to get something
4933 that's true only with -std1. */
4934 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4936 int test (int i, double x);
4937 struct s1 {int (*f) (int a);};
4938 struct s2 {int (*f) (double a);};
4939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4950 # Don't try gcc -ansi; that turns off useful extensions and
4951 # breaks some systems' header files.
4952 # AIX -qlanglvl=ansi
4953 # Ultrix and OSF/1 -std1
4954 # HP-UX 10.20 and later -Ae
4955 # HP-UX older versions -Aa -D_HPUX_SOURCE
4956 # SVR4 -Xc -D__EXTENSIONS__
4957 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4959 CC="$ac_save_CC $ac_arg"
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_cv_prog_cc_stdc=$ac_arg
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4989 rm -f conftest.err conftest.$ac_objext
4991 rm -f conftest.$ac_ext conftest.$ac_objext
4996 case "x$ac_cv_prog_cc_stdc" in
4998 echo "$as_me:$LINENO: result: none needed" >&5
4999 echo "${ECHO_T}none needed" >&6 ;;
5001 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5002 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5003 CC="$CC $ac_cv_prog_cc_stdc" ;;
5006 # Some people use a C++ compiler to compile C. Since we use `exit',
5007 # in C++ we need to declare it. In case someone uses the same compiler
5008 # for both compiling C and C++ we need to have the C++ compiler decide
5009 # the declaration of exit, since it's the most demanding environment.
5010 cat >conftest.$ac_ext <<_ACEOF
5015 rm -f conftest.$ac_objext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5017 (eval $ac_compile) 2>conftest.er1
5019 grep -v '^ *+' conftest.er1 >conftest.err
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -z "$ac_c_werror_flag"
5025 || test ! -s conftest.err'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; } &&
5031 { ac_try='test -s conftest.$ac_objext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 for ac_declaration in \
5039 'extern "C" void std::exit (int) throw (); using std::exit;' \
5040 'extern "C" void std::exit (int); using std::exit;' \
5041 'extern "C" void exit (int) throw ();' \
5042 'extern "C" void exit (int);' \
5045 cat >conftest.$ac_ext <<_ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -z "$ac_c_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 cat >conftest.$ac_ext <<_ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>conftest.er1
5110 grep -v '^ *+' conftest.er1 >conftest.err
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_c_werror_flag"
5116 || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5137 if test -n "$ac_declaration"; then
5138 echo '#ifdef __cplusplus' >>confdefs.h
5139 echo $ac_declaration >>confdefs.h
5140 echo '#endif' >>confdefs.h
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_cpp='$CPP $CPPFLAGS'
5151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 depcc="$CC" am_compiler_list=
5157 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5158 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5159 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5163 # We make a subdir and do the tests there. Otherwise we can end up
5164 # making bogus files that we don't know about and never remove. For
5165 # instance it was reported that on HP-UX the gcc test will end up
5166 # making a dummy file named `D' -- because `-MD' means `put the output
5169 # Copy depcomp to subdir because otherwise we won't find it if we're
5170 # using a relative directory.
5171 cp "$am_depcomp" conftest.dir
5173 # We will build objects and dependencies in a subdirectory because
5174 # it helps to detect inapplicable dependency modes. For instance
5175 # both Tru64's cc and ICC support -MD to output dependencies as a
5176 # side effect of compilation, but ICC will put the dependencies in
5177 # the current directory while Tru64 will put them in the object
5181 am_cv_CC_dependencies_compiler_type=none
5182 if test "$am_compiler_list" = ""; then
5183 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5185 for depmode in $am_compiler_list; do
5186 # Setup a source with many dependencies, because some compilers
5187 # like to wrap large dependency lists on column 80 (with \), and
5188 # we should not choose a depcomp mode which is confused by this.
5190 # We need to recreate these files for each test, as the compiler may
5191 # overwrite some of them when testing with obscure command lines.
5192 # This happens at least with the AIX C compiler.
5194 for i in 1 2 3 4 5 6; do
5195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5196 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5197 # Solaris 8's {/usr,}/bin/sh.
5198 touch sub/conftst$i.h
5200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5204 # after this tag, mechanisms are not by side-effect, so they'll
5205 # only be used when explicitly requested
5206 if test "x$enable_dependency_tracking" = xyes; then
5214 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5215 # mode. It turns out that the SunPro C++ compiler does not properly
5216 # handle `-M -o', and we need to detect this.
5217 if depmode=$depmode \
5218 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5220 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5221 >/dev/null 2>conftest.err &&
5222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5223 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5225 # icc doesn't choke on unknown options, it will just issue warnings
5226 # or remarks (even with -Werror). So we grep stderr for any message
5227 # that says an option was ignored or not supported.
5228 # When given -MP, icc 7.0 and 7.1 complain thusly:
5229 # icc: Command line warning: ignoring option '-M'; no argument required
5230 # The diagnosis changed in icc 8.0:
5231 # icc: Command line remark: option '-MP' not supported
5232 if (grep 'ignoring option' conftest.err ||
5233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5234 am_cv_CC_dependencies_compiler_type=$depmode
5243 am_cv_CC_dependencies_compiler_type=none
5247 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5248 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5254 test "x$enable_dependency_tracking" != xno \
5255 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5257 am__fastdepCC_FALSE='#'
5259 am__fastdepCC_TRUE='#'
5260 am__fastdepCC_FALSE=
5264 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5265 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5266 if test "${lt_cv_path_SED+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 # Loop through the user's path and test for sed and gsed.
5270 # Then use that list of sed's as ones to test for truncation.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir=.
5276 for lt_ac_prog in sed gsed; do
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5279 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5286 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5287 # along with /bin/sed that truncates output.
5288 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5289 test ! -f $lt_ac_sed && continue
5290 cat /dev/null > conftest.in
5292 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5293 # Check for GNU sed and select it if it is found.
5294 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5295 lt_cv_path_SED=$lt_ac_sed
5299 cat conftest.in conftest.in >conftest.tmp
5300 mv conftest.tmp conftest.in
5301 cp conftest.in conftest.nl
5303 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5304 cmp -s conftest.out conftest.nl || break
5305 # 10000 chars as input seems more than enough
5306 test $lt_ac_count -gt 10 && break
5307 lt_ac_count=`expr $lt_ac_count + 1`
5308 if test $lt_ac_count -gt $lt_ac_max; then
5309 lt_ac_max=$lt_ac_count
5310 lt_cv_path_SED=$lt_ac_sed
5318 echo "$as_me:$LINENO: result: $SED" >&5
5319 echo "${ECHO_T}$SED" >&6
5321 echo "$as_me:$LINENO: checking for egrep" >&5
5322 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5323 if test "${ac_cv_prog_egrep+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5327 then ac_cv_prog_egrep='grep -E'
5328 else ac_cv_prog_egrep='egrep'
5331 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5332 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5333 EGREP=$ac_cv_prog_egrep
5337 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5338 if test "${with_gnu_ld+set}" = set; then
5339 withval="$with_gnu_ld"
5340 test "$withval" = no || with_gnu_ld=yes
5345 if test "$GCC" = yes; then
5346 # Check if gcc -print-prog-name=ld gives a path.
5347 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5348 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5351 # gcc leaves a trailing carriage return which upsets mingw
5352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5357 # Accept absolute paths.
5359 re_direlt='/[^/][^/]*/\.\./'
5360 # Canonicalize the pathname of ld
5361 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5362 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5363 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5365 test -z "$LD" && LD="$ac_prog"
5368 # If it fails, then pretend we aren't using GCC.
5372 # If it is relative, then search for the first ld in PATH.
5376 elif test "$with_gnu_ld" = yes; then
5377 echo "$as_me:$LINENO: checking for GNU ld" >&5
5378 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5380 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5381 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5383 if test "${lt_cv_path_LD+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 if test -z "$LD"; then
5387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5388 for ac_dir in $PATH; do
5390 test -z "$ac_dir" && ac_dir=.
5391 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5392 lt_cv_path_LD="$ac_dir/$ac_prog"
5393 # Check to see if the program is GNU ld. I'd rather use --version,
5394 # but apparently some GNU ld's only accept -v.
5395 # Break only if it was the GNU/non-GNU ld that we prefer.
5396 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5397 *GNU* | *'with BFD'*)
5398 test "$with_gnu_ld" != no && break
5401 test "$with_gnu_ld" != yes && break
5408 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5413 if test -n "$LD"; then
5414 echo "$as_me:$LINENO: result: $LD" >&5
5415 echo "${ECHO_T}$LD" >&6
5417 echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5420 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5421 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5422 { (exit 1); exit 1; }; }
5423 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5424 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5425 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5429 case `$LD -v 2>&1 </dev/null` in
5430 *GNU* | *'with BFD'*)
5431 lt_cv_prog_gnu_ld=yes
5434 lt_cv_prog_gnu_ld=no
5438 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5439 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5440 with_gnu_ld=$lt_cv_prog_gnu_ld
5443 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5444 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5445 if test "${lt_cv_ld_reload_flag+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 lt_cv_ld_reload_flag='-r'
5450 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5451 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5452 reload_flag=$lt_cv_ld_reload_flag
5453 case $reload_flag in
5455 *) reload_flag=" $reload_flag" ;;
5457 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5460 if test "$GCC" = yes; then
5461 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5463 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5468 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5469 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5470 if test "${lt_cv_path_NM+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 if test -n "$NM"; then
5474 # Let the user override the test.
5477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5478 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5480 test -z "$ac_dir" && ac_dir=.
5481 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5482 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5483 # Check to see if the nm accepts a BSD-compat flag.
5484 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5485 # nm: unknown option "B" ignored
5486 # Tru64's nm complains that /dev/null is an invalid object file
5487 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5488 */dev/null* | *'Invalid file or object type'*)
5489 lt_cv_path_NM="$tmp_nm -B"
5493 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5495 lt_cv_path_NM="$tmp_nm -p"
5499 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5500 continue # so that we can try to find one that supports BSD flags
5507 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5510 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5511 echo "${ECHO_T}$lt_cv_path_NM" >&6
5514 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5515 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5517 if test "$LN_S" = "ln -s"; then
5518 echo "$as_me:$LINENO: result: yes" >&5
5519 echo "${ECHO_T}yes" >&6
5521 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5522 echo "${ECHO_T}no, using $LN_S" >&6
5525 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5526 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5527 if test "${lt_cv_deplibs_check_method+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 lt_cv_file_magic_cmd='$MAGIC_CMD'
5531 lt_cv_file_magic_test_file=
5532 lt_cv_deplibs_check_method='unknown'
5533 # Need to set the preceding variable on all platforms that support
5534 # interlibrary dependencies.
5535 # 'none' -- dependencies not supported.
5536 # `unknown' -- same as none, but documents that we really don't know.
5537 # 'pass_all' -- all dependencies passed with no checks.
5538 # 'test_compile' -- check by making test program.
5539 # 'file_magic [[regex]]' -- check by looking for files in library path
5540 # which responds to the $file_magic_cmd with a given extended regex.
5541 # If you have `file' or equivalent on your system and you're not sure
5542 # whether `pass_all' will *always* work, you probably want this one.
5546 lt_cv_deplibs_check_method=pass_all
5550 lt_cv_deplibs_check_method=pass_all
5554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5555 lt_cv_file_magic_cmd='/usr/bin/file -L'
5556 lt_cv_file_magic_test_file=/shlib/libc.so
5560 # func_win32_libid is a shell function defined in ltmain.sh
5561 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5562 lt_cv_file_magic_cmd='func_win32_libid'
5566 # Base MSYS/MinGW do not provide the 'file' command needed by
5567 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5568 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5569 lt_cv_file_magic_cmd='$OBJDUMP -f'
5572 darwin* | rhapsody*)
5573 lt_cv_deplibs_check_method=pass_all
5576 freebsd* | kfreebsd*-gnu | dragonfly*)
5577 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5580 # Not sure whether the presence of OpenBSD here was a mistake.
5581 # Let's accept both of them until this is cleared up.
5582 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5583 lt_cv_file_magic_cmd=/usr/bin/file
5584 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5588 lt_cv_deplibs_check_method=pass_all
5593 lt_cv_deplibs_check_method=pass_all
5596 hpux10.20* | hpux11*)
5597 lt_cv_file_magic_cmd=/usr/bin/file
5600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5601 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5604 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]'
5605 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5609 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5614 irix5* | irix6* | nonstopux*)
5616 *-32|*"-32 ") libmagic=32-bit;;
5617 *-n32|*"-n32 ") libmagic=N32;;
5618 *-64|*"-64 ") libmagic=64-bit;;
5619 *) libmagic=never-match;;
5621 lt_cv_deplibs_check_method=pass_all
5624 # This must be Linux ELF.
5626 lt_cv_deplibs_check_method=pass_all
5630 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5639 lt_cv_file_magic_cmd=/usr/bin/file
5640 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5644 lt_cv_deplibs_check_method=unknown
5648 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5655 osf3* | osf4* | osf5*)
5656 lt_cv_deplibs_check_method=pass_all
5660 lt_cv_deplibs_check_method=pass_all
5664 lt_cv_deplibs_check_method=pass_all
5667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5668 case $host_vendor in
5670 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]'
5671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5674 lt_cv_deplibs_check_method=pass_all
5677 lt_cv_file_magic_cmd='/bin/file'
5678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5681 lt_cv_file_magic_cmd='/bin/file'
5682 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5683 lt_cv_file_magic_test_file=/lib/libc.so
5686 lt_cv_deplibs_check_method=pass_all
5691 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5692 lt_cv_deplibs_check_method=pass_all
5697 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5698 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5699 file_magic_cmd=$lt_cv_file_magic_cmd
5700 deplibs_check_method=$lt_cv_deplibs_check_method
5701 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5706 # If no C compiler was specified, use CC.
5709 # Allow CC to be a program name with arguments.
5713 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5714 if test "${enable_libtool_lock+set}" = set; then
5715 enableval="$enable_libtool_lock"
5718 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5720 # Some flags need to be propagated to the compiler or linker for good
5724 # Find out which ABI we are using.
5725 echo 'int i;' > 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 case `/usr/bin/file conftest.$ac_objext` in
5743 # Find out which ABI we are using.
5744 echo '#line 5744 "configure"' > conftest.$ac_ext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; then
5750 if test "$lt_cv_prog_gnu_ld" = yes; then
5751 case `/usr/bin/file conftest.$ac_objext` in
5753 LD="${LD-ld} -melf32bsmip"
5756 LD="${LD-ld} -melf32bmipn32"
5759 LD="${LD-ld} -melf64bmip"
5763 case `/usr/bin/file conftest.$ac_objext` in
5779 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5780 # Find out which ABI we are using.
5781 echo 'int i;' > conftest.$ac_ext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; then
5787 case "`/usr/bin/file conftest.o`" in
5791 LD="${LD-ld} -m elf_i386"
5793 ppc64-*linux*|powerpc64-*linux*)
5794 LD="${LD-ld} -m elf32ppclinux"
5797 LD="${LD-ld} -m elf_s390"
5800 LD="${LD-ld} -m elf32_sparc"
5807 LD="${LD-ld} -m elf_x86_64"
5809 ppc*-*linux*|powerpc*-*linux*)
5810 LD="${LD-ld} -m elf64ppc"
5813 LD="${LD-ld} -m elf64_s390"
5816 LD="${LD-ld} -m elf64_sparc"
5826 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5827 SAVE_CFLAGS="$CFLAGS"
5828 CFLAGS="$CFLAGS -belf"
5829 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5830 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5831 if test "${lt_cv_cc_needs_belf+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 ac_cpp='$CPP $CPPFLAGS'
5836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840 cat >conftest.$ac_ext <<_ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5855 rm -f conftest.$ac_objext conftest$ac_exeext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>conftest.er1
5859 grep -v '^ *+' conftest.er1 >conftest.err
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest$ac_exeext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 lt_cv_cc_needs_belf=yes
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 lt_cv_cc_needs_belf=no
5884 rm -f conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5887 ac_cpp='$CPP $CPPFLAGS'
5888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5894 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5895 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5896 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5897 CFLAGS="$SAVE_CFLAGS"
5900 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 if test -n "$DLLTOOL"; then
5910 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 DLLTOOL=$ac_cv_prog_DLLTOOL
5929 if test -n "$DLLTOOL"; then
5930 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5931 echo "${ECHO_T}$DLLTOOL" >&6
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5938 if test -z "$ac_cv_prog_DLLTOOL"; then
5939 ac_ct_DLLTOOL=$DLLTOOL
5940 # Extract the first word of "dlltool", so it can be a program name with args.
5941 set dummy dlltool; ac_word=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 if test -n "$ac_ct_DLLTOOL"; then
5948 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5967 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5968 if test -n "$ac_ct_DLLTOOL"; then
5969 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5970 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5972 echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5976 DLLTOOL=$ac_ct_DLLTOOL
5978 DLLTOOL="$ac_cv_prog_DLLTOOL"
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}as; ac_word=$2
5984 echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986 if test "${ac_cv_prog_AS+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 if test -n "$AS"; then
5990 ac_cv_prog_AS="$AS" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_AS="${ac_tool_prefix}as"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 if test -n "$AS"; then
6010 echo "$as_me:$LINENO: result: $AS" >&5
6011 echo "${ECHO_T}$AS" >&6
6013 echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6
6018 if test -z "$ac_cv_prog_AS"; then
6020 # Extract the first word of "as", so it can be a program name with args.
6021 set dummy as; ac_word=$2
6022 echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 if test -n "$ac_ct_AS"; then
6028 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_ac_ct_AS="as"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6047 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6048 if test -n "$ac_ct_AS"; then
6049 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6050 echo "${ECHO_T}$ac_ct_AS" >&6
6052 echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6
6061 if test -n "$ac_tool_prefix"; then
6062 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6063 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6064 echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6066 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 if test -n "$OBJDUMP"; then
6070 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 OBJDUMP=$ac_cv_prog_OBJDUMP
6089 if test -n "$OBJDUMP"; then
6090 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6091 echo "${ECHO_T}$OBJDUMP" >&6
6093 echo "$as_me:$LINENO: result: no" >&5
6094 echo "${ECHO_T}no" >&6
6098 if test -z "$ac_cv_prog_OBJDUMP"; then
6099 ac_ct_OBJDUMP=$OBJDUMP
6100 # Extract the first word of "objdump", so it can be a program name with args.
6101 set dummy objdump; ac_word=$2
6102 echo "$as_me:$LINENO: checking for $ac_word" >&5
6103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6104 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 if test -n "$ac_ct_OBJDUMP"; then
6108 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6127 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6128 if test -n "$ac_ct_OBJDUMP"; then
6129 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6130 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6132 echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6
6136 OBJDUMP=$ac_ct_OBJDUMP
6138 OBJDUMP="$ac_cv_prog_OBJDUMP"
6145 need_locks="$enable_libtool_lock"
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6154 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6155 # On Suns, sometimes $CPP names a directory.
6156 if test -n "$CPP" && test -d "$CPP"; then
6159 if test -z "$CPP"; then
6160 if test "${ac_cv_prog_CPP+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 # Double quotes because CPP needs to be expanded
6164 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6167 for ac_c_preproc_warn_flag in '' yes
6169 # Use a header file that comes with gcc, so configuring glibc
6170 # with a fresh cross-compiler works.
6171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6172 # <limits.h> exists even on freestanding compilers.
6173 # On the NeXT, cc -E runs the code through the compiler's parser,
6174 # not just through cpp. "Syntax error" is here to catch this case.
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6182 # include <limits.h>
6184 # include <assert.h>
6188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6191 grep -v '^ *+' conftest.er1 >conftest.err
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } >/dev/null; then
6196 if test -s conftest.err; then
6197 ac_cpp_err=$ac_c_preproc_warn_flag
6198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6205 if test -z "$ac_cpp_err"; then
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 # Broken: fails on valid input.
6214 rm -f conftest.err conftest.$ac_ext
6216 # OK, works on sane cases. Now check whether non-existent headers
6217 # can be detected and how.
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 #include <ac_nonexistent.h>
6226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6229 grep -v '^ *+' conftest.er1 >conftest.err
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } >/dev/null; then
6234 if test -s conftest.err; then
6235 ac_cpp_err=$ac_c_preproc_warn_flag
6236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6243 if test -z "$ac_cpp_err"; then
6244 # Broken: success on invalid input.
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 # Passes both tests.
6254 rm -f conftest.err conftest.$ac_ext
6257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6258 rm -f conftest.err conftest.$ac_ext
6259 if $ac_preproc_ok; then
6271 echo "$as_me:$LINENO: result: $CPP" >&5
6272 echo "${ECHO_T}$CPP" >&6
6274 for ac_c_preproc_warn_flag in '' yes
6276 # Use a header file that comes with gcc, so configuring glibc
6277 # with a fresh cross-compiler works.
6278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6279 # <limits.h> exists even on freestanding compilers.
6280 # On the NeXT, cc -E runs the code through the compiler's parser,
6281 # not just through cpp. "Syntax error" is here to catch this case.
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6289 # include <limits.h>
6291 # include <assert.h>
6295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6298 grep -v '^ *+' conftest.er1 >conftest.err
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } >/dev/null; then
6303 if test -s conftest.err; then
6304 ac_cpp_err=$ac_c_preproc_warn_flag
6305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6312 if test -z "$ac_cpp_err"; then
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 # Broken: fails on valid input.
6321 rm -f conftest.err conftest.$ac_ext
6323 # OK, works on sane cases. Now check whether non-existent headers
6324 # can be detected and how.
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 #include <ac_nonexistent.h>
6333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6336 grep -v '^ *+' conftest.er1 >conftest.err
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } >/dev/null; then
6341 if test -s conftest.err; then
6342 ac_cpp_err=$ac_c_preproc_warn_flag
6343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6350 if test -z "$ac_cpp_err"; then
6351 # Broken: success on invalid input.
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 # Passes both tests.
6361 rm -f conftest.err conftest.$ac_ext
6364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6365 rm -f conftest.err conftest.$ac_ext
6366 if $ac_preproc_ok; then
6369 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6370 See \`config.log' for more details." >&5
6371 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6372 See \`config.log' for more details." >&2;}
6373 { (exit 1); exit 1; }; }
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6384 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6385 if test "${ac_cv_header_stdc+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 cat >conftest.$ac_ext <<_ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6407 rm -f conftest.$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>conftest.er1
6411 grep -v '^ *+' conftest.er1 >conftest.err
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -z "$ac_c_werror_flag"
6417 || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_header_stdc=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_cv_header_stdc=no
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 if test $ac_cv_header_stdc = yes; then
6439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6450 $EGREP "memchr" >/dev/null 2>&1; then
6453 ac_cv_header_stdc=no
6459 if test $ac_cv_header_stdc = yes; then
6460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6471 $EGREP "free" >/dev/null 2>&1; then
6474 ac_cv_header_stdc=no
6480 if test $ac_cv_header_stdc = yes; then
6481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6482 if test "$cross_compiling" = yes; then
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6492 #if ((' ' & 0x0FF) == 0x020)
6493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6496 # define ISLOWER(c) \
6497 (('a' <= (c) && (c) <= 'i') \
6498 || ('j' <= (c) && (c) <= 'r') \
6499 || ('s' <= (c) && (c) <= 'z'))
6500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6508 for (i = 0; i < 256; i++)
6509 if (XOR (islower (i), ISLOWER (i))
6510 || toupper (i) != TOUPPER (i))
6515 rm -f conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517 (eval $ac_link) 2>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6528 echo "$as_me: program exited with status $ac_status" >&5
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6533 ac_cv_header_stdc=no
6535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6539 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6540 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6541 if test $ac_cv_header_stdc = yes; then
6543 cat >>confdefs.h <<\_ACEOF
6544 #define STDC_HEADERS 1
6549 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6559 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6560 inttypes.h stdint.h unistd.h
6562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563 echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 $ac_includes_default
6576 #include <$ac_header>
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 eval "$as_ac_Header=yes"
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6605 eval "$as_ac_Header=no"
6607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6612 cat >>confdefs.h <<_ACEOF
6613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6622 for ac_header in dlfcn.h
6624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6626 echo "$as_me:$LINENO: checking for $ac_header" >&5
6627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6634 # Is the header compilable?
6635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6637 cat >conftest.$ac_ext <<_ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643 $ac_includes_default
6644 #include <$ac_header>
6646 rm -f conftest.$ac_objext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648 (eval $ac_compile) 2>conftest.er1
6650 grep -v '^ *+' conftest.er1 >conftest.err
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -z "$ac_c_werror_flag"
6656 || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_header_compiler=yes
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_header_compiler=no
6675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6677 echo "${ECHO_T}$ac_header_compiler" >&6
6679 # Is the header present?
6680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6682 cat >conftest.$ac_ext <<_ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <$ac_header>
6690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6693 grep -v '^ *+' conftest.er1 >conftest.err
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } >/dev/null; then
6698 if test -s conftest.err; then
6699 ac_cpp_err=$ac_c_preproc_warn_flag
6700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6707 if test -z "$ac_cpp_err"; then
6708 ac_header_preproc=yes
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_header_preproc=no
6715 rm -f conftest.err conftest.$ac_ext
6716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6717 echo "${ECHO_T}$ac_header_preproc" >&6
6719 # So? What about this header?
6720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6726 ac_header_preproc=yes
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6743 ## ------------------------------------------ ##
6744 ## Report this to the AC_PACKAGE_NAME lists. ##
6745 ## ------------------------------------------ ##
6748 sed "s/^/$as_me: WARNING: /" >&2
6751 echo "$as_me:$LINENO: checking for $ac_header" >&5
6752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 eval "$as_ac_Header=\$ac_header_preproc"
6758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6772 ac_cpp='$CXXCPP $CPPFLAGS'
6773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6776 if test -n "$ac_tool_prefix"; then
6777 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6781 echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6783 if test "${ac_cv_prog_CXX+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 if test -n "$CXX"; then
6787 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 if test -n "$CXX"; then
6807 echo "$as_me:$LINENO: result: $CXX" >&5
6808 echo "${ECHO_T}$CXX" >&6
6810 echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6
6814 test -n "$CXX" && break
6817 if test -z "$CXX"; then
6819 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6821 # Extract the first word of "$ac_prog", so it can be a program name with args.
6822 set dummy $ac_prog; ac_word=$2
6823 echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6825 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 if test -n "$ac_ct_CXX"; then
6829 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_ac_ct_CXX="$ac_prog"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6848 if test -n "$ac_ct_CXX"; then
6849 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6850 echo "${ECHO_T}$ac_ct_CXX" >&6
6852 echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6
6856 test -n "$ac_ct_CXX" && break
6858 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6864 # Provide some information about the compiler.
6865 echo "$as_me:$LINENO:" \
6866 "checking for C++ compiler version" >&5
6867 ac_compiler=`set X $ac_compile; echo $2`
6868 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6869 (eval $ac_compiler --version </dev/null >&5) 2>&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }
6873 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6874 (eval $ac_compiler -v </dev/null >&5) 2>&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }
6878 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6879 (eval $ac_compiler -V </dev/null >&5) 2>&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }
6884 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6885 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6886 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6907 rm -f conftest.$ac_objext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>conftest.er1
6911 grep -v '^ *+' conftest.er1 >conftest.err
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -z "$ac_cxx_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6940 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6941 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6942 GXX=`test $ac_compiler_gnu = yes && echo yes`
6943 ac_test_CXXFLAGS=${CXXFLAGS+set}
6944 ac_save_CXXFLAGS=$CXXFLAGS
6946 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6947 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6948 if test "${ac_cv_prog_cxx_g+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 cat >conftest.$ac_ext <<_ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6966 rm -f conftest.$ac_objext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6968 (eval $ac_compile) 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
6975 { ac_try='test -z "$ac_cxx_werror_flag"
6976 || test ! -s conftest.err'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; } &&
6982 { ac_try='test -s conftest.$ac_objext'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 ac_cv_prog_cxx_g=yes
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6997 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6998 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6999 if test "$ac_test_CXXFLAGS" = set; then
7000 CXXFLAGS=$ac_save_CXXFLAGS
7001 elif test $ac_cv_prog_cxx_g = yes; then
7002 if test "$GXX" = yes; then
7008 if test "$GXX" = yes; then
7014 for ac_declaration in \
7016 'extern "C" void std::exit (int) throw (); using std::exit;' \
7017 'extern "C" void std::exit (int); using std::exit;' \
7018 'extern "C" void exit (int) throw ();' \
7019 'extern "C" void exit (int);' \
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7038 rm -f conftest.$ac_objext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7040 (eval $ac_compile) 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try='test -z "$ac_cxx_werror_flag"
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest.$ac_objext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7083 rm -f conftest.$ac_objext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7085 (eval $ac_compile) 2>conftest.er1
7087 grep -v '^ *+' conftest.er1 >conftest.err
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } &&
7092 { ac_try='test -z "$ac_cxx_werror_flag"
7093 || test ! -s conftest.err'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; } &&
7099 { ac_try='test -s conftest.$ac_objext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114 if test -n "$ac_declaration"; then
7115 echo '#ifdef __cplusplus' >>confdefs.h
7116 echo $ac_declaration >>confdefs.h
7117 echo '#endif' >>confdefs.h
7121 ac_cpp='$CXXCPP $CPPFLAGS'
7122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7126 depcc="$CXX" am_compiler_list=
7128 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7129 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7130 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7134 # We make a subdir and do the tests there. Otherwise we can end up
7135 # making bogus files that we don't know about and never remove. For
7136 # instance it was reported that on HP-UX the gcc test will end up
7137 # making a dummy file named `D' -- because `-MD' means `put the output
7140 # Copy depcomp to subdir because otherwise we won't find it if we're
7141 # using a relative directory.
7142 cp "$am_depcomp" conftest.dir
7144 # We will build objects and dependencies in a subdirectory because
7145 # it helps to detect inapplicable dependency modes. For instance
7146 # both Tru64's cc and ICC support -MD to output dependencies as a
7147 # side effect of compilation, but ICC will put the dependencies in
7148 # the current directory while Tru64 will put them in the object
7152 am_cv_CXX_dependencies_compiler_type=none
7153 if test "$am_compiler_list" = ""; then
7154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7156 for depmode in $am_compiler_list; do
7157 # Setup a source with many dependencies, because some compilers
7158 # like to wrap large dependency lists on column 80 (with \), and
7159 # we should not choose a depcomp mode which is confused by this.
7161 # We need to recreate these files for each test, as the compiler may
7162 # overwrite some of them when testing with obscure command lines.
7163 # This happens at least with the AIX C compiler.
7165 for i in 1 2 3 4 5 6; do
7166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7167 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7168 # Solaris 8's {/usr,}/bin/sh.
7169 touch sub/conftst$i.h
7171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7175 # after this tag, mechanisms are not by side-effect, so they'll
7176 # only be used when explicitly requested
7177 if test "x$enable_dependency_tracking" = xyes; then
7185 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7186 # mode. It turns out that the SunPro C++ compiler does not properly
7187 # handle `-M -o', and we need to detect this.
7188 if depmode=$depmode \
7189 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7190 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7191 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7192 >/dev/null 2>conftest.err &&
7193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7194 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7196 # icc doesn't choke on unknown options, it will just issue warnings
7197 # or remarks (even with -Werror). So we grep stderr for any message
7198 # that says an option was ignored or not supported.
7199 # When given -MP, icc 7.0 and 7.1 complain thusly:
7200 # icc: Command line warning: ignoring option '-M'; no argument required
7201 # The diagnosis changed in icc 8.0:
7202 # icc: Command line remark: option '-MP' not supported
7203 if (grep 'ignoring option' conftest.err ||
7204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7205 am_cv_CXX_dependencies_compiler_type=$depmode
7214 am_cv_CXX_dependencies_compiler_type=none
7218 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7219 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7220 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7225 test "x$enable_dependency_tracking" != xno \
7226 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7227 am__fastdepCXX_TRUE=
7228 am__fastdepCXX_FALSE='#'
7230 am__fastdepCXX_TRUE='#'
7231 am__fastdepCXX_FALSE=
7237 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7238 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7239 (test "X$CXX" != "Xg++"))) ; then
7241 ac_cpp='$CXXCPP $CPPFLAGS'
7242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7245 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7246 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7247 if test -z "$CXXCPP"; then
7248 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 # Double quotes because CXXCPP needs to be expanded
7252 for CXXCPP in "$CXX -E" "/lib/cpp"
7255 for ac_cxx_preproc_warn_flag in '' yes
7257 # Use a header file that comes with gcc, so configuring glibc
7258 # with a fresh cross-compiler works.
7259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260 # <limits.h> exists even on freestanding compilers.
7261 # On the NeXT, cc -E runs the code through the compiler's parser,
7262 # not just through cpp. "Syntax error" is here to catch this case.
7263 cat >conftest.$ac_ext <<_ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7270 # include <limits.h>
7272 # include <assert.h>
7276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } >/dev/null; then
7284 if test -s conftest.err; then
7285 ac_cpp_err=$ac_cxx_preproc_warn_flag
7286 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7293 if test -z "$ac_cpp_err"; then
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 # Broken: fails on valid input.
7302 rm -f conftest.err conftest.$ac_ext
7304 # OK, works on sane cases. Now check whether non-existent headers
7305 # can be detected and how.
7306 cat >conftest.$ac_ext <<_ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 #include <ac_nonexistent.h>
7314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } >/dev/null; then
7322 if test -s conftest.err; then
7323 ac_cpp_err=$ac_cxx_preproc_warn_flag
7324 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7331 if test -z "$ac_cpp_err"; then
7332 # Broken: success on invalid input.
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 # Passes both tests.
7342 rm -f conftest.err conftest.$ac_ext
7345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7346 rm -f conftest.err conftest.$ac_ext
7347 if $ac_preproc_ok; then
7352 ac_cv_prog_CXXCPP=$CXXCPP
7355 CXXCPP=$ac_cv_prog_CXXCPP
7357 ac_cv_prog_CXXCPP=$CXXCPP
7359 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7360 echo "${ECHO_T}$CXXCPP" >&6
7362 for ac_cxx_preproc_warn_flag in '' yes
7364 # Use a header file that comes with gcc, so configuring glibc
7365 # with a fresh cross-compiler works.
7366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7367 # <limits.h> exists even on freestanding compilers.
7368 # On the NeXT, cc -E runs the code through the compiler's parser,
7369 # not just through cpp. "Syntax error" is here to catch this case.
7370 cat >conftest.$ac_ext <<_ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7377 # include <limits.h>
7379 # include <assert.h>
7383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7386 grep -v '^ *+' conftest.er1 >conftest.err
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } >/dev/null; then
7391 if test -s conftest.err; then
7392 ac_cpp_err=$ac_cxx_preproc_warn_flag
7393 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7400 if test -z "$ac_cpp_err"; then
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7406 # Broken: fails on valid input.
7409 rm -f conftest.err conftest.$ac_ext
7411 # OK, works on sane cases. Now check whether non-existent headers
7412 # can be detected and how.
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <ac_nonexistent.h>
7421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7424 grep -v '^ *+' conftest.er1 >conftest.err
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } >/dev/null; then
7429 if test -s conftest.err; then
7430 ac_cpp_err=$ac_cxx_preproc_warn_flag
7431 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7438 if test -z "$ac_cpp_err"; then
7439 # Broken: success on invalid input.
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 # Passes both tests.
7449 rm -f conftest.err conftest.$ac_ext
7452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7453 rm -f conftest.err conftest.$ac_ext
7454 if $ac_preproc_ok; then
7457 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7458 See \`config.log' for more details." >&5
7459 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7460 See \`config.log' for more details." >&2;}
7461 { (exit 1); exit 1; }; }
7465 ac_cpp='$CXXCPP $CPPFLAGS'
7466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7474 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7475 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7477 if test -n "$ac_tool_prefix"; then
7478 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7482 echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7484 if test "${ac_cv_prog_F77+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 if test -n "$F77"; then
7488 ac_cv_prog_F77="$F77" # Let the user override the test.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 if test -n "$F77"; then
7508 echo "$as_me:$LINENO: result: $F77" >&5
7509 echo "${ECHO_T}$F77" >&6
7511 echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7515 test -n "$F77" && break
7518 if test -z "$F77"; then
7520 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7522 # Extract the first word of "$ac_prog", so it can be a program name with args.
7523 set dummy $ac_prog; ac_word=$2
7524 echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 if test -n "$ac_ct_F77"; then
7530 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_ac_ct_F77="$ac_prog"
7540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7549 if test -n "$ac_ct_F77"; then
7550 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7551 echo "${ECHO_T}$ac_ct_F77" >&6
7553 echo "$as_me:$LINENO: result: no" >&5
7554 echo "${ECHO_T}no" >&6
7557 test -n "$ac_ct_F77" && break
7564 # Provide some information about the compiler.
7565 echo "$as_me:7565:" \
7566 "checking for Fortran 77 compiler version" >&5
7567 ac_compiler=`set X $ac_compile; echo $2`
7568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7569 (eval $ac_compiler --version </dev/null >&5) 2>&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }
7573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7574 (eval $ac_compiler -v </dev/null >&5) 2>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }
7578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7579 (eval $ac_compiler -V </dev/null >&5) 2>&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }
7585 # If we don't use `.F' as extension, the preprocessor is not run on the
7586 # input file. (Note that this only needs to work for GNU compilers.)
7589 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7590 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7591 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 cat >conftest.$ac_ext <<_ACEOF
7602 rm -f conftest.$ac_objext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7604 (eval $ac_compile) 2>conftest.er1
7606 grep -v '^ *+' conftest.er1 >conftest.err
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_f77_werror_flag"
7612 || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest.$ac_objext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7632 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7635 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7636 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7638 ac_test_FFLAGS=${FFLAGS+set}
7639 ac_save_FFLAGS=$FFLAGS
7641 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7642 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7643 if test "${ac_cv_prog_f77_g+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 cat >conftest.$ac_ext <<_ACEOF
7652 rm -f conftest.$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654 (eval $ac_compile) 2>conftest.er1
7656 grep -v '^ *+' conftest.er1 >conftest.err
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -z "$ac_f77_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest.$ac_objext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_prog_f77_g=yes
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7684 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7685 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7686 if test "$ac_test_FFLAGS" = set; then
7687 FFLAGS=$ac_save_FFLAGS
7688 elif test $ac_cv_prog_f77_g = yes; then
7689 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7695 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7702 G77=`test $ac_compiler_gnu = yes && echo yes`
7704 ac_cpp='$CPP $CPPFLAGS'
7705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7713 # find the maximum length of command line arguments
7714 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7715 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7716 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 # On DJGPP, this test can blow up pretty badly due to problems in libc
7725 # (any single argument exceeding 2000 bytes causes a buffer overrun
7726 # during glob expansion). Even if it were fixed, the result of this
7727 # check would be larger than it should be.
7728 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7732 # Under GNU Hurd, this test is not required because there is
7733 # no limit to the length of command line arguments.
7734 # Libtool will interpret -1 as no limit whatsoever
7735 lt_cv_sys_max_cmd_len=-1;
7739 # On Win9x/ME, this test blows up -- it succeeds, but takes
7740 # about 5 minutes as the teststring grows exponentially.
7741 # Worse, since 9x/ME are not pre-emptively multitasking,
7742 # you end up with a "frozen" computer, even though with patience
7743 # the test eventually succeeds (with a max line length of 256k).
7744 # Instead, let's just punt: use the minimum linelength reported by
7745 # all of the supported platforms: 8192 (on NT/2K/XP).
7746 lt_cv_sys_max_cmd_len=8192;
7750 # On AmigaOS with pdksh, this test takes hours, literally.
7751 # So we just punt and use a minimum line length of 8192.
7752 lt_cv_sys_max_cmd_len=8192;
7755 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7756 # This has been around since 386BSD, at least. Likely further.
7757 if test -x /sbin/sysctl; then
7758 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7759 elif test -x /usr/sbin/sysctl; then
7760 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7762 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7764 # And add a safety zone
7765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7769 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7770 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7771 # nice to cause kernel panics so lets avoid the loop below.
7772 # First set a reasonable default.
7773 lt_cv_sys_max_cmd_len=16384
7775 if test -x /sbin/sysconfig; then
7776 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7777 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7782 # If test is not a shell built-in, we'll probably end up computing a
7783 # maximum length that is only half of the actual maximum length, but
7785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7786 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7787 = "XX$teststring") >/dev/null 2>&1 &&
7788 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7789 lt_cv_sys_max_cmd_len=$new_result &&
7790 test $i != 17 # 1/2 MB should be enough
7793 teststring=$teststring$teststring
7796 # Add a significant safety factor because C++ compilers can tack on massive
7797 # amounts of additional arguments before passing them to the linker.
7798 # It appears as though 1/2 is a usable value.
7799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7805 if test -n $lt_cv_sys_max_cmd_len ; then
7806 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7807 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7809 echo "$as_me:$LINENO: result: none" >&5
7810 echo "${ECHO_T}none" >&6
7816 # Check for command to grab the raw symbol name followed by C symbol from nm.
7817 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7818 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7819 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 # These are sane defaults that work on at least a few old systems.
7824 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7826 # Character class describing NM global symbol codes.
7827 symcode='[BCDEGRST]'
7829 # Regexp to match symbols that can be accessed directly from C.
7830 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7832 # Transform an extracted symbol line into a proper C declaration
7833 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7835 # Transform an extracted symbol line into symbol name and symbol address
7836 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'"
7838 # Define system-specific variables.
7843 cygwin* | mingw* | pw32*)
7844 symcode='[ABCDGISTW]'
7846 hpux*) # Its linker distinguishes data from code symbols
7847 if test "$host_cpu" = ia64; then
7848 symcode='[ABCDEGRST]'
7850 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7851 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'"
7854 if test "$host_cpu" = ia64; then
7855 symcode='[ABCDGIRSTW]'
7856 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7857 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'"
7861 symcode='[BCDEGRST]'
7864 symcode='[BCDEGQRST]'
7874 # Handle CRLF in mingw tool chain
7878 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7882 # If we're using GNU nm, then use its standard symbol codes.
7883 case `$NM -V 2>&1` in
7884 *GNU* | *'with BFD'*)
7885 symcode='[ABCDGIRSTW]' ;;
7888 # Try without a prefix undercore, then with it.
7889 for ac_symprfx in "" "_"; do
7891 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7892 symxfrm="\\1 $ac_symprfx\\2 \\2"
7894 # Write the raw and C identifiers.
7895 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7897 # Check to see that the pipe works correctly.
7901 cat > conftest.$ac_ext <<EOF
7906 void nm_test_func(){}
7910 int main(){nm_test_var='a';nm_test_func();return(0);}
7913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7914 (eval $ac_compile) 2>&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; then
7918 # Now try to grab the symbols.
7920 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7921 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } && test -s "$nlist"; then
7925 # Try sorting and uniquifying the output.
7926 if sort "$nlist" | uniq > "$nlist"T; then
7927 mv -f "$nlist"T "$nlist"
7932 # Make sure that we snagged all the symbols we need.
7933 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7934 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7935 cat <<EOF > conftest.$ac_ext
7941 # Now generate the symbol file.
7942 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7944 cat <<EOF >> conftest.$ac_ext
7945 #if defined (__STDC__) && __STDC__
7946 # define lt_ptr_t void *
7948 # define lt_ptr_t char *
7952 /* The mapping between symbol names and symbols. */
7957 lt_preloaded_symbols[] =
7960 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7961 cat <<\EOF >> conftest.$ac_ext
7969 # Now try linking the two files.
7970 mv conftest.$ac_objext conftstm.$ac_objext
7971 lt_save_LIBS="$LIBS"
7972 lt_save_CFLAGS="$CFLAGS"
7973 LIBS="conftstm.$ac_objext"
7974 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7976 (eval $ac_link) 2>&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7982 LIBS="$lt_save_LIBS"
7983 CFLAGS="$lt_save_CFLAGS"
7985 echo "cannot find nm_test_func in $nlist" >&5
7988 echo "cannot find nm_test_var in $nlist" >&5
7991 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7994 echo "$progname: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7997 rm -f conftest* conftst*
7999 # Do not use the global_symbol_pipe unless it works.
8000 if test "$pipe_works" = yes; then
8003 lt_cv_sys_global_symbol_pipe=
8009 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8010 lt_cv_sys_global_symbol_to_cdecl=
8012 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8013 echo "$as_me:$LINENO: result: failed" >&5
8014 echo "${ECHO_T}failed" >&6
8016 echo "$as_me:$LINENO: result: ok" >&5
8017 echo "${ECHO_T}ok" >&6
8020 echo "$as_me:$LINENO: checking for objdir" >&5
8021 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8022 if test "${lt_cv_objdir+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 rm -f .libs 2>/dev/null
8026 mkdir .libs 2>/dev/null
8027 if test -d .libs; then
8030 # MS-DOS does not allow filenames that begin with a dot.
8033 rmdir .libs 2>/dev/null
8035 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8036 echo "${ECHO_T}$lt_cv_objdir" >&6
8037 objdir=$lt_cv_objdir
8045 # AIX sometimes has problems with the GCC collect2 program. For some
8046 # reason, if we set the COLLECT_NAMES environment variable, the problems
8047 # vanish in a puff of smoke.
8048 if test "X${COLLECT_NAMES+set}" != Xset; then
8050 export COLLECT_NAMES
8055 # Sed substitution that helps us do robust quoting. It backslashifies
8056 # metacharacters that are still active within double-quoted strings.
8057 Xsed='sed -e 1s/^X//'
8058 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8060 # Same as above, but do not quote variable references.
8061 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8063 # Sed substitution to delay expansion of an escaped shell variable in a
8064 # double_quote_subst'ed string.
8065 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8067 # Sed substitution to avoid accidental globbing in evaled expressions
8068 no_glob_subst='s/\*/\\\*/g'
8074 default_ofile=libtool
8075 can_build_shared=yes
8077 # All known linkers require a `.a' archive for static linking (except M$VC,
8078 # which needs '.lib').
8080 ltmain="$ac_aux_dir/ltmain.sh"
8081 ofile="$default_ofile"
8082 with_gnu_ld="$lt_cv_prog_gnu_ld"
8084 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}ar; ac_word=$2
8087 echo "$as_me:$LINENO: checking for $ac_word" >&5
8088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8089 if test "${ac_cv_prog_AR+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 if test -n "$AR"; then
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_AR="${ac_tool_prefix}ar"
8103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 if test -n "$AR"; then
8113 echo "$as_me:$LINENO: result: $AR" >&5
8114 echo "${ECHO_T}$AR" >&6
8116 echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6
8121 if test -z "$ac_cv_prog_AR"; then
8123 # Extract the first word of "ar", so it can be a program name with args.
8124 set dummy ar; ac_word=$2
8125 echo "$as_me:$LINENO: checking for $ac_word" >&5
8126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8127 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 if test -n "$ac_ct_AR"; then
8131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_ac_ct_AR="ar"
8141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8151 if test -n "$ac_ct_AR"; then
8152 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8153 echo "${ECHO_T}$ac_ct_AR" >&6
8155 echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8167 echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8169 if test "${ac_cv_prog_RANLIB+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 if test -n "$RANLIB"; then
8173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 RANLIB=$ac_cv_prog_RANLIB
8192 if test -n "$RANLIB"; then
8193 echo "$as_me:$LINENO: result: $RANLIB" >&5
8194 echo "${ECHO_T}$RANLIB" >&6
8196 echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8201 if test -z "$ac_cv_prog_RANLIB"; then
8202 ac_ct_RANLIB=$RANLIB
8203 # Extract the first word of "ranlib", so it can be a program name with args.
8204 set dummy ranlib; ac_word=$2
8205 echo "$as_me:$LINENO: checking for $ac_word" >&5
8206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 if test -n "$ac_ct_RANLIB"; then
8211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220 ac_cv_prog_ac_ct_RANLIB="ranlib"
8221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8231 if test -n "$ac_ct_RANLIB"; then
8232 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8235 echo "$as_me:$LINENO: result: no" >&5
8236 echo "${ECHO_T}no" >&6
8239 RANLIB=$ac_ct_RANLIB
8241 RANLIB="$ac_cv_prog_RANLIB"
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}strip; ac_word=$2
8247 echo "$as_me:$LINENO: checking for $ac_word" >&5
8248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8249 if test "${ac_cv_prog_STRIP+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 if test -n "$STRIP"; then
8253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 STRIP=$ac_cv_prog_STRIP
8272 if test -n "$STRIP"; then
8273 echo "$as_me:$LINENO: result: $STRIP" >&5
8274 echo "${ECHO_T}$STRIP" >&6
8276 echo "$as_me:$LINENO: result: no" >&5
8277 echo "${ECHO_T}no" >&6
8281 if test -z "$ac_cv_prog_STRIP"; then
8283 # Extract the first word of "strip", so it can be a program name with args.
8284 set dummy strip; ac_word=$2
8285 echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 if test -n "$ac_ct_STRIP"; then
8291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300 ac_cv_prog_ac_ct_STRIP="strip"
8301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8311 if test -n "$ac_ct_STRIP"; then
8312 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8313 echo "${ECHO_T}$ac_ct_STRIP" >&6
8315 echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6
8321 STRIP="$ac_cv_prog_STRIP"
8326 old_CFLAGS="$CFLAGS"
8328 # Set sane defaults for various variables
8329 test -z "$AR" && AR=ar
8330 test -z "$AR_FLAGS" && AR_FLAGS=cru
8331 test -z "$AS" && AS=as
8332 test -z "$CC" && CC=cc
8333 test -z "$LTCC" && LTCC=$CC
8334 test -z "$DLLTOOL" && DLLTOOL=dlltool
8335 test -z "$LD" && LD=ld
8336 test -z "$LN_S" && LN_S="ln -s"
8337 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8338 test -z "$NM" && NM=nm
8339 test -z "$SED" && SED=sed
8340 test -z "$OBJDUMP" && OBJDUMP=objdump
8341 test -z "$RANLIB" && RANLIB=:
8342 test -z "$STRIP" && STRIP=:
8343 test -z "$ac_objext" && ac_objext=o
8345 # Determine commands to create old-style static archives.
8346 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8347 old_postinstall_cmds='chmod 644 $oldlib'
8348 old_postuninstall_cmds=
8350 if test -n "$RANLIB"; then
8353 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8356 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8359 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8362 for cc_temp in $compiler""; do
8364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8370 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8373 # Only perform the check for file, if the check method requires it
8374 case $deplibs_check_method in
8376 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8377 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8378 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8379 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8387 lt_save_MAGIC_CMD="$MAGIC_CMD"
8388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8389 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8390 for ac_dir in $ac_dummy; do
8392 test -z "$ac_dir" && ac_dir=.
8393 if test -f $ac_dir/${ac_tool_prefix}file; then
8394 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8395 if test -n "$file_magic_test_file"; then
8396 case $deplibs_check_method in
8398 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8400 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8401 $EGREP "$file_magic_regex" > /dev/null; then
8406 *** Warning: the command libtool uses to detect shared libraries,
8407 *** $file_magic_cmd, produces output that libtool cannot recognize.
8408 *** The result is that libtool may fail to recognize shared libraries
8409 *** as such. This will affect the creation of libtool libraries that
8410 *** depend on shared libraries, but programs linked with such libtool
8411 *** libraries will work regardless of this problem. Nevertheless, you
8412 *** may want to report the problem to your system manager and/or to
8413 *** bug-libtool@gnu.org
8423 MAGIC_CMD="$lt_save_MAGIC_CMD"
8428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8429 if test -n "$MAGIC_CMD"; then
8430 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8431 echo "${ECHO_T}$MAGIC_CMD" >&6
8433 echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6
8437 if test -z "$lt_cv_path_MAGIC_CMD"; then
8438 if test -n "$ac_tool_prefix"; then
8439 echo "$as_me:$LINENO: checking for file" >&5
8440 echo $ECHO_N "checking for file... $ECHO_C" >&6
8441 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8449 lt_save_MAGIC_CMD="$MAGIC_CMD"
8450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8451 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8452 for ac_dir in $ac_dummy; do
8454 test -z "$ac_dir" && ac_dir=.
8455 if test -f $ac_dir/file; then
8456 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8457 if test -n "$file_magic_test_file"; then
8458 case $deplibs_check_method in
8460 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8462 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8463 $EGREP "$file_magic_regex" > /dev/null; then
8468 *** Warning: the command libtool uses to detect shared libraries,
8469 *** $file_magic_cmd, produces output that libtool cannot recognize.
8470 *** The result is that libtool may fail to recognize shared libraries
8471 *** as such. This will affect the creation of libtool libraries that
8472 *** depend on shared libraries, but programs linked with such libtool
8473 *** libraries will work regardless of this problem. Nevertheless, you
8474 *** may want to report the problem to your system manager and/or to
8475 *** bug-libtool@gnu.org
8485 MAGIC_CMD="$lt_save_MAGIC_CMD"
8490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491 if test -n "$MAGIC_CMD"; then
8492 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8493 echo "${ECHO_T}$MAGIC_CMD" >&6
8495 echo "$as_me:$LINENO: result: no" >&5
8496 echo "${ECHO_T}no" >&6
8509 enable_win32_dll=yes
8511 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8512 if test "${enable_libtool_lock+set}" = set; then
8513 enableval="$enable_libtool_lock"
8516 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8519 # Check whether --with-pic or --without-pic was given.
8520 if test "${with_pic+set}" = set; then
8526 test -z "$pic_mode" && pic_mode=default
8528 # Use C for the default configuration in the libtool script
8532 ac_cpp='$CPP $CPPFLAGS'
8533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8538 # Source file extension for C test sources.
8541 # Object file extension for compiled C test sources.
8545 # Code to be used in simple compile tests
8546 lt_simple_compile_test_code="int some_variable = 0;\n"
8548 # Code to be used in simple link tests
8549 lt_simple_link_test_code='int main(){return(0);}\n'
8552 # If no C compiler was specified, use CC.
8555 # Allow CC to be a program name with arguments.
8559 # save warnings/boilerplate of simple test code
8560 ac_outfile=conftest.$ac_objext
8561 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8562 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8563 _lt_compiler_boilerplate=`cat conftest.err`
8566 ac_outfile=conftest.$ac_objext
8567 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8568 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8569 _lt_linker_boilerplate=`cat conftest.err`
8574 # Check for any special shared library compilation flags.
8577 if test "$GCC" = no; then
8580 lt_prog_cc_shlib='-belf'
8584 if test -n "$lt_prog_cc_shlib"; then
8585 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8586 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8587 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8589 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8590 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8591 lt_cv_prog_cc_can_build_shared=no
8597 # Check to make sure the static flag actually works.
8599 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8600 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8601 if test "${lt_prog_compiler_static_works+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 lt_prog_compiler_static_works=no
8605 save_LDFLAGS="$LDFLAGS"
8606 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8607 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8609 # The compiler can only warn and ignore the option if not recognized
8610 # So say no if there are warnings
8611 if test -s conftest.err; then
8612 # Append any errors to the config.log.
8613 cat conftest.err 1>&5
8614 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8615 $SED '/^$/d' conftest.err >conftest.er2
8616 if diff conftest.exp conftest.er2 >/dev/null; then
8617 lt_prog_compiler_static_works=yes
8620 lt_prog_compiler_static_works=yes
8624 LDFLAGS="$save_LDFLAGS"
8627 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8628 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8630 if test x"$lt_prog_compiler_static_works" = xyes; then
8633 lt_prog_compiler_static=
8639 lt_prog_compiler_no_builtin_flag=
8641 if test "$GCC" = yes; then
8642 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8645 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8646 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8647 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 lt_cv_prog_compiler_rtti_exceptions=no
8651 ac_outfile=conftest.$ac_objext
8652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8653 lt_compiler_flag="-fno-rtti -fno-exceptions"
8654 # Insert the option either (1) after the last *FLAGS variable, or
8655 # (2) before a word containing "conftest.", or (3) at the end.
8656 # Note that $ac_compile itself does not contain backslashes and begins
8657 # with a dollar sign (not a hyphen), so the echo should work correctly.
8658 # The option is referenced via a variable to avoid confusing sed.
8659 lt_compile=`echo "$ac_compile" | $SED \
8660 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662 -e 's:$: $lt_compiler_flag:'`
8663 (eval echo "\"\$as_me:8663: $lt_compile\"" >&5)
8664 (eval "$lt_compile" 2>conftest.err)
8666 cat conftest.err >&5
8667 echo "$as_me:8667: \$? = $ac_status" >&5
8668 if (exit $ac_status) && test -s "$ac_outfile"; then
8669 # The compiler can only warn and ignore the option if not recognized
8670 # So say no if there are warnings other than the usual output.
8671 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8672 $SED '/^$/d' conftest.err >conftest.er2
8673 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8674 lt_cv_prog_compiler_rtti_exceptions=yes
8680 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8681 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8683 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8684 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8691 lt_prog_compiler_wl=
8692 lt_prog_compiler_pic=
8693 lt_prog_compiler_static=
8695 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8696 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8698 if test "$GCC" = yes; then
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_static='-static'
8704 # All AIX code is PIC.
8705 if test "$host_cpu" = ia64; then
8706 # AIX 5 now supports IA64 processor
8707 lt_prog_compiler_static='-Bstatic'
8712 # FIXME: we need at least 68020 code to build shared libraries, but
8713 # adding the `-m68020' flag to GCC prevents building anything better,
8715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8718 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8719 # PIC is the default for these OSes.
8722 mingw* | pw32* | os2*)
8723 # This hack is so that the source file can tell whether it is being
8724 # built for inclusion in a dll (and should export symbols for example).
8725 lt_prog_compiler_pic='-DDLL_EXPORT'
8728 darwin* | rhapsody*)
8729 # PIC is the default on this platform
8730 # Common symbols not allowed in MH_DYLIB files
8731 lt_prog_compiler_pic='-fno-common'
8735 # Just because we use GCC doesn't mean we suddenly get shared libraries
8736 # on systems that don't support them.
8737 lt_prog_compiler_can_build_shared=no
8742 if test -d /usr/nec; then
8743 lt_prog_compiler_pic=-Kconform_pic
8748 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8755 lt_prog_compiler_pic='-fPIC'
8761 lt_prog_compiler_pic='-fPIC'
8765 # PORTME Check for flag to pass linker flags through the system compiler.
8768 lt_prog_compiler_wl='-Wl,'
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 now supports IA64 processor
8771 lt_prog_compiler_static='-Bstatic'
8773 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8777 # PIC is the default on this platform
8778 # Common symbols not allowed in MH_DYLIB files
8779 case $cc_basename in
8781 lt_prog_compiler_pic='-qnocommon'
8782 lt_prog_compiler_wl='-Wl,'
8787 mingw* | pw32* | os2*)
8788 # This hack is so that the source file can tell whether it is being
8789 # built for inclusion in a dll (and should export symbols for example).
8790 lt_prog_compiler_pic='-DDLL_EXPORT'
8793 hpux9* | hpux10* | hpux11*)
8794 lt_prog_compiler_wl='-Wl,'
8795 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8802 lt_prog_compiler_pic='+Z'
8805 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8806 lt_prog_compiler_static='${wl}-a ${wl}archive'
8809 irix5* | irix6* | nonstopux*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # PIC (with -KPIC) is the default.
8812 lt_prog_compiler_static='-non_shared'
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-Bstatic'
8821 case $cc_basename in
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='-KPIC'
8825 lt_prog_compiler_static='-static'
8827 pgcc* | pgf77* | pgf90*)
8828 # Portland Group compilers (*not* the Pentium gcc compiler,
8829 # which looks to be a dead project)
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_pic='-fpic'
8832 lt_prog_compiler_static='-static'
8835 lt_prog_compiler_wl='-Wl,'
8836 # All Alpha code is PIC.
8837 lt_prog_compiler_static='-non_shared'
8842 osf3* | osf4* | osf5*)
8843 lt_prog_compiler_wl='-Wl,'
8844 # All OSF/1 code is PIC.
8845 lt_prog_compiler_static='-non_shared'
8849 lt_prog_compiler_pic='-Kpic'
8850 lt_prog_compiler_static='-dn'
8854 lt_prog_compiler_pic='-KPIC'
8855 lt_prog_compiler_static='-Bstatic'
8856 case $cc_basename in
8858 lt_prog_compiler_wl='-Qoption ld ';;
8860 lt_prog_compiler_wl='-Wl,';;
8865 lt_prog_compiler_wl='-Qoption ld '
8866 lt_prog_compiler_pic='-PIC'
8867 lt_prog_compiler_static='-Bstatic'
8870 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8877 if test -d /usr/nec ;then
8878 lt_prog_compiler_pic='-Kconform_pic'
8879 lt_prog_compiler_static='-Bstatic'
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_can_build_shared=no
8889 lt_prog_compiler_pic='-pic'
8890 lt_prog_compiler_static='-Bstatic'
8894 lt_prog_compiler_can_build_shared=no
8899 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8900 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8903 # Check to make sure the PIC flag actually works.
8905 if test -n "$lt_prog_compiler_pic"; then
8907 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8908 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8909 if test "${lt_prog_compiler_pic_works+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 lt_prog_compiler_pic_works=no
8913 ac_outfile=conftest.$ac_objext
8914 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 # The option is referenced via a variable to avoid confusing sed.
8921 lt_compile=`echo "$ac_compile" | $SED \
8922 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924 -e 's:$: $lt_compiler_flag:'`
8925 (eval echo "\"\$as_me:8925: $lt_compile\"" >&5)
8926 (eval "$lt_compile" 2>conftest.err)
8928 cat conftest.err >&5
8929 echo "$as_me:8929: \$? = $ac_status" >&5
8930 if (exit $ac_status) && test -s "$ac_outfile"; then
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings other than the usual output.
8933 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8934 $SED '/^$/d' conftest.err >conftest.er2
8935 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8936 lt_prog_compiler_pic_works=yes
8942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8943 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8945 if test x"$lt_prog_compiler_pic_works" = xyes; then
8946 case $lt_prog_compiler_pic in
8948 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8951 lt_prog_compiler_pic=
8952 lt_prog_compiler_can_build_shared=no
8957 # For platforms which do not support PIC, -DPIC is meaningless:
8959 lt_prog_compiler_pic=
8962 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8966 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8967 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8968 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 lt_cv_prog_compiler_c_o=no
8972 $rm -r conftest 2>/dev/null
8976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8978 lt_compiler_flag="-o out/conftest2.$ac_objext"
8979 # Insert the option either (1) after the last *FLAGS variable, or
8980 # (2) before a word containing "conftest.", or (3) at the end.
8981 # Note that $ac_compile itself does not contain backslashes and begins
8982 # with a dollar sign (not a hyphen), so the echo should work correctly.
8983 lt_compile=`echo "$ac_compile" | $SED \
8984 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986 -e 's:$: $lt_compiler_flag:'`
8987 (eval echo "\"\$as_me:8987: $lt_compile\"" >&5)
8988 (eval "$lt_compile" 2>out/conftest.err)
8990 cat out/conftest.err >&5
8991 echo "$as_me:8991: \$? = $ac_status" >&5
8992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8994 # The compiler can only warn and ignore the option if not recognized
8995 # So say no if there are warnings
8996 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8997 $SED '/^$/d' out/conftest.err >out/conftest.er2
8998 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8999 lt_cv_prog_compiler_c_o=yes
9004 # SGI C++ compiler will create directory out/ii_files/ for
9005 # template instantiation
9006 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9007 $rm out/* && rmdir out
9013 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9014 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9017 hard_links="nottested"
9018 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9019 # do not overwrite the value of need_locks provided by the user
9020 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9021 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9026 ln conftest.a conftest.b 2>&5 || hard_links=no
9027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9028 echo "$as_me:$LINENO: result: $hard_links" >&5
9029 echo "${ECHO_T}$hard_links" >&6
9030 if test "$hard_links" = no; then
9031 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9032 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9039 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9040 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9043 allow_undefined_flag=
9044 enable_shared_with_static_runtimes=no
9046 archive_expsym_cmds=
9047 old_archive_From_new_cmds=
9048 old_archive_from_expsyms_cmds=
9049 export_dynamic_flag_spec=
9050 whole_archive_flag_spec=
9051 thread_safe_flag_spec=
9052 hardcode_libdir_flag_spec=
9053 hardcode_libdir_flag_spec_ld=
9054 hardcode_libdir_separator=
9057 hardcode_shlibpath_var=unsupported
9058 link_all_deplibs=unknown
9059 hardcode_automatic=no
9062 always_export_symbols=no
9063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9064 # include_expsyms should be a list of space-separated symbols to be *always*
9065 # included in the symbol list
9067 # exclude_expsyms can be an extended regexp of symbols to exclude
9068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9070 # as well as any symbol that contains `d'.
9071 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9073 # platforms (ab)use it in PIC code, but their linkers get confused if
9074 # the symbol is explicitly referenced. Since portable code cannot
9075 # rely on this symbol name, it's probably fine to never include it in
9076 # preloaded symbol tables.
9077 extract_expsyms_cmds=
9078 # Just being paranoid about ensuring that cc_basename is set.
9079 for cc_temp in $compiler""; do
9081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9087 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9090 cygwin* | mingw* | pw32*)
9091 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9092 # When not using gcc, we currently assume that we are using
9093 # Microsoft Visual C++.
9094 if test "$GCC" != yes; then
9104 if test "$with_gnu_ld" = yes; then
9105 # If archive_cmds runs LD, not CC, wlarc should be empty
9108 # Set some defaults for GNU ld with shared library support. These
9109 # are reset later if shared libraries are not supported. Putting them
9110 # here allows them to be overridden if necessary.
9111 runpath_var=LD_RUN_PATH
9112 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9113 export_dynamic_flag_spec='${wl}--export-dynamic'
9114 # ancient GNU ld didn't support --whole-archive et. al.
9115 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9116 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9118 whole_archive_flag_spec=
9120 supports_anon_versioning=no
9121 case `$LD -v 2>/dev/null` in
9122 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9123 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9124 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9125 *\ 2.11.*) ;; # other 2.11 versions
9126 *) supports_anon_versioning=yes ;;
9129 # See if GNU ld supports shared libraries.
9131 aix3* | aix4* | aix5*)
9132 # On AIX/PPC, the GNU linker is very broken
9133 if test "$host_cpu" != ia64; then
9137 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9138 *** to be unable to reliably create shared libraries on AIX.
9139 *** Therefore, libtool is disabling shared libraries support. If you
9140 *** really care for shared libraries, you may want to modify your PATH
9141 *** so that a non-GNU linker is found, and then restart.
9148 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)'
9149 hardcode_libdir_flag_spec='-L$libdir'
9150 hardcode_minus_L=yes
9152 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9153 # that the semantics of dynamic libraries on AmigaOS, at least up
9154 # to version 4, is to share data among multiple programs linked
9155 # with the same dynamic library. Since this doesn't match the
9156 # behavior of shared libraries on other platforms, we can't use
9162 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9163 allow_undefined_flag=unsupported
9164 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9165 # support --undefined. This deserves some investigation. FIXME
9166 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9172 cygwin* | mingw* | pw32*)
9173 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9174 # as there is no search path for DLLs.
9175 hardcode_libdir_flag_spec='-L$libdir'
9176 allow_undefined_flag=unsupported
9177 always_export_symbols=no
9178 enable_shared_with_static_runtimes=yes
9179 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9181 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9183 # If the export-symbols file already is a .def file (1st line
9184 # is EXPORTS), use it as is; otherwise, prepend...
9185 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9186 cp $export_symbols $output_objdir/$soname.def;
9188 echo EXPORTS > $output_objdir/$soname.def;
9189 cat $export_symbols >> $output_objdir/$soname.def;
9191 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9200 case $cc_basename,$host_cpu in
9201 pgcc*) # Portland Group C compiler
9202 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'
9203 tmp_addflag=' $pic_flag'
9205 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9206 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'
9207 tmp_addflag=' $pic_flag -Mnomain' ;;
9208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9209 tmp_addflag=' -i_dynamic' ;;
9210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9211 tmp_addflag=' -i_dynamic -nofor_main' ;;
9212 ifc* | ifort*) # Intel Fortran compiler
9213 tmp_addflag=' -nofor_main' ;;
9215 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 if test $supports_anon_versioning = yes; then
9218 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9220 $echo "local: *; };" >> $output_objdir/$libname.ver~
9221 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9229 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9230 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
9239 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9244 *** create shared libraries on Solaris systems. Therefore, libtool
9245 *** is disabling shared libraries support. We urge you to upgrade GNU
9246 *** binutils to release 2.9.1 or newer. Another option is to modify
9247 *** your PATH or compiler configuration so that the native linker is
9248 *** used, and then restart.
9251 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9260 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9263 hardcode_shlibpath_var=no
9267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9276 if test "$ld_shlibs" = no; then
9278 hardcode_libdir_flag_spec=
9279 export_dynamic_flag_spec=
9280 whole_archive_flag_spec=
9283 # PORTME fill in a description of your system's linker (not GNU ld)
9286 allow_undefined_flag=unsupported
9287 always_export_symbols=yes
9288 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'
9289 # Note: this linker hardcodes the directories in LIBPATH if there
9290 # are no directories specified by -L.
9291 hardcode_minus_L=yes
9292 if test "$GCC" = yes && test -z "$link_static_flag"; then
9293 # Neither direct hardcoding nor static linking is supported with a
9295 hardcode_direct=unsupported
9300 if test "$host_cpu" = ia64; then
9301 # On IA64, the linker does run time linking by default, so we don't
9302 # have to do anything special.
9303 aix_use_runtimelinking=no
9304 exp_sym_flag='-Bexport'
9307 # If we're using GNU nm, then we don't want the "-C" option.
9308 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9309 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9310 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'
9312 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'
9314 aix_use_runtimelinking=no
9316 # Test if we are trying to use run time linking or normal
9317 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9318 # need to do runtime linking.
9319 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9320 for ld_flag in $LDFLAGS; do
9321 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9322 aix_use_runtimelinking=yes
9328 exp_sym_flag='-bexport'
9329 no_entry_flag='-bnoentry'
9332 # When large executables or shared objects are built, AIX ld can
9333 # have problems creating the table of contents. If linking a library
9334 # or program results in "error TOC overflow" add -mminimal-toc to
9335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9340 hardcode_libdir_separator=':'
9341 link_all_deplibs=yes
9343 if test "$GCC" = yes; then
9344 case $host_os in aix4.[012]|aix4.[012].*)
9345 # We only want to do this on AIX 4.2 and lower, the check
9346 # below for broken collect2 doesn't work under 4.3+
9347 collect2name=`${CC} -print-prog-name=collect2`
9348 if test -f "$collect2name" && \
9349 strings "$collect2name" | grep resolve_lib_name >/dev/null
9351 # We have reworked collect2
9354 # We have old collect2
9355 hardcode_direct=unsupported
9356 # It fails to find uninstalled libraries when the uninstalled
9357 # path is not listed in the libpath. Setting hardcode_minus_L
9358 # to unsupported forces relinking
9359 hardcode_minus_L=yes
9360 hardcode_libdir_flag_spec='-L$libdir'
9361 hardcode_libdir_separator=
9364 shared_flag='-shared'
9365 if test "$aix_use_runtimelinking" = yes; then
9366 shared_flag="$shared_flag "'${wl}-G'
9370 if test "$host_cpu" = ia64; then
9371 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9372 # chokes on -Wl,-G. The following line is correct:
9375 if test "$aix_use_runtimelinking" = yes; then
9376 shared_flag='${wl}-G'
9378 shared_flag='${wl}-bM:SRE'
9383 # It seems that -bexpall does not export symbols beginning with
9384 # underscore (_), so it is better to generate a list of symbols to export.
9385 always_export_symbols=yes
9386 if test "$aix_use_runtimelinking" = yes; then
9387 # Warning - without using the other runtime loading flags (-brtl),
9388 # -berok will link without error, but may produce a broken library.
9389 allow_undefined_flag='-berok'
9390 # Determine the default libpath from the value encoded in an empty executable.
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>conftest.er1
9410 grep -v '^ *+' conftest.er1 >conftest.err
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -z "$ac_c_werror_flag"
9416 || test ! -s conftest.err'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; } &&
9422 { ac_try='test -s conftest$ac_exeext'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
9429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9431 # Check for a 64-bit object if we didn't find anything.
9432 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; }
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9439 rm -f conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9443 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9444 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"
9446 if test "$host_cpu" = ia64; then
9447 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9448 allow_undefined_flag="-z nodefs"
9449 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"
9451 # Determine the default libpath from the value encoded in an empty executable.
9452 cat >conftest.$ac_ext <<_ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>conftest.er1
9471 grep -v '^ *+' conftest.er1 >conftest.err
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag"
9477 || test ! -s conftest.err'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try='test -s conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9492 # Check for a 64-bit object if we didn't find anything.
9493 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; }
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9500 rm -f conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9504 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9505 # Warning - without using the other run time loading flags,
9506 # -berok will link without error, but may produce a broken library.
9507 no_undefined_flag=' ${wl}-bernotok'
9508 allow_undefined_flag=' ${wl}-berok'
9509 # -bexpall does not export symbols beginning with underscore (_)
9510 always_export_symbols=yes
9511 # Exported symbols can be pulled into shared objects from archives
9512 whole_archive_flag_spec=' '
9513 archive_cmds_need_lc=yes
9514 # This is similar to how AIX traditionally builds it's shared libraries.
9515 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'
9521 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)'
9522 hardcode_libdir_flag_spec='-L$libdir'
9523 hardcode_minus_L=yes
9524 # see comment about different semantics on the GNU ld section
9529 export_dynamic_flag_spec=-rdynamic
9532 cygwin* | mingw* | pw32*)
9533 # When not using gcc, we currently assume that we are using
9534 # Microsoft Visual C++.
9535 # hardcode_libdir_flag_spec is actually meaningless, as there is
9536 # no search path for DLLs.
9537 hardcode_libdir_flag_spec=' '
9538 allow_undefined_flag=unsupported
9539 # Tell ltmain to make .lib files, not .a files.
9541 # Tell ltmain to make .dll files, not .so files.
9543 # FIXME: Setting linknames here is a bad hack.
9544 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9545 # The linker will automatically build a .lib file if we build a DLL.
9546 old_archive_From_new_cmds='true'
9547 # FIXME: Should let the user specify the lib program.
9548 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9549 fix_srcfile_path='`cygpath -w "$srcfile"`'
9550 enable_shared_with_static_runtimes=yes
9553 darwin* | rhapsody*)
9555 rhapsody* | darwin1.[012])
9556 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9559 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9560 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9562 case ${MACOSX_DEPLOYMENT_TARGET} in
9564 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9567 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9573 archive_cmds_need_lc=no
9575 hardcode_automatic=yes
9576 hardcode_shlibpath_var=unsupported
9577 whole_archive_flag_spec=''
9578 link_all_deplibs=yes
9579 if test "$GCC" = yes ; then
9580 output_verbose_link_cmd='echo'
9581 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9582 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9584 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}'
9585 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}'
9587 case $cc_basename in
9589 output_verbose_link_cmd='echo'
9590 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9591 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9592 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9593 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}'
9594 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}'
9604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605 hardcode_libdir_flag_spec='-L$libdir'
9606 hardcode_shlibpath_var=no
9613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9614 # support. Future versions do this automatically, but an explicit c++rt0.o
9615 # does not break anything, and helps significantly (at the cost of a little
9618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9619 hardcode_libdir_flag_spec='-R$libdir'
9621 hardcode_shlibpath_var=no
9624 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_minus_L=yes
9629 hardcode_shlibpath_var=no
9632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9633 freebsd* | kfreebsd*-gnu | dragonfly*)
9634 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9635 hardcode_libdir_flag_spec='-R$libdir'
9637 hardcode_shlibpath_var=no
9641 if test "$GCC" = yes; then
9642 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'
9644 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'
9646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9647 hardcode_libdir_separator=:
9650 # hardcode_minus_L: Not really in the search PATH,
9651 # but as the default location of the library.
9652 hardcode_minus_L=yes
9653 export_dynamic_flag_spec='${wl}-E'
9657 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9660 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9676 if test "$with_gnu_ld" = no; then
9679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9680 hardcode_libdir_flag_spec_ld='+b $libdir'
9681 hardcode_libdir_separator=:
9683 hardcode_shlibpath_var=no
9686 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_shlibpath_var=no
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9696 hardcode_libdir_separator=:
9698 export_dynamic_flag_spec='${wl}-E'
9700 # hardcode_minus_L: Not really in the search PATH,
9701 # but as the default location of the library.
9702 hardcode_minus_L=yes
9708 irix5* | irix6* | nonstopux*)
9709 if test "$GCC" = yes; then
9710 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'
9712 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'
9713 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9716 hardcode_libdir_separator=:
9717 link_all_deplibs=yes
9721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9724 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9726 hardcode_libdir_flag_spec='-R$libdir'
9728 hardcode_shlibpath_var=no
9732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9735 hardcode_libdir_separator=:
9736 hardcode_shlibpath_var=no
9741 hardcode_shlibpath_var=no
9742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9743 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9745 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9746 export_dynamic_flag_spec='${wl}-E'
9749 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_libdir_flag_spec='-R$libdir'
9754 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9755 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_minus_L=yes
9764 allow_undefined_flag=unsupported
9765 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'
9766 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9770 if test "$GCC" = yes; then
9771 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9772 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'
9774 allow_undefined_flag=' -expect_unresolved \*'
9775 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'
9777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9778 hardcode_libdir_separator=:
9781 osf4* | osf5*) # as osf3* with the addition of -msym flag
9782 if test "$GCC" = yes; then
9783 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9784 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'
9785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9787 allow_undefined_flag=' -expect_unresolved \*'
9788 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'
9789 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9790 $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'
9792 # Both c and cxx compiler support -rpath directly
9793 hardcode_libdir_flag_spec='-rpath $libdir'
9795 hardcode_libdir_separator=:
9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800 hardcode_shlibpath_var=no
9801 export_dynamic_flag_spec='${wl}-Bexport'
9802 runpath_var=LD_RUN_PATH
9803 hardcode_runpath_var=yes
9807 no_undefined_flag=' -z text'
9808 if test "$GCC" = yes; then
9810 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9812 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9815 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9819 hardcode_libdir_flag_spec='-R$libdir'
9820 hardcode_shlibpath_var=no
9822 solaris2.[0-5] | solaris2.[0-5].*) ;;
9824 # The compiler driver will combine linker options so we
9825 # cannot just pass the convience library names through
9826 # without $wl, iff we do not link with $LD.
9827 # Luckily, gcc supports the same syntax we need for Sun Studio.
9828 # Supported since Solaris 2.6 (maybe 2.5.1?)
9831 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9833 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' ;;
9836 link_all_deplibs=yes
9840 if test "x$host_vendor" = xsequent; then
9841 # Use $CC to link under sequent, because it throws in some extra .o
9842 # files that make .init and .fini sections work.
9843 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9845 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_libdir_flag_spec='-L$libdir'
9849 hardcode_minus_L=yes
9850 hardcode_shlibpath_var=no
9854 case $host_vendor in
9856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_direct=yes # is this really true???
9860 ## LD is ld it makes a PLAMLIB
9861 ## CC just makes a GrossModule.
9862 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9863 reload_cmds='$CC -r -o $output$reload_objs'
9867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9871 runpath_var='LD_RUN_PATH'
9872 hardcode_shlibpath_var=no
9876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9877 hardcode_shlibpath_var=no
9878 export_dynamic_flag_spec='-Bexport'
9882 if test -d /usr/nec; then
9883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9884 hardcode_shlibpath_var=no
9885 runpath_var=LD_RUN_PATH
9886 hardcode_runpath_var=yes
9892 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_shlibpath_var=no
9896 hardcode_runpath_var=yes
9897 runpath_var=LD_RUN_PATH
9900 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9901 no_undefined_flag='${wl}-z ${wl}text'
9902 if test "$GCC" = yes; then
9903 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9907 runpath_var='LD_RUN_PATH'
9908 hardcode_shlibpath_var=no
9912 no_undefined_flag=' -z text'
9913 # $CC -shared without GNU ld will not create a library from C++
9914 # object files and a static libstdc++, better avoid it by now
9915 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9916 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9918 hardcode_libdir_flag_spec=
9919 hardcode_shlibpath_var=no
9920 runpath_var='LD_RUN_PATH'
9924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925 hardcode_libdir_flag_spec='-L$libdir'
9926 hardcode_shlibpath_var=no
9935 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9936 echo "${ECHO_T}$ld_shlibs" >&6
9937 test "$ld_shlibs" = no && can_build_shared=no
9939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9940 if test "$GCC" = yes; then
9941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9945 # Do we need to explicitly link libc?
9947 case "x$archive_cmds_need_lc" in
9949 # Assume -lc should be added
9950 archive_cmds_need_lc=yes
9952 if test "$enable_shared" = yes && test "$GCC" = yes; then
9953 case $archive_cmds in
9955 # FIXME: we may have to deal with multi-command sequences.
9958 # Test whether the compiler implicitly links with -lc since on some
9959 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9960 # to ld, don't add -lc before -lgcc.
9961 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9962 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9967 (eval $ac_compile) 2>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } 2>conftest.err; then
9973 libobjs=conftest.$ac_objext
9975 wl=$lt_prog_compiler_wl
9981 lt_save_allow_undefined_flag=$allow_undefined_flag
9982 allow_undefined_flag=
9983 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9984 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }
9989 archive_cmds_need_lc=no
9991 archive_cmds_need_lc=yes
9993 allow_undefined_flag=$lt_save_allow_undefined_flag
9995 cat conftest.err 1>&5
9998 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9999 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10006 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10007 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10008 library_names_spec=
10009 libname_spec='lib$name'
10013 postuninstall_cmds=
10017 shlibpath_overrides_runpath=unknown
10019 dynamic_linker="$host_os ld.so"
10020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10021 if test "$GCC" = yes; then
10022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10023 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10024 # if the path contains ";" then we assume it to be the separator
10025 # otherwise default to the standard path separator (i.e. ":") - it is
10026 # assumed that no part of a normal pathname contains ";" but that should
10027 # okay in the real world where ";" in dirpaths is itself problematic.
10028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10033 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10035 need_lib_prefix=unknown
10036 hardcode_into_libs=no
10038 # when you set need_version to no, make sure it does not cause -set_version
10039 # flags to be left without arguments
10040 need_version=unknown
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10046 shlibpath_var=LIBPATH
10048 # AIX 3 has no versioning support, so we append a major version to the name.
10049 soname_spec='${libname}${release}${shared_ext}$major'
10056 hardcode_into_libs=yes
10057 if test "$host_cpu" = ia64; then
10058 # AIX 5 supports IA64
10059 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10060 shlibpath_var=LD_LIBRARY_PATH
10062 # With GCC up to 2.95.x, collect2 would create an import file
10063 # for dependence libraries. The import file would start with
10064 # the line `#! .'. This would cause the generated library to
10065 # depend on `.', always an invalid library. This was fixed in
10066 # development snapshots of GCC prior to 3.0.
10068 aix4 | aix4.[01] | aix4.[01].*)
10069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10071 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10074 can_build_shared=no
10078 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10079 # soname into executable. Probably we can add versioning support to
10080 # collect2, so additional links can be useful in future.
10081 if test "$aix_use_runtimelinking" = yes; then
10082 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10083 # instead of lib<name>.a to let people know that these are not
10084 # typical AIX shared libraries.
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087 # We preserve .a as extension for shared libraries through AIX4.2
10088 # and later when we are not doing run time linking.
10089 library_names_spec='${libname}${release}.a $libname.a'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LIBPATH
10097 library_names_spec='$libname.ixlibrary $libname.a'
10098 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10099 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'
10103 library_names_spec='${libname}${shared_ext}'
10104 dynamic_linker="$host_os ld.so"
10105 shlibpath_var=LIBRARY_PATH
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10117 # the default ld.so.conf also contains /usr/contrib/lib and
10118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10119 # libtool to hard-code these into programs
10122 cygwin* | mingw* | pw32*)
10123 version_type=windows
10128 case $GCC,$host_os in
10129 yes,cygwin* | yes,mingw* | yes,pw32*)
10130 library_names_spec='$libname.dll.a'
10131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10132 postinstall_cmds='base_file=`basename \${file}`~
10133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10134 dldir=$destdir/`dirname \$dlpath`~
10135 test -d \$dldir || mkdir -p \$dldir~
10136 $install_prog $dir/$dlname \$dldir/$dlname'
10137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10138 dlpath=$dir/\$dldll~
10140 shlibpath_overrides_runpath=yes
10144 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10145 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10146 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10149 # MinGW DLLs use traditional 'lib' prefix
10150 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10151 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10152 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10153 # It is most probably a Windows format PATH printed by
10154 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10155 # path with ; separators, and with drive letters. We can handle the
10156 # drive letters (cygwin fileutils understands them), so leave them,
10157 # especially as we might pass files found there to a mingw objdump,
10158 # which wouldn't understand a cygwinified path. Ahh.
10159 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10161 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10165 # pw32 DLLs use 'pw' prefix rather than 'lib'
10166 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10175 dynamic_linker='Win32 ld.exe'
10176 # FIXME: first we should search . and the directory the executable is in
10180 darwin* | rhapsody*)
10181 dynamic_linker="$host_os dyld"
10182 version_type=darwin
10185 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10186 soname_spec='${libname}${release}${major}$shared_ext'
10187 shlibpath_overrides_runpath=yes
10188 shlibpath_var=DYLD_LIBRARY_PATH
10189 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10190 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10191 if test "$GCC" = yes; then
10192 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"`
10194 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10196 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 shlibpath_var=LD_LIBRARY_PATH
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=no
10220 hardcode_into_libs=yes
10221 dynamic_linker='GNU ld.so'
10224 freebsd* | dragonfly*)
10225 # DragonFly does not have aout. When/if they implement a new
10226 # versioning mechanism, adjust this.
10227 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10228 version_type=freebsd-$objformat
10229 case $version_type in
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10240 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=yes
10245 freebsd3.[01]* | freebsdelf3.[01]*)
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
10250 shlibpath_overrides_runpath=no
10251 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
10263 hardcode_into_libs=yes
10266 hpux9* | hpux10* | hpux11*)
10267 # Give a soname corresponding to the major version so that dld.sl refuses to
10268 # link against other versions.
10272 case "$host_cpu" in
10275 hardcode_into_libs=yes
10276 dynamic_linker="$host_os dld.so"
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 if test "X$HPUX_IA64_MODE" = X32; then
10282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10290 hardcode_into_libs=yes
10291 dynamic_linker="$host_os dld.sl"
10292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10301 dynamic_linker="$host_os dld.sl"
10302 shlibpath_var=SHLIB_PATH
10303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10308 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10309 postinstall_cmds='chmod 555 $lib'
10312 irix5* | irix6* | nonstopux*)
10314 nonstopux*) version_type=nonstopux ;;
10316 if test "$lt_cv_prog_gnu_ld" = yes; then
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10327 irix5* | nonstopux*)
10328 libsuff= shlibsuff=
10331 case $LD in # libtool.m4 will add one of these switches to LD
10332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10333 libsuff= shlibsuff= libmagic=32-bit;;
10334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10335 libsuff=32 shlibsuff=N32 libmagic=N32;;
10336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10338 *) libsuff= shlibsuff= libmagic=never-match;;
10342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10343 shlibpath_overrides_runpath=no
10344 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10345 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10346 hardcode_into_libs=yes
10349 # No shared lib support for Linux oldld, aout, or coff.
10350 linux*oldld* | linux*aout* | linux*coff*)
10354 # This must be Linux ELF.
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=no
10364 # This implies no fast_install, which is unacceptable.
10365 # Some rework will be needed to allow for fast_install
10366 # before this can be enabled.
10367 hardcode_into_libs=yes
10369 # Append ld.so.conf contents to the search path
10370 if test -f /etc/ld.so.conf; then
10371 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' ' '`
10372 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10375 # We used to test for /lib/ld.so.1 and disable shared libraries on
10376 # powerpc, because MkLinux only supported shared libraries with the
10377 # GNU dynamic linker. Since this was broken with cross compilers,
10378 # most powerpc-linux boxes support dynamic linking these days and
10379 # people can always --disable-shared, the test was removed, and we
10380 # assume the GNU/Linux dynamic linker is in use.
10381 dynamic_linker='GNU/Linux ld.so'
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 shlibpath_overrides_runpath=no
10392 hardcode_into_libs=yes
10393 dynamic_linker='GNU ld.so'
10400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10403 dynamic_linker='NetBSD (a.out) ld.so'
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 dynamic_linker='NetBSD ld.elf_so'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 shlibpath_overrides_runpath=yes
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=yes
10434 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10436 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10437 *) need_version=no ;;
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10444 openbsd2.[89] | openbsd2.[89].*)
10445 shlibpath_overrides_runpath=no
10448 shlibpath_overrides_runpath=yes
10452 shlibpath_overrides_runpath=yes
10457 libname_spec='$name'
10460 library_names_spec='$libname${shared_ext} $libname.a'
10461 dynamic_linker='OS/2 ld.exe'
10462 shlibpath_var=LIBPATH
10465 osf3* | osf4* | osf5*)
10469 soname_spec='${libname}${release}${shared_ext}$major'
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10473 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480 shlibpath_var=LD_LIBRARY_PATH
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 shlibpath_overrides_runpath=yes
10491 hardcode_into_libs=yes
10492 # ldd complains unless libraries are executable
10493 postinstall_cmds='chmod +x $lib'
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=yes
10502 if test "$with_gnu_ld" = yes; then
10508 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 case $host_vendor in
10515 shlibpath_overrides_runpath=no
10517 export_dynamic_flag_spec='${wl}-Blargedynsym'
10518 runpath_var=LD_RUN_PATH
10526 shlibpath_overrides_runpath=no
10527 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10533 if test -d /usr/nec ;then
10535 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10536 soname_spec='$libname${shared_ext}.$major'
10537 shlibpath_var=LD_LIBRARY_PATH
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LD_LIBRARY_PATH
10552 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10553 echo "${ECHO_T}$dynamic_linker" >&6
10554 test "$dynamic_linker" = no && can_build_shared=no
10556 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10557 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10559 if test -n "$hardcode_libdir_flag_spec" || \
10560 test -n "$runpath_var" || \
10561 test "X$hardcode_automatic" = "Xyes" ; then
10563 # We can hardcode non-existant directories.
10564 if test "$hardcode_direct" != no &&
10565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10566 # have to relink, otherwise we might link with an installed library
10567 # when we should be linking with a yet-to-be-installed one
10568 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10569 test "$hardcode_minus_L" != no; then
10570 # Linking always hardcodes the temporary library directory.
10571 hardcode_action=relink
10573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10574 hardcode_action=immediate
10577 # We cannot hardcode anything, or else we can only hardcode existing
10579 hardcode_action=unsupported
10581 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10582 echo "${ECHO_T}$hardcode_action" >&6
10584 if test "$hardcode_action" = relink; then
10585 # Fast installation is not supported
10586 enable_fast_install=no
10587 elif test "$shlibpath_overrides_runpath" = yes ||
10588 test "$enable_shared" = no; then
10589 # Fast installation is not necessary
10590 enable_fast_install=needless
10595 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10596 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10597 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10598 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10599 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10600 echo "$as_me:$LINENO: result: yes" >&5
10601 echo "${ECHO_T}yes" >&6
10603 # FIXME - insert some real tests, host_os isn't really good enough
10606 if test -n "$STRIP" ; then
10607 striplib="$STRIP -x"
10608 echo "$as_me:$LINENO: result: yes" >&5
10609 echo "${ECHO_T}yes" >&6
10611 echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6
10616 echo "$as_me:$LINENO: result: no" >&5
10617 echo "${ECHO_T}no" >&6
10622 if test "x$enable_dlopen" != xyes; then
10623 enable_dlopen=unknown
10624 enable_dlopen_self=unknown
10625 enable_dlopen_self_static=unknown
10632 lt_cv_dlopen="load_add_on"
10634 lt_cv_dlopen_self=yes
10638 lt_cv_dlopen="LoadLibrary"
10643 lt_cv_dlopen="dlopen"
10648 # if libdl is installed we need to link against it
10649 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10650 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 ac_check_lib_save_LIBS=$LIBS
10656 cat >conftest.$ac_ext <<_ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10663 /* Override any gcc2 internal prototype to avoid an error. */
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680 (eval $ac_link) 2>conftest.er1
10682 grep -v '^ *+' conftest.er1 >conftest.err
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } &&
10687 { ac_try='test -z "$ac_c_werror_flag"
10688 || test ! -s conftest.err'
10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; } &&
10694 { ac_try='test -s conftest$ac_exeext'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; }; then
10700 ac_cv_lib_dl_dlopen=yes
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ac_cv_lib_dl_dlopen=no
10707 rm -f conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10711 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10712 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10713 if test $ac_cv_lib_dl_dlopen = yes; then
10714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10717 lt_cv_dlopen="dyld"
10719 lt_cv_dlopen_self=yes
10726 echo "$as_me:$LINENO: checking for shl_load" >&5
10727 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10728 if test "${ac_cv_func_shl_load+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10739 #define shl_load innocuous_shl_load
10741 /* System header to define __stub macros and hopefully few prototypes,
10742 which can conflict with char shl_load (); below.
10743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744 <limits.h> exists even on freestanding compilers. */
10747 # include <limits.h>
10749 # include <assert.h>
10754 /* Override any gcc2 internal prototype to avoid an error. */
10759 /* We use char because int might match the return type of a gcc2
10760 builtin and then its argument prototype would still apply. */
10762 /* The GNU C library defines this for functions which it implements
10763 to always fail with ENOSYS. Some functions are actually named
10764 something starting with __ and the normal name is an alias. */
10765 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10768 char (*f) () = shl_load;
10777 return f != shl_load;
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784 (eval $ac_link) 2>conftest.er1
10786 grep -v '^ *+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } &&
10791 { ac_try='test -z "$ac_c_werror_flag"
10792 || test ! -s conftest.err'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest$ac_exeext'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ac_cv_func_shl_load=yes
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_cv_func_shl_load=no
10811 rm -f conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10814 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10815 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10816 if test $ac_cv_func_shl_load = yes; then
10817 lt_cv_dlopen="shl_load"
10819 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10820 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10821 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 ac_check_lib_save_LIBS=$LIBS
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10833 /* Override any gcc2 internal prototype to avoid an error. */
10837 /* We use char because int might match the return type of a gcc2
10838 builtin and then its argument prototype would still apply. */
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850 (eval $ac_link) 2>conftest.er1
10852 grep -v '^ *+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -z "$ac_c_werror_flag"
10858 || test ! -s conftest.err'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest$ac_exeext'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 ac_cv_lib_dld_shl_load=yes
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 ac_cv_lib_dld_shl_load=no
10877 rm -f conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10881 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10882 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10883 if test $ac_cv_lib_dld_shl_load = yes; then
10884 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10886 echo "$as_me:$LINENO: checking for dlopen" >&5
10887 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10888 if test "${ac_cv_func_dlopen+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 cat >conftest.$ac_ext <<_ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10899 #define dlopen innocuous_dlopen
10901 /* System header to define __stub macros and hopefully few prototypes,
10902 which can conflict with char dlopen (); below.
10903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10904 <limits.h> exists even on freestanding compilers. */
10907 # include <limits.h>
10909 # include <assert.h>
10914 /* Override any gcc2 internal prototype to avoid an error. */
10919 /* We use char because int might match the return type of a gcc2
10920 builtin and then its argument prototype would still apply. */
10922 /* The GNU C library defines this for functions which it implements
10923 to always fail with ENOSYS. Some functions are actually named
10924 something starting with __ and the normal name is an alias. */
10925 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10928 char (*f) () = dlopen;
10937 return f != dlopen;
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944 (eval $ac_link) 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest$ac_exeext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_func_dlopen=yes
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_cv_func_dlopen=no
10971 rm -f conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10974 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10975 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10976 if test $ac_cv_func_dlopen = yes; then
10977 lt_cv_dlopen="dlopen"
10979 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 ac_check_lib_save_LIBS=$LIBS
10986 cat >conftest.$ac_ext <<_ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10993 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010 (eval $ac_link) 2>conftest.er1
11012 grep -v '^ *+' conftest.er1 >conftest.err
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try='test -z "$ac_c_werror_flag"
11018 || test ! -s conftest.err'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest$ac_exeext'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_cv_lib_dl_dlopen=yes
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_cv_lib_dl_dlopen=no
11037 rm -f conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11041 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11043 if test $ac_cv_lib_dl_dlopen = yes; then
11044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11046 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 ac_check_lib_save_LIBS=$LIBS
11052 LIBS="-lsvld $LIBS"
11053 cat >conftest.$ac_ext <<_ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11060 /* Override any gcc2 internal prototype to avoid an error. */
11064 /* We use char because int might match the return type of a gcc2
11065 builtin and then its argument prototype would still apply. */
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077 (eval $ac_link) 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_lib_svld_dlopen=yes
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_cv_lib_svld_dlopen=no
11104 rm -f conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11108 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11109 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11110 if test $ac_cv_lib_svld_dlopen = yes; then
11111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11113 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11114 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11115 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 ac_check_lib_save_LIBS=$LIBS
11120 cat >conftest.$ac_ext <<_ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11127 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11142 rm -f conftest.$ac_objext conftest$ac_exeext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11144 (eval $ac_link) 2>conftest.er1
11146 grep -v '^ *+' conftest.er1 >conftest.err
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -z "$ac_c_werror_flag"
11152 || test ! -s conftest.err'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest$ac_exeext'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; }; then
11164 ac_cv_lib_dld_dld_link=yes
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11169 ac_cv_lib_dld_dld_link=no
11171 rm -f conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11175 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11176 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11177 if test $ac_cv_lib_dld_dld_link = yes; then
11178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11199 if test "x$lt_cv_dlopen" != xno; then
11205 case $lt_cv_dlopen in
11207 save_CPPFLAGS="$CPPFLAGS"
11208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11210 save_LDFLAGS="$LDFLAGS"
11211 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11214 LIBS="$lt_cv_dlopen_libs $LIBS"
11216 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11217 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11218 if test "${lt_cv_dlopen_self+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self=cross
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11242 # define LT_DLGLOBAL 0
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11261 # define LT_DLLAZY_OR_NOW 0
11269 extern "C" void exit (int);
11272 void fnord() { int i=42;}
11275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11276 int status = $lt_dlunknown;
11280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11281 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11282 /* dlclose (self); */
11288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11293 (./conftest; exit; ) 2>/dev/null
11295 case x$lt_status in
11296 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11297 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11298 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11301 # compilation failed
11302 lt_cv_dlopen_self=no
11309 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11310 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11312 if test "x$lt_cv_dlopen_self" = xyes; then
11313 LDFLAGS="$LDFLAGS $link_static_flag"
11314 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11315 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11316 if test "${lt_cv_dlopen_self_static+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 if test "$cross_compiling" = yes; then :
11320 lt_cv_dlopen_self_static=cross
11322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11323 lt_status=$lt_dlunknown
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11325 "configure"
11326 #include "confdefs.h"
11335 # define LT_DLGLOBAL RTLD_GLOBAL
11338 # define LT_DLGLOBAL DL_GLOBAL
11340 # define LT_DLGLOBAL 0
11344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11345 find out it does not work in some platform. */
11346 #ifndef LT_DLLAZY_OR_NOW
11348 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11351 # define LT_DLLAZY_OR_NOW DL_LAZY
11354 # define LT_DLLAZY_OR_NOW RTLD_NOW
11357 # define LT_DLLAZY_OR_NOW DL_NOW
11359 # define LT_DLLAZY_OR_NOW 0
11367 extern "C" void exit (int);
11370 void fnord() { int i=42;}
11373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11374 int status = $lt_dlunknown;
11378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11379 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11380 /* dlclose (self); */
11386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387 (eval $ac_link) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11391 (./conftest; exit; ) 2>/dev/null
11393 case x$lt_status in
11394 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11395 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11396 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11399 # compilation failed
11400 lt_cv_dlopen_self_static=no
11407 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11408 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11411 CPPFLAGS="$save_CPPFLAGS"
11412 LDFLAGS="$save_LDFLAGS"
11417 case $lt_cv_dlopen_self in
11418 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11419 *) enable_dlopen_self=unknown ;;
11422 case $lt_cv_dlopen_self_static in
11423 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11424 *) enable_dlopen_self_static=unknown ;;
11429 # Report which librarie types wil actually be built
11430 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11431 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11432 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11433 echo "${ECHO_T}$can_build_shared" >&6
11435 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11436 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11437 test "$can_build_shared" = "no" && enable_shared=no
11439 # On AIX, shared libraries and static libraries use the same namespace, and
11440 # are all built from PIC.
11443 test "$enable_shared" = yes && enable_static=no
11444 if test -n "$RANLIB"; then
11445 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11446 postinstall_cmds='$RANLIB $lib'
11451 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11452 test "$enable_shared" = yes && enable_static=no
11456 echo "$as_me:$LINENO: result: $enable_shared" >&5
11457 echo "${ECHO_T}$enable_shared" >&6
11459 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11460 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11461 # Make sure either enable_shared or enable_static is yes.
11462 test "$enable_shared" = yes || enable_static=yes
11463 echo "$as_me:$LINENO: result: $enable_static" >&5
11464 echo "${ECHO_T}$enable_static" >&6
11466 # The else clause should only fire when bootstrapping the
11467 # libtool distribution, otherwise you forgot to ship ltmain.sh
11468 # with your package, and you will get complaints that there are
11469 # no rules to generate ltmain.sh.
11470 if test -f "$ltmain"; then
11471 # See if we are running on zsh, and set the options which allow our commands through
11472 # without removal of \ escapes.
11473 if test -n "${ZSH_VERSION+set}" ; then
11474 setopt NO_GLOB_SUBST
11476 # Now quote all the things that may contain metacharacters while being
11477 # careful not to overquote the AC_SUBSTed values. We take copies of the
11478 # variables and quote the copies for generation of the libtool script.
11479 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11481 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11482 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11483 deplibs_check_method reload_flag reload_cmds need_locks \
11484 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11485 lt_cv_sys_global_symbol_to_c_name_address \
11486 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11487 old_postinstall_cmds old_postuninstall_cmds \
11491 lt_prog_compiler_wl \
11492 lt_prog_compiler_pic \
11493 lt_prog_compiler_static \
11494 lt_prog_compiler_no_builtin_flag \
11495 export_dynamic_flag_spec \
11496 thread_safe_flag_spec \
11497 whole_archive_flag_spec \
11498 enable_shared_with_static_runtimes \
11500 old_archive_from_new_cmds \
11505 compiler_lib_search_path \
11507 archive_expsym_cmds \
11509 postuninstall_cmds \
11510 old_archive_from_expsyms_cmds \
11511 allow_undefined_flag \
11512 no_undefined_flag \
11513 export_symbols_cmds \
11514 hardcode_libdir_flag_spec \
11515 hardcode_libdir_flag_spec_ld \
11516 hardcode_libdir_separator \
11517 hardcode_automatic \
11519 module_expsym_cmds \
11520 lt_cv_prog_compiler_c_o \
11522 include_expsyms; do
11525 old_archive_cmds | \
11526 old_archive_from_new_cmds | \
11528 archive_expsym_cmds | \
11530 module_expsym_cmds | \
11531 old_archive_from_expsyms_cmds | \
11532 export_symbols_cmds | \
11533 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11534 postinstall_cmds | postuninstall_cmds | \
11535 old_postinstall_cmds | old_postuninstall_cmds | \
11536 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11537 # Double-quote double-evaled strings.
11538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11541 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11547 *'\$0 --fallback-echo"')
11548 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11552 cfgfile="${ofile}T"
11553 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11555 { echo "$as_me:$LINENO: creating $ofile" >&5
11556 echo "$as_me: creating $ofile" >&6;}
11558 cat <<__EOF__ >> "$cfgfile"
11561 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11562 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11566 # Free Software Foundation, Inc.
11568 # This file is part of GNU Libtool:
11569 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11571 # This program is free software; you can redistribute it and/or modify
11572 # it under the terms of the GNU General Public License as published by
11573 # the Free Software Foundation; either version 2 of the License, or
11574 # (at your option) any later version.
11576 # This program is distributed in the hope that it will be useful, but
11577 # WITHOUT ANY WARRANTY; without even the implied warranty of
11578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11579 # General Public License for more details.
11581 # You should have received a copy of the GNU General Public License
11582 # along with this program; if not, write to the Free Software
11583 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11585 # As a special exception to the GNU General Public License, if you
11586 # distribute this file as part of a program that contains a
11587 # configuration script generated by Autoconf, you may include it under
11588 # the same distribution terms that you use for the rest of that program.
11590 # A sed program that does not truncate output.
11593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11594 Xsed="$SED -e 1s/^X//"
11596 # The HP-UX ksh and POSIX shell print the target directory to stdout
11597 # if CDPATH is set.
11598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11600 # The names of the tagged configurations supported by this script.
11603 # ### BEGIN LIBTOOL CONFIG
11605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11607 # Shell to use when invoking shell scripts.
11610 # Whether or not to build shared libraries.
11611 build_libtool_libs=$enable_shared
11613 # Whether or not to build static libraries.
11614 build_old_libs=$enable_static
11616 # Whether or not to add -lc for building shared libraries.
11617 build_libtool_need_lc=$archive_cmds_need_lc
11619 # Whether or not to disallow shared libs when runtime libs are static
11620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11622 # Whether or not to optimize for fast installation.
11623 fast_install=$enable_fast_install
11626 host_alias=$host_alias
11630 # The build system.
11631 build_alias=$build_alias
11635 # An echo program that does not interpret backslashes.
11640 AR_FLAGS=$lt_AR_FLAGS
11645 # A language-specific compiler.
11648 # Is the compiler the GNU C compiler?
11654 # The linker used to build libraries.
11657 # Whether we need hard or soft links.
11660 # A BSD-compatible nm program.
11663 # A symbol stripping program
11666 # Used to examine libraries when file_magic_cmd begins "file"
11667 MAGIC_CMD=$MAGIC_CMD
11669 # Used on cygwin: DLL creation program.
11672 # Used on cygwin: object dumper.
11675 # Used on cygwin: assembler.
11678 # The name of the directory that contains temporary libtool files.
11681 # How to create reloadable object files.
11682 reload_flag=$lt_reload_flag
11683 reload_cmds=$lt_reload_cmds
11685 # How to pass a linker flag through the compiler.
11686 wl=$lt_lt_prog_compiler_wl
11688 # Object file suffix (normally "o").
11689 objext="$ac_objext"
11691 # Old archive suffix (normally "a").
11694 # Shared library suffix (normally ".so").
11695 shrext_cmds='$shrext_cmds'
11697 # Executable file suffix (normally "").
11700 # Additional compiler flags for building library objects.
11701 pic_flag=$lt_lt_prog_compiler_pic
11704 # What is the maximum length of a command?
11705 max_cmd_len=$lt_cv_sys_max_cmd_len
11707 # Does compiler simultaneously support -c and -o options?
11708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11710 # Must we lock files when doing compilation?
11711 need_locks=$lt_need_locks
11713 # Do we need the lib prefix for modules?
11714 need_lib_prefix=$need_lib_prefix
11716 # Do we need a version for libraries?
11717 need_version=$need_version
11719 # Whether dlopen is supported.
11720 dlopen_support=$enable_dlopen
11722 # Whether dlopen of programs is supported.
11723 dlopen_self=$enable_dlopen_self
11725 # Whether dlopen of statically linked programs is supported.
11726 dlopen_self_static=$enable_dlopen_self_static
11728 # Compiler flag to prevent dynamic linking.
11729 link_static_flag=$lt_lt_prog_compiler_static
11731 # Compiler flag to turn off builtin functions.
11732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11734 # Compiler flag to allow reflexive dlopens.
11735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11737 # Compiler flag to generate shared objects directly from archives.
11738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11740 # Compiler flag to generate thread-safe objects.
11741 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11743 # Library versioning type.
11744 version_type=$version_type
11746 # Format of library name prefix.
11747 libname_spec=$lt_libname_spec
11749 # List of archive names. First name is the real one, the rest are links.
11750 # The last name is the one that the linker finds with -lNAME.
11751 library_names_spec=$lt_library_names_spec
11753 # The coded name of the library, if different from the real name.
11754 soname_spec=$lt_soname_spec
11756 # Commands used to build and install an old-style archive.
11758 old_archive_cmds=$lt_old_archive_cmds
11759 old_postinstall_cmds=$lt_old_postinstall_cmds
11760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11762 # Create an old-style archive from a shared archive.
11763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11765 # Create a temporary old-style archive to link instead of a shared archive.
11766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11768 # Commands used to build and install a shared archive.
11769 archive_cmds=$lt_archive_cmds
11770 archive_expsym_cmds=$lt_archive_expsym_cmds
11771 postinstall_cmds=$lt_postinstall_cmds
11772 postuninstall_cmds=$lt_postuninstall_cmds
11774 # Commands used to build a loadable module (assumed same as above if empty)
11775 module_cmds=$lt_module_cmds
11776 module_expsym_cmds=$lt_module_expsym_cmds
11778 # Commands to strip libraries.
11779 old_striplib=$lt_old_striplib
11780 striplib=$lt_striplib
11782 # Dependencies to place before the objects being linked to create a
11784 predep_objects=$lt_predep_objects
11786 # Dependencies to place after the objects being linked to create a
11788 postdep_objects=$lt_postdep_objects
11790 # Dependencies to place before the objects being linked to create a
11792 predeps=$lt_predeps
11794 # Dependencies to place after the objects being linked to create a
11796 postdeps=$lt_postdeps
11798 # The library search path used internally by the compiler when linking
11799 # a shared library.
11800 compiler_lib_search_path=$lt_compiler_lib_search_path
11802 # Method to check whether dependent libraries are shared objects.
11803 deplibs_check_method=$lt_deplibs_check_method
11805 # Command to use when deplibs_check_method == file_magic.
11806 file_magic_cmd=$lt_file_magic_cmd
11808 # Flag that allows shared libraries with undefined symbols to be built.
11809 allow_undefined_flag=$lt_allow_undefined_flag
11811 # Flag that forces no undefined symbols.
11812 no_undefined_flag=$lt_no_undefined_flag
11814 # Commands used to finish a libtool library installation in a directory.
11815 finish_cmds=$lt_finish_cmds
11817 # Same as above, but a single script fragment to be evaled but not shown.
11818 finish_eval=$lt_finish_eval
11820 # Take the output of nm and produce a listing of raw symbols and C names.
11821 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11823 # Transform the output of nm in a proper C declaration
11824 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11826 # Transform the output of nm in a C name address pair
11827 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11829 # This is the shared library runtime path variable.
11830 runpath_var=$runpath_var
11832 # This is the shared library path variable.
11833 shlibpath_var=$shlibpath_var
11835 # Is shlibpath searched before the hard-coded library search path?
11836 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11838 # How to hardcode a shared library path into an executable.
11839 hardcode_action=$hardcode_action
11841 # Whether we should hardcode library paths into libraries.
11842 hardcode_into_libs=$hardcode_into_libs
11844 # Flag to hardcode \$libdir into a binary during linking.
11845 # This must work even if \$libdir does not exist.
11846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11848 # If ld is used when linking, flag to hardcode \$libdir into
11849 # a binary during linking. This must work even if \$libdir does
11851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11853 # Whether we need a single -rpath flag with a separated argument.
11854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11856 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11857 # resulting binary.
11858 hardcode_direct=$hardcode_direct
11860 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11861 # resulting binary.
11862 hardcode_minus_L=$hardcode_minus_L
11864 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11865 # the resulting binary.
11866 hardcode_shlibpath_var=$hardcode_shlibpath_var
11868 # Set to yes if building a shared library automatically hardcodes DIR into the library
11869 # and all subsequent libraries and executables linked against it.
11870 hardcode_automatic=$hardcode_automatic
11872 # Variables whose values should be saved in libtool wrapper scripts and
11873 # restored at relink time.
11874 variables_saved_for_relink="$variables_saved_for_relink"
11876 # Whether libtool must link a program against all its dependency libraries.
11877 link_all_deplibs=$link_all_deplibs
11879 # Compile-time system search path for libraries
11880 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11882 # Run-time system search path for libraries
11883 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11885 # Fix the shell variable \$srcfile for the compiler.
11886 fix_srcfile_path="$fix_srcfile_path"
11888 # Set to yes if exported symbols are required.
11889 always_export_symbols=$always_export_symbols
11891 # The commands to list exported symbols.
11892 export_symbols_cmds=$lt_export_symbols_cmds
11894 # The commands to extract the exported symbol list from a shared archive.
11895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11897 # Symbols that should not be listed in the preloaded symbols.
11898 exclude_expsyms=$lt_exclude_expsyms
11900 # Symbols that must always be exported.
11901 include_expsyms=$lt_include_expsyms
11903 # ### END LIBTOOL CONFIG
11910 cat <<\EOF >> "$cfgfile"
11912 # AIX sometimes has problems with the GCC collect2 program. For some
11913 # reason, if we set the COLLECT_NAMES environment variable, the problems
11914 # vanish in a puff of smoke.
11915 if test "X${COLLECT_NAMES+set}" != Xset; then
11917 export COLLECT_NAMES
11923 # We use sed instead of cat because bash on DJGPP gets confused if
11924 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11925 # text mode, it properly converts lines to CR/LF. This bash problem
11926 # is reportedly fixed, but why not run on old versions too?
11927 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11929 mv -f "$cfgfile" "$ofile" || \
11930 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11934 # If there is no Makefile yet, we rely on a make rule to execute
11935 # `config.status --recheck' to rerun these tests and create the
11936 # libtool script then.
11937 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11938 if test -f "$ltmain_in"; then
11939 test -f Makefile && make "$ltmain"
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11953 # Check whether --with-tags or --without-tags was given.
11954 if test "${with_tags+set}" = set; then
11955 withval="$with_tags"
11956 tagnames="$withval"
11959 if test -f "$ltmain" && test -n "$tagnames"; then
11960 if test ! -f "${ofile}"; then
11961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11962 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11965 if test -z "$LTCC"; then
11966 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11967 if test -z "$LTCC"; then
11968 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11969 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11972 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11976 # Extract list of available tagged configurations in $ofile.
11977 # Note that this assumes the entire list is on one line.
11978 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11981 for tagname in $tagnames; do
11983 # Check whether tagname contains only valid characters
11984 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11986 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11987 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11988 { (exit 1); exit 1; }; }
11992 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11994 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11995 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11996 { (exit 1); exit 1; }; }
11999 # Update the list of available tags.
12000 if test -n "$tagname"; then
12001 echo appending configuration tag \"$tagname\" to $ofile
12005 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12006 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12007 (test "X$CXX" != "Xg++"))) ; then
12009 ac_cpp='$CXXCPP $CPPFLAGS'
12010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12017 archive_cmds_need_lc_CXX=no
12018 allow_undefined_flag_CXX=
12019 always_export_symbols_CXX=no
12020 archive_expsym_cmds_CXX=
12021 export_dynamic_flag_spec_CXX=
12022 hardcode_direct_CXX=no
12023 hardcode_libdir_flag_spec_CXX=
12024 hardcode_libdir_flag_spec_ld_CXX=
12025 hardcode_libdir_separator_CXX=
12026 hardcode_minus_L_CXX=no
12027 hardcode_automatic_CXX=no
12029 module_expsym_cmds_CXX=
12030 link_all_deplibs_CXX=unknown
12031 old_archive_cmds_CXX=$old_archive_cmds
12032 no_undefined_flag_CXX=
12033 whole_archive_flag_spec_CXX=
12034 enable_shared_with_static_runtimes_CXX=no
12036 # Dependencies to place before and after the object being linked:
12037 predep_objects_CXX=
12038 postdep_objects_CXX=
12041 compiler_lib_search_path_CXX=
12043 # Source file extension for C++ test sources.
12046 # Object file extension for compiled C++ test sources.
12050 # Code to be used in simple compile tests
12051 lt_simple_compile_test_code="int some_variable = 0;\n"
12053 # Code to be used in simple link tests
12054 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12058 # If no C compiler was specified, use CC.
12061 # Allow CC to be a program name with arguments.
12065 # save warnings/boilerplate of simple test code
12066 ac_outfile=conftest.$ac_objext
12067 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12069 _lt_compiler_boilerplate=`cat conftest.err`
12072 ac_outfile=conftest.$ac_objext
12073 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12075 _lt_linker_boilerplate=`cat conftest.err`
12079 # Allow CC to be a program name with arguments.
12084 lt_save_with_gnu_ld=$with_gnu_ld
12085 lt_save_path_LD=$lt_cv_path_LD
12086 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12087 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12089 unset lt_cv_prog_gnu_ld
12091 if test -n "${lt_cv_path_LDCXX+set}"; then
12092 lt_cv_path_LD=$lt_cv_path_LDCXX
12094 unset lt_cv_path_LD
12096 test -z "${LDCXX+set}" || LD=$LDCXX
12100 for cc_temp in $compiler""; do
12102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12111 # We don't want -fno-exception wen compiling C++ code, so set the
12112 # no_builtin_flag separately
12113 if test "$GXX" = yes; then
12114 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12116 lt_prog_compiler_no_builtin_flag_CXX=
12119 if test "$GXX" = yes; then
12120 # Set up default GNU C++ configuration
12123 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12124 if test "${with_gnu_ld+set}" = set; then
12125 withval="$with_gnu_ld"
12126 test "$withval" = no || with_gnu_ld=yes
12131 if test "$GCC" = yes; then
12132 # Check if gcc -print-prog-name=ld gives a path.
12133 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12137 # gcc leaves a trailing carriage return which upsets mingw
12138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12143 # Accept absolute paths.
12145 re_direlt='/[^/][^/]*/\.\./'
12146 # Canonicalize the pathname of ld
12147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12151 test -z "$LD" && LD="$ac_prog"
12154 # If it fails, then pretend we aren't using GCC.
12158 # If it is relative, then search for the first ld in PATH.
12159 with_gnu_ld=unknown
12162 elif test "$with_gnu_ld" = yes; then
12163 echo "$as_me:$LINENO: checking for GNU ld" >&5
12164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12166 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12169 if test "${lt_cv_path_LD+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 if test -z "$LD"; then
12173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12174 for ac_dir in $PATH; do
12176 test -z "$ac_dir" && ac_dir=.
12177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12178 lt_cv_path_LD="$ac_dir/$ac_prog"
12179 # Check to see if the program is GNU ld. I'd rather use --version,
12180 # but apparently some GNU ld's only accept -v.
12181 # Break only if it was the GNU/non-GNU ld that we prefer.
12182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12183 *GNU* | *'with BFD'*)
12184 test "$with_gnu_ld" != no && break
12187 test "$with_gnu_ld" != yes && break
12194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12198 LD="$lt_cv_path_LD"
12199 if test -n "$LD"; then
12200 echo "$as_me:$LINENO: result: $LD" >&5
12201 echo "${ECHO_T}$LD" >&6
12203 echo "$as_me:$LINENO: result: no" >&5
12204 echo "${ECHO_T}no" >&6
12206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12208 { (exit 1); exit 1; }; }
12209 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12215 case `$LD -v 2>&1 </dev/null` in
12216 *GNU* | *'with BFD'*)
12217 lt_cv_prog_gnu_ld=yes
12220 lt_cv_prog_gnu_ld=no
12224 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12226 with_gnu_ld=$lt_cv_prog_gnu_ld
12230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12231 # archiving commands below assume that GNU ld is being used.
12232 if test "$with_gnu_ld" = yes; then
12233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12234 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'
12236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12239 # If archive_cmds runs LD, not CC, wlarc should be empty
12240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12241 # investigate it a little bit more. (MM)
12244 # ancient GNU ld didn't support --whole-archive et. al.
12245 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12246 grep 'no-whole-archive' > /dev/null; then
12247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12249 whole_archive_flag_spec_CXX=
12255 # A generic and very simple default shared library creation
12256 # command for GNU C++ for the case where it uses the native
12257 # linker, instead of GNU ld. If possible, this setting should
12258 # overridden to take advantage of the native linker features on
12259 # the platform it is being used on.
12260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12263 # Commands to make compiler produce verbose output that lists
12264 # what "hidden" libraries, object files and flags are used when
12265 # linking a shared library.
12266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12274 # PORTME: fill in a description of your system's C++ link characteristics
12275 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12280 # FIXME: insert proper C++ library support
12284 if test "$host_cpu" = ia64; then
12285 # On IA64, the linker does run time linking by default, so we don't
12286 # have to do anything special.
12287 aix_use_runtimelinking=no
12288 exp_sym_flag='-Bexport'
12291 aix_use_runtimelinking=no
12293 # Test if we are trying to use run time linking or normal
12294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12295 # need to do runtime linking.
12296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12297 for ld_flag in $LDFLAGS; do
12300 aix_use_runtimelinking=yes
12307 exp_sym_flag='-bexport'
12308 no_entry_flag='-bnoentry'
12311 # When large executables or shared objects are built, AIX ld can
12312 # have problems creating the table of contents. If linking a library
12313 # or program results in "error TOC overflow" add -mminimal-toc to
12314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12317 archive_cmds_CXX=''
12318 hardcode_direct_CXX=yes
12319 hardcode_libdir_separator_CXX=':'
12320 link_all_deplibs_CXX=yes
12322 if test "$GXX" = yes; then
12323 case $host_os in aix4.[012]|aix4.[012].*)
12324 # We only want to do this on AIX 4.2 and lower, the check
12325 # below for broken collect2 doesn't work under 4.3+
12326 collect2name=`${CC} -print-prog-name=collect2`
12327 if test -f "$collect2name" && \
12328 strings "$collect2name" | grep resolve_lib_name >/dev/null
12330 # We have reworked collect2
12331 hardcode_direct_CXX=yes
12333 # We have old collect2
12334 hardcode_direct_CXX=unsupported
12335 # It fails to find uninstalled libraries when the uninstalled
12336 # path is not listed in the libpath. Setting hardcode_minus_L
12337 # to unsupported forces relinking
12338 hardcode_minus_L_CXX=yes
12339 hardcode_libdir_flag_spec_CXX='-L$libdir'
12340 hardcode_libdir_separator_CXX=
12343 shared_flag='-shared'
12344 if test "$aix_use_runtimelinking" = yes; then
12345 shared_flag="$shared_flag "'${wl}-G'
12349 if test "$host_cpu" = ia64; then
12350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12351 # chokes on -Wl,-G. The following line is correct:
12354 if test "$aix_use_runtimelinking" = yes; then
12355 shared_flag='${wl}-G'
12357 shared_flag='${wl}-bM:SRE'
12362 # It seems that -bexpall does not export symbols beginning with
12363 # underscore (_), so it is better to generate a list of symbols to export.
12364 always_export_symbols_CXX=yes
12365 if test "$aix_use_runtimelinking" = yes; then
12366 # Warning - without using the other runtime loading flags (-brtl),
12367 # -berok will link without error, but may produce a broken library.
12368 allow_undefined_flag_CXX='-berok'
12369 # Determine the default libpath from the value encoded in an empty executable.
12370 cat >conftest.$ac_ext <<_ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12387 (eval $ac_link) 2>conftest.er1
12389 grep -v '^ *+' conftest.er1 >conftest.err
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -z "$ac_cxx_werror_flag"
12395 || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest$ac_exeext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12410 # Check for a 64-bit object if we didn't find anything.
12411 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; }
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12418 rm -f conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12422 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12424 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"
12426 if test "$host_cpu" = ia64; then
12427 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12428 allow_undefined_flag_CXX="-z nodefs"
12429 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"
12431 # Determine the default libpath from the value encoded in an empty executable.
12432 cat >conftest.$ac_ext <<_ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449 (eval $ac_link) 2>conftest.er1
12451 grep -v '^ *+' conftest.er1 >conftest.err
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try='test -z "$ac_cxx_werror_flag"
12457 || test ! -s conftest.err'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest$ac_exeext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12472 # Check for a 64-bit object if we didn't find anything.
12473 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; }
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12480 rm -f conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12485 # Warning - without using the other run time loading flags,
12486 # -berok will link without error, but may produce a broken library.
12487 no_undefined_flag_CXX=' ${wl}-bernotok'
12488 allow_undefined_flag_CXX=' ${wl}-berok'
12489 # -bexpall does not export symbols beginning with underscore (_)
12490 always_export_symbols_CXX=yes
12491 # Exported symbols can be pulled into shared objects from archives
12492 whole_archive_flag_spec_CXX=' '
12493 archive_cmds_need_lc_CXX=yes
12494 # This is similar to how AIX traditionally builds it's shared libraries.
12495 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'
12500 case $cc_basename in
12502 # FIXME: insert proper C++ library support
12509 cygwin* | mingw* | pw32*)
12510 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12511 # as there is no search path for DLLs.
12512 hardcode_libdir_flag_spec_CXX='-L$libdir'
12513 allow_undefined_flag_CXX=unsupported
12514 always_export_symbols_CXX=no
12515 enable_shared_with_static_runtimes_CXX=yes
12517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12518 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'
12519 # If the export-symbols file already is a .def file (1st line
12520 # is EXPORTS), use it as is; otherwise, prepend...
12521 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12522 cp $export_symbols $output_objdir/$soname.def;
12524 echo EXPORTS > $output_objdir/$soname.def;
12525 cat $export_symbols >> $output_objdir/$soname.def;
12527 $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'
12532 darwin* | rhapsody*)
12534 rhapsody* | darwin1.[012])
12535 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12538 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12539 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12541 case ${MACOSX_DEPLOYMENT_TARGET} in
12543 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12546 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12552 archive_cmds_need_lc_CXX=no
12553 hardcode_direct_CXX=no
12554 hardcode_automatic_CXX=yes
12555 hardcode_shlibpath_var_CXX=unsupported
12556 whole_archive_flag_spec_CXX=''
12557 link_all_deplibs_CXX=yes
12559 if test "$GXX" = yes ; then
12560 lt_int_apple_cc_single_mod=no
12561 output_verbose_link_cmd='echo'
12562 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12563 lt_int_apple_cc_single_mod=yes
12565 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12566 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12568 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'
12570 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12571 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12572 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12573 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}'
12575 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}'
12577 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}'
12579 case $cc_basename in
12581 output_verbose_link_cmd='echo'
12582 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'
12583 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12585 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}'
12586 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}'
12596 case $cc_basename in
12598 # FIXME: insert proper C++ library support
12602 # Green Hills C++ Compiler
12603 # FIXME: insert proper C++ library support
12607 # FIXME: insert proper C++ library support
12613 # C++ shared libraries reported to be fairly broken before switch to ELF
12617 archive_cmds_need_lc_CXX=no
12619 freebsd* | kfreebsd*-gnu | dragonfly*)
12620 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12627 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12628 hardcode_libdir_separator_CXX=:
12629 export_dynamic_flag_spec_CXX='${wl}-E'
12630 hardcode_direct_CXX=yes
12631 hardcode_minus_L_CXX=yes # Not in the search PATH,
12632 # but as the default
12633 # location of the library.
12635 case $cc_basename in
12637 # FIXME: insert proper C++ library support
12641 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'
12642 # Commands to make compiler produce verbose output that lists
12643 # what "hidden" libraries, object files and flags are used when
12644 # linking a shared library.
12646 # There doesn't appear to be a way to prevent this compiler from
12647 # explicitly linking system object files so we need to strip them
12648 # from the output so that they don't get included in the library
12650 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'
12653 if test "$GXX" = yes; then
12654 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'
12656 # FIXME: insert proper C++ library support
12663 if test $with_gnu_ld = no; then
12664 case "$host_cpu" in
12666 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12667 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12668 hardcode_libdir_separator_CXX=:
12671 hardcode_libdir_flag_spec_CXX='-L$libdir'
12674 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12675 hardcode_libdir_separator_CXX=:
12676 export_dynamic_flag_spec_CXX='${wl}-E'
12680 case "$host_cpu" in
12682 hardcode_direct_CXX=no
12683 hardcode_shlibpath_var_CXX=no
12686 hardcode_direct_CXX=no
12687 hardcode_shlibpath_var_CXX=no
12688 hardcode_minus_L_CXX=yes # Not in the search PATH,
12689 # but as the default
12690 # location of the library.
12693 hardcode_direct_CXX=yes
12694 hardcode_minus_L_CXX=yes # Not in the search PATH,
12695 # but as the default
12696 # location of the library.
12700 case $cc_basename in
12702 # FIXME: insert proper C++ library support
12706 case "$host_cpu" in
12708 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12711 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12714 # Commands to make compiler produce verbose output that lists
12715 # what "hidden" libraries, object files and flags are used when
12716 # linking a shared library.
12718 # There doesn't appear to be a way to prevent this compiler from
12719 # explicitly linking system object files so we need to strip them
12720 # from the output so that they don't get included in the library
12722 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'
12725 if test "$GXX" = yes; then
12726 if test $with_gnu_ld = no; then
12727 case "$host_cpu" in
12729 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12732 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'
12737 # FIXME: insert proper C++ library support
12744 case $cc_basename in
12747 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'
12749 # Archives containing C++ object files must be created using
12750 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12751 # necessary to make sure instantiated templates are included
12753 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12756 if test "$GXX" = yes; then
12757 if test "$with_gnu_ld" = no; then
12758 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'
12760 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'
12763 link_all_deplibs_CXX=yes
12766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12767 hardcode_libdir_separator_CXX=:
12770 case $cc_basename in
12772 # Kuck and Associates, Inc. (KAI) C++ Compiler
12774 # KCC will only create a shared library if the output file
12775 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12776 # to its proper name (with version) after linking.
12777 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'
12778 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'
12779 # Commands to make compiler produce verbose output that lists
12780 # what "hidden" libraries, object files and flags are used when
12781 # linking a shared library.
12783 # There doesn't appear to be a way to prevent this compiler from
12784 # explicitly linking system object files so we need to strip them
12785 # from the output so that they don't get included in the library
12787 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'
12789 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12792 # Archives containing C++ object files must be created using
12793 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12794 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12799 # version 8.0 and above of icpc choke on multiply defined symbols
12800 # if we add $predep_objects and $postdep_objects, however 7.1 and
12801 # earlier do not add the objects themselves.
12802 case `$CC -V 2>&1` in
12804 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12805 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'
12807 *) # Version 8.0 or newer
12810 ia64*) tmp_idyn=' -i_dynamic';;
12812 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813 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'
12816 archive_cmds_need_lc_CXX=no
12817 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12818 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12819 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12822 # Portland Group C++ compiler
12823 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12824 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'
12826 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12828 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'
12832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 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'
12835 runpath_var=LD_RUN_PATH
12836 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12837 hardcode_libdir_separator_CXX=:
12839 # Commands to make compiler produce verbose output that lists
12840 # what "hidden" libraries, object files and flags are used when
12841 # linking a shared library.
12843 # There doesn't appear to be a way to prevent this compiler from
12844 # explicitly linking system object files so we need to strip them
12845 # from the output so that they don't get included in the library
12847 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'
12852 # FIXME: insert proper C++ library support
12856 # FIXME: insert proper C++ library support
12860 case $cc_basename in
12862 # FIXME: insert proper C++ library support
12866 # FIXME: insert proper C++ library support
12872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12873 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12875 hardcode_libdir_flag_spec_CXX='-R$libdir'
12876 hardcode_direct_CXX=yes
12877 hardcode_shlibpath_var_CXX=no
12879 # Workaround some broken pre-1.5 toolchains
12880 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12883 # C++ shared libraries are fairly broken
12887 hardcode_direct_CXX=yes
12888 hardcode_shlibpath_var_CXX=no
12889 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12892 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12893 export_dynamic_flag_spec_CXX='${wl}-E'
12894 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12896 output_verbose_link_cmd='echo'
12899 case $cc_basename in
12901 # Kuck and Associates, Inc. (KAI) C++ Compiler
12903 # KCC will only create a shared library if the output file
12904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12905 # to its proper name (with version) after linking.
12906 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'
12908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12909 hardcode_libdir_separator_CXX=:
12911 # Archives containing C++ object files must be created using
12912 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12913 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12917 # Rational C++ 2.4.1
12918 # FIXME: insert proper C++ library support
12922 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12923 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'
12925 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12926 hardcode_libdir_separator_CXX=:
12928 # Commands to make compiler produce verbose output that lists
12929 # what "hidden" libraries, object files and flags are used when
12930 # linking a shared library.
12932 # There doesn't appear to be a way to prevent this compiler from
12933 # explicitly linking system object files so we need to strip them
12934 # from the output so that they don't get included in the library
12936 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'
12939 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12940 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12941 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'
12943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12944 hardcode_libdir_separator_CXX=:
12946 # Commands to make compiler produce verbose output that lists
12947 # what "hidden" libraries, object files and flags are used when
12948 # linking a shared library.
12949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12952 # FIXME: insert proper C++ library support
12959 case $cc_basename in
12961 # Kuck and Associates, Inc. (KAI) C++ Compiler
12963 # KCC will only create a shared library if the output file
12964 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12965 # to its proper name (with version) after linking.
12966 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'
12968 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12969 hardcode_libdir_separator_CXX=:
12971 # Archives containing C++ object files must be created using
12972 # the KAI C++ compiler.
12973 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12976 # Rational C++ 2.4.1
12977 # FIXME: insert proper C++ library support
12981 allow_undefined_flag_CXX=' -expect_unresolved \*'
12982 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'
12983 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12984 echo "-hidden">> $lib.exp~
12985 $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~
12988 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12989 hardcode_libdir_separator_CXX=:
12991 # Commands to make compiler produce verbose output that lists
12992 # what "hidden" libraries, object files and flags are used when
12993 # linking a shared library.
12995 # There doesn't appear to be a way to prevent this compiler from
12996 # explicitly linking system object files so we need to strip them
12997 # from the output so that they don't get included in the library
12999 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'
13002 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13003 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13004 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'
13006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13007 hardcode_libdir_separator_CXX=:
13009 # Commands to make compiler produce verbose output that lists
13010 # what "hidden" libraries, object files and flags are used when
13011 # linking a shared library.
13012 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13015 # FIXME: insert proper C++ library support
13022 # FIXME: insert proper C++ library support
13026 archive_cmds_need_lc_CXX=no
13027 case $cc_basename in
13029 # FIXME: insert proper C++ library support
13033 # FIXME: insert proper C++ library support
13039 case $cc_basename in
13042 # FIXME: insert proper C++ library support
13047 # FIXME: insert proper C++ library support
13051 # FIXME: insert proper C++ library support
13057 case $cc_basename in
13059 # Sun C++ 4.2, 5.x and Centerline C++
13060 no_undefined_flag_CXX=' -zdefs'
13061 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13062 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13063 $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'
13065 hardcode_libdir_flag_spec_CXX='-R$libdir'
13066 hardcode_shlibpath_var_CXX=no
13068 solaris2.[0-5] | solaris2.[0-5].*) ;;
13070 # The C++ compiler is used as linker so we must use $wl
13071 # flag to pass the commands to the underlying system
13072 # linker. We must also pass each convience library through
13073 # to the system linker between allextract/defaultextract.
13074 # The C++ compiler will combine linker options so we
13075 # cannot just pass the convience library names through
13077 # Supported since Solaris 2.6 (maybe 2.5.1?)
13078 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'
13081 link_all_deplibs_CXX=yes
13083 # Commands to make compiler produce verbose output that lists
13084 # what "hidden" libraries, object files and flags are used when
13085 # linking a shared library.
13087 # There doesn't appear to be a way to prevent this compiler from
13088 # explicitly linking system object files so we need to strip them
13089 # from the output so that they don't get included in the library
13091 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'
13093 # Archives containing C++ object files must be created using
13094 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13095 # necessary to make sure instantiated templates are included
13097 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13100 # Green Hills C++ Compiler
13101 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13103 # The C++ compiler must be used to create the archive.
13104 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13107 # GNU C++ compiler with Solaris linker
13108 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13109 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13110 if $CC --version | grep -v '^2\.7' > /dev/null; then
13111 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13112 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13113 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13115 # Commands to make compiler produce verbose output that lists
13116 # what "hidden" libraries, object files and flags are used when
13117 # linking a shared library.
13118 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13120 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13122 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13123 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13124 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13126 # Commands to make compiler produce verbose output that lists
13127 # what "hidden" libraries, object files and flags are used when
13128 # linking a shared library.
13129 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13132 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13137 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13138 archive_cmds_need_lc_CXX=no
13141 case $cc_basename in
13143 # NonStop-UX NCC 3.20
13144 # FIXME: insert proper C++ library support
13148 # FIXME: insert proper C++ library support
13154 # FIXME: insert proper C++ library support
13158 # FIXME: insert proper C++ library support
13162 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13163 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13164 test "$ld_shlibs_CXX" = no && can_build_shared=no
13170 cat > conftest.$ac_ext <<EOF
13174 Foo (void) { a = 0; }
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; then
13185 # Parse the compiler output and extract the necessary
13186 # objects, libraries and library flags.
13188 # Sentinel used to keep track of whether or not we are before
13189 # the conftest object file.
13190 pre_test_object_deps_done=no
13192 # The `*' in the case matches for architectures that use `case' in
13193 # $output_verbose_cmd can trigger glob expansion during the loop
13194 # eval without this substitution.
13195 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13197 for p in `eval $output_verbose_link_cmd`; do
13201 # Some compilers place space between "-{L,R}" and the path.
13202 # Remove the space.
13203 if test $p = "-L" \
13204 || test $p = "-R"; then
13211 if test "$pre_test_object_deps_done" = no; then
13214 # Internal compiler library paths should come after those
13215 # provided the user. The postdeps already come after the
13216 # user supplied libs so there is no need to process them.
13217 if test -z "$compiler_lib_search_path_CXX"; then
13218 compiler_lib_search_path_CXX="${prev}${p}"
13220 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13223 # The "-l" case would never come before the object being
13224 # linked, so don't bother handling this case.
13227 if test -z "$postdeps_CXX"; then
13228 postdeps_CXX="${prev}${p}"
13230 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13236 # This assumes that the test object file only shows up
13237 # once in the compiler output.
13238 if test "$p" = "conftest.$objext"; then
13239 pre_test_object_deps_done=yes
13243 if test "$pre_test_object_deps_done" = no; then
13244 if test -z "$predep_objects_CXX"; then
13245 predep_objects_CXX="$p"
13247 predep_objects_CXX="$predep_objects_CXX $p"
13250 if test -z "$postdep_objects_CXX"; then
13251 postdep_objects_CXX="$p"
13253 postdep_objects_CXX="$postdep_objects_CXX $p"
13258 *) ;; # Ignore the rest.
13266 echo "libtool.m4: error: problem compiling CXX test program"
13269 $rm -f confest.$objext
13271 case " $postdeps_CXX " in
13272 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13275 lt_prog_compiler_wl_CXX=
13276 lt_prog_compiler_pic_CXX=
13277 lt_prog_compiler_static_CXX=
13279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13282 # C++ specific cases for pic, static, wl, etc.
13283 if test "$GXX" = yes; then
13284 lt_prog_compiler_wl_CXX='-Wl,'
13285 lt_prog_compiler_static_CXX='-static'
13289 # All AIX code is PIC.
13290 if test "$host_cpu" = ia64; then
13291 # AIX 5 now supports IA64 processor
13292 lt_prog_compiler_static_CXX='-Bstatic'
13296 # FIXME: we need at least 68020 code to build shared libraries, but
13297 # adding the `-m68020' flag to GCC prevents building anything better,
13299 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13301 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13302 # PIC is the default for these OSes.
13304 mingw* | os2* | pw32*)
13305 # This hack is so that the source file can tell whether it is being
13306 # built for inclusion in a dll (and should export symbols for example).
13307 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13309 darwin* | rhapsody*)
13310 # PIC is the default on this platform
13311 # Common symbols not allowed in MH_DYLIB files
13312 lt_prog_compiler_pic_CXX='-fno-common'
13315 # DJGPP does not support shared libraries at all
13316 lt_prog_compiler_pic_CXX=
13319 if test -d /usr/nec; then
13320 lt_prog_compiler_pic_CXX=-Kconform_pic
13324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13325 # not for PA HP-UX.
13326 case "$host_cpu" in
13330 lt_prog_compiler_pic_CXX='-fPIC'
13335 lt_prog_compiler_pic_CXX='-fPIC'
13341 # All AIX code is PIC.
13342 if test "$host_cpu" = ia64; then
13343 # AIX 5 now supports IA64 processor
13344 lt_prog_compiler_static_CXX='-Bstatic'
13346 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13350 case $cc_basename in
13352 # Green Hills C++ Compiler
13353 # _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"
13358 # PIC is the default on this platform
13359 # Common symbols not allowed in MH_DYLIB files
13360 case $cc_basename in
13362 lt_prog_compiler_pic_CXX='-qnocommon'
13363 lt_prog_compiler_wl_CXX='-Wl,'
13368 case $cc_basename in
13370 lt_prog_compiler_pic_CXX='-KPIC'
13373 # Green Hills C++ Compiler
13374 lt_prog_compiler_pic_CXX='-pic'
13380 freebsd* | kfreebsd*-gnu | dragonfly*)
13381 # FreeBSD uses GNU C++
13383 hpux9* | hpux10* | hpux11*)
13384 case $cc_basename in
13386 lt_prog_compiler_wl_CXX='-Wl,'
13387 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13388 if test "$host_cpu" != ia64; then
13389 lt_prog_compiler_pic_CXX='+Z'
13393 lt_prog_compiler_wl_CXX='-Wl,'
13394 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13395 case "$host_cpu" in
13400 lt_prog_compiler_pic_CXX='+Z'
13408 irix5* | irix6* | nonstopux*)
13409 case $cc_basename in
13411 lt_prog_compiler_wl_CXX='-Wl,'
13412 lt_prog_compiler_static_CXX='-non_shared'
13413 # CC pic flag -KPIC is the default.
13420 case $cc_basename in
13423 lt_prog_compiler_wl_CXX='--backend -Wl,'
13424 lt_prog_compiler_pic_CXX='-fPIC'
13428 lt_prog_compiler_wl_CXX='-Wl,'
13429 lt_prog_compiler_pic_CXX='-KPIC'
13430 lt_prog_compiler_static_CXX='-static'
13433 # Portland Group C++ compiler.
13434 lt_prog_compiler_wl_CXX='-Wl,'
13435 lt_prog_compiler_pic_CXX='-fpic'
13436 lt_prog_compiler_static_CXX='-static'
13440 # Make sure the PIC flag is empty. It appears that all Alpha
13441 # Linux and Compaq Tru64 Unix objects are PIC.
13442 lt_prog_compiler_pic_CXX=
13443 lt_prog_compiler_static_CXX='-non_shared'
13454 case $cc_basename in
13456 lt_prog_compiler_pic_CXX='-W c,exportall'
13464 osf3* | osf4* | osf5*)
13465 case $cc_basename in
13467 lt_prog_compiler_wl_CXX='--backend -Wl,'
13470 # Rational C++ 2.4.1
13471 lt_prog_compiler_pic_CXX='-pic'
13474 # Digital/Compaq C++
13475 lt_prog_compiler_wl_CXX='-Wl,'
13476 # Make sure the PIC flag is empty. It appears that all Alpha
13477 # Linux and Compaq Tru64 Unix objects are PIC.
13478 lt_prog_compiler_pic_CXX=
13479 lt_prog_compiler_static_CXX='-non_shared'
13488 case $cc_basename in
13490 lt_prog_compiler_pic_CXX='-fPIC'
13497 case $cc_basename in
13499 # Sun C++ 4.2, 5.x and Centerline C++
13500 lt_prog_compiler_pic_CXX='-KPIC'
13501 lt_prog_compiler_static_CXX='-Bstatic'
13502 lt_prog_compiler_wl_CXX='-Qoption ld '
13505 # Green Hills C++ Compiler
13506 lt_prog_compiler_pic_CXX='-PIC'
13513 case $cc_basename in
13516 lt_prog_compiler_pic_CXX='-pic'
13517 lt_prog_compiler_static_CXX='-Bstatic'
13521 lt_prog_compiler_pic_CXX='-pic'
13528 case $cc_basename in
13530 # NonStop-UX NCC 3.20
13531 lt_prog_compiler_pic_CXX='-KPIC'
13542 lt_prog_compiler_can_build_shared_CXX=no
13547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13548 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13551 # Check to make sure the PIC flag actually works.
13553 if test -n "$lt_prog_compiler_pic_CXX"; then
13555 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13556 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13557 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 lt_prog_compiler_pic_works_CXX=no
13561 ac_outfile=conftest.$ac_objext
13562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13563 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13564 # Insert the option either (1) after the last *FLAGS variable, or
13565 # (2) before a word containing "conftest.", or (3) at the end.
13566 # Note that $ac_compile itself does not contain backslashes and begins
13567 # with a dollar sign (not a hyphen), so the echo should work correctly.
13568 # The option is referenced via a variable to avoid confusing sed.
13569 lt_compile=`echo "$ac_compile" | $SED \
13570 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13572 -e 's:$: $lt_compiler_flag:'`
13573 (eval echo "\"\$as_me:13573: $lt_compile\"" >&5)
13574 (eval "$lt_compile" 2>conftest.err)
13576 cat conftest.err >&5
13577 echo "$as_me:13577: \$? = $ac_status" >&5
13578 if (exit $ac_status) && test -s "$ac_outfile"; then
13579 # The compiler can only warn and ignore the option if not recognized
13580 # So say no if there are warnings other than the usual output.
13581 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13582 $SED '/^$/d' conftest.err >conftest.er2
13583 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13584 lt_prog_compiler_pic_works_CXX=yes
13590 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13591 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13593 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13594 case $lt_prog_compiler_pic_CXX in
13596 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13599 lt_prog_compiler_pic_CXX=
13600 lt_prog_compiler_can_build_shared_CXX=no
13605 # For platforms which do not support PIC, -DPIC is meaningless:
13607 lt_prog_compiler_pic_CXX=
13610 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13614 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13616 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 lt_cv_prog_compiler_c_o_CXX=no
13620 $rm -r conftest 2>/dev/null
13624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13626 lt_compiler_flag="-o out/conftest2.$ac_objext"
13627 # Insert the option either (1) after the last *FLAGS variable, or
13628 # (2) before a word containing "conftest.", or (3) at the end.
13629 # Note that $ac_compile itself does not contain backslashes and begins
13630 # with a dollar sign (not a hyphen), so the echo should work correctly.
13631 lt_compile=`echo "$ac_compile" | $SED \
13632 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13634 -e 's:$: $lt_compiler_flag:'`
13635 (eval echo "\"\$as_me:13635: $lt_compile\"" >&5)
13636 (eval "$lt_compile" 2>out/conftest.err)
13638 cat out/conftest.err >&5
13639 echo "$as_me:13639: \$? = $ac_status" >&5
13640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13642 # The compiler can only warn and ignore the option if not recognized
13643 # So say no if there are warnings
13644 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13645 $SED '/^$/d' out/conftest.err >out/conftest.er2
13646 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13647 lt_cv_prog_compiler_c_o_CXX=yes
13652 # SGI C++ compiler will create directory out/ii_files/ for
13653 # template instantiation
13654 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13655 $rm out/* && rmdir out
13661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13662 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13665 hard_links="nottested"
13666 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13667 # do not overwrite the value of need_locks provided by the user
13668 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13669 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13674 ln conftest.a conftest.b 2>&5 || hard_links=no
13675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13676 echo "$as_me:$LINENO: result: $hard_links" >&5
13677 echo "${ECHO_T}$hard_links" >&6
13678 if test "$hard_links" = no; then
13679 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13680 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13687 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13688 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13690 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13693 # If we're using GNU nm, then we don't want the "-C" option.
13694 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13695 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13696 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'
13698 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'
13702 export_symbols_cmds_CXX="$ltdll_cmds"
13705 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'
13708 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13712 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13713 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13714 test "$ld_shlibs_CXX" = no && can_build_shared=no
13716 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13717 if test "$GCC" = yes; then
13718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13722 # Do we need to explicitly link libc?
13724 case "x$archive_cmds_need_lc_CXX" in
13726 # Assume -lc should be added
13727 archive_cmds_need_lc_CXX=yes
13729 if test "$enable_shared" = yes && test "$GCC" = yes; then
13730 case $archive_cmds_CXX in
13732 # FIXME: we may have to deal with multi-command sequences.
13735 # Test whether the compiler implicitly links with -lc since on some
13736 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13737 # to ld, don't add -lc before -lgcc.
13738 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13739 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744 (eval $ac_compile) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } 2>conftest.err; then
13750 libobjs=conftest.$ac_objext
13752 wl=$lt_prog_compiler_wl_CXX
13758 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13759 allow_undefined_flag_CXX=
13760 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13761 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }
13766 archive_cmds_need_lc_CXX=no
13768 archive_cmds_need_lc_CXX=yes
13770 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13772 cat conftest.err 1>&5
13775 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13776 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13783 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13784 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13785 library_names_spec=
13786 libname_spec='lib$name'
13790 postuninstall_cmds=
13794 shlibpath_overrides_runpath=unknown
13796 dynamic_linker="$host_os ld.so"
13797 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13798 if test "$GCC" = yes; then
13799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13800 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13801 # if the path contains ";" then we assume it to be the separator
13802 # otherwise default to the standard path separator (i.e. ":") - it is
13803 # assumed that no part of a normal pathname contains ";" but that should
13804 # okay in the real world where ";" in dirpaths is itself problematic.
13805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13810 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13812 need_lib_prefix=unknown
13813 hardcode_into_libs=no
13815 # when you set need_version to no, make sure it does not cause -set_version
13816 # flags to be left without arguments
13817 need_version=unknown
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13823 shlibpath_var=LIBPATH
13825 # AIX 3 has no versioning support, so we append a major version to the name.
13826 soname_spec='${libname}${release}${shared_ext}$major'
13833 hardcode_into_libs=yes
13834 if test "$host_cpu" = ia64; then
13835 # AIX 5 supports IA64
13836 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13837 shlibpath_var=LD_LIBRARY_PATH
13839 # With GCC up to 2.95.x, collect2 would create an import file
13840 # for dependence libraries. The import file would start with
13841 # the line `#! .'. This would cause the generated library to
13842 # depend on `.', always an invalid library. This was fixed in
13843 # development snapshots of GCC prior to 3.0.
13845 aix4 | aix4.[01] | aix4.[01].*)
13846 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13848 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13851 can_build_shared=no
13855 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13856 # soname into executable. Probably we can add versioning support to
13857 # collect2, so additional links can be useful in future.
13858 if test "$aix_use_runtimelinking" = yes; then
13859 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13860 # instead of lib<name>.a to let people know that these are not
13861 # typical AIX shared libraries.
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13864 # We preserve .a as extension for shared libraries through AIX4.2
13865 # and later when we are not doing run time linking.
13866 library_names_spec='${libname}${release}.a $libname.a'
13867 soname_spec='${libname}${release}${shared_ext}$major'
13869 shlibpath_var=LIBPATH
13874 library_names_spec='$libname.ixlibrary $libname.a'
13875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13876 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'
13880 library_names_spec='${libname}${shared_ext}'
13881 dynamic_linker="$host_os ld.so"
13882 shlibpath_var=LIBRARY_PATH
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889 soname_spec='${libname}${release}${shared_ext}$major'
13890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13891 shlibpath_var=LD_LIBRARY_PATH
13892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13894 # the default ld.so.conf also contains /usr/contrib/lib and
13895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13896 # libtool to hard-code these into programs
13899 cygwin* | mingw* | pw32*)
13900 version_type=windows
13905 case $GCC,$host_os in
13906 yes,cygwin* | yes,mingw* | yes,pw32*)
13907 library_names_spec='$libname.dll.a'
13908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13909 postinstall_cmds='base_file=`basename \${file}`~
13910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13911 dldir=$destdir/`dirname \$dlpath`~
13912 test -d \$dldir || mkdir -p \$dldir~
13913 $install_prog $dir/$dlname \$dldir/$dlname'
13914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13915 dlpath=$dir/\$dldll~
13917 shlibpath_overrides_runpath=yes
13921 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13922 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13923 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13926 # MinGW DLLs use traditional 'lib' prefix
13927 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13929 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13930 # It is most probably a Windows format PATH printed by
13931 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13932 # path with ; separators, and with drive letters. We can handle the
13933 # drive letters (cygwin fileutils understands them), so leave them,
13934 # especially as we might pass files found there to a mingw objdump,
13935 # which wouldn't understand a cygwinified path. Ahh.
13936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13942 # pw32 DLLs use 'pw' prefix rather than 'lib'
13943 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13949 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13952 dynamic_linker='Win32 ld.exe'
13953 # FIXME: first we should search . and the directory the executable is in
13957 darwin* | rhapsody*)
13958 dynamic_linker="$host_os dyld"
13959 version_type=darwin
13962 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13963 soname_spec='${libname}${release}${major}$shared_ext'
13964 shlibpath_overrides_runpath=yes
13965 shlibpath_var=DYLD_LIBRARY_PATH
13966 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13967 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13968 if test "$GCC" = yes; then
13969 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"`
13971 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13994 soname_spec='${libname}${release}${shared_ext}$major'
13995 shlibpath_var=LD_LIBRARY_PATH
13996 shlibpath_overrides_runpath=no
13997 hardcode_into_libs=yes
13998 dynamic_linker='GNU ld.so'
14001 freebsd* | dragonfly*)
14002 # DragonFly does not have aout. When/if they implement a new
14003 # versioning mechanism, adjust this.
14004 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14005 version_type=freebsd-$objformat
14006 case $version_type in
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14017 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=yes
14022 freebsd3.[01]* | freebsdelf3.[01]*)
14023 shlibpath_overrides_runpath=yes
14024 hardcode_into_libs=yes
14027 shlibpath_overrides_runpath=no
14028 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
14040 hardcode_into_libs=yes
14043 hpux9* | hpux10* | hpux11*)
14044 # Give a soname corresponding to the major version so that dld.sl refuses to
14045 # link against other versions.
14049 case "$host_cpu" in
14052 hardcode_into_libs=yes
14053 dynamic_linker="$host_os dld.so"
14054 shlibpath_var=LD_LIBRARY_PATH
14055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057 soname_spec='${libname}${release}${shared_ext}$major'
14058 if test "X$HPUX_IA64_MODE" = X32; then
14059 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14061 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14067 hardcode_into_libs=yes
14068 dynamic_linker="$host_os dld.sl"
14069 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 soname_spec='${libname}${release}${shared_ext}$major'
14073 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14078 dynamic_linker="$host_os dld.sl"
14079 shlibpath_var=SHLIB_PATH
14080 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082 soname_spec='${libname}${release}${shared_ext}$major'
14085 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14086 postinstall_cmds='chmod 555 $lib'
14089 irix5* | irix6* | nonstopux*)
14091 nonstopux*) version_type=nonstopux ;;
14093 if test "$lt_cv_prog_gnu_ld" = yes; then
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14104 irix5* | nonstopux*)
14105 libsuff= shlibsuff=
14108 case $LD in # libtool.m4 will add one of these switches to LD
14109 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14110 libsuff= shlibsuff= libmagic=32-bit;;
14111 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14112 libsuff=32 shlibsuff=N32 libmagic=N32;;
14113 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14114 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14115 *) libsuff= shlibsuff= libmagic=never-match;;
14119 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14120 shlibpath_overrides_runpath=no
14121 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14122 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14123 hardcode_into_libs=yes
14126 # No shared lib support for Linux oldld, aout, or coff.
14127 linux*oldld* | linux*aout* | linux*coff*)
14131 # This must be Linux ELF.
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 soname_spec='${libname}${release}${shared_ext}$major'
14138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 shlibpath_overrides_runpath=no
14141 # This implies no fast_install, which is unacceptable.
14142 # Some rework will be needed to allow for fast_install
14143 # before this can be enabled.
14144 hardcode_into_libs=yes
14146 # Append ld.so.conf contents to the search path
14147 if test -f /etc/ld.so.conf; then
14148 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' ' '`
14149 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14152 # We used to test for /lib/ld.so.1 and disable shared libraries on
14153 # powerpc, because MkLinux only supported shared libraries with the
14154 # GNU dynamic linker. Since this was broken with cross compilers,
14155 # most powerpc-linux boxes support dynamic linking these days and
14156 # people can always --disable-shared, the test was removed, and we
14157 # assume the GNU/Linux dynamic linker is in use.
14158 dynamic_linker='GNU/Linux ld.so'
14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14166 soname_spec='${libname}${release}${shared_ext}$major'
14167 shlibpath_var=LD_LIBRARY_PATH
14168 shlibpath_overrides_runpath=no
14169 hardcode_into_libs=yes
14170 dynamic_linker='GNU ld.so'
14177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14180 dynamic_linker='NetBSD (a.out) ld.so'
14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14183 soname_spec='${libname}${release}${shared_ext}$major'
14184 dynamic_linker='NetBSD ld.elf_so'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 shlibpath_overrides_runpath=yes
14188 hardcode_into_libs=yes
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194 shlibpath_var=LD_LIBRARY_PATH
14195 shlibpath_overrides_runpath=yes
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203 soname_spec='${libname}${release}${shared_ext}$major'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 shlibpath_overrides_runpath=yes
14211 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14213 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14214 *) need_version=no ;;
14216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14218 shlibpath_var=LD_LIBRARY_PATH
14219 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14221 openbsd2.[89] | openbsd2.[89].*)
14222 shlibpath_overrides_runpath=no
14225 shlibpath_overrides_runpath=yes
14229 shlibpath_overrides_runpath=yes
14234 libname_spec='$name'
14237 library_names_spec='$libname${shared_ext} $libname.a'
14238 dynamic_linker='OS/2 ld.exe'
14239 shlibpath_var=LIBPATH
14242 osf3* | osf4* | osf5*)
14246 soname_spec='${libname}${release}${shared_ext}$major'
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14248 shlibpath_var=LD_LIBRARY_PATH
14249 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14250 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257 shlibpath_var=LD_LIBRARY_PATH
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265 soname_spec='${libname}${release}${shared_ext}$major'
14266 shlibpath_var=LD_LIBRARY_PATH
14267 shlibpath_overrides_runpath=yes
14268 hardcode_into_libs=yes
14269 # ldd complains unless libraries are executable
14270 postinstall_cmds='chmod +x $lib'
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14276 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14277 shlibpath_var=LD_LIBRARY_PATH
14278 shlibpath_overrides_runpath=yes
14279 if test "$with_gnu_ld" = yes; then
14285 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288 soname_spec='${libname}${release}${shared_ext}$major'
14289 shlibpath_var=LD_LIBRARY_PATH
14290 case $host_vendor in
14292 shlibpath_overrides_runpath=no
14294 export_dynamic_flag_spec='${wl}-Blargedynsym'
14295 runpath_var=LD_RUN_PATH
14303 shlibpath_overrides_runpath=no
14304 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14310 if test -d /usr/nec ;then
14312 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14313 soname_spec='$libname${shared_ext}.$major'
14314 shlibpath_var=LD_LIBRARY_PATH
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14321 soname_spec='${libname}${release}${shared_ext}$major'
14322 shlibpath_var=LD_LIBRARY_PATH
14329 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14330 echo "${ECHO_T}$dynamic_linker" >&6
14331 test "$dynamic_linker" = no && can_build_shared=no
14333 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14334 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14335 hardcode_action_CXX=
14336 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14337 test -n "$runpath_var_CXX" || \
14338 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14340 # We can hardcode non-existant directories.
14341 if test "$hardcode_direct_CXX" != no &&
14342 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14343 # have to relink, otherwise we might link with an installed library
14344 # when we should be linking with a yet-to-be-installed one
14345 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14346 test "$hardcode_minus_L_CXX" != no; then
14347 # Linking always hardcodes the temporary library directory.
14348 hardcode_action_CXX=relink
14350 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14351 hardcode_action_CXX=immediate
14354 # We cannot hardcode anything, or else we can only hardcode existing
14356 hardcode_action_CXX=unsupported
14358 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14359 echo "${ECHO_T}$hardcode_action_CXX" >&6
14361 if test "$hardcode_action_CXX" = relink; then
14362 # Fast installation is not supported
14363 enable_fast_install=no
14364 elif test "$shlibpath_overrides_runpath" = yes ||
14365 test "$enable_shared" = no; then
14366 # Fast installation is not necessary
14367 enable_fast_install=needless
14372 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14373 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14374 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14375 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14376 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14377 echo "$as_me:$LINENO: result: yes" >&5
14378 echo "${ECHO_T}yes" >&6
14380 # FIXME - insert some real tests, host_os isn't really good enough
14383 if test -n "$STRIP" ; then
14384 striplib="$STRIP -x"
14385 echo "$as_me:$LINENO: result: yes" >&5
14386 echo "${ECHO_T}yes" >&6
14388 echo "$as_me:$LINENO: result: no" >&5
14389 echo "${ECHO_T}no" >&6
14393 echo "$as_me:$LINENO: result: no" >&5
14394 echo "${ECHO_T}no" >&6
14399 if test "x$enable_dlopen" != xyes; then
14400 enable_dlopen=unknown
14401 enable_dlopen_self=unknown
14402 enable_dlopen_self_static=unknown
14409 lt_cv_dlopen="load_add_on"
14411 lt_cv_dlopen_self=yes
14415 lt_cv_dlopen="LoadLibrary"
14420 lt_cv_dlopen="dlopen"
14425 # if libdl is installed we need to link against it
14426 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14427 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14428 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 ac_check_lib_save_LIBS=$LIBS
14433 cat >conftest.$ac_ext <<_ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14440 /* Override any gcc2 internal prototype to avoid an error. */
14444 /* We use char because int might match the return type of a gcc2
14445 builtin and then its argument prototype would still apply. */
14455 rm -f conftest.$ac_objext conftest$ac_exeext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14457 (eval $ac_link) 2>conftest.er1
14459 grep -v '^ *+' conftest.er1 >conftest.err
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } &&
14464 { ac_try='test -z "$ac_cxx_werror_flag"
14465 || test ! -s conftest.err'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; } &&
14471 { ac_try='test -s conftest$ac_exeext'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14477 ac_cv_lib_dl_dlopen=yes
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ac_cv_lib_dl_dlopen=no
14484 rm -f conftest.err conftest.$ac_objext \
14485 conftest$ac_exeext conftest.$ac_ext
14486 LIBS=$ac_check_lib_save_LIBS
14488 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14489 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14490 if test $ac_cv_lib_dl_dlopen = yes; then
14491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14494 lt_cv_dlopen="dyld"
14496 lt_cv_dlopen_self=yes
14503 echo "$as_me:$LINENO: checking for shl_load" >&5
14504 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14505 if test "${ac_cv_func_shl_load+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14516 #define shl_load innocuous_shl_load
14518 /* System header to define __stub macros and hopefully few prototypes,
14519 which can conflict with char shl_load (); below.
14520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14521 <limits.h> exists even on freestanding compilers. */
14524 # include <limits.h>
14526 # include <assert.h>
14531 /* Override any gcc2 internal prototype to avoid an error. */
14536 /* We use char because int might match the return type of a gcc2
14537 builtin and then its argument prototype would still apply. */
14539 /* The GNU C library defines this for functions which it implements
14540 to always fail with ENOSYS. Some functions are actually named
14541 something starting with __ and the normal name is an alias. */
14542 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14545 char (*f) () = shl_load;
14554 return f != shl_load;
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>conftest.er1
14563 grep -v '^ *+' conftest.er1 >conftest.err
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_cxx_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest$ac_exeext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_cv_func_shl_load=yes
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_cv_func_shl_load=no
14588 rm -f conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14591 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14592 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14593 if test $ac_cv_func_shl_load = yes; then
14594 lt_cv_dlopen="shl_load"
14596 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14597 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14598 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 ac_check_lib_save_LIBS=$LIBS
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14610 /* Override any gcc2 internal prototype to avoid an error. */
14614 /* We use char because int might match the return type of a gcc2
14615 builtin and then its argument prototype would still apply. */
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14627 (eval $ac_link) 2>conftest.er1
14629 grep -v '^ *+' conftest.er1 >conftest.err
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -z "$ac_cxx_werror_flag"
14635 || test ! -s conftest.err'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; } &&
14641 { ac_try='test -s conftest$ac_exeext'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_cv_lib_dld_shl_load=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_cv_lib_dld_shl_load=no
14654 rm -f conftest.err conftest.$ac_objext \
14655 conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14658 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14659 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14660 if test $ac_cv_lib_dld_shl_load = yes; then
14661 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14663 echo "$as_me:$LINENO: checking for dlopen" >&5
14664 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14665 if test "${ac_cv_func_dlopen+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 cat >conftest.$ac_ext <<_ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14676 #define dlopen innocuous_dlopen
14678 /* System header to define __stub macros and hopefully few prototypes,
14679 which can conflict with char dlopen (); below.
14680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14681 <limits.h> exists even on freestanding compilers. */
14684 # include <limits.h>
14686 # include <assert.h>
14691 /* Override any gcc2 internal prototype to avoid an error. */
14696 /* We use char because int might match the return type of a gcc2
14697 builtin and then its argument prototype would still apply. */
14699 /* The GNU C library defines this for functions which it implements
14700 to always fail with ENOSYS. Some functions are actually named
14701 something starting with __ and the normal name is an alias. */
14702 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14705 char (*f) () = dlopen;
14714 return f != dlopen;
14719 rm -f conftest.$ac_objext conftest$ac_exeext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14721 (eval $ac_link) 2>conftest.er1
14723 grep -v '^ *+' conftest.er1 >conftest.err
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -z "$ac_cxx_werror_flag"
14729 || test ! -s conftest.err'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest$ac_exeext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_func_dlopen=yes
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_func_dlopen=no
14748 rm -f conftest.err conftest.$ac_objext \
14749 conftest$ac_exeext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14752 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14753 if test $ac_cv_func_dlopen = yes; then
14754 lt_cv_dlopen="dlopen"
14756 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14757 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14758 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 ac_check_lib_save_LIBS=$LIBS
14763 cat >conftest.$ac_ext <<_ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14770 /* Override any gcc2 internal prototype to avoid an error. */
14774 /* We use char because int might match the return type of a gcc2
14775 builtin and then its argument prototype would still apply. */
14785 rm -f conftest.$ac_objext conftest$ac_exeext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787 (eval $ac_link) 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -z "$ac_cxx_werror_flag"
14795 || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest$ac_exeext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_lib_dl_dlopen=yes
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_cv_lib_dl_dlopen=no
14814 rm -f conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14816 LIBS=$ac_check_lib_save_LIBS
14818 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14819 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14820 if test $ac_cv_lib_dl_dlopen = yes; then
14821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14823 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14824 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14825 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 ac_check_lib_save_LIBS=$LIBS
14829 LIBS="-lsvld $LIBS"
14830 cat >conftest.$ac_ext <<_ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14837 /* Override any gcc2 internal prototype to avoid an error. */
14841 /* We use char because int might match the return type of a gcc2
14842 builtin and then its argument prototype would still apply. */
14852 rm -f conftest.$ac_objext conftest$ac_exeext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14854 (eval $ac_link) 2>conftest.er1
14856 grep -v '^ *+' conftest.er1 >conftest.err
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_cxx_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest$ac_exeext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 ac_cv_lib_svld_dlopen=yes
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 ac_cv_lib_svld_dlopen=no
14881 rm -f conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LIBS=$ac_check_lib_save_LIBS
14885 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14886 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14887 if test $ac_cv_lib_svld_dlopen = yes; then
14888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14890 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14891 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14892 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 ac_check_lib_save_LIBS=$LIBS
14897 cat >conftest.$ac_ext <<_ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14904 /* Override any gcc2 internal prototype to avoid an error. */
14908 /* We use char because int might match the return type of a gcc2
14909 builtin and then its argument prototype would still apply. */
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>conftest.er1
14923 grep -v '^ *+' conftest.er1 >conftest.err
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_cxx_werror_flag"
14929 || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_lib_dld_dld_link=yes
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_cv_lib_dld_dld_link=no
14948 rm -f conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14952 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14954 if test $ac_cv_lib_dld_dld_link = yes; then
14955 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14976 if test "x$lt_cv_dlopen" != xno; then
14982 case $lt_cv_dlopen in
14984 save_CPPFLAGS="$CPPFLAGS"
14985 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14987 save_LDFLAGS="$LDFLAGS"
14988 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14991 LIBS="$lt_cv_dlopen_libs $LIBS"
14993 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14995 if test "${lt_cv_dlopen_self+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 if test "$cross_compiling" = yes; then :
14999 lt_cv_dlopen_self=cross
15001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15002 lt_status=$lt_dlunknown
15003 cat > conftest.$ac_ext <<EOF
15004 #line 15004 "configure"
15005 #include "confdefs.h"
15014 # define LT_DLGLOBAL RTLD_GLOBAL
15017 # define LT_DLGLOBAL DL_GLOBAL
15019 # define LT_DLGLOBAL 0
15023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15024 find out it does not work in some platform. */
15025 #ifndef LT_DLLAZY_OR_NOW
15027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15030 # define LT_DLLAZY_OR_NOW DL_LAZY
15033 # define LT_DLLAZY_OR_NOW RTLD_NOW
15036 # define LT_DLLAZY_OR_NOW DL_NOW
15038 # define LT_DLLAZY_OR_NOW 0
15046 extern "C" void exit (int);
15049 void fnord() { int i=42;}
15052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15053 int status = $lt_dlunknown;
15057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15059 /* dlclose (self); */
15065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15066 (eval $ac_link) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15070 (./conftest; exit; ) 2>/dev/null
15072 case x$lt_status in
15073 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15074 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15075 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15078 # compilation failed
15079 lt_cv_dlopen_self=no
15086 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15087 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15089 if test "x$lt_cv_dlopen_self" = xyes; then
15090 LDFLAGS="$LDFLAGS $link_static_flag"
15091 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15092 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15093 if test "${lt_cv_dlopen_self_static+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 if test "$cross_compiling" = yes; then :
15097 lt_cv_dlopen_self_static=cross
15099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15100 lt_status=$lt_dlunknown
15101 cat > conftest.$ac_ext <<EOF
15102 #line 15102 "configure"
15103 #include "confdefs.h"
15112 # define LT_DLGLOBAL RTLD_GLOBAL
15115 # define LT_DLGLOBAL DL_GLOBAL
15117 # define LT_DLGLOBAL 0
15121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15122 find out it does not work in some platform. */
15123 #ifndef LT_DLLAZY_OR_NOW
15125 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15128 # define LT_DLLAZY_OR_NOW DL_LAZY
15131 # define LT_DLLAZY_OR_NOW RTLD_NOW
15134 # define LT_DLLAZY_OR_NOW DL_NOW
15136 # define LT_DLLAZY_OR_NOW 0
15144 extern "C" void exit (int);
15147 void fnord() { int i=42;}
15150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15151 int status = $lt_dlunknown;
15155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15156 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15157 /* dlclose (self); */
15163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15164 (eval $ac_link) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15168 (./conftest; exit; ) 2>/dev/null
15170 case x$lt_status in
15171 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15172 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15173 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15176 # compilation failed
15177 lt_cv_dlopen_self_static=no
15184 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15188 CPPFLAGS="$save_CPPFLAGS"
15189 LDFLAGS="$save_LDFLAGS"
15194 case $lt_cv_dlopen_self in
15195 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15196 *) enable_dlopen_self=unknown ;;
15199 case $lt_cv_dlopen_self_static in
15200 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15201 *) enable_dlopen_self_static=unknown ;;
15206 # The else clause should only fire when bootstrapping the
15207 # libtool distribution, otherwise you forgot to ship ltmain.sh
15208 # with your package, and you will get complaints that there are
15209 # no rules to generate ltmain.sh.
15210 if test -f "$ltmain"; then
15211 # See if we are running on zsh, and set the options which allow our commands through
15212 # without removal of \ escapes.
15213 if test -n "${ZSH_VERSION+set}" ; then
15214 setopt NO_GLOB_SUBST
15216 # Now quote all the things that may contain metacharacters while being
15217 # careful not to overquote the AC_SUBSTed values. We take copies of the
15218 # variables and quote the copies for generation of the libtool script.
15219 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15223 deplibs_check_method reload_flag reload_cmds need_locks \
15224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15225 lt_cv_sys_global_symbol_to_c_name_address \
15226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15227 old_postinstall_cmds old_postuninstall_cmds \
15231 lt_prog_compiler_wl_CXX \
15232 lt_prog_compiler_pic_CXX \
15233 lt_prog_compiler_static_CXX \
15234 lt_prog_compiler_no_builtin_flag_CXX \
15235 export_dynamic_flag_spec_CXX \
15236 thread_safe_flag_spec_CXX \
15237 whole_archive_flag_spec_CXX \
15238 enable_shared_with_static_runtimes_CXX \
15239 old_archive_cmds_CXX \
15240 old_archive_from_new_cmds_CXX \
15241 predep_objects_CXX \
15242 postdep_objects_CXX \
15245 compiler_lib_search_path_CXX \
15247 archive_expsym_cmds_CXX \
15248 postinstall_cmds_CXX \
15249 postuninstall_cmds_CXX \
15250 old_archive_from_expsyms_cmds_CXX \
15251 allow_undefined_flag_CXX \
15252 no_undefined_flag_CXX \
15253 export_symbols_cmds_CXX \
15254 hardcode_libdir_flag_spec_CXX \
15255 hardcode_libdir_flag_spec_ld_CXX \
15256 hardcode_libdir_separator_CXX \
15257 hardcode_automatic_CXX \
15259 module_expsym_cmds_CXX \
15260 lt_cv_prog_compiler_c_o_CXX \
15261 exclude_expsyms_CXX \
15262 include_expsyms_CXX; do
15265 old_archive_cmds_CXX | \
15266 old_archive_from_new_cmds_CXX | \
15267 archive_cmds_CXX | \
15268 archive_expsym_cmds_CXX | \
15269 module_cmds_CXX | \
15270 module_expsym_cmds_CXX | \
15271 old_archive_from_expsyms_cmds_CXX | \
15272 export_symbols_cmds_CXX | \
15273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15274 postinstall_cmds | postuninstall_cmds | \
15275 old_postinstall_cmds | old_postuninstall_cmds | \
15276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15277 # Double-quote double-evaled strings.
15278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15287 *'\$0 --fallback-echo"')
15288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15294 cat <<__EOF__ >> "$cfgfile"
15295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15299 # Shell to use when invoking shell scripts.
15302 # Whether or not to build shared libraries.
15303 build_libtool_libs=$enable_shared
15305 # Whether or not to build static libraries.
15306 build_old_libs=$enable_static
15308 # Whether or not to add -lc for building shared libraries.
15309 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15311 # Whether or not to disallow shared libs when runtime libs are static
15312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15314 # Whether or not to optimize for fast installation.
15315 fast_install=$enable_fast_install
15318 host_alias=$host_alias
15322 # The build system.
15323 build_alias=$build_alias
15327 # An echo program that does not interpret backslashes.
15332 AR_FLAGS=$lt_AR_FLAGS
15337 # A language-specific compiler.
15338 CC=$lt_compiler_CXX
15340 # Is the compiler the GNU C compiler?
15346 # The linker used to build libraries.
15349 # Whether we need hard or soft links.
15352 # A BSD-compatible nm program.
15355 # A symbol stripping program
15358 # Used to examine libraries when file_magic_cmd begins "file"
15359 MAGIC_CMD=$MAGIC_CMD
15361 # Used on cygwin: DLL creation program.
15364 # Used on cygwin: object dumper.
15367 # Used on cygwin: assembler.
15370 # The name of the directory that contains temporary libtool files.
15373 # How to create reloadable object files.
15374 reload_flag=$lt_reload_flag
15375 reload_cmds=$lt_reload_cmds
15377 # How to pass a linker flag through the compiler.
15378 wl=$lt_lt_prog_compiler_wl_CXX
15380 # Object file suffix (normally "o").
15381 objext="$ac_objext"
15383 # Old archive suffix (normally "a").
15386 # Shared library suffix (normally ".so").
15387 shrext_cmds='$shrext_cmds'
15389 # Executable file suffix (normally "").
15392 # Additional compiler flags for building library objects.
15393 pic_flag=$lt_lt_prog_compiler_pic_CXX
15396 # What is the maximum length of a command?
15397 max_cmd_len=$lt_cv_sys_max_cmd_len
15399 # Does compiler simultaneously support -c and -o options?
15400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15402 # Must we lock files when doing compilation?
15403 need_locks=$lt_need_locks
15405 # Do we need the lib prefix for modules?
15406 need_lib_prefix=$need_lib_prefix
15408 # Do we need a version for libraries?
15409 need_version=$need_version
15411 # Whether dlopen is supported.
15412 dlopen_support=$enable_dlopen
15414 # Whether dlopen of programs is supported.
15415 dlopen_self=$enable_dlopen_self
15417 # Whether dlopen of statically linked programs is supported.
15418 dlopen_self_static=$enable_dlopen_self_static
15420 # Compiler flag to prevent dynamic linking.
15421 link_static_flag=$lt_lt_prog_compiler_static_CXX
15423 # Compiler flag to turn off builtin functions.
15424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15426 # Compiler flag to allow reflexive dlopens.
15427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15429 # Compiler flag to generate shared objects directly from archives.
15430 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15432 # Compiler flag to generate thread-safe objects.
15433 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15435 # Library versioning type.
15436 version_type=$version_type
15438 # Format of library name prefix.
15439 libname_spec=$lt_libname_spec
15441 # List of archive names. First name is the real one, the rest are links.
15442 # The last name is the one that the linker finds with -lNAME.
15443 library_names_spec=$lt_library_names_spec
15445 # The coded name of the library, if different from the real name.
15446 soname_spec=$lt_soname_spec
15448 # Commands used to build and install an old-style archive.
15450 old_archive_cmds=$lt_old_archive_cmds_CXX
15451 old_postinstall_cmds=$lt_old_postinstall_cmds
15452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15454 # Create an old-style archive from a shared archive.
15455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15457 # Create a temporary old-style archive to link instead of a shared archive.
15458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15460 # Commands used to build and install a shared archive.
15461 archive_cmds=$lt_archive_cmds_CXX
15462 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15463 postinstall_cmds=$lt_postinstall_cmds
15464 postuninstall_cmds=$lt_postuninstall_cmds
15466 # Commands used to build a loadable module (assumed same as above if empty)
15467 module_cmds=$lt_module_cmds_CXX
15468 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15470 # Commands to strip libraries.
15471 old_striplib=$lt_old_striplib
15472 striplib=$lt_striplib
15474 # Dependencies to place before the objects being linked to create a
15476 predep_objects=$lt_predep_objects_CXX
15478 # Dependencies to place after the objects being linked to create a
15480 postdep_objects=$lt_postdep_objects_CXX
15482 # Dependencies to place before the objects being linked to create a
15484 predeps=$lt_predeps_CXX
15486 # Dependencies to place after the objects being linked to create a
15488 postdeps=$lt_postdeps_CXX
15490 # The library search path used internally by the compiler when linking
15491 # a shared library.
15492 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15494 # Method to check whether dependent libraries are shared objects.
15495 deplibs_check_method=$lt_deplibs_check_method
15497 # Command to use when deplibs_check_method == file_magic.
15498 file_magic_cmd=$lt_file_magic_cmd
15500 # Flag that allows shared libraries with undefined symbols to be built.
15501 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15503 # Flag that forces no undefined symbols.
15504 no_undefined_flag=$lt_no_undefined_flag_CXX
15506 # Commands used to finish a libtool library installation in a directory.
15507 finish_cmds=$lt_finish_cmds
15509 # Same as above, but a single script fragment to be evaled but not shown.
15510 finish_eval=$lt_finish_eval
15512 # Take the output of nm and produce a listing of raw symbols and C names.
15513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15515 # Transform the output of nm in a proper C declaration
15516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15518 # Transform the output of nm in a C name address pair
15519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15521 # This is the shared library runtime path variable.
15522 runpath_var=$runpath_var
15524 # This is the shared library path variable.
15525 shlibpath_var=$shlibpath_var
15527 # Is shlibpath searched before the hard-coded library search path?
15528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15530 # How to hardcode a shared library path into an executable.
15531 hardcode_action=$hardcode_action_CXX
15533 # Whether we should hardcode library paths into libraries.
15534 hardcode_into_libs=$hardcode_into_libs
15536 # Flag to hardcode \$libdir into a binary during linking.
15537 # This must work even if \$libdir does not exist.
15538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15540 # If ld is used when linking, flag to hardcode \$libdir into
15541 # a binary during linking. This must work even if \$libdir does
15543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15545 # Whether we need a single -rpath flag with a separated argument.
15546 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15548 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15549 # resulting binary.
15550 hardcode_direct=$hardcode_direct_CXX
15552 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15553 # resulting binary.
15554 hardcode_minus_L=$hardcode_minus_L_CXX
15556 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15557 # the resulting binary.
15558 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15560 # Set to yes if building a shared library automatically hardcodes DIR into the library
15561 # and all subsequent libraries and executables linked against it.
15562 hardcode_automatic=$hardcode_automatic_CXX
15564 # Variables whose values should be saved in libtool wrapper scripts and
15565 # restored at relink time.
15566 variables_saved_for_relink="$variables_saved_for_relink"
15568 # Whether libtool must link a program against all its dependency libraries.
15569 link_all_deplibs=$link_all_deplibs_CXX
15571 # Compile-time system search path for libraries
15572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15574 # Run-time system search path for libraries
15575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15577 # Fix the shell variable \$srcfile for the compiler.
15578 fix_srcfile_path="$fix_srcfile_path_CXX"
15580 # Set to yes if exported symbols are required.
15581 always_export_symbols=$always_export_symbols_CXX
15583 # The commands to list exported symbols.
15584 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15586 # The commands to extract the exported symbol list from a shared archive.
15587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15589 # Symbols that should not be listed in the preloaded symbols.
15590 exclude_expsyms=$lt_exclude_expsyms_CXX
15592 # Symbols that must always be exported.
15593 include_expsyms=$lt_include_expsyms_CXX
15595 # ### END LIBTOOL TAG CONFIG: $tagname
15601 # If there is no Makefile yet, we rely on a make rule to execute
15602 # `config.status --recheck' to rerun these tests and create the
15603 # libtool script then.
15604 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15605 if test -f "$ltmain_in"; then
15606 test -f Makefile && make "$ltmain"
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15621 with_gnu_ldcxx=$with_gnu_ld
15622 with_gnu_ld=$lt_save_with_gnu_ld
15623 lt_cv_path_LDCXX=$lt_cv_path_LD
15624 lt_cv_path_LD=$lt_save_path_LD
15625 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15626 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15634 if test -n "$F77" && test "X$F77" != "Xno"; then
15637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15642 archive_cmds_need_lc_F77=no
15643 allow_undefined_flag_F77=
15644 always_export_symbols_F77=no
15645 archive_expsym_cmds_F77=
15646 export_dynamic_flag_spec_F77=
15647 hardcode_direct_F77=no
15648 hardcode_libdir_flag_spec_F77=
15649 hardcode_libdir_flag_spec_ld_F77=
15650 hardcode_libdir_separator_F77=
15651 hardcode_minus_L_F77=no
15652 hardcode_automatic_F77=no
15654 module_expsym_cmds_F77=
15655 link_all_deplibs_F77=unknown
15656 old_archive_cmds_F77=$old_archive_cmds
15657 no_undefined_flag_F77=
15658 whole_archive_flag_spec_F77=
15659 enable_shared_with_static_runtimes_F77=no
15661 # Source file extension for f77 test sources.
15664 # Object file extension for compiled f77 test sources.
15668 # Code to be used in simple compile tests
15669 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15671 # Code to be used in simple link tests
15672 lt_simple_link_test_code=" program t\n end\n"
15674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15676 # If no C compiler was specified, use CC.
15679 # Allow CC to be a program name with arguments.
15683 # save warnings/boilerplate of simple test code
15684 ac_outfile=conftest.$ac_objext
15685 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15686 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15687 _lt_compiler_boilerplate=`cat conftest.err`
15690 ac_outfile=conftest.$ac_objext
15691 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15692 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15693 _lt_linker_boilerplate=`cat conftest.err`
15697 # Allow CC to be a program name with arguments.
15702 for cc_temp in $compiler""; do
15704 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15705 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15710 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15713 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15714 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15715 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15716 echo "${ECHO_T}$can_build_shared" >&6
15718 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15719 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15720 test "$can_build_shared" = "no" && enable_shared=no
15722 # On AIX, shared libraries and static libraries use the same namespace, and
15723 # are all built from PIC.
15726 test "$enable_shared" = yes && enable_static=no
15727 if test -n "$RANLIB"; then
15728 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15729 postinstall_cmds='$RANLIB $lib'
15733 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15734 test "$enable_shared" = yes && enable_static=no
15738 echo "$as_me:$LINENO: result: $enable_shared" >&5
15739 echo "${ECHO_T}$enable_shared" >&6
15741 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15742 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15743 # Make sure either enable_shared or enable_static is yes.
15744 test "$enable_shared" = yes || enable_static=yes
15745 echo "$as_me:$LINENO: result: $enable_static" >&5
15746 echo "${ECHO_T}$enable_static" >&6
15748 test "$ld_shlibs_F77" = no && can_build_shared=no
15753 lt_prog_compiler_wl_F77=
15754 lt_prog_compiler_pic_F77=
15755 lt_prog_compiler_static_F77=
15757 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15758 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15760 if test "$GCC" = yes; then
15761 lt_prog_compiler_wl_F77='-Wl,'
15762 lt_prog_compiler_static_F77='-static'
15766 # All AIX code is PIC.
15767 if test "$host_cpu" = ia64; then
15768 # AIX 5 now supports IA64 processor
15769 lt_prog_compiler_static_F77='-Bstatic'
15774 # FIXME: we need at least 68020 code to build shared libraries, but
15775 # adding the `-m68020' flag to GCC prevents building anything better,
15777 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15780 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15781 # PIC is the default for these OSes.
15784 mingw* | pw32* | os2*)
15785 # This hack is so that the source file can tell whether it is being
15786 # built for inclusion in a dll (and should export symbols for example).
15787 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15790 darwin* | rhapsody*)
15791 # PIC is the default on this platform
15792 # Common symbols not allowed in MH_DYLIB files
15793 lt_prog_compiler_pic_F77='-fno-common'
15797 # Just because we use GCC doesn't mean we suddenly get shared libraries
15798 # on systems that don't support them.
15799 lt_prog_compiler_can_build_shared_F77=no
15804 if test -d /usr/nec; then
15805 lt_prog_compiler_pic_F77=-Kconform_pic
15810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15811 # not for PA HP-UX.
15812 case "$host_cpu" in
15817 lt_prog_compiler_pic_F77='-fPIC'
15823 lt_prog_compiler_pic_F77='-fPIC'
15827 # PORTME Check for flag to pass linker flags through the system compiler.
15830 lt_prog_compiler_wl_F77='-Wl,'
15831 if test "$host_cpu" = ia64; then
15832 # AIX 5 now supports IA64 processor
15833 lt_prog_compiler_static_F77='-Bstatic'
15835 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15839 # PIC is the default on this platform
15840 # Common symbols not allowed in MH_DYLIB files
15841 case $cc_basename in
15843 lt_prog_compiler_pic_F77='-qnocommon'
15844 lt_prog_compiler_wl_F77='-Wl,'
15849 mingw* | pw32* | os2*)
15850 # This hack is so that the source file can tell whether it is being
15851 # built for inclusion in a dll (and should export symbols for example).
15852 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15855 hpux9* | hpux10* | hpux11*)
15856 lt_prog_compiler_wl_F77='-Wl,'
15857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15858 # not for PA HP-UX.
15859 case "$host_cpu" in
15864 lt_prog_compiler_pic_F77='+Z'
15867 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15868 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15871 irix5* | irix6* | nonstopux*)
15872 lt_prog_compiler_wl_F77='-Wl,'
15873 # PIC (with -KPIC) is the default.
15874 lt_prog_compiler_static_F77='-non_shared'
15878 lt_prog_compiler_pic_F77='-KPIC'
15879 lt_prog_compiler_static_F77='-Bstatic'
15883 case $cc_basename in
15885 lt_prog_compiler_wl_F77='-Wl,'
15886 lt_prog_compiler_pic_F77='-KPIC'
15887 lt_prog_compiler_static_F77='-static'
15889 pgcc* | pgf77* | pgf90*)
15890 # Portland Group compilers (*not* the Pentium gcc compiler,
15891 # which looks to be a dead project)
15892 lt_prog_compiler_wl_F77='-Wl,'
15893 lt_prog_compiler_pic_F77='-fpic'
15894 lt_prog_compiler_static_F77='-static'
15897 lt_prog_compiler_wl_F77='-Wl,'
15898 # All Alpha code is PIC.
15899 lt_prog_compiler_static_F77='-non_shared'
15904 osf3* | osf4* | osf5*)
15905 lt_prog_compiler_wl_F77='-Wl,'
15906 # All OSF/1 code is PIC.
15907 lt_prog_compiler_static_F77='-non_shared'
15911 lt_prog_compiler_pic_F77='-Kpic'
15912 lt_prog_compiler_static_F77='-dn'
15916 lt_prog_compiler_pic_F77='-KPIC'
15917 lt_prog_compiler_static_F77='-Bstatic'
15918 case $cc_basename in
15919 f77* | f90* | f95*)
15920 lt_prog_compiler_wl_F77='-Qoption ld ';;
15922 lt_prog_compiler_wl_F77='-Wl,';;
15927 lt_prog_compiler_wl_F77='-Qoption ld '
15928 lt_prog_compiler_pic_F77='-PIC'
15929 lt_prog_compiler_static_F77='-Bstatic'
15932 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15933 lt_prog_compiler_wl_F77='-Wl,'
15934 lt_prog_compiler_pic_F77='-KPIC'
15935 lt_prog_compiler_static_F77='-Bstatic'
15939 if test -d /usr/nec ;then
15940 lt_prog_compiler_pic_F77='-Kconform_pic'
15941 lt_prog_compiler_static_F77='-Bstatic'
15946 lt_prog_compiler_wl_F77='-Wl,'
15947 lt_prog_compiler_can_build_shared_F77=no
15951 lt_prog_compiler_pic_F77='-pic'
15952 lt_prog_compiler_static_F77='-Bstatic'
15956 lt_prog_compiler_can_build_shared_F77=no
15961 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15962 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15965 # Check to make sure the PIC flag actually works.
15967 if test -n "$lt_prog_compiler_pic_F77"; then
15969 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15970 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15971 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15974 lt_prog_compiler_pic_works_F77=no
15975 ac_outfile=conftest.$ac_objext
15976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15977 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15978 # Insert the option either (1) after the last *FLAGS variable, or
15979 # (2) before a word containing "conftest.", or (3) at the end.
15980 # Note that $ac_compile itself does not contain backslashes and begins
15981 # with a dollar sign (not a hyphen), so the echo should work correctly.
15982 # The option is referenced via a variable to avoid confusing sed.
15983 lt_compile=`echo "$ac_compile" | $SED \
15984 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15986 -e 's:$: $lt_compiler_flag:'`
15987 (eval echo "\"\$as_me:15987: $lt_compile\"" >&5)
15988 (eval "$lt_compile" 2>conftest.err)
15990 cat conftest.err >&5
15991 echo "$as_me:15991: \$? = $ac_status" >&5
15992 if (exit $ac_status) && test -s "$ac_outfile"; then
15993 # The compiler can only warn and ignore the option if not recognized
15994 # So say no if there are warnings other than the usual output.
15995 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15996 $SED '/^$/d' conftest.err >conftest.er2
15997 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15998 lt_prog_compiler_pic_works_F77=yes
16004 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16005 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16007 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16008 case $lt_prog_compiler_pic_F77 in
16010 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16013 lt_prog_compiler_pic_F77=
16014 lt_prog_compiler_can_build_shared_F77=no
16019 # For platforms which do not support PIC, -DPIC is meaningless:
16021 lt_prog_compiler_pic_F77=
16024 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16028 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16029 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16030 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 lt_cv_prog_compiler_c_o_F77=no
16034 $rm -r conftest 2>/dev/null
16038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16040 lt_compiler_flag="-o out/conftest2.$ac_objext"
16041 # Insert the option either (1) after the last *FLAGS variable, or
16042 # (2) before a word containing "conftest.", or (3) at the end.
16043 # Note that $ac_compile itself does not contain backslashes and begins
16044 # with a dollar sign (not a hyphen), so the echo should work correctly.
16045 lt_compile=`echo "$ac_compile" | $SED \
16046 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16048 -e 's:$: $lt_compiler_flag:'`
16049 (eval echo "\"\$as_me:16049: $lt_compile\"" >&5)
16050 (eval "$lt_compile" 2>out/conftest.err)
16052 cat out/conftest.err >&5
16053 echo "$as_me:16053: \$? = $ac_status" >&5
16054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16056 # The compiler can only warn and ignore the option if not recognized
16057 # So say no if there are warnings
16058 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16059 $SED '/^$/d' out/conftest.err >out/conftest.er2
16060 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16061 lt_cv_prog_compiler_c_o_F77=yes
16066 # SGI C++ compiler will create directory out/ii_files/ for
16067 # template instantiation
16068 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16069 $rm out/* && rmdir out
16075 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16076 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16079 hard_links="nottested"
16080 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16081 # do not overwrite the value of need_locks provided by the user
16082 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16083 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16088 ln conftest.a conftest.b 2>&5 || hard_links=no
16089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16090 echo "$as_me:$LINENO: result: $hard_links" >&5
16091 echo "${ECHO_T}$hard_links" >&6
16092 if test "$hard_links" = no; then
16093 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16094 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16101 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16102 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16105 allow_undefined_flag_F77=
16106 enable_shared_with_static_runtimes_F77=no
16108 archive_expsym_cmds_F77=
16109 old_archive_From_new_cmds_F77=
16110 old_archive_from_expsyms_cmds_F77=
16111 export_dynamic_flag_spec_F77=
16112 whole_archive_flag_spec_F77=
16113 thread_safe_flag_spec_F77=
16114 hardcode_libdir_flag_spec_F77=
16115 hardcode_libdir_flag_spec_ld_F77=
16116 hardcode_libdir_separator_F77=
16117 hardcode_direct_F77=no
16118 hardcode_minus_L_F77=no
16119 hardcode_shlibpath_var_F77=unsupported
16120 link_all_deplibs_F77=unknown
16121 hardcode_automatic_F77=no
16123 module_expsym_cmds_F77=
16124 always_export_symbols_F77=no
16125 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16126 # include_expsyms should be a list of space-separated symbols to be *always*
16127 # included in the symbol list
16128 include_expsyms_F77=
16129 # exclude_expsyms can be an extended regexp of symbols to exclude
16130 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16132 # as well as any symbol that contains `d'.
16133 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16135 # platforms (ab)use it in PIC code, but their linkers get confused if
16136 # the symbol is explicitly referenced. Since portable code cannot
16137 # rely on this symbol name, it's probably fine to never include it in
16138 # preloaded symbol tables.
16139 extract_expsyms_cmds=
16140 # Just being paranoid about ensuring that cc_basename is set.
16141 for cc_temp in $compiler""; do
16143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16149 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16152 cygwin* | mingw* | pw32*)
16153 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16154 # When not using gcc, we currently assume that we are using
16155 # Microsoft Visual C++.
16156 if test "$GCC" != yes; then
16166 if test "$with_gnu_ld" = yes; then
16167 # If archive_cmds runs LD, not CC, wlarc should be empty
16170 # Set some defaults for GNU ld with shared library support. These
16171 # are reset later if shared libraries are not supported. Putting them
16172 # here allows them to be overridden if necessary.
16173 runpath_var=LD_RUN_PATH
16174 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16175 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16176 # ancient GNU ld didn't support --whole-archive et. al.
16177 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16178 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16180 whole_archive_flag_spec_F77=
16182 supports_anon_versioning=no
16183 case `$LD -v 2>/dev/null` in
16184 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16185 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16186 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16187 *\ 2.11.*) ;; # other 2.11 versions
16188 *) supports_anon_versioning=yes ;;
16191 # See if GNU ld supports shared libraries.
16193 aix3* | aix4* | aix5*)
16194 # On AIX/PPC, the GNU linker is very broken
16195 if test "$host_cpu" != ia64; then
16199 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16200 *** to be unable to reliably create shared libraries on AIX.
16201 *** Therefore, libtool is disabling shared libraries support. If you
16202 *** really care for shared libraries, you may want to modify your PATH
16203 *** so that a non-GNU linker is found, and then restart.
16210 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)'
16211 hardcode_libdir_flag_spec_F77='-L$libdir'
16212 hardcode_minus_L_F77=yes
16214 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16215 # that the semantics of dynamic libraries on AmigaOS, at least up
16216 # to version 4, is to share data among multiple programs linked
16217 # with the same dynamic library. Since this doesn't match the
16218 # behavior of shared libraries on other platforms, we can't use
16224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16225 allow_undefined_flag_F77=unsupported
16226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16227 # support --undefined. This deserves some investigation. FIXME
16228 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16234 cygwin* | mingw* | pw32*)
16235 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16236 # as there is no search path for DLLs.
16237 hardcode_libdir_flag_spec_F77='-L$libdir'
16238 allow_undefined_flag_F77=unsupported
16239 always_export_symbols_F77=no
16240 enable_shared_with_static_runtimes_F77=yes
16241 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16243 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16244 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16245 # If the export-symbols file already is a .def file (1st line
16246 # is EXPORTS), use it as is; otherwise, prepend...
16247 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16248 cp $export_symbols $output_objdir/$soname.def;
16250 echo EXPORTS > $output_objdir/$soname.def;
16251 cat $export_symbols >> $output_objdir/$soname.def;
16253 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16262 case $cc_basename,$host_cpu in
16263 pgcc*) # Portland Group C compiler
16264 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'
16265 tmp_addflag=' $pic_flag'
16267 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16268 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'
16269 tmp_addflag=' $pic_flag -Mnomain' ;;
16270 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16271 tmp_addflag=' -i_dynamic' ;;
16272 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16273 tmp_addflag=' -i_dynamic -nofor_main' ;;
16274 ifc* | ifort*) # Intel Fortran compiler
16275 tmp_addflag=' -nofor_main' ;;
16277 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16279 if test $supports_anon_versioning = yes; then
16280 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16282 $echo "local: *; };" >> $output_objdir/$libname.ver~
16283 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16292 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
16301 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16305 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16306 *** create shared libraries on Solaris systems. Therefore, libtool
16307 *** is disabling shared libraries support. We urge you to upgrade GNU
16308 *** binutils to release 2.9.1 or newer. Another option is to modify
16309 *** your PATH or compiler configuration so that the native linker is
16310 *** used, and then restart.
16313 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16314 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16315 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16322 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16324 hardcode_direct_F77=yes
16325 hardcode_shlibpath_var_F77=no
16329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16330 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16331 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16338 if test "$ld_shlibs_F77" = no; then
16340 hardcode_libdir_flag_spec_F77=
16341 export_dynamic_flag_spec_F77=
16342 whole_archive_flag_spec_F77=
16345 # PORTME fill in a description of your system's linker (not GNU ld)
16348 allow_undefined_flag_F77=unsupported
16349 always_export_symbols_F77=yes
16350 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'
16351 # Note: this linker hardcodes the directories in LIBPATH if there
16352 # are no directories specified by -L.
16353 hardcode_minus_L_F77=yes
16354 if test "$GCC" = yes && test -z "$link_static_flag"; then
16355 # Neither direct hardcoding nor static linking is supported with a
16357 hardcode_direct_F77=unsupported
16362 if test "$host_cpu" = ia64; then
16363 # On IA64, the linker does run time linking by default, so we don't
16364 # have to do anything special.
16365 aix_use_runtimelinking=no
16366 exp_sym_flag='-Bexport'
16369 # If we're using GNU nm, then we don't want the "-C" option.
16370 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16371 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16372 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'
16374 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'
16376 aix_use_runtimelinking=no
16378 # Test if we are trying to use run time linking or normal
16379 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16380 # need to do runtime linking.
16381 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16382 for ld_flag in $LDFLAGS; do
16383 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16384 aix_use_runtimelinking=yes
16390 exp_sym_flag='-bexport'
16391 no_entry_flag='-bnoentry'
16394 # When large executables or shared objects are built, AIX ld can
16395 # have problems creating the table of contents. If linking a library
16396 # or program results in "error TOC overflow" add -mminimal-toc to
16397 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16398 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16400 archive_cmds_F77=''
16401 hardcode_direct_F77=yes
16402 hardcode_libdir_separator_F77=':'
16403 link_all_deplibs_F77=yes
16405 if test "$GCC" = yes; then
16406 case $host_os in aix4.[012]|aix4.[012].*)
16407 # We only want to do this on AIX 4.2 and lower, the check
16408 # below for broken collect2 doesn't work under 4.3+
16409 collect2name=`${CC} -print-prog-name=collect2`
16410 if test -f "$collect2name" && \
16411 strings "$collect2name" | grep resolve_lib_name >/dev/null
16413 # We have reworked collect2
16414 hardcode_direct_F77=yes
16416 # We have old collect2
16417 hardcode_direct_F77=unsupported
16418 # It fails to find uninstalled libraries when the uninstalled
16419 # path is not listed in the libpath. Setting hardcode_minus_L
16420 # to unsupported forces relinking
16421 hardcode_minus_L_F77=yes
16422 hardcode_libdir_flag_spec_F77='-L$libdir'
16423 hardcode_libdir_separator_F77=
16426 shared_flag='-shared'
16427 if test "$aix_use_runtimelinking" = yes; then
16428 shared_flag="$shared_flag "'${wl}-G'
16432 if test "$host_cpu" = ia64; then
16433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16434 # chokes on -Wl,-G. The following line is correct:
16437 if test "$aix_use_runtimelinking" = yes; then
16438 shared_flag='${wl}-G'
16440 shared_flag='${wl}-bM:SRE'
16445 # It seems that -bexpall does not export symbols beginning with
16446 # underscore (_), so it is better to generate a list of symbols to export.
16447 always_export_symbols_F77=yes
16448 if test "$aix_use_runtimelinking" = yes; then
16449 # Warning - without using the other runtime loading flags (-brtl),
16450 # -berok will link without error, but may produce a broken library.
16451 allow_undefined_flag_F77='-berok'
16452 # Determine the default libpath from the value encoded in an empty executable.
16453 cat >conftest.$ac_ext <<_ACEOF
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460 (eval $ac_link) 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_f77_werror_flag"
16468 || test ! -s conftest.err'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; } &&
16474 { ac_try='test -s conftest$ac_exeext'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16483 # Check for a 64-bit object if we didn't find anything.
16484 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; }
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16491 rm -f conftest.err conftest.$ac_objext \
16492 conftest$ac_exeext conftest.$ac_ext
16493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16495 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16496 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"
16498 if test "$host_cpu" = ia64; then
16499 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16500 allow_undefined_flag_F77="-z nodefs"
16501 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"
16503 # Determine the default libpath from the value encoded in an empty executable.
16504 cat >conftest.$ac_ext <<_ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511 (eval $ac_link) 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_f77_werror_flag"
16519 || test ! -s conftest.err'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest$ac_exeext'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16532 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16534 # Check for a 64-bit object if we didn't find anything.
16535 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; }
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16542 rm -f conftest.err conftest.$ac_objext \
16543 conftest$ac_exeext conftest.$ac_ext
16544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16546 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16547 # Warning - without using the other run time loading flags,
16548 # -berok will link without error, but may produce a broken library.
16549 no_undefined_flag_F77=' ${wl}-bernotok'
16550 allow_undefined_flag_F77=' ${wl}-berok'
16551 # -bexpall does not export symbols beginning with underscore (_)
16552 always_export_symbols_F77=yes
16553 # Exported symbols can be pulled into shared objects from archives
16554 whole_archive_flag_spec_F77=' '
16555 archive_cmds_need_lc_F77=yes
16556 # This is similar to how AIX traditionally builds it's shared libraries.
16557 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'
16563 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)'
16564 hardcode_libdir_flag_spec_F77='-L$libdir'
16565 hardcode_minus_L_F77=yes
16566 # see comment about different semantics on the GNU ld section
16571 export_dynamic_flag_spec_F77=-rdynamic
16574 cygwin* | mingw* | pw32*)
16575 # When not using gcc, we currently assume that we are using
16576 # Microsoft Visual C++.
16577 # hardcode_libdir_flag_spec is actually meaningless, as there is
16578 # no search path for DLLs.
16579 hardcode_libdir_flag_spec_F77=' '
16580 allow_undefined_flag_F77=unsupported
16581 # Tell ltmain to make .lib files, not .a files.
16583 # Tell ltmain to make .dll files, not .so files.
16585 # FIXME: Setting linknames here is a bad hack.
16586 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16587 # The linker will automatically build a .lib file if we build a DLL.
16588 old_archive_From_new_cmds_F77='true'
16589 # FIXME: Should let the user specify the lib program.
16590 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16591 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16592 enable_shared_with_static_runtimes_F77=yes
16595 darwin* | rhapsody*)
16597 rhapsody* | darwin1.[012])
16598 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16601 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16602 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16604 case ${MACOSX_DEPLOYMENT_TARGET} in
16606 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16609 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16615 archive_cmds_need_lc_F77=no
16616 hardcode_direct_F77=no
16617 hardcode_automatic_F77=yes
16618 hardcode_shlibpath_var_F77=unsupported
16619 whole_archive_flag_spec_F77=''
16620 link_all_deplibs_F77=yes
16621 if test "$GCC" = yes ; then
16622 output_verbose_link_cmd='echo'
16623 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16624 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16625 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16626 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}'
16627 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}'
16629 case $cc_basename in
16631 output_verbose_link_cmd='echo'
16632 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16633 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16634 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16635 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}'
16636 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}'
16646 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16647 hardcode_libdir_flag_spec_F77='-L$libdir'
16648 hardcode_shlibpath_var_F77=no
16655 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16656 # support. Future versions do this automatically, but an explicit c++rt0.o
16657 # does not break anything, and helps significantly (at the cost of a little
16660 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16661 hardcode_libdir_flag_spec_F77='-R$libdir'
16662 hardcode_direct_F77=yes
16663 hardcode_shlibpath_var_F77=no
16666 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16668 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16669 hardcode_direct_F77=yes
16670 hardcode_minus_L_F77=yes
16671 hardcode_shlibpath_var_F77=no
16674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16675 freebsd* | kfreebsd*-gnu | dragonfly*)
16676 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16677 hardcode_libdir_flag_spec_F77='-R$libdir'
16678 hardcode_direct_F77=yes
16679 hardcode_shlibpath_var_F77=no
16683 if test "$GCC" = yes; then
16684 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'
16686 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'
16688 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16689 hardcode_libdir_separator_F77=:
16690 hardcode_direct_F77=yes
16692 # hardcode_minus_L: Not really in the search PATH,
16693 # but as the default location of the library.
16694 hardcode_minus_L_F77=yes
16695 export_dynamic_flag_spec_F77='${wl}-E'
16699 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16700 case "$host_cpu" in
16702 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16705 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16709 case "$host_cpu" in
16711 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16714 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16718 if test "$with_gnu_ld" = no; then
16719 case "$host_cpu" in
16721 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16722 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16723 hardcode_libdir_separator_F77=:
16724 hardcode_direct_F77=no
16725 hardcode_shlibpath_var_F77=no
16728 hardcode_libdir_flag_spec_F77='-L$libdir'
16729 hardcode_direct_F77=no
16730 hardcode_shlibpath_var_F77=no
16732 # hardcode_minus_L: Not really in the search PATH,
16733 # but as the default location of the library.
16734 hardcode_minus_L_F77=yes
16737 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16738 hardcode_libdir_separator_F77=:
16739 hardcode_direct_F77=yes
16740 export_dynamic_flag_spec_F77='${wl}-E'
16742 # hardcode_minus_L: Not really in the search PATH,
16743 # but as the default location of the library.
16744 hardcode_minus_L_F77=yes
16750 irix5* | irix6* | nonstopux*)
16751 if test "$GCC" = yes; then
16752 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'
16754 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'
16755 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16757 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16758 hardcode_libdir_separator_F77=:
16759 link_all_deplibs_F77=yes
16763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16764 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16766 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16768 hardcode_libdir_flag_spec_F77='-R$libdir'
16769 hardcode_direct_F77=yes
16770 hardcode_shlibpath_var_F77=no
16774 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16775 hardcode_direct_F77=yes
16776 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16777 hardcode_libdir_separator_F77=:
16778 hardcode_shlibpath_var_F77=no
16782 hardcode_direct_F77=yes
16783 hardcode_shlibpath_var_F77=no
16784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16785 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16786 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16787 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16788 export_dynamic_flag_spec_F77='${wl}-E'
16791 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16792 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16793 hardcode_libdir_flag_spec_F77='-R$libdir'
16796 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16797 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16804 hardcode_libdir_flag_spec_F77='-L$libdir'
16805 hardcode_minus_L_F77=yes
16806 allow_undefined_flag_F77=unsupported
16807 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'
16808 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16812 if test "$GCC" = yes; then
16813 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16814 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'
16816 allow_undefined_flag_F77=' -expect_unresolved \*'
16817 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'
16819 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16820 hardcode_libdir_separator_F77=:
16823 osf4* | osf5*) # as osf3* with the addition of -msym flag
16824 if test "$GCC" = yes; then
16825 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16826 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'
16827 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16829 allow_undefined_flag_F77=' -expect_unresolved \*'
16830 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'
16831 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~
16832 $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'
16834 # Both c and cxx compiler support -rpath directly
16835 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16837 hardcode_libdir_separator_F77=:
16841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842 hardcode_shlibpath_var_F77=no
16843 export_dynamic_flag_spec_F77='${wl}-Bexport'
16844 runpath_var=LD_RUN_PATH
16845 hardcode_runpath_var=yes
16849 no_undefined_flag_F77=' -z text'
16850 if test "$GCC" = yes; then
16852 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16853 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16854 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16857 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16858 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16859 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16861 hardcode_libdir_flag_spec_F77='-R$libdir'
16862 hardcode_shlibpath_var_F77=no
16864 solaris2.[0-5] | solaris2.[0-5].*) ;;
16866 # The compiler driver will combine linker options so we
16867 # cannot just pass the convience library names through
16868 # without $wl, iff we do not link with $LD.
16869 # Luckily, gcc supports the same syntax we need for Sun Studio.
16870 # Supported since Solaris 2.6 (maybe 2.5.1?)
16873 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16875 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' ;;
16878 link_all_deplibs_F77=yes
16882 if test "x$host_vendor" = xsequent; then
16883 # Use $CC to link under sequent, because it throws in some extra .o
16884 # files that make .init and .fini sections work.
16885 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16887 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16889 hardcode_libdir_flag_spec_F77='-L$libdir'
16890 hardcode_direct_F77=yes
16891 hardcode_minus_L_F77=yes
16892 hardcode_shlibpath_var_F77=no
16896 case $host_vendor in
16898 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_direct_F77=yes # is this really true???
16902 ## LD is ld it makes a PLAMLIB
16903 ## CC just makes a GrossModule.
16904 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16905 reload_cmds_F77='$CC -r -o $output$reload_objs'
16906 hardcode_direct_F77=no
16909 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16910 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16913 runpath_var='LD_RUN_PATH'
16914 hardcode_shlibpath_var_F77=no
16918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16919 hardcode_shlibpath_var_F77=no
16920 export_dynamic_flag_spec_F77='-Bexport'
16924 if test -d /usr/nec; then
16925 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16926 hardcode_shlibpath_var_F77=no
16927 runpath_var=LD_RUN_PATH
16928 hardcode_runpath_var=yes
16934 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16935 hardcode_direct_F77=yes
16936 hardcode_minus_L_F77=no
16937 hardcode_shlibpath_var_F77=no
16938 hardcode_runpath_var=yes
16939 runpath_var=LD_RUN_PATH
16942 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16943 no_undefined_flag_F77='${wl}-z ${wl}text'
16944 if test "$GCC" = yes; then
16945 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16947 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16949 runpath_var='LD_RUN_PATH'
16950 hardcode_shlibpath_var_F77=no
16954 no_undefined_flag_F77=' -z text'
16955 # $CC -shared without GNU ld will not create a library from C++
16956 # object files and a static libstdc++, better avoid it by now
16957 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16960 hardcode_libdir_flag_spec_F77=
16961 hardcode_shlibpath_var_F77=no
16962 runpath_var='LD_RUN_PATH'
16966 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16967 hardcode_libdir_flag_spec_F77='-L$libdir'
16968 hardcode_shlibpath_var_F77=no
16977 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16978 echo "${ECHO_T}$ld_shlibs_F77" >&6
16979 test "$ld_shlibs_F77" = no && can_build_shared=no
16981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16982 if test "$GCC" = yes; then
16983 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16987 # Do we need to explicitly link libc?
16989 case "x$archive_cmds_need_lc_F77" in
16991 # Assume -lc should be added
16992 archive_cmds_need_lc_F77=yes
16994 if test "$enable_shared" = yes && test "$GCC" = yes; then
16995 case $archive_cmds_F77 in
16997 # FIXME: we may have to deal with multi-command sequences.
17000 # Test whether the compiler implicitly links with -lc since on some
17001 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17002 # to ld, don't add -lc before -lgcc.
17003 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17004 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17006 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17009 (eval $ac_compile) 2>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } 2>conftest.err; then
17015 libobjs=conftest.$ac_objext
17017 wl=$lt_prog_compiler_wl_F77
17023 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17024 allow_undefined_flag_F77=
17025 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17026 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }
17031 archive_cmds_need_lc_F77=no
17033 archive_cmds_need_lc_F77=yes
17035 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17037 cat conftest.err 1>&5
17040 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17041 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17048 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17049 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17050 library_names_spec=
17051 libname_spec='lib$name'
17055 postuninstall_cmds=
17059 shlibpath_overrides_runpath=unknown
17061 dynamic_linker="$host_os ld.so"
17062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17063 if test "$GCC" = yes; then
17064 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17065 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17066 # if the path contains ";" then we assume it to be the separator
17067 # otherwise default to the standard path separator (i.e. ":") - it is
17068 # assumed that no part of a normal pathname contains ";" but that should
17069 # okay in the real world where ";" in dirpaths is itself problematic.
17070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17077 need_lib_prefix=unknown
17078 hardcode_into_libs=no
17080 # when you set need_version to no, make sure it does not cause -set_version
17081 # flags to be left without arguments
17082 need_version=unknown
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17088 shlibpath_var=LIBPATH
17090 # AIX 3 has no versioning support, so we append a major version to the name.
17091 soname_spec='${libname}${release}${shared_ext}$major'
17098 hardcode_into_libs=yes
17099 if test "$host_cpu" = ia64; then
17100 # AIX 5 supports IA64
17101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17102 shlibpath_var=LD_LIBRARY_PATH
17104 # With GCC up to 2.95.x, collect2 would create an import file
17105 # for dependence libraries. The import file would start with
17106 # the line `#! .'. This would cause the generated library to
17107 # depend on `.', always an invalid library. This was fixed in
17108 # development snapshots of GCC prior to 3.0.
17110 aix4 | aix4.[01] | aix4.[01].*)
17111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17113 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17116 can_build_shared=no
17120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17121 # soname into executable. Probably we can add versioning support to
17122 # collect2, so additional links can be useful in future.
17123 if test "$aix_use_runtimelinking" = yes; then
17124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17125 # instead of lib<name>.a to let people know that these are not
17126 # typical AIX shared libraries.
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129 # We preserve .a as extension for shared libraries through AIX4.2
17130 # and later when we are not doing run time linking.
17131 library_names_spec='${libname}${release}.a $libname.a'
17132 soname_spec='${libname}${release}${shared_ext}$major'
17134 shlibpath_var=LIBPATH
17139 library_names_spec='$libname.ixlibrary $libname.a'
17140 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17141 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'
17145 library_names_spec='${libname}${shared_ext}'
17146 dynamic_linker="$host_os ld.so"
17147 shlibpath_var=LIBRARY_PATH
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17156 shlibpath_var=LD_LIBRARY_PATH
17157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17159 # the default ld.so.conf also contains /usr/contrib/lib and
17160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17161 # libtool to hard-code these into programs
17164 cygwin* | mingw* | pw32*)
17165 version_type=windows
17170 case $GCC,$host_os in
17171 yes,cygwin* | yes,mingw* | yes,pw32*)
17172 library_names_spec='$libname.dll.a'
17173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17174 postinstall_cmds='base_file=`basename \${file}`~
17175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17176 dldir=$destdir/`dirname \$dlpath`~
17177 test -d \$dldir || mkdir -p \$dldir~
17178 $install_prog $dir/$dlname \$dldir/$dlname'
17179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17180 dlpath=$dir/\$dldll~
17182 shlibpath_overrides_runpath=yes
17186 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17187 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17188 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17191 # MinGW DLLs use traditional 'lib' prefix
17192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17193 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17194 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17195 # It is most probably a Windows format PATH printed by
17196 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17197 # path with ; separators, and with drive letters. We can handle the
17198 # drive letters (cygwin fileutils understands them), so leave them,
17199 # especially as we might pass files found there to a mingw objdump,
17200 # which wouldn't understand a cygwinified path. Ahh.
17201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17203 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17207 # pw32 DLLs use 'pw' prefix rather than 'lib'
17208 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17214 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17217 dynamic_linker='Win32 ld.exe'
17218 # FIXME: first we should search . and the directory the executable is in
17222 darwin* | rhapsody*)
17223 dynamic_linker="$host_os dyld"
17224 version_type=darwin
17227 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17228 soname_spec='${libname}${release}${major}$shared_ext'
17229 shlibpath_overrides_runpath=yes
17230 shlibpath_var=DYLD_LIBRARY_PATH
17231 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17232 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17233 if test "$GCC" = yes; then
17234 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"`
17236 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 shlibpath_var=LD_LIBRARY_PATH
17258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 shlibpath_var=LD_LIBRARY_PATH
17261 shlibpath_overrides_runpath=no
17262 hardcode_into_libs=yes
17263 dynamic_linker='GNU ld.so'
17266 freebsd* | dragonfly*)
17267 # DragonFly does not have aout. When/if they implement a new
17268 # versioning mechanism, adjust this.
17269 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17270 version_type=freebsd-$objformat
17271 case $version_type in
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17282 shlibpath_var=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath=yes
17287 freebsd3.[01]* | freebsdelf3.[01]*)
17288 shlibpath_overrides_runpath=yes
17289 hardcode_into_libs=yes
17292 shlibpath_overrides_runpath=no
17293 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
17305 hardcode_into_libs=yes
17308 hpux9* | hpux10* | hpux11*)
17309 # Give a soname corresponding to the major version so that dld.sl refuses to
17310 # link against other versions.
17314 case "$host_cpu" in
17317 hardcode_into_libs=yes
17318 dynamic_linker="$host_os dld.so"
17319 shlibpath_var=LD_LIBRARY_PATH
17320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 soname_spec='${libname}${release}${shared_ext}$major'
17323 if test "X$HPUX_IA64_MODE" = X32; then
17324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17332 hardcode_into_libs=yes
17333 dynamic_linker="$host_os dld.sl"
17334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17343 dynamic_linker="$host_os dld.sl"
17344 shlibpath_var=SHLIB_PATH
17345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347 soname_spec='${libname}${release}${shared_ext}$major'
17350 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17351 postinstall_cmds='chmod 555 $lib'
17354 irix5* | irix6* | nonstopux*)
17356 nonstopux*) version_type=nonstopux ;;
17358 if test "$lt_cv_prog_gnu_ld" = yes; then
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17369 irix5* | nonstopux*)
17370 libsuff= shlibsuff=
17373 case $LD in # libtool.m4 will add one of these switches to LD
17374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17375 libsuff= shlibsuff= libmagic=32-bit;;
17376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17377 libsuff=32 shlibsuff=N32 libmagic=N32;;
17378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17380 *) libsuff= shlibsuff= libmagic=never-match;;
17384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17385 shlibpath_overrides_runpath=no
17386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17388 hardcode_into_libs=yes
17391 # No shared lib support for Linux oldld, aout, or coff.
17392 linux*oldld* | linux*aout* | linux*coff*)
17396 # This must be Linux ELF.
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 shlibpath_overrides_runpath=no
17406 # This implies no fast_install, which is unacceptable.
17407 # Some rework will be needed to allow for fast_install
17408 # before this can be enabled.
17409 hardcode_into_libs=yes
17411 # Append ld.so.conf contents to the search path
17412 if test -f /etc/ld.so.conf; then
17413 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' ' '`
17414 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17417 # We used to test for /lib/ld.so.1 and disable shared libraries on
17418 # powerpc, because MkLinux only supported shared libraries with the
17419 # GNU dynamic linker. Since this was broken with cross compilers,
17420 # most powerpc-linux boxes support dynamic linking these days and
17421 # people can always --disable-shared, the test was removed, and we
17422 # assume the GNU/Linux dynamic linker is in use.
17423 dynamic_linker='GNU/Linux ld.so'
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 shlibpath_var=LD_LIBRARY_PATH
17433 shlibpath_overrides_runpath=no
17434 hardcode_into_libs=yes
17435 dynamic_linker='GNU ld.so'
17442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17445 dynamic_linker='NetBSD (a.out) ld.so'
17447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17448 soname_spec='${libname}${release}${shared_ext}$major'
17449 dynamic_linker='NetBSD ld.elf_so'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=yes
17453 hardcode_into_libs=yes
17458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17459 shlibpath_var=LD_LIBRARY_PATH
17460 shlibpath_overrides_runpath=yes
17467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17468 soname_spec='${libname}${release}${shared_ext}$major'
17469 shlibpath_var=LD_LIBRARY_PATH
17470 shlibpath_overrides_runpath=yes
17476 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17478 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17479 *) need_version=no ;;
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17483 shlibpath_var=LD_LIBRARY_PATH
17484 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17486 openbsd2.[89] | openbsd2.[89].*)
17487 shlibpath_overrides_runpath=no
17490 shlibpath_overrides_runpath=yes
17494 shlibpath_overrides_runpath=yes
17499 libname_spec='$name'
17502 library_names_spec='$libname${shared_ext} $libname.a'
17503 dynamic_linker='OS/2 ld.exe'
17504 shlibpath_var=LIBPATH
17507 osf3* | osf4* | osf5*)
17511 soname_spec='${libname}${release}${shared_ext}$major'
17512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17513 shlibpath_var=LD_LIBRARY_PATH
17514 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17515 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17520 soname_spec='${libname}${release}${shared_ext}$major'
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522 shlibpath_var=LD_LIBRARY_PATH
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530 soname_spec='${libname}${release}${shared_ext}$major'
17531 shlibpath_var=LD_LIBRARY_PATH
17532 shlibpath_overrides_runpath=yes
17533 hardcode_into_libs=yes
17534 # ldd complains unless libraries are executable
17535 postinstall_cmds='chmod +x $lib'
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17541 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17542 shlibpath_var=LD_LIBRARY_PATH
17543 shlibpath_overrides_runpath=yes
17544 if test "$with_gnu_ld" = yes; then
17550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553 soname_spec='${libname}${release}${shared_ext}$major'
17554 shlibpath_var=LD_LIBRARY_PATH
17555 case $host_vendor in
17557 shlibpath_overrides_runpath=no
17559 export_dynamic_flag_spec='${wl}-Blargedynsym'
17560 runpath_var=LD_RUN_PATH
17568 shlibpath_overrides_runpath=no
17569 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17575 if test -d /usr/nec ;then
17577 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17578 soname_spec='$libname${shared_ext}.$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 shlibpath_var=LD_LIBRARY_PATH
17594 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17595 echo "${ECHO_T}$dynamic_linker" >&6
17596 test "$dynamic_linker" = no && can_build_shared=no
17598 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17599 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17600 hardcode_action_F77=
17601 if test -n "$hardcode_libdir_flag_spec_F77" || \
17602 test -n "$runpath_var_F77" || \
17603 test "X$hardcode_automatic_F77" = "Xyes" ; then
17605 # We can hardcode non-existant directories.
17606 if test "$hardcode_direct_F77" != no &&
17607 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17608 # have to relink, otherwise we might link with an installed library
17609 # when we should be linking with a yet-to-be-installed one
17610 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17611 test "$hardcode_minus_L_F77" != no; then
17612 # Linking always hardcodes the temporary library directory.
17613 hardcode_action_F77=relink
17615 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17616 hardcode_action_F77=immediate
17619 # We cannot hardcode anything, or else we can only hardcode existing
17621 hardcode_action_F77=unsupported
17623 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17624 echo "${ECHO_T}$hardcode_action_F77" >&6
17626 if test "$hardcode_action_F77" = relink; then
17627 # Fast installation is not supported
17628 enable_fast_install=no
17629 elif test "$shlibpath_overrides_runpath" = yes ||
17630 test "$enable_shared" = no; then
17631 # Fast installation is not necessary
17632 enable_fast_install=needless
17637 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17638 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17639 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17640 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17641 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17642 echo "$as_me:$LINENO: result: yes" >&5
17643 echo "${ECHO_T}yes" >&6
17645 # FIXME - insert some real tests, host_os isn't really good enough
17648 if test -n "$STRIP" ; then
17649 striplib="$STRIP -x"
17650 echo "$as_me:$LINENO: result: yes" >&5
17651 echo "${ECHO_T}yes" >&6
17653 echo "$as_me:$LINENO: result: no" >&5
17654 echo "${ECHO_T}no" >&6
17658 echo "$as_me:$LINENO: result: no" >&5
17659 echo "${ECHO_T}no" >&6
17666 # The else clause should only fire when bootstrapping the
17667 # libtool distribution, otherwise you forgot to ship ltmain.sh
17668 # with your package, and you will get complaints that there are
17669 # no rules to generate ltmain.sh.
17670 if test -f "$ltmain"; then
17671 # See if we are running on zsh, and set the options which allow our commands through
17672 # without removal of \ escapes.
17673 if test -n "${ZSH_VERSION+set}" ; then
17674 setopt NO_GLOB_SUBST
17676 # Now quote all the things that may contain metacharacters while being
17677 # careful not to overquote the AC_SUBSTed values. We take copies of the
17678 # variables and quote the copies for generation of the libtool script.
17679 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17681 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17682 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17683 deplibs_check_method reload_flag reload_cmds need_locks \
17684 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17685 lt_cv_sys_global_symbol_to_c_name_address \
17686 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17687 old_postinstall_cmds old_postuninstall_cmds \
17691 lt_prog_compiler_wl_F77 \
17692 lt_prog_compiler_pic_F77 \
17693 lt_prog_compiler_static_F77 \
17694 lt_prog_compiler_no_builtin_flag_F77 \
17695 export_dynamic_flag_spec_F77 \
17696 thread_safe_flag_spec_F77 \
17697 whole_archive_flag_spec_F77 \
17698 enable_shared_with_static_runtimes_F77 \
17699 old_archive_cmds_F77 \
17700 old_archive_from_new_cmds_F77 \
17701 predep_objects_F77 \
17702 postdep_objects_F77 \
17705 compiler_lib_search_path_F77 \
17707 archive_expsym_cmds_F77 \
17708 postinstall_cmds_F77 \
17709 postuninstall_cmds_F77 \
17710 old_archive_from_expsyms_cmds_F77 \
17711 allow_undefined_flag_F77 \
17712 no_undefined_flag_F77 \
17713 export_symbols_cmds_F77 \
17714 hardcode_libdir_flag_spec_F77 \
17715 hardcode_libdir_flag_spec_ld_F77 \
17716 hardcode_libdir_separator_F77 \
17717 hardcode_automatic_F77 \
17719 module_expsym_cmds_F77 \
17720 lt_cv_prog_compiler_c_o_F77 \
17721 exclude_expsyms_F77 \
17722 include_expsyms_F77; do
17725 old_archive_cmds_F77 | \
17726 old_archive_from_new_cmds_F77 | \
17727 archive_cmds_F77 | \
17728 archive_expsym_cmds_F77 | \
17729 module_cmds_F77 | \
17730 module_expsym_cmds_F77 | \
17731 old_archive_from_expsyms_cmds_F77 | \
17732 export_symbols_cmds_F77 | \
17733 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17734 postinstall_cmds | postuninstall_cmds | \
17735 old_postinstall_cmds | old_postuninstall_cmds | \
17736 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17737 # Double-quote double-evaled strings.
17738 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17747 *'\$0 --fallback-echo"')
17748 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17754 cat <<__EOF__ >> "$cfgfile"
17755 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17759 # Shell to use when invoking shell scripts.
17762 # Whether or not to build shared libraries.
17763 build_libtool_libs=$enable_shared
17765 # Whether or not to build static libraries.
17766 build_old_libs=$enable_static
17768 # Whether or not to add -lc for building shared libraries.
17769 build_libtool_need_lc=$archive_cmds_need_lc_F77
17771 # Whether or not to disallow shared libs when runtime libs are static
17772 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17774 # Whether or not to optimize for fast installation.
17775 fast_install=$enable_fast_install
17778 host_alias=$host_alias
17782 # The build system.
17783 build_alias=$build_alias
17787 # An echo program that does not interpret backslashes.
17792 AR_FLAGS=$lt_AR_FLAGS
17797 # A language-specific compiler.
17798 CC=$lt_compiler_F77
17800 # Is the compiler the GNU C compiler?
17806 # The linker used to build libraries.
17809 # Whether we need hard or soft links.
17812 # A BSD-compatible nm program.
17815 # A symbol stripping program
17818 # Used to examine libraries when file_magic_cmd begins "file"
17819 MAGIC_CMD=$MAGIC_CMD
17821 # Used on cygwin: DLL creation program.
17824 # Used on cygwin: object dumper.
17827 # Used on cygwin: assembler.
17830 # The name of the directory that contains temporary libtool files.
17833 # How to create reloadable object files.
17834 reload_flag=$lt_reload_flag
17835 reload_cmds=$lt_reload_cmds
17837 # How to pass a linker flag through the compiler.
17838 wl=$lt_lt_prog_compiler_wl_F77
17840 # Object file suffix (normally "o").
17841 objext="$ac_objext"
17843 # Old archive suffix (normally "a").
17846 # Shared library suffix (normally ".so").
17847 shrext_cmds='$shrext_cmds'
17849 # Executable file suffix (normally "").
17852 # Additional compiler flags for building library objects.
17853 pic_flag=$lt_lt_prog_compiler_pic_F77
17856 # What is the maximum length of a command?
17857 max_cmd_len=$lt_cv_sys_max_cmd_len
17859 # Does compiler simultaneously support -c and -o options?
17860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17862 # Must we lock files when doing compilation?
17863 need_locks=$lt_need_locks
17865 # Do we need the lib prefix for modules?
17866 need_lib_prefix=$need_lib_prefix
17868 # Do we need a version for libraries?
17869 need_version=$need_version
17871 # Whether dlopen is supported.
17872 dlopen_support=$enable_dlopen
17874 # Whether dlopen of programs is supported.
17875 dlopen_self=$enable_dlopen_self
17877 # Whether dlopen of statically linked programs is supported.
17878 dlopen_self_static=$enable_dlopen_self_static
17880 # Compiler flag to prevent dynamic linking.
17881 link_static_flag=$lt_lt_prog_compiler_static_F77
17883 # Compiler flag to turn off builtin functions.
17884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17886 # Compiler flag to allow reflexive dlopens.
17887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17889 # Compiler flag to generate shared objects directly from archives.
17890 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17892 # Compiler flag to generate thread-safe objects.
17893 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17895 # Library versioning type.
17896 version_type=$version_type
17898 # Format of library name prefix.
17899 libname_spec=$lt_libname_spec
17901 # List of archive names. First name is the real one, the rest are links.
17902 # The last name is the one that the linker finds with -lNAME.
17903 library_names_spec=$lt_library_names_spec
17905 # The coded name of the library, if different from the real name.
17906 soname_spec=$lt_soname_spec
17908 # Commands used to build and install an old-style archive.
17910 old_archive_cmds=$lt_old_archive_cmds_F77
17911 old_postinstall_cmds=$lt_old_postinstall_cmds
17912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17914 # Create an old-style archive from a shared archive.
17915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17917 # Create a temporary old-style archive to link instead of a shared archive.
17918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17920 # Commands used to build and install a shared archive.
17921 archive_cmds=$lt_archive_cmds_F77
17922 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17923 postinstall_cmds=$lt_postinstall_cmds
17924 postuninstall_cmds=$lt_postuninstall_cmds
17926 # Commands used to build a loadable module (assumed same as above if empty)
17927 module_cmds=$lt_module_cmds_F77
17928 module_expsym_cmds=$lt_module_expsym_cmds_F77
17930 # Commands to strip libraries.
17931 old_striplib=$lt_old_striplib
17932 striplib=$lt_striplib
17934 # Dependencies to place before the objects being linked to create a
17936 predep_objects=$lt_predep_objects_F77
17938 # Dependencies to place after the objects being linked to create a
17940 postdep_objects=$lt_postdep_objects_F77
17942 # Dependencies to place before the objects being linked to create a
17944 predeps=$lt_predeps_F77
17946 # Dependencies to place after the objects being linked to create a
17948 postdeps=$lt_postdeps_F77
17950 # The library search path used internally by the compiler when linking
17951 # a shared library.
17952 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17954 # Method to check whether dependent libraries are shared objects.
17955 deplibs_check_method=$lt_deplibs_check_method
17957 # Command to use when deplibs_check_method == file_magic.
17958 file_magic_cmd=$lt_file_magic_cmd
17960 # Flag that allows shared libraries with undefined symbols to be built.
17961 allow_undefined_flag=$lt_allow_undefined_flag_F77
17963 # Flag that forces no undefined symbols.
17964 no_undefined_flag=$lt_no_undefined_flag_F77
17966 # Commands used to finish a libtool library installation in a directory.
17967 finish_cmds=$lt_finish_cmds
17969 # Same as above, but a single script fragment to be evaled but not shown.
17970 finish_eval=$lt_finish_eval
17972 # Take the output of nm and produce a listing of raw symbols and C names.
17973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17975 # Transform the output of nm in a proper C declaration
17976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17978 # Transform the output of nm in a C name address pair
17979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17981 # This is the shared library runtime path variable.
17982 runpath_var=$runpath_var
17984 # This is the shared library path variable.
17985 shlibpath_var=$shlibpath_var
17987 # Is shlibpath searched before the hard-coded library search path?
17988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17990 # How to hardcode a shared library path into an executable.
17991 hardcode_action=$hardcode_action_F77
17993 # Whether we should hardcode library paths into libraries.
17994 hardcode_into_libs=$hardcode_into_libs
17996 # Flag to hardcode \$libdir into a binary during linking.
17997 # This must work even if \$libdir does not exist.
17998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18000 # If ld is used when linking, flag to hardcode \$libdir into
18001 # a binary during linking. This must work even if \$libdir does
18003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18005 # Whether we need a single -rpath flag with a separated argument.
18006 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18009 # resulting binary.
18010 hardcode_direct=$hardcode_direct_F77
18012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18013 # resulting binary.
18014 hardcode_minus_L=$hardcode_minus_L_F77
18016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18017 # the resulting binary.
18018 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18020 # Set to yes if building a shared library automatically hardcodes DIR into the library
18021 # and all subsequent libraries and executables linked against it.
18022 hardcode_automatic=$hardcode_automatic_F77
18024 # Variables whose values should be saved in libtool wrapper scripts and
18025 # restored at relink time.
18026 variables_saved_for_relink="$variables_saved_for_relink"
18028 # Whether libtool must link a program against all its dependency libraries.
18029 link_all_deplibs=$link_all_deplibs_F77
18031 # Compile-time system search path for libraries
18032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18034 # Run-time system search path for libraries
18035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18037 # Fix the shell variable \$srcfile for the compiler.
18038 fix_srcfile_path="$fix_srcfile_path_F77"
18040 # Set to yes if exported symbols are required.
18041 always_export_symbols=$always_export_symbols_F77
18043 # The commands to list exported symbols.
18044 export_symbols_cmds=$lt_export_symbols_cmds_F77
18046 # The commands to extract the exported symbol list from a shared archive.
18047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18049 # Symbols that should not be listed in the preloaded symbols.
18050 exclude_expsyms=$lt_exclude_expsyms_F77
18052 # Symbols that must always be exported.
18053 include_expsyms=$lt_include_expsyms_F77
18055 # ### END LIBTOOL TAG CONFIG: $tagname
18061 # If there is no Makefile yet, we rely on a make rule to execute
18062 # `config.status --recheck' to rerun these tests and create the
18063 # libtool script then.
18064 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18065 if test -f "$ltmain_in"; then
18066 test -f Makefile && make "$ltmain"
18072 ac_cpp='$CPP $CPPFLAGS'
18073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18085 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18089 # Source file extension for Java test sources.
18092 # Object file extension for compiled Java test sources.
18096 # Code to be used in simple compile tests
18097 lt_simple_compile_test_code="class foo {}\n"
18099 # Code to be used in simple link tests
18100 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18104 # If no C compiler was specified, use CC.
18107 # Allow CC to be a program name with arguments.
18111 # save warnings/boilerplate of simple test code
18112 ac_outfile=conftest.$ac_objext
18113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18115 _lt_compiler_boilerplate=`cat conftest.err`
18118 ac_outfile=conftest.$ac_objext
18119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18121 _lt_linker_boilerplate=`cat conftest.err`
18125 # Allow CC to be a program name with arguments.
18130 for cc_temp in $compiler""; do
18132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18141 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18142 archive_cmds_need_lc_GCJ=no
18144 old_archive_cmds_GCJ=$old_archive_cmds
18147 lt_prog_compiler_no_builtin_flag_GCJ=
18149 if test "$GCC" = yes; then
18150 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18153 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18154 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18155 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 lt_cv_prog_compiler_rtti_exceptions=no
18159 ac_outfile=conftest.$ac_objext
18160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18161 lt_compiler_flag="-fno-rtti -fno-exceptions"
18162 # Insert the option either (1) after the last *FLAGS variable, or
18163 # (2) before a word containing "conftest.", or (3) at the end.
18164 # Note that $ac_compile itself does not contain backslashes and begins
18165 # with a dollar sign (not a hyphen), so the echo should work correctly.
18166 # The option is referenced via a variable to avoid confusing sed.
18167 lt_compile=`echo "$ac_compile" | $SED \
18168 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18170 -e 's:$: $lt_compiler_flag:'`
18171 (eval echo "\"\$as_me:18171: $lt_compile\"" >&5)
18172 (eval "$lt_compile" 2>conftest.err)
18174 cat conftest.err >&5
18175 echo "$as_me:18175: \$? = $ac_status" >&5
18176 if (exit $ac_status) && test -s "$ac_outfile"; then
18177 # The compiler can only warn and ignore the option if not recognized
18178 # So say no if there are warnings other than the usual output.
18179 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18180 $SED '/^$/d' conftest.err >conftest.er2
18181 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18182 lt_cv_prog_compiler_rtti_exceptions=yes
18188 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18189 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18191 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18192 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18199 lt_prog_compiler_wl_GCJ=
18200 lt_prog_compiler_pic_GCJ=
18201 lt_prog_compiler_static_GCJ=
18203 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18204 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18206 if test "$GCC" = yes; then
18207 lt_prog_compiler_wl_GCJ='-Wl,'
18208 lt_prog_compiler_static_GCJ='-static'
18212 # All AIX code is PIC.
18213 if test "$host_cpu" = ia64; then
18214 # AIX 5 now supports IA64 processor
18215 lt_prog_compiler_static_GCJ='-Bstatic'
18220 # FIXME: we need at least 68020 code to build shared libraries, but
18221 # adding the `-m68020' flag to GCC prevents building anything better,
18223 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18226 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18227 # PIC is the default for these OSes.
18230 mingw* | pw32* | os2*)
18231 # This hack is so that the source file can tell whether it is being
18232 # built for inclusion in a dll (and should export symbols for example).
18233 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18236 darwin* | rhapsody*)
18237 # PIC is the default on this platform
18238 # Common symbols not allowed in MH_DYLIB files
18239 lt_prog_compiler_pic_GCJ='-fno-common'
18243 # Just because we use GCC doesn't mean we suddenly get shared libraries
18244 # on systems that don't support them.
18245 lt_prog_compiler_can_build_shared_GCJ=no
18250 if test -d /usr/nec; then
18251 lt_prog_compiler_pic_GCJ=-Kconform_pic
18256 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18257 # not for PA HP-UX.
18258 case "$host_cpu" in
18263 lt_prog_compiler_pic_GCJ='-fPIC'
18269 lt_prog_compiler_pic_GCJ='-fPIC'
18273 # PORTME Check for flag to pass linker flags through the system compiler.
18276 lt_prog_compiler_wl_GCJ='-Wl,'
18277 if test "$host_cpu" = ia64; then
18278 # AIX 5 now supports IA64 processor
18279 lt_prog_compiler_static_GCJ='-Bstatic'
18281 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18285 # PIC is the default on this platform
18286 # Common symbols not allowed in MH_DYLIB files
18287 case $cc_basename in
18289 lt_prog_compiler_pic_GCJ='-qnocommon'
18290 lt_prog_compiler_wl_GCJ='-Wl,'
18295 mingw* | pw32* | os2*)
18296 # This hack is so that the source file can tell whether it is being
18297 # built for inclusion in a dll (and should export symbols for example).
18298 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18301 hpux9* | hpux10* | hpux11*)
18302 lt_prog_compiler_wl_GCJ='-Wl,'
18303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18304 # not for PA HP-UX.
18305 case "$host_cpu" in
18310 lt_prog_compiler_pic_GCJ='+Z'
18313 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18314 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18317 irix5* | irix6* | nonstopux*)
18318 lt_prog_compiler_wl_GCJ='-Wl,'
18319 # PIC (with -KPIC) is the default.
18320 lt_prog_compiler_static_GCJ='-non_shared'
18324 lt_prog_compiler_pic_GCJ='-KPIC'
18325 lt_prog_compiler_static_GCJ='-Bstatic'
18329 case $cc_basename in
18331 lt_prog_compiler_wl_GCJ='-Wl,'
18332 lt_prog_compiler_pic_GCJ='-KPIC'
18333 lt_prog_compiler_static_GCJ='-static'
18335 pgcc* | pgf77* | pgf90*)
18336 # Portland Group compilers (*not* the Pentium gcc compiler,
18337 # which looks to be a dead project)
18338 lt_prog_compiler_wl_GCJ='-Wl,'
18339 lt_prog_compiler_pic_GCJ='-fpic'
18340 lt_prog_compiler_static_GCJ='-static'
18343 lt_prog_compiler_wl_GCJ='-Wl,'
18344 # All Alpha code is PIC.
18345 lt_prog_compiler_static_GCJ='-non_shared'
18350 osf3* | osf4* | osf5*)
18351 lt_prog_compiler_wl_GCJ='-Wl,'
18352 # All OSF/1 code is PIC.
18353 lt_prog_compiler_static_GCJ='-non_shared'
18357 lt_prog_compiler_pic_GCJ='-Kpic'
18358 lt_prog_compiler_static_GCJ='-dn'
18362 lt_prog_compiler_pic_GCJ='-KPIC'
18363 lt_prog_compiler_static_GCJ='-Bstatic'
18364 case $cc_basename in
18365 f77* | f90* | f95*)
18366 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18368 lt_prog_compiler_wl_GCJ='-Wl,';;
18373 lt_prog_compiler_wl_GCJ='-Qoption ld '
18374 lt_prog_compiler_pic_GCJ='-PIC'
18375 lt_prog_compiler_static_GCJ='-Bstatic'
18378 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18379 lt_prog_compiler_wl_GCJ='-Wl,'
18380 lt_prog_compiler_pic_GCJ='-KPIC'
18381 lt_prog_compiler_static_GCJ='-Bstatic'
18385 if test -d /usr/nec ;then
18386 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18387 lt_prog_compiler_static_GCJ='-Bstatic'
18392 lt_prog_compiler_wl_GCJ='-Wl,'
18393 lt_prog_compiler_can_build_shared_GCJ=no
18397 lt_prog_compiler_pic_GCJ='-pic'
18398 lt_prog_compiler_static_GCJ='-Bstatic'
18402 lt_prog_compiler_can_build_shared_GCJ=no
18407 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18408 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18411 # Check to make sure the PIC flag actually works.
18413 if test -n "$lt_prog_compiler_pic_GCJ"; then
18415 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18416 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18417 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 lt_prog_compiler_pic_works_GCJ=no
18421 ac_outfile=conftest.$ac_objext
18422 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18423 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18424 # Insert the option either (1) after the last *FLAGS variable, or
18425 # (2) before a word containing "conftest.", or (3) at the end.
18426 # Note that $ac_compile itself does not contain backslashes and begins
18427 # with a dollar sign (not a hyphen), so the echo should work correctly.
18428 # The option is referenced via a variable to avoid confusing sed.
18429 lt_compile=`echo "$ac_compile" | $SED \
18430 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18432 -e 's:$: $lt_compiler_flag:'`
18433 (eval echo "\"\$as_me:18433: $lt_compile\"" >&5)
18434 (eval "$lt_compile" 2>conftest.err)
18436 cat conftest.err >&5
18437 echo "$as_me:18437: \$? = $ac_status" >&5
18438 if (exit $ac_status) && test -s "$ac_outfile"; then
18439 # The compiler can only warn and ignore the option if not recognized
18440 # So say no if there are warnings other than the usual output.
18441 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18442 $SED '/^$/d' conftest.err >conftest.er2
18443 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18444 lt_prog_compiler_pic_works_GCJ=yes
18450 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18451 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18453 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18454 case $lt_prog_compiler_pic_GCJ in
18456 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18459 lt_prog_compiler_pic_GCJ=
18460 lt_prog_compiler_can_build_shared_GCJ=no
18465 # For platforms which do not support PIC, -DPIC is meaningless:
18467 lt_prog_compiler_pic_GCJ=
18470 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18474 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18476 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 lt_cv_prog_compiler_c_o_GCJ=no
18480 $rm -r conftest 2>/dev/null
18484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18486 lt_compiler_flag="-o out/conftest2.$ac_objext"
18487 # Insert the option either (1) after the last *FLAGS variable, or
18488 # (2) before a word containing "conftest.", or (3) at the end.
18489 # Note that $ac_compile itself does not contain backslashes and begins
18490 # with a dollar sign (not a hyphen), so the echo should work correctly.
18491 lt_compile=`echo "$ac_compile" | $SED \
18492 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18494 -e 's:$: $lt_compiler_flag:'`
18495 (eval echo "\"\$as_me:18495: $lt_compile\"" >&5)
18496 (eval "$lt_compile" 2>out/conftest.err)
18498 cat out/conftest.err >&5
18499 echo "$as_me:18499: \$? = $ac_status" >&5
18500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18502 # The compiler can only warn and ignore the option if not recognized
18503 # So say no if there are warnings
18504 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18505 $SED '/^$/d' out/conftest.err >out/conftest.er2
18506 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18507 lt_cv_prog_compiler_c_o_GCJ=yes
18512 # SGI C++ compiler will create directory out/ii_files/ for
18513 # template instantiation
18514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18515 $rm out/* && rmdir out
18521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18525 hard_links="nottested"
18526 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18527 # do not overwrite the value of need_locks provided by the user
18528 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18534 ln conftest.a conftest.b 2>&5 || hard_links=no
18535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18536 echo "$as_me:$LINENO: result: $hard_links" >&5
18537 echo "${ECHO_T}$hard_links" >&6
18538 if test "$hard_links" = no; then
18539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18547 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18551 allow_undefined_flag_GCJ=
18552 enable_shared_with_static_runtimes_GCJ=no
18554 archive_expsym_cmds_GCJ=
18555 old_archive_From_new_cmds_GCJ=
18556 old_archive_from_expsyms_cmds_GCJ=
18557 export_dynamic_flag_spec_GCJ=
18558 whole_archive_flag_spec_GCJ=
18559 thread_safe_flag_spec_GCJ=
18560 hardcode_libdir_flag_spec_GCJ=
18561 hardcode_libdir_flag_spec_ld_GCJ=
18562 hardcode_libdir_separator_GCJ=
18563 hardcode_direct_GCJ=no
18564 hardcode_minus_L_GCJ=no
18565 hardcode_shlibpath_var_GCJ=unsupported
18566 link_all_deplibs_GCJ=unknown
18567 hardcode_automatic_GCJ=no
18569 module_expsym_cmds_GCJ=
18570 always_export_symbols_GCJ=no
18571 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18572 # include_expsyms should be a list of space-separated symbols to be *always*
18573 # included in the symbol list
18574 include_expsyms_GCJ=
18575 # exclude_expsyms can be an extended regexp of symbols to exclude
18576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18578 # as well as any symbol that contains `d'.
18579 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18581 # platforms (ab)use it in PIC code, but their linkers get confused if
18582 # the symbol is explicitly referenced. Since portable code cannot
18583 # rely on this symbol name, it's probably fine to never include it in
18584 # preloaded symbol tables.
18585 extract_expsyms_cmds=
18586 # Just being paranoid about ensuring that cc_basename is set.
18587 for cc_temp in $compiler""; do
18589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18598 cygwin* | mingw* | pw32*)
18599 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18600 # When not using gcc, we currently assume that we are using
18601 # Microsoft Visual C++.
18602 if test "$GCC" != yes; then
18612 if test "$with_gnu_ld" = yes; then
18613 # If archive_cmds runs LD, not CC, wlarc should be empty
18616 # Set some defaults for GNU ld with shared library support. These
18617 # are reset later if shared libraries are not supported. Putting them
18618 # here allows them to be overridden if necessary.
18619 runpath_var=LD_RUN_PATH
18620 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18621 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18622 # ancient GNU ld didn't support --whole-archive et. al.
18623 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18624 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18626 whole_archive_flag_spec_GCJ=
18628 supports_anon_versioning=no
18629 case `$LD -v 2>/dev/null` in
18630 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18631 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18632 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18633 *\ 2.11.*) ;; # other 2.11 versions
18634 *) supports_anon_versioning=yes ;;
18637 # See if GNU ld supports shared libraries.
18639 aix3* | aix4* | aix5*)
18640 # On AIX/PPC, the GNU linker is very broken
18641 if test "$host_cpu" != ia64; then
18645 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18646 *** to be unable to reliably create shared libraries on AIX.
18647 *** Therefore, libtool is disabling shared libraries support. If you
18648 *** really care for shared libraries, you may want to modify your PATH
18649 *** so that a non-GNU linker is found, and then restart.
18656 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)'
18657 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18658 hardcode_minus_L_GCJ=yes
18660 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18661 # that the semantics of dynamic libraries on AmigaOS, at least up
18662 # to version 4, is to share data among multiple programs linked
18663 # with the same dynamic library. Since this doesn't match the
18664 # behavior of shared libraries on other platforms, we can't use
18670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18671 allow_undefined_flag_GCJ=unsupported
18672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18673 # support --undefined. This deserves some investigation. FIXME
18674 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18680 cygwin* | mingw* | pw32*)
18681 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18682 # as there is no search path for DLLs.
18683 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18684 allow_undefined_flag_GCJ=unsupported
18685 always_export_symbols_GCJ=no
18686 enable_shared_with_static_runtimes_GCJ=yes
18687 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18689 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18690 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18691 # If the export-symbols file already is a .def file (1st line
18692 # is EXPORTS), use it as is; otherwise, prepend...
18693 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18694 cp $export_symbols $output_objdir/$soname.def;
18696 echo EXPORTS > $output_objdir/$soname.def;
18697 cat $export_symbols >> $output_objdir/$soname.def;
18699 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18708 case $cc_basename,$host_cpu in
18709 pgcc*) # Portland Group C compiler
18710 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'
18711 tmp_addflag=' $pic_flag'
18713 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18714 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'
18715 tmp_addflag=' $pic_flag -Mnomain' ;;
18716 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18717 tmp_addflag=' -i_dynamic' ;;
18718 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18719 tmp_addflag=' -i_dynamic -nofor_main' ;;
18720 ifc* | ifort*) # Intel Fortran compiler
18721 tmp_addflag=' -nofor_main' ;;
18723 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18725 if test $supports_anon_versioning = yes; then
18726 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18728 $echo "local: *; };" >> $output_objdir/$libname.ver~
18729 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18738 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
18747 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18751 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18752 *** create shared libraries on Solaris systems. Therefore, libtool
18753 *** is disabling shared libraries support. We urge you to upgrade GNU
18754 *** binutils to release 2.9.1 or newer. Another option is to modify
18755 *** your PATH or compiler configuration so that the native linker is
18756 *** used, and then restart.
18759 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18760 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18761 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18768 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18770 hardcode_direct_GCJ=yes
18771 hardcode_shlibpath_var_GCJ=no
18775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18776 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18777 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18784 if test "$ld_shlibs_GCJ" = no; then
18786 hardcode_libdir_flag_spec_GCJ=
18787 export_dynamic_flag_spec_GCJ=
18788 whole_archive_flag_spec_GCJ=
18791 # PORTME fill in a description of your system's linker (not GNU ld)
18794 allow_undefined_flag_GCJ=unsupported
18795 always_export_symbols_GCJ=yes
18796 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'
18797 # Note: this linker hardcodes the directories in LIBPATH if there
18798 # are no directories specified by -L.
18799 hardcode_minus_L_GCJ=yes
18800 if test "$GCC" = yes && test -z "$link_static_flag"; then
18801 # Neither direct hardcoding nor static linking is supported with a
18803 hardcode_direct_GCJ=unsupported
18808 if test "$host_cpu" = ia64; then
18809 # On IA64, the linker does run time linking by default, so we don't
18810 # have to do anything special.
18811 aix_use_runtimelinking=no
18812 exp_sym_flag='-Bexport'
18815 # If we're using GNU nm, then we don't want the "-C" option.
18816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18817 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18818 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'
18820 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'
18822 aix_use_runtimelinking=no
18824 # Test if we are trying to use run time linking or normal
18825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18826 # need to do runtime linking.
18827 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18828 for ld_flag in $LDFLAGS; do
18829 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18830 aix_use_runtimelinking=yes
18836 exp_sym_flag='-bexport'
18837 no_entry_flag='-bnoentry'
18840 # When large executables or shared objects are built, AIX ld can
18841 # have problems creating the table of contents. If linking a library
18842 # or program results in "error TOC overflow" add -mminimal-toc to
18843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18846 archive_cmds_GCJ=''
18847 hardcode_direct_GCJ=yes
18848 hardcode_libdir_separator_GCJ=':'
18849 link_all_deplibs_GCJ=yes
18851 if test "$GCC" = yes; then
18852 case $host_os in aix4.[012]|aix4.[012].*)
18853 # We only want to do this on AIX 4.2 and lower, the check
18854 # below for broken collect2 doesn't work under 4.3+
18855 collect2name=`${CC} -print-prog-name=collect2`
18856 if test -f "$collect2name" && \
18857 strings "$collect2name" | grep resolve_lib_name >/dev/null
18859 # We have reworked collect2
18860 hardcode_direct_GCJ=yes
18862 # We have old collect2
18863 hardcode_direct_GCJ=unsupported
18864 # It fails to find uninstalled libraries when the uninstalled
18865 # path is not listed in the libpath. Setting hardcode_minus_L
18866 # to unsupported forces relinking
18867 hardcode_minus_L_GCJ=yes
18868 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18869 hardcode_libdir_separator_GCJ=
18872 shared_flag='-shared'
18873 if test "$aix_use_runtimelinking" = yes; then
18874 shared_flag="$shared_flag "'${wl}-G'
18878 if test "$host_cpu" = ia64; then
18879 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18880 # chokes on -Wl,-G. The following line is correct:
18883 if test "$aix_use_runtimelinking" = yes; then
18884 shared_flag='${wl}-G'
18886 shared_flag='${wl}-bM:SRE'
18891 # It seems that -bexpall does not export symbols beginning with
18892 # underscore (_), so it is better to generate a list of symbols to export.
18893 always_export_symbols_GCJ=yes
18894 if test "$aix_use_runtimelinking" = yes; then
18895 # Warning - without using the other runtime loading flags (-brtl),
18896 # -berok will link without error, but may produce a broken library.
18897 allow_undefined_flag_GCJ='-berok'
18898 # Determine the default libpath from the value encoded in an empty executable.
18899 cat >conftest.$ac_ext <<_ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18916 (eval $ac_link) 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } &&
18923 { ac_try='test -z "$ac_c_werror_flag"
18924 || test ! -s conftest.err'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try='test -s conftest$ac_exeext'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18939 # Check for a 64-bit object if we didn't find anything.
18940 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; }
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18947 rm -f conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18951 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18952 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"
18954 if test "$host_cpu" = ia64; then
18955 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18956 allow_undefined_flag_GCJ="-z nodefs"
18957 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"
18959 # Determine the default libpath from the value encoded in an empty executable.
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18975 rm -f conftest.$ac_objext conftest$ac_exeext
18976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18977 (eval $ac_link) 2>conftest.er1
18979 grep -v '^ *+' conftest.er1 >conftest.err
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag"
18985 || test ! -s conftest.err'
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest$ac_exeext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19000 # Check for a 64-bit object if we didn't find anything.
19001 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; }
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19008 rm -f conftest.err conftest.$ac_objext \
19009 conftest$ac_exeext conftest.$ac_ext
19010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19012 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19013 # Warning - without using the other run time loading flags,
19014 # -berok will link without error, but may produce a broken library.
19015 no_undefined_flag_GCJ=' ${wl}-bernotok'
19016 allow_undefined_flag_GCJ=' ${wl}-berok'
19017 # -bexpall does not export symbols beginning with underscore (_)
19018 always_export_symbols_GCJ=yes
19019 # Exported symbols can be pulled into shared objects from archives
19020 whole_archive_flag_spec_GCJ=' '
19021 archive_cmds_need_lc_GCJ=yes
19022 # This is similar to how AIX traditionally builds it's shared libraries.
19023 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'
19029 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)'
19030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19031 hardcode_minus_L_GCJ=yes
19032 # see comment about different semantics on the GNU ld section
19037 export_dynamic_flag_spec_GCJ=-rdynamic
19040 cygwin* | mingw* | pw32*)
19041 # When not using gcc, we currently assume that we are using
19042 # Microsoft Visual C++.
19043 # hardcode_libdir_flag_spec is actually meaningless, as there is
19044 # no search path for DLLs.
19045 hardcode_libdir_flag_spec_GCJ=' '
19046 allow_undefined_flag_GCJ=unsupported
19047 # Tell ltmain to make .lib files, not .a files.
19049 # Tell ltmain to make .dll files, not .so files.
19051 # FIXME: Setting linknames here is a bad hack.
19052 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19053 # The linker will automatically build a .lib file if we build a DLL.
19054 old_archive_From_new_cmds_GCJ='true'
19055 # FIXME: Should let the user specify the lib program.
19056 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19057 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19058 enable_shared_with_static_runtimes_GCJ=yes
19061 darwin* | rhapsody*)
19063 rhapsody* | darwin1.[012])
19064 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19067 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19068 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19070 case ${MACOSX_DEPLOYMENT_TARGET} in
19072 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19075 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19081 archive_cmds_need_lc_GCJ=no
19082 hardcode_direct_GCJ=no
19083 hardcode_automatic_GCJ=yes
19084 hardcode_shlibpath_var_GCJ=unsupported
19085 whole_archive_flag_spec_GCJ=''
19086 link_all_deplibs_GCJ=yes
19087 if test "$GCC" = yes ; then
19088 output_verbose_link_cmd='echo'
19089 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19090 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19091 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19092 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}'
19093 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}'
19095 case $cc_basename in
19097 output_verbose_link_cmd='echo'
19098 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19099 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19101 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}'
19102 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}'
19112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19114 hardcode_shlibpath_var_GCJ=no
19121 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19122 # support. Future versions do this automatically, but an explicit c++rt0.o
19123 # does not break anything, and helps significantly (at the cost of a little
19126 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19127 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19128 hardcode_direct_GCJ=yes
19129 hardcode_shlibpath_var_GCJ=no
19132 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19134 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19135 hardcode_direct_GCJ=yes
19136 hardcode_minus_L_GCJ=yes
19137 hardcode_shlibpath_var_GCJ=no
19140 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19141 freebsd* | kfreebsd*-gnu | dragonfly*)
19142 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19143 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19144 hardcode_direct_GCJ=yes
19145 hardcode_shlibpath_var_GCJ=no
19149 if test "$GCC" = yes; then
19150 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'
19152 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'
19154 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19155 hardcode_libdir_separator_GCJ=:
19156 hardcode_direct_GCJ=yes
19158 # hardcode_minus_L: Not really in the search PATH,
19159 # but as the default location of the library.
19160 hardcode_minus_L_GCJ=yes
19161 export_dynamic_flag_spec_GCJ='${wl}-E'
19165 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19166 case "$host_cpu" in
19168 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19171 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19175 case "$host_cpu" in
19177 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19180 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19184 if test "$with_gnu_ld" = no; then
19185 case "$host_cpu" in
19187 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19188 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19189 hardcode_libdir_separator_GCJ=:
19190 hardcode_direct_GCJ=no
19191 hardcode_shlibpath_var_GCJ=no
19194 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19195 hardcode_direct_GCJ=no
19196 hardcode_shlibpath_var_GCJ=no
19198 # hardcode_minus_L: Not really in the search PATH,
19199 # but as the default location of the library.
19200 hardcode_minus_L_GCJ=yes
19203 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19204 hardcode_libdir_separator_GCJ=:
19205 hardcode_direct_GCJ=yes
19206 export_dynamic_flag_spec_GCJ='${wl}-E'
19208 # hardcode_minus_L: Not really in the search PATH,
19209 # but as the default location of the library.
19210 hardcode_minus_L_GCJ=yes
19216 irix5* | irix6* | nonstopux*)
19217 if test "$GCC" = yes; then
19218 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'
19220 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'
19221 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19223 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19224 hardcode_libdir_separator_GCJ=:
19225 link_all_deplibs_GCJ=yes
19229 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19230 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19232 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19234 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19235 hardcode_direct_GCJ=yes
19236 hardcode_shlibpath_var_GCJ=no
19240 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19241 hardcode_direct_GCJ=yes
19242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19243 hardcode_libdir_separator_GCJ=:
19244 hardcode_shlibpath_var_GCJ=no
19248 hardcode_direct_GCJ=yes
19249 hardcode_shlibpath_var_GCJ=no
19250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19251 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19252 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19253 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19254 export_dynamic_flag_spec_GCJ='${wl}-E'
19257 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19258 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19259 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19262 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19263 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19271 hardcode_minus_L_GCJ=yes
19272 allow_undefined_flag_GCJ=unsupported
19273 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'
19274 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19278 if test "$GCC" = yes; then
19279 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19280 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'
19282 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19283 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'
19285 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19286 hardcode_libdir_separator_GCJ=:
19289 osf4* | osf5*) # as osf3* with the addition of -msym flag
19290 if test "$GCC" = yes; then
19291 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19292 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'
19293 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19295 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19296 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'
19297 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~
19298 $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'
19300 # Both c and cxx compiler support -rpath directly
19301 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19303 hardcode_libdir_separator_GCJ=:
19307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19308 hardcode_shlibpath_var_GCJ=no
19309 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19310 runpath_var=LD_RUN_PATH
19311 hardcode_runpath_var=yes
19315 no_undefined_flag_GCJ=' -z text'
19316 if test "$GCC" = yes; then
19318 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19319 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19320 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19323 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19324 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19327 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19328 hardcode_shlibpath_var_GCJ=no
19330 solaris2.[0-5] | solaris2.[0-5].*) ;;
19332 # The compiler driver will combine linker options so we
19333 # cannot just pass the convience library names through
19334 # without $wl, iff we do not link with $LD.
19335 # Luckily, gcc supports the same syntax we need for Sun Studio.
19336 # Supported since Solaris 2.6 (maybe 2.5.1?)
19339 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19341 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' ;;
19344 link_all_deplibs_GCJ=yes
19348 if test "x$host_vendor" = xsequent; then
19349 # Use $CC to link under sequent, because it throws in some extra .o
19350 # files that make .init and .fini sections work.
19351 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19353 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19355 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19356 hardcode_direct_GCJ=yes
19357 hardcode_minus_L_GCJ=yes
19358 hardcode_shlibpath_var_GCJ=no
19362 case $host_vendor in
19364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19365 hardcode_direct_GCJ=yes # is this really true???
19368 ## LD is ld it makes a PLAMLIB
19369 ## CC just makes a GrossModule.
19370 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19371 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19372 hardcode_direct_GCJ=no
19375 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19376 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19379 runpath_var='LD_RUN_PATH'
19380 hardcode_shlibpath_var_GCJ=no
19384 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19385 hardcode_shlibpath_var_GCJ=no
19386 export_dynamic_flag_spec_GCJ='-Bexport'
19390 if test -d /usr/nec; then
19391 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19392 hardcode_shlibpath_var_GCJ=no
19393 runpath_var=LD_RUN_PATH
19394 hardcode_runpath_var=yes
19400 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19401 hardcode_direct_GCJ=yes
19402 hardcode_minus_L_GCJ=no
19403 hardcode_shlibpath_var_GCJ=no
19404 hardcode_runpath_var=yes
19405 runpath_var=LD_RUN_PATH
19408 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19409 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19410 if test "$GCC" = yes; then
19411 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19413 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19415 runpath_var='LD_RUN_PATH'
19416 hardcode_shlibpath_var_GCJ=no
19420 no_undefined_flag_GCJ=' -z text'
19421 # $CC -shared without GNU ld will not create a library from C++
19422 # object files and a static libstdc++, better avoid it by now
19423 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19424 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19425 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19426 hardcode_libdir_flag_spec_GCJ=
19427 hardcode_shlibpath_var_GCJ=no
19428 runpath_var='LD_RUN_PATH'
19432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19433 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19434 hardcode_shlibpath_var_GCJ=no
19443 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19444 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19445 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19448 if test "$GCC" = yes; then
19449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19453 # Do we need to explicitly link libc?
19455 case "x$archive_cmds_need_lc_GCJ" in
19457 # Assume -lc should be added
19458 archive_cmds_need_lc_GCJ=yes
19460 if test "$enable_shared" = yes && test "$GCC" = yes; then
19461 case $archive_cmds_GCJ in
19463 # FIXME: we may have to deal with multi-command sequences.
19466 # Test whether the compiler implicitly links with -lc since on some
19467 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19468 # to ld, don't add -lc before -lgcc.
19469 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19470 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19475 (eval $ac_compile) 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } 2>conftest.err; then
19481 libobjs=conftest.$ac_objext
19483 wl=$lt_prog_compiler_wl_GCJ
19489 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19490 allow_undefined_flag_GCJ=
19491 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19492 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }
19497 archive_cmds_need_lc_GCJ=no
19499 archive_cmds_need_lc_GCJ=yes
19501 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19503 cat conftest.err 1>&5
19506 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19507 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19514 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19516 library_names_spec=
19517 libname_spec='lib$name'
19521 postuninstall_cmds=
19525 shlibpath_overrides_runpath=unknown
19527 dynamic_linker="$host_os ld.so"
19528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19529 if test "$GCC" = yes; then
19530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19531 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19532 # if the path contains ";" then we assume it to be the separator
19533 # otherwise default to the standard path separator (i.e. ":") - it is
19534 # assumed that no part of a normal pathname contains ";" but that should
19535 # okay in the real world where ";" in dirpaths is itself problematic.
19536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19543 need_lib_prefix=unknown
19544 hardcode_into_libs=no
19546 # when you set need_version to no, make sure it does not cause -set_version
19547 # flags to be left without arguments
19548 need_version=unknown
19553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19554 shlibpath_var=LIBPATH
19556 # AIX 3 has no versioning support, so we append a major version to the name.
19557 soname_spec='${libname}${release}${shared_ext}$major'
19564 hardcode_into_libs=yes
19565 if test "$host_cpu" = ia64; then
19566 # AIX 5 supports IA64
19567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19568 shlibpath_var=LD_LIBRARY_PATH
19570 # With GCC up to 2.95.x, collect2 would create an import file
19571 # for dependence libraries. The import file would start with
19572 # the line `#! .'. This would cause the generated library to
19573 # depend on `.', always an invalid library. This was fixed in
19574 # development snapshots of GCC prior to 3.0.
19576 aix4 | aix4.[01] | aix4.[01].*)
19577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19579 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19582 can_build_shared=no
19586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19587 # soname into executable. Probably we can add versioning support to
19588 # collect2, so additional links can be useful in future.
19589 if test "$aix_use_runtimelinking" = yes; then
19590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19591 # instead of lib<name>.a to let people know that these are not
19592 # typical AIX shared libraries.
19593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19595 # We preserve .a as extension for shared libraries through AIX4.2
19596 # and later when we are not doing run time linking.
19597 library_names_spec='${libname}${release}.a $libname.a'
19598 soname_spec='${libname}${release}${shared_ext}$major'
19600 shlibpath_var=LIBPATH
19605 library_names_spec='$libname.ixlibrary $libname.a'
19606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19607 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'
19611 library_names_spec='${libname}${shared_ext}'
19612 dynamic_linker="$host_os ld.so"
19613 shlibpath_var=LIBRARY_PATH
19619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19620 soname_spec='${libname}${release}${shared_ext}$major'
19621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19622 shlibpath_var=LD_LIBRARY_PATH
19623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19625 # the default ld.so.conf also contains /usr/contrib/lib and
19626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19627 # libtool to hard-code these into programs
19630 cygwin* | mingw* | pw32*)
19631 version_type=windows
19636 case $GCC,$host_os in
19637 yes,cygwin* | yes,mingw* | yes,pw32*)
19638 library_names_spec='$libname.dll.a'
19639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19640 postinstall_cmds='base_file=`basename \${file}`~
19641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19642 dldir=$destdir/`dirname \$dlpath`~
19643 test -d \$dldir || mkdir -p \$dldir~
19644 $install_prog $dir/$dlname \$dldir/$dlname'
19645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19646 dlpath=$dir/\$dldll~
19648 shlibpath_overrides_runpath=yes
19652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19654 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19657 # MinGW DLLs use traditional 'lib' prefix
19658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19659 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19660 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19661 # It is most probably a Windows format PATH printed by
19662 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19663 # path with ; separators, and with drive letters. We can handle the
19664 # drive letters (cygwin fileutils understands them), so leave them,
19665 # especially as we might pass files found there to a mingw objdump,
19666 # which wouldn't understand a cygwinified path. Ahh.
19667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19673 # pw32 DLLs use 'pw' prefix rather than 'lib'
19674 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19680 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19683 dynamic_linker='Win32 ld.exe'
19684 # FIXME: first we should search . and the directory the executable is in
19688 darwin* | rhapsody*)
19689 dynamic_linker="$host_os dyld"
19690 version_type=darwin
19693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19694 soname_spec='${libname}${release}${major}$shared_ext'
19695 shlibpath_overrides_runpath=yes
19696 shlibpath_var=DYLD_LIBRARY_PATH
19697 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19699 if test "$GCC" = yes; then
19700 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"`
19702 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19712 soname_spec='${libname}${release}${shared_ext}$major'
19713 shlibpath_var=LD_LIBRARY_PATH
19724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19725 soname_spec='${libname}${release}${shared_ext}$major'
19726 shlibpath_var=LD_LIBRARY_PATH
19727 shlibpath_overrides_runpath=no
19728 hardcode_into_libs=yes
19729 dynamic_linker='GNU ld.so'
19732 freebsd* | dragonfly*)
19733 # DragonFly does not have aout. When/if they implement a new
19734 # versioning mechanism, adjust this.
19735 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19736 version_type=freebsd-$objformat
19737 case $version_type in
19739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19748 shlibpath_var=LD_LIBRARY_PATH
19751 shlibpath_overrides_runpath=yes
19753 freebsd3.[01]* | freebsdelf3.[01]*)
19754 shlibpath_overrides_runpath=yes
19755 hardcode_into_libs=yes
19758 shlibpath_overrides_runpath=no
19759 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
19771 hardcode_into_libs=yes
19774 hpux9* | hpux10* | hpux11*)
19775 # Give a soname corresponding to the major version so that dld.sl refuses to
19776 # link against other versions.
19780 case "$host_cpu" in
19783 hardcode_into_libs=yes
19784 dynamic_linker="$host_os dld.so"
19785 shlibpath_var=LD_LIBRARY_PATH
19786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19788 soname_spec='${libname}${release}${shared_ext}$major'
19789 if test "X$HPUX_IA64_MODE" = X32; then
19790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19792 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19798 hardcode_into_libs=yes
19799 dynamic_linker="$host_os dld.sl"
19800 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19803 soname_spec='${libname}${release}${shared_ext}$major'
19804 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19809 dynamic_linker="$host_os dld.sl"
19810 shlibpath_var=SHLIB_PATH
19811 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19813 soname_spec='${libname}${release}${shared_ext}$major'
19816 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19817 postinstall_cmds='chmod 555 $lib'
19820 irix5* | irix6* | nonstopux*)
19822 nonstopux*) version_type=nonstopux ;;
19824 if test "$lt_cv_prog_gnu_ld" = yes; then
19832 soname_spec='${libname}${release}${shared_ext}$major'
19833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19835 irix5* | nonstopux*)
19836 libsuff= shlibsuff=
19839 case $LD in # libtool.m4 will add one of these switches to LD
19840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19841 libsuff= shlibsuff= libmagic=32-bit;;
19842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19843 libsuff=32 shlibsuff=N32 libmagic=N32;;
19844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19845 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19846 *) libsuff= shlibsuff= libmagic=never-match;;
19850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19851 shlibpath_overrides_runpath=no
19852 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19853 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19854 hardcode_into_libs=yes
19857 # No shared lib support for Linux oldld, aout, or coff.
19858 linux*oldld* | linux*aout* | linux*coff*)
19862 # This must be Linux ELF.
19867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19868 soname_spec='${libname}${release}${shared_ext}$major'
19869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19870 shlibpath_var=LD_LIBRARY_PATH
19871 shlibpath_overrides_runpath=no
19872 # This implies no fast_install, which is unacceptable.
19873 # Some rework will be needed to allow for fast_install
19874 # before this can be enabled.
19875 hardcode_into_libs=yes
19877 # Append ld.so.conf contents to the search path
19878 if test -f /etc/ld.so.conf; then
19879 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' ' '`
19880 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19883 # We used to test for /lib/ld.so.1 and disable shared libraries on
19884 # powerpc, because MkLinux only supported shared libraries with the
19885 # GNU dynamic linker. Since this was broken with cross compilers,
19886 # most powerpc-linux boxes support dynamic linking these days and
19887 # people can always --disable-shared, the test was removed, and we
19888 # assume the GNU/Linux dynamic linker is in use.
19889 dynamic_linker='GNU/Linux ld.so'
19896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19897 soname_spec='${libname}${release}${shared_ext}$major'
19898 shlibpath_var=LD_LIBRARY_PATH
19899 shlibpath_overrides_runpath=no
19900 hardcode_into_libs=yes
19901 dynamic_linker='GNU ld.so'
19908 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19911 dynamic_linker='NetBSD (a.out) ld.so'
19913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19914 soname_spec='${libname}${release}${shared_ext}$major'
19915 dynamic_linker='NetBSD ld.elf_so'
19917 shlibpath_var=LD_LIBRARY_PATH
19918 shlibpath_overrides_runpath=yes
19919 hardcode_into_libs=yes
19924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19925 shlibpath_var=LD_LIBRARY_PATH
19926 shlibpath_overrides_runpath=yes
19933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19934 soname_spec='${libname}${release}${shared_ext}$major'
19935 shlibpath_var=LD_LIBRARY_PATH
19936 shlibpath_overrides_runpath=yes
19942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19945 *) need_version=no ;;
19947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19949 shlibpath_var=LD_LIBRARY_PATH
19950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19952 openbsd2.[89] | openbsd2.[89].*)
19953 shlibpath_overrides_runpath=no
19956 shlibpath_overrides_runpath=yes
19960 shlibpath_overrides_runpath=yes
19965 libname_spec='$name'
19968 library_names_spec='$libname${shared_ext} $libname.a'
19969 dynamic_linker='OS/2 ld.exe'
19970 shlibpath_var=LIBPATH
19973 osf3* | osf4* | osf5*)
19977 soname_spec='${libname}${release}${shared_ext}$major'
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19979 shlibpath_var=LD_LIBRARY_PATH
19980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19986 soname_spec='${libname}${release}${shared_ext}$major'
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19988 shlibpath_var=LD_LIBRARY_PATH
19995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19996 soname_spec='${libname}${release}${shared_ext}$major'
19997 shlibpath_var=LD_LIBRARY_PATH
19998 shlibpath_overrides_runpath=yes
19999 hardcode_into_libs=yes
20000 # ldd complains unless libraries are executable
20001 postinstall_cmds='chmod +x $lib'
20006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20007 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20008 shlibpath_var=LD_LIBRARY_PATH
20009 shlibpath_overrides_runpath=yes
20010 if test "$with_gnu_ld" = yes; then
20016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019 soname_spec='${libname}${release}${shared_ext}$major'
20020 shlibpath_var=LD_LIBRARY_PATH
20021 case $host_vendor in
20023 shlibpath_overrides_runpath=no
20025 export_dynamic_flag_spec='${wl}-Blargedynsym'
20026 runpath_var=LD_RUN_PATH
20034 shlibpath_overrides_runpath=no
20035 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20041 if test -d /usr/nec ;then
20043 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20044 soname_spec='$libname${shared_ext}.$major'
20045 shlibpath_var=LD_LIBRARY_PATH
20051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052 soname_spec='${libname}${release}${shared_ext}$major'
20053 shlibpath_var=LD_LIBRARY_PATH
20060 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20061 echo "${ECHO_T}$dynamic_linker" >&6
20062 test "$dynamic_linker" = no && can_build_shared=no
20064 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20065 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20066 hardcode_action_GCJ=
20067 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20068 test -n "$runpath_var_GCJ" || \
20069 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20071 # We can hardcode non-existant directories.
20072 if test "$hardcode_direct_GCJ" != no &&
20073 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20074 # have to relink, otherwise we might link with an installed library
20075 # when we should be linking with a yet-to-be-installed one
20076 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20077 test "$hardcode_minus_L_GCJ" != no; then
20078 # Linking always hardcodes the temporary library directory.
20079 hardcode_action_GCJ=relink
20081 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20082 hardcode_action_GCJ=immediate
20085 # We cannot hardcode anything, or else we can only hardcode existing
20087 hardcode_action_GCJ=unsupported
20089 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20090 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20092 if test "$hardcode_action_GCJ" = relink; then
20093 # Fast installation is not supported
20094 enable_fast_install=no
20095 elif test "$shlibpath_overrides_runpath" = yes ||
20096 test "$enable_shared" = no; then
20097 # Fast installation is not necessary
20098 enable_fast_install=needless
20103 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20104 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20105 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20106 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20107 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20108 echo "$as_me:$LINENO: result: yes" >&5
20109 echo "${ECHO_T}yes" >&6
20111 # FIXME - insert some real tests, host_os isn't really good enough
20114 if test -n "$STRIP" ; then
20115 striplib="$STRIP -x"
20116 echo "$as_me:$LINENO: result: yes" >&5
20117 echo "${ECHO_T}yes" >&6
20119 echo "$as_me:$LINENO: result: no" >&5
20120 echo "${ECHO_T}no" >&6
20124 echo "$as_me:$LINENO: result: no" >&5
20125 echo "${ECHO_T}no" >&6
20130 if test "x$enable_dlopen" != xyes; then
20131 enable_dlopen=unknown
20132 enable_dlopen_self=unknown
20133 enable_dlopen_self_static=unknown
20140 lt_cv_dlopen="load_add_on"
20142 lt_cv_dlopen_self=yes
20146 lt_cv_dlopen="LoadLibrary"
20151 lt_cv_dlopen="dlopen"
20156 # if libdl is installed we need to link against it
20157 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20158 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20159 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 ac_check_lib_save_LIBS=$LIBS
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20171 /* Override any gcc2 internal prototype to avoid an error. */
20175 /* We use char because int might match the return type of a gcc2
20176 builtin and then its argument prototype would still apply. */
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20188 (eval $ac_link) 2>conftest.er1
20190 grep -v '^ *+' conftest.er1 >conftest.err
20192 cat conftest.err >&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
20195 { ac_try='test -z "$ac_c_werror_flag"
20196 || test ! -s conftest.err'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest$ac_exeext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 ac_cv_lib_dl_dlopen=yes
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 ac_cv_lib_dl_dlopen=no
20215 rm -f conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20219 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20220 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20221 if test $ac_cv_lib_dl_dlopen = yes; then
20222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20225 lt_cv_dlopen="dyld"
20227 lt_cv_dlopen_self=yes
20234 echo "$as_me:$LINENO: checking for shl_load" >&5
20235 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20236 if test "${ac_cv_func_shl_load+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20245 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20247 #define shl_load innocuous_shl_load
20249 /* System header to define __stub macros and hopefully few prototypes,
20250 which can conflict with char shl_load (); below.
20251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20252 <limits.h> exists even on freestanding compilers. */
20255 # include <limits.h>
20257 # include <assert.h>
20262 /* Override any gcc2 internal prototype to avoid an error. */
20267 /* We use char because int might match the return type of a gcc2
20268 builtin and then its argument prototype would still apply. */
20270 /* The GNU C library defines this for functions which it implements
20271 to always fail with ENOSYS. Some functions are actually named
20272 something starting with __ and the normal name is an alias. */
20273 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20276 char (*f) () = shl_load;
20285 return f != shl_load;
20290 rm -f conftest.$ac_objext conftest$ac_exeext
20291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20292 (eval $ac_link) 2>conftest.er1
20294 grep -v '^ *+' conftest.er1 >conftest.err
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
20299 { ac_try='test -z "$ac_c_werror_flag"
20300 || test ! -s conftest.err'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } &&
20306 { ac_try='test -s conftest$ac_exeext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_cv_func_shl_load=yes
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_cv_func_shl_load=no
20319 rm -f conftest.err conftest.$ac_objext \
20320 conftest$ac_exeext conftest.$ac_ext
20322 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20323 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20324 if test $ac_cv_func_shl_load = yes; then
20325 lt_cv_dlopen="shl_load"
20327 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20328 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20329 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 ac_check_lib_save_LIBS=$LIBS
20334 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20341 /* Override any gcc2 internal prototype to avoid an error. */
20345 /* We use char because int might match the return type of a gcc2
20346 builtin and then its argument prototype would still apply. */
20356 rm -f conftest.$ac_objext conftest$ac_exeext
20357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20358 (eval $ac_link) 2>conftest.er1
20360 grep -v '^ *+' conftest.er1 >conftest.err
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } &&
20365 { ac_try='test -z "$ac_c_werror_flag"
20366 || test ! -s conftest.err'
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; } &&
20372 { ac_try='test -s conftest$ac_exeext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_lib_dld_shl_load=yes
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20383 ac_cv_lib_dld_shl_load=no
20385 rm -f conftest.err conftest.$ac_objext \
20386 conftest$ac_exeext conftest.$ac_ext
20387 LIBS=$ac_check_lib_save_LIBS
20389 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20390 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20391 if test $ac_cv_lib_dld_shl_load = yes; then
20392 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20394 echo "$as_me:$LINENO: checking for dlopen" >&5
20395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20396 if test "${ac_cv_func_dlopen+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20407 #define dlopen innocuous_dlopen
20409 /* System header to define __stub macros and hopefully few prototypes,
20410 which can conflict with char dlopen (); below.
20411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412 <limits.h> exists even on freestanding compilers. */
20415 # include <limits.h>
20417 # include <assert.h>
20422 /* Override any gcc2 internal prototype to avoid an error. */
20427 /* We use char because int might match the return type of a gcc2
20428 builtin and then its argument prototype would still apply. */
20430 /* The GNU C library defines this for functions which it implements
20431 to always fail with ENOSYS. Some functions are actually named
20432 something starting with __ and the normal name is an alias. */
20433 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20436 char (*f) () = dlopen;
20445 return f != dlopen;
20450 rm -f conftest.$ac_objext conftest$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452 (eval $ac_link) 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -z "$ac_c_werror_flag"
20460 || test ! -s conftest.err'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest$ac_exeext'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 ac_cv_func_dlopen=yes
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 ac_cv_func_dlopen=no
20479 rm -f conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
20482 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20483 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20484 if test $ac_cv_func_dlopen = yes; then
20485 lt_cv_dlopen="dlopen"
20487 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20488 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20489 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 ac_check_lib_save_LIBS=$LIBS
20494 cat >conftest.$ac_ext <<_ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20501 /* Override any gcc2 internal prototype to avoid an error. */
20505 /* We use char because int might match the return type of a gcc2
20506 builtin and then its argument prototype would still apply. */
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20518 (eval $ac_link) 2>conftest.er1
20520 grep -v '^ *+' conftest.er1 >conftest.err
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } &&
20525 { ac_try='test -z "$ac_c_werror_flag"
20526 || test ! -s conftest.err'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; } &&
20532 { ac_try='test -s conftest$ac_exeext'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538 ac_cv_lib_dl_dlopen=yes
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 ac_cv_lib_dl_dlopen=no
20545 rm -f conftest.err conftest.$ac_objext \
20546 conftest$ac_exeext conftest.$ac_ext
20547 LIBS=$ac_check_lib_save_LIBS
20549 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20550 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20551 if test $ac_cv_lib_dl_dlopen = yes; then
20552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20554 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20555 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20556 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 ac_check_lib_save_LIBS=$LIBS
20560 LIBS="-lsvld $LIBS"
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20568 /* Override any gcc2 internal prototype to avoid an error. */
20572 /* We use char because int might match the return type of a gcc2
20573 builtin and then its argument prototype would still apply. */
20583 rm -f conftest.$ac_objext conftest$ac_exeext
20584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20585 (eval $ac_link) 2>conftest.er1
20587 grep -v '^ *+' conftest.er1 >conftest.err
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
20592 { ac_try='test -z "$ac_c_werror_flag"
20593 || test ! -s conftest.err'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; } &&
20599 { ac_try='test -s conftest$ac_exeext'
20600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601 (eval $ac_try) 2>&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; }; then
20605 ac_cv_lib_svld_dlopen=yes
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20610 ac_cv_lib_svld_dlopen=no
20612 rm -f conftest.err conftest.$ac_objext \
20613 conftest$ac_exeext conftest.$ac_ext
20614 LIBS=$ac_check_lib_save_LIBS
20616 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20617 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20618 if test $ac_cv_lib_svld_dlopen = yes; then
20619 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20621 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20622 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20623 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 ac_check_lib_save_LIBS=$LIBS
20628 cat >conftest.$ac_ext <<_ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20635 /* Override any gcc2 internal prototype to avoid an error. */
20639 /* We use char because int might match the return type of a gcc2
20640 builtin and then its argument prototype would still apply. */
20650 rm -f conftest.$ac_objext conftest$ac_exeext
20651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20652 (eval $ac_link) 2>conftest.er1
20654 grep -v '^ *+' conftest.er1 >conftest.err
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } &&
20659 { ac_try='test -z "$ac_c_werror_flag"
20660 || test ! -s conftest.err'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; } &&
20666 { ac_try='test -s conftest$ac_exeext'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_cv_lib_dld_dld_link=yes
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20677 ac_cv_lib_dld_dld_link=no
20679 rm -f conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20681 LIBS=$ac_check_lib_save_LIBS
20683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20684 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20685 if test $ac_cv_lib_dld_dld_link = yes; then
20686 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20707 if test "x$lt_cv_dlopen" != xno; then
20713 case $lt_cv_dlopen in
20715 save_CPPFLAGS="$CPPFLAGS"
20716 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20718 save_LDFLAGS="$LDFLAGS"
20719 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20722 LIBS="$lt_cv_dlopen_libs $LIBS"
20724 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20725 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20726 if test "${lt_cv_dlopen_self+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20729 if test "$cross_compiling" = yes; then :
20730 lt_cv_dlopen_self=cross
20732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20733 lt_status=$lt_dlunknown
20734 cat > conftest.$ac_ext <<EOF
20735 #line 20735 "configure"
20736 #include "confdefs.h"
20745 # define LT_DLGLOBAL RTLD_GLOBAL
20748 # define LT_DLGLOBAL DL_GLOBAL
20750 # define LT_DLGLOBAL 0
20754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20755 find out it does not work in some platform. */
20756 #ifndef LT_DLLAZY_OR_NOW
20758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20761 # define LT_DLLAZY_OR_NOW DL_LAZY
20764 # define LT_DLLAZY_OR_NOW RTLD_NOW
20767 # define LT_DLLAZY_OR_NOW DL_NOW
20769 # define LT_DLLAZY_OR_NOW 0
20777 extern "C" void exit (int);
20780 void fnord() { int i=42;}
20783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20784 int status = $lt_dlunknown;
20788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20789 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20790 /* dlclose (self); */
20796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20797 (eval $ac_link) 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20801 (./conftest; exit; ) 2>/dev/null
20803 case x$lt_status in
20804 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20805 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20806 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20809 # compilation failed
20810 lt_cv_dlopen_self=no
20817 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20818 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20820 if test "x$lt_cv_dlopen_self" = xyes; then
20821 LDFLAGS="$LDFLAGS $link_static_flag"
20822 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20823 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20824 if test "${lt_cv_dlopen_self_static+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 if test "$cross_compiling" = yes; then :
20828 lt_cv_dlopen_self_static=cross
20830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20831 lt_status=$lt_dlunknown
20832 cat > conftest.$ac_ext <<EOF
20833 #line 20833 "configure"
20834 #include "confdefs.h"
20843 # define LT_DLGLOBAL RTLD_GLOBAL
20846 # define LT_DLGLOBAL DL_GLOBAL
20848 # define LT_DLGLOBAL 0
20852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20853 find out it does not work in some platform. */
20854 #ifndef LT_DLLAZY_OR_NOW
20856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20859 # define LT_DLLAZY_OR_NOW DL_LAZY
20862 # define LT_DLLAZY_OR_NOW RTLD_NOW
20865 # define LT_DLLAZY_OR_NOW DL_NOW
20867 # define LT_DLLAZY_OR_NOW 0
20875 extern "C" void exit (int);
20878 void fnord() { int i=42;}
20881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20882 int status = $lt_dlunknown;
20886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20887 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20888 /* dlclose (self); */
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895 (eval $ac_link) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20899 (./conftest; exit; ) 2>/dev/null
20901 case x$lt_status in
20902 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20903 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20904 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20907 # compilation failed
20908 lt_cv_dlopen_self_static=no
20915 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20916 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20919 CPPFLAGS="$save_CPPFLAGS"
20920 LDFLAGS="$save_LDFLAGS"
20925 case $lt_cv_dlopen_self in
20926 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20927 *) enable_dlopen_self=unknown ;;
20930 case $lt_cv_dlopen_self_static in
20931 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20932 *) enable_dlopen_self_static=unknown ;;
20937 # The else clause should only fire when bootstrapping the
20938 # libtool distribution, otherwise you forgot to ship ltmain.sh
20939 # with your package, and you will get complaints that there are
20940 # no rules to generate ltmain.sh.
20941 if test -f "$ltmain"; then
20942 # See if we are running on zsh, and set the options which allow our commands through
20943 # without removal of \ escapes.
20944 if test -n "${ZSH_VERSION+set}" ; then
20945 setopt NO_GLOB_SUBST
20947 # Now quote all the things that may contain metacharacters while being
20948 # careful not to overquote the AC_SUBSTed values. We take copies of the
20949 # variables and quote the copies for generation of the libtool script.
20950 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20952 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20953 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20954 deplibs_check_method reload_flag reload_cmds need_locks \
20955 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20956 lt_cv_sys_global_symbol_to_c_name_address \
20957 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20958 old_postinstall_cmds old_postuninstall_cmds \
20962 lt_prog_compiler_wl_GCJ \
20963 lt_prog_compiler_pic_GCJ \
20964 lt_prog_compiler_static_GCJ \
20965 lt_prog_compiler_no_builtin_flag_GCJ \
20966 export_dynamic_flag_spec_GCJ \
20967 thread_safe_flag_spec_GCJ \
20968 whole_archive_flag_spec_GCJ \
20969 enable_shared_with_static_runtimes_GCJ \
20970 old_archive_cmds_GCJ \
20971 old_archive_from_new_cmds_GCJ \
20972 predep_objects_GCJ \
20973 postdep_objects_GCJ \
20976 compiler_lib_search_path_GCJ \
20978 archive_expsym_cmds_GCJ \
20979 postinstall_cmds_GCJ \
20980 postuninstall_cmds_GCJ \
20981 old_archive_from_expsyms_cmds_GCJ \
20982 allow_undefined_flag_GCJ \
20983 no_undefined_flag_GCJ \
20984 export_symbols_cmds_GCJ \
20985 hardcode_libdir_flag_spec_GCJ \
20986 hardcode_libdir_flag_spec_ld_GCJ \
20987 hardcode_libdir_separator_GCJ \
20988 hardcode_automatic_GCJ \
20990 module_expsym_cmds_GCJ \
20991 lt_cv_prog_compiler_c_o_GCJ \
20992 exclude_expsyms_GCJ \
20993 include_expsyms_GCJ; do
20996 old_archive_cmds_GCJ | \
20997 old_archive_from_new_cmds_GCJ | \
20998 archive_cmds_GCJ | \
20999 archive_expsym_cmds_GCJ | \
21000 module_cmds_GCJ | \
21001 module_expsym_cmds_GCJ | \
21002 old_archive_from_expsyms_cmds_GCJ | \
21003 export_symbols_cmds_GCJ | \
21004 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21005 postinstall_cmds | postuninstall_cmds | \
21006 old_postinstall_cmds | old_postuninstall_cmds | \
21007 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21008 # Double-quote double-evaled strings.
21009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21018 *'\$0 --fallback-echo"')
21019 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21025 cat <<__EOF__ >> "$cfgfile"
21026 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21030 # Shell to use when invoking shell scripts.
21033 # Whether or not to build shared libraries.
21034 build_libtool_libs=$enable_shared
21036 # Whether or not to build static libraries.
21037 build_old_libs=$enable_static
21039 # Whether or not to add -lc for building shared libraries.
21040 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21042 # Whether or not to disallow shared libs when runtime libs are static
21043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21045 # Whether or not to optimize for fast installation.
21046 fast_install=$enable_fast_install
21049 host_alias=$host_alias
21053 # The build system.
21054 build_alias=$build_alias
21058 # An echo program that does not interpret backslashes.
21063 AR_FLAGS=$lt_AR_FLAGS
21068 # A language-specific compiler.
21069 CC=$lt_compiler_GCJ
21071 # Is the compiler the GNU C compiler?
21077 # The linker used to build libraries.
21080 # Whether we need hard or soft links.
21083 # A BSD-compatible nm program.
21086 # A symbol stripping program
21089 # Used to examine libraries when file_magic_cmd begins "file"
21090 MAGIC_CMD=$MAGIC_CMD
21092 # Used on cygwin: DLL creation program.
21095 # Used on cygwin: object dumper.
21098 # Used on cygwin: assembler.
21101 # The name of the directory that contains temporary libtool files.
21104 # How to create reloadable object files.
21105 reload_flag=$lt_reload_flag
21106 reload_cmds=$lt_reload_cmds
21108 # How to pass a linker flag through the compiler.
21109 wl=$lt_lt_prog_compiler_wl_GCJ
21111 # Object file suffix (normally "o").
21112 objext="$ac_objext"
21114 # Old archive suffix (normally "a").
21117 # Shared library suffix (normally ".so").
21118 shrext_cmds='$shrext_cmds'
21120 # Executable file suffix (normally "").
21123 # Additional compiler flags for building library objects.
21124 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21127 # What is the maximum length of a command?
21128 max_cmd_len=$lt_cv_sys_max_cmd_len
21130 # Does compiler simultaneously support -c and -o options?
21131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21133 # Must we lock files when doing compilation?
21134 need_locks=$lt_need_locks
21136 # Do we need the lib prefix for modules?
21137 need_lib_prefix=$need_lib_prefix
21139 # Do we need a version for libraries?
21140 need_version=$need_version
21142 # Whether dlopen is supported.
21143 dlopen_support=$enable_dlopen
21145 # Whether dlopen of programs is supported.
21146 dlopen_self=$enable_dlopen_self
21148 # Whether dlopen of statically linked programs is supported.
21149 dlopen_self_static=$enable_dlopen_self_static
21151 # Compiler flag to prevent dynamic linking.
21152 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21154 # Compiler flag to turn off builtin functions.
21155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21157 # Compiler flag to allow reflexive dlopens.
21158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21160 # Compiler flag to generate shared objects directly from archives.
21161 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21163 # Compiler flag to generate thread-safe objects.
21164 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21166 # Library versioning type.
21167 version_type=$version_type
21169 # Format of library name prefix.
21170 libname_spec=$lt_libname_spec
21172 # List of archive names. First name is the real one, the rest are links.
21173 # The last name is the one that the linker finds with -lNAME.
21174 library_names_spec=$lt_library_names_spec
21176 # The coded name of the library, if different from the real name.
21177 soname_spec=$lt_soname_spec
21179 # Commands used to build and install an old-style archive.
21181 old_archive_cmds=$lt_old_archive_cmds_GCJ
21182 old_postinstall_cmds=$lt_old_postinstall_cmds
21183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21185 # Create an old-style archive from a shared archive.
21186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21188 # Create a temporary old-style archive to link instead of a shared archive.
21189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21191 # Commands used to build and install a shared archive.
21192 archive_cmds=$lt_archive_cmds_GCJ
21193 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21194 postinstall_cmds=$lt_postinstall_cmds
21195 postuninstall_cmds=$lt_postuninstall_cmds
21197 # Commands used to build a loadable module (assumed same as above if empty)
21198 module_cmds=$lt_module_cmds_GCJ
21199 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21201 # Commands to strip libraries.
21202 old_striplib=$lt_old_striplib
21203 striplib=$lt_striplib
21205 # Dependencies to place before the objects being linked to create a
21207 predep_objects=$lt_predep_objects_GCJ
21209 # Dependencies to place after the objects being linked to create a
21211 postdep_objects=$lt_postdep_objects_GCJ
21213 # Dependencies to place before the objects being linked to create a
21215 predeps=$lt_predeps_GCJ
21217 # Dependencies to place after the objects being linked to create a
21219 postdeps=$lt_postdeps_GCJ
21221 # The library search path used internally by the compiler when linking
21222 # a shared library.
21223 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21225 # Method to check whether dependent libraries are shared objects.
21226 deplibs_check_method=$lt_deplibs_check_method
21228 # Command to use when deplibs_check_method == file_magic.
21229 file_magic_cmd=$lt_file_magic_cmd
21231 # Flag that allows shared libraries with undefined symbols to be built.
21232 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21234 # Flag that forces no undefined symbols.
21235 no_undefined_flag=$lt_no_undefined_flag_GCJ
21237 # Commands used to finish a libtool library installation in a directory.
21238 finish_cmds=$lt_finish_cmds
21240 # Same as above, but a single script fragment to be evaled but not shown.
21241 finish_eval=$lt_finish_eval
21243 # Take the output of nm and produce a listing of raw symbols and C names.
21244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21246 # Transform the output of nm in a proper C declaration
21247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21249 # Transform the output of nm in a C name address pair
21250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21252 # This is the shared library runtime path variable.
21253 runpath_var=$runpath_var
21255 # This is the shared library path variable.
21256 shlibpath_var=$shlibpath_var
21258 # Is shlibpath searched before the hard-coded library search path?
21259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21261 # How to hardcode a shared library path into an executable.
21262 hardcode_action=$hardcode_action_GCJ
21264 # Whether we should hardcode library paths into libraries.
21265 hardcode_into_libs=$hardcode_into_libs
21267 # Flag to hardcode \$libdir into a binary during linking.
21268 # This must work even if \$libdir does not exist.
21269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21271 # If ld is used when linking, flag to hardcode \$libdir into
21272 # a binary during linking. This must work even if \$libdir does
21274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21276 # Whether we need a single -rpath flag with a separated argument.
21277 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21280 # resulting binary.
21281 hardcode_direct=$hardcode_direct_GCJ
21283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21284 # resulting binary.
21285 hardcode_minus_L=$hardcode_minus_L_GCJ
21287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21288 # the resulting binary.
21289 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21291 # Set to yes if building a shared library automatically hardcodes DIR into the library
21292 # and all subsequent libraries and executables linked against it.
21293 hardcode_automatic=$hardcode_automatic_GCJ
21295 # Variables whose values should be saved in libtool wrapper scripts and
21296 # restored at relink time.
21297 variables_saved_for_relink="$variables_saved_for_relink"
21299 # Whether libtool must link a program against all its dependency libraries.
21300 link_all_deplibs=$link_all_deplibs_GCJ
21302 # Compile-time system search path for libraries
21303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21305 # Run-time system search path for libraries
21306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21308 # Fix the shell variable \$srcfile for the compiler.
21309 fix_srcfile_path="$fix_srcfile_path_GCJ"
21311 # Set to yes if exported symbols are required.
21312 always_export_symbols=$always_export_symbols_GCJ
21314 # The commands to list exported symbols.
21315 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21317 # The commands to extract the exported symbol list from a shared archive.
21318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21320 # Symbols that should not be listed in the preloaded symbols.
21321 exclude_expsyms=$lt_exclude_expsyms_GCJ
21323 # Symbols that must always be exported.
21324 include_expsyms=$lt_include_expsyms_GCJ
21326 # ### END LIBTOOL TAG CONFIG: $tagname
21332 # If there is no Makefile yet, we rely on a make rule to execute
21333 # `config.status --recheck' to rerun these tests and create the
21334 # libtool script then.
21335 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21336 if test -f "$ltmain_in"; then
21337 test -f Makefile && make "$ltmain"
21343 ac_cpp='$CPP $CPPFLAGS'
21344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21359 # Source file extension for RC test sources.
21362 # Object file extension for compiled RC test sources.
21366 # Code to be used in simple compile tests
21367 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21369 # Code to be used in simple link tests
21370 lt_simple_link_test_code="$lt_simple_compile_test_code"
21372 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21374 # If no C compiler was specified, use CC.
21377 # Allow CC to be a program name with arguments.
21381 # save warnings/boilerplate of simple test code
21382 ac_outfile=conftest.$ac_objext
21383 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21385 _lt_compiler_boilerplate=`cat conftest.err`
21388 ac_outfile=conftest.$ac_objext
21389 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21391 _lt_linker_boilerplate=`cat conftest.err`
21395 # Allow CC to be a program name with arguments.
21400 for cc_temp in $compiler""; do
21402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21408 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21410 lt_cv_prog_compiler_c_o_RC=yes
21412 # The else clause should only fire when bootstrapping the
21413 # libtool distribution, otherwise you forgot to ship ltmain.sh
21414 # with your package, and you will get complaints that there are
21415 # no rules to generate ltmain.sh.
21416 if test -f "$ltmain"; then
21417 # See if we are running on zsh, and set the options which allow our commands through
21418 # without removal of \ escapes.
21419 if test -n "${ZSH_VERSION+set}" ; then
21420 setopt NO_GLOB_SUBST
21422 # Now quote all the things that may contain metacharacters while being
21423 # careful not to overquote the AC_SUBSTed values. We take copies of the
21424 # variables and quote the copies for generation of the libtool script.
21425 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21427 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21428 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21429 deplibs_check_method reload_flag reload_cmds need_locks \
21430 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21431 lt_cv_sys_global_symbol_to_c_name_address \
21432 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21433 old_postinstall_cmds old_postuninstall_cmds \
21437 lt_prog_compiler_wl_RC \
21438 lt_prog_compiler_pic_RC \
21439 lt_prog_compiler_static_RC \
21440 lt_prog_compiler_no_builtin_flag_RC \
21441 export_dynamic_flag_spec_RC \
21442 thread_safe_flag_spec_RC \
21443 whole_archive_flag_spec_RC \
21444 enable_shared_with_static_runtimes_RC \
21445 old_archive_cmds_RC \
21446 old_archive_from_new_cmds_RC \
21447 predep_objects_RC \
21448 postdep_objects_RC \
21451 compiler_lib_search_path_RC \
21453 archive_expsym_cmds_RC \
21454 postinstall_cmds_RC \
21455 postuninstall_cmds_RC \
21456 old_archive_from_expsyms_cmds_RC \
21457 allow_undefined_flag_RC \
21458 no_undefined_flag_RC \
21459 export_symbols_cmds_RC \
21460 hardcode_libdir_flag_spec_RC \
21461 hardcode_libdir_flag_spec_ld_RC \
21462 hardcode_libdir_separator_RC \
21463 hardcode_automatic_RC \
21465 module_expsym_cmds_RC \
21466 lt_cv_prog_compiler_c_o_RC \
21467 exclude_expsyms_RC \
21468 include_expsyms_RC; do
21471 old_archive_cmds_RC | \
21472 old_archive_from_new_cmds_RC | \
21473 archive_cmds_RC | \
21474 archive_expsym_cmds_RC | \
21476 module_expsym_cmds_RC | \
21477 old_archive_from_expsyms_cmds_RC | \
21478 export_symbols_cmds_RC | \
21479 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21480 postinstall_cmds | postuninstall_cmds | \
21481 old_postinstall_cmds | old_postuninstall_cmds | \
21482 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21483 # Double-quote double-evaled strings.
21484 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21487 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21493 *'\$0 --fallback-echo"')
21494 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21500 cat <<__EOF__ >> "$cfgfile"
21501 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21503 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21505 # Shell to use when invoking shell scripts.
21508 # Whether or not to build shared libraries.
21509 build_libtool_libs=$enable_shared
21511 # Whether or not to build static libraries.
21512 build_old_libs=$enable_static
21514 # Whether or not to add -lc for building shared libraries.
21515 build_libtool_need_lc=$archive_cmds_need_lc_RC
21517 # Whether or not to disallow shared libs when runtime libs are static
21518 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21520 # Whether or not to optimize for fast installation.
21521 fast_install=$enable_fast_install
21524 host_alias=$host_alias
21528 # The build system.
21529 build_alias=$build_alias
21533 # An echo program that does not interpret backslashes.
21538 AR_FLAGS=$lt_AR_FLAGS
21543 # A language-specific compiler.
21546 # Is the compiler the GNU C compiler?
21552 # The linker used to build libraries.
21555 # Whether we need hard or soft links.
21558 # A BSD-compatible nm program.
21561 # A symbol stripping program
21564 # Used to examine libraries when file_magic_cmd begins "file"
21565 MAGIC_CMD=$MAGIC_CMD
21567 # Used on cygwin: DLL creation program.
21570 # Used on cygwin: object dumper.
21573 # Used on cygwin: assembler.
21576 # The name of the directory that contains temporary libtool files.
21579 # How to create reloadable object files.
21580 reload_flag=$lt_reload_flag
21581 reload_cmds=$lt_reload_cmds
21583 # How to pass a linker flag through the compiler.
21584 wl=$lt_lt_prog_compiler_wl_RC
21586 # Object file suffix (normally "o").
21587 objext="$ac_objext"
21589 # Old archive suffix (normally "a").
21592 # Shared library suffix (normally ".so").
21593 shrext_cmds='$shrext_cmds'
21595 # Executable file suffix (normally "").
21598 # Additional compiler flags for building library objects.
21599 pic_flag=$lt_lt_prog_compiler_pic_RC
21602 # What is the maximum length of a command?
21603 max_cmd_len=$lt_cv_sys_max_cmd_len
21605 # Does compiler simultaneously support -c and -o options?
21606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21608 # Must we lock files when doing compilation?
21609 need_locks=$lt_need_locks
21611 # Do we need the lib prefix for modules?
21612 need_lib_prefix=$need_lib_prefix
21614 # Do we need a version for libraries?
21615 need_version=$need_version
21617 # Whether dlopen is supported.
21618 dlopen_support=$enable_dlopen
21620 # Whether dlopen of programs is supported.
21621 dlopen_self=$enable_dlopen_self
21623 # Whether dlopen of statically linked programs is supported.
21624 dlopen_self_static=$enable_dlopen_self_static
21626 # Compiler flag to prevent dynamic linking.
21627 link_static_flag=$lt_lt_prog_compiler_static_RC
21629 # Compiler flag to turn off builtin functions.
21630 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21632 # Compiler flag to allow reflexive dlopens.
21633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21635 # Compiler flag to generate shared objects directly from archives.
21636 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21638 # Compiler flag to generate thread-safe objects.
21639 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21641 # Library versioning type.
21642 version_type=$version_type
21644 # Format of library name prefix.
21645 libname_spec=$lt_libname_spec
21647 # List of archive names. First name is the real one, the rest are links.
21648 # The last name is the one that the linker finds with -lNAME.
21649 library_names_spec=$lt_library_names_spec
21651 # The coded name of the library, if different from the real name.
21652 soname_spec=$lt_soname_spec
21654 # Commands used to build and install an old-style archive.
21656 old_archive_cmds=$lt_old_archive_cmds_RC
21657 old_postinstall_cmds=$lt_old_postinstall_cmds
21658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21660 # Create an old-style archive from a shared archive.
21661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21663 # Create a temporary old-style archive to link instead of a shared archive.
21664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21666 # Commands used to build and install a shared archive.
21667 archive_cmds=$lt_archive_cmds_RC
21668 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21669 postinstall_cmds=$lt_postinstall_cmds
21670 postuninstall_cmds=$lt_postuninstall_cmds
21672 # Commands used to build a loadable module (assumed same as above if empty)
21673 module_cmds=$lt_module_cmds_RC
21674 module_expsym_cmds=$lt_module_expsym_cmds_RC
21676 # Commands to strip libraries.
21677 old_striplib=$lt_old_striplib
21678 striplib=$lt_striplib
21680 # Dependencies to place before the objects being linked to create a
21682 predep_objects=$lt_predep_objects_RC
21684 # Dependencies to place after the objects being linked to create a
21686 postdep_objects=$lt_postdep_objects_RC
21688 # Dependencies to place before the objects being linked to create a
21690 predeps=$lt_predeps_RC
21692 # Dependencies to place after the objects being linked to create a
21694 postdeps=$lt_postdeps_RC
21696 # The library search path used internally by the compiler when linking
21697 # a shared library.
21698 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21700 # Method to check whether dependent libraries are shared objects.
21701 deplibs_check_method=$lt_deplibs_check_method
21703 # Command to use when deplibs_check_method == file_magic.
21704 file_magic_cmd=$lt_file_magic_cmd
21706 # Flag that allows shared libraries with undefined symbols to be built.
21707 allow_undefined_flag=$lt_allow_undefined_flag_RC
21709 # Flag that forces no undefined symbols.
21710 no_undefined_flag=$lt_no_undefined_flag_RC
21712 # Commands used to finish a libtool library installation in a directory.
21713 finish_cmds=$lt_finish_cmds
21715 # Same as above, but a single script fragment to be evaled but not shown.
21716 finish_eval=$lt_finish_eval
21718 # Take the output of nm and produce a listing of raw symbols and C names.
21719 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21721 # Transform the output of nm in a proper C declaration
21722 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21724 # Transform the output of nm in a C name address pair
21725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21727 # This is the shared library runtime path variable.
21728 runpath_var=$runpath_var
21730 # This is the shared library path variable.
21731 shlibpath_var=$shlibpath_var
21733 # Is shlibpath searched before the hard-coded library search path?
21734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21736 # How to hardcode a shared library path into an executable.
21737 hardcode_action=$hardcode_action_RC
21739 # Whether we should hardcode library paths into libraries.
21740 hardcode_into_libs=$hardcode_into_libs
21742 # Flag to hardcode \$libdir into a binary during linking.
21743 # This must work even if \$libdir does not exist.
21744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21746 # If ld is used when linking, flag to hardcode \$libdir into
21747 # a binary during linking. This must work even if \$libdir does
21749 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21751 # Whether we need a single -rpath flag with a separated argument.
21752 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21754 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21755 # resulting binary.
21756 hardcode_direct=$hardcode_direct_RC
21758 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21759 # resulting binary.
21760 hardcode_minus_L=$hardcode_minus_L_RC
21762 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21763 # the resulting binary.
21764 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21766 # Set to yes if building a shared library automatically hardcodes DIR into the library
21767 # and all subsequent libraries and executables linked against it.
21768 hardcode_automatic=$hardcode_automatic_RC
21770 # Variables whose values should be saved in libtool wrapper scripts and
21771 # restored at relink time.
21772 variables_saved_for_relink="$variables_saved_for_relink"
21774 # Whether libtool must link a program against all its dependency libraries.
21775 link_all_deplibs=$link_all_deplibs_RC
21777 # Compile-time system search path for libraries
21778 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21780 # Run-time system search path for libraries
21781 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21783 # Fix the shell variable \$srcfile for the compiler.
21784 fix_srcfile_path="$fix_srcfile_path_RC"
21786 # Set to yes if exported symbols are required.
21787 always_export_symbols=$always_export_symbols_RC
21789 # The commands to list exported symbols.
21790 export_symbols_cmds=$lt_export_symbols_cmds_RC
21792 # The commands to extract the exported symbol list from a shared archive.
21793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21795 # Symbols that should not be listed in the preloaded symbols.
21796 exclude_expsyms=$lt_exclude_expsyms_RC
21798 # Symbols that must always be exported.
21799 include_expsyms=$lt_include_expsyms_RC
21801 # ### END LIBTOOL TAG CONFIG: $tagname
21807 # If there is no Makefile yet, we rely on a make rule to execute
21808 # `config.status --recheck' to rerun these tests and create the
21809 # libtool script then.
21810 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21811 if test -f "$ltmain_in"; then
21812 test -f Makefile && make "$ltmain"
21818 ac_cpp='$CPP $CPPFLAGS'
21819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21828 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21829 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21830 { (exit 1); exit 1; }; }
21834 # Append the new tag name to the list of available tags.
21835 if test -n "$tagname" ; then
21836 available_tags="$available_tags $tagname"
21842 # Now substitute the updated list of available tags.
21843 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21844 mv "${ofile}T" "$ofile"
21848 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21849 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21850 { (exit 1); exit 1; }; }
21856 # This can be used to rebuild libtool when needed
21857 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21859 # Always use our own libtool.
21860 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21862 # Prevent multiple expansion
21885 if test $ol_enable_perl != no ; then
21886 # Extract the first word of "perl", so it can be a program name with args.
21887 set dummy perl; ac_word=$2
21888 echo "$as_me:$LINENO: checking for $ac_word" >&5
21889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21890 if test "${ac_cv_path_PERLBIN+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21895 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21899 for as_dir in $PATH
21902 test -z "$as_dir" && as_dir=.
21903 for ac_exec_ext in '' $ac_executable_extensions; do
21904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21905 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21912 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21916 PERLBIN=$ac_cv_path_PERLBIN
21918 if test -n "$PERLBIN"; then
21919 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21920 echo "${ECHO_T}$PERLBIN" >&6
21922 echo "$as_me:$LINENO: result: no" >&5
21923 echo "${ECHO_T}no" >&6
21927 if test "no$PERLBIN" = "no" ; then
21928 if test $ol_enable_perl = yes ; then
21929 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21930 echo "$as_me: error: could not locate perl" >&2;}
21931 { (exit 1); exit 1; }; }
21935 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21936 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21938 if test x"$ol_enable_perl" = "xyes" ; then
21939 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21941 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21948 ac_cpp='$CPP $CPPFLAGS'
21949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21952 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21953 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21954 # On Suns, sometimes $CPP names a directory.
21955 if test -n "$CPP" && test -d "$CPP"; then
21958 if test -z "$CPP"; then
21959 if test "${ac_cv_prog_CPP+set}" = set; then
21960 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 # Double quotes because CPP needs to be expanded
21963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21965 ac_preproc_ok=false
21966 for ac_c_preproc_warn_flag in '' yes
21968 # Use a header file that comes with gcc, so configuring glibc
21969 # with a fresh cross-compiler works.
21970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21971 # <limits.h> exists even on freestanding compilers.
21972 # On the NeXT, cc -E runs the code through the compiler's parser,
21973 # not just through cpp. "Syntax error" is here to catch this case.
21974 cat >conftest.$ac_ext <<_ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21981 # include <limits.h>
21983 # include <assert.h>
21987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21990 grep -v '^ *+' conftest.er1 >conftest.err
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } >/dev/null; then
21995 if test -s conftest.err; then
21996 ac_cpp_err=$ac_c_preproc_warn_flag
21997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22004 if test -z "$ac_cpp_err"; then
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22010 # Broken: fails on valid input.
22013 rm -f conftest.err conftest.$ac_ext
22015 # OK, works on sane cases. Now check whether non-existent headers
22016 # can be detected and how.
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 #include <ac_nonexistent.h>
22025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22028 grep -v '^ *+' conftest.er1 >conftest.err
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } >/dev/null; then
22033 if test -s conftest.err; then
22034 ac_cpp_err=$ac_c_preproc_warn_flag
22035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22042 if test -z "$ac_cpp_err"; then
22043 # Broken: success on invalid input.
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 # Passes both tests.
22053 rm -f conftest.err conftest.$ac_ext
22056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22057 rm -f conftest.err conftest.$ac_ext
22058 if $ac_preproc_ok; then
22063 ac_cv_prog_CPP=$CPP
22066 CPP=$ac_cv_prog_CPP
22068 ac_cv_prog_CPP=$CPP
22070 echo "$as_me:$LINENO: result: $CPP" >&5
22071 echo "${ECHO_T}$CPP" >&6
22072 ac_preproc_ok=false
22073 for ac_c_preproc_warn_flag in '' yes
22075 # Use a header file that comes with gcc, so configuring glibc
22076 # with a fresh cross-compiler works.
22077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22078 # <limits.h> exists even on freestanding compilers.
22079 # On the NeXT, cc -E runs the code through the compiler's parser,
22080 # not just through cpp. "Syntax error" is here to catch this case.
22081 cat >conftest.$ac_ext <<_ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22088 # include <limits.h>
22090 # include <assert.h>
22094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22097 grep -v '^ *+' conftest.er1 >conftest.err
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } >/dev/null; then
22102 if test -s conftest.err; then
22103 ac_cpp_err=$ac_c_preproc_warn_flag
22104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22111 if test -z "$ac_cpp_err"; then
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 # Broken: fails on valid input.
22120 rm -f conftest.err conftest.$ac_ext
22122 # OK, works on sane cases. Now check whether non-existent headers
22123 # can be detected and how.
22124 cat >conftest.$ac_ext <<_ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22130 #include <ac_nonexistent.h>
22132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } >/dev/null; then
22140 if test -s conftest.err; then
22141 ac_cpp_err=$ac_c_preproc_warn_flag
22142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22149 if test -z "$ac_cpp_err"; then
22150 # Broken: success on invalid input.
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22156 # Passes both tests.
22160 rm -f conftest.err conftest.$ac_ext
22163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22164 rm -f conftest.err conftest.$ac_ext
22165 if $ac_preproc_ok; then
22168 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22169 See \`config.log' for more details." >&5
22170 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22171 See \`config.log' for more details." >&2;}
22172 { (exit 1); exit 1; }; }
22176 ac_cpp='$CPP $CPPFLAGS'
22177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22183 *mingw32* ) ac_cv_mingw32=yes ;;
22184 *cygwin* ) ac_cv_cygwin=yes ;;
22190 cat >>confdefs.h <<_ACEOF
22191 #define EXEEXT "${EXEEXT}"
22195 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22196 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22197 if test "${ac_cv_lib_be_be_app+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-lbe -lroot -lnet $LIBS"
22202 cat >conftest.$ac_ext <<_ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22209 /* Override any gcc2 internal prototype to avoid an error. */
22213 /* We use char because int might match the return type of a gcc2
22214 builtin and then its argument prototype would still apply. */
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22226 (eval $ac_link) 2>conftest.er1
22228 grep -v '^ *+' conftest.er1 >conftest.err
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } &&
22233 { ac_try='test -z "$ac_c_werror_flag"
22234 || test ! -s conftest.err'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; } &&
22240 { ac_try='test -s conftest$ac_exeext'
22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }; then
22246 ac_cv_lib_be_be_app=yes
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 ac_cv_lib_be_be_app=no
22253 rm -f conftest.err conftest.$ac_objext \
22254 conftest$ac_exeext conftest.$ac_ext
22255 LIBS=$ac_check_lib_save_LIBS
22257 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22258 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22259 if test $ac_cv_lib_be_be_app = yes; then
22260 LIBS="$LIBS -lbe -lroot -lnet"
22267 ac_cpp='$CPP $CPPFLAGS'
22268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271 if test -n "$ac_tool_prefix"; then
22272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22274 echo "$as_me:$LINENO: checking for $ac_word" >&5
22275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22276 if test "${ac_cv_prog_CC+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22279 if test -n "$CC"; then
22280 ac_cv_prog_CC="$CC" # Let the user override the test.
22282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22283 for as_dir in $PATH
22286 test -z "$as_dir" && as_dir=.
22287 for ac_exec_ext in '' $ac_executable_extensions; do
22288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22299 if test -n "$CC"; then
22300 echo "$as_me:$LINENO: result: $CC" >&5
22301 echo "${ECHO_T}$CC" >&6
22303 echo "$as_me:$LINENO: result: no" >&5
22304 echo "${ECHO_T}no" >&6
22308 if test -z "$ac_cv_prog_CC"; then
22310 # Extract the first word of "gcc", so it can be a program name with args.
22311 set dummy gcc; ac_word=$2
22312 echo "$as_me:$LINENO: checking for $ac_word" >&5
22313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 if test -n "$ac_ct_CC"; then
22318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22321 for as_dir in $PATH
22324 test -z "$as_dir" && as_dir=.
22325 for ac_exec_ext in '' $ac_executable_extensions; do
22326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22327 ac_cv_prog_ac_ct_CC="gcc"
22328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22337 if test -n "$ac_ct_CC"; then
22338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22339 echo "${ECHO_T}$ac_ct_CC" >&6
22341 echo "$as_me:$LINENO: result: no" >&5
22342 echo "${ECHO_T}no" >&6
22347 CC="$ac_cv_prog_CC"
22350 if test -z "$CC"; then
22351 if test -n "$ac_tool_prefix"; then
22352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22353 set dummy ${ac_tool_prefix}cc; ac_word=$2
22354 echo "$as_me:$LINENO: checking for $ac_word" >&5
22355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22356 if test "${ac_cv_prog_CC+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 if test -n "$CC"; then
22360 ac_cv_prog_CC="$CC" # Let the user override the test.
22362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in $PATH
22366 test -z "$as_dir" && as_dir=.
22367 for ac_exec_ext in '' $ac_executable_extensions; do
22368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22369 ac_cv_prog_CC="${ac_tool_prefix}cc"
22370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22379 if test -n "$CC"; then
22380 echo "$as_me:$LINENO: result: $CC" >&5
22381 echo "${ECHO_T}$CC" >&6
22383 echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6
22388 if test -z "$ac_cv_prog_CC"; then
22390 # Extract the first word of "cc", so it can be a program name with args.
22391 set dummy cc; ac_word=$2
22392 echo "$as_me:$LINENO: checking for $ac_word" >&5
22393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22397 if test -n "$ac_ct_CC"; then
22398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22401 for as_dir in $PATH
22404 test -z "$as_dir" && as_dir=.
22405 for ac_exec_ext in '' $ac_executable_extensions; do
22406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22407 ac_cv_prog_ac_ct_CC="cc"
22408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22417 if test -n "$ac_ct_CC"; then
22418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22419 echo "${ECHO_T}$ac_ct_CC" >&6
22421 echo "$as_me:$LINENO: result: no" >&5
22422 echo "${ECHO_T}no" >&6
22427 CC="$ac_cv_prog_CC"
22431 if test -z "$CC"; then
22432 # Extract the first word of "cc", so it can be a program name with args.
22433 set dummy cc; ac_word=$2
22434 echo "$as_me:$LINENO: checking for $ac_word" >&5
22435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22436 if test "${ac_cv_prog_CC+set}" = set; then
22437 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 if test -n "$CC"; then
22440 ac_cv_prog_CC="$CC" # Let the user override the test.
22442 ac_prog_rejected=no
22443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22444 for as_dir in $PATH
22447 test -z "$as_dir" && as_dir=.
22448 for ac_exec_ext in '' $ac_executable_extensions; do
22449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22451 ac_prog_rejected=yes
22455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22461 if test $ac_prog_rejected = yes; then
22462 # We found a bogon in the path, so make sure we never use it.
22463 set dummy $ac_cv_prog_CC
22465 if test $# != 0; then
22466 # We chose a different compiler from the bogus one.
22467 # However, it has the same basename, so the bogon will be chosen
22468 # first if we set CC to just the basename; use the full file name.
22470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22476 if test -n "$CC"; then
22477 echo "$as_me:$LINENO: result: $CC" >&5
22478 echo "${ECHO_T}$CC" >&6
22480 echo "$as_me:$LINENO: result: no" >&5
22481 echo "${ECHO_T}no" >&6
22485 if test -z "$CC"; then
22486 if test -n "$ac_tool_prefix"; then
22489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22491 echo "$as_me:$LINENO: checking for $ac_word" >&5
22492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22493 if test "${ac_cv_prog_CC+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22496 if test -n "$CC"; then
22497 ac_cv_prog_CC="$CC" # Let the user override the test.
22499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22500 for as_dir in $PATH
22503 test -z "$as_dir" && as_dir=.
22504 for ac_exec_ext in '' $ac_executable_extensions; do
22505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22516 if test -n "$CC"; then
22517 echo "$as_me:$LINENO: result: $CC" >&5
22518 echo "${ECHO_T}$CC" >&6
22520 echo "$as_me:$LINENO: result: no" >&5
22521 echo "${ECHO_T}no" >&6
22524 test -n "$CC" && break
22527 if test -z "$CC"; then
22531 # Extract the first word of "$ac_prog", so it can be a program name with args.
22532 set dummy $ac_prog; ac_word=$2
22533 echo "$as_me:$LINENO: checking for $ac_word" >&5
22534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22538 if test -n "$ac_ct_CC"; then
22539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22542 for as_dir in $PATH
22545 test -z "$as_dir" && as_dir=.
22546 for ac_exec_ext in '' $ac_executable_extensions; do
22547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22548 ac_cv_prog_ac_ct_CC="$ac_prog"
22549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22558 if test -n "$ac_ct_CC"; then
22559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22560 echo "${ECHO_T}$ac_ct_CC" >&6
22562 echo "$as_me:$LINENO: result: no" >&5
22563 echo "${ECHO_T}no" >&6
22566 test -n "$ac_ct_CC" && break
22575 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22576 See \`config.log' for more details." >&5
22577 echo "$as_me: error: no acceptable C compiler found in \$PATH
22578 See \`config.log' for more details." >&2;}
22579 { (exit 1); exit 1; }; }
22581 # Provide some information about the compiler.
22582 echo "$as_me:$LINENO:" \
22583 "checking for C compiler version" >&5
22584 ac_compiler=`set X $ac_compile; echo $2`
22585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22586 (eval $ac_compiler --version </dev/null >&5) 2>&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }
22590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22591 (eval $ac_compiler -v </dev/null >&5) 2>&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }
22595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22596 (eval $ac_compiler -V </dev/null >&5) 2>&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }
22601 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22606 cat >conftest.$ac_ext <<_ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22624 rm -f conftest.$ac_objext
22625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22626 (eval $ac_compile) 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } &&
22633 { ac_try='test -z "$ac_c_werror_flag"
22634 || test ! -s conftest.err'
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; } &&
22640 { ac_try='test -s conftest.$ac_objext'
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; }; then
22646 ac_compiler_gnu=yes
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22657 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22659 GCC=`test $ac_compiler_gnu = yes && echo yes`
22660 ac_test_CFLAGS=${CFLAGS+set}
22661 ac_save_CFLAGS=$CFLAGS
22663 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22665 if test "${ac_cv_prog_cc_g+set}" = set; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22683 rm -f conftest.$ac_objext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22685 (eval $ac_compile) 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } &&
22692 { ac_try='test -z "$ac_c_werror_flag"
22693 || test ! -s conftest.err'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; } &&
22699 { ac_try='test -s conftest.$ac_objext'
22700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701 (eval $ac_try) 2>&5
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); }; }; then
22705 ac_cv_prog_cc_g=yes
22707 echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22716 if test "$ac_test_CFLAGS" = set; then
22717 CFLAGS=$ac_save_CFLAGS
22718 elif test $ac_cv_prog_cc_g = yes; then
22719 if test "$GCC" = yes; then
22725 if test "$GCC" = yes; then
22731 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22732 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22733 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22734 echo $ECHO_N "(cached) $ECHO_C" >&6
22736 ac_cv_prog_cc_stdc=no
22738 cat >conftest.$ac_ext <<_ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22744 #include <stdarg.h>
22746 #include <sys/types.h>
22747 #include <sys/stat.h>
22748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22749 struct buf { int x; };
22750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22751 static char *e (p, i)
22757 static char *f (char * (*g) (char **, int), char **p, ...)
22762 s = g (p, va_arg (v,int));
22767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22768 function prototypes and stuff, but not '\xHH' hex character constants.
22769 These don't provoke an error unfortunately, instead are silently treated
22770 as 'x'. The following induces an error, until -std1 is added to get
22771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22772 array size at least. It's necessary to write '\x00'==0 to get something
22773 that's true only with -std1. */
22774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22776 int test (int i, double x);
22777 struct s1 {int (*f) (int a);};
22778 struct s2 {int (*f) (double a);};
22779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22790 # Don't try gcc -ansi; that turns off useful extensions and
22791 # breaks some systems' header files.
22792 # AIX -qlanglvl=ansi
22793 # Ultrix and OSF/1 -std1
22794 # HP-UX 10.20 and later -Ae
22795 # HP-UX older versions -Aa -D_HPUX_SOURCE
22796 # SVR4 -Xc -D__EXTENSIONS__
22797 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22799 CC="$ac_save_CC $ac_arg"
22800 rm -f conftest.$ac_objext
22801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22802 (eval $ac_compile) 2>conftest.er1
22804 grep -v '^ *+' conftest.er1 >conftest.err
22806 cat conftest.err >&5
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } &&
22809 { ac_try='test -z "$ac_c_werror_flag"
22810 || test ! -s conftest.err'
22811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812 (eval $ac_try) 2>&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); }; } &&
22816 { ac_try='test -s conftest.$ac_objext'
22817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818 (eval $ac_try) 2>&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); }; }; then
22822 ac_cv_prog_cc_stdc=$ac_arg
22825 echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22829 rm -f conftest.err conftest.$ac_objext
22831 rm -f conftest.$ac_ext conftest.$ac_objext
22836 case "x$ac_cv_prog_cc_stdc" in
22838 echo "$as_me:$LINENO: result: none needed" >&5
22839 echo "${ECHO_T}none needed" >&6 ;;
22841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22842 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22843 CC="$CC $ac_cv_prog_cc_stdc" ;;
22846 # Some people use a C++ compiler to compile C. Since we use `exit',
22847 # in C++ we need to declare it. In case someone uses the same compiler
22848 # for both compiling C and C++ we need to have the C++ compiler decide
22849 # the declaration of exit, since it's the most demanding environment.
22850 cat >conftest.$ac_ext <<_ACEOF
22851 #ifndef __cplusplus
22855 rm -f conftest.$ac_objext
22856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22857 (eval $ac_compile) 2>conftest.er1
22859 grep -v '^ *+' conftest.er1 >conftest.err
22861 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } &&
22864 { ac_try='test -z "$ac_c_werror_flag"
22865 || test ! -s conftest.err'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; } &&
22871 { ac_try='test -s conftest.$ac_objext'
22872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873 (eval $ac_try) 2>&5
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; }; then
22877 for ac_declaration in \
22879 'extern "C" void std::exit (int) throw (); using std::exit;' \
22880 'extern "C" void std::exit (int); using std::exit;' \
22881 'extern "C" void exit (int) throw ();' \
22882 'extern "C" void exit (int);' \
22885 cat >conftest.$ac_ext <<_ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h. */
22892 #include <stdlib.h>
22901 rm -f conftest.$ac_objext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22903 (eval $ac_compile) 2>conftest.er1
22905 grep -v '^ *+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } &&
22910 { ac_try='test -z "$ac_c_werror_flag"
22911 || test ! -s conftest.err'
22912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913 (eval $ac_try) 2>&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); }; } &&
22917 { ac_try='test -s conftest.$ac_objext'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; }; then
22925 echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22931 cat >conftest.$ac_ext <<_ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22946 rm -f conftest.$ac_objext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22948 (eval $ac_compile) 2>conftest.er1
22950 grep -v '^ *+' conftest.er1 >conftest.err
22952 cat conftest.err >&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } &&
22955 { ac_try='test -z "$ac_c_werror_flag"
22956 || test ! -s conftest.err'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; } &&
22962 { ac_try='test -s conftest.$ac_objext'
22963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; }; then
22970 echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22977 if test -n "$ac_declaration"; then
22978 echo '#ifdef __cplusplus' >>confdefs.h
22979 echo $ac_declaration >>confdefs.h
22980 echo '#endif' >>confdefs.h
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22990 ac_cpp='$CPP $CPPFLAGS'
22991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22995 depcc="$CC" am_compiler_list=
22997 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22998 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22999 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23003 # We make a subdir and do the tests there. Otherwise we can end up
23004 # making bogus files that we don't know about and never remove. For
23005 # instance it was reported that on HP-UX the gcc test will end up
23006 # making a dummy file named `D' -- because `-MD' means `put the output
23009 # Copy depcomp to subdir because otherwise we won't find it if we're
23010 # using a relative directory.
23011 cp "$am_depcomp" conftest.dir
23013 # We will build objects and dependencies in a subdirectory because
23014 # it helps to detect inapplicable dependency modes. For instance
23015 # both Tru64's cc and ICC support -MD to output dependencies as a
23016 # side effect of compilation, but ICC will put the dependencies in
23017 # the current directory while Tru64 will put them in the object
23021 am_cv_CC_dependencies_compiler_type=none
23022 if test "$am_compiler_list" = ""; then
23023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23025 for depmode in $am_compiler_list; do
23026 # Setup a source with many dependencies, because some compilers
23027 # like to wrap large dependency lists on column 80 (with \), and
23028 # we should not choose a depcomp mode which is confused by this.
23030 # We need to recreate these files for each test, as the compiler may
23031 # overwrite some of them when testing with obscure command lines.
23032 # This happens at least with the AIX C compiler.
23034 for i in 1 2 3 4 5 6; do
23035 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23036 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23037 # Solaris 8's {/usr,}/bin/sh.
23038 touch sub/conftst$i.h
23040 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23044 # after this tag, mechanisms are not by side-effect, so they'll
23045 # only be used when explicitly requested
23046 if test "x$enable_dependency_tracking" = xyes; then
23054 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23055 # mode. It turns out that the SunPro C++ compiler does not properly
23056 # handle `-M -o', and we need to detect this.
23057 if depmode=$depmode \
23058 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23059 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23060 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23061 >/dev/null 2>conftest.err &&
23062 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23063 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23064 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23065 # icc doesn't choke on unknown options, it will just issue warnings
23066 # or remarks (even with -Werror). So we grep stderr for any message
23067 # that says an option was ignored or not supported.
23068 # When given -MP, icc 7.0 and 7.1 complain thusly:
23069 # icc: Command line warning: ignoring option '-M'; no argument required
23070 # The diagnosis changed in icc 8.0:
23071 # icc: Command line remark: option '-MP' not supported
23072 if (grep 'ignoring option' conftest.err ||
23073 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23074 am_cv_CC_dependencies_compiler_type=$depmode
23081 rm -rf conftest.dir
23083 am_cv_CC_dependencies_compiler_type=none
23087 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
23088 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
23089 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
23094 test "x$enable_dependency_tracking" != xno \
23095 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
23096 am__fastdepCC_TRUE=
23097 am__fastdepCC_FALSE='#'
23099 am__fastdepCC_TRUE='#'
23100 am__fastdepCC_FALSE=
23104 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
23105 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
23106 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
23107 { (exit 1); exit 1; }; }
23110 # test for make depend flag
23113 if test -z "${MKDEP}"; then
23114 OL_MKDEP="${CC-cc}"
23115 if test -z "${MKDEP_FLAGS}"; then
23116 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
23117 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
23118 if test "${ol_cv_mkdep+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 for flag in "-M" "-xM"; do
23124 cat > conftest.c <<EOF
23127 if { ac_try='$OL_MKDEP $flag conftest.c'
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; } \
23133 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
23135 if test ! -f conftest."${ac_object}" ; then
23137 OL_MKDEP_FLAGS="$flag"
23145 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
23146 echo "${ECHO_T}$ol_cv_mkdep" >&6
23149 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23153 OL_MKDEP="${MKDEP}"
23154 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23159 if test "${ol_cv_mkdep}" = no ; then
23160 # this will soon become an error
23161 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23162 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23165 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23166 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23167 if test "${ac_cv_lib_s_afopen+set}" = set; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 ac_check_lib_save_LIBS=$LIBS
23172 cat >conftest.$ac_ext <<_ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h. */
23179 /* Override any gcc2 internal prototype to avoid an error. */
23183 /* We use char because int might match the return type of a gcc2
23184 builtin and then its argument prototype would still apply. */
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23196 (eval $ac_link) 2>conftest.er1
23198 grep -v '^ *+' conftest.er1 >conftest.err
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } &&
23203 { ac_try='test -z "$ac_c_werror_flag"
23204 || test ! -s conftest.err'
23205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); }; } &&
23210 { ac_try='test -s conftest$ac_exeext'
23211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212 (eval $ac_try) 2>&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); }; }; then
23216 ac_cv_lib_s_afopen=yes
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ac_cv_lib_s_afopen=no
23223 rm -f conftest.err conftest.$ac_objext \
23224 conftest$ac_exeext conftest.$ac_ext
23225 LIBS=$ac_check_lib_save_LIBS
23227 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23228 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23229 if test $ac_cv_lib_s_afopen = yes; then
23233 cat >>confdefs.h <<\_ACEOF
23234 #define HAVE_AIX_SECURITY 1
23243 ac_cv_func_getopt=no
23245 cat >>confdefs.h <<\_ACEOF
23246 #define BOTH_STRINGS_H 1
23253 WITH_MODULES_ENABLED=no
23254 if test $ol_enable_modules != no ; then
23256 for ac_header in ltdl.h
23258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23260 echo "$as_me:$LINENO: checking for $ac_header" >&5
23261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23263 echo $ECHO_N "(cached) $ECHO_C" >&6
23265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23268 # Is the header compilable?
23269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23271 cat >conftest.$ac_ext <<_ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h. */
23277 $ac_includes_default
23278 #include <$ac_header>
23280 rm -f conftest.$ac_objext
23281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23282 (eval $ac_compile) 2>conftest.er1
23284 grep -v '^ *+' conftest.er1 >conftest.err
23286 cat conftest.err >&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } &&
23289 { ac_try='test -z "$ac_c_werror_flag"
23290 || test ! -s conftest.err'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; } &&
23296 { ac_try='test -s conftest.$ac_objext'
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_header_compiler=yes
23304 echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_header_compiler=no
23309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23311 echo "${ECHO_T}$ac_header_compiler" >&6
23313 # Is the header present?
23314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23316 cat >conftest.$ac_ext <<_ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23322 #include <$ac_header>
23324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } >/dev/null; then
23332 if test -s conftest.err; then
23333 ac_cpp_err=$ac_c_preproc_warn_flag
23334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23341 if test -z "$ac_cpp_err"; then
23342 ac_header_preproc=yes
23344 echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23347 ac_header_preproc=no
23349 rm -f conftest.err conftest.$ac_ext
23350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23351 echo "${ECHO_T}$ac_header_preproc" >&6
23353 # So? What about this header?
23354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23360 ac_header_preproc=yes
23363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23377 ## ------------------------------------------ ##
23378 ## Report this to the AC_PACKAGE_NAME lists. ##
23379 ## ------------------------------------------ ##
23382 sed "s/^/$as_me: WARNING: /" >&2
23385 echo "$as_me:$LINENO: checking for $ac_header" >&5
23386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23390 eval "$as_ac_Header=\$ac_header_preproc"
23392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23397 cat >>confdefs.h <<_ACEOF
23398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23406 if test $ac_cv_header_ltdl_h = no ; then
23407 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23408 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23409 { (exit 1); exit 1; }; }
23412 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23413 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23414 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23417 ac_check_lib_save_LIBS=$LIBS
23418 LIBS="-lltdl $LIBS"
23419 cat >conftest.$ac_ext <<_ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23426 /* Override any gcc2 internal prototype to avoid an error. */
23430 /* We use char because int might match the return type of a gcc2
23431 builtin and then its argument prototype would still apply. */
23441 rm -f conftest.$ac_objext conftest$ac_exeext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443 (eval $ac_link) 2>conftest.er1
23445 grep -v '^ *+' conftest.er1 >conftest.err
23447 cat conftest.err >&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); } &&
23450 { ac_try='test -z "$ac_c_werror_flag"
23451 || test ! -s conftest.err'
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; } &&
23457 { ac_try='test -s conftest$ac_exeext'
23458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459 (eval $ac_try) 2>&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); }; }; then
23463 ac_cv_lib_ltdl_lt_dlinit=yes
23465 echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23468 ac_cv_lib_ltdl_lt_dlinit=no
23470 rm -f conftest.err conftest.$ac_objext \
23471 conftest$ac_exeext conftest.$ac_ext
23472 LIBS=$ac_check_lib_save_LIBS
23474 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23475 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23476 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23478 MODULES_LIBS=-lltdl
23480 cat >>confdefs.h <<\_ACEOF
23481 #define HAVE_LIBLTDL 1
23488 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23489 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23490 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23491 { (exit 1); exit 1; }; }
23493 ol_link_modules=yes
23494 WITH_MODULES_ENABLED=yes
23497 for i in $Backends; do
23498 eval "ol_tmp=\$ol_enable_$i"
23499 if test $ol_tmp = mod ; then
23500 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23501 echo "$as_me: WARNING: building static $i backend" >&2;}
23502 eval "ol_enable_$i=yes"
23505 for i in $Overlays; do
23506 eval "ol_tmp=\$ol_enable_$i"
23507 if test $ol_tmp = mod ; then
23508 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23509 echo "$as_me: WARNING: building static $i overlay" >&2;}
23510 eval "ol_enable_$i=yes"
23516 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23517 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23518 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23519 echo $ECHO_N "(cached) $ECHO_C" >&6
23522 cat >conftest.$ac_ext <<_ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23530 #include <__ASCII__/generate_error.h>
23534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23537 grep -v '^ *+' conftest.er1 >conftest.err
23539 cat conftest.err >&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); } >/dev/null; then
23542 if test -s conftest.err; then
23543 ac_cpp_err=$ac_c_preproc_warn_flag
23544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23551 if test -z "$ac_cpp_err"; then
23552 ol_cv_cpp_ebcdic=yes
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23557 ol_cv_cpp_ebcdic=no
23559 rm -f conftest.err conftest.$ac_ext
23561 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23562 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23563 if test $ol_cv_cpp_ebcdic = yes ; then
23565 cat >>confdefs.h <<\_ACEOF
23566 #define HAVE_EBCDIC 1
23571 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23573 if test "${ol_cv_header_stdc+set}" = set; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 cat >conftest.$ac_ext <<_ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 #include <stdlib.h>
23583 #include <stdarg.h>
23584 #include <string.h>
23587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23590 grep -v '^ *+' conftest.er1 >conftest.err
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } >/dev/null; then
23595 if test -s conftest.err; then
23596 ac_cpp_err=$ac_c_preproc_warn_flag
23597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23604 if test -z "$ac_cpp_err"; then
23605 ol_cv_header_stdc=yes
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ol_cv_header_stdc=no
23612 rm -f conftest.err conftest.$ac_ext
23614 if test $ol_cv_header_stdc = yes; then
23615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23616 cat >conftest.$ac_ext <<_ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23622 #include <string.h>
23625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23626 $EGREP "memchr" >/dev/null 2>&1; then
23629 ol_cv_header_stdc=no
23635 if test $ol_cv_header_stdc = yes; then
23636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23637 cat >conftest.$ac_ext <<_ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23643 #include <stdlib.h>
23646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23647 $EGREP "free" >/dev/null 2>&1; then
23650 ol_cv_header_stdc=no
23656 if test $ol_cv_header_stdc = yes; then
23657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23658 if test "$cross_compiling" = yes; then
23661 cat >conftest.$ac_ext <<_ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h. */
23668 #ifndef HAVE_EBCDIC
23669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23672 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23673 || ('j' <= (c) && (c) <= 'r') \
23674 || ('s' <= (c) && (c) <= 'z'))
23675 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23678 int main () { int i; for (i = 0; i < 256; i++)
23679 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23683 rm -f conftest$ac_exeext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23685 (eval $ac_link) 2>&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; }; then
23696 echo "$as_me: program exited with status $ac_status" >&5
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23700 ( exit $ac_status )
23701 ol_cv_header_stdc=no
23703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23707 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23708 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23709 if test $ol_cv_header_stdc = yes; then
23710 cat >>confdefs.h <<\_ACEOF
23711 #define STDC_HEADERS 1
23715 ac_cv_header_stdc=disable
23718 if test $ol_cv_header_stdc != yes; then
23719 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23720 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23728 ac_header_dirent=no
23729 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23730 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23731 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23732 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23736 cat >conftest.$ac_ext <<_ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23742 #include <sys/types.h>
23754 rm -f conftest.$ac_objext
23755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23756 (eval $ac_compile) 2>conftest.er1
23758 grep -v '^ *+' conftest.er1 >conftest.err
23760 cat conftest.err >&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } &&
23763 { ac_try='test -z "$ac_c_werror_flag"
23764 || test ! -s conftest.err'
23765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766 (eval $ac_try) 2>&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); }; } &&
23770 { ac_try='test -s conftest.$ac_objext'
23771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23772 (eval $ac_try) 2>&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); }; }; then
23776 eval "$as_ac_Header=yes"
23778 echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23781 eval "$as_ac_Header=no"
23783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23788 cat >>confdefs.h <<_ACEOF
23789 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23792 ac_header_dirent=$ac_hdr; break
23796 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23797 if test $ac_header_dirent = dirent.h; then
23798 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23799 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23800 if test "${ac_cv_search_opendir+set}" = set; then
23801 echo $ECHO_N "(cached) $ECHO_C" >&6
23803 ac_func_search_save_LIBS=$LIBS
23804 ac_cv_search_opendir=no
23805 cat >conftest.$ac_ext <<_ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h. */
23812 /* Override any gcc2 internal prototype to avoid an error. */
23816 /* We use char because int might match the return type of a gcc2
23817 builtin and then its argument prototype would still apply. */
23827 rm -f conftest.$ac_objext conftest$ac_exeext
23828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23829 (eval $ac_link) 2>conftest.er1
23831 grep -v '^ *+' conftest.er1 >conftest.err
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } &&
23836 { ac_try='test -z "$ac_c_werror_flag"
23837 || test ! -s conftest.err'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; } &&
23843 { ac_try='test -s conftest$ac_exeext'
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; }; then
23849 ac_cv_search_opendir="none required"
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23855 rm -f conftest.err conftest.$ac_objext \
23856 conftest$ac_exeext conftest.$ac_ext
23857 if test "$ac_cv_search_opendir" = no; then
23858 for ac_lib in dir; do
23859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23860 cat >conftest.$ac_ext <<_ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23867 /* Override any gcc2 internal prototype to avoid an error. */
23871 /* We use char because int might match the return type of a gcc2
23872 builtin and then its argument prototype would still apply. */
23882 rm -f conftest.$ac_objext conftest$ac_exeext
23883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23884 (eval $ac_link) 2>conftest.er1
23886 grep -v '^ *+' conftest.er1 >conftest.err
23888 cat conftest.err >&5
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } &&
23891 { ac_try='test -z "$ac_c_werror_flag"
23892 || test ! -s conftest.err'
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; } &&
23898 { ac_try='test -s conftest$ac_exeext'
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; }; then
23904 ac_cv_search_opendir="-l$ac_lib"
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23911 rm -f conftest.err conftest.$ac_objext \
23912 conftest$ac_exeext conftest.$ac_ext
23915 LIBS=$ac_func_search_save_LIBS
23917 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23918 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23919 if test "$ac_cv_search_opendir" != no; then
23920 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23925 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23926 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23927 if test "${ac_cv_search_opendir+set}" = set; then
23928 echo $ECHO_N "(cached) $ECHO_C" >&6
23930 ac_func_search_save_LIBS=$LIBS
23931 ac_cv_search_opendir=no
23932 cat >conftest.$ac_ext <<_ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23939 /* Override any gcc2 internal prototype to avoid an error. */
23943 /* We use char because int might match the return type of a gcc2
23944 builtin and then its argument prototype would still apply. */
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23956 (eval $ac_link) 2>conftest.er1
23958 grep -v '^ *+' conftest.er1 >conftest.err
23960 cat conftest.err >&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); } &&
23963 { ac_try='test -z "$ac_c_werror_flag"
23964 || test ! -s conftest.err'
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; } &&
23970 { ac_try='test -s conftest$ac_exeext'
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; }; then
23976 ac_cv_search_opendir="none required"
23978 echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23982 rm -f conftest.err conftest.$ac_objext \
23983 conftest$ac_exeext conftest.$ac_ext
23984 if test "$ac_cv_search_opendir" = no; then
23985 for ac_lib in x; do
23986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23987 cat >conftest.$ac_ext <<_ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h. */
23994 /* Override any gcc2 internal prototype to avoid an error. */
23998 /* We use char because int might match the return type of a gcc2
23999 builtin and then its argument prototype would still apply. */
24009 rm -f conftest.$ac_objext conftest$ac_exeext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24011 (eval $ac_link) 2>conftest.er1
24013 grep -v '^ *+' conftest.er1 >conftest.err
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } &&
24018 { ac_try='test -z "$ac_c_werror_flag"
24019 || test ! -s conftest.err'
24020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021 (eval $ac_try) 2>&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); }; } &&
24025 { ac_try='test -s conftest$ac_exeext'
24026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027 (eval $ac_try) 2>&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); }; }; then
24031 ac_cv_search_opendir="-l$ac_lib"
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24038 rm -f conftest.err conftest.$ac_objext \
24039 conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_func_search_save_LIBS
24044 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24045 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24046 if test "$ac_cv_search_opendir" != no; then
24047 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24053 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
24055 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24058 cat >conftest.$ac_ext <<_ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h. */
24064 #include <sys/types.h>
24065 #include <sys/wait.h>
24066 #ifndef WEXITSTATUS
24067 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
24070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24083 rm -f conftest.$ac_objext
24084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24085 (eval $ac_compile) 2>conftest.er1
24087 grep -v '^ *+' conftest.er1 >conftest.err
24089 cat conftest.err >&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } &&
24092 { ac_try='test -z "$ac_c_werror_flag"
24093 || test ! -s conftest.err'
24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095 (eval $ac_try) 2>&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; } &&
24099 { ac_try='test -s conftest.$ac_objext'
24100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101 (eval $ac_try) 2>&5
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); }; }; then
24105 ac_cv_header_sys_wait_h=yes
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_header_sys_wait_h=no
24112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24114 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24115 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
24116 if test $ac_cv_header_sys_wait_h = yes; then
24118 cat >>confdefs.h <<\_ACEOF
24119 #define HAVE_SYS_WAIT_H 1
24124 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
24125 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
24126 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24129 cat >conftest.$ac_ext <<_ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24135 #include <sys/types.h>
24136 #include <termios.h>
24142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24143 $EGREP "yes" >/dev/null 2>&1; then
24144 ac_cv_sys_tiocgwinsz_in_termios_h=yes
24146 ac_cv_sys_tiocgwinsz_in_termios_h=no
24151 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
24152 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24154 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24155 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24156 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24157 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24158 echo $ECHO_N "(cached) $ECHO_C" >&6
24160 cat >conftest.$ac_ext <<_ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h. */
24166 #include <sys/types.h>
24167 #include <sys/ioctl.h>
24173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24174 $EGREP "yes" >/dev/null 2>&1; then
24175 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24177 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24182 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24183 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24185 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24187 cat >>confdefs.h <<\_ACEOF
24188 #define GWINSZ_IN_SYS_IOCTL 1
24292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24294 echo "$as_me:$LINENO: checking for $ac_header" >&5
24295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24297 echo $ECHO_N "(cached) $ECHO_C" >&6
24299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24302 # Is the header compilable?
24303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24305 cat >conftest.$ac_ext <<_ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h. */
24311 $ac_includes_default
24312 #include <$ac_header>
24314 rm -f conftest.$ac_objext
24315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24316 (eval $ac_compile) 2>conftest.er1
24318 grep -v '^ *+' conftest.er1 >conftest.err
24320 cat conftest.err >&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } &&
24323 { ac_try='test -z "$ac_c_werror_flag"
24324 || test ! -s conftest.err'
24325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24326 (eval $ac_try) 2>&5
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); }; } &&
24330 { ac_try='test -s conftest.$ac_objext'
24331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24332 (eval $ac_try) 2>&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); }; }; then
24336 ac_header_compiler=yes
24338 echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24341 ac_header_compiler=no
24343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24345 echo "${ECHO_T}$ac_header_compiler" >&6
24347 # Is the header present?
24348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24350 cat >conftest.$ac_ext <<_ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h. */
24356 #include <$ac_header>
24358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24361 grep -v '^ *+' conftest.er1 >conftest.err
24363 cat conftest.err >&5
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); } >/dev/null; then
24366 if test -s conftest.err; then
24367 ac_cpp_err=$ac_c_preproc_warn_flag
24368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24375 if test -z "$ac_cpp_err"; then
24376 ac_header_preproc=yes
24378 echo "$as_me: failed program was:" >&5
24379 sed 's/^/| /' conftest.$ac_ext >&5
24381 ac_header_preproc=no
24383 rm -f conftest.err conftest.$ac_ext
24384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24385 echo "${ECHO_T}$ac_header_preproc" >&6
24387 # So? What about this header?
24388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24394 ac_header_preproc=yes
24397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24411 ## ------------------------------------------ ##
24412 ## Report this to the AC_PACKAGE_NAME lists. ##
24413 ## ------------------------------------------ ##
24416 sed "s/^/$as_me: WARNING: /" >&2
24419 echo "$as_me:$LINENO: checking for $ac_header" >&5
24420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24422 echo $ECHO_N "(cached) $ECHO_C" >&6
24424 eval "$as_ac_Header=\$ac_header_preproc"
24426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24431 cat >>confdefs.h <<_ACEOF
24432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24441 for ac_header in resolv.h
24443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24444 echo "$as_me:$LINENO: checking for $ac_header" >&5
24445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24449 cat >conftest.$ac_ext <<_ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h. */
24455 $ac_includes_default
24456 #include <netinet/in.h>
24459 #include <$ac_header>
24461 rm -f conftest.$ac_objext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24463 (eval $ac_compile) 2>conftest.er1
24465 grep -v '^ *+' conftest.er1 >conftest.err
24467 cat conftest.err >&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } &&
24470 { ac_try='test -z "$ac_c_werror_flag"
24471 || test ! -s conftest.err'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
24477 { ac_try='test -s conftest.$ac_objext'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 eval "$as_ac_Header=yes"
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24488 eval "$as_ac_Header=no"
24490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24495 cat >>confdefs.h <<_ACEOF
24496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24505 for ac_header in sys/ucred.h
24507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24508 echo "$as_me:$LINENO: checking for $ac_header" >&5
24509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24511 echo $ECHO_N "(cached) $ECHO_C" >&6
24513 cat >conftest.$ac_ext <<_ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h. */
24519 $ac_includes_default
24520 #ifdef HAVE_SYS_PARAM_H
24521 #include <sys/param.h>
24525 #include <$ac_header>
24527 rm -f conftest.$ac_objext
24528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24529 (eval $ac_compile) 2>conftest.er1
24531 grep -v '^ *+' conftest.er1 >conftest.err
24533 cat conftest.err >&5
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } &&
24536 { ac_try='test -z "$ac_c_werror_flag"
24537 || test ! -s conftest.err'
24538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539 (eval $ac_try) 2>&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; } &&
24543 { ac_try='test -s conftest.$ac_objext'
24544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545 (eval $ac_try) 2>&5
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); }; }; then
24549 eval "$as_ac_Header=yes"
24551 echo "$as_me: failed program was:" >&5
24552 sed 's/^/| /' conftest.$ac_ext >&5
24554 eval "$as_ac_Header=no"
24556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24561 cat >>confdefs.h <<_ACEOF
24562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24573 for ac_func in sigaction sigset
24575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24576 echo "$as_me:$LINENO: checking for $ac_func" >&5
24577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24578 if eval "test \"\${$as_ac_var+set}\" = set"; then
24579 echo $ECHO_N "(cached) $ECHO_C" >&6
24581 cat >conftest.$ac_ext <<_ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24589 #define $ac_func innocuous_$ac_func
24591 /* System header to define __stub macros and hopefully few prototypes,
24592 which can conflict with char $ac_func (); below.
24593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24594 <limits.h> exists even on freestanding compilers. */
24597 # include <limits.h>
24599 # include <assert.h>
24604 /* Override any gcc2 internal prototype to avoid an error. */
24609 /* We use char because int might match the return type of a gcc2
24610 builtin and then its argument prototype would still apply. */
24612 /* The GNU C library defines this for functions which it implements
24613 to always fail with ENOSYS. Some functions are actually named
24614 something starting with __ and the normal name is an alias. */
24615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24618 char (*f) () = $ac_func;
24627 return f != $ac_func;
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24634 (eval $ac_link) 2>conftest.er1
24636 grep -v '^ *+' conftest.er1 >conftest.err
24638 cat conftest.err >&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); } &&
24641 { ac_try='test -z "$ac_c_werror_flag"
24642 || test ! -s conftest.err'
24643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24644 (eval $ac_try) 2>&5
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); }; } &&
24648 { ac_try='test -s conftest$ac_exeext'
24649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650 (eval $ac_try) 2>&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); }; }; then
24654 eval "$as_ac_var=yes"
24656 echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24659 eval "$as_ac_var=no"
24661 rm -f conftest.err conftest.$ac_objext \
24662 conftest$ac_exeext conftest.$ac_ext
24664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24666 if test `eval echo '${'$as_ac_var'}'` = yes; then
24667 cat >>confdefs.h <<_ACEOF
24668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24675 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24677 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24678 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24679 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
24682 ac_check_lib_save_LIBS=$LIBS
24684 cat >conftest.$ac_ext <<_ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24691 /* Override any gcc2 internal prototype to avoid an error. */
24695 /* We use char because int might match the return type of a gcc2
24696 builtin and then its argument prototype would still apply. */
24706 rm -f conftest.$ac_objext conftest$ac_exeext
24707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24708 (eval $ac_link) 2>conftest.er1
24710 grep -v '^ *+' conftest.er1 >conftest.err
24712 cat conftest.err >&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } &&
24715 { ac_try='test -z "$ac_c_werror_flag"
24716 || test ! -s conftest.err'
24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 (eval $ac_try) 2>&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; } &&
24722 { ac_try='test -s conftest$ac_exeext'
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 ac_cv_lib_V3_sigset=yes
24730 echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24733 ac_cv_lib_V3_sigset=no
24735 rm -f conftest.err conftest.$ac_objext \
24736 conftest$ac_exeext conftest.$ac_ext
24737 LIBS=$ac_check_lib_save_LIBS
24739 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24740 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24741 if test $ac_cv_lib_V3_sigset = yes; then
24742 cat >>confdefs.h <<_ACEOF
24743 #define HAVE_LIBV3 1
24752 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24753 echo "$as_me:$LINENO: checking for winsock" >&5
24754 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24755 if test "${ol_cv_winsock+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 for curlib in ws2_32 wsock32; do
24760 LIBS="$LIBS -l$curlib"
24761 cat >conftest.$ac_ext <<_ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h. */
24767 #include <winsock.h>
24774 select(0,NULL,NULL,NULL,NULL);
24776 gethostname(NULL,0);
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24784 (eval $ac_link) 2>conftest.er1
24786 grep -v '^ *+' conftest.er1 >conftest.err
24788 cat conftest.err >&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); } &&
24791 { ac_try='test -z "$ac_c_werror_flag"
24792 || test ! -s conftest.err'
24793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794 (eval $ac_try) 2>&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; } &&
24798 { ac_try='test -s conftest$ac_exeext'
24799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800 (eval $ac_try) 2>&5
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); }; }; then
24806 echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24811 rm -f conftest.err conftest.$ac_objext \
24812 conftest$ac_exeext conftest.$ac_ext
24814 if test $ol_cv_winsock = yes; then
24816 cat >>confdefs.h <<\_ACEOF
24817 #define HAVE_WINSOCK 1
24820 ac_cv_func_socket=yes
24821 ac_cv_func_select=yes
24822 ac_cv_func_closesocket=yes
24823 ac_cv_func_gethostname=yes
24824 if test $curlib = ws2_32; then
24825 ol_cv_winsock=winsock2
24827 cat >>confdefs.h <<\_ACEOF
24828 #define HAVE_WINSOCK2 1
24837 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24838 echo "${ECHO_T}$ol_cv_winsock" >&6
24842 echo "$as_me:$LINENO: checking for socket" >&5
24843 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24844 if test "${ac_cv_func_socket+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 cat >conftest.$ac_ext <<_ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h. */
24853 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24855 #define socket innocuous_socket
24857 /* System header to define __stub macros and hopefully few prototypes,
24858 which can conflict with char socket (); below.
24859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24860 <limits.h> exists even on freestanding compilers. */
24863 # include <limits.h>
24865 # include <assert.h>
24870 /* Override any gcc2 internal prototype to avoid an error. */
24875 /* We use char because int might match the return type of a gcc2
24876 builtin and then its argument prototype would still apply. */
24878 /* The GNU C library defines this for functions which it implements
24879 to always fail with ENOSYS. Some functions are actually named
24880 something starting with __ and the normal name is an alias. */
24881 #if defined (__stub_socket) || defined (__stub___socket)
24884 char (*f) () = socket;
24893 return f != socket;
24898 rm -f conftest.$ac_objext conftest$ac_exeext
24899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24900 (eval $ac_link) 2>conftest.er1
24902 grep -v '^ *+' conftest.er1 >conftest.err
24904 cat conftest.err >&5
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); } &&
24907 { ac_try='test -z "$ac_c_werror_flag"
24908 || test ! -s conftest.err'
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; } &&
24914 { ac_try='test -s conftest$ac_exeext'
24915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916 (eval $ac_try) 2>&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); }; }; then
24920 ac_cv_func_socket=yes
24922 echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24925 ac_cv_func_socket=no
24927 rm -f conftest.err conftest.$ac_objext \
24928 conftest$ac_exeext conftest.$ac_ext
24930 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24931 echo "${ECHO_T}$ac_cv_func_socket" >&6
24932 if test $ac_cv_func_socket = yes; then
24937 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24938 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24939 if test "${ac_cv_lib_socket_main+set}" = set; then
24940 echo $ECHO_N "(cached) $ECHO_C" >&6
24942 ac_check_lib_save_LIBS=$LIBS
24943 LIBS="-lsocket $LIBS"
24944 cat >conftest.$ac_ext <<_ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h. */
24960 rm -f conftest.$ac_objext conftest$ac_exeext
24961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24962 (eval $ac_link) 2>conftest.er1
24964 grep -v '^ *+' conftest.er1 >conftest.err
24966 cat conftest.err >&5
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); } &&
24969 { ac_try='test -z "$ac_c_werror_flag"
24970 || test ! -s conftest.err'
24971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24972 (eval $ac_try) 2>&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); }; } &&
24976 { ac_try='test -s conftest$ac_exeext'
24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978 (eval $ac_try) 2>&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); }; }; then
24982 ac_cv_lib_socket_main=yes
24984 echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24987 ac_cv_lib_socket_main=no
24989 rm -f conftest.err conftest.$ac_objext \
24990 conftest$ac_exeext conftest.$ac_ext
24991 LIBS=$ac_check_lib_save_LIBS
24993 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24994 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24995 if test $ac_cv_lib_socket_main = yes; then
24996 cat >>confdefs.h <<_ACEOF
24997 #define HAVE_LIBSOCKET 1
25000 LIBS="-lsocket $LIBS"
25005 echo "$as_me:$LINENO: checking for main in -lnet" >&5
25006 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
25007 if test "${ac_cv_lib_net_main+set}" = set; then
25008 echo $ECHO_N "(cached) $ECHO_C" >&6
25010 ac_check_lib_save_LIBS=$LIBS
25012 cat >conftest.$ac_ext <<_ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25028 rm -f conftest.$ac_objext conftest$ac_exeext
25029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25030 (eval $ac_link) 2>conftest.er1
25032 grep -v '^ *+' conftest.er1 >conftest.err
25034 cat conftest.err >&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } &&
25037 { ac_try='test -z "$ac_c_werror_flag"
25038 || test ! -s conftest.err'
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; } &&
25044 { ac_try='test -s conftest$ac_exeext'
25045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25046 (eval $ac_try) 2>&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); }; }; then
25050 ac_cv_lib_net_main=yes
25052 echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25055 ac_cv_lib_net_main=no
25057 rm -f conftest.err conftest.$ac_objext \
25058 conftest$ac_exeext conftest.$ac_ext
25059 LIBS=$ac_check_lib_save_LIBS
25061 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
25062 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
25063 if test $ac_cv_lib_net_main = yes; then
25064 cat >>confdefs.h <<_ACEOF
25065 #define HAVE_LIBNET 1
25073 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
25074 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
25075 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
25076 echo $ECHO_N "(cached) $ECHO_C" >&6
25078 ac_check_lib_save_LIBS=$LIBS
25079 LIBS="-lnsl_s $LIBS"
25080 cat >conftest.$ac_ext <<_ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25096 rm -f conftest.$ac_objext conftest$ac_exeext
25097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25098 (eval $ac_link) 2>conftest.er1
25100 grep -v '^ *+' conftest.er1 >conftest.err
25102 cat conftest.err >&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } &&
25105 { ac_try='test -z "$ac_c_werror_flag"
25106 || test ! -s conftest.err'
25107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; } &&
25112 { ac_try='test -s conftest$ac_exeext'
25113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114 (eval $ac_try) 2>&5
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); }; }; then
25118 ac_cv_lib_nsl_s_main=yes
25120 echo "$as_me: failed program was:" >&5
25121 sed 's/^/| /' conftest.$ac_ext >&5
25123 ac_cv_lib_nsl_s_main=no
25125 rm -f conftest.err conftest.$ac_objext \
25126 conftest$ac_exeext conftest.$ac_ext
25127 LIBS=$ac_check_lib_save_LIBS
25129 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
25130 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
25131 if test $ac_cv_lib_nsl_s_main = yes; then
25132 cat >>confdefs.h <<_ACEOF
25133 #define HAVE_LIBNSL_S 1
25136 LIBS="-lnsl_s $LIBS"
25141 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
25142 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
25143 if test "${ac_cv_lib_nsl_main+set}" = set; then
25144 echo $ECHO_N "(cached) $ECHO_C" >&6
25146 ac_check_lib_save_LIBS=$LIBS
25148 cat >conftest.$ac_ext <<_ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h. */
25164 rm -f conftest.$ac_objext conftest$ac_exeext
25165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25166 (eval $ac_link) 2>conftest.er1
25168 grep -v '^ *+' conftest.er1 >conftest.err
25170 cat conftest.err >&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } &&
25173 { ac_try='test -z "$ac_c_werror_flag"
25174 || test ! -s conftest.err'
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; } &&
25180 { ac_try='test -s conftest$ac_exeext'
25181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182 (eval $ac_try) 2>&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); }; }; then
25186 ac_cv_lib_nsl_main=yes
25188 echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25191 ac_cv_lib_nsl_main=no
25193 rm -f conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
25195 LIBS=$ac_check_lib_save_LIBS
25197 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25198 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25199 if test $ac_cv_lib_nsl_main = yes; then
25200 cat >>confdefs.h <<_ACEOF
25201 #define HAVE_LIBNSL 1
25209 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25210 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25211 if test "${ac_cv_lib_inet_socket+set}" = set; then
25212 echo $ECHO_N "(cached) $ECHO_C" >&6
25214 ac_check_lib_save_LIBS=$LIBS
25215 LIBS="-linet $LIBS"
25216 cat >conftest.$ac_ext <<_ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h. */
25223 /* Override any gcc2 internal prototype to avoid an error. */
25227 /* We use char because int might match the return type of a gcc2
25228 builtin and then its argument prototype would still apply. */
25238 rm -f conftest.$ac_objext conftest$ac_exeext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25240 (eval $ac_link) 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } &&
25247 { ac_try='test -z "$ac_c_werror_flag"
25248 || test ! -s conftest.err'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; } &&
25254 { ac_try='test -s conftest$ac_exeext'
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; }; then
25260 ac_cv_lib_inet_socket=yes
25262 echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 ac_cv_lib_inet_socket=no
25267 rm -f conftest.err conftest.$ac_objext \
25268 conftest$ac_exeext conftest.$ac_ext
25269 LIBS=$ac_check_lib_save_LIBS
25271 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25272 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25273 if test $ac_cv_lib_inet_socket = yes; then
25274 cat >>confdefs.h <<_ACEOF
25275 #define HAVE_LIBINET 1
25278 LIBS="-linet $LIBS"
25283 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25284 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25285 if test "${ac_cv_lib_gen_main+set}" = set; then
25286 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 ac_check_lib_save_LIBS=$LIBS
25290 cat >conftest.$ac_ext <<_ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25306 rm -f conftest.$ac_objext conftest$ac_exeext
25307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25308 (eval $ac_link) 2>conftest.er1
25310 grep -v '^ *+' conftest.er1 >conftest.err
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } &&
25315 { ac_try='test -z "$ac_c_werror_flag"
25316 || test ! -s conftest.err'
25317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25318 (eval $ac_try) 2>&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); }; } &&
25322 { ac_try='test -s conftest$ac_exeext'
25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324 (eval $ac_try) 2>&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); }; }; then
25328 ac_cv_lib_gen_main=yes
25330 echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25333 ac_cv_lib_gen_main=no
25335 rm -f conftest.err conftest.$ac_objext \
25336 conftest$ac_exeext conftest.$ac_ext
25337 LIBS=$ac_check_lib_save_LIBS
25339 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25340 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25341 if test $ac_cv_lib_gen_main = yes; then
25342 cat >>confdefs.h <<_ACEOF
25343 #define HAVE_LIBGEN 1
25354 echo "$as_me:$LINENO: checking for select" >&5
25355 echo $ECHO_N "checking for select... $ECHO_C" >&6
25356 if test "${ac_cv_func_select+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25359 cat >conftest.$ac_ext <<_ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365 /* Define select to an innocuous variant, in case <limits.h> declares select.
25366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25367 #define select innocuous_select
25369 /* System header to define __stub macros and hopefully few prototypes,
25370 which can conflict with char select (); below.
25371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25372 <limits.h> exists even on freestanding compilers. */
25375 # include <limits.h>
25377 # include <assert.h>
25382 /* Override any gcc2 internal prototype to avoid an error. */
25387 /* We use char because int might match the return type of a gcc2
25388 builtin and then its argument prototype would still apply. */
25390 /* The GNU C library defines this for functions which it implements
25391 to always fail with ENOSYS. Some functions are actually named
25392 something starting with __ and the normal name is an alias. */
25393 #if defined (__stub_select) || defined (__stub___select)
25396 char (*f) () = select;
25405 return f != select;
25410 rm -f conftest.$ac_objext conftest$ac_exeext
25411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25412 (eval $ac_link) 2>conftest.er1
25414 grep -v '^ *+' conftest.er1 >conftest.err
25416 cat conftest.err >&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); } &&
25419 { ac_try='test -z "$ac_c_werror_flag"
25420 || test ! -s conftest.err'
25421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422 (eval $ac_try) 2>&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; } &&
25426 { ac_try='test -s conftest$ac_exeext'
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; }; then
25432 ac_cv_func_select=yes
25434 echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25437 ac_cv_func_select=no
25439 rm -f conftest.err conftest.$ac_objext \
25440 conftest$ac_exeext conftest.$ac_ext
25442 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25443 echo "${ECHO_T}$ac_cv_func_select" >&6
25444 if test $ac_cv_func_select = yes; then
25447 { { echo "$as_me:$LINENO: error: select() required." >&5
25448 echo "$as_me: error: select() required." >&2;}
25449 { (exit 1); exit 1; }; }
25453 if test "${ac_cv_header_winsock_h}" != yes; then
25456 for ac_header in sys/select.h sys/socket.h
25458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25460 echo "$as_me:$LINENO: checking for $ac_header" >&5
25461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25468 # Is the header compilable?
25469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25471 cat >conftest.$ac_ext <<_ACEOF
25474 cat confdefs.h >>conftest.$ac_ext
25475 cat >>conftest.$ac_ext <<_ACEOF
25476 /* end confdefs.h. */
25477 $ac_includes_default
25478 #include <$ac_header>
25480 rm -f conftest.$ac_objext
25481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25482 (eval $ac_compile) 2>conftest.er1
25484 grep -v '^ *+' conftest.er1 >conftest.err
25486 cat conftest.err >&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } &&
25489 { ac_try='test -z "$ac_c_werror_flag"
25490 || test ! -s conftest.err'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; } &&
25496 { ac_try='test -s conftest.$ac_objext'
25497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); }; }; then
25502 ac_header_compiler=yes
25504 echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25507 ac_header_compiler=no
25509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25511 echo "${ECHO_T}$ac_header_compiler" >&6
25513 # Is the header present?
25514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25516 cat >conftest.$ac_ext <<_ACEOF
25519 cat confdefs.h >>conftest.$ac_ext
25520 cat >>conftest.$ac_ext <<_ACEOF
25521 /* end confdefs.h. */
25522 #include <$ac_header>
25524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25527 grep -v '^ *+' conftest.er1 >conftest.err
25529 cat conftest.err >&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } >/dev/null; then
25532 if test -s conftest.err; then
25533 ac_cpp_err=$ac_c_preproc_warn_flag
25534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25541 if test -z "$ac_cpp_err"; then
25542 ac_header_preproc=yes
25544 echo "$as_me: failed program was:" >&5
25545 sed 's/^/| /' conftest.$ac_ext >&5
25547 ac_header_preproc=no
25549 rm -f conftest.err conftest.$ac_ext
25550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25551 echo "${ECHO_T}$ac_header_preproc" >&6
25553 # So? What about this header?
25554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25560 ac_header_preproc=yes
25563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25577 ## ------------------------------------------ ##
25578 ## Report this to the AC_PACKAGE_NAME lists. ##
25579 ## ------------------------------------------ ##
25582 sed "s/^/$as_me: WARNING: /" >&2
25585 echo "$as_me:$LINENO: checking for $ac_header" >&5
25586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25588 echo $ECHO_N "(cached) $ECHO_C" >&6
25590 eval "$as_ac_Header=\$ac_header_preproc"
25592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25597 cat >>confdefs.h <<_ACEOF
25598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25605 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25606 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25607 if test "${ac_cv_func_select_args+set}" = set; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25610 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25611 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25612 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25613 cat >conftest.$ac_ext <<_ACEOF
25616 cat confdefs.h >>conftest.$ac_ext
25617 cat >>conftest.$ac_ext <<_ACEOF
25618 /* end confdefs.h. */
25619 $ac_includes_default
25620 #if HAVE_SYS_SELECT_H
25621 # include <sys/select.h>
25623 #if HAVE_SYS_SOCKET_H
25624 # include <sys/socket.h>
25630 extern int select ($ac_arg1,
25631 $ac_arg234, $ac_arg234, $ac_arg234,
25637 rm -f conftest.$ac_objext
25638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25639 (eval $ac_compile) 2>conftest.er1
25641 grep -v '^ *+' conftest.er1 >conftest.err
25643 cat conftest.err >&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } &&
25646 { ac_try='test -z "$ac_c_werror_flag"
25647 || test ! -s conftest.err'
25648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25649 (eval $ac_try) 2>&5
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); }; } &&
25653 { ac_try='test -s conftest.$ac_objext'
25654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25655 (eval $ac_try) 2>&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); }; }; then
25659 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25661 echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25669 # Provide a safe default value.
25670 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25673 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25674 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25675 ac_save_IFS=$IFS; IFS=','
25676 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25680 cat >>confdefs.h <<_ACEOF
25681 #define SELECT_TYPE_ARG1 $1
25685 cat >>confdefs.h <<_ACEOF
25686 #define SELECT_TYPE_ARG234 ($2)
25690 cat >>confdefs.h <<_ACEOF
25691 #define SELECT_TYPE_ARG5 ($3)
25700 for ac_func in poll
25702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25703 echo "$as_me:$LINENO: checking for $ac_func" >&5
25704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25705 if eval "test \"\${$as_ac_var+set}\" = set"; then
25706 echo $ECHO_N "(cached) $ECHO_C" >&6
25708 cat >conftest.$ac_ext <<_ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h. */
25714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25716 #define $ac_func innocuous_$ac_func
25718 /* System header to define __stub macros and hopefully few prototypes,
25719 which can conflict with char $ac_func (); below.
25720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25721 <limits.h> exists even on freestanding compilers. */
25724 # include <limits.h>
25726 # include <assert.h>
25731 /* Override any gcc2 internal prototype to avoid an error. */
25736 /* We use char because int might match the return type of a gcc2
25737 builtin and then its argument prototype would still apply. */
25739 /* The GNU C library defines this for functions which it implements
25740 to always fail with ENOSYS. Some functions are actually named
25741 something starting with __ and the normal name is an alias. */
25742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25745 char (*f) () = $ac_func;
25754 return f != $ac_func;
25759 rm -f conftest.$ac_objext conftest$ac_exeext
25760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25761 (eval $ac_link) 2>conftest.er1
25763 grep -v '^ *+' conftest.er1 >conftest.err
25765 cat conftest.err >&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); } &&
25768 { ac_try='test -z "$ac_c_werror_flag"
25769 || test ! -s conftest.err'
25770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771 (eval $ac_try) 2>&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; } &&
25775 { ac_try='test -s conftest$ac_exeext'
25776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777 (eval $ac_try) 2>&5
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); }; }; then
25781 eval "$as_ac_var=yes"
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25786 eval "$as_ac_var=no"
25788 rm -f conftest.err conftest.$ac_objext \
25789 conftest$ac_exeext conftest.$ac_ext
25791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25793 if test `eval echo '${'$as_ac_var'}'` = yes; then
25794 cat >>confdefs.h <<_ACEOF
25795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25802 for ac_header in poll.h
25804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25806 echo "$as_me:$LINENO: checking for $ac_header" >&5
25807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25814 # Is the header compilable?
25815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25817 cat >conftest.$ac_ext <<_ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h. */
25823 $ac_includes_default
25824 #include <$ac_header>
25826 rm -f conftest.$ac_objext
25827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25828 (eval $ac_compile) 2>conftest.er1
25830 grep -v '^ *+' conftest.er1 >conftest.err
25832 cat conftest.err >&5
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } &&
25835 { ac_try='test -z "$ac_c_werror_flag"
25836 || test ! -s conftest.err'
25837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838 (eval $ac_try) 2>&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; } &&
25842 { ac_try='test -s conftest.$ac_objext'
25843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844 (eval $ac_try) 2>&5
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); }; }; then
25848 ac_header_compiler=yes
25850 echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25853 ac_header_compiler=no
25855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25857 echo "${ECHO_T}$ac_header_compiler" >&6
25859 # Is the header present?
25860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25862 cat >conftest.$ac_ext <<_ACEOF
25865 cat confdefs.h >>conftest.$ac_ext
25866 cat >>conftest.$ac_ext <<_ACEOF
25867 /* end confdefs.h. */
25868 #include <$ac_header>
25870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25873 grep -v '^ *+' conftest.er1 >conftest.err
25875 cat conftest.err >&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } >/dev/null; then
25878 if test -s conftest.err; then
25879 ac_cpp_err=$ac_c_preproc_warn_flag
25880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25887 if test -z "$ac_cpp_err"; then
25888 ac_header_preproc=yes
25890 echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25893 ac_header_preproc=no
25895 rm -f conftest.err conftest.$ac_ext
25896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25897 echo "${ECHO_T}$ac_header_preproc" >&6
25899 # So? What about this header?
25900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25906 ac_header_preproc=yes
25909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25923 ## ------------------------------------------ ##
25924 ## Report this to the AC_PACKAGE_NAME lists. ##
25925 ## ------------------------------------------ ##
25928 sed "s/^/$as_me: WARNING: /" >&2
25931 echo "$as_me:$LINENO: checking for $ac_header" >&5
25932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25934 echo $ECHO_N "(cached) $ECHO_C" >&6
25936 eval "$as_ac_Header=\$ac_header_preproc"
25938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25943 cat >>confdefs.h <<_ACEOF
25944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25953 for ac_header in sys/epoll.h
25955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25957 echo "$as_me:$LINENO: checking for $ac_header" >&5
25958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25965 # Is the header compilable?
25966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25968 cat >conftest.$ac_ext <<_ACEOF
25971 cat confdefs.h >>conftest.$ac_ext
25972 cat >>conftest.$ac_ext <<_ACEOF
25973 /* end confdefs.h. */
25974 $ac_includes_default
25975 #include <$ac_header>
25977 rm -f conftest.$ac_objext
25978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25979 (eval $ac_compile) 2>conftest.er1
25981 grep -v '^ *+' conftest.er1 >conftest.err
25983 cat conftest.err >&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); } &&
25986 { ac_try='test -z "$ac_c_werror_flag"
25987 || test ! -s conftest.err'
25988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989 (eval $ac_try) 2>&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); }; } &&
25993 { ac_try='test -s conftest.$ac_objext'
25994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995 (eval $ac_try) 2>&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); }; }; then
25999 ac_header_compiler=yes
26001 echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26004 ac_header_compiler=no
26006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26008 echo "${ECHO_T}$ac_header_compiler" >&6
26010 # Is the header present?
26011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26013 cat >conftest.$ac_ext <<_ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h. */
26019 #include <$ac_header>
26021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26024 grep -v '^ *+' conftest.er1 >conftest.err
26026 cat conftest.err >&5
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); } >/dev/null; then
26029 if test -s conftest.err; then
26030 ac_cpp_err=$ac_c_preproc_warn_flag
26031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26038 if test -z "$ac_cpp_err"; then
26039 ac_header_preproc=yes
26041 echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26044 ac_header_preproc=no
26046 rm -f conftest.err conftest.$ac_ext
26047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26048 echo "${ECHO_T}$ac_header_preproc" >&6
26050 # So? What about this header?
26051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26057 ac_header_preproc=yes
26060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26074 ## ------------------------------------------ ##
26075 ## Report this to the AC_PACKAGE_NAME lists. ##
26076 ## ------------------------------------------ ##
26079 sed "s/^/$as_me: WARNING: /" >&2
26082 echo "$as_me:$LINENO: checking for $ac_header" >&5
26083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26085 echo $ECHO_N "(cached) $ECHO_C" >&6
26087 eval "$as_ac_Header=\$ac_header_preproc"
26089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26094 cat >>confdefs.h <<_ACEOF
26095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26102 if test "${ac_cv_header_sys_epoll_h}" = yes; then
26103 echo "$as_me:$LINENO: checking for epoll system call" >&5
26104 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
26105 if test "$cross_compiling" = yes; then
26106 echo "$as_me:$LINENO: result: no" >&5
26107 echo "${ECHO_T}no" >&6
26109 cat >conftest.$ac_ext <<_ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h. */
26115 int main(int argc, char *argv)
26117 int epfd = epoll_create(256);
26118 exit (epfd == -1 ? 1 : 0);
26121 rm -f conftest$ac_exeext
26122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26123 (eval $ac_link) 2>&5
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128 (eval $ac_try) 2>&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); }; }; then
26132 echo "$as_me:$LINENO: result: yes" >&5
26133 echo "${ECHO_T}yes" >&6
26135 cat >>confdefs.h <<\_ACEOF
26136 #define HAVE_EPOLL 1
26140 echo "$as_me: program exited with status $ac_status" >&5
26141 echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26144 ( exit $ac_status )
26145 echo "$as_me:$LINENO: result: no" >&5
26146 echo "${ECHO_T}no" >&6
26148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26153 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26154 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26155 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26156 echo $ECHO_N "(cached) $ECHO_C" >&6
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26167 #include <sys/types.h>
26170 #include <stdlib.h>
26175 char *c = (char *) *sys_errlist
26180 rm -f conftest.$ac_objext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26182 (eval $ac_compile) 2>conftest.er1
26184 grep -v '^ *+' conftest.er1 >conftest.err
26186 cat conftest.err >&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } &&
26189 { ac_try='test -z "$ac_c_werror_flag"
26190 || test ! -s conftest.err'
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; } &&
26196 { ac_try='test -s conftest.$ac_objext'
26197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198 (eval $ac_try) 2>&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); }; }; then
26202 ol_cv_dcl_sys_errlist=yes
26203 ol_cv_have_sys_errlist=yes
26205 echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26208 ol_cv_dcl_sys_errlist=no
26210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26212 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26213 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26215 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26216 if test $ol_cv_dcl_sys_errlist = no ; then
26218 cat >>confdefs.h <<\_ACEOF
26219 #define DECL_SYS_ERRLIST 1
26223 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26224 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26225 if test "${ol_cv_have_sys_errlist+set}" = set; then
26226 echo $ECHO_N "(cached) $ECHO_C" >&6
26229 cat >conftest.$ac_ext <<_ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h. */
26239 char *c = (char *) *sys_errlist
26244 rm -f conftest.$ac_objext conftest$ac_exeext
26245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26246 (eval $ac_link) 2>conftest.er1
26248 grep -v '^ *+' conftest.er1 >conftest.err
26250 cat conftest.err >&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); } &&
26253 { ac_try='test -z "$ac_c_werror_flag"
26254 || test ! -s conftest.err'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; } &&
26260 { ac_try='test -s conftest$ac_exeext'
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; }; then
26266 ol_cv_have_sys_errlist=yes
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 ol_cv_have_sys_errlist=no
26273 rm -f conftest.err conftest.$ac_objext \
26274 conftest$ac_exeext conftest.$ac_ext
26276 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26277 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26279 if test $ol_cv_have_sys_errlist = yes ; then
26281 cat >>confdefs.h <<\_ACEOF
26282 #define HAVE_SYS_ERRLIST 1
26288 for ac_func in strerror strerror_r
26290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26291 echo "$as_me:$LINENO: checking for $ac_func" >&5
26292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26293 if eval "test \"\${$as_ac_var+set}\" = set"; then
26294 echo $ECHO_N "(cached) $ECHO_C" >&6
26296 cat >conftest.$ac_ext <<_ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26304 #define $ac_func innocuous_$ac_func
26306 /* System header to define __stub macros and hopefully few prototypes,
26307 which can conflict with char $ac_func (); below.
26308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26309 <limits.h> exists even on freestanding compilers. */
26312 # include <limits.h>
26314 # include <assert.h>
26319 /* Override any gcc2 internal prototype to avoid an error. */
26324 /* We use char because int might match the return type of a gcc2
26325 builtin and then its argument prototype would still apply. */
26327 /* The GNU C library defines this for functions which it implements
26328 to always fail with ENOSYS. Some functions are actually named
26329 something starting with __ and the normal name is an alias. */
26330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26333 char (*f) () = $ac_func;
26342 return f != $ac_func;
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26349 (eval $ac_link) 2>conftest.er1
26351 grep -v '^ *+' conftest.er1 >conftest.err
26353 cat conftest.err >&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } &&
26356 { ac_try='test -z "$ac_c_werror_flag"
26357 || test ! -s conftest.err'
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; } &&
26363 { ac_try='test -s conftest$ac_exeext'
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; }; then
26369 eval "$as_ac_var=yes"
26371 echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26374 eval "$as_ac_var=no"
26376 rm -f conftest.err conftest.$ac_objext \
26377 conftest$ac_exeext conftest.$ac_ext
26379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26381 if test `eval echo '${'$as_ac_var'}'` = yes; then
26382 cat >>confdefs.h <<_ACEOF
26383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26389 ol_cv_func_strerror_r=no
26390 if test "${ac_cv_func_strerror_r}" = yes ; then
26391 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26392 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26393 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26394 echo $ECHO_N "(cached) $ECHO_C" >&6
26397 cat >conftest.$ac_ext <<_ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h. */
26403 #include <string.h>
26405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26406 $EGREP "strerror_r" >/dev/null 2>&1; then
26407 ol_decl_strerror_r=yes
26409 ol_decl_strerror_r=no
26413 if test $ol_decl_strerror_r = yes ; then
26414 cat >conftest.$ac_ext <<_ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h. */
26420 #include <string.h>
26424 /* from autoconf 2.59 */
26426 char x = *strerror_r (0, buf, sizeof buf);
26427 char *p = strerror_r (0, buf, sizeof buf);
26433 rm -f conftest.$ac_objext
26434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26435 (eval $ac_compile) 2>conftest.er1
26437 grep -v '^ *+' conftest.er1 >conftest.err
26439 cat conftest.err >&5
26440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); } &&
26442 { ac_try='test -z "$ac_c_werror_flag"
26443 || test ! -s conftest.err'
26444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26445 (eval $ac_try) 2>&5
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); }; } &&
26449 { ac_try='test -s conftest.$ac_objext'
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; }; then
26455 ol_cv_nonposix_strerror_r=yes
26457 echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26460 ol_cv_nonposix_strerror_r=no
26462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26464 if test "$cross_compiling" = yes; then
26465 ol_cv_nonposix_strerror=no
26467 cat >conftest.$ac_ext <<_ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h. */
26477 strerror_r( 1, buf, sizeof buf );
26478 exit( buf[0] == 0 );
26482 rm -f conftest$ac_exeext
26483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26484 (eval $ac_link) 2>&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ol_cv_nonposix_strerror_r=yes
26495 echo "$as_me: program exited with status $ac_status" >&5
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26499 ( exit $ac_status )
26500 ol_cv_nonposix_strerror=no
26502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26507 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26508 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26509 if test $ol_cv_nonposix_strerror_r = yes ; then
26511 cat >>confdefs.h <<\_ACEOF
26512 #define HAVE_NONPOSIX_STRERROR_R 1
26517 elif test "${ac_cv_func_strerror}" = no ; then
26518 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26519 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26520 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26521 echo $ECHO_N "(cached) $ECHO_C" >&6
26524 cat >conftest.$ac_ext <<_ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26532 #include <sys/types.h>
26535 #include <stdlib.h>
26540 char *c = (char *) *sys_errlist
26545 rm -f conftest.$ac_objext
26546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26547 (eval $ac_compile) 2>conftest.er1
26549 grep -v '^ *+' conftest.er1 >conftest.err
26551 cat conftest.err >&5
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); } &&
26554 { ac_try='test -z "$ac_c_werror_flag"
26555 || test ! -s conftest.err'
26556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26557 (eval $ac_try) 2>&5
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); }; } &&
26561 { ac_try='test -s conftest.$ac_objext'
26562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26563 (eval $ac_try) 2>&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); }; }; then
26567 ol_cv_dcl_sys_errlist=yes
26568 ol_cv_have_sys_errlist=yes
26570 echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26573 ol_cv_dcl_sys_errlist=no
26575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26577 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26578 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26580 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26581 if test $ol_cv_dcl_sys_errlist = no ; then
26583 cat >>confdefs.h <<\_ACEOF
26584 #define DECL_SYS_ERRLIST 1
26588 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26589 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26590 if test "${ol_cv_have_sys_errlist+set}" = set; then
26591 echo $ECHO_N "(cached) $ECHO_C" >&6
26594 cat >conftest.$ac_ext <<_ACEOF
26597 cat confdefs.h >>conftest.$ac_ext
26598 cat >>conftest.$ac_ext <<_ACEOF
26599 /* end confdefs.h. */
26604 char *c = (char *) *sys_errlist
26609 rm -f conftest.$ac_objext conftest$ac_exeext
26610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26611 (eval $ac_link) 2>conftest.er1
26613 grep -v '^ *+' conftest.er1 >conftest.err
26615 cat conftest.err >&5
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); } &&
26618 { ac_try='test -z "$ac_c_werror_flag"
26619 || test ! -s conftest.err'
26620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621 (eval $ac_try) 2>&5
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; } &&
26625 { ac_try='test -s conftest$ac_exeext'
26626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26627 (eval $ac_try) 2>&5
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); }; }; then
26631 ol_cv_have_sys_errlist=yes
26633 echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26636 ol_cv_have_sys_errlist=no
26638 rm -f conftest.err conftest.$ac_objext \
26639 conftest$ac_exeext conftest.$ac_ext
26641 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26642 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26644 if test $ol_cv_have_sys_errlist = yes ; then
26646 cat >>confdefs.h <<\_ACEOF
26647 #define HAVE_SYS_ERRLIST 1
26656 for ac_header in regex.h
26658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26660 echo "$as_me:$LINENO: checking for $ac_header" >&5
26661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26663 echo $ECHO_N "(cached) $ECHO_C" >&6
26665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26668 # Is the header compilable?
26669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26671 cat >conftest.$ac_ext <<_ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h. */
26677 $ac_includes_default
26678 #include <$ac_header>
26680 rm -f conftest.$ac_objext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26682 (eval $ac_compile) 2>conftest.er1
26684 grep -v '^ *+' conftest.er1 >conftest.err
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
26689 { ac_try='test -z "$ac_c_werror_flag"
26690 || test ! -s conftest.err'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; } &&
26696 { ac_try='test -s conftest.$ac_objext'
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
26702 ac_header_compiler=yes
26704 echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26707 ac_header_compiler=no
26709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26711 echo "${ECHO_T}$ac_header_compiler" >&6
26713 # Is the header present?
26714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26716 cat >conftest.$ac_ext <<_ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h. */
26722 #include <$ac_header>
26724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26727 grep -v '^ *+' conftest.er1 >conftest.err
26729 cat conftest.err >&5
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); } >/dev/null; then
26732 if test -s conftest.err; then
26733 ac_cpp_err=$ac_c_preproc_warn_flag
26734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26741 if test -z "$ac_cpp_err"; then
26742 ac_header_preproc=yes
26744 echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26747 ac_header_preproc=no
26749 rm -f conftest.err conftest.$ac_ext
26750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26751 echo "${ECHO_T}$ac_header_preproc" >&6
26753 # So? What about this header?
26754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26760 ac_header_preproc=yes
26763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26777 ## ------------------------------------------ ##
26778 ## Report this to the AC_PACKAGE_NAME lists. ##
26779 ## ------------------------------------------ ##
26782 sed "s/^/$as_me: WARNING: /" >&2
26785 echo "$as_me:$LINENO: checking for $ac_header" >&5
26786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26788 echo $ECHO_N "(cached) $ECHO_C" >&6
26790 eval "$as_ac_Header=\$ac_header_preproc"
26792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26797 cat >>confdefs.h <<_ACEOF
26798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26805 if test "$ac_cv_header_regex_h" != yes ; then
26806 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26807 echo "$as_me: error: POSIX regex.h required." >&2;}
26808 { (exit 1); exit 1; }; }
26810 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26811 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26812 if test "${ac_cv_search_regfree+set}" = set; then
26813 echo $ECHO_N "(cached) $ECHO_C" >&6
26815 ac_func_search_save_LIBS=$LIBS
26816 ac_cv_search_regfree=no
26817 cat >conftest.$ac_ext <<_ACEOF
26820 cat confdefs.h >>conftest.$ac_ext
26821 cat >>conftest.$ac_ext <<_ACEOF
26822 /* end confdefs.h. */
26824 /* Override any gcc2 internal prototype to avoid an error. */
26828 /* We use char because int might match the return type of a gcc2
26829 builtin and then its argument prototype would still apply. */
26839 rm -f conftest.$ac_objext conftest$ac_exeext
26840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26841 (eval $ac_link) 2>conftest.er1
26843 grep -v '^ *+' conftest.er1 >conftest.err
26845 cat conftest.err >&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } &&
26848 { ac_try='test -z "$ac_c_werror_flag"
26849 || test ! -s conftest.err'
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; } &&
26855 { ac_try='test -s conftest$ac_exeext'
26856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857 (eval $ac_try) 2>&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); }; }; then
26861 ac_cv_search_regfree="none required"
26863 echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26867 rm -f conftest.err conftest.$ac_objext \
26868 conftest$ac_exeext conftest.$ac_ext
26869 if test "$ac_cv_search_regfree" = no; then
26870 for ac_lib in regex gnuregex; do
26871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26872 cat >conftest.$ac_ext <<_ACEOF
26875 cat confdefs.h >>conftest.$ac_ext
26876 cat >>conftest.$ac_ext <<_ACEOF
26877 /* end confdefs.h. */
26879 /* Override any gcc2 internal prototype to avoid an error. */
26883 /* We use char because int might match the return type of a gcc2
26884 builtin and then its argument prototype would still apply. */
26894 rm -f conftest.$ac_objext conftest$ac_exeext
26895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26896 (eval $ac_link) 2>conftest.er1
26898 grep -v '^ *+' conftest.er1 >conftest.err
26900 cat conftest.err >&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } &&
26903 { ac_try='test -z "$ac_c_werror_flag"
26904 || test ! -s conftest.err'
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; } &&
26910 { ac_try='test -s conftest$ac_exeext'
26911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912 (eval $ac_try) 2>&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; }; then
26916 ac_cv_search_regfree="-l$ac_lib"
26919 echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26923 rm -f conftest.err conftest.$ac_objext \
26924 conftest$ac_exeext conftest.$ac_ext
26927 LIBS=$ac_func_search_save_LIBS
26929 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26930 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26931 if test "$ac_cv_search_regfree" != no; then
26932 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26935 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26936 echo "$as_me: error: POSIX regex required." >&2;}
26937 { (exit 1); exit 1; }; }
26942 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26943 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26944 if test "${ol_cv_c_posix_regex+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26948 if test "$cross_compiling" = yes; then
26949 ol_cv_c_posix_regex=cross
26951 cat >conftest.$ac_ext <<_ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h. */
26958 #include <sys/types.h>
26960 static char *pattern, *string;
26968 if(regcomp(&re, pattern, 0)) {
26972 string = "ALL MATCH";
26974 rc = regexec(&re, string, 0, (void*)0, 0);
26981 rm -f conftest$ac_exeext
26982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26983 (eval $ac_link) 2>&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; }; then
26992 ol_cv_c_posix_regex=yes
26994 echo "$as_me: program exited with status $ac_status" >&5
26995 echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26998 ( exit $ac_status )
26999 ol_cv_c_posix_regex=no
27001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27004 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
27005 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
27007 if test "$ol_cv_c_posix_regex" = no ; then
27008 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
27009 echo "$as_me: error: broken POSIX regex!" >&2;}
27010 { (exit 1); exit 1; }; }
27016 for ac_header in sys/uuid.h
27018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27020 echo "$as_me:$LINENO: checking for $ac_header" >&5
27021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27023 echo $ECHO_N "(cached) $ECHO_C" >&6
27025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27028 # Is the header compilable?
27029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27031 cat >conftest.$ac_ext <<_ACEOF
27034 cat confdefs.h >>conftest.$ac_ext
27035 cat >>conftest.$ac_ext <<_ACEOF
27036 /* end confdefs.h. */
27037 $ac_includes_default
27038 #include <$ac_header>
27040 rm -f conftest.$ac_objext
27041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27042 (eval $ac_compile) 2>conftest.er1
27044 grep -v '^ *+' conftest.er1 >conftest.err
27046 cat conftest.err >&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); } &&
27049 { ac_try='test -z "$ac_c_werror_flag"
27050 || test ! -s conftest.err'
27051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052 (eval $ac_try) 2>&5
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); }; } &&
27056 { ac_try='test -s conftest.$ac_objext'
27057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; }; then
27062 ac_header_compiler=yes
27064 echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27067 ac_header_compiler=no
27069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27071 echo "${ECHO_T}$ac_header_compiler" >&6
27073 # Is the header present?
27074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27076 cat >conftest.$ac_ext <<_ACEOF
27079 cat confdefs.h >>conftest.$ac_ext
27080 cat >>conftest.$ac_ext <<_ACEOF
27081 /* end confdefs.h. */
27082 #include <$ac_header>
27084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27087 grep -v '^ *+' conftest.er1 >conftest.err
27089 cat conftest.err >&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } >/dev/null; then
27092 if test -s conftest.err; then
27093 ac_cpp_err=$ac_c_preproc_warn_flag
27094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27101 if test -z "$ac_cpp_err"; then
27102 ac_header_preproc=yes
27104 echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27107 ac_header_preproc=no
27109 rm -f conftest.err conftest.$ac_ext
27110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27111 echo "${ECHO_T}$ac_header_preproc" >&6
27113 # So? What about this header?
27114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27120 ac_header_preproc=yes
27123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27137 ## ------------------------------------------ ##
27138 ## Report this to the AC_PACKAGE_NAME lists. ##
27139 ## ------------------------------------------ ##
27142 sed "s/^/$as_me: WARNING: /" >&2
27145 echo "$as_me:$LINENO: checking for $ac_header" >&5
27146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27148 echo $ECHO_N "(cached) $ECHO_C" >&6
27150 eval "$as_ac_Header=\$ac_header_preproc"
27152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27157 cat >>confdefs.h <<_ACEOF
27158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27165 if test $ac_cv_header_sys_uuid_h = yes ; then
27167 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27168 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27169 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27172 ac_func_search_save_LIBS=$LIBS
27173 ac_cv_search_uuid_to_str=no
27174 cat >conftest.$ac_ext <<_ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h. */
27181 /* Override any gcc2 internal prototype to avoid an error. */
27185 /* We use char because int might match the return type of a gcc2
27186 builtin and then its argument prototype would still apply. */
27187 char uuid_to_str ();
27196 rm -f conftest.$ac_objext conftest$ac_exeext
27197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27198 (eval $ac_link) 2>conftest.er1
27200 grep -v '^ *+' conftest.er1 >conftest.err
27202 cat conftest.err >&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } &&
27205 { ac_try='test -z "$ac_c_werror_flag"
27206 || test ! -s conftest.err'
27207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208 (eval $ac_try) 2>&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; } &&
27212 { ac_try='test -s conftest$ac_exeext'
27213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27214 (eval $ac_try) 2>&5
27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); }; }; then
27218 ac_cv_search_uuid_to_str="none required"
27220 echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27224 rm -f conftest.err conftest.$ac_objext \
27225 conftest$ac_exeext conftest.$ac_ext
27226 if test "$ac_cv_search_uuid_to_str" = no; then
27227 for ac_lib in uuid; do
27228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27229 cat >conftest.$ac_ext <<_ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h. */
27236 /* Override any gcc2 internal prototype to avoid an error. */
27240 /* We use char because int might match the return type of a gcc2
27241 builtin and then its argument prototype would still apply. */
27242 char uuid_to_str ();
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27253 (eval $ac_link) 2>conftest.er1
27255 grep -v '^ *+' conftest.er1 >conftest.err
27257 cat conftest.err >&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); } &&
27260 { ac_try='test -z "$ac_c_werror_flag"
27261 || test ! -s conftest.err'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; } &&
27267 { ac_try='test -s conftest$ac_exeext'
27268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 (eval $ac_try) 2>&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); }; }; then
27273 ac_cv_search_uuid_to_str="-l$ac_lib"
27276 echo "$as_me: failed program was:" >&5
27277 sed 's/^/| /' conftest.$ac_ext >&5
27280 rm -f conftest.err conftest.$ac_objext \
27281 conftest$ac_exeext conftest.$ac_ext
27284 LIBS=$ac_func_search_save_LIBS
27286 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27287 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27288 if test "$ac_cv_search_uuid_to_str" != no; then
27289 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27297 if test have_uuid = yes ; then
27299 cat >>confdefs.h <<\_ACEOF
27300 #define HAVE_UUID_TO_STR 1
27304 test "$ac_cv_search_uuid_to_str" = "none required" || \
27305 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27309 if test $have_uuid = no ; then
27310 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27311 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27313 LIBS="$LIBS -lrpcrt4"
27314 cat >conftest.$ac_ext <<_ACEOF
27317 cat confdefs.h >>conftest.$ac_ext
27318 cat >>conftest.$ac_ext <<_ACEOF
27319 /* end confdefs.h. */
27321 int __stdcall UuidCreate(void *);
27322 int __stdcall UuidToStringA(void *,void **);
27329 UuidToStringA(0,0);
27335 rm -f conftest.$ac_objext conftest$ac_exeext
27336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27337 (eval $ac_link) 2>conftest.er1
27339 grep -v '^ *+' conftest.er1 >conftest.err
27341 cat conftest.err >&5
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); } &&
27344 { ac_try='test -z "$ac_c_werror_flag"
27345 || test ! -s conftest.err'
27346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347 (eval $ac_try) 2>&5
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); }; } &&
27351 { ac_try='test -s conftest$ac_exeext'
27352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27353 (eval $ac_try) 2>&5
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); }; }; then
27359 echo "$as_me: failed program was:" >&5
27360 sed 's/^/| /' conftest.$ac_ext >&5
27364 rm -f conftest.err conftest.$ac_objext \
27365 conftest$ac_exeext conftest.$ac_ext
27366 if test $need_rpcrt = yes; then
27367 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27370 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27371 echo "${ECHO_T}$need_rpcrt" >&6
27374 ol_cv_lib_resolver=no
27375 if test $ol_cv_lib_resolver = no ; then
27376 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27377 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27378 if test "${ol_cv_resolver_none+set}" = set; then
27379 echo $ECHO_N "(cached) $ECHO_C" >&6
27384 LIBS="$ol_RESOLVER_LIB $LIBS"
27386 cat >conftest.$ac_ext <<_ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h. */
27393 #ifdef HAVE_SYS_TYPES_H
27394 # include <sys/types.h>
27396 #include <netinet/in.h>
27397 #ifdef HAVE_ARPA_NAMESER_H
27398 # include <arpa/nameser.h>
27400 #ifdef HAVE_RESOLV_H
27401 # include <resolv.h>
27409 char *request = NULL;
27410 unsigned char reply[64*1024];
27411 unsigned char host[64*1024];
27415 /* Bind 8/9 interface */
27416 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27418 /* Bind 4 interface */
27422 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27426 /* Bind 8/9 interface */
27428 #elif defined(HFIXEDSZ)
27429 /* Bind 4 interface w/ HFIXEDSZ */
27432 /* Bind 4 interface w/o HFIXEDSZ */
27433 p += sizeof(HEADER);
27435 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27441 rm -f conftest.$ac_objext conftest$ac_exeext
27442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27443 (eval $ac_link) 2>conftest.er1
27445 grep -v '^ *+' conftest.er1 >conftest.err
27447 cat conftest.err >&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); } &&
27450 { ac_try='test -z "$ac_c_werror_flag"
27451 || test ! -s conftest.err'
27452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453 (eval $ac_try) 2>&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; } &&
27457 { ac_try='test -s conftest$ac_exeext'
27458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459 (eval $ac_try) 2>&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); }; }; then
27463 ol_cv_resolver_none=yes
27465 echo "$as_me: failed program was:" >&5
27466 sed 's/^/| /' conftest.$ac_ext >&5
27468 ol_cv_resolver_none=no
27470 rm -f conftest.err conftest.$ac_objext \
27471 conftest$ac_exeext conftest.$ac_ext
27476 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27477 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27479 if test $ol_cv_resolver_none = yes ; then
27480 ol_cv_lib_resolver=yes
27484 if test $ol_cv_lib_resolver = no ; then
27485 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27486 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27487 if test "${ol_cv_resolver_resolv+set}" = set; then
27488 echo $ECHO_N "(cached) $ECHO_C" >&6
27491 ol_RESOLVER_LIB=-lresolv
27493 LIBS="$ol_RESOLVER_LIB $LIBS"
27495 cat >conftest.$ac_ext <<_ACEOF
27498 cat confdefs.h >>conftest.$ac_ext
27499 cat >>conftest.$ac_ext <<_ACEOF
27500 /* end confdefs.h. */
27502 #ifdef HAVE_SYS_TYPES_H
27503 # include <sys/types.h>
27505 #include <netinet/in.h>
27506 #ifdef HAVE_ARPA_NAMESER_H
27507 # include <arpa/nameser.h>
27509 #ifdef HAVE_RESOLV_H
27510 # include <resolv.h>
27518 char *request = NULL;
27519 unsigned char reply[64*1024];
27520 unsigned char host[64*1024];
27524 /* Bind 8/9 interface */
27525 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27527 /* Bind 4 interface */
27531 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27535 /* Bind 8/9 interface */
27537 #elif defined(HFIXEDSZ)
27538 /* Bind 4 interface w/ HFIXEDSZ */
27541 /* Bind 4 interface w/o HFIXEDSZ */
27542 p += sizeof(HEADER);
27544 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27550 rm -f conftest.$ac_objext conftest$ac_exeext
27551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27552 (eval $ac_link) 2>conftest.er1
27554 grep -v '^ *+' conftest.er1 >conftest.err
27556 cat conftest.err >&5
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); } &&
27559 { ac_try='test -z "$ac_c_werror_flag"
27560 || test ! -s conftest.err'
27561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562 (eval $ac_try) 2>&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); }; } &&
27566 { ac_try='test -s conftest$ac_exeext'
27567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27568 (eval $ac_try) 2>&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; }; then
27572 ol_cv_resolver_resolv=yes
27574 echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27577 ol_cv_resolver_resolv=no
27579 rm -f conftest.err conftest.$ac_objext \
27580 conftest$ac_exeext conftest.$ac_ext
27585 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27586 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27588 if test $ol_cv_resolver_resolv = yes ; then
27589 ol_cv_lib_resolver=-lresolv
27593 if test $ol_cv_lib_resolver = no ; then
27594 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27595 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27596 if test "${ol_cv_resolver_bind+set}" = set; then
27597 echo $ECHO_N "(cached) $ECHO_C" >&6
27600 ol_RESOLVER_LIB=-lbind
27602 LIBS="$ol_RESOLVER_LIB $LIBS"
27604 cat >conftest.$ac_ext <<_ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h. */
27611 #ifdef HAVE_SYS_TYPES_H
27612 # include <sys/types.h>
27614 #include <netinet/in.h>
27615 #ifdef HAVE_ARPA_NAMESER_H
27616 # include <arpa/nameser.h>
27618 #ifdef HAVE_RESOLV_H
27619 # include <resolv.h>
27627 char *request = NULL;
27628 unsigned char reply[64*1024];
27629 unsigned char host[64*1024];
27633 /* Bind 8/9 interface */
27634 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27636 /* Bind 4 interface */
27640 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27644 /* Bind 8/9 interface */
27646 #elif defined(HFIXEDSZ)
27647 /* Bind 4 interface w/ HFIXEDSZ */
27650 /* Bind 4 interface w/o HFIXEDSZ */
27651 p += sizeof(HEADER);
27653 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27659 rm -f conftest.$ac_objext conftest$ac_exeext
27660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27661 (eval $ac_link) 2>conftest.er1
27663 grep -v '^ *+' conftest.er1 >conftest.err
27665 cat conftest.err >&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); } &&
27668 { ac_try='test -z "$ac_c_werror_flag"
27669 || test ! -s conftest.err'
27670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671 (eval $ac_try) 2>&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; } &&
27675 { ac_try='test -s conftest$ac_exeext'
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; }; then
27681 ol_cv_resolver_bind=yes
27683 echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27686 ol_cv_resolver_bind=no
27688 rm -f conftest.err conftest.$ac_objext \
27689 conftest$ac_exeext conftest.$ac_ext
27694 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27695 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27697 if test $ol_cv_resolver_bind = yes ; then
27698 ol_cv_lib_resolver=-lbind
27705 if test "$ol_cv_lib_resolver" != no ; then
27707 cat >>confdefs.h <<\_ACEOF
27708 #define HAVE_RES_QUERY 1
27712 if test "$ol_enable_dnssrv" != no ; then
27716 if test "$ol_cv_lib_resolver" != yes ; then
27717 LIBS="$ol_cv_lib_resolver $LIBS"
27721 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27722 if test "$ol_link_dnssrv" = no ; then
27723 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27724 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27725 { (exit 1); exit 1; }; }
27728 ol_enable_dnssrv=no
27732 for ac_func in hstrerror
27734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27735 echo "$as_me:$LINENO: checking for $ac_func" >&5
27736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27737 if eval "test \"\${$as_ac_var+set}\" = set"; then
27738 echo $ECHO_N "(cached) $ECHO_C" >&6
27740 cat >conftest.$ac_ext <<_ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h. */
27746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27748 #define $ac_func innocuous_$ac_func
27750 /* System header to define __stub macros and hopefully few prototypes,
27751 which can conflict with char $ac_func (); below.
27752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27753 <limits.h> exists even on freestanding compilers. */
27756 # include <limits.h>
27758 # include <assert.h>
27763 /* Override any gcc2 internal prototype to avoid an error. */
27768 /* We use char because int might match the return type of a gcc2
27769 builtin and then its argument prototype would still apply. */
27771 /* The GNU C library defines this for functions which it implements
27772 to always fail with ENOSYS. Some functions are actually named
27773 something starting with __ and the normal name is an alias. */
27774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27777 char (*f) () = $ac_func;
27786 return f != $ac_func;
27791 rm -f conftest.$ac_objext conftest$ac_exeext
27792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27793 (eval $ac_link) 2>conftest.er1
27795 grep -v '^ *+' conftest.er1 >conftest.err
27797 cat conftest.err >&5
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); } &&
27800 { ac_try='test -z "$ac_c_werror_flag"
27801 || test ! -s conftest.err'
27802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803 (eval $ac_try) 2>&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; } &&
27807 { ac_try='test -s conftest$ac_exeext'
27808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809 (eval $ac_try) 2>&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; }; then
27813 eval "$as_ac_var=yes"
27815 echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27818 eval "$as_ac_var=no"
27820 rm -f conftest.err conftest.$ac_objext \
27821 conftest$ac_exeext conftest.$ac_ext
27823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27825 if test `eval echo '${'$as_ac_var'}'` = yes; then
27826 cat >>confdefs.h <<_ACEOF
27827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27838 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27841 echo "$as_me:$LINENO: checking for $ac_func" >&5
27842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27843 if eval "test \"\${$as_ac_var+set}\" = set"; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27846 cat >conftest.$ac_ext <<_ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h. */
27852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27854 #define $ac_func innocuous_$ac_func
27856 /* System header to define __stub macros and hopefully few prototypes,
27857 which can conflict with char $ac_func (); below.
27858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27859 <limits.h> exists even on freestanding compilers. */
27862 # include <limits.h>
27864 # include <assert.h>
27869 /* Override any gcc2 internal prototype to avoid an error. */
27874 /* We use char because int might match the return type of a gcc2
27875 builtin and then its argument prototype would still apply. */
27877 /* The GNU C library defines this for functions which it implements
27878 to always fail with ENOSYS. Some functions are actually named
27879 something starting with __ and the normal name is an alias. */
27880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27883 char (*f) () = $ac_func;
27892 return f != $ac_func;
27897 rm -f conftest.$ac_objext conftest$ac_exeext
27898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27899 (eval $ac_link) 2>conftest.er1
27901 grep -v '^ *+' conftest.er1 >conftest.err
27903 cat conftest.err >&5
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); } &&
27906 { ac_try='test -z "$ac_c_werror_flag"
27907 || test ! -s conftest.err'
27908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909 (eval $ac_try) 2>&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); }; } &&
27913 { ac_try='test -s conftest$ac_exeext'
27914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27915 (eval $ac_try) 2>&5
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); }; }; then
27919 eval "$as_ac_var=yes"
27921 echo "$as_me: failed program was:" >&5
27922 sed 's/^/| /' conftest.$ac_ext >&5
27924 eval "$as_ac_var=no"
27926 rm -f conftest.err conftest.$ac_objext \
27927 conftest$ac_exeext conftest.$ac_ext
27929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27931 if test `eval echo '${'$as_ac_var'}'` = yes; then
27932 cat >>confdefs.h <<_ACEOF
27933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27941 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27942 if test $ol_enable_ipv6 = yes ; then
27943 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27944 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27945 { (exit 1); exit 1; }; }
27947 elif test $ol_enable_ipv6 != no ; then
27948 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27949 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27950 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27951 echo $ECHO_N "(cached) $ECHO_C" >&6
27954 cat >conftest.$ac_ext <<_ACEOF
27957 cat confdefs.h >>conftest.$ac_ext
27958 cat >>conftest.$ac_ext <<_ACEOF
27959 /* end confdefs.h. */
27961 # include <netinet/in.h>
27962 # ifdef INET6_ADDRSTRLEN
27963 __has_inet6_addrstrlen__;
27967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27968 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27969 ol_cv_inet6_addrstrlen=yes
27971 ol_cv_inet6_addrstrlen=no
27976 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27977 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27980 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27981 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27982 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27983 echo $ECHO_N "(cached) $ECHO_C" >&6
27986 cat >conftest.$ac_ext <<_ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h. */
27993 #include <sys/types.h>
27994 #include <sys/socket.h>
28000 struct sockaddr_storage ss;
28006 rm -f conftest.$ac_objext
28007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28008 (eval $ac_compile) 2>conftest.er1
28010 grep -v '^ *+' conftest.er1 >conftest.err
28012 cat conftest.err >&5
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); } &&
28015 { ac_try='test -z "$ac_c_werror_flag"
28016 || test ! -s conftest.err'
28017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018 (eval $ac_try) 2>&5
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; } &&
28022 { ac_try='test -s conftest.$ac_objext'
28023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28024 (eval $ac_try) 2>&5
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); }; }; then
28028 ol_cv_struct_sockaddr_storage=yes
28030 echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28033 ol_cv_struct_sockaddr_storage=no
28035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28037 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
28038 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
28040 if test $ol_cv_inet6_addrstrlen = yes \
28041 -a $ol_cv_struct_sockaddr_storage = yes ; then
28043 elif test $ol_enable_ipv6 = yes \
28044 -a $ol_cv_inet6_addrstrlen = no ; then
28045 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
28046 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
28047 { (exit 1); exit 1; }; }
28048 elif test $ol_enable_ipv6 = yes \
28049 -a $ol_cv_struct_sockaddr_storage = no ; then
28050 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
28051 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
28052 { (exit 1); exit 1; }; }
28056 if test $ol_enable_local != no ; then
28058 for ac_header in sys/un.h
28060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28062 echo "$as_me:$LINENO: checking for $ac_header" >&5
28063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28065 echo $ECHO_N "(cached) $ECHO_C" >&6
28067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28070 # Is the header compilable?
28071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28073 cat >conftest.$ac_ext <<_ACEOF
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h. */
28079 $ac_includes_default
28080 #include <$ac_header>
28082 rm -f conftest.$ac_objext
28083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28084 (eval $ac_compile) 2>conftest.er1
28086 grep -v '^ *+' conftest.er1 >conftest.err
28088 cat conftest.err >&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } &&
28091 { ac_try='test -z "$ac_c_werror_flag"
28092 || test ! -s conftest.err'
28093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28094 (eval $ac_try) 2>&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; } &&
28098 { ac_try='test -s conftest.$ac_objext'
28099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28100 (eval $ac_try) 2>&5
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); }; }; then
28104 ac_header_compiler=yes
28106 echo "$as_me: failed program was:" >&5
28107 sed 's/^/| /' conftest.$ac_ext >&5
28109 ac_header_compiler=no
28111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28113 echo "${ECHO_T}$ac_header_compiler" >&6
28115 # Is the header present?
28116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28118 cat >conftest.$ac_ext <<_ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h. */
28124 #include <$ac_header>
28126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28129 grep -v '^ *+' conftest.er1 >conftest.err
28131 cat conftest.err >&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); } >/dev/null; then
28134 if test -s conftest.err; then
28135 ac_cpp_err=$ac_c_preproc_warn_flag
28136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28143 if test -z "$ac_cpp_err"; then
28144 ac_header_preproc=yes
28146 echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28149 ac_header_preproc=no
28151 rm -f conftest.err conftest.$ac_ext
28152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28153 echo "${ECHO_T}$ac_header_preproc" >&6
28155 # So? What about this header?
28156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28162 ac_header_preproc=yes
28165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28179 ## ------------------------------------------ ##
28180 ## Report this to the AC_PACKAGE_NAME lists. ##
28181 ## ------------------------------------------ ##
28184 sed "s/^/$as_me: WARNING: /" >&2
28187 echo "$as_me:$LINENO: checking for $ac_header" >&5
28188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28190 echo $ECHO_N "(cached) $ECHO_C" >&6
28192 eval "$as_ac_Header=\$ac_header_preproc"
28194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28199 cat >>confdefs.h <<_ACEOF
28200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28208 if test $ol_enable_local = auto ; then
28209 ol_enable_local=$ac_cv_header_sys_un_h
28210 elif test $ac_cv_header_sys_un_h = no ; then
28211 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28212 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28213 { (exit 1); exit 1; }; }
28221 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28222 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28223 -o $ol_with_kerberos = k425 ; then
28226 for ac_header in krb5.h
28228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28230 echo "$as_me:$LINENO: checking for $ac_header" >&5
28231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28238 # Is the header compilable?
28239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28241 cat >conftest.$ac_ext <<_ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h. */
28247 $ac_includes_default
28248 #include <$ac_header>
28250 rm -f conftest.$ac_objext
28251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28252 (eval $ac_compile) 2>conftest.er1
28254 grep -v '^ *+' conftest.er1 >conftest.err
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } &&
28259 { ac_try='test -z "$ac_c_werror_flag"
28260 || test ! -s conftest.err'
28261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262 (eval $ac_try) 2>&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; } &&
28266 { ac_try='test -s conftest.$ac_objext'
28267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268 (eval $ac_try) 2>&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); }; }; then
28272 ac_header_compiler=yes
28274 echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28277 ac_header_compiler=no
28279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28281 echo "${ECHO_T}$ac_header_compiler" >&6
28283 # Is the header present?
28284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28286 cat >conftest.$ac_ext <<_ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h. */
28292 #include <$ac_header>
28294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28297 grep -v '^ *+' conftest.er1 >conftest.err
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } >/dev/null; then
28302 if test -s conftest.err; then
28303 ac_cpp_err=$ac_c_preproc_warn_flag
28304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28311 if test -z "$ac_cpp_err"; then
28312 ac_header_preproc=yes
28314 echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28317 ac_header_preproc=no
28319 rm -f conftest.err conftest.$ac_ext
28320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28321 echo "${ECHO_T}$ac_header_preproc" >&6
28323 # So? What about this header?
28324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28330 ac_header_preproc=yes
28333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28347 ## ------------------------------------------ ##
28348 ## Report this to the AC_PACKAGE_NAME lists. ##
28349 ## ------------------------------------------ ##
28352 sed "s/^/$as_me: WARNING: /" >&2
28355 echo "$as_me:$LINENO: checking for $ac_header" >&5
28356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28358 echo $ECHO_N "(cached) $ECHO_C" >&6
28360 eval "$as_ac_Header=\$ac_header_preproc"
28362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28367 cat >>confdefs.h <<_ACEOF
28368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28376 if test $ac_cv_header_krb5_h = yes ; then
28378 for ac_header in heim_err.h
28380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28382 echo "$as_me:$LINENO: checking for $ac_header" >&5
28383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28390 # Is the header compilable?
28391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28393 cat >conftest.$ac_ext <<_ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h. */
28399 $ac_includes_default
28400 #include <$ac_header>
28402 rm -f conftest.$ac_objext
28403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28404 (eval $ac_compile) 2>conftest.er1
28406 grep -v '^ *+' conftest.er1 >conftest.err
28408 cat conftest.err >&5
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); } &&
28411 { ac_try='test -z "$ac_c_werror_flag"
28412 || test ! -s conftest.err'
28413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414 (eval $ac_try) 2>&5
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); }; } &&
28418 { ac_try='test -s conftest.$ac_objext'
28419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28420 (eval $ac_try) 2>&5
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; }; then
28424 ac_header_compiler=yes
28426 echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28429 ac_header_compiler=no
28431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28433 echo "${ECHO_T}$ac_header_compiler" >&6
28435 # Is the header present?
28436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28438 cat >conftest.$ac_ext <<_ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h. */
28444 #include <$ac_header>
28446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28449 grep -v '^ *+' conftest.er1 >conftest.err
28451 cat conftest.err >&5
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); } >/dev/null; then
28454 if test -s conftest.err; then
28455 ac_cpp_err=$ac_c_preproc_warn_flag
28456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28463 if test -z "$ac_cpp_err"; then
28464 ac_header_preproc=yes
28466 echo "$as_me: failed program was:" >&5
28467 sed 's/^/| /' conftest.$ac_ext >&5
28469 ac_header_preproc=no
28471 rm -f conftest.err conftest.$ac_ext
28472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28473 echo "${ECHO_T}$ac_header_preproc" >&6
28475 # So? What about this header?
28476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28482 ac_header_preproc=yes
28485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28499 ## ------------------------------------------ ##
28500 ## Report this to the AC_PACKAGE_NAME lists. ##
28501 ## ------------------------------------------ ##
28504 sed "s/^/$as_me: WARNING: /" >&2
28507 echo "$as_me:$LINENO: checking for $ac_header" >&5
28508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28512 eval "$as_ac_Header=\$ac_header_preproc"
28514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28519 cat >>confdefs.h <<_ACEOF
28520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28527 if test $ac_cv_header_heim_err_h = yes ; then
28533 if test $krb5_impl = mit; then
28534 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28535 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28536 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28537 echo $ECHO_N "(cached) $ECHO_C" >&6
28539 ac_check_lib_save_LIBS=$LIBS
28540 LIBS="-lk5crypto $LIBS"
28541 cat >conftest.$ac_ext <<_ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h. */
28557 rm -f conftest.$ac_objext conftest$ac_exeext
28558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28559 (eval $ac_link) 2>conftest.er1
28561 grep -v '^ *+' conftest.er1 >conftest.err
28563 cat conftest.err >&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
28566 { ac_try='test -z "$ac_c_werror_flag"
28567 || test ! -s conftest.err'
28568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest$ac_exeext'
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
28579 ac_cv_lib_k5crypto_main=yes
28581 echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28584 ac_cv_lib_k5crypto_main=no
28586 rm -f conftest.err conftest.$ac_objext \
28587 conftest$ac_exeext conftest.$ac_ext
28588 LIBS=$ac_check_lib_save_LIBS
28590 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28591 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28592 if test $ac_cv_lib_k5crypto_main = yes; then
28593 krb5crypto=k5crypto
28599 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28600 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28601 if test "${ac_cv_lib_krb5_main+set}" = set; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28604 ac_check_lib_save_LIBS=$LIBS
28605 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28606 cat >conftest.$ac_ext <<_ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h. */
28622 rm -f conftest.$ac_objext conftest$ac_exeext
28623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28624 (eval $ac_link) 2>conftest.er1
28626 grep -v '^ *+' conftest.er1 >conftest.err
28628 cat conftest.err >&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } &&
28631 { ac_try='test -z "$ac_c_werror_flag"
28632 || test ! -s conftest.err'
28633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28634 (eval $ac_try) 2>&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); }; } &&
28638 { ac_try='test -s conftest$ac_exeext'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; }; then
28644 ac_cv_lib_krb5_main=yes
28646 echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28649 ac_cv_lib_krb5_main=no
28651 rm -f conftest.err conftest.$ac_objext \
28652 conftest$ac_exeext conftest.$ac_ext
28653 LIBS=$ac_check_lib_save_LIBS
28655 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28656 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28657 if test $ac_cv_lib_krb5_main = yes; then
28659 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28665 elif test $krb5_impl = heimdal; then
28666 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28667 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28668 if test "${ac_cv_lib_des_main+set}" = set; then
28669 echo $ECHO_N "(cached) $ECHO_C" >&6
28671 ac_check_lib_save_LIBS=$LIBS
28673 cat >conftest.$ac_ext <<_ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h. */
28689 rm -f conftest.$ac_objext conftest$ac_exeext
28690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28691 (eval $ac_link) 2>conftest.er1
28693 grep -v '^ *+' conftest.er1 >conftest.err
28695 cat conftest.err >&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); } &&
28698 { ac_try='test -z "$ac_c_werror_flag"
28699 || test ! -s conftest.err'
28700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28701 (eval $ac_try) 2>&5
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); }; } &&
28705 { ac_try='test -s conftest$ac_exeext'
28706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; }; then
28711 ac_cv_lib_des_main=yes
28713 echo "$as_me: failed program was:" >&5
28714 sed 's/^/| /' conftest.$ac_ext >&5
28716 ac_cv_lib_des_main=no
28718 rm -f conftest.err conftest.$ac_objext \
28719 conftest$ac_exeext conftest.$ac_ext
28720 LIBS=$ac_check_lib_save_LIBS
28722 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28723 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28724 if test $ac_cv_lib_des_main = yes; then
28731 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28732 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28733 if test "${ac_cv_lib_krb5_main+set}" = set; then
28734 echo $ECHO_N "(cached) $ECHO_C" >&6
28736 ac_check_lib_save_LIBS=$LIBS
28737 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28738 cat >conftest.$ac_ext <<_ACEOF
28741 cat confdefs.h >>conftest.$ac_ext
28742 cat >>conftest.$ac_ext <<_ACEOF
28743 /* end confdefs.h. */
28754 rm -f conftest.$ac_objext conftest$ac_exeext
28755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28756 (eval $ac_link) 2>conftest.er1
28758 grep -v '^ *+' conftest.er1 >conftest.err
28760 cat conftest.err >&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } &&
28763 { ac_try='test -z "$ac_c_werror_flag"
28764 || test ! -s conftest.err'
28765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766 (eval $ac_try) 2>&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); }; } &&
28770 { ac_try='test -s conftest$ac_exeext'
28771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28772 (eval $ac_try) 2>&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; }; then
28776 ac_cv_lib_krb5_main=yes
28778 echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28781 ac_cv_lib_krb5_main=no
28783 rm -f conftest.err conftest.$ac_objext \
28784 conftest$ac_exeext conftest.$ac_ext
28785 LIBS=$ac_check_lib_save_LIBS
28787 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28788 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28789 if test $ac_cv_lib_krb5_main = yes; then
28791 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28798 cat >>confdefs.h <<\_ACEOF
28799 #define HAVE_HEIMDAL_KERBEROS 1
28805 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28806 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28809 if test $have_krb5 = yes ; then
28813 cat >>confdefs.h <<\_ACEOF
28814 #define HAVE_KRB5 1
28818 if test $ol_with_kerberos = k5only ; then
28819 ol_with_kerberos=found
28822 elif test $ol_with_kerberos != auto ; then
28823 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28824 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28825 { (exit 1); exit 1; }; }
28831 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28832 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28836 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28840 echo "$as_me:$LINENO: checking for $ac_header" >&5
28841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28843 echo $ECHO_N "(cached) $ECHO_C" >&6
28845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28848 # Is the header compilable?
28849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28851 cat >conftest.$ac_ext <<_ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h. */
28857 $ac_includes_default
28858 #include <$ac_header>
28860 rm -f conftest.$ac_objext
28861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28862 (eval $ac_compile) 2>conftest.er1
28864 grep -v '^ *+' conftest.er1 >conftest.err
28866 cat conftest.err >&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } &&
28869 { ac_try='test -z "$ac_c_werror_flag"
28870 || test ! -s conftest.err'
28871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28872 (eval $ac_try) 2>&5
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); }; } &&
28876 { ac_try='test -s conftest.$ac_objext'
28877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28878 (eval $ac_try) 2>&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; }; then
28882 ac_header_compiler=yes
28884 echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28887 ac_header_compiler=no
28889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28891 echo "${ECHO_T}$ac_header_compiler" >&6
28893 # Is the header present?
28894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28896 cat >conftest.$ac_ext <<_ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h. */
28902 #include <$ac_header>
28904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28907 grep -v '^ *+' conftest.er1 >conftest.err
28909 cat conftest.err >&5
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); } >/dev/null; then
28912 if test -s conftest.err; then
28913 ac_cpp_err=$ac_c_preproc_warn_flag
28914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28921 if test -z "$ac_cpp_err"; then
28922 ac_header_preproc=yes
28924 echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28927 ac_header_preproc=no
28929 rm -f conftest.err conftest.$ac_ext
28930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28931 echo "${ECHO_T}$ac_header_preproc" >&6
28933 # So? What about this header?
28934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28940 ac_header_preproc=yes
28943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28957 ## ------------------------------------------ ##
28958 ## Report this to the AC_PACKAGE_NAME lists. ##
28959 ## ------------------------------------------ ##
28962 sed "s/^/$as_me: WARNING: /" >&2
28965 echo "$as_me:$LINENO: checking for $ac_header" >&5
28966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28968 echo $ECHO_N "(cached) $ECHO_C" >&6
28970 eval "$as_ac_Header=\$ac_header_preproc"
28972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28977 cat >>confdefs.h <<_ACEOF
28978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28986 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28987 if test $krb5_impl = mit; then
28988 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28989 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28990 if test "${ac_cv_lib_krb4_main+set}" = set; then
28991 echo $ECHO_N "(cached) $ECHO_C" >&6
28993 ac_check_lib_save_LIBS=$LIBS
28994 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28995 cat >conftest.$ac_ext <<_ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29011 rm -f conftest.$ac_objext conftest$ac_exeext
29012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29013 (eval $ac_link) 2>conftest.er1
29015 grep -v '^ *+' conftest.er1 >conftest.err
29017 cat conftest.err >&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } &&
29020 { ac_try='test -z "$ac_c_werror_flag"
29021 || test ! -s conftest.err'
29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023 (eval $ac_try) 2>&5
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; } &&
29027 { ac_try='test -s conftest$ac_exeext'
29028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029 (eval $ac_try) 2>&5
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; }; then
29033 ac_cv_lib_krb4_main=yes
29035 echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29038 ac_cv_lib_krb4_main=no
29040 rm -f conftest.err conftest.$ac_objext \
29041 conftest$ac_exeext conftest.$ac_ext
29042 LIBS=$ac_check_lib_save_LIBS
29044 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29045 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29046 if test $ac_cv_lib_krb4_main = yes; then
29048 KRB4_LIBS="-lkrb4 -ldes425"
29054 elif test $krb5_impl = heimdal; then
29055 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
29056 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
29057 if test "${ac_cv_lib_krb4_main+set}" = set; then
29058 echo $ECHO_N "(cached) $ECHO_C" >&6
29060 ac_check_lib_save_LIBS=$LIBS
29061 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
29062 cat >conftest.$ac_ext <<_ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h. */
29078 rm -f conftest.$ac_objext conftest$ac_exeext
29079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29080 (eval $ac_link) 2>conftest.er1
29082 grep -v '^ *+' conftest.er1 >conftest.err
29084 cat conftest.err >&5
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); } &&
29087 { ac_try='test -z "$ac_c_werror_flag"
29088 || test ! -s conftest.err'
29089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090 (eval $ac_try) 2>&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; } &&
29094 { ac_try='test -s conftest$ac_exeext'
29095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096 (eval $ac_try) 2>&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; }; then
29100 ac_cv_lib_krb4_main=yes
29102 echo "$as_me: failed program was:" >&5
29103 sed 's/^/| /' conftest.$ac_ext >&5
29105 ac_cv_lib_krb4_main=no
29107 rm -f conftest.err conftest.$ac_objext \
29108 conftest$ac_exeext conftest.$ac_ext
29109 LIBS=$ac_check_lib_save_LIBS
29111 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29112 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29113 if test $ac_cv_lib_krb4_main = yes; then
29123 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
29124 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
29127 if test $have_k425 = yes ; then
29128 ol_with_kerberos=found
29132 cat >>confdefs.h <<\_ACEOF
29133 #define HAVE_KRB425 1
29137 cat >>confdefs.h <<\_ACEOF
29138 #define HAVE_KRB4 1
29142 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
29143 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
29144 if test "${ol_cv_var_des_debug+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
29150 cat >conftest.$ac_ext <<_ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29157 #include <kerberosIV/krb.h>
29158 #include <kerberosIV/des.h>
29159 extern int des_debug;
29171 rm -f conftest.$ac_objext conftest$ac_exeext
29172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29173 (eval $ac_link) 2>conftest.er1
29175 grep -v '^ *+' conftest.er1 >conftest.err
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } &&
29180 { ac_try='test -z "$ac_c_werror_flag"
29181 || test ! -s conftest.err'
29182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183 (eval $ac_try) 2>&5
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; } &&
29187 { ac_try='test -s conftest$ac_exeext'
29188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29189 (eval $ac_try) 2>&5
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); }; }; then
29193 ol_cv_var_des_debug=yes
29195 echo "$as_me: failed program was:" >&5
29196 sed 's/^/| /' conftest.$ac_ext >&5
29198 ol_cv_var_des_debug=no
29200 rm -f conftest.err conftest.$ac_objext \
29201 conftest$ac_exeext conftest.$ac_ext
29205 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29206 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29208 if test $ol_cv_var_des_debug = yes ; then
29210 cat >>confdefs.h <<\_ACEOF
29211 #define HAVE_DES_DEBUG 1
29221 if test $ol_link_krb5 = yes ; then
29222 ol_with_kerberos=found
29225 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29226 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29231 for ac_header in krb.h des.h krb-archaeology.h
29233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29235 echo "$as_me:$LINENO: checking for $ac_header" >&5
29236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29238 echo $ECHO_N "(cached) $ECHO_C" >&6
29240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29243 # Is the header compilable?
29244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29246 cat >conftest.$ac_ext <<_ACEOF
29249 cat confdefs.h >>conftest.$ac_ext
29250 cat >>conftest.$ac_ext <<_ACEOF
29251 /* end confdefs.h. */
29252 $ac_includes_default
29253 #include <$ac_header>
29255 rm -f conftest.$ac_objext
29256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29257 (eval $ac_compile) 2>conftest.er1
29259 grep -v '^ *+' conftest.er1 >conftest.err
29261 cat conftest.err >&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); } &&
29264 { ac_try='test -z "$ac_c_werror_flag"
29265 || test ! -s conftest.err'
29266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29267 (eval $ac_try) 2>&5
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); }; } &&
29271 { ac_try='test -s conftest.$ac_objext'
29272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273 (eval $ac_try) 2>&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); }; }; then
29277 ac_header_compiler=yes
29279 echo "$as_me: failed program was:" >&5
29280 sed 's/^/| /' conftest.$ac_ext >&5
29282 ac_header_compiler=no
29284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29286 echo "${ECHO_T}$ac_header_compiler" >&6
29288 # Is the header present?
29289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29291 cat >conftest.$ac_ext <<_ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h. */
29297 #include <$ac_header>
29299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29302 grep -v '^ *+' conftest.er1 >conftest.err
29304 cat conftest.err >&5
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); } >/dev/null; then
29307 if test -s conftest.err; then
29308 ac_cpp_err=$ac_c_preproc_warn_flag
29309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29316 if test -z "$ac_cpp_err"; then
29317 ac_header_preproc=yes
29319 echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29322 ac_header_preproc=no
29324 rm -f conftest.err conftest.$ac_ext
29325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29326 echo "${ECHO_T}$ac_header_preproc" >&6
29328 # So? What about this header?
29329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29335 ac_header_preproc=yes
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29352 ## ------------------------------------------ ##
29353 ## Report this to the AC_PACKAGE_NAME lists. ##
29354 ## ------------------------------------------ ##
29357 sed "s/^/$as_me: WARNING: /" >&2
29360 echo "$as_me:$LINENO: checking for $ac_header" >&5
29361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29363 echo $ECHO_N "(cached) $ECHO_C" >&6
29365 eval "$as_ac_Header=\$ac_header_preproc"
29367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29372 cat >>confdefs.h <<_ACEOF
29373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29381 if test $ac_cv_header_krb_h = yes ; then
29382 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29383 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29384 if test "${ac_cv_lib_krb_main+set}" = set; then
29385 echo $ECHO_N "(cached) $ECHO_C" >&6
29387 ac_check_lib_save_LIBS=$LIBS
29388 LIBS="-lkrb -ldes $LIBS"
29389 cat >conftest.$ac_ext <<_ACEOF
29392 cat confdefs.h >>conftest.$ac_ext
29393 cat >>conftest.$ac_ext <<_ACEOF
29394 /* end confdefs.h. */
29405 rm -f conftest.$ac_objext conftest$ac_exeext
29406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29407 (eval $ac_link) 2>conftest.er1
29409 grep -v '^ *+' conftest.er1 >conftest.err
29411 cat conftest.err >&5
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); } &&
29414 { ac_try='test -z "$ac_c_werror_flag"
29415 || test ! -s conftest.err'
29416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417 (eval $ac_try) 2>&5
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); }; } &&
29421 { ac_try='test -s conftest$ac_exeext'
29422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29423 (eval $ac_try) 2>&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); }; }; then
29427 ac_cv_lib_krb_main=yes
29429 echo "$as_me: failed program was:" >&5
29430 sed 's/^/| /' conftest.$ac_ext >&5
29432 ac_cv_lib_krb_main=no
29434 rm -f conftest.err conftest.$ac_objext \
29435 conftest$ac_exeext conftest.$ac_ext
29436 LIBS=$ac_check_lib_save_LIBS
29438 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29439 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29440 if test $ac_cv_lib_krb_main = yes; then
29447 if test $have_k4 = yes ; then
29448 ol_with_kerberos=found
29452 cat >>confdefs.h <<\_ACEOF
29453 #define HAVE_KRB4 1
29457 KRB4_LIBS="-lkrb -ldes"
29459 if test $ac_cv_header_krb_archaeology_h = yes ; then
29461 cat >>confdefs.h <<\_ACEOF
29462 #define HAVE_KTH_KERBEROS 1
29470 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29473 elif test $ol_enable_kbind = yes ; then
29474 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29475 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29476 { (exit 1); exit 1; }; }
29479 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29481 cat >>confdefs.h <<\_ACEOF
29482 #define HAVE_KERBEROS 1
29486 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29487 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29488 echo "$as_me: error: Kerberos detection failed" >&2;}
29489 { (exit 1); exit 1; }; }
29494 if test $ol_with_tls != no ; then
29497 for ac_header in openssl/ssl.h ssl.h
29499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29501 echo "$as_me:$LINENO: checking for $ac_header" >&5
29502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29504 echo $ECHO_N "(cached) $ECHO_C" >&6
29506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29509 # Is the header compilable?
29510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29512 cat >conftest.$ac_ext <<_ACEOF
29515 cat confdefs.h >>conftest.$ac_ext
29516 cat >>conftest.$ac_ext <<_ACEOF
29517 /* end confdefs.h. */
29518 $ac_includes_default
29519 #include <$ac_header>
29521 rm -f conftest.$ac_objext
29522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29523 (eval $ac_compile) 2>conftest.er1
29525 grep -v '^ *+' conftest.er1 >conftest.err
29527 cat conftest.err >&5
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); } &&
29530 { ac_try='test -z "$ac_c_werror_flag"
29531 || test ! -s conftest.err'
29532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29533 (eval $ac_try) 2>&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); }; } &&
29537 { ac_try='test -s conftest.$ac_objext'
29538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539 (eval $ac_try) 2>&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); }; }; then
29543 ac_header_compiler=yes
29545 echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29548 ac_header_compiler=no
29550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29552 echo "${ECHO_T}$ac_header_compiler" >&6
29554 # Is the header present?
29555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29557 cat >conftest.$ac_ext <<_ACEOF
29560 cat confdefs.h >>conftest.$ac_ext
29561 cat >>conftest.$ac_ext <<_ACEOF
29562 /* end confdefs.h. */
29563 #include <$ac_header>
29565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29568 grep -v '^ *+' conftest.er1 >conftest.err
29570 cat conftest.err >&5
29571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572 (exit $ac_status); } >/dev/null; then
29573 if test -s conftest.err; then
29574 ac_cpp_err=$ac_c_preproc_warn_flag
29575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29582 if test -z "$ac_cpp_err"; then
29583 ac_header_preproc=yes
29585 echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29588 ac_header_preproc=no
29590 rm -f conftest.err conftest.$ac_ext
29591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29592 echo "${ECHO_T}$ac_header_preproc" >&6
29594 # So? What about this header?
29595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29601 ac_header_preproc=yes
29604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29618 ## ------------------------------------------ ##
29619 ## Report this to the AC_PACKAGE_NAME lists. ##
29620 ## ------------------------------------------ ##
29623 sed "s/^/$as_me: WARNING: /" >&2
29626 echo "$as_me:$LINENO: checking for $ac_header" >&5
29627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29629 echo $ECHO_N "(cached) $ECHO_C" >&6
29631 eval "$as_ac_Header=\$ac_header_preproc"
29633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29638 cat >>confdefs.h <<_ACEOF
29639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29647 if test $ac_cv_header_openssl_ssl_h = yes \
29648 -o $ac_cv_header_ssl_h = yes ; then
29649 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29650 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29651 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29652 echo $ECHO_N "(cached) $ECHO_C" >&6
29654 ac_check_lib_save_LIBS=$LIBS
29655 LIBS="-lssl -lcrypto $LIBS"
29656 cat >conftest.$ac_ext <<_ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h. */
29663 /* Override any gcc2 internal prototype to avoid an error. */
29667 /* We use char because int might match the return type of a gcc2
29668 builtin and then its argument prototype would still apply. */
29669 char SSLeay_add_ssl_algorithms ();
29673 SSLeay_add_ssl_algorithms ();
29678 rm -f conftest.$ac_objext conftest$ac_exeext
29679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29680 (eval $ac_link) 2>conftest.er1
29682 grep -v '^ *+' conftest.er1 >conftest.err
29684 cat conftest.err >&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } &&
29687 { ac_try='test -z "$ac_c_werror_flag"
29688 || test ! -s conftest.err'
29689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690 (eval $ac_try) 2>&5
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest$ac_exeext'
29695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29696 (eval $ac_try) 2>&5
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); }; }; then
29700 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29702 echo "$as_me: failed program was:" >&5
29703 sed 's/^/| /' conftest.$ac_ext >&5
29705 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29707 rm -f conftest.err conftest.$ac_objext \
29708 conftest$ac_exeext conftest.$ac_ext
29709 LIBS=$ac_check_lib_save_LIBS
29711 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29712 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29713 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29721 if test $have_ssleay = no ; then
29722 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29723 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29724 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 ac_check_lib_save_LIBS=$LIBS
29728 LIBS="-lssl -lcrypto $LIBS"
29729 cat >conftest.$ac_ext <<_ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29736 /* Override any gcc2 internal prototype to avoid an error. */
29740 /* We use char because int might match the return type of a gcc2
29741 builtin and then its argument prototype would still apply. */
29742 char SSL_library_init ();
29746 SSL_library_init ();
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29753 (eval $ac_link) 2>conftest.er1
29755 grep -v '^ *+' conftest.er1 >conftest.err
29757 cat conftest.err >&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); } &&
29760 { ac_try='test -z "$ac_c_werror_flag"
29761 || test ! -s conftest.err'
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; } &&
29767 { ac_try='test -s conftest$ac_exeext'
29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769 (eval $ac_try) 2>&5
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; }; then
29773 ac_cv_lib_ssl_SSL_library_init=yes
29775 echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29778 ac_cv_lib_ssl_SSL_library_init=no
29780 rm -f conftest.err conftest.$ac_objext \
29781 conftest$ac_exeext conftest.$ac_ext
29782 LIBS=$ac_check_lib_save_LIBS
29784 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29785 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29786 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29795 if test $have_ssleay = no ; then
29796 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29797 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29798 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29801 ac_check_lib_save_LIBS=$LIBS
29802 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29803 cat >conftest.$ac_ext <<_ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h. */
29810 /* Override any gcc2 internal prototype to avoid an error. */
29814 /* We use char because int might match the return type of a gcc2
29815 builtin and then its argument prototype would still apply. */
29816 char ssl3_accept ();
29825 rm -f conftest.$ac_objext conftest$ac_exeext
29826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29827 (eval $ac_link) 2>conftest.er1
29829 grep -v '^ *+' conftest.er1 >conftest.err
29831 cat conftest.err >&5
29832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833 (exit $ac_status); } &&
29834 { ac_try='test -z "$ac_c_werror_flag"
29835 || test ! -s conftest.err'
29836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837 (eval $ac_try) 2>&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; } &&
29841 { ac_try='test -s conftest$ac_exeext'
29842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843 (eval $ac_try) 2>&5
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); }; }; then
29847 ac_cv_lib_ssl_ssl3_accept=yes
29849 echo "$as_me: failed program was:" >&5
29850 sed 's/^/| /' conftest.$ac_ext >&5
29852 ac_cv_lib_ssl_ssl3_accept=no
29854 rm -f conftest.err conftest.$ac_objext \
29855 conftest$ac_exeext conftest.$ac_ext
29856 LIBS=$ac_check_lib_save_LIBS
29858 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29859 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29860 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29869 if test $have_ssleay = yes ; then
29874 cat >>confdefs.h <<\_ACEOF
29875 #define HAVE_SSLEAY 1
29879 if test $need_rsaref = yes; then
29881 cat >>confdefs.h <<\_ACEOF
29882 #define HAVE_RSAREF 1
29886 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29888 TLS_LIBS="-lssl -lcrypto"
29891 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29892 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29893 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29894 echo $ECHO_N "(cached) $ECHO_C" >&6
29897 cat >conftest.$ac_ext <<_ACEOF
29900 cat confdefs.h >>conftest.$ac_ext
29901 cat >>conftest.$ac_ext <<_ACEOF
29902 /* end confdefs.h. */
29904 #ifdef HAVE_OPENSSL_SSL_H
29905 #include <openssl/ssl.h>
29910 /* Require 0.9.7d+ */
29911 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29912 char *__ssl_compat = "0.9.7d";
29916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29917 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29918 ol_cv_ssl_crl_compat=yes
29920 ol_cv_ssl_crl_compat=no
29925 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29926 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29928 if test $ol_cv_ssl_crl_compat = no ; then
29932 cat >>confdefs.h <<\_ACEOF
29933 #define HAVE_OPENSSL_CRL 1
29940 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29941 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29945 if test $ol_link_tls = yes ; then
29947 cat >>confdefs.h <<\_ACEOF
29953 elif test $ol_with_tls = auto ; then
29954 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29955 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29956 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29957 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29959 elif test $ol_with_tls != no ; then
29960 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29961 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29962 { (exit 1); exit 1; }; }
29965 if test $ol_enable_lmpasswd != no; then
29966 if test $ol_link_tls != yes ; then
29967 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29968 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29969 { (exit 1); exit 1; }; }
29973 cat >>confdefs.h <<\_ACEOF
29974 #define SLAPD_LMHASH 1
29981 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29982 -o $ol_with_threads = nt ; then
29985 echo "$as_me:$LINENO: checking for _beginthread" >&5
29986 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29987 if test "${ac_cv_func__beginthread+set}" = set; then
29988 echo $ECHO_N "(cached) $ECHO_C" >&6
29990 cat >conftest.$ac_ext <<_ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h. */
29996 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29998 #define _beginthread innocuous__beginthread
30000 /* System header to define __stub macros and hopefully few prototypes,
30001 which can conflict with char _beginthread (); below.
30002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30003 <limits.h> exists even on freestanding compilers. */
30006 # include <limits.h>
30008 # include <assert.h>
30011 #undef _beginthread
30013 /* Override any gcc2 internal prototype to avoid an error. */
30018 /* We use char because int might match the return type of a gcc2
30019 builtin and then its argument prototype would still apply. */
30020 char _beginthread ();
30021 /* The GNU C library defines this for functions which it implements
30022 to always fail with ENOSYS. Some functions are actually named
30023 something starting with __ and the normal name is an alias. */
30024 #if defined (__stub__beginthread) || defined (__stub____beginthread)
30027 char (*f) () = _beginthread;
30036 return f != _beginthread;
30041 rm -f conftest.$ac_objext conftest$ac_exeext
30042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30043 (eval $ac_link) 2>conftest.er1
30045 grep -v '^ *+' conftest.er1 >conftest.err
30047 cat conftest.err >&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } &&
30050 { ac_try='test -z "$ac_c_werror_flag"
30051 || test ! -s conftest.err'
30052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30053 (eval $ac_try) 2>&5
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); }; } &&
30057 { ac_try='test -s conftest$ac_exeext'
30058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30059 (eval $ac_try) 2>&5
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); }; }; then
30063 ac_cv_func__beginthread=yes
30065 echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30068 ac_cv_func__beginthread=no
30070 rm -f conftest.err conftest.$ac_objext \
30071 conftest$ac_exeext conftest.$ac_ext
30073 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
30074 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
30077 if test $ac_cv_func__beginthread = yes ; then
30079 cat >>confdefs.h <<\_ACEOF
30080 #define HAVE_NT_THREADS 1
30083 ol_cv_nt_threads=yes
30087 if test "$ol_cv_nt_threads" = yes ; then
30089 ol_with_threads=found
30090 ol_with_yielding_select=yes
30093 cat >>confdefs.h <<\_ACEOF
30094 #define HAVE_NT_SERVICE_MANAGER 1
30098 cat >>confdefs.h <<\_ACEOF
30099 #define HAVE_NT_EVENT_LOG 1
30104 if test $ol_with_threads = nt ; then
30105 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
30106 echo "$as_me: error: could not locate NT Threads" >&2;}
30107 { (exit 1); exit 1; }; }
30111 if test $ol_with_threads = auto -o $ol_with_threads = yes \
30112 -o $ol_with_threads = posix ; then
30115 for ac_header in pthread.h
30117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30119 echo "$as_me:$LINENO: checking for $ac_header" >&5
30120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30122 echo $ECHO_N "(cached) $ECHO_C" >&6
30124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30127 # Is the header compilable?
30128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30130 cat >conftest.$ac_ext <<_ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h. */
30136 $ac_includes_default
30137 #include <$ac_header>
30139 rm -f conftest.$ac_objext
30140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30141 (eval $ac_compile) 2>conftest.er1
30143 grep -v '^ *+' conftest.er1 >conftest.err
30145 cat conftest.err >&5
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); } &&
30148 { ac_try='test -z "$ac_c_werror_flag"
30149 || test ! -s conftest.err'
30150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30151 (eval $ac_try) 2>&5
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); }; } &&
30155 { ac_try='test -s conftest.$ac_objext'
30156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30157 (eval $ac_try) 2>&5
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); }; }; then
30161 ac_header_compiler=yes
30163 echo "$as_me: failed program was:" >&5
30164 sed 's/^/| /' conftest.$ac_ext >&5
30166 ac_header_compiler=no
30168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30170 echo "${ECHO_T}$ac_header_compiler" >&6
30172 # Is the header present?
30173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30175 cat >conftest.$ac_ext <<_ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h. */
30181 #include <$ac_header>
30183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30186 grep -v '^ *+' conftest.er1 >conftest.err
30188 cat conftest.err >&5
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); } >/dev/null; then
30191 if test -s conftest.err; then
30192 ac_cpp_err=$ac_c_preproc_warn_flag
30193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30200 if test -z "$ac_cpp_err"; then
30201 ac_header_preproc=yes
30203 echo "$as_me: failed program was:" >&5
30204 sed 's/^/| /' conftest.$ac_ext >&5
30206 ac_header_preproc=no
30208 rm -f conftest.err conftest.$ac_ext
30209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30210 echo "${ECHO_T}$ac_header_preproc" >&6
30212 # So? What about this header?
30213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30219 ac_header_preproc=yes
30222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30236 ## ------------------------------------------ ##
30237 ## Report this to the AC_PACKAGE_NAME lists. ##
30238 ## ------------------------------------------ ##
30241 sed "s/^/$as_me: WARNING: /" >&2
30244 echo "$as_me:$LINENO: checking for $ac_header" >&5
30245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30249 eval "$as_ac_Header=\$ac_header_preproc"
30251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30256 cat >>confdefs.h <<_ACEOF
30257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30265 if test $ac_cv_header_pthread_h = yes ; then
30266 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30267 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30268 if test "${ol_cv_pthread_version+set}" = set; then
30269 echo $ECHO_N "(cached) $ECHO_C" >&6
30272 cat >conftest.$ac_ext <<_ACEOF
30275 cat confdefs.h >>conftest.$ac_ext
30276 cat >>conftest.$ac_ext <<_ACEOF
30277 /* end confdefs.h. */
30279 # include <pthread.h>
30285 int i = PTHREAD_CREATE_JOINABLE;
30291 rm -f conftest.$ac_objext
30292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30293 (eval $ac_compile) 2>conftest.er1
30295 grep -v '^ *+' conftest.er1 >conftest.err
30297 cat conftest.err >&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); } &&
30300 { ac_try='test -z "$ac_c_werror_flag"
30301 || test ! -s conftest.err'
30302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30303 (eval $ac_try) 2>&5
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); }; } &&
30307 { ac_try='test -s conftest.$ac_objext'
30308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30309 (eval $ac_try) 2>&5
30311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312 (exit $ac_status); }; }; then
30314 cat >conftest.$ac_ext <<_ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h. */
30320 #include <pthread.h>
30323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30324 $EGREP "pthread_detach" >/dev/null 2>&1; then
30325 ol_cv_pthread_version=10
30327 ol_cv_pthread_version=8
30332 echo "$as_me: failed program was:" >&5
30333 sed 's/^/| /' conftest.$ac_ext >&5
30336 cat >conftest.$ac_ext <<_ACEOF
30339 cat confdefs.h >>conftest.$ac_ext
30340 cat >>conftest.$ac_ext <<_ACEOF
30341 /* end confdefs.h. */
30343 # include <pthread.h>
30344 # ifdef PTHREAD_CREATE_UNDETACHED
30349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30350 $EGREP "draft7" >/dev/null 2>&1; then
30351 ol_cv_pthread_version=7
30354 cat >conftest.$ac_ext <<_ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h. */
30360 #include <pthread.h>
30363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30364 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30365 ol_cv_pthread_version=6
30368 cat >conftest.$ac_ext <<_ACEOF
30371 cat confdefs.h >>conftest.$ac_ext
30372 cat >>conftest.$ac_ext <<_ACEOF
30373 /* end confdefs.h. */
30375 # include <pthread.h>
30376 #ifdef PTHREAD_MUTEX_INITIALIZER
30381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30382 $EGREP "draft5" >/dev/null 2>&1; then
30383 ol_cv_pthread_version=5
30385 ol_cv_pthread_version=4
30396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30399 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30400 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30403 if test $ol_cv_pthread_version != 0 ; then
30405 cat >>confdefs.h <<_ACEOF
30406 #define HAVE_PTHREADS $ol_cv_pthread_version
30410 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30411 echo "$as_me: error: unknown pthread version" >&2;}
30412 { (exit 1); exit 1; }; }
30415 # consider threads found
30416 ol_with_threads=found
30419 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30420 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30421 if test "${ol_cv_header_linux_threads+set}" = set; then
30422 echo $ECHO_N "(cached) $ECHO_C" >&6
30424 cat >conftest.$ac_ext <<_ACEOF
30427 cat confdefs.h >>conftest.$ac_ext
30428 cat >>conftest.$ac_ext <<_ACEOF
30429 /* end confdefs.h. */
30430 #include <pthread.h>
30432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30433 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30434 ol_cv_header_linux_threads=yes
30436 ol_cv_header_linux_threads=no
30442 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30443 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30444 if test $ol_cv_header_linux_threads = yes; then
30446 cat >>confdefs.h <<\_ACEOF
30447 #define HAVE_LINUX_THREADS 1
30453 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30454 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30455 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30456 echo $ECHO_N "(cached) $ECHO_C" >&6
30458 cat >conftest.$ac_ext <<_ACEOF
30461 cat confdefs.h >>conftest.$ac_ext
30462 cat >>conftest.$ac_ext <<_ACEOF
30463 /* end confdefs.h. */
30464 #include <pthread.h>
30465 #ifdef _POSIX_THREAD_IS_GNU_PTH
30470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30471 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30472 ol_cv_header_gnu_pth_pthread_h=yes
30474 ol_cv_header_gnu_pth_pthread_h=no
30480 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30481 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30484 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30486 for ac_header in sched.h
30488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30490 echo "$as_me:$LINENO: checking for $ac_header" >&5
30491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30493 echo $ECHO_N "(cached) $ECHO_C" >&6
30495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30498 # Is the header compilable?
30499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30501 cat >conftest.$ac_ext <<_ACEOF
30504 cat confdefs.h >>conftest.$ac_ext
30505 cat >>conftest.$ac_ext <<_ACEOF
30506 /* end confdefs.h. */
30507 $ac_includes_default
30508 #include <$ac_header>
30510 rm -f conftest.$ac_objext
30511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30512 (eval $ac_compile) 2>conftest.er1
30514 grep -v '^ *+' conftest.er1 >conftest.err
30516 cat conftest.err >&5
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); } &&
30519 { ac_try='test -z "$ac_c_werror_flag"
30520 || test ! -s conftest.err'
30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; } &&
30526 { ac_try='test -s conftest.$ac_objext'
30527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528 (eval $ac_try) 2>&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; }; then
30532 ac_header_compiler=yes
30534 echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30537 ac_header_compiler=no
30539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30541 echo "${ECHO_T}$ac_header_compiler" >&6
30543 # Is the header present?
30544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30546 cat >conftest.$ac_ext <<_ACEOF
30549 cat confdefs.h >>conftest.$ac_ext
30550 cat >>conftest.$ac_ext <<_ACEOF
30551 /* end confdefs.h. */
30552 #include <$ac_header>
30554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30557 grep -v '^ *+' conftest.er1 >conftest.err
30559 cat conftest.err >&5
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); } >/dev/null; then
30562 if test -s conftest.err; then
30563 ac_cpp_err=$ac_c_preproc_warn_flag
30564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30571 if test -z "$ac_cpp_err"; then
30572 ac_header_preproc=yes
30574 echo "$as_me: failed program was:" >&5
30575 sed 's/^/| /' conftest.$ac_ext >&5
30577 ac_header_preproc=no
30579 rm -f conftest.err conftest.$ac_ext
30580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30581 echo "${ECHO_T}$ac_header_preproc" >&6
30583 # So? What about this header?
30584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30590 ac_header_preproc=yes
30593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30607 ## ------------------------------------------ ##
30608 ## Report this to the AC_PACKAGE_NAME lists. ##
30609 ## ------------------------------------------ ##
30612 sed "s/^/$as_me: WARNING: /" >&2
30615 echo "$as_me:$LINENO: checking for $ac_header" >&5
30616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30618 echo $ECHO_N "(cached) $ECHO_C" >&6
30620 eval "$as_ac_Header=\$ac_header_preproc"
30622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30627 cat >>confdefs.h <<_ACEOF
30628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30638 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30639 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30640 if test "${ol_cv_pthread_create+set}" = set; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30644 if test "$cross_compiling" = yes; then
30645 cat >conftest.$ac_ext <<_ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h. */
30652 /* pthread test headers */
30653 #include <pthread.h>
30654 #if HAVE_PTHREADS < 7
30658 #define NULL (void*)0
30661 static void *task(p)
30664 return (void *) (p == NULL);
30671 /* pthread test function */
30672 #ifndef PTHREAD_CREATE_DETACHED
30673 #define PTHREAD_CREATE_DETACHED 1
30677 int detach = PTHREAD_CREATE_DETACHED;
30679 #if HAVE_PTHREADS > 4
30680 /* Final pthreads */
30681 pthread_attr_t attr;
30683 status = pthread_attr_init(&attr);
30684 if( status ) return status;
30686 #if HAVE_PTHREADS < 7
30687 status = pthread_attr_setdetachstate(&attr, &detach);
30688 if( status < 0 ) status = errno;
30690 status = pthread_attr_setdetachstate(&attr, detach);
30692 if( status ) return status;
30693 status = pthread_create( &t, &attr, task, NULL );
30694 #if HAVE_PTHREADS < 7
30695 if( status < 0 ) status = errno;
30697 if( status ) return status;
30699 /* Draft 4 pthreads */
30700 status = pthread_create( &t, pthread_attr_default, task, NULL );
30701 if( status ) return errno;
30703 /* give thread a chance to complete */
30704 /* it should remain joinable and hence detachable */
30707 status = pthread_detach( &t );
30708 if( status ) return errno;
30711 #ifdef HAVE_LINUX_THREADS
30712 pthread_kill_other_threads_np();
30721 rm -f conftest.$ac_objext conftest$ac_exeext
30722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30723 (eval $ac_link) 2>conftest.er1
30725 grep -v '^ *+' conftest.er1 >conftest.err
30727 cat conftest.err >&5
30728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729 (exit $ac_status); } &&
30730 { ac_try='test -z "$ac_c_werror_flag"
30731 || test ! -s conftest.err'
30732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30733 (eval $ac_try) 2>&5
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); }; } &&
30737 { ac_try='test -s conftest$ac_exeext'
30738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30739 (eval $ac_try) 2>&5
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); }; }; then
30743 ol_cv_pthread_create=yes
30745 echo "$as_me: failed program was:" >&5
30746 sed 's/^/| /' conftest.$ac_ext >&5
30748 ol_cv_pthread_create=no
30750 rm -f conftest.err conftest.$ac_objext \
30751 conftest$ac_exeext conftest.$ac_ext
30753 cat >conftest.$ac_ext <<_ACEOF
30756 cat confdefs.h >>conftest.$ac_ext
30757 cat >>conftest.$ac_ext <<_ACEOF
30758 /* end confdefs.h. */
30760 /* pthread test headers */
30761 #include <pthread.h>
30762 #if HAVE_PTHREADS < 7
30766 #define NULL (void*)0
30769 static void *task(p)
30772 return (void *) (p == NULL);
30776 int main(argc, argv)
30781 /* pthread test function */
30782 #ifndef PTHREAD_CREATE_DETACHED
30783 #define PTHREAD_CREATE_DETACHED 1
30787 int detach = PTHREAD_CREATE_DETACHED;
30789 #if HAVE_PTHREADS > 4
30790 /* Final pthreads */
30791 pthread_attr_t attr;
30793 status = pthread_attr_init(&attr);
30794 if( status ) return status;
30796 #if HAVE_PTHREADS < 7
30797 status = pthread_attr_setdetachstate(&attr, &detach);
30798 if( status < 0 ) status = errno;
30800 status = pthread_attr_setdetachstate(&attr, detach);
30802 if( status ) return status;
30803 status = pthread_create( &t, &attr, task, NULL );
30804 #if HAVE_PTHREADS < 7
30805 if( status < 0 ) status = errno;
30807 if( status ) return status;
30809 /* Draft 4 pthreads */
30810 status = pthread_create( &t, pthread_attr_default, task, NULL );
30811 if( status ) return errno;
30813 /* give thread a chance to complete */
30814 /* it should remain joinable and hence detachable */
30817 status = pthread_detach( &t );
30818 if( status ) return errno;
30821 #ifdef HAVE_LINUX_THREADS
30822 pthread_kill_other_threads_np();
30830 rm -f conftest$ac_exeext
30831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30832 (eval $ac_link) 2>&5
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30837 (eval $ac_try) 2>&5
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); }; }; then
30841 ol_cv_pthread_create=yes
30843 echo "$as_me: program exited with status $ac_status" >&5
30844 echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30847 ( exit $ac_status )
30848 ol_cv_pthread_create=no
30850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30853 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30854 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30856 if test $ol_cv_pthread_create != no ; then
30857 ol_link_threads=posix
30858 ol_link_pthreads=""
30861 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30862 if test "$ol_link_threads" = no ; then
30864 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30865 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30866 if test "${ol_cv_pthread_kthread+set}" = set; then
30867 echo $ECHO_N "(cached) $ECHO_C" >&6
30872 LIBS="-kthread $LIBS"
30874 if test "$cross_compiling" = yes; then
30875 cat >conftest.$ac_ext <<_ACEOF
30878 cat confdefs.h >>conftest.$ac_ext
30879 cat >>conftest.$ac_ext <<_ACEOF
30880 /* end confdefs.h. */
30882 /* pthread test headers */
30883 #include <pthread.h>
30884 #if HAVE_PTHREADS < 7
30888 #define NULL (void*)0
30891 static void *task(p)
30894 return (void *) (p == NULL);
30901 /* pthread test function */
30902 #ifndef PTHREAD_CREATE_DETACHED
30903 #define PTHREAD_CREATE_DETACHED 1
30907 int detach = PTHREAD_CREATE_DETACHED;
30909 #if HAVE_PTHREADS > 4
30910 /* Final pthreads */
30911 pthread_attr_t attr;
30913 status = pthread_attr_init(&attr);
30914 if( status ) return status;
30916 #if HAVE_PTHREADS < 7
30917 status = pthread_attr_setdetachstate(&attr, &detach);
30918 if( status < 0 ) status = errno;
30920 status = pthread_attr_setdetachstate(&attr, detach);
30922 if( status ) return status;
30923 status = pthread_create( &t, &attr, task, NULL );
30924 #if HAVE_PTHREADS < 7
30925 if( status < 0 ) status = errno;
30927 if( status ) return status;
30929 /* Draft 4 pthreads */
30930 status = pthread_create( &t, pthread_attr_default, task, NULL );
30931 if( status ) return errno;
30933 /* give thread a chance to complete */
30934 /* it should remain joinable and hence detachable */
30937 status = pthread_detach( &t );
30938 if( status ) return errno;
30941 #ifdef HAVE_LINUX_THREADS
30942 pthread_kill_other_threads_np();
30951 rm -f conftest.$ac_objext conftest$ac_exeext
30952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30953 (eval $ac_link) 2>conftest.er1
30955 grep -v '^ *+' conftest.er1 >conftest.err
30957 cat conftest.err >&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); } &&
30960 { ac_try='test -z "$ac_c_werror_flag"
30961 || test ! -s conftest.err'
30962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30963 (eval $ac_try) 2>&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); }; } &&
30967 { ac_try='test -s conftest$ac_exeext'
30968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30969 (eval $ac_try) 2>&5
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); }; }; then
30973 ol_cv_pthread_kthread=yes
30975 echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30978 ol_cv_pthread_kthread=no
30980 rm -f conftest.err conftest.$ac_objext \
30981 conftest$ac_exeext conftest.$ac_ext
30983 cat >conftest.$ac_ext <<_ACEOF
30986 cat confdefs.h >>conftest.$ac_ext
30987 cat >>conftest.$ac_ext <<_ACEOF
30988 /* end confdefs.h. */
30990 /* pthread test headers */
30991 #include <pthread.h>
30992 #if HAVE_PTHREADS < 7
30996 #define NULL (void*)0
30999 static void *task(p)
31002 return (void *) (p == NULL);
31006 int main(argc, argv)
31011 /* pthread test function */
31012 #ifndef PTHREAD_CREATE_DETACHED
31013 #define PTHREAD_CREATE_DETACHED 1
31017 int detach = PTHREAD_CREATE_DETACHED;
31019 #if HAVE_PTHREADS > 4
31020 /* Final pthreads */
31021 pthread_attr_t attr;
31023 status = pthread_attr_init(&attr);
31024 if( status ) return status;
31026 #if HAVE_PTHREADS < 7
31027 status = pthread_attr_setdetachstate(&attr, &detach);
31028 if( status < 0 ) status = errno;
31030 status = pthread_attr_setdetachstate(&attr, detach);
31032 if( status ) return status;
31033 status = pthread_create( &t, &attr, task, NULL );
31034 #if HAVE_PTHREADS < 7
31035 if( status < 0 ) status = errno;
31037 if( status ) return status;
31039 /* Draft 4 pthreads */
31040 status = pthread_create( &t, pthread_attr_default, task, NULL );
31041 if( status ) return errno;
31043 /* give thread a chance to complete */
31044 /* it should remain joinable and hence detachable */
31047 status = pthread_detach( &t );
31048 if( status ) return errno;
31051 #ifdef HAVE_LINUX_THREADS
31052 pthread_kill_other_threads_np();
31060 rm -f conftest$ac_exeext
31061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31062 (eval $ac_link) 2>&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067 (eval $ac_try) 2>&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; }; then
31071 ol_cv_pthread_kthread=yes
31073 echo "$as_me: program exited with status $ac_status" >&5
31074 echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.$ac_ext >&5
31077 ( exit $ac_status )
31078 ol_cv_pthread_kthread=no
31080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31087 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
31088 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
31090 if test $ol_cv_pthread_kthread = yes ; then
31091 ol_link_pthreads="-kthread"
31092 ol_link_threads=posix
31096 # Pthread try link: -pthread (ol_cv_pthread_pthread)
31097 if test "$ol_link_threads" = no ; then
31099 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
31100 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
31101 if test "${ol_cv_pthread_pthread+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31107 LIBS="-pthread $LIBS"
31109 if test "$cross_compiling" = yes; then
31110 cat >conftest.$ac_ext <<_ACEOF
31113 cat confdefs.h >>conftest.$ac_ext
31114 cat >>conftest.$ac_ext <<_ACEOF
31115 /* end confdefs.h. */
31117 /* pthread test headers */
31118 #include <pthread.h>
31119 #if HAVE_PTHREADS < 7
31123 #define NULL (void*)0
31126 static void *task(p)
31129 return (void *) (p == NULL);
31136 /* pthread test function */
31137 #ifndef PTHREAD_CREATE_DETACHED
31138 #define PTHREAD_CREATE_DETACHED 1
31142 int detach = PTHREAD_CREATE_DETACHED;
31144 #if HAVE_PTHREADS > 4
31145 /* Final pthreads */
31146 pthread_attr_t attr;
31148 status = pthread_attr_init(&attr);
31149 if( status ) return status;
31151 #if HAVE_PTHREADS < 7
31152 status = pthread_attr_setdetachstate(&attr, &detach);
31153 if( status < 0 ) status = errno;
31155 status = pthread_attr_setdetachstate(&attr, detach);
31157 if( status ) return status;
31158 status = pthread_create( &t, &attr, task, NULL );
31159 #if HAVE_PTHREADS < 7
31160 if( status < 0 ) status = errno;
31162 if( status ) return status;
31164 /* Draft 4 pthreads */
31165 status = pthread_create( &t, pthread_attr_default, task, NULL );
31166 if( status ) return errno;
31168 /* give thread a chance to complete */
31169 /* it should remain joinable and hence detachable */
31172 status = pthread_detach( &t );
31173 if( status ) return errno;
31176 #ifdef HAVE_LINUX_THREADS
31177 pthread_kill_other_threads_np();
31186 rm -f conftest.$ac_objext conftest$ac_exeext
31187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31188 (eval $ac_link) 2>conftest.er1
31190 grep -v '^ *+' conftest.er1 >conftest.err
31192 cat conftest.err >&5
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); } &&
31195 { ac_try='test -z "$ac_c_werror_flag"
31196 || test ! -s conftest.err'
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; } &&
31202 { ac_try='test -s conftest$ac_exeext'
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; }; then
31208 ol_cv_pthread_pthread=yes
31210 echo "$as_me: failed program was:" >&5
31211 sed 's/^/| /' conftest.$ac_ext >&5
31213 ol_cv_pthread_pthread=no
31215 rm -f conftest.err conftest.$ac_objext \
31216 conftest$ac_exeext conftest.$ac_ext
31218 cat >conftest.$ac_ext <<_ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h. */
31225 /* pthread test headers */
31226 #include <pthread.h>
31227 #if HAVE_PTHREADS < 7
31231 #define NULL (void*)0
31234 static void *task(p)
31237 return (void *) (p == NULL);
31241 int main(argc, argv)
31246 /* pthread test function */
31247 #ifndef PTHREAD_CREATE_DETACHED
31248 #define PTHREAD_CREATE_DETACHED 1
31252 int detach = PTHREAD_CREATE_DETACHED;
31254 #if HAVE_PTHREADS > 4
31255 /* Final pthreads */
31256 pthread_attr_t attr;
31258 status = pthread_attr_init(&attr);
31259 if( status ) return status;
31261 #if HAVE_PTHREADS < 7
31262 status = pthread_attr_setdetachstate(&attr, &detach);
31263 if( status < 0 ) status = errno;
31265 status = pthread_attr_setdetachstate(&attr, detach);
31267 if( status ) return status;
31268 status = pthread_create( &t, &attr, task, NULL );
31269 #if HAVE_PTHREADS < 7
31270 if( status < 0 ) status = errno;
31272 if( status ) return status;
31274 /* Draft 4 pthreads */
31275 status = pthread_create( &t, pthread_attr_default, task, NULL );
31276 if( status ) return errno;
31278 /* give thread a chance to complete */
31279 /* it should remain joinable and hence detachable */
31282 status = pthread_detach( &t );
31283 if( status ) return errno;
31286 #ifdef HAVE_LINUX_THREADS
31287 pthread_kill_other_threads_np();
31295 rm -f conftest$ac_exeext
31296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31297 (eval $ac_link) 2>&5
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31302 (eval $ac_try) 2>&5
31304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305 (exit $ac_status); }; }; then
31306 ol_cv_pthread_pthread=yes
31308 echo "$as_me: program exited with status $ac_status" >&5
31309 echo "$as_me: failed program was:" >&5
31310 sed 's/^/| /' conftest.$ac_ext >&5
31312 ( exit $ac_status )
31313 ol_cv_pthread_pthread=no
31315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31322 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31323 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31325 if test $ol_cv_pthread_pthread = yes ; then
31326 ol_link_pthreads="-pthread"
31327 ol_link_threads=posix
31331 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31332 if test "$ol_link_threads" = no ; then
31334 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31335 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31336 if test "${ol_cv_pthread_pthreads+set}" = set; then
31337 echo $ECHO_N "(cached) $ECHO_C" >&6
31342 LIBS="-pthreads $LIBS"
31344 if test "$cross_compiling" = yes; then
31345 cat >conftest.$ac_ext <<_ACEOF
31348 cat confdefs.h >>conftest.$ac_ext
31349 cat >>conftest.$ac_ext <<_ACEOF
31350 /* end confdefs.h. */
31352 /* pthread test headers */
31353 #include <pthread.h>
31354 #if HAVE_PTHREADS < 7
31358 #define NULL (void*)0
31361 static void *task(p)
31364 return (void *) (p == NULL);
31371 /* pthread test function */
31372 #ifndef PTHREAD_CREATE_DETACHED
31373 #define PTHREAD_CREATE_DETACHED 1
31377 int detach = PTHREAD_CREATE_DETACHED;
31379 #if HAVE_PTHREADS > 4
31380 /* Final pthreads */
31381 pthread_attr_t attr;
31383 status = pthread_attr_init(&attr);
31384 if( status ) return status;
31386 #if HAVE_PTHREADS < 7
31387 status = pthread_attr_setdetachstate(&attr, &detach);
31388 if( status < 0 ) status = errno;
31390 status = pthread_attr_setdetachstate(&attr, detach);
31392 if( status ) return status;
31393 status = pthread_create( &t, &attr, task, NULL );
31394 #if HAVE_PTHREADS < 7
31395 if( status < 0 ) status = errno;
31397 if( status ) return status;
31399 /* Draft 4 pthreads */
31400 status = pthread_create( &t, pthread_attr_default, task, NULL );
31401 if( status ) return errno;
31403 /* give thread a chance to complete */
31404 /* it should remain joinable and hence detachable */
31407 status = pthread_detach( &t );
31408 if( status ) return errno;
31411 #ifdef HAVE_LINUX_THREADS
31412 pthread_kill_other_threads_np();
31421 rm -f conftest.$ac_objext conftest$ac_exeext
31422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31423 (eval $ac_link) 2>conftest.er1
31425 grep -v '^ *+' conftest.er1 >conftest.err
31427 cat conftest.err >&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); } &&
31430 { ac_try='test -z "$ac_c_werror_flag"
31431 || test ! -s conftest.err'
31432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31433 (eval $ac_try) 2>&5
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); }; } &&
31437 { ac_try='test -s conftest$ac_exeext'
31438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31439 (eval $ac_try) 2>&5
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); }; }; then
31443 ol_cv_pthread_pthreads=yes
31445 echo "$as_me: failed program was:" >&5
31446 sed 's/^/| /' conftest.$ac_ext >&5
31448 ol_cv_pthread_pthreads=no
31450 rm -f conftest.err conftest.$ac_objext \
31451 conftest$ac_exeext conftest.$ac_ext
31453 cat >conftest.$ac_ext <<_ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h. */
31460 /* pthread test headers */
31461 #include <pthread.h>
31462 #if HAVE_PTHREADS < 7
31466 #define NULL (void*)0
31469 static void *task(p)
31472 return (void *) (p == NULL);
31476 int main(argc, argv)
31481 /* pthread test function */
31482 #ifndef PTHREAD_CREATE_DETACHED
31483 #define PTHREAD_CREATE_DETACHED 1
31487 int detach = PTHREAD_CREATE_DETACHED;
31489 #if HAVE_PTHREADS > 4
31490 /* Final pthreads */
31491 pthread_attr_t attr;
31493 status = pthread_attr_init(&attr);
31494 if( status ) return status;
31496 #if HAVE_PTHREADS < 7
31497 status = pthread_attr_setdetachstate(&attr, &detach);
31498 if( status < 0 ) status = errno;
31500 status = pthread_attr_setdetachstate(&attr, detach);
31502 if( status ) return status;
31503 status = pthread_create( &t, &attr, task, NULL );
31504 #if HAVE_PTHREADS < 7
31505 if( status < 0 ) status = errno;
31507 if( status ) return status;
31509 /* Draft 4 pthreads */
31510 status = pthread_create( &t, pthread_attr_default, task, NULL );
31511 if( status ) return errno;
31513 /* give thread a chance to complete */
31514 /* it should remain joinable and hence detachable */
31517 status = pthread_detach( &t );
31518 if( status ) return errno;
31521 #ifdef HAVE_LINUX_THREADS
31522 pthread_kill_other_threads_np();
31530 rm -f conftest$ac_exeext
31531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31532 (eval $ac_link) 2>&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31537 (eval $ac_try) 2>&5
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; }; then
31541 ol_cv_pthread_pthreads=yes
31543 echo "$as_me: program exited with status $ac_status" >&5
31544 echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31547 ( exit $ac_status )
31548 ol_cv_pthread_pthreads=no
31550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31557 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31558 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31560 if test $ol_cv_pthread_pthreads = yes ; then
31561 ol_link_pthreads="-pthreads"
31562 ol_link_threads=posix
31566 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31567 if test "$ol_link_threads" = no ; then
31569 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31570 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31571 if test "${ol_cv_pthread_mthreads+set}" = set; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31577 LIBS="-mthreads $LIBS"
31579 if test "$cross_compiling" = yes; then
31580 cat >conftest.$ac_ext <<_ACEOF
31583 cat confdefs.h >>conftest.$ac_ext
31584 cat >>conftest.$ac_ext <<_ACEOF
31585 /* end confdefs.h. */
31587 /* pthread test headers */
31588 #include <pthread.h>
31589 #if HAVE_PTHREADS < 7
31593 #define NULL (void*)0
31596 static void *task(p)
31599 return (void *) (p == NULL);
31606 /* pthread test function */
31607 #ifndef PTHREAD_CREATE_DETACHED
31608 #define PTHREAD_CREATE_DETACHED 1
31612 int detach = PTHREAD_CREATE_DETACHED;
31614 #if HAVE_PTHREADS > 4
31615 /* Final pthreads */
31616 pthread_attr_t attr;
31618 status = pthread_attr_init(&attr);
31619 if( status ) return status;
31621 #if HAVE_PTHREADS < 7
31622 status = pthread_attr_setdetachstate(&attr, &detach);
31623 if( status < 0 ) status = errno;
31625 status = pthread_attr_setdetachstate(&attr, detach);
31627 if( status ) return status;
31628 status = pthread_create( &t, &attr, task, NULL );
31629 #if HAVE_PTHREADS < 7
31630 if( status < 0 ) status = errno;
31632 if( status ) return status;
31634 /* Draft 4 pthreads */
31635 status = pthread_create( &t, pthread_attr_default, task, NULL );
31636 if( status ) return errno;
31638 /* give thread a chance to complete */
31639 /* it should remain joinable and hence detachable */
31642 status = pthread_detach( &t );
31643 if( status ) return errno;
31646 #ifdef HAVE_LINUX_THREADS
31647 pthread_kill_other_threads_np();
31656 rm -f conftest.$ac_objext conftest$ac_exeext
31657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31658 (eval $ac_link) 2>conftest.er1
31660 grep -v '^ *+' conftest.er1 >conftest.err
31662 cat conftest.err >&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); } &&
31665 { ac_try='test -z "$ac_c_werror_flag"
31666 || test ! -s conftest.err'
31667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668 (eval $ac_try) 2>&5
31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671 (exit $ac_status); }; } &&
31672 { ac_try='test -s conftest$ac_exeext'
31673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31674 (eval $ac_try) 2>&5
31676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677 (exit $ac_status); }; }; then
31678 ol_cv_pthread_mthreads=yes
31680 echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31683 ol_cv_pthread_mthreads=no
31685 rm -f conftest.err conftest.$ac_objext \
31686 conftest$ac_exeext conftest.$ac_ext
31688 cat >conftest.$ac_ext <<_ACEOF
31691 cat confdefs.h >>conftest.$ac_ext
31692 cat >>conftest.$ac_ext <<_ACEOF
31693 /* end confdefs.h. */
31695 /* pthread test headers */
31696 #include <pthread.h>
31697 #if HAVE_PTHREADS < 7
31701 #define NULL (void*)0
31704 static void *task(p)
31707 return (void *) (p == NULL);
31711 int main(argc, argv)
31716 /* pthread test function */
31717 #ifndef PTHREAD_CREATE_DETACHED
31718 #define PTHREAD_CREATE_DETACHED 1
31722 int detach = PTHREAD_CREATE_DETACHED;
31724 #if HAVE_PTHREADS > 4
31725 /* Final pthreads */
31726 pthread_attr_t attr;
31728 status = pthread_attr_init(&attr);
31729 if( status ) return status;
31731 #if HAVE_PTHREADS < 7
31732 status = pthread_attr_setdetachstate(&attr, &detach);
31733 if( status < 0 ) status = errno;
31735 status = pthread_attr_setdetachstate(&attr, detach);
31737 if( status ) return status;
31738 status = pthread_create( &t, &attr, task, NULL );
31739 #if HAVE_PTHREADS < 7
31740 if( status < 0 ) status = errno;
31742 if( status ) return status;
31744 /* Draft 4 pthreads */
31745 status = pthread_create( &t, pthread_attr_default, task, NULL );
31746 if( status ) return errno;
31748 /* give thread a chance to complete */
31749 /* it should remain joinable and hence detachable */
31752 status = pthread_detach( &t );
31753 if( status ) return errno;
31756 #ifdef HAVE_LINUX_THREADS
31757 pthread_kill_other_threads_np();
31765 rm -f conftest$ac_exeext
31766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31767 (eval $ac_link) 2>&5
31769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772 (eval $ac_try) 2>&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); }; }; then
31776 ol_cv_pthread_mthreads=yes
31778 echo "$as_me: program exited with status $ac_status" >&5
31779 echo "$as_me: failed program was:" >&5
31780 sed 's/^/| /' conftest.$ac_ext >&5
31782 ( exit $ac_status )
31783 ol_cv_pthread_mthreads=no
31785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31792 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31793 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31795 if test $ol_cv_pthread_mthreads = yes ; then
31796 ol_link_pthreads="-mthreads"
31797 ol_link_threads=posix
31801 # Pthread try link: -thread (ol_cv_pthread_thread)
31802 if test "$ol_link_threads" = no ; then
31804 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31805 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31806 if test "${ol_cv_pthread_thread+set}" = set; then
31807 echo $ECHO_N "(cached) $ECHO_C" >&6
31812 LIBS="-thread $LIBS"
31814 if test "$cross_compiling" = yes; then
31815 cat >conftest.$ac_ext <<_ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h. */
31822 /* pthread test headers */
31823 #include <pthread.h>
31824 #if HAVE_PTHREADS < 7
31828 #define NULL (void*)0
31831 static void *task(p)
31834 return (void *) (p == NULL);
31841 /* pthread test function */
31842 #ifndef PTHREAD_CREATE_DETACHED
31843 #define PTHREAD_CREATE_DETACHED 1
31847 int detach = PTHREAD_CREATE_DETACHED;
31849 #if HAVE_PTHREADS > 4
31850 /* Final pthreads */
31851 pthread_attr_t attr;
31853 status = pthread_attr_init(&attr);
31854 if( status ) return status;
31856 #if HAVE_PTHREADS < 7
31857 status = pthread_attr_setdetachstate(&attr, &detach);
31858 if( status < 0 ) status = errno;
31860 status = pthread_attr_setdetachstate(&attr, detach);
31862 if( status ) return status;
31863 status = pthread_create( &t, &attr, task, NULL );
31864 #if HAVE_PTHREADS < 7
31865 if( status < 0 ) status = errno;
31867 if( status ) return status;
31869 /* Draft 4 pthreads */
31870 status = pthread_create( &t, pthread_attr_default, task, NULL );
31871 if( status ) return errno;
31873 /* give thread a chance to complete */
31874 /* it should remain joinable and hence detachable */
31877 status = pthread_detach( &t );
31878 if( status ) return errno;
31881 #ifdef HAVE_LINUX_THREADS
31882 pthread_kill_other_threads_np();
31891 rm -f conftest.$ac_objext conftest$ac_exeext
31892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31893 (eval $ac_link) 2>conftest.er1
31895 grep -v '^ *+' conftest.er1 >conftest.err
31897 cat conftest.err >&5
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } &&
31900 { ac_try='test -z "$ac_c_werror_flag"
31901 || test ! -s conftest.err'
31902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903 (eval $ac_try) 2>&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; } &&
31907 { ac_try='test -s conftest$ac_exeext'
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; }; then
31913 ol_cv_pthread_thread=yes
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31918 ol_cv_pthread_thread=no
31920 rm -f conftest.err conftest.$ac_objext \
31921 conftest$ac_exeext conftest.$ac_ext
31923 cat >conftest.$ac_ext <<_ACEOF
31926 cat confdefs.h >>conftest.$ac_ext
31927 cat >>conftest.$ac_ext <<_ACEOF
31928 /* end confdefs.h. */
31930 /* pthread test headers */
31931 #include <pthread.h>
31932 #if HAVE_PTHREADS < 7
31936 #define NULL (void*)0
31939 static void *task(p)
31942 return (void *) (p == NULL);
31946 int main(argc, argv)
31951 /* pthread test function */
31952 #ifndef PTHREAD_CREATE_DETACHED
31953 #define PTHREAD_CREATE_DETACHED 1
31957 int detach = PTHREAD_CREATE_DETACHED;
31959 #if HAVE_PTHREADS > 4
31960 /* Final pthreads */
31961 pthread_attr_t attr;
31963 status = pthread_attr_init(&attr);
31964 if( status ) return status;
31966 #if HAVE_PTHREADS < 7
31967 status = pthread_attr_setdetachstate(&attr, &detach);
31968 if( status < 0 ) status = errno;
31970 status = pthread_attr_setdetachstate(&attr, detach);
31972 if( status ) return status;
31973 status = pthread_create( &t, &attr, task, NULL );
31974 #if HAVE_PTHREADS < 7
31975 if( status < 0 ) status = errno;
31977 if( status ) return status;
31979 /* Draft 4 pthreads */
31980 status = pthread_create( &t, pthread_attr_default, task, NULL );
31981 if( status ) return errno;
31983 /* give thread a chance to complete */
31984 /* it should remain joinable and hence detachable */
31987 status = pthread_detach( &t );
31988 if( status ) return errno;
31991 #ifdef HAVE_LINUX_THREADS
31992 pthread_kill_other_threads_np();
32000 rm -f conftest$ac_exeext
32001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32002 (eval $ac_link) 2>&5
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007 (eval $ac_try) 2>&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); }; }; then
32011 ol_cv_pthread_thread=yes
32013 echo "$as_me: program exited with status $ac_status" >&5
32014 echo "$as_me: failed program was:" >&5
32015 sed 's/^/| /' conftest.$ac_ext >&5
32017 ( exit $ac_status )
32018 ol_cv_pthread_thread=no
32020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32027 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
32028 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
32030 if test $ol_cv_pthread_thread = yes ; then
32031 ol_link_pthreads="-thread"
32032 ol_link_threads=posix
32037 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
32038 if test "$ol_link_threads" = no ; then
32039 # try -lpthread -lmach -lexc -lc_r
32040 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
32041 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
32042 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
32043 echo $ECHO_N "(cached) $ECHO_C" >&6
32048 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
32050 if test "$cross_compiling" = yes; then
32051 cat >conftest.$ac_ext <<_ACEOF
32054 cat confdefs.h >>conftest.$ac_ext
32055 cat >>conftest.$ac_ext <<_ACEOF
32056 /* end confdefs.h. */
32058 /* pthread test headers */
32059 #include <pthread.h>
32060 #if HAVE_PTHREADS < 7
32064 #define NULL (void*)0
32067 static void *task(p)
32070 return (void *) (p == NULL);
32077 /* pthread test function */
32078 #ifndef PTHREAD_CREATE_DETACHED
32079 #define PTHREAD_CREATE_DETACHED 1
32083 int detach = PTHREAD_CREATE_DETACHED;
32085 #if HAVE_PTHREADS > 4
32086 /* Final pthreads */
32087 pthread_attr_t attr;
32089 status = pthread_attr_init(&attr);
32090 if( status ) return status;
32092 #if HAVE_PTHREADS < 7
32093 status = pthread_attr_setdetachstate(&attr, &detach);
32094 if( status < 0 ) status = errno;
32096 status = pthread_attr_setdetachstate(&attr, detach);
32098 if( status ) return status;
32099 status = pthread_create( &t, &attr, task, NULL );
32100 #if HAVE_PTHREADS < 7
32101 if( status < 0 ) status = errno;
32103 if( status ) return status;
32105 /* Draft 4 pthreads */
32106 status = pthread_create( &t, pthread_attr_default, task, NULL );
32107 if( status ) return errno;
32109 /* give thread a chance to complete */
32110 /* it should remain joinable and hence detachable */
32113 status = pthread_detach( &t );
32114 if( status ) return errno;
32117 #ifdef HAVE_LINUX_THREADS
32118 pthread_kill_other_threads_np();
32127 rm -f conftest.$ac_objext conftest$ac_exeext
32128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32129 (eval $ac_link) 2>conftest.er1
32131 grep -v '^ *+' conftest.er1 >conftest.err
32133 cat conftest.err >&5
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); } &&
32136 { ac_try='test -z "$ac_c_werror_flag"
32137 || test ! -s conftest.err'
32138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32139 (eval $ac_try) 2>&5
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); }; } &&
32143 { ac_try='test -s conftest$ac_exeext'
32144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145 (eval $ac_try) 2>&5
32147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148 (exit $ac_status); }; }; then
32149 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32151 echo "$as_me: failed program was:" >&5
32152 sed 's/^/| /' conftest.$ac_ext >&5
32154 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32156 rm -f conftest.err conftest.$ac_objext \
32157 conftest$ac_exeext conftest.$ac_ext
32159 cat >conftest.$ac_ext <<_ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h. */
32166 /* pthread test headers */
32167 #include <pthread.h>
32168 #if HAVE_PTHREADS < 7
32172 #define NULL (void*)0
32175 static void *task(p)
32178 return (void *) (p == NULL);
32182 int main(argc, argv)
32187 /* pthread test function */
32188 #ifndef PTHREAD_CREATE_DETACHED
32189 #define PTHREAD_CREATE_DETACHED 1
32193 int detach = PTHREAD_CREATE_DETACHED;
32195 #if HAVE_PTHREADS > 4
32196 /* Final pthreads */
32197 pthread_attr_t attr;
32199 status = pthread_attr_init(&attr);
32200 if( status ) return status;
32202 #if HAVE_PTHREADS < 7
32203 status = pthread_attr_setdetachstate(&attr, &detach);
32204 if( status < 0 ) status = errno;
32206 status = pthread_attr_setdetachstate(&attr, detach);
32208 if( status ) return status;
32209 status = pthread_create( &t, &attr, task, NULL );
32210 #if HAVE_PTHREADS < 7
32211 if( status < 0 ) status = errno;
32213 if( status ) return status;
32215 /* Draft 4 pthreads */
32216 status = pthread_create( &t, pthread_attr_default, task, NULL );
32217 if( status ) return errno;
32219 /* give thread a chance to complete */
32220 /* it should remain joinable and hence detachable */
32223 status = pthread_detach( &t );
32224 if( status ) return errno;
32227 #ifdef HAVE_LINUX_THREADS
32228 pthread_kill_other_threads_np();
32236 rm -f conftest$ac_exeext
32237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32238 (eval $ac_link) 2>&5
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32243 (eval $ac_try) 2>&5
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); }; }; then
32247 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32249 echo "$as_me: program exited with status $ac_status" >&5
32250 echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32253 ( exit $ac_status )
32254 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32263 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32264 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32266 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32267 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32268 ol_link_threads=posix
32272 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32273 if test "$ol_link_threads" = no ; then
32274 # try -lpthread -lmach -lexc
32275 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32276 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32277 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32278 echo $ECHO_N "(cached) $ECHO_C" >&6
32283 LIBS="-lpthread -lmach -lexc $LIBS"
32285 if test "$cross_compiling" = yes; then
32286 cat >conftest.$ac_ext <<_ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h. */
32293 /* pthread test headers */
32294 #include <pthread.h>
32295 #if HAVE_PTHREADS < 7
32299 #define NULL (void*)0
32302 static void *task(p)
32305 return (void *) (p == NULL);
32312 /* pthread test function */
32313 #ifndef PTHREAD_CREATE_DETACHED
32314 #define PTHREAD_CREATE_DETACHED 1
32318 int detach = PTHREAD_CREATE_DETACHED;
32320 #if HAVE_PTHREADS > 4
32321 /* Final pthreads */
32322 pthread_attr_t attr;
32324 status = pthread_attr_init(&attr);
32325 if( status ) return status;
32327 #if HAVE_PTHREADS < 7
32328 status = pthread_attr_setdetachstate(&attr, &detach);
32329 if( status < 0 ) status = errno;
32331 status = pthread_attr_setdetachstate(&attr, detach);
32333 if( status ) return status;
32334 status = pthread_create( &t, &attr, task, NULL );
32335 #if HAVE_PTHREADS < 7
32336 if( status < 0 ) status = errno;
32338 if( status ) return status;
32340 /* Draft 4 pthreads */
32341 status = pthread_create( &t, pthread_attr_default, task, NULL );
32342 if( status ) return errno;
32344 /* give thread a chance to complete */
32345 /* it should remain joinable and hence detachable */
32348 status = pthread_detach( &t );
32349 if( status ) return errno;
32352 #ifdef HAVE_LINUX_THREADS
32353 pthread_kill_other_threads_np();
32362 rm -f conftest.$ac_objext conftest$ac_exeext
32363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32364 (eval $ac_link) 2>conftest.er1
32366 grep -v '^ *+' conftest.er1 >conftest.err
32368 cat conftest.err >&5
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); } &&
32371 { ac_try='test -z "$ac_c_werror_flag"
32372 || test ! -s conftest.err'
32373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32374 (eval $ac_try) 2>&5
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; } &&
32378 { ac_try='test -s conftest$ac_exeext'
32379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32380 (eval $ac_try) 2>&5
32382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383 (exit $ac_status); }; }; then
32384 ol_cv_pthread_lpthread_lmach_lexc=yes
32386 echo "$as_me: failed program was:" >&5
32387 sed 's/^/| /' conftest.$ac_ext >&5
32389 ol_cv_pthread_lpthread_lmach_lexc=no
32391 rm -f conftest.err conftest.$ac_objext \
32392 conftest$ac_exeext conftest.$ac_ext
32394 cat >conftest.$ac_ext <<_ACEOF
32397 cat confdefs.h >>conftest.$ac_ext
32398 cat >>conftest.$ac_ext <<_ACEOF
32399 /* end confdefs.h. */
32401 /* pthread test headers */
32402 #include <pthread.h>
32403 #if HAVE_PTHREADS < 7
32407 #define NULL (void*)0
32410 static void *task(p)
32413 return (void *) (p == NULL);
32417 int main(argc, argv)
32422 /* pthread test function */
32423 #ifndef PTHREAD_CREATE_DETACHED
32424 #define PTHREAD_CREATE_DETACHED 1
32428 int detach = PTHREAD_CREATE_DETACHED;
32430 #if HAVE_PTHREADS > 4
32431 /* Final pthreads */
32432 pthread_attr_t attr;
32434 status = pthread_attr_init(&attr);
32435 if( status ) return status;
32437 #if HAVE_PTHREADS < 7
32438 status = pthread_attr_setdetachstate(&attr, &detach);
32439 if( status < 0 ) status = errno;
32441 status = pthread_attr_setdetachstate(&attr, detach);
32443 if( status ) return status;
32444 status = pthread_create( &t, &attr, task, NULL );
32445 #if HAVE_PTHREADS < 7
32446 if( status < 0 ) status = errno;
32448 if( status ) return status;
32450 /* Draft 4 pthreads */
32451 status = pthread_create( &t, pthread_attr_default, task, NULL );
32452 if( status ) return errno;
32454 /* give thread a chance to complete */
32455 /* it should remain joinable and hence detachable */
32458 status = pthread_detach( &t );
32459 if( status ) return errno;
32462 #ifdef HAVE_LINUX_THREADS
32463 pthread_kill_other_threads_np();
32471 rm -f conftest$ac_exeext
32472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32473 (eval $ac_link) 2>&5
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478 (eval $ac_try) 2>&5
32480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481 (exit $ac_status); }; }; then
32482 ol_cv_pthread_lpthread_lmach_lexc=yes
32484 echo "$as_me: program exited with status $ac_status" >&5
32485 echo "$as_me: failed program was:" >&5
32486 sed 's/^/| /' conftest.$ac_ext >&5
32488 ( exit $ac_status )
32489 ol_cv_pthread_lpthread_lmach_lexc=no
32491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32498 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32499 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32501 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32502 ol_link_pthreads="-lpthread -lmach -lexc"
32503 ol_link_threads=posix
32508 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32509 if test "$ol_link_threads" = no ; then
32510 # try -lpthread -Wl,-woff,85
32511 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32512 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32513 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32514 echo $ECHO_N "(cached) $ECHO_C" >&6
32519 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32521 if test "$cross_compiling" = yes; then
32522 cat >conftest.$ac_ext <<_ACEOF
32525 cat confdefs.h >>conftest.$ac_ext
32526 cat >>conftest.$ac_ext <<_ACEOF
32527 /* end confdefs.h. */
32529 /* pthread test headers */
32530 #include <pthread.h>
32531 #if HAVE_PTHREADS < 7
32535 #define NULL (void*)0
32538 static void *task(p)
32541 return (void *) (p == NULL);
32548 /* pthread test function */
32549 #ifndef PTHREAD_CREATE_DETACHED
32550 #define PTHREAD_CREATE_DETACHED 1
32554 int detach = PTHREAD_CREATE_DETACHED;
32556 #if HAVE_PTHREADS > 4
32557 /* Final pthreads */
32558 pthread_attr_t attr;
32560 status = pthread_attr_init(&attr);
32561 if( status ) return status;
32563 #if HAVE_PTHREADS < 7
32564 status = pthread_attr_setdetachstate(&attr, &detach);
32565 if( status < 0 ) status = errno;
32567 status = pthread_attr_setdetachstate(&attr, detach);
32569 if( status ) return status;
32570 status = pthread_create( &t, &attr, task, NULL );
32571 #if HAVE_PTHREADS < 7
32572 if( status < 0 ) status = errno;
32574 if( status ) return status;
32576 /* Draft 4 pthreads */
32577 status = pthread_create( &t, pthread_attr_default, task, NULL );
32578 if( status ) return errno;
32580 /* give thread a chance to complete */
32581 /* it should remain joinable and hence detachable */
32584 status = pthread_detach( &t );
32585 if( status ) return errno;
32588 #ifdef HAVE_LINUX_THREADS
32589 pthread_kill_other_threads_np();
32598 rm -f conftest.$ac_objext conftest$ac_exeext
32599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32600 (eval $ac_link) 2>conftest.er1
32602 grep -v '^ *+' conftest.er1 >conftest.err
32604 cat conftest.err >&5
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); } &&
32607 { ac_try='test -z "$ac_c_werror_flag"
32608 || test ! -s conftest.err'
32609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610 (eval $ac_try) 2>&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest$ac_exeext'
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; }; then
32620 ol_cv_pthread_lib_lpthread_woff=yes
32622 echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32625 ol_cv_pthread_lib_lpthread_woff=no
32627 rm -f conftest.err conftest.$ac_objext \
32628 conftest$ac_exeext conftest.$ac_ext
32630 cat >conftest.$ac_ext <<_ACEOF
32633 cat confdefs.h >>conftest.$ac_ext
32634 cat >>conftest.$ac_ext <<_ACEOF
32635 /* end confdefs.h. */
32637 /* pthread test headers */
32638 #include <pthread.h>
32639 #if HAVE_PTHREADS < 7
32643 #define NULL (void*)0
32646 static void *task(p)
32649 return (void *) (p == NULL);
32653 int main(argc, argv)
32658 /* pthread test function */
32659 #ifndef PTHREAD_CREATE_DETACHED
32660 #define PTHREAD_CREATE_DETACHED 1
32664 int detach = PTHREAD_CREATE_DETACHED;
32666 #if HAVE_PTHREADS > 4
32667 /* Final pthreads */
32668 pthread_attr_t attr;
32670 status = pthread_attr_init(&attr);
32671 if( status ) return status;
32673 #if HAVE_PTHREADS < 7
32674 status = pthread_attr_setdetachstate(&attr, &detach);
32675 if( status < 0 ) status = errno;
32677 status = pthread_attr_setdetachstate(&attr, detach);
32679 if( status ) return status;
32680 status = pthread_create( &t, &attr, task, NULL );
32681 #if HAVE_PTHREADS < 7
32682 if( status < 0 ) status = errno;
32684 if( status ) return status;
32686 /* Draft 4 pthreads */
32687 status = pthread_create( &t, pthread_attr_default, task, NULL );
32688 if( status ) return errno;
32690 /* give thread a chance to complete */
32691 /* it should remain joinable and hence detachable */
32694 status = pthread_detach( &t );
32695 if( status ) return errno;
32698 #ifdef HAVE_LINUX_THREADS
32699 pthread_kill_other_threads_np();
32707 rm -f conftest$ac_exeext
32708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32709 (eval $ac_link) 2>&5
32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714 (eval $ac_try) 2>&5
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); }; }; then
32718 ol_cv_pthread_lib_lpthread_woff=yes
32720 echo "$as_me: program exited with status $ac_status" >&5
32721 echo "$as_me: failed program was:" >&5
32722 sed 's/^/| /' conftest.$ac_ext >&5
32724 ( exit $ac_status )
32725 ol_cv_pthread_lib_lpthread_woff=no
32727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32734 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32735 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32737 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32738 ol_link_pthreads="-lpthread -Wl,-woff,85"
32739 ol_link_threads=posix
32744 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32745 if test "$ol_link_threads" = no ; then
32747 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32748 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32749 if test "${ol_cv_pthread_lpthread+set}" = set; then
32750 echo $ECHO_N "(cached) $ECHO_C" >&6
32755 LIBS="-lpthread $LIBS"
32757 if test "$cross_compiling" = yes; then
32758 cat >conftest.$ac_ext <<_ACEOF
32761 cat confdefs.h >>conftest.$ac_ext
32762 cat >>conftest.$ac_ext <<_ACEOF
32763 /* end confdefs.h. */
32765 /* pthread test headers */
32766 #include <pthread.h>
32767 #if HAVE_PTHREADS < 7
32771 #define NULL (void*)0
32774 static void *task(p)
32777 return (void *) (p == NULL);
32784 /* pthread test function */
32785 #ifndef PTHREAD_CREATE_DETACHED
32786 #define PTHREAD_CREATE_DETACHED 1
32790 int detach = PTHREAD_CREATE_DETACHED;
32792 #if HAVE_PTHREADS > 4
32793 /* Final pthreads */
32794 pthread_attr_t attr;
32796 status = pthread_attr_init(&attr);
32797 if( status ) return status;
32799 #if HAVE_PTHREADS < 7
32800 status = pthread_attr_setdetachstate(&attr, &detach);
32801 if( status < 0 ) status = errno;
32803 status = pthread_attr_setdetachstate(&attr, detach);
32805 if( status ) return status;
32806 status = pthread_create( &t, &attr, task, NULL );
32807 #if HAVE_PTHREADS < 7
32808 if( status < 0 ) status = errno;
32810 if( status ) return status;
32812 /* Draft 4 pthreads */
32813 status = pthread_create( &t, pthread_attr_default, task, NULL );
32814 if( status ) return errno;
32816 /* give thread a chance to complete */
32817 /* it should remain joinable and hence detachable */
32820 status = pthread_detach( &t );
32821 if( status ) return errno;
32824 #ifdef HAVE_LINUX_THREADS
32825 pthread_kill_other_threads_np();
32834 rm -f conftest.$ac_objext conftest$ac_exeext
32835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32836 (eval $ac_link) 2>conftest.er1
32838 grep -v '^ *+' conftest.er1 >conftest.err
32840 cat conftest.err >&5
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); } &&
32843 { ac_try='test -z "$ac_c_werror_flag"
32844 || test ! -s conftest.err'
32845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32846 (eval $ac_try) 2>&5
32848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849 (exit $ac_status); }; } &&
32850 { ac_try='test -s conftest$ac_exeext'
32851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32852 (eval $ac_try) 2>&5
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); }; }; then
32856 ol_cv_pthread_lpthread=yes
32858 echo "$as_me: failed program was:" >&5
32859 sed 's/^/| /' conftest.$ac_ext >&5
32861 ol_cv_pthread_lpthread=no
32863 rm -f conftest.err conftest.$ac_objext \
32864 conftest$ac_exeext conftest.$ac_ext
32866 cat >conftest.$ac_ext <<_ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h. */
32873 /* pthread test headers */
32874 #include <pthread.h>
32875 #if HAVE_PTHREADS < 7
32879 #define NULL (void*)0
32882 static void *task(p)
32885 return (void *) (p == NULL);
32889 int main(argc, argv)
32894 /* pthread test function */
32895 #ifndef PTHREAD_CREATE_DETACHED
32896 #define PTHREAD_CREATE_DETACHED 1
32900 int detach = PTHREAD_CREATE_DETACHED;
32902 #if HAVE_PTHREADS > 4
32903 /* Final pthreads */
32904 pthread_attr_t attr;
32906 status = pthread_attr_init(&attr);
32907 if( status ) return status;
32909 #if HAVE_PTHREADS < 7
32910 status = pthread_attr_setdetachstate(&attr, &detach);
32911 if( status < 0 ) status = errno;
32913 status = pthread_attr_setdetachstate(&attr, detach);
32915 if( status ) return status;
32916 status = pthread_create( &t, &attr, task, NULL );
32917 #if HAVE_PTHREADS < 7
32918 if( status < 0 ) status = errno;
32920 if( status ) return status;
32922 /* Draft 4 pthreads */
32923 status = pthread_create( &t, pthread_attr_default, task, NULL );
32924 if( status ) return errno;
32926 /* give thread a chance to complete */
32927 /* it should remain joinable and hence detachable */
32930 status = pthread_detach( &t );
32931 if( status ) return errno;
32934 #ifdef HAVE_LINUX_THREADS
32935 pthread_kill_other_threads_np();
32943 rm -f conftest$ac_exeext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32945 (eval $ac_link) 2>&5
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950 (eval $ac_try) 2>&5
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
32954 ol_cv_pthread_lpthread=yes
32956 echo "$as_me: program exited with status $ac_status" >&5
32957 echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32960 ( exit $ac_status )
32961 ol_cv_pthread_lpthread=no
32963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32970 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32971 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32973 if test $ol_cv_pthread_lpthread = yes ; then
32974 ol_link_pthreads="-lpthread"
32975 ol_link_threads=posix
32979 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32980 if test "$ol_link_threads" = no ; then
32982 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32983 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32984 if test "${ol_cv_pthread_lc_r+set}" = set; then
32985 echo $ECHO_N "(cached) $ECHO_C" >&6
32992 if test "$cross_compiling" = yes; then
32993 cat >conftest.$ac_ext <<_ACEOF
32996 cat confdefs.h >>conftest.$ac_ext
32997 cat >>conftest.$ac_ext <<_ACEOF
32998 /* end confdefs.h. */
33000 /* pthread test headers */
33001 #include <pthread.h>
33002 #if HAVE_PTHREADS < 7
33006 #define NULL (void*)0
33009 static void *task(p)
33012 return (void *) (p == NULL);
33019 /* pthread test function */
33020 #ifndef PTHREAD_CREATE_DETACHED
33021 #define PTHREAD_CREATE_DETACHED 1
33025 int detach = PTHREAD_CREATE_DETACHED;
33027 #if HAVE_PTHREADS > 4
33028 /* Final pthreads */
33029 pthread_attr_t attr;
33031 status = pthread_attr_init(&attr);
33032 if( status ) return status;
33034 #if HAVE_PTHREADS < 7
33035 status = pthread_attr_setdetachstate(&attr, &detach);
33036 if( status < 0 ) status = errno;
33038 status = pthread_attr_setdetachstate(&attr, detach);
33040 if( status ) return status;
33041 status = pthread_create( &t, &attr, task, NULL );
33042 #if HAVE_PTHREADS < 7
33043 if( status < 0 ) status = errno;
33045 if( status ) return status;
33047 /* Draft 4 pthreads */
33048 status = pthread_create( &t, pthread_attr_default, task, NULL );
33049 if( status ) return errno;
33051 /* give thread a chance to complete */
33052 /* it should remain joinable and hence detachable */
33055 status = pthread_detach( &t );
33056 if( status ) return errno;
33059 #ifdef HAVE_LINUX_THREADS
33060 pthread_kill_other_threads_np();
33069 rm -f conftest.$ac_objext conftest$ac_exeext
33070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33071 (eval $ac_link) 2>conftest.er1
33073 grep -v '^ *+' conftest.er1 >conftest.err
33075 cat conftest.err >&5
33076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077 (exit $ac_status); } &&
33078 { ac_try='test -z "$ac_c_werror_flag"
33079 || test ! -s conftest.err'
33080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081 (eval $ac_try) 2>&5
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); }; } &&
33085 { ac_try='test -s conftest$ac_exeext'
33086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087 (eval $ac_try) 2>&5
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; }; then
33091 ol_cv_pthread_lc_r=yes
33093 echo "$as_me: failed program was:" >&5
33094 sed 's/^/| /' conftest.$ac_ext >&5
33096 ol_cv_pthread_lc_r=no
33098 rm -f conftest.err conftest.$ac_objext \
33099 conftest$ac_exeext conftest.$ac_ext
33101 cat >conftest.$ac_ext <<_ACEOF
33104 cat confdefs.h >>conftest.$ac_ext
33105 cat >>conftest.$ac_ext <<_ACEOF
33106 /* end confdefs.h. */
33108 /* pthread test headers */
33109 #include <pthread.h>
33110 #if HAVE_PTHREADS < 7
33114 #define NULL (void*)0
33117 static void *task(p)
33120 return (void *) (p == NULL);
33124 int main(argc, argv)
33129 /* pthread test function */
33130 #ifndef PTHREAD_CREATE_DETACHED
33131 #define PTHREAD_CREATE_DETACHED 1
33135 int detach = PTHREAD_CREATE_DETACHED;
33137 #if HAVE_PTHREADS > 4
33138 /* Final pthreads */
33139 pthread_attr_t attr;
33141 status = pthread_attr_init(&attr);
33142 if( status ) return status;
33144 #if HAVE_PTHREADS < 7
33145 status = pthread_attr_setdetachstate(&attr, &detach);
33146 if( status < 0 ) status = errno;
33148 status = pthread_attr_setdetachstate(&attr, detach);
33150 if( status ) return status;
33151 status = pthread_create( &t, &attr, task, NULL );
33152 #if HAVE_PTHREADS < 7
33153 if( status < 0 ) status = errno;
33155 if( status ) return status;
33157 /* Draft 4 pthreads */
33158 status = pthread_create( &t, pthread_attr_default, task, NULL );
33159 if( status ) return errno;
33161 /* give thread a chance to complete */
33162 /* it should remain joinable and hence detachable */
33165 status = pthread_detach( &t );
33166 if( status ) return errno;
33169 #ifdef HAVE_LINUX_THREADS
33170 pthread_kill_other_threads_np();
33178 rm -f conftest$ac_exeext
33179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33180 (eval $ac_link) 2>&5
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33185 (eval $ac_try) 2>&5
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); }; }; then
33189 ol_cv_pthread_lc_r=yes
33191 echo "$as_me: program exited with status $ac_status" >&5
33192 echo "$as_me: failed program was:" >&5
33193 sed 's/^/| /' conftest.$ac_ext >&5
33195 ( exit $ac_status )
33196 ol_cv_pthread_lc_r=no
33198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33205 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33206 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33208 if test $ol_cv_pthread_lc_r = yes ; then
33209 ol_link_pthreads="-lc_r"
33210 ol_link_threads=posix
33215 # Pthread try link: -threads (ol_cv_pthread_threads)
33216 if test "$ol_link_threads" = no ; then
33218 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33219 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33220 if test "${ol_cv_pthread_threads+set}" = set; then
33221 echo $ECHO_N "(cached) $ECHO_C" >&6
33226 LIBS="-threads $LIBS"
33228 if test "$cross_compiling" = yes; then
33229 cat >conftest.$ac_ext <<_ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h. */
33236 /* pthread test headers */
33237 #include <pthread.h>
33238 #if HAVE_PTHREADS < 7
33242 #define NULL (void*)0
33245 static void *task(p)
33248 return (void *) (p == NULL);
33255 /* pthread test function */
33256 #ifndef PTHREAD_CREATE_DETACHED
33257 #define PTHREAD_CREATE_DETACHED 1
33261 int detach = PTHREAD_CREATE_DETACHED;
33263 #if HAVE_PTHREADS > 4
33264 /* Final pthreads */
33265 pthread_attr_t attr;
33267 status = pthread_attr_init(&attr);
33268 if( status ) return status;
33270 #if HAVE_PTHREADS < 7
33271 status = pthread_attr_setdetachstate(&attr, &detach);
33272 if( status < 0 ) status = errno;
33274 status = pthread_attr_setdetachstate(&attr, detach);
33276 if( status ) return status;
33277 status = pthread_create( &t, &attr, task, NULL );
33278 #if HAVE_PTHREADS < 7
33279 if( status < 0 ) status = errno;
33281 if( status ) return status;
33283 /* Draft 4 pthreads */
33284 status = pthread_create( &t, pthread_attr_default, task, NULL );
33285 if( status ) return errno;
33287 /* give thread a chance to complete */
33288 /* it should remain joinable and hence detachable */
33291 status = pthread_detach( &t );
33292 if( status ) return errno;
33295 #ifdef HAVE_LINUX_THREADS
33296 pthread_kill_other_threads_np();
33305 rm -f conftest.$ac_objext conftest$ac_exeext
33306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33307 (eval $ac_link) 2>conftest.er1
33309 grep -v '^ *+' conftest.er1 >conftest.err
33311 cat conftest.err >&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } &&
33314 { ac_try='test -z "$ac_c_werror_flag"
33315 || test ! -s conftest.err'
33316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33317 (eval $ac_try) 2>&5
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); }; } &&
33321 { ac_try='test -s conftest$ac_exeext'
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; }; then
33327 ol_cv_pthread_threads=yes
33329 echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33332 ol_cv_pthread_threads=no
33334 rm -f conftest.err conftest.$ac_objext \
33335 conftest$ac_exeext conftest.$ac_ext
33337 cat >conftest.$ac_ext <<_ACEOF
33340 cat confdefs.h >>conftest.$ac_ext
33341 cat >>conftest.$ac_ext <<_ACEOF
33342 /* end confdefs.h. */
33344 /* pthread test headers */
33345 #include <pthread.h>
33346 #if HAVE_PTHREADS < 7
33350 #define NULL (void*)0
33353 static void *task(p)
33356 return (void *) (p == NULL);
33360 int main(argc, argv)
33365 /* pthread test function */
33366 #ifndef PTHREAD_CREATE_DETACHED
33367 #define PTHREAD_CREATE_DETACHED 1
33371 int detach = PTHREAD_CREATE_DETACHED;
33373 #if HAVE_PTHREADS > 4
33374 /* Final pthreads */
33375 pthread_attr_t attr;
33377 status = pthread_attr_init(&attr);
33378 if( status ) return status;
33380 #if HAVE_PTHREADS < 7
33381 status = pthread_attr_setdetachstate(&attr, &detach);
33382 if( status < 0 ) status = errno;
33384 status = pthread_attr_setdetachstate(&attr, detach);
33386 if( status ) return status;
33387 status = pthread_create( &t, &attr, task, NULL );
33388 #if HAVE_PTHREADS < 7
33389 if( status < 0 ) status = errno;
33391 if( status ) return status;
33393 /* Draft 4 pthreads */
33394 status = pthread_create( &t, pthread_attr_default, task, NULL );
33395 if( status ) return errno;
33397 /* give thread a chance to complete */
33398 /* it should remain joinable and hence detachable */
33401 status = pthread_detach( &t );
33402 if( status ) return errno;
33405 #ifdef HAVE_LINUX_THREADS
33406 pthread_kill_other_threads_np();
33414 rm -f conftest$ac_exeext
33415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33416 (eval $ac_link) 2>&5
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33421 (eval $ac_try) 2>&5
33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424 (exit $ac_status); }; }; then
33425 ol_cv_pthread_threads=yes
33427 echo "$as_me: program exited with status $ac_status" >&5
33428 echo "$as_me: failed program was:" >&5
33429 sed 's/^/| /' conftest.$ac_ext >&5
33431 ( exit $ac_status )
33432 ol_cv_pthread_threads=no
33434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33441 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33442 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33444 if test $ol_cv_pthread_threads = yes ; then
33445 ol_link_pthreads="-threads"
33446 ol_link_threads=posix
33451 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33452 if test "$ol_link_threads" = no ; then
33453 # try -lpthreads -lmach -lexc -lc_r
33454 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33455 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33456 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33457 echo $ECHO_N "(cached) $ECHO_C" >&6
33462 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33464 if test "$cross_compiling" = yes; then
33465 cat >conftest.$ac_ext <<_ACEOF
33468 cat confdefs.h >>conftest.$ac_ext
33469 cat >>conftest.$ac_ext <<_ACEOF
33470 /* end confdefs.h. */
33472 /* pthread test headers */
33473 #include <pthread.h>
33474 #if HAVE_PTHREADS < 7
33478 #define NULL (void*)0
33481 static void *task(p)
33484 return (void *) (p == NULL);
33491 /* pthread test function */
33492 #ifndef PTHREAD_CREATE_DETACHED
33493 #define PTHREAD_CREATE_DETACHED 1
33497 int detach = PTHREAD_CREATE_DETACHED;
33499 #if HAVE_PTHREADS > 4
33500 /* Final pthreads */
33501 pthread_attr_t attr;
33503 status = pthread_attr_init(&attr);
33504 if( status ) return status;
33506 #if HAVE_PTHREADS < 7
33507 status = pthread_attr_setdetachstate(&attr, &detach);
33508 if( status < 0 ) status = errno;
33510 status = pthread_attr_setdetachstate(&attr, detach);
33512 if( status ) return status;
33513 status = pthread_create( &t, &attr, task, NULL );
33514 #if HAVE_PTHREADS < 7
33515 if( status < 0 ) status = errno;
33517 if( status ) return status;
33519 /* Draft 4 pthreads */
33520 status = pthread_create( &t, pthread_attr_default, task, NULL );
33521 if( status ) return errno;
33523 /* give thread a chance to complete */
33524 /* it should remain joinable and hence detachable */
33527 status = pthread_detach( &t );
33528 if( status ) return errno;
33531 #ifdef HAVE_LINUX_THREADS
33532 pthread_kill_other_threads_np();
33541 rm -f conftest.$ac_objext conftest$ac_exeext
33542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33543 (eval $ac_link) 2>conftest.er1
33545 grep -v '^ *+' conftest.er1 >conftest.err
33547 cat conftest.err >&5
33548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33549 (exit $ac_status); } &&
33550 { ac_try='test -z "$ac_c_werror_flag"
33551 || test ! -s conftest.err'
33552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33553 (eval $ac_try) 2>&5
33555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556 (exit $ac_status); }; } &&
33557 { ac_try='test -s conftest$ac_exeext'
33558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33559 (eval $ac_try) 2>&5
33561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562 (exit $ac_status); }; }; then
33563 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33565 echo "$as_me: failed program was:" >&5
33566 sed 's/^/| /' conftest.$ac_ext >&5
33568 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33570 rm -f conftest.err conftest.$ac_objext \
33571 conftest$ac_exeext conftest.$ac_ext
33573 cat >conftest.$ac_ext <<_ACEOF
33576 cat confdefs.h >>conftest.$ac_ext
33577 cat >>conftest.$ac_ext <<_ACEOF
33578 /* end confdefs.h. */
33580 /* pthread test headers */
33581 #include <pthread.h>
33582 #if HAVE_PTHREADS < 7
33586 #define NULL (void*)0
33589 static void *task(p)
33592 return (void *) (p == NULL);
33596 int main(argc, argv)
33601 /* pthread test function */
33602 #ifndef PTHREAD_CREATE_DETACHED
33603 #define PTHREAD_CREATE_DETACHED 1
33607 int detach = PTHREAD_CREATE_DETACHED;
33609 #if HAVE_PTHREADS > 4
33610 /* Final pthreads */
33611 pthread_attr_t attr;
33613 status = pthread_attr_init(&attr);
33614 if( status ) return status;
33616 #if HAVE_PTHREADS < 7
33617 status = pthread_attr_setdetachstate(&attr, &detach);
33618 if( status < 0 ) status = errno;
33620 status = pthread_attr_setdetachstate(&attr, detach);
33622 if( status ) return status;
33623 status = pthread_create( &t, &attr, task, NULL );
33624 #if HAVE_PTHREADS < 7
33625 if( status < 0 ) status = errno;
33627 if( status ) return status;
33629 /* Draft 4 pthreads */
33630 status = pthread_create( &t, pthread_attr_default, task, NULL );
33631 if( status ) return errno;
33633 /* give thread a chance to complete */
33634 /* it should remain joinable and hence detachable */
33637 status = pthread_detach( &t );
33638 if( status ) return errno;
33641 #ifdef HAVE_LINUX_THREADS
33642 pthread_kill_other_threads_np();
33650 rm -f conftest$ac_exeext
33651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33652 (eval $ac_link) 2>&5
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
33661 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33663 echo "$as_me: program exited with status $ac_status" >&5
33664 echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33667 ( exit $ac_status )
33668 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33677 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33678 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33680 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33681 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33682 ol_link_threads=posix
33686 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33687 if test "$ol_link_threads" = no ; then
33688 # try -lpthreads -lmach -lexc
33689 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33690 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33691 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33692 echo $ECHO_N "(cached) $ECHO_C" >&6
33697 LIBS="-lpthreads -lmach -lexc $LIBS"
33699 if test "$cross_compiling" = yes; then
33700 cat >conftest.$ac_ext <<_ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h. */
33707 /* pthread test headers */
33708 #include <pthread.h>
33709 #if HAVE_PTHREADS < 7
33713 #define NULL (void*)0
33716 static void *task(p)
33719 return (void *) (p == NULL);
33726 /* pthread test function */
33727 #ifndef PTHREAD_CREATE_DETACHED
33728 #define PTHREAD_CREATE_DETACHED 1
33732 int detach = PTHREAD_CREATE_DETACHED;
33734 #if HAVE_PTHREADS > 4
33735 /* Final pthreads */
33736 pthread_attr_t attr;
33738 status = pthread_attr_init(&attr);
33739 if( status ) return status;
33741 #if HAVE_PTHREADS < 7
33742 status = pthread_attr_setdetachstate(&attr, &detach);
33743 if( status < 0 ) status = errno;
33745 status = pthread_attr_setdetachstate(&attr, detach);
33747 if( status ) return status;
33748 status = pthread_create( &t, &attr, task, NULL );
33749 #if HAVE_PTHREADS < 7
33750 if( status < 0 ) status = errno;
33752 if( status ) return status;
33754 /* Draft 4 pthreads */
33755 status = pthread_create( &t, pthread_attr_default, task, NULL );
33756 if( status ) return errno;
33758 /* give thread a chance to complete */
33759 /* it should remain joinable and hence detachable */
33762 status = pthread_detach( &t );
33763 if( status ) return errno;
33766 #ifdef HAVE_LINUX_THREADS
33767 pthread_kill_other_threads_np();
33776 rm -f conftest.$ac_objext conftest$ac_exeext
33777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33778 (eval $ac_link) 2>conftest.er1
33780 grep -v '^ *+' conftest.er1 >conftest.err
33782 cat conftest.err >&5
33783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784 (exit $ac_status); } &&
33785 { ac_try='test -z "$ac_c_werror_flag"
33786 || test ! -s conftest.err'
33787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33788 (eval $ac_try) 2>&5
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); }; } &&
33792 { ac_try='test -s conftest$ac_exeext'
33793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33794 (eval $ac_try) 2>&5
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); }; }; then
33798 ol_cv_pthread_lpthreads_lmach_lexc=yes
33800 echo "$as_me: failed program was:" >&5
33801 sed 's/^/| /' conftest.$ac_ext >&5
33803 ol_cv_pthread_lpthreads_lmach_lexc=no
33805 rm -f conftest.err conftest.$ac_objext \
33806 conftest$ac_exeext conftest.$ac_ext
33808 cat >conftest.$ac_ext <<_ACEOF
33811 cat confdefs.h >>conftest.$ac_ext
33812 cat >>conftest.$ac_ext <<_ACEOF
33813 /* end confdefs.h. */
33815 /* pthread test headers */
33816 #include <pthread.h>
33817 #if HAVE_PTHREADS < 7
33821 #define NULL (void*)0
33824 static void *task(p)
33827 return (void *) (p == NULL);
33831 int main(argc, argv)
33836 /* pthread test function */
33837 #ifndef PTHREAD_CREATE_DETACHED
33838 #define PTHREAD_CREATE_DETACHED 1
33842 int detach = PTHREAD_CREATE_DETACHED;
33844 #if HAVE_PTHREADS > 4
33845 /* Final pthreads */
33846 pthread_attr_t attr;
33848 status = pthread_attr_init(&attr);
33849 if( status ) return status;
33851 #if HAVE_PTHREADS < 7
33852 status = pthread_attr_setdetachstate(&attr, &detach);
33853 if( status < 0 ) status = errno;
33855 status = pthread_attr_setdetachstate(&attr, detach);
33857 if( status ) return status;
33858 status = pthread_create( &t, &attr, task, NULL );
33859 #if HAVE_PTHREADS < 7
33860 if( status < 0 ) status = errno;
33862 if( status ) return status;
33864 /* Draft 4 pthreads */
33865 status = pthread_create( &t, pthread_attr_default, task, NULL );
33866 if( status ) return errno;
33868 /* give thread a chance to complete */
33869 /* it should remain joinable and hence detachable */
33872 status = pthread_detach( &t );
33873 if( status ) return errno;
33876 #ifdef HAVE_LINUX_THREADS
33877 pthread_kill_other_threads_np();
33885 rm -f conftest$ac_exeext
33886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33887 (eval $ac_link) 2>&5
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33892 (eval $ac_try) 2>&5
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); }; }; then
33896 ol_cv_pthread_lpthreads_lmach_lexc=yes
33898 echo "$as_me: program exited with status $ac_status" >&5
33899 echo "$as_me: failed program was:" >&5
33900 sed 's/^/| /' conftest.$ac_ext >&5
33902 ( exit $ac_status )
33903 ol_cv_pthread_lpthreads_lmach_lexc=no
33905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33912 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33913 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33915 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33916 ol_link_pthreads="-lpthreads -lmach -lexc"
33917 ol_link_threads=posix
33921 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33922 if test "$ol_link_threads" = no ; then
33923 # try -lpthreads -lexc
33924 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33925 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33926 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
33932 LIBS="-lpthreads -lexc $LIBS"
33934 if test "$cross_compiling" = yes; then
33935 cat >conftest.$ac_ext <<_ACEOF
33938 cat confdefs.h >>conftest.$ac_ext
33939 cat >>conftest.$ac_ext <<_ACEOF
33940 /* end confdefs.h. */
33942 /* pthread test headers */
33943 #include <pthread.h>
33944 #if HAVE_PTHREADS < 7
33948 #define NULL (void*)0
33951 static void *task(p)
33954 return (void *) (p == NULL);
33961 /* pthread test function */
33962 #ifndef PTHREAD_CREATE_DETACHED
33963 #define PTHREAD_CREATE_DETACHED 1
33967 int detach = PTHREAD_CREATE_DETACHED;
33969 #if HAVE_PTHREADS > 4
33970 /* Final pthreads */
33971 pthread_attr_t attr;
33973 status = pthread_attr_init(&attr);
33974 if( status ) return status;
33976 #if HAVE_PTHREADS < 7
33977 status = pthread_attr_setdetachstate(&attr, &detach);
33978 if( status < 0 ) status = errno;
33980 status = pthread_attr_setdetachstate(&attr, detach);
33982 if( status ) return status;
33983 status = pthread_create( &t, &attr, task, NULL );
33984 #if HAVE_PTHREADS < 7
33985 if( status < 0 ) status = errno;
33987 if( status ) return status;
33989 /* Draft 4 pthreads */
33990 status = pthread_create( &t, pthread_attr_default, task, NULL );
33991 if( status ) return errno;
33993 /* give thread a chance to complete */
33994 /* it should remain joinable and hence detachable */
33997 status = pthread_detach( &t );
33998 if( status ) return errno;
34001 #ifdef HAVE_LINUX_THREADS
34002 pthread_kill_other_threads_np();
34011 rm -f conftest.$ac_objext conftest$ac_exeext
34012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34013 (eval $ac_link) 2>conftest.er1
34015 grep -v '^ *+' conftest.er1 >conftest.err
34017 cat conftest.err >&5
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); } &&
34020 { ac_try='test -z "$ac_c_werror_flag"
34021 || test ! -s conftest.err'
34022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023 (eval $ac_try) 2>&5
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; } &&
34027 { ac_try='test -s conftest$ac_exeext'
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; }; then
34033 ol_cv_pthread_lpthreads_lexc=yes
34035 echo "$as_me: failed program was:" >&5
34036 sed 's/^/| /' conftest.$ac_ext >&5
34038 ol_cv_pthread_lpthreads_lexc=no
34040 rm -f conftest.err conftest.$ac_objext \
34041 conftest$ac_exeext conftest.$ac_ext
34043 cat >conftest.$ac_ext <<_ACEOF
34046 cat confdefs.h >>conftest.$ac_ext
34047 cat >>conftest.$ac_ext <<_ACEOF
34048 /* end confdefs.h. */
34050 /* pthread test headers */
34051 #include <pthread.h>
34052 #if HAVE_PTHREADS < 7
34056 #define NULL (void*)0
34059 static void *task(p)
34062 return (void *) (p == NULL);
34066 int main(argc, argv)
34071 /* pthread test function */
34072 #ifndef PTHREAD_CREATE_DETACHED
34073 #define PTHREAD_CREATE_DETACHED 1
34077 int detach = PTHREAD_CREATE_DETACHED;
34079 #if HAVE_PTHREADS > 4
34080 /* Final pthreads */
34081 pthread_attr_t attr;
34083 status = pthread_attr_init(&attr);
34084 if( status ) return status;
34086 #if HAVE_PTHREADS < 7
34087 status = pthread_attr_setdetachstate(&attr, &detach);
34088 if( status < 0 ) status = errno;
34090 status = pthread_attr_setdetachstate(&attr, detach);
34092 if( status ) return status;
34093 status = pthread_create( &t, &attr, task, NULL );
34094 #if HAVE_PTHREADS < 7
34095 if( status < 0 ) status = errno;
34097 if( status ) return status;
34099 /* Draft 4 pthreads */
34100 status = pthread_create( &t, pthread_attr_default, task, NULL );
34101 if( status ) return errno;
34103 /* give thread a chance to complete */
34104 /* it should remain joinable and hence detachable */
34107 status = pthread_detach( &t );
34108 if( status ) return errno;
34111 #ifdef HAVE_LINUX_THREADS
34112 pthread_kill_other_threads_np();
34120 rm -f conftest$ac_exeext
34121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34122 (eval $ac_link) 2>&5
34124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127 (eval $ac_try) 2>&5
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); }; }; then
34131 ol_cv_pthread_lpthreads_lexc=yes
34133 echo "$as_me: program exited with status $ac_status" >&5
34134 echo "$as_me: failed program was:" >&5
34135 sed 's/^/| /' conftest.$ac_ext >&5
34137 ( exit $ac_status )
34138 ol_cv_pthread_lpthreads_lexc=no
34140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34147 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
34148 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
34150 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
34151 ol_link_pthreads="-lpthreads -lexc"
34152 ol_link_threads=posix
34157 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
34158 if test "$ol_link_threads" = no ; then
34160 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
34161 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
34162 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
34163 echo $ECHO_N "(cached) $ECHO_C" >&6
34168 LIBS="-lpthreads $LIBS"
34170 if test "$cross_compiling" = yes; then
34171 cat >conftest.$ac_ext <<_ACEOF
34174 cat confdefs.h >>conftest.$ac_ext
34175 cat >>conftest.$ac_ext <<_ACEOF
34176 /* end confdefs.h. */
34178 /* pthread test headers */
34179 #include <pthread.h>
34180 #if HAVE_PTHREADS < 7
34184 #define NULL (void*)0
34187 static void *task(p)
34190 return (void *) (p == NULL);
34197 /* pthread test function */
34198 #ifndef PTHREAD_CREATE_DETACHED
34199 #define PTHREAD_CREATE_DETACHED 1
34203 int detach = PTHREAD_CREATE_DETACHED;
34205 #if HAVE_PTHREADS > 4
34206 /* Final pthreads */
34207 pthread_attr_t attr;
34209 status = pthread_attr_init(&attr);
34210 if( status ) return status;
34212 #if HAVE_PTHREADS < 7
34213 status = pthread_attr_setdetachstate(&attr, &detach);
34214 if( status < 0 ) status = errno;
34216 status = pthread_attr_setdetachstate(&attr, detach);
34218 if( status ) return status;
34219 status = pthread_create( &t, &attr, task, NULL );
34220 #if HAVE_PTHREADS < 7
34221 if( status < 0 ) status = errno;
34223 if( status ) return status;
34225 /* Draft 4 pthreads */
34226 status = pthread_create( &t, pthread_attr_default, task, NULL );
34227 if( status ) return errno;
34229 /* give thread a chance to complete */
34230 /* it should remain joinable and hence detachable */
34233 status = pthread_detach( &t );
34234 if( status ) return errno;
34237 #ifdef HAVE_LINUX_THREADS
34238 pthread_kill_other_threads_np();
34247 rm -f conftest.$ac_objext conftest$ac_exeext
34248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34249 (eval $ac_link) 2>conftest.er1
34251 grep -v '^ *+' conftest.er1 >conftest.err
34253 cat conftest.err >&5
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); } &&
34256 { ac_try='test -z "$ac_c_werror_flag"
34257 || test ! -s conftest.err'
34258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34259 (eval $ac_try) 2>&5
34261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262 (exit $ac_status); }; } &&
34263 { ac_try='test -s conftest$ac_exeext'
34264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34265 (eval $ac_try) 2>&5
34267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268 (exit $ac_status); }; }; then
34269 ol_cv_pthread_lib_lpthreads=yes
34271 echo "$as_me: failed program was:" >&5
34272 sed 's/^/| /' conftest.$ac_ext >&5
34274 ol_cv_pthread_lib_lpthreads=no
34276 rm -f conftest.err conftest.$ac_objext \
34277 conftest$ac_exeext conftest.$ac_ext
34279 cat >conftest.$ac_ext <<_ACEOF
34282 cat confdefs.h >>conftest.$ac_ext
34283 cat >>conftest.$ac_ext <<_ACEOF
34284 /* end confdefs.h. */
34286 /* pthread test headers */
34287 #include <pthread.h>
34288 #if HAVE_PTHREADS < 7
34292 #define NULL (void*)0
34295 static void *task(p)
34298 return (void *) (p == NULL);
34302 int main(argc, argv)
34307 /* pthread test function */
34308 #ifndef PTHREAD_CREATE_DETACHED
34309 #define PTHREAD_CREATE_DETACHED 1
34313 int detach = PTHREAD_CREATE_DETACHED;
34315 #if HAVE_PTHREADS > 4
34316 /* Final pthreads */
34317 pthread_attr_t attr;
34319 status = pthread_attr_init(&attr);
34320 if( status ) return status;
34322 #if HAVE_PTHREADS < 7
34323 status = pthread_attr_setdetachstate(&attr, &detach);
34324 if( status < 0 ) status = errno;
34326 status = pthread_attr_setdetachstate(&attr, detach);
34328 if( status ) return status;
34329 status = pthread_create( &t, &attr, task, NULL );
34330 #if HAVE_PTHREADS < 7
34331 if( status < 0 ) status = errno;
34333 if( status ) return status;
34335 /* Draft 4 pthreads */
34336 status = pthread_create( &t, pthread_attr_default, task, NULL );
34337 if( status ) return errno;
34339 /* give thread a chance to complete */
34340 /* it should remain joinable and hence detachable */
34343 status = pthread_detach( &t );
34344 if( status ) return errno;
34347 #ifdef HAVE_LINUX_THREADS
34348 pthread_kill_other_threads_np();
34356 rm -f conftest$ac_exeext
34357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34358 (eval $ac_link) 2>&5
34360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34363 (eval $ac_try) 2>&5
34365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366 (exit $ac_status); }; }; then
34367 ol_cv_pthread_lib_lpthreads=yes
34369 echo "$as_me: program exited with status $ac_status" >&5
34370 echo "$as_me: failed program was:" >&5
34371 sed 's/^/| /' conftest.$ac_ext >&5
34373 ( exit $ac_status )
34374 ol_cv_pthread_lib_lpthreads=no
34376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34383 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34384 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34386 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34387 ol_link_pthreads="-lpthreads"
34388 ol_link_threads=posix
34393 if test $ol_link_threads != no ; then
34394 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34396 save_CPPFLAGS="$CPPFLAGS"
34398 LIBS="$LTHREAD_LIBS $LIBS"
34403 for ac_func in sched_yield pthread_yield thr_yield
34405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34406 echo "$as_me:$LINENO: checking for $ac_func" >&5
34407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34408 if eval "test \"\${$as_ac_var+set}\" = set"; then
34409 echo $ECHO_N "(cached) $ECHO_C" >&6
34411 cat >conftest.$ac_ext <<_ACEOF
34414 cat confdefs.h >>conftest.$ac_ext
34415 cat >>conftest.$ac_ext <<_ACEOF
34416 /* end confdefs.h. */
34417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34419 #define $ac_func innocuous_$ac_func
34421 /* System header to define __stub macros and hopefully few prototypes,
34422 which can conflict with char $ac_func (); below.
34423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34424 <limits.h> exists even on freestanding compilers. */
34427 # include <limits.h>
34429 # include <assert.h>
34434 /* Override any gcc2 internal prototype to avoid an error. */
34439 /* We use char because int might match the return type of a gcc2
34440 builtin and then its argument prototype would still apply. */
34442 /* The GNU C library defines this for functions which it implements
34443 to always fail with ENOSYS. Some functions are actually named
34444 something starting with __ and the normal name is an alias. */
34445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34448 char (*f) () = $ac_func;
34457 return f != $ac_func;
34462 rm -f conftest.$ac_objext conftest$ac_exeext
34463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34464 (eval $ac_link) 2>conftest.er1
34466 grep -v '^ *+' conftest.er1 >conftest.err
34468 cat conftest.err >&5
34469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470 (exit $ac_status); } &&
34471 { ac_try='test -z "$ac_c_werror_flag"
34472 || test ! -s conftest.err'
34473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34474 (eval $ac_try) 2>&5
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); }; } &&
34478 { ac_try='test -s conftest$ac_exeext'
34479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34480 (eval $ac_try) 2>&5
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); }; }; then
34484 eval "$as_ac_var=yes"
34486 echo "$as_me: failed program was:" >&5
34487 sed 's/^/| /' conftest.$ac_ext >&5
34489 eval "$as_ac_var=no"
34491 rm -f conftest.err conftest.$ac_objext \
34492 conftest$ac_exeext conftest.$ac_ext
34494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34496 if test `eval echo '${'$as_ac_var'}'` = yes; then
34497 cat >>confdefs.h <<_ACEOF
34498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34505 if test $ac_cv_func_sched_yield = no -a \
34506 $ac_cv_func_pthread_yield = no -a \
34507 $ac_cv_func_thr_yield = no ; then
34508 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34509 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34510 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34511 echo $ECHO_N "(cached) $ECHO_C" >&6
34513 ac_check_lib_save_LIBS=$LIBS
34515 cat >conftest.$ac_ext <<_ACEOF
34518 cat confdefs.h >>conftest.$ac_ext
34519 cat >>conftest.$ac_ext <<_ACEOF
34520 /* end confdefs.h. */
34522 /* Override any gcc2 internal prototype to avoid an error. */
34526 /* We use char because int might match the return type of a gcc2
34527 builtin and then its argument prototype would still apply. */
34528 char sched_yield ();
34537 rm -f conftest.$ac_objext conftest$ac_exeext
34538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34539 (eval $ac_link) 2>conftest.er1
34541 grep -v '^ *+' conftest.er1 >conftest.err
34543 cat conftest.err >&5
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); } &&
34546 { ac_try='test -z "$ac_c_werror_flag"
34547 || test ! -s conftest.err'
34548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549 (eval $ac_try) 2>&5
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); }; } &&
34553 { ac_try='test -s conftest$ac_exeext'
34554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555 (eval $ac_try) 2>&5
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); }; }; then
34559 ac_cv_lib_rt_sched_yield=yes
34561 echo "$as_me: failed program was:" >&5
34562 sed 's/^/| /' conftest.$ac_ext >&5
34564 ac_cv_lib_rt_sched_yield=no
34566 rm -f conftest.err conftest.$ac_objext \
34567 conftest$ac_exeext conftest.$ac_ext
34568 LIBS=$ac_check_lib_save_LIBS
34570 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34571 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34572 if test $ac_cv_lib_rt_sched_yield = yes; then
34573 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34575 cat >>confdefs.h <<\_ACEOF
34576 #define HAVE_SCHED_YIELD 1
34579 ac_cv_func_sched_yield=yes
34581 ac_cv_func_sched_yield=no
34585 if test $ac_cv_func_sched_yield = no -a \
34586 $ac_cv_func_pthread_yield = no -a \
34587 "$ac_cv_func_thr_yield" = no ; then
34588 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34589 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34594 for ac_func in pthread_kill pthread_rwlock_destroy
34596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34597 echo "$as_me:$LINENO: checking for $ac_func" >&5
34598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34599 if eval "test \"\${$as_ac_var+set}\" = set"; then
34600 echo $ECHO_N "(cached) $ECHO_C" >&6
34602 cat >conftest.$ac_ext <<_ACEOF
34605 cat confdefs.h >>conftest.$ac_ext
34606 cat >>conftest.$ac_ext <<_ACEOF
34607 /* end confdefs.h. */
34608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34610 #define $ac_func innocuous_$ac_func
34612 /* System header to define __stub macros and hopefully few prototypes,
34613 which can conflict with char $ac_func (); below.
34614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34615 <limits.h> exists even on freestanding compilers. */
34618 # include <limits.h>
34620 # include <assert.h>
34625 /* Override any gcc2 internal prototype to avoid an error. */
34630 /* We use char because int might match the return type of a gcc2
34631 builtin and then its argument prototype would still apply. */
34633 /* The GNU C library defines this for functions which it implements
34634 to always fail with ENOSYS. Some functions are actually named
34635 something starting with __ and the normal name is an alias. */
34636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34639 char (*f) () = $ac_func;
34648 return f != $ac_func;
34653 rm -f conftest.$ac_objext conftest$ac_exeext
34654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34655 (eval $ac_link) 2>conftest.er1
34657 grep -v '^ *+' conftest.er1 >conftest.err
34659 cat conftest.err >&5
34660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661 (exit $ac_status); } &&
34662 { ac_try='test -z "$ac_c_werror_flag"
34663 || test ! -s conftest.err'
34664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665 (eval $ac_try) 2>&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; } &&
34669 { ac_try='test -s conftest$ac_exeext'
34670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671 (eval $ac_try) 2>&5
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; }; then
34675 eval "$as_ac_var=yes"
34677 echo "$as_me: failed program was:" >&5
34678 sed 's/^/| /' conftest.$ac_ext >&5
34680 eval "$as_ac_var=no"
34682 rm -f conftest.err conftest.$ac_objext \
34683 conftest$ac_exeext conftest.$ac_ext
34685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34687 if test `eval echo '${'$as_ac_var'}'` = yes; then
34688 cat >>confdefs.h <<_ACEOF
34689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34696 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34697 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34698 if test "${ol_cv_func_pthread_detach+set}" = set; then
34699 echo $ECHO_N "(cached) $ECHO_C" >&6
34702 cat >conftest.$ac_ext <<_ACEOF
34705 cat confdefs.h >>conftest.$ac_ext
34706 cat >>conftest.$ac_ext <<_ACEOF
34707 /* end confdefs.h. */
34709 #include <pthread.h>
34711 #define NULL (void*)0
34717 pthread_detach(NULL);
34722 rm -f conftest.$ac_objext conftest$ac_exeext
34723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34724 (eval $ac_link) 2>conftest.er1
34726 grep -v '^ *+' conftest.er1 >conftest.err
34728 cat conftest.err >&5
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); } &&
34731 { ac_try='test -z "$ac_c_werror_flag"
34732 || test ! -s conftest.err'
34733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34734 (eval $ac_try) 2>&5
34736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737 (exit $ac_status); }; } &&
34738 { ac_try='test -s conftest$ac_exeext'
34739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34740 (eval $ac_try) 2>&5
34742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); }; }; then
34744 ol_cv_func_pthread_detach=yes
34746 echo "$as_me: failed program was:" >&5
34747 sed 's/^/| /' conftest.$ac_ext >&5
34749 ol_cv_func_pthread_detach=no
34751 rm -f conftest.err conftest.$ac_objext \
34752 conftest$ac_exeext conftest.$ac_ext
34755 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34756 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34758 if test $ol_cv_func_pthread_detach = no ; then
34759 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34760 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34761 { (exit 1); exit 1; }; }
34765 cat >>confdefs.h <<\_ACEOF
34766 #define HAVE_PTHREAD_DETACH 1
34775 pthread_setconcurrency \
34776 pthread_getconcurrency \
34777 thr_setconcurrency \
34778 thr_getconcurrency \
34781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34782 echo "$as_me:$LINENO: checking for $ac_func" >&5
34783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34784 if eval "test \"\${$as_ac_var+set}\" = set"; then
34785 echo $ECHO_N "(cached) $ECHO_C" >&6
34787 cat >conftest.$ac_ext <<_ACEOF
34790 cat confdefs.h >>conftest.$ac_ext
34791 cat >>conftest.$ac_ext <<_ACEOF
34792 /* end confdefs.h. */
34793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34795 #define $ac_func innocuous_$ac_func
34797 /* System header to define __stub macros and hopefully few prototypes,
34798 which can conflict with char $ac_func (); below.
34799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34800 <limits.h> exists even on freestanding compilers. */
34803 # include <limits.h>
34805 # include <assert.h>
34810 /* Override any gcc2 internal prototype to avoid an error. */
34815 /* We use char because int might match the return type of a gcc2
34816 builtin and then its argument prototype would still apply. */
34818 /* The GNU C library defines this for functions which it implements
34819 to always fail with ENOSYS. Some functions are actually named
34820 something starting with __ and the normal name is an alias. */
34821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34824 char (*f) () = $ac_func;
34833 return f != $ac_func;
34838 rm -f conftest.$ac_objext conftest$ac_exeext
34839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34840 (eval $ac_link) 2>conftest.er1
34842 grep -v '^ *+' conftest.er1 >conftest.err
34844 cat conftest.err >&5
34845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846 (exit $ac_status); } &&
34847 { ac_try='test -z "$ac_c_werror_flag"
34848 || test ! -s conftest.err'
34849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34850 (eval $ac_try) 2>&5
34852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853 (exit $ac_status); }; } &&
34854 { ac_try='test -s conftest$ac_exeext'
34855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34856 (eval $ac_try) 2>&5
34858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859 (exit $ac_status); }; }; then
34860 eval "$as_ac_var=yes"
34862 echo "$as_me: failed program was:" >&5
34863 sed 's/^/| /' conftest.$ac_ext >&5
34865 eval "$as_ac_var=no"
34867 rm -f conftest.err conftest.$ac_objext \
34868 conftest$ac_exeext conftest.$ac_ext
34870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34872 if test `eval echo '${'$as_ac_var'}'` = yes; then
34873 cat >>confdefs.h <<_ACEOF
34874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34883 for ac_func in pthread_kill_other_threads_np
34885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34886 echo "$as_me:$LINENO: checking for $ac_func" >&5
34887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34888 if eval "test \"\${$as_ac_var+set}\" = set"; then
34889 echo $ECHO_N "(cached) $ECHO_C" >&6
34891 cat >conftest.$ac_ext <<_ACEOF
34894 cat confdefs.h >>conftest.$ac_ext
34895 cat >>conftest.$ac_ext <<_ACEOF
34896 /* end confdefs.h. */
34897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34899 #define $ac_func innocuous_$ac_func
34901 /* System header to define __stub macros and hopefully few prototypes,
34902 which can conflict with char $ac_func (); below.
34903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34904 <limits.h> exists even on freestanding compilers. */
34907 # include <limits.h>
34909 # include <assert.h>
34914 /* Override any gcc2 internal prototype to avoid an error. */
34919 /* We use char because int might match the return type of a gcc2
34920 builtin and then its argument prototype would still apply. */
34922 /* The GNU C library defines this for functions which it implements
34923 to always fail with ENOSYS. Some functions are actually named
34924 something starting with __ and the normal name is an alias. */
34925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34928 char (*f) () = $ac_func;
34937 return f != $ac_func;
34942 rm -f conftest.$ac_objext conftest$ac_exeext
34943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34944 (eval $ac_link) 2>conftest.er1
34946 grep -v '^ *+' conftest.er1 >conftest.err
34948 cat conftest.err >&5
34949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950 (exit $ac_status); } &&
34951 { ac_try='test -z "$ac_c_werror_flag"
34952 || test ! -s conftest.err'
34953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954 (eval $ac_try) 2>&5
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); }; } &&
34958 { ac_try='test -s conftest$ac_exeext'
34959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960 (eval $ac_try) 2>&5
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); }; }; then
34964 eval "$as_ac_var=yes"
34966 echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34969 eval "$as_ac_var=no"
34971 rm -f conftest.err conftest.$ac_objext \
34972 conftest$ac_exeext conftest.$ac_ext
34974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34976 if test `eval echo '${'$as_ac_var'}'` = yes; then
34977 cat >>confdefs.h <<_ACEOF
34978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34984 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34985 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34986 if test "${ol_cv_sys_linux_threads+set}" = set; then
34987 echo $ECHO_N "(cached) $ECHO_C" >&6
34989 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34991 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34992 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34997 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34998 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34999 if test "${ol_cv_linux_threads+set}" = set; then
35000 echo $ECHO_N "(cached) $ECHO_C" >&6
35003 if test $ol_cv_header_linux_threads = yes -a \
35004 $ol_cv_sys_linux_threads = yes; then
35005 ol_cv_linux_threads=yes
35006 elif test $ol_cv_header_linux_threads = no -a \
35007 $ol_cv_sys_linux_threads = no; then
35008 ol_cv_linux_threads=no
35010 ol_cv_linux_threads=error
35014 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
35015 echo "${ECHO_T}$ol_cv_linux_threads" >&6
35018 if test $ol_cv_linux_threads = error; then
35019 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
35020 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
35021 { (exit 1); exit 1; }; };
35024 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
35025 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
35026 if test "${ol_cv_pthread_create_works+set}" = set; then
35027 echo $ECHO_N "(cached) $ECHO_C" >&6
35030 if test "$cross_compiling" = yes; then
35031 ol_cv_pthread_create_works=yes
35033 cat >conftest.$ac_ext <<_ACEOF
35036 cat confdefs.h >>conftest.$ac_ext
35037 cat >>conftest.$ac_ext <<_ACEOF
35038 /* end confdefs.h. */
35040 /* pthread test headers */
35041 #include <pthread.h>
35042 #if HAVE_PTHREADS < 7
35046 #define NULL (void*)0
35049 static void *task(p)
35052 return (void *) (p == NULL);
35056 int main(argc, argv)
35061 /* pthread test function */
35062 #ifndef PTHREAD_CREATE_DETACHED
35063 #define PTHREAD_CREATE_DETACHED 1
35067 int detach = PTHREAD_CREATE_DETACHED;
35069 #if HAVE_PTHREADS > 4
35070 /* Final pthreads */
35071 pthread_attr_t attr;
35073 status = pthread_attr_init(&attr);
35074 if( status ) return status;
35076 #if HAVE_PTHREADS < 7
35077 status = pthread_attr_setdetachstate(&attr, &detach);
35078 if( status < 0 ) status = errno;
35080 status = pthread_attr_setdetachstate(&attr, detach);
35082 if( status ) return status;
35083 status = pthread_create( &t, &attr, task, NULL );
35084 #if HAVE_PTHREADS < 7
35085 if( status < 0 ) status = errno;
35087 if( status ) return status;
35089 /* Draft 4 pthreads */
35090 status = pthread_create( &t, pthread_attr_default, task, NULL );
35091 if( status ) return errno;
35093 /* give thread a chance to complete */
35094 /* it should remain joinable and hence detachable */
35097 status = pthread_detach( &t );
35098 if( status ) return errno;
35101 #ifdef HAVE_LINUX_THREADS
35102 pthread_kill_other_threads_np();
35110 rm -f conftest$ac_exeext
35111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35112 (eval $ac_link) 2>&5
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35117 (eval $ac_try) 2>&5
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); }; }; then
35121 ol_cv_pthread_create_works=yes
35123 echo "$as_me: program exited with status $ac_status" >&5
35124 echo "$as_me: failed program was:" >&5
35125 sed 's/^/| /' conftest.$ac_ext >&5
35127 ( exit $ac_status )
35128 ol_cv_pthread_create_works=no
35130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35133 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
35134 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
35136 if test $ol_cv_pthread_create_works = no ; then
35137 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
35138 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
35139 { (exit 1); exit 1; }; }
35142 if test $ol_with_yielding_select = auto ; then
35143 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
35144 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
35145 if test "${ol_cv_pthread_select_yields+set}" = set; then
35146 echo $ECHO_N "(cached) $ECHO_C" >&6
35149 if test "$cross_compiling" = yes; then
35150 ol_cv_pthread_select_yields=cross
35152 cat >conftest.$ac_ext <<_ACEOF
35155 cat confdefs.h >>conftest.$ac_ext
35156 cat >>conftest.$ac_ext <<_ACEOF
35157 /* end confdefs.h. */
35159 #include <sys/types.h>
35160 #include <sys/time.h>
35161 #include <unistd.h>
35162 #include <pthread.h>
35164 #define NULL (void*) 0
35167 static int fildes[2];
35169 static void *task(p)
35181 FD_SET(fildes[0], &rfds);
35183 /* we're not interested in any fds */
35184 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35191 exit(0); /* if we exit here, the select blocked the whole process */
35194 int main(argc, argv)
35200 /* create a pipe to select */
35201 if(pipe(&fildes[0])) {
35206 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35207 (void) pthread_setconcurrency(2);
35209 #ifdef HAVE_THR_SETCONCURRENCY
35210 /* Set Solaris LWP concurrency to 2 */
35211 thr_setconcurrency(2);
35215 #if HAVE_PTHREADS < 6
35216 pthread_create(&t, pthread_attr_default, task, NULL);
35218 pthread_create(&t, NULL, task, NULL);
35221 /* make sure task runs first */
35224 #elif defined( HAVE_SCHED_YIELD )
35226 #elif defined( HAVE_PTHREAD_YIELD )
35233 rm -f conftest$ac_exeext
35234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35235 (eval $ac_link) 2>&5
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240 (eval $ac_try) 2>&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); }; }; then
35244 ol_cv_pthread_select_yields=no
35246 echo "$as_me: program exited with status $ac_status" >&5
35247 echo "$as_me: failed program was:" >&5
35248 sed 's/^/| /' conftest.$ac_ext >&5
35250 ( exit $ac_status )
35251 ol_cv_pthread_select_yields=yes
35253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35256 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35257 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35259 if test $ol_cv_pthread_select_yields = cross ; then
35260 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35261 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35262 { (exit 1); exit 1; }; }
35265 if test $ol_cv_pthread_select_yields = yes ; then
35266 ol_with_yielding_select=yes
35270 CPPFLAGS="$save_CPPFLAGS"
35273 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35274 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35275 { (exit 1); exit 1; }; }
35279 if test $ol_with_threads = posix ; then
35280 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35281 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35282 { (exit 1); exit 1; }; }
35286 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35287 -o $ol_with_threads = mach ; then
35291 for ac_header in mach/cthreads.h cthreads.h
35293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35295 echo "$as_me:$LINENO: checking for $ac_header" >&5
35296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35298 echo $ECHO_N "(cached) $ECHO_C" >&6
35300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35303 # Is the header compilable?
35304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35306 cat >conftest.$ac_ext <<_ACEOF
35309 cat confdefs.h >>conftest.$ac_ext
35310 cat >>conftest.$ac_ext <<_ACEOF
35311 /* end confdefs.h. */
35312 $ac_includes_default
35313 #include <$ac_header>
35315 rm -f conftest.$ac_objext
35316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35317 (eval $ac_compile) 2>conftest.er1
35319 grep -v '^ *+' conftest.er1 >conftest.err
35321 cat conftest.err >&5
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); } &&
35324 { ac_try='test -z "$ac_c_werror_flag"
35325 || test ! -s conftest.err'
35326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35327 (eval $ac_try) 2>&5
35329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330 (exit $ac_status); }; } &&
35331 { ac_try='test -s conftest.$ac_objext'
35332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35333 (eval $ac_try) 2>&5
35335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336 (exit $ac_status); }; }; then
35337 ac_header_compiler=yes
35339 echo "$as_me: failed program was:" >&5
35340 sed 's/^/| /' conftest.$ac_ext >&5
35342 ac_header_compiler=no
35344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35346 echo "${ECHO_T}$ac_header_compiler" >&6
35348 # Is the header present?
35349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35351 cat >conftest.$ac_ext <<_ACEOF
35354 cat confdefs.h >>conftest.$ac_ext
35355 cat >>conftest.$ac_ext <<_ACEOF
35356 /* end confdefs.h. */
35357 #include <$ac_header>
35359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35362 grep -v '^ *+' conftest.er1 >conftest.err
35364 cat conftest.err >&5
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); } >/dev/null; then
35367 if test -s conftest.err; then
35368 ac_cpp_err=$ac_c_preproc_warn_flag
35369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35376 if test -z "$ac_cpp_err"; then
35377 ac_header_preproc=yes
35379 echo "$as_me: failed program was:" >&5
35380 sed 's/^/| /' conftest.$ac_ext >&5
35382 ac_header_preproc=no
35384 rm -f conftest.err conftest.$ac_ext
35385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35386 echo "${ECHO_T}$ac_header_preproc" >&6
35388 # So? What about this header?
35389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35395 ac_header_preproc=yes
35398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35412 ## ------------------------------------------ ##
35413 ## Report this to the AC_PACKAGE_NAME lists. ##
35414 ## ------------------------------------------ ##
35417 sed "s/^/$as_me: WARNING: /" >&2
35420 echo "$as_me:$LINENO: checking for $ac_header" >&5
35421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35423 echo $ECHO_N "(cached) $ECHO_C" >&6
35425 eval "$as_ac_Header=\$ac_header_preproc"
35427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35432 cat >>confdefs.h <<_ACEOF
35433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35440 if test $ac_cv_header_mach_cthreads_h = yes ; then
35441 ol_with_threads=found
35443 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35444 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35445 if test "${ac_cv_func_cthread_fork+set}" = set; then
35446 echo $ECHO_N "(cached) $ECHO_C" >&6
35448 cat >conftest.$ac_ext <<_ACEOF
35451 cat confdefs.h >>conftest.$ac_ext
35452 cat >>conftest.$ac_ext <<_ACEOF
35453 /* end confdefs.h. */
35454 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35456 #define cthread_fork innocuous_cthread_fork
35458 /* System header to define __stub macros and hopefully few prototypes,
35459 which can conflict with char cthread_fork (); below.
35460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35461 <limits.h> exists even on freestanding compilers. */
35464 # include <limits.h>
35466 # include <assert.h>
35469 #undef cthread_fork
35471 /* Override any gcc2 internal prototype to avoid an error. */
35476 /* We use char because int might match the return type of a gcc2
35477 builtin and then its argument prototype would still apply. */
35478 char cthread_fork ();
35479 /* The GNU C library defines this for functions which it implements
35480 to always fail with ENOSYS. Some functions are actually named
35481 something starting with __ and the normal name is an alias. */
35482 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35485 char (*f) () = cthread_fork;
35494 return f != cthread_fork;
35499 rm -f conftest.$ac_objext conftest$ac_exeext
35500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35501 (eval $ac_link) 2>conftest.er1
35503 grep -v '^ *+' conftest.er1 >conftest.err
35505 cat conftest.err >&5
35506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507 (exit $ac_status); } &&
35508 { ac_try='test -z "$ac_c_werror_flag"
35509 || test ! -s conftest.err'
35510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35511 (eval $ac_try) 2>&5
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); }; } &&
35515 { ac_try='test -s conftest$ac_exeext'
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; }; then
35521 ac_cv_func_cthread_fork=yes
35523 echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35526 ac_cv_func_cthread_fork=no
35528 rm -f conftest.err conftest.$ac_objext \
35529 conftest$ac_exeext conftest.$ac_ext
35531 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35532 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35533 if test $ac_cv_func_cthread_fork = yes; then
35534 ol_link_threads=yes
35538 if test $ol_link_threads = no ; then
35539 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35540 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35541 if test "${ol_cv_cthread_all_load+set}" = set; then
35542 echo $ECHO_N "(cached) $ECHO_C" >&6
35546 LIBS="-all_load $LIBS"
35547 cat >conftest.$ac_ext <<_ACEOF
35550 cat confdefs.h >>conftest.$ac_ext
35551 cat >>conftest.$ac_ext <<_ACEOF
35552 /* end confdefs.h. */
35553 #include <mach/cthreads.h>
35558 cthread_fork((void *)0, (void *)0);
35564 rm -f conftest.$ac_objext conftest$ac_exeext
35565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35566 (eval $ac_link) 2>conftest.er1
35568 grep -v '^ *+' conftest.er1 >conftest.err
35570 cat conftest.err >&5
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); } &&
35573 { ac_try='test -z "$ac_c_werror_flag"
35574 || test ! -s conftest.err'
35575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35576 (eval $ac_try) 2>&5
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); }; } &&
35580 { ac_try='test -s conftest$ac_exeext'
35581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582 (eval $ac_try) 2>&5
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); }; }; then
35586 ol_cv_cthread_all_load=yes
35588 echo "$as_me: failed program was:" >&5
35589 sed 's/^/| /' conftest.$ac_ext >&5
35591 ol_cv_cthread_all_load=no
35593 rm -f conftest.err conftest.$ac_objext \
35594 conftest$ac_exeext conftest.$ac_ext
35598 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35599 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35601 if test $ol_cv_cthread_all_load = yes ; then
35602 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35603 ol_link_threads=mach
35604 ol_with_threads=found
35608 elif test $ac_cv_header_cthreads_h = yes ; then
35610 ol_with_threads=found
35613 LIBS="$LIBS -lthreads"
35614 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35615 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35616 if test "${ac_cv_func_cthread_fork+set}" = set; then
35617 echo $ECHO_N "(cached) $ECHO_C" >&6
35619 cat >conftest.$ac_ext <<_ACEOF
35622 cat confdefs.h >>conftest.$ac_ext
35623 cat >>conftest.$ac_ext <<_ACEOF
35624 /* end confdefs.h. */
35625 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35627 #define cthread_fork innocuous_cthread_fork
35629 /* System header to define __stub macros and hopefully few prototypes,
35630 which can conflict with char cthread_fork (); below.
35631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35632 <limits.h> exists even on freestanding compilers. */
35635 # include <limits.h>
35637 # include <assert.h>
35640 #undef cthread_fork
35642 /* Override any gcc2 internal prototype to avoid an error. */
35647 /* We use char because int might match the return type of a gcc2
35648 builtin and then its argument prototype would still apply. */
35649 char cthread_fork ();
35650 /* The GNU C library defines this for functions which it implements
35651 to always fail with ENOSYS. Some functions are actually named
35652 something starting with __ and the normal name is an alias. */
35653 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35656 char (*f) () = cthread_fork;
35665 return f != cthread_fork;
35670 rm -f conftest.$ac_objext conftest$ac_exeext
35671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35672 (eval $ac_link) 2>conftest.er1
35674 grep -v '^ *+' conftest.er1 >conftest.err
35676 cat conftest.err >&5
35677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678 (exit $ac_status); } &&
35679 { ac_try='test -z "$ac_c_werror_flag"
35680 || test ! -s conftest.err'
35681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35682 (eval $ac_try) 2>&5
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); }; } &&
35686 { ac_try='test -s conftest$ac_exeext'
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; }; then
35692 ac_cv_func_cthread_fork=yes
35694 echo "$as_me: failed program was:" >&5
35695 sed 's/^/| /' conftest.$ac_ext >&5
35697 ac_cv_func_cthread_fork=no
35699 rm -f conftest.err conftest.$ac_objext \
35700 conftest$ac_exeext conftest.$ac_ext
35702 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35703 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35704 if test $ac_cv_func_cthread_fork = yes; then
35705 ol_link_threads=yes
35710 if test $ol_link_threads = yes ; then
35711 LTHREAD_LIBS="-lthreads"
35712 ol_link_threads=mach
35713 ol_with_threads=found
35715 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35716 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35717 { (exit 1); exit 1; }; }
35720 elif test $ol_with_threads = mach ; then
35721 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35722 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35723 { (exit 1); exit 1; }; }
35726 if test $ol_link_threads = mach ; then
35728 cat >>confdefs.h <<\_ACEOF
35729 #define HAVE_MACH_CTHREADS 1
35732 elif test $ol_with_threads = found ; then
35733 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35734 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35735 { (exit 1); exit 1; }; }
35739 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35740 -o $ol_with_threads = pth ; then
35743 for ac_header in pth.h
35745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35747 echo "$as_me:$LINENO: checking for $ac_header" >&5
35748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35750 echo $ECHO_N "(cached) $ECHO_C" >&6
35752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35755 # Is the header compilable?
35756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35758 cat >conftest.$ac_ext <<_ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h. */
35764 $ac_includes_default
35765 #include <$ac_header>
35767 rm -f conftest.$ac_objext
35768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35769 (eval $ac_compile) 2>conftest.er1
35771 grep -v '^ *+' conftest.er1 >conftest.err
35773 cat conftest.err >&5
35774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775 (exit $ac_status); } &&
35776 { ac_try='test -z "$ac_c_werror_flag"
35777 || test ! -s conftest.err'
35778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35779 (eval $ac_try) 2>&5
35781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782 (exit $ac_status); }; } &&
35783 { ac_try='test -s conftest.$ac_objext'
35784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35785 (eval $ac_try) 2>&5
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); }; }; then
35789 ac_header_compiler=yes
35791 echo "$as_me: failed program was:" >&5
35792 sed 's/^/| /' conftest.$ac_ext >&5
35794 ac_header_compiler=no
35796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35798 echo "${ECHO_T}$ac_header_compiler" >&6
35800 # Is the header present?
35801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35803 cat >conftest.$ac_ext <<_ACEOF
35806 cat confdefs.h >>conftest.$ac_ext
35807 cat >>conftest.$ac_ext <<_ACEOF
35808 /* end confdefs.h. */
35809 #include <$ac_header>
35811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35814 grep -v '^ *+' conftest.er1 >conftest.err
35816 cat conftest.err >&5
35817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818 (exit $ac_status); } >/dev/null; then
35819 if test -s conftest.err; then
35820 ac_cpp_err=$ac_c_preproc_warn_flag
35821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35828 if test -z "$ac_cpp_err"; then
35829 ac_header_preproc=yes
35831 echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.$ac_ext >&5
35834 ac_header_preproc=no
35836 rm -f conftest.err conftest.$ac_ext
35837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35838 echo "${ECHO_T}$ac_header_preproc" >&6
35840 # So? What about this header?
35841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35847 ac_header_preproc=yes
35850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35864 ## ------------------------------------------ ##
35865 ## Report this to the AC_PACKAGE_NAME lists. ##
35866 ## ------------------------------------------ ##
35869 sed "s/^/$as_me: WARNING: /" >&2
35872 echo "$as_me:$LINENO: checking for $ac_header" >&5
35873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35875 echo $ECHO_N "(cached) $ECHO_C" >&6
35877 eval "$as_ac_Header=\$ac_header_preproc"
35879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35884 cat >>confdefs.h <<_ACEOF
35885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35893 if test $ac_cv_header_pth_h = yes ; then
35894 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35895 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35896 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35897 echo $ECHO_N "(cached) $ECHO_C" >&6
35899 ac_check_lib_save_LIBS=$LIBS
35901 cat >conftest.$ac_ext <<_ACEOF
35904 cat confdefs.h >>conftest.$ac_ext
35905 cat >>conftest.$ac_ext <<_ACEOF
35906 /* end confdefs.h. */
35908 /* Override any gcc2 internal prototype to avoid an error. */
35912 /* We use char because int might match the return type of a gcc2
35913 builtin and then its argument prototype would still apply. */
35914 char pth_version ();
35923 rm -f conftest.$ac_objext conftest$ac_exeext
35924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35925 (eval $ac_link) 2>conftest.er1
35927 grep -v '^ *+' conftest.er1 >conftest.err
35929 cat conftest.err >&5
35930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931 (exit $ac_status); } &&
35932 { ac_try='test -z "$ac_c_werror_flag"
35933 || test ! -s conftest.err'
35934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35935 (eval $ac_try) 2>&5
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); }; } &&
35939 { ac_try='test -s conftest$ac_exeext'
35940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35941 (eval $ac_try) 2>&5
35943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); }; }; then
35945 ac_cv_lib_pth_pth_version=yes
35947 echo "$as_me: failed program was:" >&5
35948 sed 's/^/| /' conftest.$ac_ext >&5
35950 ac_cv_lib_pth_pth_version=no
35952 rm -f conftest.err conftest.$ac_objext \
35953 conftest$ac_exeext conftest.$ac_ext
35954 LIBS=$ac_check_lib_save_LIBS
35956 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35957 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35958 if test $ac_cv_lib_pth_pth_version = yes; then
35965 if test $have_pth = yes ; then
35967 cat >>confdefs.h <<\_ACEOF
35968 #define HAVE_GNU_PTH 1
35971 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35972 ol_link_threads=pth
35973 ol_with_threads=found
35975 if test $ol_with_yielding_select = auto ; then
35976 ol_with_yielding_select=yes
35982 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35983 -o $ol_with_threads = lwp ; then
35987 for ac_header in thread.h synch.h
35989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35991 echo "$as_me:$LINENO: checking for $ac_header" >&5
35992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35994 echo $ECHO_N "(cached) $ECHO_C" >&6
35996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35999 # Is the header compilable?
36000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36002 cat >conftest.$ac_ext <<_ACEOF
36005 cat confdefs.h >>conftest.$ac_ext
36006 cat >>conftest.$ac_ext <<_ACEOF
36007 /* end confdefs.h. */
36008 $ac_includes_default
36009 #include <$ac_header>
36011 rm -f conftest.$ac_objext
36012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36013 (eval $ac_compile) 2>conftest.er1
36015 grep -v '^ *+' conftest.er1 >conftest.err
36017 cat conftest.err >&5
36018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019 (exit $ac_status); } &&
36020 { ac_try='test -z "$ac_c_werror_flag"
36021 || test ! -s conftest.err'
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; } &&
36027 { ac_try='test -s conftest.$ac_objext'
36028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36029 (eval $ac_try) 2>&5
36031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032 (exit $ac_status); }; }; then
36033 ac_header_compiler=yes
36035 echo "$as_me: failed program was:" >&5
36036 sed 's/^/| /' conftest.$ac_ext >&5
36038 ac_header_compiler=no
36040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36042 echo "${ECHO_T}$ac_header_compiler" >&6
36044 # Is the header present?
36045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36047 cat >conftest.$ac_ext <<_ACEOF
36050 cat confdefs.h >>conftest.$ac_ext
36051 cat >>conftest.$ac_ext <<_ACEOF
36052 /* end confdefs.h. */
36053 #include <$ac_header>
36055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36058 grep -v '^ *+' conftest.er1 >conftest.err
36060 cat conftest.err >&5
36061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062 (exit $ac_status); } >/dev/null; then
36063 if test -s conftest.err; then
36064 ac_cpp_err=$ac_c_preproc_warn_flag
36065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36072 if test -z "$ac_cpp_err"; then
36073 ac_header_preproc=yes
36075 echo "$as_me: failed program was:" >&5
36076 sed 's/^/| /' conftest.$ac_ext >&5
36078 ac_header_preproc=no
36080 rm -f conftest.err conftest.$ac_ext
36081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36082 echo "${ECHO_T}$ac_header_preproc" >&6
36084 # So? What about this header?
36085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36091 ac_header_preproc=yes
36094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36108 ## ------------------------------------------ ##
36109 ## Report this to the AC_PACKAGE_NAME lists. ##
36110 ## ------------------------------------------ ##
36113 sed "s/^/$as_me: WARNING: /" >&2
36116 echo "$as_me:$LINENO: checking for $ac_header" >&5
36117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36119 echo $ECHO_N "(cached) $ECHO_C" >&6
36121 eval "$as_ac_Header=\$ac_header_preproc"
36123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36128 cat >>confdefs.h <<_ACEOF
36129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36136 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
36137 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
36138 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
36139 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
36140 echo $ECHO_N "(cached) $ECHO_C" >&6
36142 ac_check_lib_save_LIBS=$LIBS
36143 LIBS="-lthread $LIBS"
36144 cat >conftest.$ac_ext <<_ACEOF
36147 cat confdefs.h >>conftest.$ac_ext
36148 cat >>conftest.$ac_ext <<_ACEOF
36149 /* end confdefs.h. */
36151 /* Override any gcc2 internal prototype to avoid an error. */
36155 /* We use char because int might match the return type of a gcc2
36156 builtin and then its argument prototype would still apply. */
36157 char thr_create ();
36166 rm -f conftest.$ac_objext conftest$ac_exeext
36167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36168 (eval $ac_link) 2>conftest.er1
36170 grep -v '^ *+' conftest.er1 >conftest.err
36172 cat conftest.err >&5
36173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36174 (exit $ac_status); } &&
36175 { ac_try='test -z "$ac_c_werror_flag"
36176 || test ! -s conftest.err'
36177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36178 (eval $ac_try) 2>&5
36180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181 (exit $ac_status); }; } &&
36182 { ac_try='test -s conftest$ac_exeext'
36183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36184 (eval $ac_try) 2>&5
36186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187 (exit $ac_status); }; }; then
36188 ac_cv_lib_thread_thr_create=yes
36190 echo "$as_me: failed program was:" >&5
36191 sed 's/^/| /' conftest.$ac_ext >&5
36193 ac_cv_lib_thread_thr_create=no
36195 rm -f conftest.err conftest.$ac_objext \
36196 conftest$ac_exeext conftest.$ac_ext
36197 LIBS=$ac_check_lib_save_LIBS
36199 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36200 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36201 if test $ac_cv_lib_thread_thr_create = yes; then
36208 if test $have_thr = yes ; then
36210 cat >>confdefs.h <<\_ACEOF
36214 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36215 ol_link_threads=thr
36217 if test $ol_with_yielding_select = auto ; then
36218 ol_with_yielding_select=yes
36224 thr_setconcurrency \
36225 thr_getconcurrency \
36228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36229 echo "$as_me:$LINENO: checking for $ac_func" >&5
36230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36231 if eval "test \"\${$as_ac_var+set}\" = set"; then
36232 echo $ECHO_N "(cached) $ECHO_C" >&6
36234 cat >conftest.$ac_ext <<_ACEOF
36237 cat confdefs.h >>conftest.$ac_ext
36238 cat >>conftest.$ac_ext <<_ACEOF
36239 /* end confdefs.h. */
36240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36242 #define $ac_func innocuous_$ac_func
36244 /* System header to define __stub macros and hopefully few prototypes,
36245 which can conflict with char $ac_func (); below.
36246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36247 <limits.h> exists even on freestanding compilers. */
36250 # include <limits.h>
36252 # include <assert.h>
36257 /* Override any gcc2 internal prototype to avoid an error. */
36262 /* We use char because int might match the return type of a gcc2
36263 builtin and then its argument prototype would still apply. */
36265 /* The GNU C library defines this for functions which it implements
36266 to always fail with ENOSYS. Some functions are actually named
36267 something starting with __ and the normal name is an alias. */
36268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36271 char (*f) () = $ac_func;
36280 return f != $ac_func;
36285 rm -f conftest.$ac_objext conftest$ac_exeext
36286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36287 (eval $ac_link) 2>conftest.er1
36289 grep -v '^ *+' conftest.er1 >conftest.err
36291 cat conftest.err >&5
36292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293 (exit $ac_status); } &&
36294 { ac_try='test -z "$ac_c_werror_flag"
36295 || test ! -s conftest.err'
36296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36297 (eval $ac_try) 2>&5
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); }; } &&
36301 { ac_try='test -s conftest$ac_exeext'
36302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36303 (eval $ac_try) 2>&5
36305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); }; }; then
36307 eval "$as_ac_var=yes"
36309 echo "$as_me: failed program was:" >&5
36310 sed 's/^/| /' conftest.$ac_ext >&5
36312 eval "$as_ac_var=no"
36314 rm -f conftest.err conftest.$ac_objext \
36315 conftest$ac_exeext conftest.$ac_ext
36317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36319 if test `eval echo '${'$as_ac_var'}'` = yes; then
36320 cat >>confdefs.h <<_ACEOF
36321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36331 for ac_header in lwp/lwp.h
36333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36335 echo "$as_me:$LINENO: checking for $ac_header" >&5
36336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36338 echo $ECHO_N "(cached) $ECHO_C" >&6
36340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36343 # Is the header compilable?
36344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36346 cat >conftest.$ac_ext <<_ACEOF
36349 cat confdefs.h >>conftest.$ac_ext
36350 cat >>conftest.$ac_ext <<_ACEOF
36351 /* end confdefs.h. */
36352 $ac_includes_default
36353 #include <$ac_header>
36355 rm -f conftest.$ac_objext
36356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36357 (eval $ac_compile) 2>conftest.er1
36359 grep -v '^ *+' conftest.er1 >conftest.err
36361 cat conftest.err >&5
36362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 (exit $ac_status); } &&
36364 { ac_try='test -z "$ac_c_werror_flag"
36365 || test ! -s conftest.err'
36366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36367 (eval $ac_try) 2>&5
36369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370 (exit $ac_status); }; } &&
36371 { ac_try='test -s conftest.$ac_objext'
36372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36373 (eval $ac_try) 2>&5
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); }; }; then
36377 ac_header_compiler=yes
36379 echo "$as_me: failed program was:" >&5
36380 sed 's/^/| /' conftest.$ac_ext >&5
36382 ac_header_compiler=no
36384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36386 echo "${ECHO_T}$ac_header_compiler" >&6
36388 # Is the header present?
36389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36391 cat >conftest.$ac_ext <<_ACEOF
36394 cat confdefs.h >>conftest.$ac_ext
36395 cat >>conftest.$ac_ext <<_ACEOF
36396 /* end confdefs.h. */
36397 #include <$ac_header>
36399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36402 grep -v '^ *+' conftest.er1 >conftest.err
36404 cat conftest.err >&5
36405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406 (exit $ac_status); } >/dev/null; then
36407 if test -s conftest.err; then
36408 ac_cpp_err=$ac_c_preproc_warn_flag
36409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36416 if test -z "$ac_cpp_err"; then
36417 ac_header_preproc=yes
36419 echo "$as_me: failed program was:" >&5
36420 sed 's/^/| /' conftest.$ac_ext >&5
36422 ac_header_preproc=no
36424 rm -f conftest.err conftest.$ac_ext
36425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36426 echo "${ECHO_T}$ac_header_preproc" >&6
36428 # So? What about this header?
36429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36435 ac_header_preproc=yes
36438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36452 ## ------------------------------------------ ##
36453 ## Report this to the AC_PACKAGE_NAME lists. ##
36454 ## ------------------------------------------ ##
36457 sed "s/^/$as_me: WARNING: /" >&2
36460 echo "$as_me:$LINENO: checking for $ac_header" >&5
36461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36463 echo $ECHO_N "(cached) $ECHO_C" >&6
36465 eval "$as_ac_Header=\$ac_header_preproc"
36467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36472 cat >>confdefs.h <<_ACEOF
36473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36480 if test $ac_cv_header_lwp_lwp_h = yes ; then
36481 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36482 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36483 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36484 echo $ECHO_N "(cached) $ECHO_C" >&6
36486 ac_check_lib_save_LIBS=$LIBS
36488 cat >conftest.$ac_ext <<_ACEOF
36491 cat confdefs.h >>conftest.$ac_ext
36492 cat >>conftest.$ac_ext <<_ACEOF
36493 /* end confdefs.h. */
36495 /* Override any gcc2 internal prototype to avoid an error. */
36499 /* We use char because int might match the return type of a gcc2
36500 builtin and then its argument prototype would still apply. */
36501 char lwp_create ();
36510 rm -f conftest.$ac_objext conftest$ac_exeext
36511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36512 (eval $ac_link) 2>conftest.er1
36514 grep -v '^ *+' conftest.er1 >conftest.err
36516 cat conftest.err >&5
36517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518 (exit $ac_status); } &&
36519 { ac_try='test -z "$ac_c_werror_flag"
36520 || test ! -s conftest.err'
36521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36522 (eval $ac_try) 2>&5
36524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525 (exit $ac_status); }; } &&
36526 { ac_try='test -s conftest$ac_exeext'
36527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36528 (eval $ac_try) 2>&5
36530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531 (exit $ac_status); }; }; then
36532 ac_cv_lib_lwp_lwp_create=yes
36534 echo "$as_me: failed program was:" >&5
36535 sed 's/^/| /' conftest.$ac_ext >&5
36537 ac_cv_lib_lwp_lwp_create=no
36539 rm -f conftest.err conftest.$ac_objext \
36540 conftest$ac_exeext conftest.$ac_ext
36541 LIBS=$ac_check_lib_save_LIBS
36543 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36544 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36545 if test $ac_cv_lib_lwp_lwp_create = yes; then
36552 if test $have_lwp = yes ; then
36554 cat >>confdefs.h <<\_ACEOF
36558 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36559 ol_link_threads=lwp
36561 if test $ol_with_yielding_select = auto ; then
36562 ol_with_yielding_select=no
36568 if test $ol_with_yielding_select = yes ; then
36570 cat >>confdefs.h <<\_ACEOF
36571 #define HAVE_YIELDING_SELECT 1
36576 if test $ol_with_threads = manual ; then
36577 ol_link_threads=yes
36579 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36580 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36584 for ac_header in pthread.h sched.h
36586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36588 echo "$as_me:$LINENO: checking for $ac_header" >&5
36589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36591 echo $ECHO_N "(cached) $ECHO_C" >&6
36593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36596 # Is the header compilable?
36597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36599 cat >conftest.$ac_ext <<_ACEOF
36602 cat confdefs.h >>conftest.$ac_ext
36603 cat >>conftest.$ac_ext <<_ACEOF
36604 /* end confdefs.h. */
36605 $ac_includes_default
36606 #include <$ac_header>
36608 rm -f conftest.$ac_objext
36609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36610 (eval $ac_compile) 2>conftest.er1
36612 grep -v '^ *+' conftest.er1 >conftest.err
36614 cat conftest.err >&5
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); } &&
36617 { ac_try='test -z "$ac_c_werror_flag"
36618 || test ! -s conftest.err'
36619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36620 (eval $ac_try) 2>&5
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); }; } &&
36624 { ac_try='test -s conftest.$ac_objext'
36625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36626 (eval $ac_try) 2>&5
36628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629 (exit $ac_status); }; }; then
36630 ac_header_compiler=yes
36632 echo "$as_me: failed program was:" >&5
36633 sed 's/^/| /' conftest.$ac_ext >&5
36635 ac_header_compiler=no
36637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36639 echo "${ECHO_T}$ac_header_compiler" >&6
36641 # Is the header present?
36642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36644 cat >conftest.$ac_ext <<_ACEOF
36647 cat confdefs.h >>conftest.$ac_ext
36648 cat >>conftest.$ac_ext <<_ACEOF
36649 /* end confdefs.h. */
36650 #include <$ac_header>
36652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36655 grep -v '^ *+' conftest.er1 >conftest.err
36657 cat conftest.err >&5
36658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659 (exit $ac_status); } >/dev/null; then
36660 if test -s conftest.err; then
36661 ac_cpp_err=$ac_c_preproc_warn_flag
36662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36669 if test -z "$ac_cpp_err"; then
36670 ac_header_preproc=yes
36672 echo "$as_me: failed program was:" >&5
36673 sed 's/^/| /' conftest.$ac_ext >&5
36675 ac_header_preproc=no
36677 rm -f conftest.err conftest.$ac_ext
36678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36679 echo "${ECHO_T}$ac_header_preproc" >&6
36681 # So? What about this header?
36682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36688 ac_header_preproc=yes
36691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36705 ## ------------------------------------------ ##
36706 ## Report this to the AC_PACKAGE_NAME lists. ##
36707 ## ------------------------------------------ ##
36710 sed "s/^/$as_me: WARNING: /" >&2
36713 echo "$as_me:$LINENO: checking for $ac_header" >&5
36714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36716 echo $ECHO_N "(cached) $ECHO_C" >&6
36718 eval "$as_ac_Header=\$ac_header_preproc"
36720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36725 cat >>confdefs.h <<_ACEOF
36726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36735 for ac_func in sched_yield pthread_yield
36737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36738 echo "$as_me:$LINENO: checking for $ac_func" >&5
36739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36740 if eval "test \"\${$as_ac_var+set}\" = set"; then
36741 echo $ECHO_N "(cached) $ECHO_C" >&6
36743 cat >conftest.$ac_ext <<_ACEOF
36746 cat confdefs.h >>conftest.$ac_ext
36747 cat >>conftest.$ac_ext <<_ACEOF
36748 /* end confdefs.h. */
36749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36751 #define $ac_func innocuous_$ac_func
36753 /* System header to define __stub macros and hopefully few prototypes,
36754 which can conflict with char $ac_func (); below.
36755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36756 <limits.h> exists even on freestanding compilers. */
36759 # include <limits.h>
36761 # include <assert.h>
36766 /* Override any gcc2 internal prototype to avoid an error. */
36771 /* We use char because int might match the return type of a gcc2
36772 builtin and then its argument prototype would still apply. */
36774 /* The GNU C library defines this for functions which it implements
36775 to always fail with ENOSYS. Some functions are actually named
36776 something starting with __ and the normal name is an alias. */
36777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36780 char (*f) () = $ac_func;
36789 return f != $ac_func;
36794 rm -f conftest.$ac_objext conftest$ac_exeext
36795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36796 (eval $ac_link) 2>conftest.er1
36798 grep -v '^ *+' conftest.er1 >conftest.err
36800 cat conftest.err >&5
36801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 (exit $ac_status); } &&
36803 { ac_try='test -z "$ac_c_werror_flag"
36804 || test ! -s conftest.err'
36805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36806 (eval $ac_try) 2>&5
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); }; } &&
36810 { ac_try='test -s conftest$ac_exeext'
36811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36812 (eval $ac_try) 2>&5
36814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815 (exit $ac_status); }; }; then
36816 eval "$as_ac_var=yes"
36818 echo "$as_me: failed program was:" >&5
36819 sed 's/^/| /' conftest.$ac_ext >&5
36821 eval "$as_ac_var=no"
36823 rm -f conftest.err conftest.$ac_objext \
36824 conftest$ac_exeext conftest.$ac_ext
36826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36828 if test `eval echo '${'$as_ac_var'}'` = yes; then
36829 cat >>confdefs.h <<_ACEOF
36830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36837 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36838 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36839 if test "${ol_cv_header_linux_threads+set}" = set; then
36840 echo $ECHO_N "(cached) $ECHO_C" >&6
36842 cat >conftest.$ac_ext <<_ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h. */
36848 #include <pthread.h>
36850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36851 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36852 ol_cv_header_linux_threads=yes
36854 ol_cv_header_linux_threads=no
36860 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36861 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36862 if test $ol_cv_header_linux_threads = yes; then
36864 cat >>confdefs.h <<\_ACEOF
36865 #define HAVE_LINUX_THREADS 1
36872 for ac_header in mach/cthreads.h
36874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36876 echo "$as_me:$LINENO: checking for $ac_header" >&5
36877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36879 echo $ECHO_N "(cached) $ECHO_C" >&6
36881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36884 # Is the header compilable?
36885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36887 cat >conftest.$ac_ext <<_ACEOF
36890 cat confdefs.h >>conftest.$ac_ext
36891 cat >>conftest.$ac_ext <<_ACEOF
36892 /* end confdefs.h. */
36893 $ac_includes_default
36894 #include <$ac_header>
36896 rm -f conftest.$ac_objext
36897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36898 (eval $ac_compile) 2>conftest.er1
36900 grep -v '^ *+' conftest.er1 >conftest.err
36902 cat conftest.err >&5
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); } &&
36905 { ac_try='test -z "$ac_c_werror_flag"
36906 || test ! -s conftest.err'
36907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36908 (eval $ac_try) 2>&5
36910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36911 (exit $ac_status); }; } &&
36912 { ac_try='test -s conftest.$ac_objext'
36913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36914 (eval $ac_try) 2>&5
36916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36917 (exit $ac_status); }; }; then
36918 ac_header_compiler=yes
36920 echo "$as_me: failed program was:" >&5
36921 sed 's/^/| /' conftest.$ac_ext >&5
36923 ac_header_compiler=no
36925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36927 echo "${ECHO_T}$ac_header_compiler" >&6
36929 # Is the header present?
36930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36932 cat >conftest.$ac_ext <<_ACEOF
36935 cat confdefs.h >>conftest.$ac_ext
36936 cat >>conftest.$ac_ext <<_ACEOF
36937 /* end confdefs.h. */
36938 #include <$ac_header>
36940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36943 grep -v '^ *+' conftest.er1 >conftest.err
36945 cat conftest.err >&5
36946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947 (exit $ac_status); } >/dev/null; then
36948 if test -s conftest.err; then
36949 ac_cpp_err=$ac_c_preproc_warn_flag
36950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36957 if test -z "$ac_cpp_err"; then
36958 ac_header_preproc=yes
36960 echo "$as_me: failed program was:" >&5
36961 sed 's/^/| /' conftest.$ac_ext >&5
36963 ac_header_preproc=no
36965 rm -f conftest.err conftest.$ac_ext
36966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36967 echo "${ECHO_T}$ac_header_preproc" >&6
36969 # So? What about this header?
36970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36976 ac_header_preproc=yes
36979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36993 ## ------------------------------------------ ##
36994 ## Report this to the AC_PACKAGE_NAME lists. ##
36995 ## ------------------------------------------ ##
36998 sed "s/^/$as_me: WARNING: /" >&2
37001 echo "$as_me:$LINENO: checking for $ac_header" >&5
37002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37004 echo $ECHO_N "(cached) $ECHO_C" >&6
37006 eval "$as_ac_Header=\$ac_header_preproc"
37008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37013 cat >>confdefs.h <<_ACEOF
37014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37022 for ac_header in lwp/lwp.h
37024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37026 echo "$as_me:$LINENO: checking for $ac_header" >&5
37027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37029 echo $ECHO_N "(cached) $ECHO_C" >&6
37031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37034 # Is the header compilable?
37035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37037 cat >conftest.$ac_ext <<_ACEOF
37040 cat confdefs.h >>conftest.$ac_ext
37041 cat >>conftest.$ac_ext <<_ACEOF
37042 /* end confdefs.h. */
37043 $ac_includes_default
37044 #include <$ac_header>
37046 rm -f conftest.$ac_objext
37047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37048 (eval $ac_compile) 2>conftest.er1
37050 grep -v '^ *+' conftest.er1 >conftest.err
37052 cat conftest.err >&5
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); } &&
37055 { ac_try='test -z "$ac_c_werror_flag"
37056 || test ! -s conftest.err'
37057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37058 (eval $ac_try) 2>&5
37060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061 (exit $ac_status); }; } &&
37062 { ac_try='test -s conftest.$ac_objext'
37063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37064 (eval $ac_try) 2>&5
37066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067 (exit $ac_status); }; }; then
37068 ac_header_compiler=yes
37070 echo "$as_me: failed program was:" >&5
37071 sed 's/^/| /' conftest.$ac_ext >&5
37073 ac_header_compiler=no
37075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37077 echo "${ECHO_T}$ac_header_compiler" >&6
37079 # Is the header present?
37080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37082 cat >conftest.$ac_ext <<_ACEOF
37085 cat confdefs.h >>conftest.$ac_ext
37086 cat >>conftest.$ac_ext <<_ACEOF
37087 /* end confdefs.h. */
37088 #include <$ac_header>
37090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37093 grep -v '^ *+' conftest.er1 >conftest.err
37095 cat conftest.err >&5
37096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37097 (exit $ac_status); } >/dev/null; then
37098 if test -s conftest.err; then
37099 ac_cpp_err=$ac_c_preproc_warn_flag
37100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37107 if test -z "$ac_cpp_err"; then
37108 ac_header_preproc=yes
37110 echo "$as_me: failed program was:" >&5
37111 sed 's/^/| /' conftest.$ac_ext >&5
37113 ac_header_preproc=no
37115 rm -f conftest.err conftest.$ac_ext
37116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37117 echo "${ECHO_T}$ac_header_preproc" >&6
37119 # So? What about this header?
37120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37126 ac_header_preproc=yes
37129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37143 ## ------------------------------------------ ##
37144 ## Report this to the AC_PACKAGE_NAME lists. ##
37145 ## ------------------------------------------ ##
37148 sed "s/^/$as_me: WARNING: /" >&2
37151 echo "$as_me:$LINENO: checking for $ac_header" >&5
37152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37154 echo $ECHO_N "(cached) $ECHO_C" >&6
37156 eval "$as_ac_Header=\$ac_header_preproc"
37158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37163 cat >>confdefs.h <<_ACEOF
37164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37173 for ac_header in thread.h synch.h
37175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37177 echo "$as_me:$LINENO: checking for $ac_header" >&5
37178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37180 echo $ECHO_N "(cached) $ECHO_C" >&6
37182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37185 # Is the header compilable?
37186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37188 cat >conftest.$ac_ext <<_ACEOF
37191 cat confdefs.h >>conftest.$ac_ext
37192 cat >>conftest.$ac_ext <<_ACEOF
37193 /* end confdefs.h. */
37194 $ac_includes_default
37195 #include <$ac_header>
37197 rm -f conftest.$ac_objext
37198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37199 (eval $ac_compile) 2>conftest.er1
37201 grep -v '^ *+' conftest.er1 >conftest.err
37203 cat conftest.err >&5
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); } &&
37206 { ac_try='test -z "$ac_c_werror_flag"
37207 || test ! -s conftest.err'
37208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209 (eval $ac_try) 2>&5
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); }; } &&
37213 { ac_try='test -s conftest.$ac_objext'
37214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215 (eval $ac_try) 2>&5
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); }; }; then
37219 ac_header_compiler=yes
37221 echo "$as_me: failed program was:" >&5
37222 sed 's/^/| /' conftest.$ac_ext >&5
37224 ac_header_compiler=no
37226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37228 echo "${ECHO_T}$ac_header_compiler" >&6
37230 # Is the header present?
37231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37233 cat >conftest.$ac_ext <<_ACEOF
37236 cat confdefs.h >>conftest.$ac_ext
37237 cat >>conftest.$ac_ext <<_ACEOF
37238 /* end confdefs.h. */
37239 #include <$ac_header>
37241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37244 grep -v '^ *+' conftest.er1 >conftest.err
37246 cat conftest.err >&5
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); } >/dev/null; then
37249 if test -s conftest.err; then
37250 ac_cpp_err=$ac_c_preproc_warn_flag
37251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37258 if test -z "$ac_cpp_err"; then
37259 ac_header_preproc=yes
37261 echo "$as_me: failed program was:" >&5
37262 sed 's/^/| /' conftest.$ac_ext >&5
37264 ac_header_preproc=no
37266 rm -f conftest.err conftest.$ac_ext
37267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37268 echo "${ECHO_T}$ac_header_preproc" >&6
37270 # So? What about this header?
37271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37277 ac_header_preproc=yes
37280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37294 ## ------------------------------------------ ##
37295 ## Report this to the AC_PACKAGE_NAME lists. ##
37296 ## ------------------------------------------ ##
37299 sed "s/^/$as_me: WARNING: /" >&2
37302 echo "$as_me:$LINENO: checking for $ac_header" >&5
37303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37305 echo $ECHO_N "(cached) $ECHO_C" >&6
37307 eval "$as_ac_Header=\$ac_header_preproc"
37309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37314 cat >>confdefs.h <<_ACEOF
37315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37324 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37325 cat >>confdefs.h <<\_ACEOF
37326 #define REENTRANT 1
37329 cat >>confdefs.h <<\_ACEOF
37330 #define _REENTRANT 1
37333 cat >>confdefs.h <<\_ACEOF
37334 #define THREAD_SAFE 1
37337 cat >>confdefs.h <<\_ACEOF
37338 #define _THREAD_SAFE 1
37341 cat >>confdefs.h <<\_ACEOF
37342 #define THREADSAFE 1
37345 cat >>confdefs.h <<\_ACEOF
37346 #define _THREADSAFE 1
37349 cat >>confdefs.h <<\_ACEOF
37350 #define _SGI_MP_SOURCE 1
37354 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37355 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37356 if test "${ol_cv_errno_thread_specific+set}" = set; then
37357 echo $ECHO_N "(cached) $ECHO_C" >&6
37360 cat >conftest.$ac_ext <<_ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h. */
37375 rm -f conftest.$ac_objext conftest$ac_exeext
37376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37377 (eval $ac_link) 2>conftest.er1
37379 grep -v '^ *+' conftest.er1 >conftest.err
37381 cat conftest.err >&5
37382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37383 (exit $ac_status); } &&
37384 { ac_try='test -z "$ac_c_werror_flag"
37385 || test ! -s conftest.err'
37386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37387 (eval $ac_try) 2>&5
37389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 (exit $ac_status); }; } &&
37391 { ac_try='test -s conftest$ac_exeext'
37392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37393 (eval $ac_try) 2>&5
37395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396 (exit $ac_status); }; }; then
37397 ol_cv_errno_thread_specific=yes
37399 echo "$as_me: failed program was:" >&5
37400 sed 's/^/| /' conftest.$ac_ext >&5
37402 ol_cv_errno_thread_specific=no
37404 rm -f conftest.err conftest.$ac_objext \
37405 conftest$ac_exeext conftest.$ac_ext
37408 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37409 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37411 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37412 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37413 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37414 echo $ECHO_N "(cached) $ECHO_C" >&6
37417 cat >conftest.$ac_ext <<_ACEOF
37420 cat confdefs.h >>conftest.$ac_ext
37421 cat >>conftest.$ac_ext <<_ACEOF
37422 /* end confdefs.h. */
37432 rm -f conftest.$ac_objext conftest$ac_exeext
37433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37434 (eval $ac_link) 2>conftest.er1
37436 grep -v '^ *+' conftest.er1 >conftest.err
37438 cat conftest.err >&5
37439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440 (exit $ac_status); } &&
37441 { ac_try='test -z "$ac_c_werror_flag"
37442 || test ! -s conftest.err'
37443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37444 (eval $ac_try) 2>&5
37446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447 (exit $ac_status); }; } &&
37448 { ac_try='test -s conftest$ac_exeext'
37449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450 (eval $ac_try) 2>&5
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; }; then
37454 ol_cv_h_errno_thread_specific=yes
37456 echo "$as_me: failed program was:" >&5
37457 sed 's/^/| /' conftest.$ac_ext >&5
37459 ol_cv_h_errno_thread_specific=no
37461 rm -f conftest.err conftest.$ac_objext \
37462 conftest$ac_exeext conftest.$ac_ext
37465 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37466 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37468 if test $ol_cv_errno_thread_specific != yes \
37469 -o $ol_cv_h_errno_thread_specific != yes ; then
37470 LIBS="$LTHREAD_LIBS $LIBS"
37476 if test $ol_link_threads = no ; then
37477 if test $ol_with_threads = yes ; then
37478 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37479 echo "$as_me: error: no suitable thread support" >&2;}
37480 { (exit 1); exit 1; }; }
37483 if test $ol_with_threads = auto ; then
37484 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37485 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37490 cat >>confdefs.h <<\_ACEOF
37491 #define NO_THREADS 1
37497 if test $ol_link_threads != no ; then
37499 cat >>confdefs.h <<\_ACEOF
37500 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37510 gethostbyname_r gethostbyaddr_r \
37513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37514 echo "$as_me:$LINENO: checking for $ac_func" >&5
37515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37516 if eval "test \"\${$as_ac_var+set}\" = set"; then
37517 echo $ECHO_N "(cached) $ECHO_C" >&6
37519 cat >conftest.$ac_ext <<_ACEOF
37522 cat confdefs.h >>conftest.$ac_ext
37523 cat >>conftest.$ac_ext <<_ACEOF
37524 /* end confdefs.h. */
37525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37527 #define $ac_func innocuous_$ac_func
37529 /* System header to define __stub macros and hopefully few prototypes,
37530 which can conflict with char $ac_func (); below.
37531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37532 <limits.h> exists even on freestanding compilers. */
37535 # include <limits.h>
37537 # include <assert.h>
37542 /* Override any gcc2 internal prototype to avoid an error. */
37547 /* We use char because int might match the return type of a gcc2
37548 builtin and then its argument prototype would still apply. */
37550 /* The GNU C library defines this for functions which it implements
37551 to always fail with ENOSYS. Some functions are actually named
37552 something starting with __ and the normal name is an alias. */
37553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37556 char (*f) () = $ac_func;
37565 return f != $ac_func;
37570 rm -f conftest.$ac_objext conftest$ac_exeext
37571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37572 (eval $ac_link) 2>conftest.er1
37574 grep -v '^ *+' conftest.er1 >conftest.err
37576 cat conftest.err >&5
37577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37578 (exit $ac_status); } &&
37579 { ac_try='test -z "$ac_c_werror_flag"
37580 || test ! -s conftest.err'
37581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37582 (eval $ac_try) 2>&5
37584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585 (exit $ac_status); }; } &&
37586 { ac_try='test -s conftest$ac_exeext'
37587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37588 (eval $ac_try) 2>&5
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); }; }; then
37592 eval "$as_ac_var=yes"
37594 echo "$as_me: failed program was:" >&5
37595 sed 's/^/| /' conftest.$ac_ext >&5
37597 eval "$as_ac_var=no"
37599 rm -f conftest.err conftest.$ac_objext \
37600 conftest$ac_exeext conftest.$ac_ext
37602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37604 if test `eval echo '${'$as_ac_var'}'` = yes; then
37605 cat >>confdefs.h <<_ACEOF
37606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37613 if test "$ac_cv_func_ctime_r" = no ; then
37614 ol_cv_func_ctime_r_nargs=0
37616 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37617 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37618 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37619 echo $ECHO_N "(cached) $ECHO_C" >&6
37621 cat >conftest.$ac_ext <<_ACEOF
37624 cat confdefs.h >>conftest.$ac_ext
37625 cat >>conftest.$ac_ext <<_ACEOF
37626 /* end confdefs.h. */
37631 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37636 rm -f conftest.$ac_objext
37637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37638 (eval $ac_compile) 2>conftest.er1
37640 grep -v '^ *+' conftest.er1 >conftest.err
37642 cat conftest.err >&5
37643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644 (exit $ac_status); } &&
37645 { ac_try='test -z "$ac_c_werror_flag"
37646 || test ! -s conftest.err'
37647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37648 (eval $ac_try) 2>&5
37650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37651 (exit $ac_status); }; } &&
37652 { ac_try='test -s conftest.$ac_objext'
37653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37654 (eval $ac_try) 2>&5
37656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657 (exit $ac_status); }; }; then
37658 ol_cv_func_ctime_r_nargs3=yes
37660 echo "$as_me: failed program was:" >&5
37661 sed 's/^/| /' conftest.$ac_ext >&5
37663 ol_cv_func_ctime_r_nargs3=no
37665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37667 cat >conftest.$ac_ext <<_ACEOF
37670 cat confdefs.h >>conftest.$ac_ext
37671 cat >>conftest.$ac_ext <<_ACEOF
37672 /* end confdefs.h. */
37677 time_t ti; char *buffer; ctime_r(&ti,buffer);
37682 rm -f conftest.$ac_objext
37683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37684 (eval $ac_compile) 2>conftest.er1
37686 grep -v '^ *+' conftest.er1 >conftest.err
37688 cat conftest.err >&5
37689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37690 (exit $ac_status); } &&
37691 { ac_try='test -z "$ac_c_werror_flag"
37692 || test ! -s conftest.err'
37693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37694 (eval $ac_try) 2>&5
37696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697 (exit $ac_status); }; } &&
37698 { ac_try='test -s conftest.$ac_objext'
37699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37700 (eval $ac_try) 2>&5
37702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703 (exit $ac_status); }; }; then
37704 ol_cv_func_ctime_r_nargs2=yes
37706 echo "$as_me: failed program was:" >&5
37707 sed 's/^/| /' conftest.$ac_ext >&5
37709 ol_cv_func_ctime_r_nargs2=no
37711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37713 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37714 $ol_cv_func_ctime_r_nargs2 = no ; then
37716 ol_cv_func_ctime_r_nargs=3
37718 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37719 $ol_cv_func_ctime_r_nargs2 = yes ; then
37721 ol_cv_func_ctime_r_nargs=2
37724 ol_cv_func_ctime_r_nargs=0
37728 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37729 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37731 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37733 cat >>confdefs.h <<_ACEOF
37734 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37741 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37742 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37743 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37744 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37745 echo $ECHO_N "(cached) $ECHO_C" >&6
37747 cat >conftest.$ac_ext <<_ACEOF
37750 cat confdefs.h >>conftest.$ac_ext
37751 cat >>conftest.$ac_ext <<_ACEOF
37752 /* end confdefs.h. */
37753 #include <sys/types.h>
37754 #include <sys/socket.h>
37755 #include <netinet/in.h>
37757 #define BUFSIZE (sizeof(struct hostent)+10)
37761 struct hostent hent; char buffer[BUFSIZE];
37762 int bufsize=BUFSIZE;int h_errno;
37763 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37764 buffer, bufsize, &h_errno);
37769 rm -f conftest.$ac_objext
37770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37771 (eval $ac_compile) 2>conftest.er1
37773 grep -v '^ *+' conftest.er1 >conftest.err
37775 cat conftest.err >&5
37776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777 (exit $ac_status); } &&
37778 { ac_try='test -z "$ac_c_werror_flag"
37779 || test ! -s conftest.err'
37780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37781 (eval $ac_try) 2>&5
37783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784 (exit $ac_status); }; } &&
37785 { ac_try='test -s conftest.$ac_objext'
37786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37787 (eval $ac_try) 2>&5
37789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790 (exit $ac_status); }; }; then
37791 ol_cv_func_gethostbyname_r_nargs5=yes
37793 echo "$as_me: failed program was:" >&5
37794 sed 's/^/| /' conftest.$ac_ext >&5
37796 ol_cv_func_gethostbyname_r_nargs5=no
37798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37800 cat >conftest.$ac_ext <<_ACEOF
37803 cat confdefs.h >>conftest.$ac_ext
37804 cat >>conftest.$ac_ext <<_ACEOF
37805 /* end confdefs.h. */
37806 #include <sys/types.h>
37807 #include <sys/socket.h>
37808 #include <netinet/in.h>
37810 #define BUFSIZE (sizeof(struct hostent)+10)
37814 struct hostent hent;struct hostent *rhent;
37815 char buffer[BUFSIZE];
37816 int bufsize=BUFSIZE;int h_errno;
37817 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37823 rm -f conftest.$ac_objext
37824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37825 (eval $ac_compile) 2>conftest.er1
37827 grep -v '^ *+' conftest.er1 >conftest.err
37829 cat conftest.err >&5
37830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831 (exit $ac_status); } &&
37832 { ac_try='test -z "$ac_c_werror_flag"
37833 || test ! -s conftest.err'
37834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37835 (eval $ac_try) 2>&5
37837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838 (exit $ac_status); }; } &&
37839 { ac_try='test -s conftest.$ac_objext'
37840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37841 (eval $ac_try) 2>&5
37843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37844 (exit $ac_status); }; }; then
37845 ol_cv_func_gethostbyname_r_nargs6=yes
37847 echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37850 ol_cv_func_gethostbyname_r_nargs6=no
37852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37854 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37855 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37857 ol_cv_func_gethostbyname_r_nargs=5
37859 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37860 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37862 ol_cv_func_gethostbyname_r_nargs=6
37865 ol_cv_func_gethostbyname_r_nargs=0
37869 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37870 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37871 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37873 cat >>confdefs.h <<_ACEOF
37874 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37880 ol_cv_func_gethostbyname_r_nargs=0
37883 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37884 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37885 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37886 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37887 echo $ECHO_N "(cached) $ECHO_C" >&6
37889 cat >conftest.$ac_ext <<_ACEOF
37892 cat confdefs.h >>conftest.$ac_ext
37893 cat >>conftest.$ac_ext <<_ACEOF
37894 /* end confdefs.h. */
37895 #include <sys/types.h>
37896 #include <sys/socket.h>
37897 #include <netinet/in.h>
37899 #define BUFSIZE (sizeof(struct hostent)+10)
37903 struct hostent hent; char buffer[BUFSIZE];
37904 struct in_addr add;
37905 size_t alen=sizeof(struct in_addr);
37906 int bufsize=BUFSIZE;int h_errno;
37907 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37908 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37913 rm -f conftest.$ac_objext
37914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37915 (eval $ac_compile) 2>conftest.er1
37917 grep -v '^ *+' conftest.er1 >conftest.err
37919 cat conftest.err >&5
37920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921 (exit $ac_status); } &&
37922 { ac_try='test -z "$ac_c_werror_flag"
37923 || test ! -s conftest.err'
37924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37925 (eval $ac_try) 2>&5
37927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928 (exit $ac_status); }; } &&
37929 { ac_try='test -s conftest.$ac_objext'
37930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37931 (eval $ac_try) 2>&5
37933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934 (exit $ac_status); }; }; then
37935 ol_cv_func_gethostbyaddr_r_nargs7=yes
37937 echo "$as_me: failed program was:" >&5
37938 sed 's/^/| /' conftest.$ac_ext >&5
37940 ol_cv_func_gethostbyaddr_r_nargs7=no
37942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37944 cat >conftest.$ac_ext <<_ACEOF
37947 cat confdefs.h >>conftest.$ac_ext
37948 cat >>conftest.$ac_ext <<_ACEOF
37949 /* end confdefs.h. */
37950 #include <sys/types.h>
37951 #include <sys/socket.h>
37952 #include <netinet/in.h>
37954 #define BUFSIZE (sizeof(struct hostent)+10)
37958 struct hostent hent;
37959 struct hostent *rhent; char buffer[BUFSIZE];
37960 struct in_addr add;
37961 size_t alen=sizeof(struct in_addr);
37962 int bufsize=BUFSIZE;int h_errno;
37963 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37964 alen, AF_INET, &hent, buffer, bufsize,
37970 rm -f conftest.$ac_objext
37971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37972 (eval $ac_compile) 2>conftest.er1
37974 grep -v '^ *+' conftest.er1 >conftest.err
37976 cat conftest.err >&5
37977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37978 (exit $ac_status); } &&
37979 { ac_try='test -z "$ac_c_werror_flag"
37980 || test ! -s conftest.err'
37981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37982 (eval $ac_try) 2>&5
37984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37985 (exit $ac_status); }; } &&
37986 { ac_try='test -s conftest.$ac_objext'
37987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988 (eval $ac_try) 2>&5
37990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); }; }; then
37992 ol_cv_func_gethostbyaddr_r_nargs8=yes
37994 echo "$as_me: failed program was:" >&5
37995 sed 's/^/| /' conftest.$ac_ext >&5
37997 ol_cv_func_gethostbyaddr_r_nargs8=no
37999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38001 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
38002 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
38004 ol_cv_func_gethostbyaddr_r_nargs=7
38006 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
38007 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
38009 ol_cv_func_gethostbyaddr_r_nargs=8
38012 ol_cv_func_gethostbyaddr_r_nargs=0
38016 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
38017 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
38018 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
38020 cat >>confdefs.h <<_ACEOF
38021 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
38027 ol_cv_func_gethostbyaddr_r_nargs=0
38032 if test $ol_enable_ldbm_api = auto \
38033 -o $ol_enable_ldbm_api = berkeley \
38034 -o $ol_enable_ldbm_api = bcompat ; then
38036 if test $ol_enable_ldbm_api = bcompat; then \
38039 for ac_header in db_185.h db.h
38041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38043 echo "$as_me:$LINENO: checking for $ac_header" >&5
38044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38046 echo $ECHO_N "(cached) $ECHO_C" >&6
38048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38051 # Is the header compilable?
38052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38054 cat >conftest.$ac_ext <<_ACEOF
38057 cat confdefs.h >>conftest.$ac_ext
38058 cat >>conftest.$ac_ext <<_ACEOF
38059 /* end confdefs.h. */
38060 $ac_includes_default
38061 #include <$ac_header>
38063 rm -f conftest.$ac_objext
38064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38065 (eval $ac_compile) 2>conftest.er1
38067 grep -v '^ *+' conftest.er1 >conftest.err
38069 cat conftest.err >&5
38070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071 (exit $ac_status); } &&
38072 { ac_try='test -z "$ac_c_werror_flag"
38073 || test ! -s conftest.err'
38074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38075 (eval $ac_try) 2>&5
38077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078 (exit $ac_status); }; } &&
38079 { ac_try='test -s conftest.$ac_objext'
38080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38081 (eval $ac_try) 2>&5
38083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084 (exit $ac_status); }; }; then
38085 ac_header_compiler=yes
38087 echo "$as_me: failed program was:" >&5
38088 sed 's/^/| /' conftest.$ac_ext >&5
38090 ac_header_compiler=no
38092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38094 echo "${ECHO_T}$ac_header_compiler" >&6
38096 # Is the header present?
38097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38099 cat >conftest.$ac_ext <<_ACEOF
38102 cat confdefs.h >>conftest.$ac_ext
38103 cat >>conftest.$ac_ext <<_ACEOF
38104 /* end confdefs.h. */
38105 #include <$ac_header>
38107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38110 grep -v '^ *+' conftest.er1 >conftest.err
38112 cat conftest.err >&5
38113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114 (exit $ac_status); } >/dev/null; then
38115 if test -s conftest.err; then
38116 ac_cpp_err=$ac_c_preproc_warn_flag
38117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38124 if test -z "$ac_cpp_err"; then
38125 ac_header_preproc=yes
38127 echo "$as_me: failed program was:" >&5
38128 sed 's/^/| /' conftest.$ac_ext >&5
38130 ac_header_preproc=no
38132 rm -f conftest.err conftest.$ac_ext
38133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38134 echo "${ECHO_T}$ac_header_preproc" >&6
38136 # So? What about this header?
38137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38143 ac_header_preproc=yes
38146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38160 ## ------------------------------------------ ##
38161 ## Report this to the AC_PACKAGE_NAME lists. ##
38162 ## ------------------------------------------ ##
38165 sed "s/^/$as_me: WARNING: /" >&2
38168 echo "$as_me:$LINENO: checking for $ac_header" >&5
38169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38171 echo $ECHO_N "(cached) $ECHO_C" >&6
38173 eval "$as_ac_Header=\$ac_header_preproc"
38175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38180 cat >>confdefs.h <<_ACEOF
38181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38188 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38189 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38190 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38191 if test "${ol_cv_header_db1+set}" = set; then
38192 echo $ECHO_N "(cached) $ECHO_C" >&6
38195 cat >conftest.$ac_ext <<_ACEOF
38198 cat confdefs.h >>conftest.$ac_ext
38199 cat >>conftest.$ac_ext <<_ACEOF
38200 /* end confdefs.h. */
38203 # include <db_185.h>
38208 /* this check could be improved */
38209 #ifndef DB_VERSION_MAJOR
38210 # define DB_VERSION_MAJOR 1
38213 #if DB_VERSION_MAJOR == 1
38218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38219 $EGREP "__db_version_1" >/dev/null 2>&1; then
38220 ol_cv_header_db1=yes
38222 ol_cv_header_db1=no
38227 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38228 echo "${ECHO_T}$ol_cv_header_db1" >&6
38230 if test $ol_cv_header_db1 = yes ; then
38232 if test $ol_cv_lib_db = no ; then
38233 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38234 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38235 if test "${ol_cv_db_none+set}" = set; then
38236 echo $ECHO_N "(cached) $ECHO_C" >&6
38241 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38243 cat >conftest.$ac_ext <<_ACEOF
38246 cat confdefs.h >>conftest.$ac_ext
38247 cat >>conftest.$ac_ext <<_ACEOF
38248 /* end confdefs.h. */
38250 #ifdef HAVE_DB_185_H
38251 # include <db_185.h>
38256 #ifndef DB_VERSION_MAJOR
38257 # define DB_VERSION_MAJOR 1
38261 #define NULL ((void*)0)
38268 #if DB_VERSION_MAJOR > 1
38271 int major, minor, patch;
38273 version = db_version( &major, &minor, &patch );
38275 if( major != DB_VERSION_MAJOR ||
38276 minor < DB_VERSION_MINOR )
38278 printf("Berkeley DB version mismatch\n"
38279 "\theader: %s\n\tlibrary: %s\n",
38280 DB_VERSION_STRING, version);
38286 #if DB_VERSION_MAJOR > 2
38287 db_env_create( NULL, 0 );
38288 #elif DB_VERSION_MAJOR > 1
38289 db_appexit( NULL );
38291 (void) dbopen( NULL, 0, 0, 0, NULL);
38298 rm -f conftest.$ac_objext conftest$ac_exeext
38299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38300 (eval $ac_link) 2>conftest.er1
38302 grep -v '^ *+' conftest.er1 >conftest.err
38304 cat conftest.err >&5
38305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306 (exit $ac_status); } &&
38307 { ac_try='test -z "$ac_c_werror_flag"
38308 || test ! -s conftest.err'
38309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38310 (eval $ac_try) 2>&5
38312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38313 (exit $ac_status); }; } &&
38314 { ac_try='test -s conftest$ac_exeext'
38315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38316 (eval $ac_try) 2>&5
38318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319 (exit $ac_status); }; }; then
38322 echo "$as_me: failed program was:" >&5
38323 sed 's/^/| /' conftest.$ac_ext >&5
38327 rm -f conftest.err conftest.$ac_objext \
38328 conftest$ac_exeext conftest.$ac_ext
38333 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38334 echo "${ECHO_T}$ol_cv_db_none" >&6
38336 if test $ol_cv_db_none = yes ; then
38341 if test $ol_cv_lib_db = no ; then
38342 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38343 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38344 if test "${ol_cv_db_db43+set}" = set; then
38345 echo $ECHO_N "(cached) $ECHO_C" >&6
38350 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38352 cat >conftest.$ac_ext <<_ACEOF
38355 cat confdefs.h >>conftest.$ac_ext
38356 cat >>conftest.$ac_ext <<_ACEOF
38357 /* end confdefs.h. */
38359 #ifdef HAVE_DB_185_H
38360 # include <db_185.h>
38365 #ifndef DB_VERSION_MAJOR
38366 # define DB_VERSION_MAJOR 1
38370 #define NULL ((void*)0)
38377 #if DB_VERSION_MAJOR > 1
38380 int major, minor, patch;
38382 version = db_version( &major, &minor, &patch );
38384 if( major != DB_VERSION_MAJOR ||
38385 minor < DB_VERSION_MINOR )
38387 printf("Berkeley DB version mismatch\n"
38388 "\theader: %s\n\tlibrary: %s\n",
38389 DB_VERSION_STRING, version);
38395 #if DB_VERSION_MAJOR > 2
38396 db_env_create( NULL, 0 );
38397 #elif DB_VERSION_MAJOR > 1
38398 db_appexit( NULL );
38400 (void) dbopen( NULL, 0, 0, 0, NULL);
38407 rm -f conftest.$ac_objext conftest$ac_exeext
38408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38409 (eval $ac_link) 2>conftest.er1
38411 grep -v '^ *+' conftest.er1 >conftest.err
38413 cat conftest.err >&5
38414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38415 (exit $ac_status); } &&
38416 { ac_try='test -z "$ac_c_werror_flag"
38417 || test ! -s conftest.err'
38418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38419 (eval $ac_try) 2>&5
38421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38422 (exit $ac_status); }; } &&
38423 { ac_try='test -s conftest$ac_exeext'
38424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38425 (eval $ac_try) 2>&5
38427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428 (exit $ac_status); }; }; then
38431 echo "$as_me: failed program was:" >&5
38432 sed 's/^/| /' conftest.$ac_ext >&5
38436 rm -f conftest.err conftest.$ac_objext \
38437 conftest$ac_exeext conftest.$ac_ext
38442 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38443 echo "${ECHO_T}$ol_cv_db_db43" >&6
38445 if test $ol_cv_db_db43 = yes ; then
38446 ol_cv_lib_db=-ldb43
38450 if test $ol_cv_lib_db = no ; then
38451 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38452 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38453 if test "${ol_cv_db_db_43+set}" = set; then
38454 echo $ECHO_N "(cached) $ECHO_C" >&6
38459 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38461 cat >conftest.$ac_ext <<_ACEOF
38464 cat confdefs.h >>conftest.$ac_ext
38465 cat >>conftest.$ac_ext <<_ACEOF
38466 /* end confdefs.h. */
38468 #ifdef HAVE_DB_185_H
38469 # include <db_185.h>
38474 #ifndef DB_VERSION_MAJOR
38475 # define DB_VERSION_MAJOR 1
38479 #define NULL ((void*)0)
38486 #if DB_VERSION_MAJOR > 1
38489 int major, minor, patch;
38491 version = db_version( &major, &minor, &patch );
38493 if( major != DB_VERSION_MAJOR ||
38494 minor < DB_VERSION_MINOR )
38496 printf("Berkeley DB version mismatch\n"
38497 "\theader: %s\n\tlibrary: %s\n",
38498 DB_VERSION_STRING, version);
38504 #if DB_VERSION_MAJOR > 2
38505 db_env_create( NULL, 0 );
38506 #elif DB_VERSION_MAJOR > 1
38507 db_appexit( NULL );
38509 (void) dbopen( NULL, 0, 0, 0, NULL);
38516 rm -f conftest.$ac_objext conftest$ac_exeext
38517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38518 (eval $ac_link) 2>conftest.er1
38520 grep -v '^ *+' conftest.er1 >conftest.err
38522 cat conftest.err >&5
38523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524 (exit $ac_status); } &&
38525 { ac_try='test -z "$ac_c_werror_flag"
38526 || test ! -s conftest.err'
38527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38528 (eval $ac_try) 2>&5
38530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531 (exit $ac_status); }; } &&
38532 { ac_try='test -s conftest$ac_exeext'
38533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38534 (eval $ac_try) 2>&5
38536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38537 (exit $ac_status); }; }; then
38540 echo "$as_me: failed program was:" >&5
38541 sed 's/^/| /' conftest.$ac_ext >&5
38545 rm -f conftest.err conftest.$ac_objext \
38546 conftest$ac_exeext conftest.$ac_ext
38551 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38552 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38554 if test $ol_cv_db_db_43 = yes ; then
38555 ol_cv_lib_db=-ldb-43
38559 if test $ol_cv_lib_db = no ; then
38560 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38561 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38562 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38563 echo $ECHO_N "(cached) $ECHO_C" >&6
38568 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38570 cat >conftest.$ac_ext <<_ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h. */
38577 #ifdef HAVE_DB_185_H
38578 # include <db_185.h>
38583 #ifndef DB_VERSION_MAJOR
38584 # define DB_VERSION_MAJOR 1
38588 #define NULL ((void*)0)
38595 #if DB_VERSION_MAJOR > 1
38598 int major, minor, patch;
38600 version = db_version( &major, &minor, &patch );
38602 if( major != DB_VERSION_MAJOR ||
38603 minor < DB_VERSION_MINOR )
38605 printf("Berkeley DB version mismatch\n"
38606 "\theader: %s\n\tlibrary: %s\n",
38607 DB_VERSION_STRING, version);
38613 #if DB_VERSION_MAJOR > 2
38614 db_env_create( NULL, 0 );
38615 #elif DB_VERSION_MAJOR > 1
38616 db_appexit( NULL );
38618 (void) dbopen( NULL, 0, 0, 0, NULL);
38625 rm -f conftest.$ac_objext conftest$ac_exeext
38626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38627 (eval $ac_link) 2>conftest.er1
38629 grep -v '^ *+' conftest.er1 >conftest.err
38631 cat conftest.err >&5
38632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38633 (exit $ac_status); } &&
38634 { ac_try='test -z "$ac_c_werror_flag"
38635 || test ! -s conftest.err'
38636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38637 (eval $ac_try) 2>&5
38639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38640 (exit $ac_status); }; } &&
38641 { ac_try='test -s conftest$ac_exeext'
38642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38643 (eval $ac_try) 2>&5
38645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38646 (exit $ac_status); }; }; then
38647 ol_cv_db_db_4_dot_3=yes
38649 echo "$as_me: failed program was:" >&5
38650 sed 's/^/| /' conftest.$ac_ext >&5
38652 ol_cv_db_db_4_dot_3=no
38654 rm -f conftest.err conftest.$ac_objext \
38655 conftest$ac_exeext conftest.$ac_ext
38660 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38661 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38663 if test $ol_cv_db_db_4_dot_3 = yes ; then
38664 ol_cv_lib_db=-ldb-4.3
38668 if test $ol_cv_lib_db = no ; then
38669 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38670 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38671 if test "${ol_cv_db_db_4_3+set}" = set; then
38672 echo $ECHO_N "(cached) $ECHO_C" >&6
38677 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38679 cat >conftest.$ac_ext <<_ACEOF
38682 cat confdefs.h >>conftest.$ac_ext
38683 cat >>conftest.$ac_ext <<_ACEOF
38684 /* end confdefs.h. */
38686 #ifdef HAVE_DB_185_H
38687 # include <db_185.h>
38692 #ifndef DB_VERSION_MAJOR
38693 # define DB_VERSION_MAJOR 1
38697 #define NULL ((void*)0)
38704 #if DB_VERSION_MAJOR > 1
38707 int major, minor, patch;
38709 version = db_version( &major, &minor, &patch );
38711 if( major != DB_VERSION_MAJOR ||
38712 minor < DB_VERSION_MINOR )
38714 printf("Berkeley DB version mismatch\n"
38715 "\theader: %s\n\tlibrary: %s\n",
38716 DB_VERSION_STRING, version);
38722 #if DB_VERSION_MAJOR > 2
38723 db_env_create( NULL, 0 );
38724 #elif DB_VERSION_MAJOR > 1
38725 db_appexit( NULL );
38727 (void) dbopen( NULL, 0, 0, 0, NULL);
38734 rm -f conftest.$ac_objext conftest$ac_exeext
38735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38736 (eval $ac_link) 2>conftest.er1
38738 grep -v '^ *+' conftest.er1 >conftest.err
38740 cat conftest.err >&5
38741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38742 (exit $ac_status); } &&
38743 { ac_try='test -z "$ac_c_werror_flag"
38744 || test ! -s conftest.err'
38745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38746 (eval $ac_try) 2>&5
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); }; } &&
38750 { ac_try='test -s conftest$ac_exeext'
38751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38752 (eval $ac_try) 2>&5
38754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755 (exit $ac_status); }; }; then
38756 ol_cv_db_db_4_3=yes
38758 echo "$as_me: failed program was:" >&5
38759 sed 's/^/| /' conftest.$ac_ext >&5
38763 rm -f conftest.err conftest.$ac_objext \
38764 conftest$ac_exeext conftest.$ac_ext
38769 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38770 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38772 if test $ol_cv_db_db_4_3 = yes ; then
38773 ol_cv_lib_db=-ldb-4-3
38777 if test $ol_cv_lib_db = no ; then
38778 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38779 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38780 if test "${ol_cv_db_db42+set}" = set; then
38781 echo $ECHO_N "(cached) $ECHO_C" >&6
38786 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38788 cat >conftest.$ac_ext <<_ACEOF
38791 cat confdefs.h >>conftest.$ac_ext
38792 cat >>conftest.$ac_ext <<_ACEOF
38793 /* end confdefs.h. */
38795 #ifdef HAVE_DB_185_H
38796 # include <db_185.h>
38801 #ifndef DB_VERSION_MAJOR
38802 # define DB_VERSION_MAJOR 1
38806 #define NULL ((void*)0)
38813 #if DB_VERSION_MAJOR > 1
38816 int major, minor, patch;
38818 version = db_version( &major, &minor, &patch );
38820 if( major != DB_VERSION_MAJOR ||
38821 minor < DB_VERSION_MINOR )
38823 printf("Berkeley DB version mismatch\n"
38824 "\theader: %s\n\tlibrary: %s\n",
38825 DB_VERSION_STRING, version);
38831 #if DB_VERSION_MAJOR > 2
38832 db_env_create( NULL, 0 );
38833 #elif DB_VERSION_MAJOR > 1
38834 db_appexit( NULL );
38836 (void) dbopen( NULL, 0, 0, 0, NULL);
38843 rm -f conftest.$ac_objext conftest$ac_exeext
38844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38845 (eval $ac_link) 2>conftest.er1
38847 grep -v '^ *+' conftest.er1 >conftest.err
38849 cat conftest.err >&5
38850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38851 (exit $ac_status); } &&
38852 { ac_try='test -z "$ac_c_werror_flag"
38853 || test ! -s conftest.err'
38854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38855 (eval $ac_try) 2>&5
38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858 (exit $ac_status); }; } &&
38859 { ac_try='test -s conftest$ac_exeext'
38860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38861 (eval $ac_try) 2>&5
38863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38864 (exit $ac_status); }; }; then
38867 echo "$as_me: failed program was:" >&5
38868 sed 's/^/| /' conftest.$ac_ext >&5
38872 rm -f conftest.err conftest.$ac_objext \
38873 conftest$ac_exeext conftest.$ac_ext
38878 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38879 echo "${ECHO_T}$ol_cv_db_db42" >&6
38881 if test $ol_cv_db_db42 = yes ; then
38882 ol_cv_lib_db=-ldb42
38886 if test $ol_cv_lib_db = no ; then
38887 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38888 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38889 if test "${ol_cv_db_db_42+set}" = set; then
38890 echo $ECHO_N "(cached) $ECHO_C" >&6
38895 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38897 cat >conftest.$ac_ext <<_ACEOF
38900 cat confdefs.h >>conftest.$ac_ext
38901 cat >>conftest.$ac_ext <<_ACEOF
38902 /* end confdefs.h. */
38904 #ifdef HAVE_DB_185_H
38905 # include <db_185.h>
38910 #ifndef DB_VERSION_MAJOR
38911 # define DB_VERSION_MAJOR 1
38915 #define NULL ((void*)0)
38922 #if DB_VERSION_MAJOR > 1
38925 int major, minor, patch;
38927 version = db_version( &major, &minor, &patch );
38929 if( major != DB_VERSION_MAJOR ||
38930 minor < DB_VERSION_MINOR )
38932 printf("Berkeley DB version mismatch\n"
38933 "\theader: %s\n\tlibrary: %s\n",
38934 DB_VERSION_STRING, version);
38940 #if DB_VERSION_MAJOR > 2
38941 db_env_create( NULL, 0 );
38942 #elif DB_VERSION_MAJOR > 1
38943 db_appexit( NULL );
38945 (void) dbopen( NULL, 0, 0, 0, NULL);
38952 rm -f conftest.$ac_objext conftest$ac_exeext
38953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38954 (eval $ac_link) 2>conftest.er1
38956 grep -v '^ *+' conftest.er1 >conftest.err
38958 cat conftest.err >&5
38959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38960 (exit $ac_status); } &&
38961 { ac_try='test -z "$ac_c_werror_flag"
38962 || test ! -s conftest.err'
38963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38964 (eval $ac_try) 2>&5
38966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38967 (exit $ac_status); }; } &&
38968 { ac_try='test -s conftest$ac_exeext'
38969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38970 (eval $ac_try) 2>&5
38972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38973 (exit $ac_status); }; }; then
38976 echo "$as_me: failed program was:" >&5
38977 sed 's/^/| /' conftest.$ac_ext >&5
38981 rm -f conftest.err conftest.$ac_objext \
38982 conftest$ac_exeext conftest.$ac_ext
38987 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38988 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38990 if test $ol_cv_db_db_42 = yes ; then
38991 ol_cv_lib_db=-ldb-42
38995 if test $ol_cv_lib_db = no ; then
38996 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38997 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38998 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38999 echo $ECHO_N "(cached) $ECHO_C" >&6
39004 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39006 cat >conftest.$ac_ext <<_ACEOF
39009 cat confdefs.h >>conftest.$ac_ext
39010 cat >>conftest.$ac_ext <<_ACEOF
39011 /* end confdefs.h. */
39013 #ifdef HAVE_DB_185_H
39014 # include <db_185.h>
39019 #ifndef DB_VERSION_MAJOR
39020 # define DB_VERSION_MAJOR 1
39024 #define NULL ((void*)0)
39031 #if DB_VERSION_MAJOR > 1
39034 int major, minor, patch;
39036 version = db_version( &major, &minor, &patch );
39038 if( major != DB_VERSION_MAJOR ||
39039 minor < DB_VERSION_MINOR )
39041 printf("Berkeley DB version mismatch\n"
39042 "\theader: %s\n\tlibrary: %s\n",
39043 DB_VERSION_STRING, version);
39049 #if DB_VERSION_MAJOR > 2
39050 db_env_create( NULL, 0 );
39051 #elif DB_VERSION_MAJOR > 1
39052 db_appexit( NULL );
39054 (void) dbopen( NULL, 0, 0, 0, NULL);
39061 rm -f conftest.$ac_objext conftest$ac_exeext
39062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39063 (eval $ac_link) 2>conftest.er1
39065 grep -v '^ *+' conftest.er1 >conftest.err
39067 cat conftest.err >&5
39068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069 (exit $ac_status); } &&
39070 { ac_try='test -z "$ac_c_werror_flag"
39071 || test ! -s conftest.err'
39072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39073 (eval $ac_try) 2>&5
39075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076 (exit $ac_status); }; } &&
39077 { ac_try='test -s conftest$ac_exeext'
39078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39079 (eval $ac_try) 2>&5
39081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082 (exit $ac_status); }; }; then
39083 ol_cv_db_db_4_dot_2=yes
39085 echo "$as_me: failed program was:" >&5
39086 sed 's/^/| /' conftest.$ac_ext >&5
39088 ol_cv_db_db_4_dot_2=no
39090 rm -f conftest.err conftest.$ac_objext \
39091 conftest$ac_exeext conftest.$ac_ext
39096 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
39097 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
39099 if test $ol_cv_db_db_4_dot_2 = yes ; then
39100 ol_cv_lib_db=-ldb-4.2
39104 if test $ol_cv_lib_db = no ; then
39105 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
39106 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
39107 if test "${ol_cv_db_db_4_2+set}" = set; then
39108 echo $ECHO_N "(cached) $ECHO_C" >&6
39113 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39115 cat >conftest.$ac_ext <<_ACEOF
39118 cat confdefs.h >>conftest.$ac_ext
39119 cat >>conftest.$ac_ext <<_ACEOF
39120 /* end confdefs.h. */
39122 #ifdef HAVE_DB_185_H
39123 # include <db_185.h>
39128 #ifndef DB_VERSION_MAJOR
39129 # define DB_VERSION_MAJOR 1
39133 #define NULL ((void*)0)
39140 #if DB_VERSION_MAJOR > 1
39143 int major, minor, patch;
39145 version = db_version( &major, &minor, &patch );
39147 if( major != DB_VERSION_MAJOR ||
39148 minor < DB_VERSION_MINOR )
39150 printf("Berkeley DB version mismatch\n"
39151 "\theader: %s\n\tlibrary: %s\n",
39152 DB_VERSION_STRING, version);
39158 #if DB_VERSION_MAJOR > 2
39159 db_env_create( NULL, 0 );
39160 #elif DB_VERSION_MAJOR > 1
39161 db_appexit( NULL );
39163 (void) dbopen( NULL, 0, 0, 0, NULL);
39170 rm -f conftest.$ac_objext conftest$ac_exeext
39171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39172 (eval $ac_link) 2>conftest.er1
39174 grep -v '^ *+' conftest.er1 >conftest.err
39176 cat conftest.err >&5
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); } &&
39179 { ac_try='test -z "$ac_c_werror_flag"
39180 || test ! -s conftest.err'
39181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39182 (eval $ac_try) 2>&5
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); }; } &&
39186 { ac_try='test -s conftest$ac_exeext'
39187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39188 (eval $ac_try) 2>&5
39190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39191 (exit $ac_status); }; }; then
39192 ol_cv_db_db_4_2=yes
39194 echo "$as_me: failed program was:" >&5
39195 sed 's/^/| /' conftest.$ac_ext >&5
39199 rm -f conftest.err conftest.$ac_objext \
39200 conftest$ac_exeext conftest.$ac_ext
39205 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39206 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39208 if test $ol_cv_db_db_4_2 = yes ; then
39209 ol_cv_lib_db=-ldb-4-2
39213 if test $ol_cv_lib_db = no ; then
39214 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39215 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39216 if test "${ol_cv_db_db_4+set}" = set; then
39217 echo $ECHO_N "(cached) $ECHO_C" >&6
39222 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39224 cat >conftest.$ac_ext <<_ACEOF
39227 cat confdefs.h >>conftest.$ac_ext
39228 cat >>conftest.$ac_ext <<_ACEOF
39229 /* end confdefs.h. */
39231 #ifdef HAVE_DB_185_H
39232 # include <db_185.h>
39237 #ifndef DB_VERSION_MAJOR
39238 # define DB_VERSION_MAJOR 1
39242 #define NULL ((void*)0)
39249 #if DB_VERSION_MAJOR > 1
39252 int major, minor, patch;
39254 version = db_version( &major, &minor, &patch );
39256 if( major != DB_VERSION_MAJOR ||
39257 minor < DB_VERSION_MINOR )
39259 printf("Berkeley DB version mismatch\n"
39260 "\theader: %s\n\tlibrary: %s\n",
39261 DB_VERSION_STRING, version);
39267 #if DB_VERSION_MAJOR > 2
39268 db_env_create( NULL, 0 );
39269 #elif DB_VERSION_MAJOR > 1
39270 db_appexit( NULL );
39272 (void) dbopen( NULL, 0, 0, 0, NULL);
39279 rm -f conftest.$ac_objext conftest$ac_exeext
39280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39281 (eval $ac_link) 2>conftest.er1
39283 grep -v '^ *+' conftest.er1 >conftest.err
39285 cat conftest.err >&5
39286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287 (exit $ac_status); } &&
39288 { ac_try='test -z "$ac_c_werror_flag"
39289 || test ! -s conftest.err'
39290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39291 (eval $ac_try) 2>&5
39293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294 (exit $ac_status); }; } &&
39295 { ac_try='test -s conftest$ac_exeext'
39296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39297 (eval $ac_try) 2>&5
39299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300 (exit $ac_status); }; }; then
39303 echo "$as_me: failed program was:" >&5
39304 sed 's/^/| /' conftest.$ac_ext >&5
39308 rm -f conftest.err conftest.$ac_objext \
39309 conftest$ac_exeext conftest.$ac_ext
39314 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39315 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39317 if test $ol_cv_db_db_4 = yes ; then
39318 ol_cv_lib_db=-ldb-4
39322 if test $ol_cv_lib_db = no ; then
39323 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39324 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39325 if test "${ol_cv_db_db4+set}" = set; then
39326 echo $ECHO_N "(cached) $ECHO_C" >&6
39331 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39333 cat >conftest.$ac_ext <<_ACEOF
39336 cat confdefs.h >>conftest.$ac_ext
39337 cat >>conftest.$ac_ext <<_ACEOF
39338 /* end confdefs.h. */
39340 #ifdef HAVE_DB_185_H
39341 # include <db_185.h>
39346 #ifndef DB_VERSION_MAJOR
39347 # define DB_VERSION_MAJOR 1
39351 #define NULL ((void*)0)
39358 #if DB_VERSION_MAJOR > 1
39361 int major, minor, patch;
39363 version = db_version( &major, &minor, &patch );
39365 if( major != DB_VERSION_MAJOR ||
39366 minor < DB_VERSION_MINOR )
39368 printf("Berkeley DB version mismatch\n"
39369 "\theader: %s\n\tlibrary: %s\n",
39370 DB_VERSION_STRING, version);
39376 #if DB_VERSION_MAJOR > 2
39377 db_env_create( NULL, 0 );
39378 #elif DB_VERSION_MAJOR > 1
39379 db_appexit( NULL );
39381 (void) dbopen( NULL, 0, 0, 0, NULL);
39388 rm -f conftest.$ac_objext conftest$ac_exeext
39389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39390 (eval $ac_link) 2>conftest.er1
39392 grep -v '^ *+' conftest.er1 >conftest.err
39394 cat conftest.err >&5
39395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396 (exit $ac_status); } &&
39397 { ac_try='test -z "$ac_c_werror_flag"
39398 || test ! -s conftest.err'
39399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39400 (eval $ac_try) 2>&5
39402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403 (exit $ac_status); }; } &&
39404 { ac_try='test -s conftest$ac_exeext'
39405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39406 (eval $ac_try) 2>&5
39408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409 (exit $ac_status); }; }; then
39412 echo "$as_me: failed program was:" >&5
39413 sed 's/^/| /' conftest.$ac_ext >&5
39417 rm -f conftest.err conftest.$ac_objext \
39418 conftest$ac_exeext conftest.$ac_ext
39423 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39424 echo "${ECHO_T}$ol_cv_db_db4" >&6
39426 if test $ol_cv_db_db4 = yes ; then
39431 if test $ol_cv_lib_db = no ; then
39432 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39433 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39434 if test "${ol_cv_db_db+set}" = set; then
39435 echo $ECHO_N "(cached) $ECHO_C" >&6
39440 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39442 cat >conftest.$ac_ext <<_ACEOF
39445 cat confdefs.h >>conftest.$ac_ext
39446 cat >>conftest.$ac_ext <<_ACEOF
39447 /* end confdefs.h. */
39449 #ifdef HAVE_DB_185_H
39450 # include <db_185.h>
39455 #ifndef DB_VERSION_MAJOR
39456 # define DB_VERSION_MAJOR 1
39460 #define NULL ((void*)0)
39467 #if DB_VERSION_MAJOR > 1
39470 int major, minor, patch;
39472 version = db_version( &major, &minor, &patch );
39474 if( major != DB_VERSION_MAJOR ||
39475 minor < DB_VERSION_MINOR )
39477 printf("Berkeley DB version mismatch\n"
39478 "\theader: %s\n\tlibrary: %s\n",
39479 DB_VERSION_STRING, version);
39485 #if DB_VERSION_MAJOR > 2
39486 db_env_create( NULL, 0 );
39487 #elif DB_VERSION_MAJOR > 1
39488 db_appexit( NULL );
39490 (void) dbopen( NULL, 0, 0, 0, NULL);
39497 rm -f conftest.$ac_objext conftest$ac_exeext
39498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39499 (eval $ac_link) 2>conftest.er1
39501 grep -v '^ *+' conftest.er1 >conftest.err
39503 cat conftest.err >&5
39504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505 (exit $ac_status); } &&
39506 { ac_try='test -z "$ac_c_werror_flag"
39507 || test ! -s conftest.err'
39508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39509 (eval $ac_try) 2>&5
39511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512 (exit $ac_status); }; } &&
39513 { ac_try='test -s conftest$ac_exeext'
39514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39515 (eval $ac_try) 2>&5
39517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39518 (exit $ac_status); }; }; then
39521 echo "$as_me: failed program was:" >&5
39522 sed 's/^/| /' conftest.$ac_ext >&5
39526 rm -f conftest.err conftest.$ac_objext \
39527 conftest$ac_exeext conftest.$ac_ext
39532 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39533 echo "${ECHO_T}$ol_cv_db_db" >&6
39535 if test $ol_cv_db_db = yes ; then
39540 if test $ol_cv_lib_db = no ; then
39541 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39542 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39543 if test "${ol_cv_db_db41+set}" = set; then
39544 echo $ECHO_N "(cached) $ECHO_C" >&6
39549 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39551 cat >conftest.$ac_ext <<_ACEOF
39554 cat confdefs.h >>conftest.$ac_ext
39555 cat >>conftest.$ac_ext <<_ACEOF
39556 /* end confdefs.h. */
39558 #ifdef HAVE_DB_185_H
39559 # include <db_185.h>
39564 #ifndef DB_VERSION_MAJOR
39565 # define DB_VERSION_MAJOR 1
39569 #define NULL ((void*)0)
39576 #if DB_VERSION_MAJOR > 1
39579 int major, minor, patch;
39581 version = db_version( &major, &minor, &patch );
39583 if( major != DB_VERSION_MAJOR ||
39584 minor < DB_VERSION_MINOR )
39586 printf("Berkeley DB version mismatch\n"
39587 "\theader: %s\n\tlibrary: %s\n",
39588 DB_VERSION_STRING, version);
39594 #if DB_VERSION_MAJOR > 2
39595 db_env_create( NULL, 0 );
39596 #elif DB_VERSION_MAJOR > 1
39597 db_appexit( NULL );
39599 (void) dbopen( NULL, 0, 0, 0, NULL);
39606 rm -f conftest.$ac_objext conftest$ac_exeext
39607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39608 (eval $ac_link) 2>conftest.er1
39610 grep -v '^ *+' conftest.er1 >conftest.err
39612 cat conftest.err >&5
39613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39614 (exit $ac_status); } &&
39615 { ac_try='test -z "$ac_c_werror_flag"
39616 || test ! -s conftest.err'
39617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39618 (eval $ac_try) 2>&5
39620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39621 (exit $ac_status); }; } &&
39622 { ac_try='test -s conftest$ac_exeext'
39623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39624 (eval $ac_try) 2>&5
39626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627 (exit $ac_status); }; }; then
39630 echo "$as_me: failed program was:" >&5
39631 sed 's/^/| /' conftest.$ac_ext >&5
39635 rm -f conftest.err conftest.$ac_objext \
39636 conftest$ac_exeext conftest.$ac_ext
39641 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39642 echo "${ECHO_T}$ol_cv_db_db41" >&6
39644 if test $ol_cv_db_db41 = yes ; then
39645 ol_cv_lib_db=-ldb41
39649 if test $ol_cv_lib_db = no ; then
39650 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39651 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39652 if test "${ol_cv_db_db_41+set}" = set; then
39653 echo $ECHO_N "(cached) $ECHO_C" >&6
39658 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39660 cat >conftest.$ac_ext <<_ACEOF
39663 cat confdefs.h >>conftest.$ac_ext
39664 cat >>conftest.$ac_ext <<_ACEOF
39665 /* end confdefs.h. */
39667 #ifdef HAVE_DB_185_H
39668 # include <db_185.h>
39673 #ifndef DB_VERSION_MAJOR
39674 # define DB_VERSION_MAJOR 1
39678 #define NULL ((void*)0)
39685 #if DB_VERSION_MAJOR > 1
39688 int major, minor, patch;
39690 version = db_version( &major, &minor, &patch );
39692 if( major != DB_VERSION_MAJOR ||
39693 minor < DB_VERSION_MINOR )
39695 printf("Berkeley DB version mismatch\n"
39696 "\theader: %s\n\tlibrary: %s\n",
39697 DB_VERSION_STRING, version);
39703 #if DB_VERSION_MAJOR > 2
39704 db_env_create( NULL, 0 );
39705 #elif DB_VERSION_MAJOR > 1
39706 db_appexit( NULL );
39708 (void) dbopen( NULL, 0, 0, 0, NULL);
39715 rm -f conftest.$ac_objext conftest$ac_exeext
39716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39717 (eval $ac_link) 2>conftest.er1
39719 grep -v '^ *+' conftest.er1 >conftest.err
39721 cat conftest.err >&5
39722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723 (exit $ac_status); } &&
39724 { ac_try='test -z "$ac_c_werror_flag"
39725 || test ! -s conftest.err'
39726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39727 (eval $ac_try) 2>&5
39729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730 (exit $ac_status); }; } &&
39731 { ac_try='test -s conftest$ac_exeext'
39732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39733 (eval $ac_try) 2>&5
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); }; }; then
39739 echo "$as_me: failed program was:" >&5
39740 sed 's/^/| /' conftest.$ac_ext >&5
39744 rm -f conftest.err conftest.$ac_objext \
39745 conftest$ac_exeext conftest.$ac_ext
39750 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39751 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39753 if test $ol_cv_db_db_41 = yes ; then
39754 ol_cv_lib_db=-ldb-41
39758 if test $ol_cv_lib_db = no ; then
39759 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39760 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39761 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39762 echo $ECHO_N "(cached) $ECHO_C" >&6
39767 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39769 cat >conftest.$ac_ext <<_ACEOF
39772 cat confdefs.h >>conftest.$ac_ext
39773 cat >>conftest.$ac_ext <<_ACEOF
39774 /* end confdefs.h. */
39776 #ifdef HAVE_DB_185_H
39777 # include <db_185.h>
39782 #ifndef DB_VERSION_MAJOR
39783 # define DB_VERSION_MAJOR 1
39787 #define NULL ((void*)0)
39794 #if DB_VERSION_MAJOR > 1
39797 int major, minor, patch;
39799 version = db_version( &major, &minor, &patch );
39801 if( major != DB_VERSION_MAJOR ||
39802 minor < DB_VERSION_MINOR )
39804 printf("Berkeley DB version mismatch\n"
39805 "\theader: %s\n\tlibrary: %s\n",
39806 DB_VERSION_STRING, version);
39812 #if DB_VERSION_MAJOR > 2
39813 db_env_create( NULL, 0 );
39814 #elif DB_VERSION_MAJOR > 1
39815 db_appexit( NULL );
39817 (void) dbopen( NULL, 0, 0, 0, NULL);
39824 rm -f conftest.$ac_objext conftest$ac_exeext
39825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39826 (eval $ac_link) 2>conftest.er1
39828 grep -v '^ *+' conftest.er1 >conftest.err
39830 cat conftest.err >&5
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); } &&
39833 { ac_try='test -z "$ac_c_werror_flag"
39834 || test ! -s conftest.err'
39835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836 (eval $ac_try) 2>&5
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; } &&
39840 { ac_try='test -s conftest$ac_exeext'
39841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842 (eval $ac_try) 2>&5
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); }; }; then
39846 ol_cv_db_db_4_dot_1=yes
39848 echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39851 ol_cv_db_db_4_dot_1=no
39853 rm -f conftest.err conftest.$ac_objext \
39854 conftest$ac_exeext conftest.$ac_ext
39859 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39860 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39862 if test $ol_cv_db_db_4_dot_1 = yes ; then
39863 ol_cv_lib_db=-ldb-4.1
39867 if test $ol_cv_lib_db = no ; then
39868 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39869 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39870 if test "${ol_cv_db_db_4_1+set}" = set; then
39871 echo $ECHO_N "(cached) $ECHO_C" >&6
39876 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39878 cat >conftest.$ac_ext <<_ACEOF
39881 cat confdefs.h >>conftest.$ac_ext
39882 cat >>conftest.$ac_ext <<_ACEOF
39883 /* end confdefs.h. */
39885 #ifdef HAVE_DB_185_H
39886 # include <db_185.h>
39891 #ifndef DB_VERSION_MAJOR
39892 # define DB_VERSION_MAJOR 1
39896 #define NULL ((void*)0)
39903 #if DB_VERSION_MAJOR > 1
39906 int major, minor, patch;
39908 version = db_version( &major, &minor, &patch );
39910 if( major != DB_VERSION_MAJOR ||
39911 minor < DB_VERSION_MINOR )
39913 printf("Berkeley DB version mismatch\n"
39914 "\theader: %s\n\tlibrary: %s\n",
39915 DB_VERSION_STRING, version);
39921 #if DB_VERSION_MAJOR > 2
39922 db_env_create( NULL, 0 );
39923 #elif DB_VERSION_MAJOR > 1
39924 db_appexit( NULL );
39926 (void) dbopen( NULL, 0, 0, 0, NULL);
39933 rm -f conftest.$ac_objext conftest$ac_exeext
39934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39935 (eval $ac_link) 2>conftest.er1
39937 grep -v '^ *+' conftest.er1 >conftest.err
39939 cat conftest.err >&5
39940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); } &&
39942 { ac_try='test -z "$ac_c_werror_flag"
39943 || test ! -s conftest.err'
39944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39945 (eval $ac_try) 2>&5
39947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948 (exit $ac_status); }; } &&
39949 { ac_try='test -s conftest$ac_exeext'
39950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39951 (eval $ac_try) 2>&5
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); }; }; then
39955 ol_cv_db_db_4_1=yes
39957 echo "$as_me: failed program was:" >&5
39958 sed 's/^/| /' conftest.$ac_ext >&5
39962 rm -f conftest.err conftest.$ac_objext \
39963 conftest$ac_exeext conftest.$ac_ext
39968 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39969 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39971 if test $ol_cv_db_db_4_1 = yes ; then
39972 ol_cv_lib_db=-ldb-4-1
39976 if test $ol_cv_lib_db = no ; then
39977 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39978 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39979 if test "${ol_cv_db_db3+set}" = set; then
39980 echo $ECHO_N "(cached) $ECHO_C" >&6
39985 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39987 cat >conftest.$ac_ext <<_ACEOF
39990 cat confdefs.h >>conftest.$ac_ext
39991 cat >>conftest.$ac_ext <<_ACEOF
39992 /* end confdefs.h. */
39994 #ifdef HAVE_DB_185_H
39995 # include <db_185.h>
40000 #ifndef DB_VERSION_MAJOR
40001 # define DB_VERSION_MAJOR 1
40005 #define NULL ((void*)0)
40012 #if DB_VERSION_MAJOR > 1
40015 int major, minor, patch;
40017 version = db_version( &major, &minor, &patch );
40019 if( major != DB_VERSION_MAJOR ||
40020 minor < DB_VERSION_MINOR )
40022 printf("Berkeley DB version mismatch\n"
40023 "\theader: %s\n\tlibrary: %s\n",
40024 DB_VERSION_STRING, version);
40030 #if DB_VERSION_MAJOR > 2
40031 db_env_create( NULL, 0 );
40032 #elif DB_VERSION_MAJOR > 1
40033 db_appexit( NULL );
40035 (void) dbopen( NULL, 0, 0, 0, NULL);
40042 rm -f conftest.$ac_objext conftest$ac_exeext
40043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40044 (eval $ac_link) 2>conftest.er1
40046 grep -v '^ *+' conftest.er1 >conftest.err
40048 cat conftest.err >&5
40049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40050 (exit $ac_status); } &&
40051 { ac_try='test -z "$ac_c_werror_flag"
40052 || test ! -s conftest.err'
40053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40054 (eval $ac_try) 2>&5
40056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057 (exit $ac_status); }; } &&
40058 { ac_try='test -s conftest$ac_exeext'
40059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40060 (eval $ac_try) 2>&5
40062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063 (exit $ac_status); }; }; then
40066 echo "$as_me: failed program was:" >&5
40067 sed 's/^/| /' conftest.$ac_ext >&5
40071 rm -f conftest.err conftest.$ac_objext \
40072 conftest$ac_exeext conftest.$ac_ext
40077 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
40078 echo "${ECHO_T}$ol_cv_db_db3" >&6
40080 if test $ol_cv_db_db3 = yes ; then
40085 if test $ol_cv_lib_db = no ; then
40086 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
40087 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
40088 if test "${ol_cv_db_db_3+set}" = set; then
40089 echo $ECHO_N "(cached) $ECHO_C" >&6
40094 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40096 cat >conftest.$ac_ext <<_ACEOF
40099 cat confdefs.h >>conftest.$ac_ext
40100 cat >>conftest.$ac_ext <<_ACEOF
40101 /* end confdefs.h. */
40103 #ifdef HAVE_DB_185_H
40104 # include <db_185.h>
40109 #ifndef DB_VERSION_MAJOR
40110 # define DB_VERSION_MAJOR 1
40114 #define NULL ((void*)0)
40121 #if DB_VERSION_MAJOR > 1
40124 int major, minor, patch;
40126 version = db_version( &major, &minor, &patch );
40128 if( major != DB_VERSION_MAJOR ||
40129 minor < DB_VERSION_MINOR )
40131 printf("Berkeley DB version mismatch\n"
40132 "\theader: %s\n\tlibrary: %s\n",
40133 DB_VERSION_STRING, version);
40139 #if DB_VERSION_MAJOR > 2
40140 db_env_create( NULL, 0 );
40141 #elif DB_VERSION_MAJOR > 1
40142 db_appexit( NULL );
40144 (void) dbopen( NULL, 0, 0, 0, NULL);
40151 rm -f conftest.$ac_objext conftest$ac_exeext
40152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40153 (eval $ac_link) 2>conftest.er1
40155 grep -v '^ *+' conftest.er1 >conftest.err
40157 cat conftest.err >&5
40158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); } &&
40160 { ac_try='test -z "$ac_c_werror_flag"
40161 || test ! -s conftest.err'
40162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40163 (eval $ac_try) 2>&5
40165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40166 (exit $ac_status); }; } &&
40167 { ac_try='test -s conftest$ac_exeext'
40168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40169 (eval $ac_try) 2>&5
40171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40172 (exit $ac_status); }; }; then
40175 echo "$as_me: failed program was:" >&5
40176 sed 's/^/| /' conftest.$ac_ext >&5
40180 rm -f conftest.err conftest.$ac_objext \
40181 conftest$ac_exeext conftest.$ac_ext
40186 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40187 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40189 if test $ol_cv_db_db_3 = yes ; then
40190 ol_cv_lib_db=-ldb-3
40194 if test $ol_cv_lib_db = no ; then
40195 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40196 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40197 if test "${ol_cv_db_db2+set}" = set; then
40198 echo $ECHO_N "(cached) $ECHO_C" >&6
40203 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40205 cat >conftest.$ac_ext <<_ACEOF
40208 cat confdefs.h >>conftest.$ac_ext
40209 cat >>conftest.$ac_ext <<_ACEOF
40210 /* end confdefs.h. */
40212 #ifdef HAVE_DB_185_H
40213 # include <db_185.h>
40218 #ifndef DB_VERSION_MAJOR
40219 # define DB_VERSION_MAJOR 1
40223 #define NULL ((void*)0)
40230 #if DB_VERSION_MAJOR > 1
40233 int major, minor, patch;
40235 version = db_version( &major, &minor, &patch );
40237 if( major != DB_VERSION_MAJOR ||
40238 minor < DB_VERSION_MINOR )
40240 printf("Berkeley DB version mismatch\n"
40241 "\theader: %s\n\tlibrary: %s\n",
40242 DB_VERSION_STRING, version);
40248 #if DB_VERSION_MAJOR > 2
40249 db_env_create( NULL, 0 );
40250 #elif DB_VERSION_MAJOR > 1
40251 db_appexit( NULL );
40253 (void) dbopen( NULL, 0, 0, 0, NULL);
40260 rm -f conftest.$ac_objext conftest$ac_exeext
40261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40262 (eval $ac_link) 2>conftest.er1
40264 grep -v '^ *+' conftest.er1 >conftest.err
40266 cat conftest.err >&5
40267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40268 (exit $ac_status); } &&
40269 { ac_try='test -z "$ac_c_werror_flag"
40270 || test ! -s conftest.err'
40271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40272 (eval $ac_try) 2>&5
40274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275 (exit $ac_status); }; } &&
40276 { ac_try='test -s conftest$ac_exeext'
40277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40278 (eval $ac_try) 2>&5
40280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281 (exit $ac_status); }; }; then
40284 echo "$as_me: failed program was:" >&5
40285 sed 's/^/| /' conftest.$ac_ext >&5
40289 rm -f conftest.err conftest.$ac_objext \
40290 conftest$ac_exeext conftest.$ac_ext
40295 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40296 echo "${ECHO_T}$ol_cv_db_db2" >&6
40298 if test $ol_cv_db_db2 = yes ; then
40303 if test $ol_cv_lib_db = no ; then
40304 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40305 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40306 if test "${ol_cv_db_db_2+set}" = set; then
40307 echo $ECHO_N "(cached) $ECHO_C" >&6
40312 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40314 cat >conftest.$ac_ext <<_ACEOF
40317 cat confdefs.h >>conftest.$ac_ext
40318 cat >>conftest.$ac_ext <<_ACEOF
40319 /* end confdefs.h. */
40321 #ifdef HAVE_DB_185_H
40322 # include <db_185.h>
40327 #ifndef DB_VERSION_MAJOR
40328 # define DB_VERSION_MAJOR 1
40332 #define NULL ((void*)0)
40339 #if DB_VERSION_MAJOR > 1
40342 int major, minor, patch;
40344 version = db_version( &major, &minor, &patch );
40346 if( major != DB_VERSION_MAJOR ||
40347 minor < DB_VERSION_MINOR )
40349 printf("Berkeley DB version mismatch\n"
40350 "\theader: %s\n\tlibrary: %s\n",
40351 DB_VERSION_STRING, version);
40357 #if DB_VERSION_MAJOR > 2
40358 db_env_create( NULL, 0 );
40359 #elif DB_VERSION_MAJOR > 1
40360 db_appexit( NULL );
40362 (void) dbopen( NULL, 0, 0, 0, NULL);
40369 rm -f conftest.$ac_objext conftest$ac_exeext
40370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40371 (eval $ac_link) 2>conftest.er1
40373 grep -v '^ *+' conftest.er1 >conftest.err
40375 cat conftest.err >&5
40376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377 (exit $ac_status); } &&
40378 { ac_try='test -z "$ac_c_werror_flag"
40379 || test ! -s conftest.err'
40380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40381 (eval $ac_try) 2>&5
40383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384 (exit $ac_status); }; } &&
40385 { ac_try='test -s conftest$ac_exeext'
40386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40387 (eval $ac_try) 2>&5
40389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390 (exit $ac_status); }; }; then
40393 echo "$as_me: failed program was:" >&5
40394 sed 's/^/| /' conftest.$ac_ext >&5
40398 rm -f conftest.err conftest.$ac_objext \
40399 conftest$ac_exeext conftest.$ac_ext
40404 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40405 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40407 if test $ol_cv_db_db_2 = yes ; then
40408 ol_cv_lib_db=-ldb-2
40412 if test $ol_cv_lib_db = no ; then
40413 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40414 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40415 if test "${ol_cv_db_db1+set}" = set; then
40416 echo $ECHO_N "(cached) $ECHO_C" >&6
40421 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40423 cat >conftest.$ac_ext <<_ACEOF
40426 cat confdefs.h >>conftest.$ac_ext
40427 cat >>conftest.$ac_ext <<_ACEOF
40428 /* end confdefs.h. */
40430 #ifdef HAVE_DB_185_H
40431 # include <db_185.h>
40436 #ifndef DB_VERSION_MAJOR
40437 # define DB_VERSION_MAJOR 1
40441 #define NULL ((void*)0)
40448 #if DB_VERSION_MAJOR > 1
40451 int major, minor, patch;
40453 version = db_version( &major, &minor, &patch );
40455 if( major != DB_VERSION_MAJOR ||
40456 minor < DB_VERSION_MINOR )
40458 printf("Berkeley DB version mismatch\n"
40459 "\theader: %s\n\tlibrary: %s\n",
40460 DB_VERSION_STRING, version);
40466 #if DB_VERSION_MAJOR > 2
40467 db_env_create( NULL, 0 );
40468 #elif DB_VERSION_MAJOR > 1
40469 db_appexit( NULL );
40471 (void) dbopen( NULL, 0, 0, 0, NULL);
40478 rm -f conftest.$ac_objext conftest$ac_exeext
40479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40480 (eval $ac_link) 2>conftest.er1
40482 grep -v '^ *+' conftest.er1 >conftest.err
40484 cat conftest.err >&5
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); } &&
40487 { ac_try='test -z "$ac_c_werror_flag"
40488 || test ! -s conftest.err'
40489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40490 (eval $ac_try) 2>&5
40492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493 (exit $ac_status); }; } &&
40494 { ac_try='test -s conftest$ac_exeext'
40495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40496 (eval $ac_try) 2>&5
40498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40499 (exit $ac_status); }; }; then
40502 echo "$as_me: failed program was:" >&5
40503 sed 's/^/| /' conftest.$ac_ext >&5
40507 rm -f conftest.err conftest.$ac_objext \
40508 conftest$ac_exeext conftest.$ac_ext
40513 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40514 echo "${ECHO_T}$ol_cv_db_db1" >&6
40516 if test $ol_cv_db_db1 = yes ; then
40521 if test $ol_cv_lib_db = no ; then
40522 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40523 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40524 if test "${ol_cv_db_db_1+set}" = set; then
40525 echo $ECHO_N "(cached) $ECHO_C" >&6
40530 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40532 cat >conftest.$ac_ext <<_ACEOF
40535 cat confdefs.h >>conftest.$ac_ext
40536 cat >>conftest.$ac_ext <<_ACEOF
40537 /* end confdefs.h. */
40539 #ifdef HAVE_DB_185_H
40540 # include <db_185.h>
40545 #ifndef DB_VERSION_MAJOR
40546 # define DB_VERSION_MAJOR 1
40550 #define NULL ((void*)0)
40557 #if DB_VERSION_MAJOR > 1
40560 int major, minor, patch;
40562 version = db_version( &major, &minor, &patch );
40564 if( major != DB_VERSION_MAJOR ||
40565 minor < DB_VERSION_MINOR )
40567 printf("Berkeley DB version mismatch\n"
40568 "\theader: %s\n\tlibrary: %s\n",
40569 DB_VERSION_STRING, version);
40575 #if DB_VERSION_MAJOR > 2
40576 db_env_create( NULL, 0 );
40577 #elif DB_VERSION_MAJOR > 1
40578 db_appexit( NULL );
40580 (void) dbopen( NULL, 0, 0, 0, NULL);
40587 rm -f conftest.$ac_objext conftest$ac_exeext
40588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40589 (eval $ac_link) 2>conftest.er1
40591 grep -v '^ *+' conftest.er1 >conftest.err
40593 cat conftest.err >&5
40594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40595 (exit $ac_status); } &&
40596 { ac_try='test -z "$ac_c_werror_flag"
40597 || test ! -s conftest.err'
40598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40599 (eval $ac_try) 2>&5
40601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40602 (exit $ac_status); }; } &&
40603 { ac_try='test -s conftest$ac_exeext'
40604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40605 (eval $ac_try) 2>&5
40607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40608 (exit $ac_status); }; }; then
40611 echo "$as_me: failed program was:" >&5
40612 sed 's/^/| /' conftest.$ac_ext >&5
40616 rm -f conftest.err conftest.$ac_objext \
40617 conftest$ac_exeext conftest.$ac_ext
40622 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40623 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40625 if test $ol_cv_db_db_1 = yes ; then
40626 ol_cv_lib_db=-ldb-1
40631 if test "$ol_cv_lib_db" != no ; then
40632 ol_cv_berkeley_db=yes
40638 ol_cv_berkeley_db=no
40640 for ac_header in db.h
40642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40644 echo "$as_me:$LINENO: checking for $ac_header" >&5
40645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40647 echo $ECHO_N "(cached) $ECHO_C" >&6
40649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40652 # Is the header compilable?
40653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40655 cat >conftest.$ac_ext <<_ACEOF
40658 cat confdefs.h >>conftest.$ac_ext
40659 cat >>conftest.$ac_ext <<_ACEOF
40660 /* end confdefs.h. */
40661 $ac_includes_default
40662 #include <$ac_header>
40664 rm -f conftest.$ac_objext
40665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40666 (eval $ac_compile) 2>conftest.er1
40668 grep -v '^ *+' conftest.er1 >conftest.err
40670 cat conftest.err >&5
40671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672 (exit $ac_status); } &&
40673 { ac_try='test -z "$ac_c_werror_flag"
40674 || test ! -s conftest.err'
40675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40676 (eval $ac_try) 2>&5
40678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40679 (exit $ac_status); }; } &&
40680 { ac_try='test -s conftest.$ac_objext'
40681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40682 (eval $ac_try) 2>&5
40684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40685 (exit $ac_status); }; }; then
40686 ac_header_compiler=yes
40688 echo "$as_me: failed program was:" >&5
40689 sed 's/^/| /' conftest.$ac_ext >&5
40691 ac_header_compiler=no
40693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40695 echo "${ECHO_T}$ac_header_compiler" >&6
40697 # Is the header present?
40698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40700 cat >conftest.$ac_ext <<_ACEOF
40703 cat confdefs.h >>conftest.$ac_ext
40704 cat >>conftest.$ac_ext <<_ACEOF
40705 /* end confdefs.h. */
40706 #include <$ac_header>
40708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40711 grep -v '^ *+' conftest.er1 >conftest.err
40713 cat conftest.err >&5
40714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40715 (exit $ac_status); } >/dev/null; then
40716 if test -s conftest.err; then
40717 ac_cpp_err=$ac_c_preproc_warn_flag
40718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40725 if test -z "$ac_cpp_err"; then
40726 ac_header_preproc=yes
40728 echo "$as_me: failed program was:" >&5
40729 sed 's/^/| /' conftest.$ac_ext >&5
40731 ac_header_preproc=no
40733 rm -f conftest.err conftest.$ac_ext
40734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40735 echo "${ECHO_T}$ac_header_preproc" >&6
40737 # So? What about this header?
40738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40744 ac_header_preproc=yes
40747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40761 ## ------------------------------------------ ##
40762 ## Report this to the AC_PACKAGE_NAME lists. ##
40763 ## ------------------------------------------ ##
40766 sed "s/^/$as_me: WARNING: /" >&2
40769 echo "$as_me:$LINENO: checking for $ac_header" >&5
40770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40772 echo $ECHO_N "(cached) $ECHO_C" >&6
40774 eval "$as_ac_Header=\$ac_header_preproc"
40776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40781 cat >>confdefs.h <<_ACEOF
40782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40789 if test $ac_cv_header_db_h = yes; then
40791 if test $ol_cv_lib_db = no ; then
40792 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40793 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40794 if test "${ol_cv_db_none+set}" = set; then
40795 echo $ECHO_N "(cached) $ECHO_C" >&6
40800 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40802 cat >conftest.$ac_ext <<_ACEOF
40805 cat confdefs.h >>conftest.$ac_ext
40806 cat >>conftest.$ac_ext <<_ACEOF
40807 /* end confdefs.h. */
40809 #ifdef HAVE_DB_185_H
40810 # include <db_185.h>
40815 #ifndef DB_VERSION_MAJOR
40816 # define DB_VERSION_MAJOR 1
40820 #define NULL ((void*)0)
40827 #if DB_VERSION_MAJOR > 1
40830 int major, minor, patch;
40832 version = db_version( &major, &minor, &patch );
40834 if( major != DB_VERSION_MAJOR ||
40835 minor < DB_VERSION_MINOR )
40837 printf("Berkeley DB version mismatch\n"
40838 "\theader: %s\n\tlibrary: %s\n",
40839 DB_VERSION_STRING, version);
40845 #if DB_VERSION_MAJOR > 2
40846 db_env_create( NULL, 0 );
40847 #elif DB_VERSION_MAJOR > 1
40848 db_appexit( NULL );
40850 (void) dbopen( NULL, 0, 0, 0, NULL);
40857 rm -f conftest.$ac_objext conftest$ac_exeext
40858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40859 (eval $ac_link) 2>conftest.er1
40861 grep -v '^ *+' conftest.er1 >conftest.err
40863 cat conftest.err >&5
40864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865 (exit $ac_status); } &&
40866 { ac_try='test -z "$ac_c_werror_flag"
40867 || test ! -s conftest.err'
40868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40869 (eval $ac_try) 2>&5
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); }; } &&
40873 { ac_try='test -s conftest$ac_exeext'
40874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40875 (eval $ac_try) 2>&5
40877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40878 (exit $ac_status); }; }; then
40881 echo "$as_me: failed program was:" >&5
40882 sed 's/^/| /' conftest.$ac_ext >&5
40886 rm -f conftest.err conftest.$ac_objext \
40887 conftest$ac_exeext conftest.$ac_ext
40892 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40893 echo "${ECHO_T}$ol_cv_db_none" >&6
40895 if test $ol_cv_db_none = yes ; then
40900 if test $ol_cv_lib_db = no ; then
40901 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40902 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40903 if test "${ol_cv_db_db43+set}" = set; then
40904 echo $ECHO_N "(cached) $ECHO_C" >&6
40909 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40911 cat >conftest.$ac_ext <<_ACEOF
40914 cat confdefs.h >>conftest.$ac_ext
40915 cat >>conftest.$ac_ext <<_ACEOF
40916 /* end confdefs.h. */
40918 #ifdef HAVE_DB_185_H
40919 # include <db_185.h>
40924 #ifndef DB_VERSION_MAJOR
40925 # define DB_VERSION_MAJOR 1
40929 #define NULL ((void*)0)
40936 #if DB_VERSION_MAJOR > 1
40939 int major, minor, patch;
40941 version = db_version( &major, &minor, &patch );
40943 if( major != DB_VERSION_MAJOR ||
40944 minor < DB_VERSION_MINOR )
40946 printf("Berkeley DB version mismatch\n"
40947 "\theader: %s\n\tlibrary: %s\n",
40948 DB_VERSION_STRING, version);
40954 #if DB_VERSION_MAJOR > 2
40955 db_env_create( NULL, 0 );
40956 #elif DB_VERSION_MAJOR > 1
40957 db_appexit( NULL );
40959 (void) dbopen( NULL, 0, 0, 0, NULL);
40966 rm -f conftest.$ac_objext conftest$ac_exeext
40967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40968 (eval $ac_link) 2>conftest.er1
40970 grep -v '^ *+' conftest.er1 >conftest.err
40972 cat conftest.err >&5
40973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); } &&
40975 { ac_try='test -z "$ac_c_werror_flag"
40976 || test ! -s conftest.err'
40977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40978 (eval $ac_try) 2>&5
40980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40981 (exit $ac_status); }; } &&
40982 { ac_try='test -s conftest$ac_exeext'
40983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40984 (eval $ac_try) 2>&5
40986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40987 (exit $ac_status); }; }; then
40990 echo "$as_me: failed program was:" >&5
40991 sed 's/^/| /' conftest.$ac_ext >&5
40995 rm -f conftest.err conftest.$ac_objext \
40996 conftest$ac_exeext conftest.$ac_ext
41001 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
41002 echo "${ECHO_T}$ol_cv_db_db43" >&6
41004 if test $ol_cv_db_db43 = yes ; then
41005 ol_cv_lib_db=-ldb43
41009 if test $ol_cv_lib_db = no ; then
41010 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
41011 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
41012 if test "${ol_cv_db_db_43+set}" = set; then
41013 echo $ECHO_N "(cached) $ECHO_C" >&6
41018 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41020 cat >conftest.$ac_ext <<_ACEOF
41023 cat confdefs.h >>conftest.$ac_ext
41024 cat >>conftest.$ac_ext <<_ACEOF
41025 /* end confdefs.h. */
41027 #ifdef HAVE_DB_185_H
41028 # include <db_185.h>
41033 #ifndef DB_VERSION_MAJOR
41034 # define DB_VERSION_MAJOR 1
41038 #define NULL ((void*)0)
41045 #if DB_VERSION_MAJOR > 1
41048 int major, minor, patch;
41050 version = db_version( &major, &minor, &patch );
41052 if( major != DB_VERSION_MAJOR ||
41053 minor < DB_VERSION_MINOR )
41055 printf("Berkeley DB version mismatch\n"
41056 "\theader: %s\n\tlibrary: %s\n",
41057 DB_VERSION_STRING, version);
41063 #if DB_VERSION_MAJOR > 2
41064 db_env_create( NULL, 0 );
41065 #elif DB_VERSION_MAJOR > 1
41066 db_appexit( NULL );
41068 (void) dbopen( NULL, 0, 0, 0, NULL);
41075 rm -f conftest.$ac_objext conftest$ac_exeext
41076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41077 (eval $ac_link) 2>conftest.er1
41079 grep -v '^ *+' conftest.er1 >conftest.err
41081 cat conftest.err >&5
41082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41083 (exit $ac_status); } &&
41084 { ac_try='test -z "$ac_c_werror_flag"
41085 || test ! -s conftest.err'
41086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41087 (eval $ac_try) 2>&5
41089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41090 (exit $ac_status); }; } &&
41091 { ac_try='test -s conftest$ac_exeext'
41092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41093 (eval $ac_try) 2>&5
41095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41096 (exit $ac_status); }; }; then
41099 echo "$as_me: failed program was:" >&5
41100 sed 's/^/| /' conftest.$ac_ext >&5
41104 rm -f conftest.err conftest.$ac_objext \
41105 conftest$ac_exeext conftest.$ac_ext
41110 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
41111 echo "${ECHO_T}$ol_cv_db_db_43" >&6
41113 if test $ol_cv_db_db_43 = yes ; then
41114 ol_cv_lib_db=-ldb-43
41118 if test $ol_cv_lib_db = no ; then
41119 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
41120 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
41121 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
41122 echo $ECHO_N "(cached) $ECHO_C" >&6
41127 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41129 cat >conftest.$ac_ext <<_ACEOF
41132 cat confdefs.h >>conftest.$ac_ext
41133 cat >>conftest.$ac_ext <<_ACEOF
41134 /* end confdefs.h. */
41136 #ifdef HAVE_DB_185_H
41137 # include <db_185.h>
41142 #ifndef DB_VERSION_MAJOR
41143 # define DB_VERSION_MAJOR 1
41147 #define NULL ((void*)0)
41154 #if DB_VERSION_MAJOR > 1
41157 int major, minor, patch;
41159 version = db_version( &major, &minor, &patch );
41161 if( major != DB_VERSION_MAJOR ||
41162 minor < DB_VERSION_MINOR )
41164 printf("Berkeley DB version mismatch\n"
41165 "\theader: %s\n\tlibrary: %s\n",
41166 DB_VERSION_STRING, version);
41172 #if DB_VERSION_MAJOR > 2
41173 db_env_create( NULL, 0 );
41174 #elif DB_VERSION_MAJOR > 1
41175 db_appexit( NULL );
41177 (void) dbopen( NULL, 0, 0, 0, NULL);
41184 rm -f conftest.$ac_objext conftest$ac_exeext
41185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41186 (eval $ac_link) 2>conftest.er1
41188 grep -v '^ *+' conftest.er1 >conftest.err
41190 cat conftest.err >&5
41191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41192 (exit $ac_status); } &&
41193 { ac_try='test -z "$ac_c_werror_flag"
41194 || test ! -s conftest.err'
41195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41196 (eval $ac_try) 2>&5
41198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41199 (exit $ac_status); }; } &&
41200 { ac_try='test -s conftest$ac_exeext'
41201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41202 (eval $ac_try) 2>&5
41204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41205 (exit $ac_status); }; }; then
41206 ol_cv_db_db_4_dot_3=yes
41208 echo "$as_me: failed program was:" >&5
41209 sed 's/^/| /' conftest.$ac_ext >&5
41211 ol_cv_db_db_4_dot_3=no
41213 rm -f conftest.err conftest.$ac_objext \
41214 conftest$ac_exeext conftest.$ac_ext
41219 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41220 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41222 if test $ol_cv_db_db_4_dot_3 = yes ; then
41223 ol_cv_lib_db=-ldb-4.3
41227 if test $ol_cv_lib_db = no ; then
41228 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41229 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41230 if test "${ol_cv_db_db_4_3+set}" = set; then
41231 echo $ECHO_N "(cached) $ECHO_C" >&6
41236 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41238 cat >conftest.$ac_ext <<_ACEOF
41241 cat confdefs.h >>conftest.$ac_ext
41242 cat >>conftest.$ac_ext <<_ACEOF
41243 /* end confdefs.h. */
41245 #ifdef HAVE_DB_185_H
41246 # include <db_185.h>
41251 #ifndef DB_VERSION_MAJOR
41252 # define DB_VERSION_MAJOR 1
41256 #define NULL ((void*)0)
41263 #if DB_VERSION_MAJOR > 1
41266 int major, minor, patch;
41268 version = db_version( &major, &minor, &patch );
41270 if( major != DB_VERSION_MAJOR ||
41271 minor < DB_VERSION_MINOR )
41273 printf("Berkeley DB version mismatch\n"
41274 "\theader: %s\n\tlibrary: %s\n",
41275 DB_VERSION_STRING, version);
41281 #if DB_VERSION_MAJOR > 2
41282 db_env_create( NULL, 0 );
41283 #elif DB_VERSION_MAJOR > 1
41284 db_appexit( NULL );
41286 (void) dbopen( NULL, 0, 0, 0, NULL);
41293 rm -f conftest.$ac_objext conftest$ac_exeext
41294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41295 (eval $ac_link) 2>conftest.er1
41297 grep -v '^ *+' conftest.er1 >conftest.err
41299 cat conftest.err >&5
41300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41301 (exit $ac_status); } &&
41302 { ac_try='test -z "$ac_c_werror_flag"
41303 || test ! -s conftest.err'
41304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41305 (eval $ac_try) 2>&5
41307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41308 (exit $ac_status); }; } &&
41309 { ac_try='test -s conftest$ac_exeext'
41310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41311 (eval $ac_try) 2>&5
41313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41314 (exit $ac_status); }; }; then
41315 ol_cv_db_db_4_3=yes
41317 echo "$as_me: failed program was:" >&5
41318 sed 's/^/| /' conftest.$ac_ext >&5
41322 rm -f conftest.err conftest.$ac_objext \
41323 conftest$ac_exeext conftest.$ac_ext
41328 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41329 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41331 if test $ol_cv_db_db_4_3 = yes ; then
41332 ol_cv_lib_db=-ldb-4-3
41336 if test $ol_cv_lib_db = no ; then
41337 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41338 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41339 if test "${ol_cv_db_db42+set}" = set; then
41340 echo $ECHO_N "(cached) $ECHO_C" >&6
41345 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41347 cat >conftest.$ac_ext <<_ACEOF
41350 cat confdefs.h >>conftest.$ac_ext
41351 cat >>conftest.$ac_ext <<_ACEOF
41352 /* end confdefs.h. */
41354 #ifdef HAVE_DB_185_H
41355 # include <db_185.h>
41360 #ifndef DB_VERSION_MAJOR
41361 # define DB_VERSION_MAJOR 1
41365 #define NULL ((void*)0)
41372 #if DB_VERSION_MAJOR > 1
41375 int major, minor, patch;
41377 version = db_version( &major, &minor, &patch );
41379 if( major != DB_VERSION_MAJOR ||
41380 minor < DB_VERSION_MINOR )
41382 printf("Berkeley DB version mismatch\n"
41383 "\theader: %s\n\tlibrary: %s\n",
41384 DB_VERSION_STRING, version);
41390 #if DB_VERSION_MAJOR > 2
41391 db_env_create( NULL, 0 );
41392 #elif DB_VERSION_MAJOR > 1
41393 db_appexit( NULL );
41395 (void) dbopen( NULL, 0, 0, 0, NULL);
41402 rm -f conftest.$ac_objext conftest$ac_exeext
41403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41404 (eval $ac_link) 2>conftest.er1
41406 grep -v '^ *+' conftest.er1 >conftest.err
41408 cat conftest.err >&5
41409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410 (exit $ac_status); } &&
41411 { ac_try='test -z "$ac_c_werror_flag"
41412 || test ! -s conftest.err'
41413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41414 (eval $ac_try) 2>&5
41416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41417 (exit $ac_status); }; } &&
41418 { ac_try='test -s conftest$ac_exeext'
41419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41420 (eval $ac_try) 2>&5
41422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41423 (exit $ac_status); }; }; then
41426 echo "$as_me: failed program was:" >&5
41427 sed 's/^/| /' conftest.$ac_ext >&5
41431 rm -f conftest.err conftest.$ac_objext \
41432 conftest$ac_exeext conftest.$ac_ext
41437 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41438 echo "${ECHO_T}$ol_cv_db_db42" >&6
41440 if test $ol_cv_db_db42 = yes ; then
41441 ol_cv_lib_db=-ldb42
41445 if test $ol_cv_lib_db = no ; then
41446 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41447 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41448 if test "${ol_cv_db_db_42+set}" = set; then
41449 echo $ECHO_N "(cached) $ECHO_C" >&6
41454 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41456 cat >conftest.$ac_ext <<_ACEOF
41459 cat confdefs.h >>conftest.$ac_ext
41460 cat >>conftest.$ac_ext <<_ACEOF
41461 /* end confdefs.h. */
41463 #ifdef HAVE_DB_185_H
41464 # include <db_185.h>
41469 #ifndef DB_VERSION_MAJOR
41470 # define DB_VERSION_MAJOR 1
41474 #define NULL ((void*)0)
41481 #if DB_VERSION_MAJOR > 1
41484 int major, minor, patch;
41486 version = db_version( &major, &minor, &patch );
41488 if( major != DB_VERSION_MAJOR ||
41489 minor < DB_VERSION_MINOR )
41491 printf("Berkeley DB version mismatch\n"
41492 "\theader: %s\n\tlibrary: %s\n",
41493 DB_VERSION_STRING, version);
41499 #if DB_VERSION_MAJOR > 2
41500 db_env_create( NULL, 0 );
41501 #elif DB_VERSION_MAJOR > 1
41502 db_appexit( NULL );
41504 (void) dbopen( NULL, 0, 0, 0, NULL);
41511 rm -f conftest.$ac_objext conftest$ac_exeext
41512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41513 (eval $ac_link) 2>conftest.er1
41515 grep -v '^ *+' conftest.er1 >conftest.err
41517 cat conftest.err >&5
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); } &&
41520 { ac_try='test -z "$ac_c_werror_flag"
41521 || test ! -s conftest.err'
41522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41523 (eval $ac_try) 2>&5
41525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526 (exit $ac_status); }; } &&
41527 { ac_try='test -s conftest$ac_exeext'
41528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41529 (eval $ac_try) 2>&5
41531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532 (exit $ac_status); }; }; then
41535 echo "$as_me: failed program was:" >&5
41536 sed 's/^/| /' conftest.$ac_ext >&5
41540 rm -f conftest.err conftest.$ac_objext \
41541 conftest$ac_exeext conftest.$ac_ext
41546 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41547 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41549 if test $ol_cv_db_db_42 = yes ; then
41550 ol_cv_lib_db=-ldb-42
41554 if test $ol_cv_lib_db = no ; then
41555 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41556 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41557 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41558 echo $ECHO_N "(cached) $ECHO_C" >&6
41563 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41565 cat >conftest.$ac_ext <<_ACEOF
41568 cat confdefs.h >>conftest.$ac_ext
41569 cat >>conftest.$ac_ext <<_ACEOF
41570 /* end confdefs.h. */
41572 #ifdef HAVE_DB_185_H
41573 # include <db_185.h>
41578 #ifndef DB_VERSION_MAJOR
41579 # define DB_VERSION_MAJOR 1
41583 #define NULL ((void*)0)
41590 #if DB_VERSION_MAJOR > 1
41593 int major, minor, patch;
41595 version = db_version( &major, &minor, &patch );
41597 if( major != DB_VERSION_MAJOR ||
41598 minor < DB_VERSION_MINOR )
41600 printf("Berkeley DB version mismatch\n"
41601 "\theader: %s\n\tlibrary: %s\n",
41602 DB_VERSION_STRING, version);
41608 #if DB_VERSION_MAJOR > 2
41609 db_env_create( NULL, 0 );
41610 #elif DB_VERSION_MAJOR > 1
41611 db_appexit( NULL );
41613 (void) dbopen( NULL, 0, 0, 0, NULL);
41620 rm -f conftest.$ac_objext conftest$ac_exeext
41621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41622 (eval $ac_link) 2>conftest.er1
41624 grep -v '^ *+' conftest.er1 >conftest.err
41626 cat conftest.err >&5
41627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41628 (exit $ac_status); } &&
41629 { ac_try='test -z "$ac_c_werror_flag"
41630 || test ! -s conftest.err'
41631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41632 (eval $ac_try) 2>&5
41634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635 (exit $ac_status); }; } &&
41636 { ac_try='test -s conftest$ac_exeext'
41637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41638 (eval $ac_try) 2>&5
41640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41641 (exit $ac_status); }; }; then
41642 ol_cv_db_db_4_dot_2=yes
41644 echo "$as_me: failed program was:" >&5
41645 sed 's/^/| /' conftest.$ac_ext >&5
41647 ol_cv_db_db_4_dot_2=no
41649 rm -f conftest.err conftest.$ac_objext \
41650 conftest$ac_exeext conftest.$ac_ext
41655 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41656 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41658 if test $ol_cv_db_db_4_dot_2 = yes ; then
41659 ol_cv_lib_db=-ldb-4.2
41663 if test $ol_cv_lib_db = no ; then
41664 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41665 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41666 if test "${ol_cv_db_db_4_2+set}" = set; then
41667 echo $ECHO_N "(cached) $ECHO_C" >&6
41672 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41674 cat >conftest.$ac_ext <<_ACEOF
41677 cat confdefs.h >>conftest.$ac_ext
41678 cat >>conftest.$ac_ext <<_ACEOF
41679 /* end confdefs.h. */
41681 #ifdef HAVE_DB_185_H
41682 # include <db_185.h>
41687 #ifndef DB_VERSION_MAJOR
41688 # define DB_VERSION_MAJOR 1
41692 #define NULL ((void*)0)
41699 #if DB_VERSION_MAJOR > 1
41702 int major, minor, patch;
41704 version = db_version( &major, &minor, &patch );
41706 if( major != DB_VERSION_MAJOR ||
41707 minor < DB_VERSION_MINOR )
41709 printf("Berkeley DB version mismatch\n"
41710 "\theader: %s\n\tlibrary: %s\n",
41711 DB_VERSION_STRING, version);
41717 #if DB_VERSION_MAJOR > 2
41718 db_env_create( NULL, 0 );
41719 #elif DB_VERSION_MAJOR > 1
41720 db_appexit( NULL );
41722 (void) dbopen( NULL, 0, 0, 0, NULL);
41729 rm -f conftest.$ac_objext conftest$ac_exeext
41730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41731 (eval $ac_link) 2>conftest.er1
41733 grep -v '^ *+' conftest.er1 >conftest.err
41735 cat conftest.err >&5
41736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41737 (exit $ac_status); } &&
41738 { ac_try='test -z "$ac_c_werror_flag"
41739 || test ! -s conftest.err'
41740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41741 (eval $ac_try) 2>&5
41743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744 (exit $ac_status); }; } &&
41745 { ac_try='test -s conftest$ac_exeext'
41746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41747 (eval $ac_try) 2>&5
41749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750 (exit $ac_status); }; }; then
41751 ol_cv_db_db_4_2=yes
41753 echo "$as_me: failed program was:" >&5
41754 sed 's/^/| /' conftest.$ac_ext >&5
41758 rm -f conftest.err conftest.$ac_objext \
41759 conftest$ac_exeext conftest.$ac_ext
41764 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41765 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41767 if test $ol_cv_db_db_4_2 = yes ; then
41768 ol_cv_lib_db=-ldb-4-2
41772 if test $ol_cv_lib_db = no ; then
41773 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41774 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41775 if test "${ol_cv_db_db_4+set}" = set; then
41776 echo $ECHO_N "(cached) $ECHO_C" >&6
41781 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41783 cat >conftest.$ac_ext <<_ACEOF
41786 cat confdefs.h >>conftest.$ac_ext
41787 cat >>conftest.$ac_ext <<_ACEOF
41788 /* end confdefs.h. */
41790 #ifdef HAVE_DB_185_H
41791 # include <db_185.h>
41796 #ifndef DB_VERSION_MAJOR
41797 # define DB_VERSION_MAJOR 1
41801 #define NULL ((void*)0)
41808 #if DB_VERSION_MAJOR > 1
41811 int major, minor, patch;
41813 version = db_version( &major, &minor, &patch );
41815 if( major != DB_VERSION_MAJOR ||
41816 minor < DB_VERSION_MINOR )
41818 printf("Berkeley DB version mismatch\n"
41819 "\theader: %s\n\tlibrary: %s\n",
41820 DB_VERSION_STRING, version);
41826 #if DB_VERSION_MAJOR > 2
41827 db_env_create( NULL, 0 );
41828 #elif DB_VERSION_MAJOR > 1
41829 db_appexit( NULL );
41831 (void) dbopen( NULL, 0, 0, 0, NULL);
41838 rm -f conftest.$ac_objext conftest$ac_exeext
41839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41840 (eval $ac_link) 2>conftest.er1
41842 grep -v '^ *+' conftest.er1 >conftest.err
41844 cat conftest.err >&5
41845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 (exit $ac_status); } &&
41847 { ac_try='test -z "$ac_c_werror_flag"
41848 || test ! -s conftest.err'
41849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41850 (eval $ac_try) 2>&5
41852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853 (exit $ac_status); }; } &&
41854 { ac_try='test -s conftest$ac_exeext'
41855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41856 (eval $ac_try) 2>&5
41858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41859 (exit $ac_status); }; }; then
41862 echo "$as_me: failed program was:" >&5
41863 sed 's/^/| /' conftest.$ac_ext >&5
41867 rm -f conftest.err conftest.$ac_objext \
41868 conftest$ac_exeext conftest.$ac_ext
41873 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41874 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41876 if test $ol_cv_db_db_4 = yes ; then
41877 ol_cv_lib_db=-ldb-4
41881 if test $ol_cv_lib_db = no ; then
41882 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41883 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41884 if test "${ol_cv_db_db4+set}" = set; then
41885 echo $ECHO_N "(cached) $ECHO_C" >&6
41890 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41892 cat >conftest.$ac_ext <<_ACEOF
41895 cat confdefs.h >>conftest.$ac_ext
41896 cat >>conftest.$ac_ext <<_ACEOF
41897 /* end confdefs.h. */
41899 #ifdef HAVE_DB_185_H
41900 # include <db_185.h>
41905 #ifndef DB_VERSION_MAJOR
41906 # define DB_VERSION_MAJOR 1
41910 #define NULL ((void*)0)
41917 #if DB_VERSION_MAJOR > 1
41920 int major, minor, patch;
41922 version = db_version( &major, &minor, &patch );
41924 if( major != DB_VERSION_MAJOR ||
41925 minor < DB_VERSION_MINOR )
41927 printf("Berkeley DB version mismatch\n"
41928 "\theader: %s\n\tlibrary: %s\n",
41929 DB_VERSION_STRING, version);
41935 #if DB_VERSION_MAJOR > 2
41936 db_env_create( NULL, 0 );
41937 #elif DB_VERSION_MAJOR > 1
41938 db_appexit( NULL );
41940 (void) dbopen( NULL, 0, 0, 0, NULL);
41947 rm -f conftest.$ac_objext conftest$ac_exeext
41948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41949 (eval $ac_link) 2>conftest.er1
41951 grep -v '^ *+' conftest.er1 >conftest.err
41953 cat conftest.err >&5
41954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41955 (exit $ac_status); } &&
41956 { ac_try='test -z "$ac_c_werror_flag"
41957 || test ! -s conftest.err'
41958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41959 (eval $ac_try) 2>&5
41961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41962 (exit $ac_status); }; } &&
41963 { ac_try='test -s conftest$ac_exeext'
41964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41965 (eval $ac_try) 2>&5
41967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968 (exit $ac_status); }; }; then
41971 echo "$as_me: failed program was:" >&5
41972 sed 's/^/| /' conftest.$ac_ext >&5
41976 rm -f conftest.err conftest.$ac_objext \
41977 conftest$ac_exeext conftest.$ac_ext
41982 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41983 echo "${ECHO_T}$ol_cv_db_db4" >&6
41985 if test $ol_cv_db_db4 = yes ; then
41990 if test $ol_cv_lib_db = no ; then
41991 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41992 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41993 if test "${ol_cv_db_db+set}" = set; then
41994 echo $ECHO_N "(cached) $ECHO_C" >&6
41999 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42001 cat >conftest.$ac_ext <<_ACEOF
42004 cat confdefs.h >>conftest.$ac_ext
42005 cat >>conftest.$ac_ext <<_ACEOF
42006 /* end confdefs.h. */
42008 #ifdef HAVE_DB_185_H
42009 # include <db_185.h>
42014 #ifndef DB_VERSION_MAJOR
42015 # define DB_VERSION_MAJOR 1
42019 #define NULL ((void*)0)
42026 #if DB_VERSION_MAJOR > 1
42029 int major, minor, patch;
42031 version = db_version( &major, &minor, &patch );
42033 if( major != DB_VERSION_MAJOR ||
42034 minor < DB_VERSION_MINOR )
42036 printf("Berkeley DB version mismatch\n"
42037 "\theader: %s\n\tlibrary: %s\n",
42038 DB_VERSION_STRING, version);
42044 #if DB_VERSION_MAJOR > 2
42045 db_env_create( NULL, 0 );
42046 #elif DB_VERSION_MAJOR > 1
42047 db_appexit( NULL );
42049 (void) dbopen( NULL, 0, 0, 0, NULL);
42056 rm -f conftest.$ac_objext conftest$ac_exeext
42057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42058 (eval $ac_link) 2>conftest.er1
42060 grep -v '^ *+' conftest.er1 >conftest.err
42062 cat conftest.err >&5
42063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064 (exit $ac_status); } &&
42065 { ac_try='test -z "$ac_c_werror_flag"
42066 || test ! -s conftest.err'
42067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42068 (eval $ac_try) 2>&5
42070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071 (exit $ac_status); }; } &&
42072 { ac_try='test -s conftest$ac_exeext'
42073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42074 (eval $ac_try) 2>&5
42076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077 (exit $ac_status); }; }; then
42080 echo "$as_me: failed program was:" >&5
42081 sed 's/^/| /' conftest.$ac_ext >&5
42085 rm -f conftest.err conftest.$ac_objext \
42086 conftest$ac_exeext conftest.$ac_ext
42091 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
42092 echo "${ECHO_T}$ol_cv_db_db" >&6
42094 if test $ol_cv_db_db = yes ; then
42099 if test $ol_cv_lib_db = no ; then
42100 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
42101 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
42102 if test "${ol_cv_db_db41+set}" = set; then
42103 echo $ECHO_N "(cached) $ECHO_C" >&6
42108 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42110 cat >conftest.$ac_ext <<_ACEOF
42113 cat confdefs.h >>conftest.$ac_ext
42114 cat >>conftest.$ac_ext <<_ACEOF
42115 /* end confdefs.h. */
42117 #ifdef HAVE_DB_185_H
42118 # include <db_185.h>
42123 #ifndef DB_VERSION_MAJOR
42124 # define DB_VERSION_MAJOR 1
42128 #define NULL ((void*)0)
42135 #if DB_VERSION_MAJOR > 1
42138 int major, minor, patch;
42140 version = db_version( &major, &minor, &patch );
42142 if( major != DB_VERSION_MAJOR ||
42143 minor < DB_VERSION_MINOR )
42145 printf("Berkeley DB version mismatch\n"
42146 "\theader: %s\n\tlibrary: %s\n",
42147 DB_VERSION_STRING, version);
42153 #if DB_VERSION_MAJOR > 2
42154 db_env_create( NULL, 0 );
42155 #elif DB_VERSION_MAJOR > 1
42156 db_appexit( NULL );
42158 (void) dbopen( NULL, 0, 0, 0, NULL);
42165 rm -f conftest.$ac_objext conftest$ac_exeext
42166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42167 (eval $ac_link) 2>conftest.er1
42169 grep -v '^ *+' conftest.er1 >conftest.err
42171 cat conftest.err >&5
42172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42173 (exit $ac_status); } &&
42174 { ac_try='test -z "$ac_c_werror_flag"
42175 || test ! -s conftest.err'
42176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42177 (eval $ac_try) 2>&5
42179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42180 (exit $ac_status); }; } &&
42181 { ac_try='test -s conftest$ac_exeext'
42182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42183 (eval $ac_try) 2>&5
42185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42186 (exit $ac_status); }; }; then
42189 echo "$as_me: failed program was:" >&5
42190 sed 's/^/| /' conftest.$ac_ext >&5
42194 rm -f conftest.err conftest.$ac_objext \
42195 conftest$ac_exeext conftest.$ac_ext
42200 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42201 echo "${ECHO_T}$ol_cv_db_db41" >&6
42203 if test $ol_cv_db_db41 = yes ; then
42204 ol_cv_lib_db=-ldb41
42208 if test $ol_cv_lib_db = no ; then
42209 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42210 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42211 if test "${ol_cv_db_db_41+set}" = set; then
42212 echo $ECHO_N "(cached) $ECHO_C" >&6
42217 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42219 cat >conftest.$ac_ext <<_ACEOF
42222 cat confdefs.h >>conftest.$ac_ext
42223 cat >>conftest.$ac_ext <<_ACEOF
42224 /* end confdefs.h. */
42226 #ifdef HAVE_DB_185_H
42227 # include <db_185.h>
42232 #ifndef DB_VERSION_MAJOR
42233 # define DB_VERSION_MAJOR 1
42237 #define NULL ((void*)0)
42244 #if DB_VERSION_MAJOR > 1
42247 int major, minor, patch;
42249 version = db_version( &major, &minor, &patch );
42251 if( major != DB_VERSION_MAJOR ||
42252 minor < DB_VERSION_MINOR )
42254 printf("Berkeley DB version mismatch\n"
42255 "\theader: %s\n\tlibrary: %s\n",
42256 DB_VERSION_STRING, version);
42262 #if DB_VERSION_MAJOR > 2
42263 db_env_create( NULL, 0 );
42264 #elif DB_VERSION_MAJOR > 1
42265 db_appexit( NULL );
42267 (void) dbopen( NULL, 0, 0, 0, NULL);
42274 rm -f conftest.$ac_objext conftest$ac_exeext
42275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42276 (eval $ac_link) 2>conftest.er1
42278 grep -v '^ *+' conftest.er1 >conftest.err
42280 cat conftest.err >&5
42281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42282 (exit $ac_status); } &&
42283 { ac_try='test -z "$ac_c_werror_flag"
42284 || test ! -s conftest.err'
42285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42286 (eval $ac_try) 2>&5
42288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42289 (exit $ac_status); }; } &&
42290 { ac_try='test -s conftest$ac_exeext'
42291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42292 (eval $ac_try) 2>&5
42294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295 (exit $ac_status); }; }; then
42298 echo "$as_me: failed program was:" >&5
42299 sed 's/^/| /' conftest.$ac_ext >&5
42303 rm -f conftest.err conftest.$ac_objext \
42304 conftest$ac_exeext conftest.$ac_ext
42309 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42310 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42312 if test $ol_cv_db_db_41 = yes ; then
42313 ol_cv_lib_db=-ldb-41
42317 if test $ol_cv_lib_db = no ; then
42318 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42319 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42320 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42321 echo $ECHO_N "(cached) $ECHO_C" >&6
42326 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42328 cat >conftest.$ac_ext <<_ACEOF
42331 cat confdefs.h >>conftest.$ac_ext
42332 cat >>conftest.$ac_ext <<_ACEOF
42333 /* end confdefs.h. */
42335 #ifdef HAVE_DB_185_H
42336 # include <db_185.h>
42341 #ifndef DB_VERSION_MAJOR
42342 # define DB_VERSION_MAJOR 1
42346 #define NULL ((void*)0)
42353 #if DB_VERSION_MAJOR > 1
42356 int major, minor, patch;
42358 version = db_version( &major, &minor, &patch );
42360 if( major != DB_VERSION_MAJOR ||
42361 minor < DB_VERSION_MINOR )
42363 printf("Berkeley DB version mismatch\n"
42364 "\theader: %s\n\tlibrary: %s\n",
42365 DB_VERSION_STRING, version);
42371 #if DB_VERSION_MAJOR > 2
42372 db_env_create( NULL, 0 );
42373 #elif DB_VERSION_MAJOR > 1
42374 db_appexit( NULL );
42376 (void) dbopen( NULL, 0, 0, 0, NULL);
42383 rm -f conftest.$ac_objext conftest$ac_exeext
42384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42385 (eval $ac_link) 2>conftest.er1
42387 grep -v '^ *+' conftest.er1 >conftest.err
42389 cat conftest.err >&5
42390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42391 (exit $ac_status); } &&
42392 { ac_try='test -z "$ac_c_werror_flag"
42393 || test ! -s conftest.err'
42394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42395 (eval $ac_try) 2>&5
42397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398 (exit $ac_status); }; } &&
42399 { ac_try='test -s conftest$ac_exeext'
42400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42401 (eval $ac_try) 2>&5
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); }; }; then
42405 ol_cv_db_db_4_dot_1=yes
42407 echo "$as_me: failed program was:" >&5
42408 sed 's/^/| /' conftest.$ac_ext >&5
42410 ol_cv_db_db_4_dot_1=no
42412 rm -f conftest.err conftest.$ac_objext \
42413 conftest$ac_exeext conftest.$ac_ext
42418 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42419 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42421 if test $ol_cv_db_db_4_dot_1 = yes ; then
42422 ol_cv_lib_db=-ldb-4.1
42426 if test $ol_cv_lib_db = no ; then
42427 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42428 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42429 if test "${ol_cv_db_db_4_1+set}" = set; then
42430 echo $ECHO_N "(cached) $ECHO_C" >&6
42435 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42437 cat >conftest.$ac_ext <<_ACEOF
42440 cat confdefs.h >>conftest.$ac_ext
42441 cat >>conftest.$ac_ext <<_ACEOF
42442 /* end confdefs.h. */
42444 #ifdef HAVE_DB_185_H
42445 # include <db_185.h>
42450 #ifndef DB_VERSION_MAJOR
42451 # define DB_VERSION_MAJOR 1
42455 #define NULL ((void*)0)
42462 #if DB_VERSION_MAJOR > 1
42465 int major, minor, patch;
42467 version = db_version( &major, &minor, &patch );
42469 if( major != DB_VERSION_MAJOR ||
42470 minor < DB_VERSION_MINOR )
42472 printf("Berkeley DB version mismatch\n"
42473 "\theader: %s\n\tlibrary: %s\n",
42474 DB_VERSION_STRING, version);
42480 #if DB_VERSION_MAJOR > 2
42481 db_env_create( NULL, 0 );
42482 #elif DB_VERSION_MAJOR > 1
42483 db_appexit( NULL );
42485 (void) dbopen( NULL, 0, 0, 0, NULL);
42492 rm -f conftest.$ac_objext conftest$ac_exeext
42493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42494 (eval $ac_link) 2>conftest.er1
42496 grep -v '^ *+' conftest.er1 >conftest.err
42498 cat conftest.err >&5
42499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42500 (exit $ac_status); } &&
42501 { ac_try='test -z "$ac_c_werror_flag"
42502 || test ! -s conftest.err'
42503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42504 (eval $ac_try) 2>&5
42506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42507 (exit $ac_status); }; } &&
42508 { ac_try='test -s conftest$ac_exeext'
42509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42510 (eval $ac_try) 2>&5
42512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42513 (exit $ac_status); }; }; then
42514 ol_cv_db_db_4_1=yes
42516 echo "$as_me: failed program was:" >&5
42517 sed 's/^/| /' conftest.$ac_ext >&5
42521 rm -f conftest.err conftest.$ac_objext \
42522 conftest$ac_exeext conftest.$ac_ext
42527 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42528 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42530 if test $ol_cv_db_db_4_1 = yes ; then
42531 ol_cv_lib_db=-ldb-4-1
42535 if test $ol_cv_lib_db = no ; then
42536 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42537 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42538 if test "${ol_cv_db_db3+set}" = set; then
42539 echo $ECHO_N "(cached) $ECHO_C" >&6
42544 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42546 cat >conftest.$ac_ext <<_ACEOF
42549 cat confdefs.h >>conftest.$ac_ext
42550 cat >>conftest.$ac_ext <<_ACEOF
42551 /* end confdefs.h. */
42553 #ifdef HAVE_DB_185_H
42554 # include <db_185.h>
42559 #ifndef DB_VERSION_MAJOR
42560 # define DB_VERSION_MAJOR 1
42564 #define NULL ((void*)0)
42571 #if DB_VERSION_MAJOR > 1
42574 int major, minor, patch;
42576 version = db_version( &major, &minor, &patch );
42578 if( major != DB_VERSION_MAJOR ||
42579 minor < DB_VERSION_MINOR )
42581 printf("Berkeley DB version mismatch\n"
42582 "\theader: %s\n\tlibrary: %s\n",
42583 DB_VERSION_STRING, version);
42589 #if DB_VERSION_MAJOR > 2
42590 db_env_create( NULL, 0 );
42591 #elif DB_VERSION_MAJOR > 1
42592 db_appexit( NULL );
42594 (void) dbopen( NULL, 0, 0, 0, NULL);
42601 rm -f conftest.$ac_objext conftest$ac_exeext
42602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42603 (eval $ac_link) 2>conftest.er1
42605 grep -v '^ *+' conftest.er1 >conftest.err
42607 cat conftest.err >&5
42608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42609 (exit $ac_status); } &&
42610 { ac_try='test -z "$ac_c_werror_flag"
42611 || test ! -s conftest.err'
42612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42613 (eval $ac_try) 2>&5
42615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42616 (exit $ac_status); }; } &&
42617 { ac_try='test -s conftest$ac_exeext'
42618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42619 (eval $ac_try) 2>&5
42621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42622 (exit $ac_status); }; }; then
42625 echo "$as_me: failed program was:" >&5
42626 sed 's/^/| /' conftest.$ac_ext >&5
42630 rm -f conftest.err conftest.$ac_objext \
42631 conftest$ac_exeext conftest.$ac_ext
42636 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42637 echo "${ECHO_T}$ol_cv_db_db3" >&6
42639 if test $ol_cv_db_db3 = yes ; then
42644 if test $ol_cv_lib_db = no ; then
42645 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42646 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42647 if test "${ol_cv_db_db_3+set}" = set; then
42648 echo $ECHO_N "(cached) $ECHO_C" >&6
42653 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42655 cat >conftest.$ac_ext <<_ACEOF
42658 cat confdefs.h >>conftest.$ac_ext
42659 cat >>conftest.$ac_ext <<_ACEOF
42660 /* end confdefs.h. */
42662 #ifdef HAVE_DB_185_H
42663 # include <db_185.h>
42668 #ifndef DB_VERSION_MAJOR
42669 # define DB_VERSION_MAJOR 1
42673 #define NULL ((void*)0)
42680 #if DB_VERSION_MAJOR > 1
42683 int major, minor, patch;
42685 version = db_version( &major, &minor, &patch );
42687 if( major != DB_VERSION_MAJOR ||
42688 minor < DB_VERSION_MINOR )
42690 printf("Berkeley DB version mismatch\n"
42691 "\theader: %s\n\tlibrary: %s\n",
42692 DB_VERSION_STRING, version);
42698 #if DB_VERSION_MAJOR > 2
42699 db_env_create( NULL, 0 );
42700 #elif DB_VERSION_MAJOR > 1
42701 db_appexit( NULL );
42703 (void) dbopen( NULL, 0, 0, 0, NULL);
42710 rm -f conftest.$ac_objext conftest$ac_exeext
42711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42712 (eval $ac_link) 2>conftest.er1
42714 grep -v '^ *+' conftest.er1 >conftest.err
42716 cat conftest.err >&5
42717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718 (exit $ac_status); } &&
42719 { ac_try='test -z "$ac_c_werror_flag"
42720 || test ! -s conftest.err'
42721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42722 (eval $ac_try) 2>&5
42724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725 (exit $ac_status); }; } &&
42726 { ac_try='test -s conftest$ac_exeext'
42727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42728 (eval $ac_try) 2>&5
42730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42731 (exit $ac_status); }; }; then
42734 echo "$as_me: failed program was:" >&5
42735 sed 's/^/| /' conftest.$ac_ext >&5
42739 rm -f conftest.err conftest.$ac_objext \
42740 conftest$ac_exeext conftest.$ac_ext
42745 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42746 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42748 if test $ol_cv_db_db_3 = yes ; then
42749 ol_cv_lib_db=-ldb-3
42753 if test $ol_cv_lib_db = no ; then
42754 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42755 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42756 if test "${ol_cv_db_db2+set}" = set; then
42757 echo $ECHO_N "(cached) $ECHO_C" >&6
42762 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42764 cat >conftest.$ac_ext <<_ACEOF
42767 cat confdefs.h >>conftest.$ac_ext
42768 cat >>conftest.$ac_ext <<_ACEOF
42769 /* end confdefs.h. */
42771 #ifdef HAVE_DB_185_H
42772 # include <db_185.h>
42777 #ifndef DB_VERSION_MAJOR
42778 # define DB_VERSION_MAJOR 1
42782 #define NULL ((void*)0)
42789 #if DB_VERSION_MAJOR > 1
42792 int major, minor, patch;
42794 version = db_version( &major, &minor, &patch );
42796 if( major != DB_VERSION_MAJOR ||
42797 minor < DB_VERSION_MINOR )
42799 printf("Berkeley DB version mismatch\n"
42800 "\theader: %s\n\tlibrary: %s\n",
42801 DB_VERSION_STRING, version);
42807 #if DB_VERSION_MAJOR > 2
42808 db_env_create( NULL, 0 );
42809 #elif DB_VERSION_MAJOR > 1
42810 db_appexit( NULL );
42812 (void) dbopen( NULL, 0, 0, 0, NULL);
42819 rm -f conftest.$ac_objext conftest$ac_exeext
42820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42821 (eval $ac_link) 2>conftest.er1
42823 grep -v '^ *+' conftest.er1 >conftest.err
42825 cat conftest.err >&5
42826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42827 (exit $ac_status); } &&
42828 { ac_try='test -z "$ac_c_werror_flag"
42829 || test ! -s conftest.err'
42830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42831 (eval $ac_try) 2>&5
42833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42834 (exit $ac_status); }; } &&
42835 { ac_try='test -s conftest$ac_exeext'
42836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42837 (eval $ac_try) 2>&5
42839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42840 (exit $ac_status); }; }; then
42843 echo "$as_me: failed program was:" >&5
42844 sed 's/^/| /' conftest.$ac_ext >&5
42848 rm -f conftest.err conftest.$ac_objext \
42849 conftest$ac_exeext conftest.$ac_ext
42854 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42855 echo "${ECHO_T}$ol_cv_db_db2" >&6
42857 if test $ol_cv_db_db2 = yes ; then
42862 if test $ol_cv_lib_db = no ; then
42863 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42864 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42865 if test "${ol_cv_db_db_2+set}" = set; then
42866 echo $ECHO_N "(cached) $ECHO_C" >&6
42871 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42873 cat >conftest.$ac_ext <<_ACEOF
42876 cat confdefs.h >>conftest.$ac_ext
42877 cat >>conftest.$ac_ext <<_ACEOF
42878 /* end confdefs.h. */
42880 #ifdef HAVE_DB_185_H
42881 # include <db_185.h>
42886 #ifndef DB_VERSION_MAJOR
42887 # define DB_VERSION_MAJOR 1
42891 #define NULL ((void*)0)
42898 #if DB_VERSION_MAJOR > 1
42901 int major, minor, patch;
42903 version = db_version( &major, &minor, &patch );
42905 if( major != DB_VERSION_MAJOR ||
42906 minor < DB_VERSION_MINOR )
42908 printf("Berkeley DB version mismatch\n"
42909 "\theader: %s\n\tlibrary: %s\n",
42910 DB_VERSION_STRING, version);
42916 #if DB_VERSION_MAJOR > 2
42917 db_env_create( NULL, 0 );
42918 #elif DB_VERSION_MAJOR > 1
42919 db_appexit( NULL );
42921 (void) dbopen( NULL, 0, 0, 0, NULL);
42928 rm -f conftest.$ac_objext conftest$ac_exeext
42929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42930 (eval $ac_link) 2>conftest.er1
42932 grep -v '^ *+' conftest.er1 >conftest.err
42934 cat conftest.err >&5
42935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42936 (exit $ac_status); } &&
42937 { ac_try='test -z "$ac_c_werror_flag"
42938 || test ! -s conftest.err'
42939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42940 (eval $ac_try) 2>&5
42942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42943 (exit $ac_status); }; } &&
42944 { ac_try='test -s conftest$ac_exeext'
42945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42946 (eval $ac_try) 2>&5
42948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42949 (exit $ac_status); }; }; then
42952 echo "$as_me: failed program was:" >&5
42953 sed 's/^/| /' conftest.$ac_ext >&5
42957 rm -f conftest.err conftest.$ac_objext \
42958 conftest$ac_exeext conftest.$ac_ext
42963 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42964 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42966 if test $ol_cv_db_db_2 = yes ; then
42967 ol_cv_lib_db=-ldb-2
42971 if test $ol_cv_lib_db = no ; then
42972 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42973 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42974 if test "${ol_cv_db_db1+set}" = set; then
42975 echo $ECHO_N "(cached) $ECHO_C" >&6
42980 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42982 cat >conftest.$ac_ext <<_ACEOF
42985 cat confdefs.h >>conftest.$ac_ext
42986 cat >>conftest.$ac_ext <<_ACEOF
42987 /* end confdefs.h. */
42989 #ifdef HAVE_DB_185_H
42990 # include <db_185.h>
42995 #ifndef DB_VERSION_MAJOR
42996 # define DB_VERSION_MAJOR 1
43000 #define NULL ((void*)0)
43007 #if DB_VERSION_MAJOR > 1
43010 int major, minor, patch;
43012 version = db_version( &major, &minor, &patch );
43014 if( major != DB_VERSION_MAJOR ||
43015 minor < DB_VERSION_MINOR )
43017 printf("Berkeley DB version mismatch\n"
43018 "\theader: %s\n\tlibrary: %s\n",
43019 DB_VERSION_STRING, version);
43025 #if DB_VERSION_MAJOR > 2
43026 db_env_create( NULL, 0 );
43027 #elif DB_VERSION_MAJOR > 1
43028 db_appexit( NULL );
43030 (void) dbopen( NULL, 0, 0, 0, NULL);
43037 rm -f conftest.$ac_objext conftest$ac_exeext
43038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43039 (eval $ac_link) 2>conftest.er1
43041 grep -v '^ *+' conftest.er1 >conftest.err
43043 cat conftest.err >&5
43044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43045 (exit $ac_status); } &&
43046 { ac_try='test -z "$ac_c_werror_flag"
43047 || test ! -s conftest.err'
43048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43049 (eval $ac_try) 2>&5
43051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43052 (exit $ac_status); }; } &&
43053 { ac_try='test -s conftest$ac_exeext'
43054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43055 (eval $ac_try) 2>&5
43057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43058 (exit $ac_status); }; }; then
43061 echo "$as_me: failed program was:" >&5
43062 sed 's/^/| /' conftest.$ac_ext >&5
43066 rm -f conftest.err conftest.$ac_objext \
43067 conftest$ac_exeext conftest.$ac_ext
43072 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
43073 echo "${ECHO_T}$ol_cv_db_db1" >&6
43075 if test $ol_cv_db_db1 = yes ; then
43080 if test $ol_cv_lib_db = no ; then
43081 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
43082 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
43083 if test "${ol_cv_db_db_1+set}" = set; then
43084 echo $ECHO_N "(cached) $ECHO_C" >&6
43089 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
43091 cat >conftest.$ac_ext <<_ACEOF
43094 cat confdefs.h >>conftest.$ac_ext
43095 cat >>conftest.$ac_ext <<_ACEOF
43096 /* end confdefs.h. */
43098 #ifdef HAVE_DB_185_H
43099 # include <db_185.h>
43104 #ifndef DB_VERSION_MAJOR
43105 # define DB_VERSION_MAJOR 1
43109 #define NULL ((void*)0)
43116 #if DB_VERSION_MAJOR > 1
43119 int major, minor, patch;
43121 version = db_version( &major, &minor, &patch );
43123 if( major != DB_VERSION_MAJOR ||
43124 minor < DB_VERSION_MINOR )
43126 printf("Berkeley DB version mismatch\n"
43127 "\theader: %s\n\tlibrary: %s\n",
43128 DB_VERSION_STRING, version);
43134 #if DB_VERSION_MAJOR > 2
43135 db_env_create( NULL, 0 );
43136 #elif DB_VERSION_MAJOR > 1
43137 db_appexit( NULL );
43139 (void) dbopen( NULL, 0, 0, 0, NULL);
43146 rm -f conftest.$ac_objext conftest$ac_exeext
43147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43148 (eval $ac_link) 2>conftest.er1
43150 grep -v '^ *+' conftest.er1 >conftest.err
43152 cat conftest.err >&5
43153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43154 (exit $ac_status); } &&
43155 { ac_try='test -z "$ac_c_werror_flag"
43156 || test ! -s conftest.err'
43157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43158 (eval $ac_try) 2>&5
43160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43161 (exit $ac_status); }; } &&
43162 { ac_try='test -s conftest$ac_exeext'
43163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43164 (eval $ac_try) 2>&5
43166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43167 (exit $ac_status); }; }; then
43170 echo "$as_me: failed program was:" >&5
43171 sed 's/^/| /' conftest.$ac_ext >&5
43175 rm -f conftest.err conftest.$ac_objext \
43176 conftest$ac_exeext conftest.$ac_ext
43181 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43182 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43184 if test $ol_cv_db_db_1 = yes ; then
43185 ol_cv_lib_db=-ldb-1
43190 if test "$ol_cv_lib_db" != no ; then
43191 ol_cv_berkeley_db=yes
43192 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43193 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43194 if test "${ol_cv_berkeley_db_version+set}" = set; then
43195 echo $ECHO_N "(cached) $ECHO_C" >&6
43199 LIBS="$LTHREAD_LIBS $LIBS"
43200 if test $ol_cv_lib_db != yes ; then
43201 LIBS="$ol_cv_lib_db $LIBS"
43204 if test "$cross_compiling" = yes; then
43205 ol_cv_berkeley_db_version=cross
43207 cat >conftest.$ac_ext <<_ACEOF
43210 cat confdefs.h >>conftest.$ac_ext
43211 cat >>conftest.$ac_ext <<_ACEOF
43212 /* end confdefs.h. */
43214 #ifdef HAVE_DB_185_H
43219 #ifndef DB_VERSION_MAJOR
43220 # define DB_VERSION_MAJOR 1
43223 #define NULL ((void *)0)
43227 #if DB_VERSION_MAJOR > 1
43229 int major, minor, patch;
43231 version = db_version( &major, &minor, &patch );
43233 if( major != DB_VERSION_MAJOR ||
43234 minor != DB_VERSION_MINOR ||
43235 patch != DB_VERSION_PATCH )
43237 printf("Berkeley DB version mismatch\n"
43238 "\theader: %s\n\tlibrary: %s\n",
43239 DB_VERSION_STRING, version);
43247 rm -f conftest$ac_exeext
43248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43249 (eval $ac_link) 2>&5
43251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43254 (eval $ac_try) 2>&5
43256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257 (exit $ac_status); }; }; then
43258 ol_cv_berkeley_db_version=yes
43260 echo "$as_me: program exited with status $ac_status" >&5
43261 echo "$as_me: failed program was:" >&5
43262 sed 's/^/| /' conftest.$ac_ext >&5
43264 ( exit $ac_status )
43265 ol_cv_berkeley_db_version=no
43267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43273 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43274 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43276 if test $ol_cv_berkeley_db_version = no ; then
43277 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43278 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43279 { (exit 1); exit 1; }; }
43282 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43283 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43284 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43285 echo $ECHO_N "(cached) $ECHO_C" >&6
43289 LIBS="$LTHREAD_LIBS $LIBS"
43290 if test $ol_cv_lib_db != yes ; then
43291 LIBS="$ol_cv_lib_db $LIBS"
43294 if test "$cross_compiling" = yes; then
43295 ol_cv_berkeley_db_thread=cross
43297 cat >conftest.$ac_ext <<_ACEOF
43300 cat confdefs.h >>conftest.$ac_ext
43301 cat >>conftest.$ac_ext <<_ACEOF
43302 /* end confdefs.h. */
43304 #ifdef HAVE_DB_185_H
43310 #define NULL ((void *)0)
43315 u_int32_t flags = DB_CREATE |
43321 #if DB_VERSION_MAJOR > 2
43322 DB_ENV *env = NULL;
43324 rc = db_env_create( &env, 0 );
43326 flags |= DB_INIT_MPOOL;
43327 #ifdef DB_MPOOL_PRIVATE
43328 flags |= DB_MPOOL_PRIVATE;
43332 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43336 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43337 rc = env->open( env, NULL, flags, 0 );
43339 rc = env->open( env, NULL, NULL, flags, 0 );
43343 rc = env->close( env, 0 );
43347 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43353 memset( &env, '\0', sizeof(env) );
43355 rc = db_appinit( NULL, NULL, &env, flags );
43358 db_appexit( &env );
43361 unlink("__db_mpool.share");
43362 unlink("__db_lock.share");
43368 rm -f conftest$ac_exeext
43369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43370 (eval $ac_link) 2>&5
43372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43375 (eval $ac_try) 2>&5
43377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43378 (exit $ac_status); }; }; then
43379 ol_cv_berkeley_db_thread=yes
43381 echo "$as_me: program exited with status $ac_status" >&5
43382 echo "$as_me: failed program was:" >&5
43383 sed 's/^/| /' conftest.$ac_ext >&5
43385 ( exit $ac_status )
43386 ol_cv_berkeley_db_thread=no
43388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43394 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43395 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43397 if test $ol_cv_berkeley_db_thread != no ; then
43399 cat >>confdefs.h <<\_ACEOF
43400 #define HAVE_BERKELEY_DB_THREAD 1
43410 if test $ol_cv_berkeley_db != no ; then
43412 cat >>confdefs.h <<\_ACEOF
43413 #define HAVE_BERKELEY_DB 1
43417 ol_link_ldbm=berkeley
43418 ol_enable_ldbm_api=berkeley
43420 if test $ol_enable_ldbm_type = hash ; then
43422 cat >>confdefs.h <<\_ACEOF
43423 #define LDBM_USE_DBHASH 1
43428 cat >>confdefs.h <<\_ACEOF
43429 #define LDBM_USE_DBBTREE 1
43434 if test $ol_cv_lib_db != yes ; then
43435 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43440 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43441 if test $ol_link_ldbm != berkeley ; then
43442 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43443 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43444 { (exit 1); exit 1; }; }
43446 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43447 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43448 if test "${ol_cv_bdb_compat+set}" = set; then
43449 echo $ECHO_N "(cached) $ECHO_C" >&6
43452 cat >conftest.$ac_ext <<_ACEOF
43455 cat confdefs.h >>conftest.$ac_ext
43456 cat >>conftest.$ac_ext <<_ACEOF
43457 /* end confdefs.h. */
43461 /* this check could be improved */
43462 #ifndef DB_VERSION_MAJOR
43463 # define DB_VERSION_MAJOR 1
43465 #ifndef DB_VERSION_MINOR
43466 # define DB_VERSION_MINOR 0
43469 /* require 4.2 or later */
43470 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43471 __db_version_compat
43475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43476 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43477 ol_cv_bdb_compat=yes
43479 ol_cv_bdb_compat=no
43484 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43485 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43488 if test $ol_cv_bdb_compat != yes ; then
43489 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43490 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43491 { (exit 1); exit 1; }; }
43496 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
43497 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43498 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43499 ol_enable_ldbm_api=none
43502 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
43503 echo "$as_me:$LINENO: checking for MDBM library" >&5
43504 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43505 if test "${ol_cv_lib_mdbm+set}" = set; then
43506 echo $ECHO_N "(cached) $ECHO_C" >&6
43509 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43510 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43511 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43512 echo $ECHO_N "(cached) $ECHO_C" >&6
43514 cat >conftest.$ac_ext <<_ACEOF
43517 cat confdefs.h >>conftest.$ac_ext
43518 cat >>conftest.$ac_ext <<_ACEOF
43519 /* end confdefs.h. */
43520 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43522 #define mdbm_set_chain innocuous_mdbm_set_chain
43524 /* System header to define __stub macros and hopefully few prototypes,
43525 which can conflict with char mdbm_set_chain (); below.
43526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43527 <limits.h> exists even on freestanding compilers. */
43530 # include <limits.h>
43532 # include <assert.h>
43535 #undef mdbm_set_chain
43537 /* Override any gcc2 internal prototype to avoid an error. */
43542 /* We use char because int might match the return type of a gcc2
43543 builtin and then its argument prototype would still apply. */
43544 char mdbm_set_chain ();
43545 /* The GNU C library defines this for functions which it implements
43546 to always fail with ENOSYS. Some functions are actually named
43547 something starting with __ and the normal name is an alias. */
43548 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43551 char (*f) () = mdbm_set_chain;
43560 return f != mdbm_set_chain;
43565 rm -f conftest.$ac_objext conftest$ac_exeext
43566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43567 (eval $ac_link) 2>conftest.er1
43569 grep -v '^ *+' conftest.er1 >conftest.err
43571 cat conftest.err >&5
43572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43573 (exit $ac_status); } &&
43574 { ac_try='test -z "$ac_c_werror_flag"
43575 || test ! -s conftest.err'
43576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43577 (eval $ac_try) 2>&5
43579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43580 (exit $ac_status); }; } &&
43581 { ac_try='test -s conftest$ac_exeext'
43582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43583 (eval $ac_try) 2>&5
43585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43586 (exit $ac_status); }; }; then
43587 ac_cv_func_mdbm_set_chain=yes
43589 echo "$as_me: failed program was:" >&5
43590 sed 's/^/| /' conftest.$ac_ext >&5
43592 ac_cv_func_mdbm_set_chain=no
43594 rm -f conftest.err conftest.$ac_objext \
43595 conftest$ac_exeext conftest.$ac_ext
43597 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43598 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43599 if test $ac_cv_func_mdbm_set_chain = yes; then
43603 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43604 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43605 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43606 echo $ECHO_N "(cached) $ECHO_C" >&6
43608 ac_check_lib_save_LIBS=$LIBS
43609 LIBS="-lmdbm $LIBS"
43610 cat >conftest.$ac_ext <<_ACEOF
43613 cat confdefs.h >>conftest.$ac_ext
43614 cat >>conftest.$ac_ext <<_ACEOF
43615 /* end confdefs.h. */
43617 /* Override any gcc2 internal prototype to avoid an error. */
43621 /* We use char because int might match the return type of a gcc2
43622 builtin and then its argument prototype would still apply. */
43623 char mdbm_set_chain ();
43632 rm -f conftest.$ac_objext conftest$ac_exeext
43633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43634 (eval $ac_link) 2>conftest.er1
43636 grep -v '^ *+' conftest.er1 >conftest.err
43638 cat conftest.err >&5
43639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43640 (exit $ac_status); } &&
43641 { ac_try='test -z "$ac_c_werror_flag"
43642 || test ! -s conftest.err'
43643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43644 (eval $ac_try) 2>&5
43646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43647 (exit $ac_status); }; } &&
43648 { ac_try='test -s conftest$ac_exeext'
43649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43650 (eval $ac_try) 2>&5
43652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43653 (exit $ac_status); }; }; then
43654 ac_cv_lib_mdbm_mdbm_set_chain=yes
43656 echo "$as_me: failed program was:" >&5
43657 sed 's/^/| /' conftest.$ac_ext >&5
43659 ac_cv_lib_mdbm_mdbm_set_chain=no
43661 rm -f conftest.err conftest.$ac_objext \
43662 conftest$ac_exeext conftest.$ac_ext
43663 LIBS=$ac_check_lib_save_LIBS
43665 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43666 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43667 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43668 ol_cv_lib_mdbm=-lmdbm
43679 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43680 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43684 for ac_header in mdbm.h
43686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43688 echo "$as_me:$LINENO: checking for $ac_header" >&5
43689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43691 echo $ECHO_N "(cached) $ECHO_C" >&6
43693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43696 # Is the header compilable?
43697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43699 cat >conftest.$ac_ext <<_ACEOF
43702 cat confdefs.h >>conftest.$ac_ext
43703 cat >>conftest.$ac_ext <<_ACEOF
43704 /* end confdefs.h. */
43705 $ac_includes_default
43706 #include <$ac_header>
43708 rm -f conftest.$ac_objext
43709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43710 (eval $ac_compile) 2>conftest.er1
43712 grep -v '^ *+' conftest.er1 >conftest.err
43714 cat conftest.err >&5
43715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43716 (exit $ac_status); } &&
43717 { ac_try='test -z "$ac_c_werror_flag"
43718 || test ! -s conftest.err'
43719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43720 (eval $ac_try) 2>&5
43722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43723 (exit $ac_status); }; } &&
43724 { ac_try='test -s conftest.$ac_objext'
43725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43726 (eval $ac_try) 2>&5
43728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43729 (exit $ac_status); }; }; then
43730 ac_header_compiler=yes
43732 echo "$as_me: failed program was:" >&5
43733 sed 's/^/| /' conftest.$ac_ext >&5
43735 ac_header_compiler=no
43737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43739 echo "${ECHO_T}$ac_header_compiler" >&6
43741 # Is the header present?
43742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43744 cat >conftest.$ac_ext <<_ACEOF
43747 cat confdefs.h >>conftest.$ac_ext
43748 cat >>conftest.$ac_ext <<_ACEOF
43749 /* end confdefs.h. */
43750 #include <$ac_header>
43752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43755 grep -v '^ *+' conftest.er1 >conftest.err
43757 cat conftest.err >&5
43758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43759 (exit $ac_status); } >/dev/null; then
43760 if test -s conftest.err; then
43761 ac_cpp_err=$ac_c_preproc_warn_flag
43762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43769 if test -z "$ac_cpp_err"; then
43770 ac_header_preproc=yes
43772 echo "$as_me: failed program was:" >&5
43773 sed 's/^/| /' conftest.$ac_ext >&5
43775 ac_header_preproc=no
43777 rm -f conftest.err conftest.$ac_ext
43778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43779 echo "${ECHO_T}$ac_header_preproc" >&6
43781 # So? What about this header?
43782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43788 ac_header_preproc=yes
43791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43805 ## ------------------------------------------ ##
43806 ## Report this to the AC_PACKAGE_NAME lists. ##
43807 ## ------------------------------------------ ##
43810 sed "s/^/$as_me: WARNING: /" >&2
43813 echo "$as_me:$LINENO: checking for $ac_header" >&5
43814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43816 echo $ECHO_N "(cached) $ECHO_C" >&6
43818 eval "$as_ac_Header=\$ac_header_preproc"
43820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43825 cat >>confdefs.h <<_ACEOF
43826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43833 echo "$as_me:$LINENO: checking for db" >&5
43834 echo $ECHO_N "checking for db... $ECHO_C" >&6
43835 if test "${ol_cv_mdbm+set}" = set; then
43836 echo $ECHO_N "(cached) $ECHO_C" >&6
43839 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43846 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43847 echo "${ECHO_T}$ol_cv_mdbm" >&6
43848 if test $ol_cv_mdbm = yes ; then
43850 cat >>confdefs.h <<\_ACEOF
43851 #define HAVE_MDBM 1
43857 if test $ol_cv_mdbm = yes ; then
43859 ol_enable_ldbm_api=mdbm
43860 if test $ol_cv_lib_mdbm != yes ; then
43861 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43866 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
43867 echo "$as_me:$LINENO: checking for GDBM library" >&5
43868 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43869 if test "${ol_cv_lib_gdbm+set}" = set; then
43870 echo $ECHO_N "(cached) $ECHO_C" >&6
43873 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43874 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43875 if test "${ac_cv_func_gdbm_open+set}" = set; then
43876 echo $ECHO_N "(cached) $ECHO_C" >&6
43878 cat >conftest.$ac_ext <<_ACEOF
43881 cat confdefs.h >>conftest.$ac_ext
43882 cat >>conftest.$ac_ext <<_ACEOF
43883 /* end confdefs.h. */
43884 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43886 #define gdbm_open innocuous_gdbm_open
43888 /* System header to define __stub macros and hopefully few prototypes,
43889 which can conflict with char gdbm_open (); below.
43890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43891 <limits.h> exists even on freestanding compilers. */
43894 # include <limits.h>
43896 # include <assert.h>
43901 /* Override any gcc2 internal prototype to avoid an error. */
43906 /* We use char because int might match the return type of a gcc2
43907 builtin and then its argument prototype would still apply. */
43909 /* The GNU C library defines this for functions which it implements
43910 to always fail with ENOSYS. Some functions are actually named
43911 something starting with __ and the normal name is an alias. */
43912 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43915 char (*f) () = gdbm_open;
43924 return f != gdbm_open;
43929 rm -f conftest.$ac_objext conftest$ac_exeext
43930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43931 (eval $ac_link) 2>conftest.er1
43933 grep -v '^ *+' conftest.er1 >conftest.err
43935 cat conftest.err >&5
43936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43937 (exit $ac_status); } &&
43938 { ac_try='test -z "$ac_c_werror_flag"
43939 || test ! -s conftest.err'
43940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43941 (eval $ac_try) 2>&5
43943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43944 (exit $ac_status); }; } &&
43945 { ac_try='test -s conftest$ac_exeext'
43946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43947 (eval $ac_try) 2>&5
43949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43950 (exit $ac_status); }; }; then
43951 ac_cv_func_gdbm_open=yes
43953 echo "$as_me: failed program was:" >&5
43954 sed 's/^/| /' conftest.$ac_ext >&5
43956 ac_cv_func_gdbm_open=no
43958 rm -f conftest.err conftest.$ac_objext \
43959 conftest$ac_exeext conftest.$ac_ext
43961 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43962 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43963 if test $ac_cv_func_gdbm_open = yes; then
43967 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43968 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43969 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43970 echo $ECHO_N "(cached) $ECHO_C" >&6
43972 ac_check_lib_save_LIBS=$LIBS
43973 LIBS="-lgdbm $LIBS"
43974 cat >conftest.$ac_ext <<_ACEOF
43977 cat confdefs.h >>conftest.$ac_ext
43978 cat >>conftest.$ac_ext <<_ACEOF
43979 /* end confdefs.h. */
43981 /* Override any gcc2 internal prototype to avoid an error. */
43985 /* We use char because int might match the return type of a gcc2
43986 builtin and then its argument prototype would still apply. */
43996 rm -f conftest.$ac_objext conftest$ac_exeext
43997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43998 (eval $ac_link) 2>conftest.er1
44000 grep -v '^ *+' conftest.er1 >conftest.err
44002 cat conftest.err >&5
44003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44004 (exit $ac_status); } &&
44005 { ac_try='test -z "$ac_c_werror_flag"
44006 || test ! -s conftest.err'
44007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44008 (eval $ac_try) 2>&5
44010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011 (exit $ac_status); }; } &&
44012 { ac_try='test -s conftest$ac_exeext'
44013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44014 (eval $ac_try) 2>&5
44016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44017 (exit $ac_status); }; }; then
44018 ac_cv_lib_gdbm_gdbm_open=yes
44020 echo "$as_me: failed program was:" >&5
44021 sed 's/^/| /' conftest.$ac_ext >&5
44023 ac_cv_lib_gdbm_gdbm_open=no
44025 rm -f conftest.err conftest.$ac_objext \
44026 conftest$ac_exeext conftest.$ac_ext
44027 LIBS=$ac_check_lib_save_LIBS
44029 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
44030 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
44031 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
44032 ol_cv_lib_gdbm=-lgdbm
44043 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
44044 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
44048 for ac_header in gdbm.h
44050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44052 echo "$as_me:$LINENO: checking for $ac_header" >&5
44053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44055 echo $ECHO_N "(cached) $ECHO_C" >&6
44057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44060 # Is the header compilable?
44061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44063 cat >conftest.$ac_ext <<_ACEOF
44066 cat confdefs.h >>conftest.$ac_ext
44067 cat >>conftest.$ac_ext <<_ACEOF
44068 /* end confdefs.h. */
44069 $ac_includes_default
44070 #include <$ac_header>
44072 rm -f conftest.$ac_objext
44073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44074 (eval $ac_compile) 2>conftest.er1
44076 grep -v '^ *+' conftest.er1 >conftest.err
44078 cat conftest.err >&5
44079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44080 (exit $ac_status); } &&
44081 { ac_try='test -z "$ac_c_werror_flag"
44082 || test ! -s conftest.err'
44083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44084 (eval $ac_try) 2>&5
44086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44087 (exit $ac_status); }; } &&
44088 { ac_try='test -s conftest.$ac_objext'
44089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44090 (eval $ac_try) 2>&5
44092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44093 (exit $ac_status); }; }; then
44094 ac_header_compiler=yes
44096 echo "$as_me: failed program was:" >&5
44097 sed 's/^/| /' conftest.$ac_ext >&5
44099 ac_header_compiler=no
44101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44103 echo "${ECHO_T}$ac_header_compiler" >&6
44105 # Is the header present?
44106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44108 cat >conftest.$ac_ext <<_ACEOF
44111 cat confdefs.h >>conftest.$ac_ext
44112 cat >>conftest.$ac_ext <<_ACEOF
44113 /* end confdefs.h. */
44114 #include <$ac_header>
44116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44119 grep -v '^ *+' conftest.er1 >conftest.err
44121 cat conftest.err >&5
44122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44123 (exit $ac_status); } >/dev/null; then
44124 if test -s conftest.err; then
44125 ac_cpp_err=$ac_c_preproc_warn_flag
44126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44133 if test -z "$ac_cpp_err"; then
44134 ac_header_preproc=yes
44136 echo "$as_me: failed program was:" >&5
44137 sed 's/^/| /' conftest.$ac_ext >&5
44139 ac_header_preproc=no
44141 rm -f conftest.err conftest.$ac_ext
44142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44143 echo "${ECHO_T}$ac_header_preproc" >&6
44145 # So? What about this header?
44146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44152 ac_header_preproc=yes
44155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44169 ## ------------------------------------------ ##
44170 ## Report this to the AC_PACKAGE_NAME lists. ##
44171 ## ------------------------------------------ ##
44174 sed "s/^/$as_me: WARNING: /" >&2
44177 echo "$as_me:$LINENO: checking for $ac_header" >&5
44178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44180 echo $ECHO_N "(cached) $ECHO_C" >&6
44182 eval "$as_ac_Header=\$ac_header_preproc"
44184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44189 cat >>confdefs.h <<_ACEOF
44190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44197 echo "$as_me:$LINENO: checking for db" >&5
44198 echo $ECHO_N "checking for db... $ECHO_C" >&6
44199 if test "${ol_cv_gdbm+set}" = set; then
44200 echo $ECHO_N "(cached) $ECHO_C" >&6
44203 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44210 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44211 echo "${ECHO_T}$ol_cv_gdbm" >&6
44212 if test $ol_cv_gdbm = yes ; then
44214 cat >>confdefs.h <<\_ACEOF
44215 #define HAVE_GDBM 1
44221 if test $ol_cv_gdbm = yes ; then
44223 ol_enable_ldbm_api=gdbm
44225 if test $ol_cv_lib_gdbm != yes ; then
44226 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44231 if test $ol_enable_ldbm_api = ndbm ; then
44232 echo "$as_me:$LINENO: checking for NDBM library" >&5
44233 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44234 if test "${ol_cv_lib_ndbm+set}" = set; then
44235 echo $ECHO_N "(cached) $ECHO_C" >&6
44238 echo "$as_me:$LINENO: checking for dbm_open" >&5
44239 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44240 if test "${ac_cv_func_dbm_open+set}" = set; then
44241 echo $ECHO_N "(cached) $ECHO_C" >&6
44243 cat >conftest.$ac_ext <<_ACEOF
44246 cat confdefs.h >>conftest.$ac_ext
44247 cat >>conftest.$ac_ext <<_ACEOF
44248 /* end confdefs.h. */
44249 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44251 #define dbm_open innocuous_dbm_open
44253 /* System header to define __stub macros and hopefully few prototypes,
44254 which can conflict with char dbm_open (); below.
44255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44256 <limits.h> exists even on freestanding compilers. */
44259 # include <limits.h>
44261 # include <assert.h>
44266 /* Override any gcc2 internal prototype to avoid an error. */
44271 /* We use char because int might match the return type of a gcc2
44272 builtin and then its argument prototype would still apply. */
44274 /* The GNU C library defines this for functions which it implements
44275 to always fail with ENOSYS. Some functions are actually named
44276 something starting with __ and the normal name is an alias. */
44277 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44280 char (*f) () = dbm_open;
44289 return f != dbm_open;
44294 rm -f conftest.$ac_objext conftest$ac_exeext
44295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44296 (eval $ac_link) 2>conftest.er1
44298 grep -v '^ *+' conftest.er1 >conftest.err
44300 cat conftest.err >&5
44301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44302 (exit $ac_status); } &&
44303 { ac_try='test -z "$ac_c_werror_flag"
44304 || test ! -s conftest.err'
44305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44306 (eval $ac_try) 2>&5
44308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44309 (exit $ac_status); }; } &&
44310 { ac_try='test -s conftest$ac_exeext'
44311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44312 (eval $ac_try) 2>&5
44314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44315 (exit $ac_status); }; }; then
44316 ac_cv_func_dbm_open=yes
44318 echo "$as_me: failed program was:" >&5
44319 sed 's/^/| /' conftest.$ac_ext >&5
44321 ac_cv_func_dbm_open=no
44323 rm -f conftest.err conftest.$ac_objext \
44324 conftest$ac_exeext conftest.$ac_ext
44326 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44327 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44328 if test $ac_cv_func_dbm_open = yes; then
44332 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44333 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44334 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44335 echo $ECHO_N "(cached) $ECHO_C" >&6
44337 ac_check_lib_save_LIBS=$LIBS
44338 LIBS="-lndbm $LIBS"
44339 cat >conftest.$ac_ext <<_ACEOF
44342 cat confdefs.h >>conftest.$ac_ext
44343 cat >>conftest.$ac_ext <<_ACEOF
44344 /* end confdefs.h. */
44346 /* Override any gcc2 internal prototype to avoid an error. */
44350 /* We use char because int might match the return type of a gcc2
44351 builtin and then its argument prototype would still apply. */
44361 rm -f conftest.$ac_objext conftest$ac_exeext
44362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44363 (eval $ac_link) 2>conftest.er1
44365 grep -v '^ *+' conftest.er1 >conftest.err
44367 cat conftest.err >&5
44368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44369 (exit $ac_status); } &&
44370 { ac_try='test -z "$ac_c_werror_flag"
44371 || test ! -s conftest.err'
44372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44373 (eval $ac_try) 2>&5
44375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44376 (exit $ac_status); }; } &&
44377 { ac_try='test -s conftest$ac_exeext'
44378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44379 (eval $ac_try) 2>&5
44381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44382 (exit $ac_status); }; }; then
44383 ac_cv_lib_ndbm_dbm_open=yes
44385 echo "$as_me: failed program was:" >&5
44386 sed 's/^/| /' conftest.$ac_ext >&5
44388 ac_cv_lib_ndbm_dbm_open=no
44390 rm -f conftest.err conftest.$ac_objext \
44391 conftest$ac_exeext conftest.$ac_ext
44392 LIBS=$ac_check_lib_save_LIBS
44394 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44395 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44396 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44397 ol_cv_lib_ndbm=-lndbm
44400 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44401 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44402 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44403 echo $ECHO_N "(cached) $ECHO_C" >&6
44405 ac_check_lib_save_LIBS=$LIBS
44407 cat >conftest.$ac_ext <<_ACEOF
44410 cat confdefs.h >>conftest.$ac_ext
44411 cat >>conftest.$ac_ext <<_ACEOF
44412 /* end confdefs.h. */
44414 /* Override any gcc2 internal prototype to avoid an error. */
44418 /* We use char because int might match the return type of a gcc2
44419 builtin and then its argument prototype would still apply. */
44429 rm -f conftest.$ac_objext conftest$ac_exeext
44430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44431 (eval $ac_link) 2>conftest.er1
44433 grep -v '^ *+' conftest.er1 >conftest.err
44435 cat conftest.err >&5
44436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44437 (exit $ac_status); } &&
44438 { ac_try='test -z "$ac_c_werror_flag"
44439 || test ! -s conftest.err'
44440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44441 (eval $ac_try) 2>&5
44443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44444 (exit $ac_status); }; } &&
44445 { ac_try='test -s conftest$ac_exeext'
44446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44447 (eval $ac_try) 2>&5
44449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44450 (exit $ac_status); }; }; then
44451 ac_cv_lib_dbm_dbm_open=yes
44453 echo "$as_me: failed program was:" >&5
44454 sed 's/^/| /' conftest.$ac_ext >&5
44456 ac_cv_lib_dbm_dbm_open=no
44458 rm -f conftest.err conftest.$ac_objext \
44459 conftest$ac_exeext conftest.$ac_ext
44460 LIBS=$ac_check_lib_save_LIBS
44462 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44463 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44464 if test $ac_cv_lib_dbm_dbm_open = yes; then
44465 ol_cv_lib_ndbm=-ldbm
44478 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44479 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44483 for ac_header in ndbm.h
44485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44487 echo "$as_me:$LINENO: checking for $ac_header" >&5
44488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44490 echo $ECHO_N "(cached) $ECHO_C" >&6
44492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44495 # Is the header compilable?
44496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44498 cat >conftest.$ac_ext <<_ACEOF
44501 cat confdefs.h >>conftest.$ac_ext
44502 cat >>conftest.$ac_ext <<_ACEOF
44503 /* end confdefs.h. */
44504 $ac_includes_default
44505 #include <$ac_header>
44507 rm -f conftest.$ac_objext
44508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44509 (eval $ac_compile) 2>conftest.er1
44511 grep -v '^ *+' conftest.er1 >conftest.err
44513 cat conftest.err >&5
44514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44515 (exit $ac_status); } &&
44516 { ac_try='test -z "$ac_c_werror_flag"
44517 || test ! -s conftest.err'
44518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44519 (eval $ac_try) 2>&5
44521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44522 (exit $ac_status); }; } &&
44523 { ac_try='test -s conftest.$ac_objext'
44524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44525 (eval $ac_try) 2>&5
44527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44528 (exit $ac_status); }; }; then
44529 ac_header_compiler=yes
44531 echo "$as_me: failed program was:" >&5
44532 sed 's/^/| /' conftest.$ac_ext >&5
44534 ac_header_compiler=no
44536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44538 echo "${ECHO_T}$ac_header_compiler" >&6
44540 # Is the header present?
44541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44543 cat >conftest.$ac_ext <<_ACEOF
44546 cat confdefs.h >>conftest.$ac_ext
44547 cat >>conftest.$ac_ext <<_ACEOF
44548 /* end confdefs.h. */
44549 #include <$ac_header>
44551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44554 grep -v '^ *+' conftest.er1 >conftest.err
44556 cat conftest.err >&5
44557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44558 (exit $ac_status); } >/dev/null; then
44559 if test -s conftest.err; then
44560 ac_cpp_err=$ac_c_preproc_warn_flag
44561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44568 if test -z "$ac_cpp_err"; then
44569 ac_header_preproc=yes
44571 echo "$as_me: failed program was:" >&5
44572 sed 's/^/| /' conftest.$ac_ext >&5
44574 ac_header_preproc=no
44576 rm -f conftest.err conftest.$ac_ext
44577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44578 echo "${ECHO_T}$ac_header_preproc" >&6
44580 # So? What about this header?
44581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44587 ac_header_preproc=yes
44590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44604 ## ------------------------------------------ ##
44605 ## Report this to the AC_PACKAGE_NAME lists. ##
44606 ## ------------------------------------------ ##
44609 sed "s/^/$as_me: WARNING: /" >&2
44612 echo "$as_me:$LINENO: checking for $ac_header" >&5
44613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44615 echo $ECHO_N "(cached) $ECHO_C" >&6
44617 eval "$as_ac_Header=\$ac_header_preproc"
44619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44624 cat >>confdefs.h <<_ACEOF
44625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44632 echo "$as_me:$LINENO: checking for db" >&5
44633 echo $ECHO_N "checking for db... $ECHO_C" >&6
44634 if test "${ol_cv_ndbm+set}" = set; then
44635 echo $ECHO_N "(cached) $ECHO_C" >&6
44638 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44645 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44646 echo "${ECHO_T}$ol_cv_ndbm" >&6
44647 if test $ol_cv_ndbm = yes ; then
44649 cat >>confdefs.h <<\_ACEOF
44650 #define HAVE_NDBM 1
44656 if test $ol_cv_ndbm = yes ; then
44658 ol_enable_ldbm_api=ndbm
44660 if test $ol_cv_lib_ndbm != yes ; then
44661 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44666 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44667 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44668 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44669 { (exit 1); exit 1; }; }
44672 if test $ol_enable_bdb = yes -o \
44673 $ol_enable_hdb = yes -o \
44674 $ol_enable_ldbm = yes ; then
44675 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44679 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44680 BUILD_LIBS_DYNAMIC=shared
44682 cat >>confdefs.h <<\_ACEOF
44683 #define LDAP_LIBS_DYNAMIC 1
44688 BUILD_LIBS_DYNAMIC=static
44692 if test $ol_enable_wrappers != no ; then
44694 for ac_header in tcpd.h
44696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44698 echo "$as_me:$LINENO: checking for $ac_header" >&5
44699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44701 echo $ECHO_N "(cached) $ECHO_C" >&6
44703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44706 # Is the header compilable?
44707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44709 cat >conftest.$ac_ext <<_ACEOF
44712 cat confdefs.h >>conftest.$ac_ext
44713 cat >>conftest.$ac_ext <<_ACEOF
44714 /* end confdefs.h. */
44715 $ac_includes_default
44716 #include <$ac_header>
44718 rm -f conftest.$ac_objext
44719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44720 (eval $ac_compile) 2>conftest.er1
44722 grep -v '^ *+' conftest.er1 >conftest.err
44724 cat conftest.err >&5
44725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44726 (exit $ac_status); } &&
44727 { ac_try='test -z "$ac_c_werror_flag"
44728 || test ! -s conftest.err'
44729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44730 (eval $ac_try) 2>&5
44732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44733 (exit $ac_status); }; } &&
44734 { ac_try='test -s conftest.$ac_objext'
44735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44736 (eval $ac_try) 2>&5
44738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44739 (exit $ac_status); }; }; then
44740 ac_header_compiler=yes
44742 echo "$as_me: failed program was:" >&5
44743 sed 's/^/| /' conftest.$ac_ext >&5
44745 ac_header_compiler=no
44747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44749 echo "${ECHO_T}$ac_header_compiler" >&6
44751 # Is the header present?
44752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44754 cat >conftest.$ac_ext <<_ACEOF
44757 cat confdefs.h >>conftest.$ac_ext
44758 cat >>conftest.$ac_ext <<_ACEOF
44759 /* end confdefs.h. */
44760 #include <$ac_header>
44762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44765 grep -v '^ *+' conftest.er1 >conftest.err
44767 cat conftest.err >&5
44768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44769 (exit $ac_status); } >/dev/null; then
44770 if test -s conftest.err; then
44771 ac_cpp_err=$ac_c_preproc_warn_flag
44772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44779 if test -z "$ac_cpp_err"; then
44780 ac_header_preproc=yes
44782 echo "$as_me: failed program was:" >&5
44783 sed 's/^/| /' conftest.$ac_ext >&5
44785 ac_header_preproc=no
44787 rm -f conftest.err conftest.$ac_ext
44788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44789 echo "${ECHO_T}$ac_header_preproc" >&6
44791 # So? What about this header?
44792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44798 ac_header_preproc=yes
44801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44815 ## ------------------------------------------ ##
44816 ## Report this to the AC_PACKAGE_NAME lists. ##
44817 ## ------------------------------------------ ##
44820 sed "s/^/$as_me: WARNING: /" >&2
44823 echo "$as_me:$LINENO: checking for $ac_header" >&5
44824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44826 echo $ECHO_N "(cached) $ECHO_C" >&6
44828 eval "$as_ac_Header=\$ac_header_preproc"
44830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44835 cat >>confdefs.h <<_ACEOF
44836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44839 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44840 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44842 LIBS="$LIBS -lwrap"
44843 cat >conftest.$ac_ext <<_ACEOF
44846 cat confdefs.h >>conftest.$ac_ext
44847 cat >>conftest.$ac_ext <<_ACEOF
44848 /* end confdefs.h. */
44851 int allow_severity = 0;
44852 int deny_severity = 0;
44854 struct request_info *req;
44866 rm -f conftest.$ac_objext conftest$ac_exeext
44867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44868 (eval $ac_link) 2>conftest.er1
44870 grep -v '^ *+' conftest.er1 >conftest.err
44872 cat conftest.err >&5
44873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44874 (exit $ac_status); } &&
44875 { ac_try='test -z "$ac_c_werror_flag"
44876 || test ! -s conftest.err'
44877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44878 (eval $ac_try) 2>&5
44880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44881 (exit $ac_status); }; } &&
44882 { ac_try='test -s conftest$ac_exeext'
44883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44884 (eval $ac_try) 2>&5
44886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44887 (exit $ac_status); }; }; then
44888 echo "$as_me:$LINENO: result: -lwrap" >&5
44889 echo "${ECHO_T}-lwrap" >&6
44893 echo "$as_me: failed program was:" >&5
44894 sed 's/^/| /' conftest.$ac_ext >&5
44898 cat >conftest.$ac_ext <<_ACEOF
44901 cat confdefs.h >>conftest.$ac_ext
44902 cat >>conftest.$ac_ext <<_ACEOF
44903 /* end confdefs.h. */
44906 int allow_severity = 0;
44907 int deny_severity = 0;
44909 struct request_info *req;
44921 rm -f conftest.$ac_objext conftest$ac_exeext
44922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44923 (eval $ac_link) 2>conftest.er1
44925 grep -v '^ *+' conftest.er1 >conftest.err
44927 cat conftest.err >&5
44928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44929 (exit $ac_status); } &&
44930 { ac_try='test -z "$ac_c_werror_flag"
44931 || test ! -s conftest.err'
44932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44933 (eval $ac_try) 2>&5
44935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44936 (exit $ac_status); }; } &&
44937 { ac_try='test -s conftest$ac_exeext'
44938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44939 (eval $ac_try) 2>&5
44941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44942 (exit $ac_status); }; }; then
44943 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44944 echo "${ECHO_T}-lwrap -lnsl" >&6
44946 LIBS="$save_LIBS -lnsl"
44948 echo "$as_me: failed program was:" >&5
44949 sed 's/^/| /' conftest.$ac_ext >&5
44952 echo "$as_me:$LINENO: result: no" >&5
44953 echo "${ECHO_T}no" >&6
44957 rm -f conftest.err conftest.$ac_objext \
44958 conftest$ac_exeext conftest.$ac_ext
44960 rm -f conftest.err conftest.$ac_objext \
44961 conftest$ac_exeext conftest.$ac_ext
44969 if test $have_wrappers = yes ; then
44971 cat >>confdefs.h <<\_ACEOF
44972 #define HAVE_TCPD 1
44976 elif test $ol_enable_wrappers = yes ; then
44977 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44978 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44979 { (exit 1); exit 1; }; }
44981 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44982 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44987 if test $ol_enable_syslog != no ; then
44988 echo "$as_me:$LINENO: checking for openlog" >&5
44989 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44990 if test "${ac_cv_func_openlog+set}" = set; then
44991 echo $ECHO_N "(cached) $ECHO_C" >&6
44993 cat >conftest.$ac_ext <<_ACEOF
44996 cat confdefs.h >>conftest.$ac_ext
44997 cat >>conftest.$ac_ext <<_ACEOF
44998 /* end confdefs.h. */
44999 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
45000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45001 #define openlog innocuous_openlog
45003 /* System header to define __stub macros and hopefully few prototypes,
45004 which can conflict with char openlog (); below.
45005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45006 <limits.h> exists even on freestanding compilers. */
45009 # include <limits.h>
45011 # include <assert.h>
45016 /* Override any gcc2 internal prototype to avoid an error. */
45021 /* We use char because int might match the return type of a gcc2
45022 builtin and then its argument prototype would still apply. */
45024 /* The GNU C library defines this for functions which it implements
45025 to always fail with ENOSYS. Some functions are actually named
45026 something starting with __ and the normal name is an alias. */
45027 #if defined (__stub_openlog) || defined (__stub___openlog)
45030 char (*f) () = openlog;
45039 return f != openlog;
45044 rm -f conftest.$ac_objext conftest$ac_exeext
45045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45046 (eval $ac_link) 2>conftest.er1
45048 grep -v '^ *+' conftest.er1 >conftest.err
45050 cat conftest.err >&5
45051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45052 (exit $ac_status); } &&
45053 { ac_try='test -z "$ac_c_werror_flag"
45054 || test ! -s conftest.err'
45055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45056 (eval $ac_try) 2>&5
45058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45059 (exit $ac_status); }; } &&
45060 { ac_try='test -s conftest$ac_exeext'
45061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45062 (eval $ac_try) 2>&5
45064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45065 (exit $ac_status); }; }; then
45066 ac_cv_func_openlog=yes
45068 echo "$as_me: failed program was:" >&5
45069 sed 's/^/| /' conftest.$ac_ext >&5
45071 ac_cv_func_openlog=no
45073 rm -f conftest.err conftest.$ac_objext \
45074 conftest$ac_exeext conftest.$ac_ext
45076 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
45077 echo "${ECHO_T}$ac_cv_func_openlog" >&6
45079 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
45080 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
45081 echo "$as_me: error: could not find syslog" >&2;}
45082 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
45084 ol_enable_syslog=$ac_cv_func_openlog
45088 if test $ol_enable_sql != no ; then
45091 for ac_header in sql.h sqlext.h
45093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45095 echo "$as_me:$LINENO: checking for $ac_header" >&5
45096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45098 echo $ECHO_N "(cached) $ECHO_C" >&6
45100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45103 # Is the header compilable?
45104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45106 cat >conftest.$ac_ext <<_ACEOF
45109 cat confdefs.h >>conftest.$ac_ext
45110 cat >>conftest.$ac_ext <<_ACEOF
45111 /* end confdefs.h. */
45112 $ac_includes_default
45113 #include <$ac_header>
45115 rm -f conftest.$ac_objext
45116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45117 (eval $ac_compile) 2>conftest.er1
45119 grep -v '^ *+' conftest.er1 >conftest.err
45121 cat conftest.err >&5
45122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45123 (exit $ac_status); } &&
45124 { ac_try='test -z "$ac_c_werror_flag"
45125 || test ! -s conftest.err'
45126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45127 (eval $ac_try) 2>&5
45129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45130 (exit $ac_status); }; } &&
45131 { ac_try='test -s conftest.$ac_objext'
45132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45133 (eval $ac_try) 2>&5
45135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45136 (exit $ac_status); }; }; then
45137 ac_header_compiler=yes
45139 echo "$as_me: failed program was:" >&5
45140 sed 's/^/| /' conftest.$ac_ext >&5
45142 ac_header_compiler=no
45144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45146 echo "${ECHO_T}$ac_header_compiler" >&6
45148 # Is the header present?
45149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45151 cat >conftest.$ac_ext <<_ACEOF
45154 cat confdefs.h >>conftest.$ac_ext
45155 cat >>conftest.$ac_ext <<_ACEOF
45156 /* end confdefs.h. */
45157 #include <$ac_header>
45159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45162 grep -v '^ *+' conftest.er1 >conftest.err
45164 cat conftest.err >&5
45165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45166 (exit $ac_status); } >/dev/null; then
45167 if test -s conftest.err; then
45168 ac_cpp_err=$ac_c_preproc_warn_flag
45169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45176 if test -z "$ac_cpp_err"; then
45177 ac_header_preproc=yes
45179 echo "$as_me: failed program was:" >&5
45180 sed 's/^/| /' conftest.$ac_ext >&5
45182 ac_header_preproc=no
45184 rm -f conftest.err conftest.$ac_ext
45185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45186 echo "${ECHO_T}$ac_header_preproc" >&6
45188 # So? What about this header?
45189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45195 ac_header_preproc=yes
45198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45212 ## ------------------------------------------ ##
45213 ## Report this to the AC_PACKAGE_NAME lists. ##
45214 ## ------------------------------------------ ##
45217 sed "s/^/$as_me: WARNING: /" >&2
45220 echo "$as_me:$LINENO: checking for $ac_header" >&5
45221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45223 echo $ECHO_N "(cached) $ECHO_C" >&6
45225 eval "$as_ac_Header=\$ac_header_preproc"
45227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45232 cat >>confdefs.h <<_ACEOF
45233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45238 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45239 echo "$as_me: error: could not locate SQL headers" >&2;}
45240 { (exit 1); exit 1; }; }
45248 LIBS="$LTHREAD_LIBS"
45250 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45251 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45252 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45253 echo $ECHO_N "(cached) $ECHO_C" >&6
45255 ac_check_lib_save_LIBS=$LIBS
45256 LIBS="-liodbc $LIBS"
45257 cat >conftest.$ac_ext <<_ACEOF
45260 cat confdefs.h >>conftest.$ac_ext
45261 cat >>conftest.$ac_ext <<_ACEOF
45262 /* end confdefs.h. */
45264 /* Override any gcc2 internal prototype to avoid an error. */
45268 /* We use char because int might match the return type of a gcc2
45269 builtin and then its argument prototype would still apply. */
45270 char SQLDriverConnect ();
45274 SQLDriverConnect ();
45279 rm -f conftest.$ac_objext conftest$ac_exeext
45280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45281 (eval $ac_link) 2>conftest.er1
45283 grep -v '^ *+' conftest.er1 >conftest.err
45285 cat conftest.err >&5
45286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45287 (exit $ac_status); } &&
45288 { ac_try='test -z "$ac_c_werror_flag"
45289 || test ! -s conftest.err'
45290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45291 (eval $ac_try) 2>&5
45293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45294 (exit $ac_status); }; } &&
45295 { ac_try='test -s conftest$ac_exeext'
45296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45297 (eval $ac_try) 2>&5
45299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45300 (exit $ac_status); }; }; then
45301 ac_cv_lib_iodbc_SQLDriverConnect=yes
45303 echo "$as_me: failed program was:" >&5
45304 sed 's/^/| /' conftest.$ac_ext >&5
45306 ac_cv_lib_iodbc_SQLDriverConnect=no
45308 rm -f conftest.err conftest.$ac_objext \
45309 conftest$ac_exeext conftest.$ac_ext
45310 LIBS=$ac_check_lib_save_LIBS
45312 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45313 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45314 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45320 if test $have_iodbc = yes ; then
45321 ol_link_sql="-liodbc"
45323 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45324 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45325 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45326 echo $ECHO_N "(cached) $ECHO_C" >&6
45328 ac_check_lib_save_LIBS=$LIBS
45329 LIBS="-lodbc $LIBS"
45330 cat >conftest.$ac_ext <<_ACEOF
45333 cat confdefs.h >>conftest.$ac_ext
45334 cat >>conftest.$ac_ext <<_ACEOF
45335 /* end confdefs.h. */
45337 /* Override any gcc2 internal prototype to avoid an error. */
45341 /* We use char because int might match the return type of a gcc2
45342 builtin and then its argument prototype would still apply. */
45343 char SQLDriverConnect ();
45347 SQLDriverConnect ();
45352 rm -f conftest.$ac_objext conftest$ac_exeext
45353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45354 (eval $ac_link) 2>conftest.er1
45356 grep -v '^ *+' conftest.er1 >conftest.err
45358 cat conftest.err >&5
45359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45360 (exit $ac_status); } &&
45361 { ac_try='test -z "$ac_c_werror_flag"
45362 || test ! -s conftest.err'
45363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45364 (eval $ac_try) 2>&5
45366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45367 (exit $ac_status); }; } &&
45368 { ac_try='test -s conftest$ac_exeext'
45369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45370 (eval $ac_try) 2>&5
45372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45373 (exit $ac_status); }; }; then
45374 ac_cv_lib_odbc_SQLDriverConnect=yes
45376 echo "$as_me: failed program was:" >&5
45377 sed 's/^/| /' conftest.$ac_ext >&5
45379 ac_cv_lib_odbc_SQLDriverConnect=no
45381 rm -f conftest.err conftest.$ac_objext \
45382 conftest$ac_exeext conftest.$ac_ext
45383 LIBS=$ac_check_lib_save_LIBS
45385 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45386 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45387 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45393 if test $have_odbc = yes ; then
45394 ol_link_sql="-lodbc"
45400 if test $ol_link_sql != no ; then
45401 SLAPD_SQL_LIBS="$ol_link_sql"
45403 elif test $ol_enable_sql != auto ; then
45404 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45405 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45406 { (exit 1); exit 1; }; }
45413 if test $ol_with_cyrus_sasl != no ; then
45416 for ac_header in sasl/sasl.h sasl.h
45418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45420 echo "$as_me:$LINENO: checking for $ac_header" >&5
45421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45423 echo $ECHO_N "(cached) $ECHO_C" >&6
45425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45428 # Is the header compilable?
45429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45431 cat >conftest.$ac_ext <<_ACEOF
45434 cat confdefs.h >>conftest.$ac_ext
45435 cat >>conftest.$ac_ext <<_ACEOF
45436 /* end confdefs.h. */
45437 $ac_includes_default
45438 #include <$ac_header>
45440 rm -f conftest.$ac_objext
45441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45442 (eval $ac_compile) 2>conftest.er1
45444 grep -v '^ *+' conftest.er1 >conftest.err
45446 cat conftest.err >&5
45447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448 (exit $ac_status); } &&
45449 { ac_try='test -z "$ac_c_werror_flag"
45450 || test ! -s conftest.err'
45451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45452 (eval $ac_try) 2>&5
45454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45455 (exit $ac_status); }; } &&
45456 { ac_try='test -s conftest.$ac_objext'
45457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45458 (eval $ac_try) 2>&5
45460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45461 (exit $ac_status); }; }; then
45462 ac_header_compiler=yes
45464 echo "$as_me: failed program was:" >&5
45465 sed 's/^/| /' conftest.$ac_ext >&5
45467 ac_header_compiler=no
45469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45471 echo "${ECHO_T}$ac_header_compiler" >&6
45473 # Is the header present?
45474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45476 cat >conftest.$ac_ext <<_ACEOF
45479 cat confdefs.h >>conftest.$ac_ext
45480 cat >>conftest.$ac_ext <<_ACEOF
45481 /* end confdefs.h. */
45482 #include <$ac_header>
45484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45487 grep -v '^ *+' conftest.er1 >conftest.err
45489 cat conftest.err >&5
45490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45491 (exit $ac_status); } >/dev/null; then
45492 if test -s conftest.err; then
45493 ac_cpp_err=$ac_c_preproc_warn_flag
45494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45501 if test -z "$ac_cpp_err"; then
45502 ac_header_preproc=yes
45504 echo "$as_me: failed program was:" >&5
45505 sed 's/^/| /' conftest.$ac_ext >&5
45507 ac_header_preproc=no
45509 rm -f conftest.err conftest.$ac_ext
45510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45511 echo "${ECHO_T}$ac_header_preproc" >&6
45513 # So? What about this header?
45514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45520 ac_header_preproc=yes
45523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45537 ## ------------------------------------------ ##
45538 ## Report this to the AC_PACKAGE_NAME lists. ##
45539 ## ------------------------------------------ ##
45542 sed "s/^/$as_me: WARNING: /" >&2
45545 echo "$as_me:$LINENO: checking for $ac_header" >&5
45546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45548 echo $ECHO_N "(cached) $ECHO_C" >&6
45550 eval "$as_ac_Header=\$ac_header_preproc"
45552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45557 cat >>confdefs.h <<_ACEOF
45558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45566 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45567 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45568 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45569 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45570 echo $ECHO_N "(cached) $ECHO_C" >&6
45572 ac_check_lib_save_LIBS=$LIBS
45573 LIBS="-lsasl2 $LIBS"
45574 cat >conftest.$ac_ext <<_ACEOF
45577 cat confdefs.h >>conftest.$ac_ext
45578 cat >>conftest.$ac_ext <<_ACEOF
45579 /* end confdefs.h. */
45581 /* Override any gcc2 internal prototype to avoid an error. */
45585 /* We use char because int might match the return type of a gcc2
45586 builtin and then its argument prototype would still apply. */
45587 char sasl_client_init ();
45591 sasl_client_init ();
45596 rm -f conftest.$ac_objext conftest$ac_exeext
45597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45598 (eval $ac_link) 2>conftest.er1
45600 grep -v '^ *+' conftest.er1 >conftest.err
45602 cat conftest.err >&5
45603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45604 (exit $ac_status); } &&
45605 { ac_try='test -z "$ac_c_werror_flag"
45606 || test ! -s conftest.err'
45607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45608 (eval $ac_try) 2>&5
45610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45611 (exit $ac_status); }; } &&
45612 { ac_try='test -s conftest$ac_exeext'
45613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45614 (eval $ac_try) 2>&5
45616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45617 (exit $ac_status); }; }; then
45618 ac_cv_lib_sasl2_sasl_client_init=yes
45620 echo "$as_me: failed program was:" >&5
45621 sed 's/^/| /' conftest.$ac_ext >&5
45623 ac_cv_lib_sasl2_sasl_client_init=no
45625 rm -f conftest.err conftest.$ac_objext \
45626 conftest$ac_exeext conftest.$ac_ext
45627 LIBS=$ac_check_lib_save_LIBS
45629 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45630 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45631 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45632 ol_link_sasl="-lsasl2"
45634 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45635 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45636 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45637 echo $ECHO_N "(cached) $ECHO_C" >&6
45639 ac_check_lib_save_LIBS=$LIBS
45640 LIBS="-lsasl $LIBS"
45641 cat >conftest.$ac_ext <<_ACEOF
45644 cat confdefs.h >>conftest.$ac_ext
45645 cat >>conftest.$ac_ext <<_ACEOF
45646 /* end confdefs.h. */
45648 /* Override any gcc2 internal prototype to avoid an error. */
45652 /* We use char because int might match the return type of a gcc2
45653 builtin and then its argument prototype would still apply. */
45654 char sasl_client_init ();
45658 sasl_client_init ();
45663 rm -f conftest.$ac_objext conftest$ac_exeext
45664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45665 (eval $ac_link) 2>conftest.er1
45667 grep -v '^ *+' conftest.er1 >conftest.err
45669 cat conftest.err >&5
45670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45671 (exit $ac_status); } &&
45672 { ac_try='test -z "$ac_c_werror_flag"
45673 || test ! -s conftest.err'
45674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45675 (eval $ac_try) 2>&5
45677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45678 (exit $ac_status); }; } &&
45679 { ac_try='test -s conftest$ac_exeext'
45680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45681 (eval $ac_try) 2>&5
45683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45684 (exit $ac_status); }; }; then
45685 ac_cv_lib_sasl_sasl_client_init=yes
45687 echo "$as_me: failed program was:" >&5
45688 sed 's/^/| /' conftest.$ac_ext >&5
45690 ac_cv_lib_sasl_sasl_client_init=no
45692 rm -f conftest.err conftest.$ac_objext \
45693 conftest$ac_exeext conftest.$ac_ext
45694 LIBS=$ac_check_lib_save_LIBS
45696 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45697 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45698 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45699 ol_link_sasl="-lsasl"
45706 if test $ol_link_sasl = no ; then
45707 if test $ol_with_cyrus_sasl != auto ; then
45708 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45709 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45710 { (exit 1); exit 1; }; }
45712 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45713 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45714 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45715 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45716 if test $ol_link_tls = no ; then
45717 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45718 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45722 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45723 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45724 if test "${ol_cv_sasl_compat+set}" = set; then
45725 echo $ECHO_N "(cached) $ECHO_C" >&6
45728 cat >conftest.$ac_ext <<_ACEOF
45731 cat confdefs.h >>conftest.$ac_ext
45732 cat >>conftest.$ac_ext <<_ACEOF
45733 /* end confdefs.h. */
45735 #ifdef HAVE_SASL_SASL_H
45736 #include <sasl/sasl.h>
45741 /* Require 2.1.15+ */
45742 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45743 char *__sasl_compat = "2.2+ or better okay (we guess)";
45744 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45745 && SASL_VERSION_STEP >=15
45746 char *__sasl_compat = "2.1.15+ or better okay";
45750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45751 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45752 ol_cv_sasl_compat=yes
45754 ol_cv_sasl_compat=no
45759 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45760 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45762 if test $ol_cv_sasl_compat = no ; then
45764 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45765 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45766 { (exit 1); exit 1; }; }
45770 cat >>confdefs.h <<\_ACEOF
45771 #define HAVE_CYRUS_SASL 1
45774 SASL_LIBS="$ol_link_sasl"
45775 if test $ol_enable_spasswd != no ; then
45776 ol_link_spasswd=yes
45779 ac_save_LIBS="$LIBS"
45780 LIBS="$LIBS $ol_link_sasl"
45781 echo "$as_me:$LINENO: checking for sasl_version" >&5
45782 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45783 if test "${ac_cv_func_sasl_version+set}" = set; then
45784 echo $ECHO_N "(cached) $ECHO_C" >&6
45786 cat >conftest.$ac_ext <<_ACEOF
45789 cat confdefs.h >>conftest.$ac_ext
45790 cat >>conftest.$ac_ext <<_ACEOF
45791 /* end confdefs.h. */
45792 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45794 #define sasl_version innocuous_sasl_version
45796 /* System header to define __stub macros and hopefully few prototypes,
45797 which can conflict with char sasl_version (); below.
45798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45799 <limits.h> exists even on freestanding compilers. */
45802 # include <limits.h>
45804 # include <assert.h>
45807 #undef sasl_version
45809 /* Override any gcc2 internal prototype to avoid an error. */
45814 /* We use char because int might match the return type of a gcc2
45815 builtin and then its argument prototype would still apply. */
45816 char sasl_version ();
45817 /* The GNU C library defines this for functions which it implements
45818 to always fail with ENOSYS. Some functions are actually named
45819 something starting with __ and the normal name is an alias. */
45820 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45823 char (*f) () = sasl_version;
45832 return f != sasl_version;
45837 rm -f conftest.$ac_objext conftest$ac_exeext
45838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45839 (eval $ac_link) 2>conftest.er1
45841 grep -v '^ *+' conftest.er1 >conftest.err
45843 cat conftest.err >&5
45844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45845 (exit $ac_status); } &&
45846 { ac_try='test -z "$ac_c_werror_flag"
45847 || test ! -s conftest.err'
45848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45849 (eval $ac_try) 2>&5
45851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45852 (exit $ac_status); }; } &&
45853 { ac_try='test -s conftest$ac_exeext'
45854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45855 (eval $ac_try) 2>&5
45857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45858 (exit $ac_status); }; }; then
45859 ac_cv_func_sasl_version=yes
45861 echo "$as_me: failed program was:" >&5
45862 sed 's/^/| /' conftest.$ac_ext >&5
45864 ac_cv_func_sasl_version=no
45866 rm -f conftest.err conftest.$ac_objext \
45867 conftest$ac_exeext conftest.$ac_ext
45869 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45870 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45871 if test $ac_cv_func_sasl_version = yes; then
45873 cat >>confdefs.h <<\_ACEOF
45874 #define HAVE_SASL_VERSION 1
45879 LIBS="$ac_save_LIBS"
45885 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45886 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45887 if test $ol_link_tls = no ; then
45888 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45889 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45893 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45895 if test -r /dev/urandom ; then
45896 dev="/dev/urandom";
45897 elif test -r /idev/urandom ; then
45898 dev="/idev/urandom";
45899 elif test -r /dev/srandom ; then
45900 dev="/dev/srandom";
45901 elif test -r /dev/random ; then
45903 elif test -r /idev/random ; then
45904 dev="/idev/random";
45907 if test $dev != no ; then
45909 cat >>confdefs.h <<_ACEOF
45910 #define URANDOM_DEVICE "$dev"
45917 if test $ol_with_fetch != no ; then
45919 LIBS="-lfetch -lcom_err $LIBS"
45920 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45921 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45922 if test "${ol_cv_lib_fetch+set}" = set; then
45923 echo $ECHO_N "(cached) $ECHO_C" >&6
45926 cat >conftest.$ac_ext <<_ACEOF
45929 cat confdefs.h >>conftest.$ac_ext
45930 cat >>conftest.$ac_ext <<_ACEOF
45931 /* end confdefs.h. */
45933 #include <sys/param.h>
45939 struct url *u = fetchParseURL("file:///");
45944 rm -f conftest.$ac_objext conftest$ac_exeext
45945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45946 (eval $ac_link) 2>conftest.er1
45948 grep -v '^ *+' conftest.er1 >conftest.err
45950 cat conftest.err >&5
45951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45952 (exit $ac_status); } &&
45953 { ac_try='test -z "$ac_c_werror_flag"
45954 || test ! -s conftest.err'
45955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45956 (eval $ac_try) 2>&5
45958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45959 (exit $ac_status); }; } &&
45960 { ac_try='test -s conftest$ac_exeext'
45961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45962 (eval $ac_try) 2>&5
45964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45965 (exit $ac_status); }; }; then
45966 ol_cv_lib_fetch=yes
45968 echo "$as_me: failed program was:" >&5
45969 sed 's/^/| /' conftest.$ac_ext >&5
45973 rm -f conftest.err conftest.$ac_objext \
45974 conftest$ac_exeext conftest.$ac_ext
45976 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45977 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45979 if test $ol_cv_lib_fetch != no ; then
45980 ol_link_fetch="-lfetch -lcom_err"
45982 cat >>confdefs.h <<\_ACEOF
45983 #define HAVE_FETCH 1
45989 if test $ol_cv_lib_fetch != no ; then
45990 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45991 ol_link_fetch=freebsd
45993 elif test $ol_with_fetch != auto ; then
45994 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45995 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45996 { (exit 1); exit 1; }; }
46000 if test $ol_enable_crypt != no ; then
46002 LIBS="$TLS_LIBS $LIBS"
46004 echo "$as_me:$LINENO: checking for crypt" >&5
46005 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
46006 if test "${ac_cv_func_crypt+set}" = set; then
46007 echo $ECHO_N "(cached) $ECHO_C" >&6
46009 cat >conftest.$ac_ext <<_ACEOF
46012 cat confdefs.h >>conftest.$ac_ext
46013 cat >>conftest.$ac_ext <<_ACEOF
46014 /* end confdefs.h. */
46015 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
46016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46017 #define crypt innocuous_crypt
46019 /* System header to define __stub macros and hopefully few prototypes,
46020 which can conflict with char crypt (); below.
46021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46022 <limits.h> exists even on freestanding compilers. */
46025 # include <limits.h>
46027 # include <assert.h>
46032 /* Override any gcc2 internal prototype to avoid an error. */
46037 /* We use char because int might match the return type of a gcc2
46038 builtin and then its argument prototype would still apply. */
46040 /* The GNU C library defines this for functions which it implements
46041 to always fail with ENOSYS. Some functions are actually named
46042 something starting with __ and the normal name is an alias. */
46043 #if defined (__stub_crypt) || defined (__stub___crypt)
46046 char (*f) () = crypt;
46060 rm -f conftest.$ac_objext conftest$ac_exeext
46061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46062 (eval $ac_link) 2>conftest.er1
46064 grep -v '^ *+' conftest.er1 >conftest.err
46066 cat conftest.err >&5
46067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46068 (exit $ac_status); } &&
46069 { ac_try='test -z "$ac_c_werror_flag"
46070 || test ! -s conftest.err'
46071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46072 (eval $ac_try) 2>&5
46074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46075 (exit $ac_status); }; } &&
46076 { ac_try='test -s conftest$ac_exeext'
46077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46078 (eval $ac_try) 2>&5
46080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46081 (exit $ac_status); }; }; then
46082 ac_cv_func_crypt=yes
46084 echo "$as_me: failed program was:" >&5
46085 sed 's/^/| /' conftest.$ac_ext >&5
46087 ac_cv_func_crypt=no
46089 rm -f conftest.err conftest.$ac_objext \
46090 conftest$ac_exeext conftest.$ac_ext
46092 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
46093 echo "${ECHO_T}$ac_cv_func_crypt" >&6
46094 if test $ac_cv_func_crypt = yes; then
46099 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
46100 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
46101 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
46102 echo $ECHO_N "(cached) $ECHO_C" >&6
46104 ac_check_lib_save_LIBS=$LIBS
46105 LIBS="-lcrypt $LIBS"
46106 cat >conftest.$ac_ext <<_ACEOF
46109 cat confdefs.h >>conftest.$ac_ext
46110 cat >>conftest.$ac_ext <<_ACEOF
46111 /* end confdefs.h. */
46113 /* Override any gcc2 internal prototype to avoid an error. */
46117 /* We use char because int might match the return type of a gcc2
46118 builtin and then its argument prototype would still apply. */
46128 rm -f conftest.$ac_objext conftest$ac_exeext
46129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46130 (eval $ac_link) 2>conftest.er1
46132 grep -v '^ *+' conftest.er1 >conftest.err
46134 cat conftest.err >&5
46135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46136 (exit $ac_status); } &&
46137 { ac_try='test -z "$ac_c_werror_flag"
46138 || test ! -s conftest.err'
46139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46140 (eval $ac_try) 2>&5
46142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46143 (exit $ac_status); }; } &&
46144 { ac_try='test -s conftest$ac_exeext'
46145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46146 (eval $ac_try) 2>&5
46148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46149 (exit $ac_status); }; }; then
46150 ac_cv_lib_crypt_crypt=yes
46152 echo "$as_me: failed program was:" >&5
46153 sed 's/^/| /' conftest.$ac_ext >&5
46155 ac_cv_lib_crypt_crypt=no
46157 rm -f conftest.err conftest.$ac_objext \
46158 conftest$ac_exeext conftest.$ac_ext
46159 LIBS=$ac_check_lib_save_LIBS
46161 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
46162 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
46163 if test $ac_cv_lib_crypt_crypt = yes; then
46164 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46175 if test $have_crypt = yes ; then
46177 cat >>confdefs.h <<\_ACEOF
46178 #define HAVE_CRYPT 1
46182 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46183 echo "$as_me: WARNING: could not find crypt" >&2;}
46184 if test $ol_enable_crypt = yes ; then
46185 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46186 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46187 { (exit 1); exit 1; }; }
46190 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46191 echo "$as_me: WARNING: disabling crypt support" >&2;}
46196 if test $ol_enable_proctitle != no ; then
46197 echo "$as_me:$LINENO: checking for setproctitle" >&5
46198 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46199 if test "${ac_cv_func_setproctitle+set}" = set; then
46200 echo $ECHO_N "(cached) $ECHO_C" >&6
46202 cat >conftest.$ac_ext <<_ACEOF
46205 cat confdefs.h >>conftest.$ac_ext
46206 cat >>conftest.$ac_ext <<_ACEOF
46207 /* end confdefs.h. */
46208 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46210 #define setproctitle innocuous_setproctitle
46212 /* System header to define __stub macros and hopefully few prototypes,
46213 which can conflict with char setproctitle (); below.
46214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46215 <limits.h> exists even on freestanding compilers. */
46218 # include <limits.h>
46220 # include <assert.h>
46223 #undef setproctitle
46225 /* Override any gcc2 internal prototype to avoid an error. */
46230 /* We use char because int might match the return type of a gcc2
46231 builtin and then its argument prototype would still apply. */
46232 char setproctitle ();
46233 /* The GNU C library defines this for functions which it implements
46234 to always fail with ENOSYS. Some functions are actually named
46235 something starting with __ and the normal name is an alias. */
46236 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46239 char (*f) () = setproctitle;
46248 return f != setproctitle;
46253 rm -f conftest.$ac_objext conftest$ac_exeext
46254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46255 (eval $ac_link) 2>conftest.er1
46257 grep -v '^ *+' conftest.er1 >conftest.err
46259 cat conftest.err >&5
46260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261 (exit $ac_status); } &&
46262 { ac_try='test -z "$ac_c_werror_flag"
46263 || test ! -s conftest.err'
46264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46265 (eval $ac_try) 2>&5
46267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46268 (exit $ac_status); }; } &&
46269 { ac_try='test -s conftest$ac_exeext'
46270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46271 (eval $ac_try) 2>&5
46273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46274 (exit $ac_status); }; }; then
46275 ac_cv_func_setproctitle=yes
46277 echo "$as_me: failed program was:" >&5
46278 sed 's/^/| /' conftest.$ac_ext >&5
46280 ac_cv_func_setproctitle=no
46282 rm -f conftest.err conftest.$ac_objext \
46283 conftest$ac_exeext conftest.$ac_ext
46285 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46286 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46287 if test $ac_cv_func_setproctitle = yes; then
46288 have_setproctitle=yes
46291 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46292 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46293 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46294 echo $ECHO_N "(cached) $ECHO_C" >&6
46296 ac_check_lib_save_LIBS=$LIBS
46297 LIBS="-lutil $LIBS"
46298 cat >conftest.$ac_ext <<_ACEOF
46301 cat confdefs.h >>conftest.$ac_ext
46302 cat >>conftest.$ac_ext <<_ACEOF
46303 /* end confdefs.h. */
46305 /* Override any gcc2 internal prototype to avoid an error. */
46309 /* We use char because int might match the return type of a gcc2
46310 builtin and then its argument prototype would still apply. */
46311 char setproctitle ();
46320 rm -f conftest.$ac_objext conftest$ac_exeext
46321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46322 (eval $ac_link) 2>conftest.er1
46324 grep -v '^ *+' conftest.er1 >conftest.err
46326 cat conftest.err >&5
46327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46328 (exit $ac_status); } &&
46329 { ac_try='test -z "$ac_c_werror_flag"
46330 || test ! -s conftest.err'
46331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46332 (eval $ac_try) 2>&5
46334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46335 (exit $ac_status); }; } &&
46336 { ac_try='test -s conftest$ac_exeext'
46337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46338 (eval $ac_try) 2>&5
46340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46341 (exit $ac_status); }; }; then
46342 ac_cv_lib_util_setproctitle=yes
46344 echo "$as_me: failed program was:" >&5
46345 sed 's/^/| /' conftest.$ac_ext >&5
46347 ac_cv_lib_util_setproctitle=no
46349 rm -f conftest.err conftest.$ac_objext \
46350 conftest$ac_exeext conftest.$ac_ext
46351 LIBS=$ac_check_lib_save_LIBS
46353 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46354 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46355 if test $ac_cv_lib_util_setproctitle = yes; then
46356 have_setproctitle=yes
46357 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46359 have_setproctitle=no
46361 "setproctitle.$ac_objext" | \
46362 *" setproctitle.$ac_objext" | \
46363 "setproctitle.$ac_objext "* | \
46364 *" setproctitle.$ac_objext "* ) ;;
46365 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46368 LIBSRCS="$LIBSRCS setproctitle.c"
46374 if test $have_setproctitle = yes ; then
46376 cat >>confdefs.h <<\_ACEOF
46377 #define HAVE_SETPROCTITLE 1
46383 if test $ol_enable_slp != no ; then
46385 for ac_header in slp.h
46387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46389 echo "$as_me:$LINENO: checking for $ac_header" >&5
46390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46392 echo $ECHO_N "(cached) $ECHO_C" >&6
46394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46397 # Is the header compilable?
46398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46400 cat >conftest.$ac_ext <<_ACEOF
46403 cat confdefs.h >>conftest.$ac_ext
46404 cat >>conftest.$ac_ext <<_ACEOF
46405 /* end confdefs.h. */
46406 $ac_includes_default
46407 #include <$ac_header>
46409 rm -f conftest.$ac_objext
46410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46411 (eval $ac_compile) 2>conftest.er1
46413 grep -v '^ *+' conftest.er1 >conftest.err
46415 cat conftest.err >&5
46416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46417 (exit $ac_status); } &&
46418 { ac_try='test -z "$ac_c_werror_flag"
46419 || test ! -s conftest.err'
46420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46421 (eval $ac_try) 2>&5
46423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46424 (exit $ac_status); }; } &&
46425 { ac_try='test -s conftest.$ac_objext'
46426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46427 (eval $ac_try) 2>&5
46429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46430 (exit $ac_status); }; }; then
46431 ac_header_compiler=yes
46433 echo "$as_me: failed program was:" >&5
46434 sed 's/^/| /' conftest.$ac_ext >&5
46436 ac_header_compiler=no
46438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46440 echo "${ECHO_T}$ac_header_compiler" >&6
46442 # Is the header present?
46443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46445 cat >conftest.$ac_ext <<_ACEOF
46448 cat confdefs.h >>conftest.$ac_ext
46449 cat >>conftest.$ac_ext <<_ACEOF
46450 /* end confdefs.h. */
46451 #include <$ac_header>
46453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46456 grep -v '^ *+' conftest.er1 >conftest.err
46458 cat conftest.err >&5
46459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46460 (exit $ac_status); } >/dev/null; then
46461 if test -s conftest.err; then
46462 ac_cpp_err=$ac_c_preproc_warn_flag
46463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46470 if test -z "$ac_cpp_err"; then
46471 ac_header_preproc=yes
46473 echo "$as_me: failed program was:" >&5
46474 sed 's/^/| /' conftest.$ac_ext >&5
46476 ac_header_preproc=no
46478 rm -f conftest.err conftest.$ac_ext
46479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46480 echo "${ECHO_T}$ac_header_preproc" >&6
46482 # So? What about this header?
46483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46489 ac_header_preproc=yes
46492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46506 ## ------------------------------------------ ##
46507 ## Report this to the AC_PACKAGE_NAME lists. ##
46508 ## ------------------------------------------ ##
46511 sed "s/^/$as_me: WARNING: /" >&2
46514 echo "$as_me:$LINENO: checking for $ac_header" >&5
46515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46517 echo $ECHO_N "(cached) $ECHO_C" >&6
46519 eval "$as_ac_Header=\$ac_header_preproc"
46521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46526 cat >>confdefs.h <<_ACEOF
46527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46535 if test $ac_cv_header_slp_h = yes ; then
46536 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46537 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46538 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46539 echo $ECHO_N "(cached) $ECHO_C" >&6
46541 ac_check_lib_save_LIBS=$LIBS
46543 cat >conftest.$ac_ext <<_ACEOF
46546 cat confdefs.h >>conftest.$ac_ext
46547 cat >>conftest.$ac_ext <<_ACEOF
46548 /* end confdefs.h. */
46550 /* Override any gcc2 internal prototype to avoid an error. */
46554 /* We use char because int might match the return type of a gcc2
46555 builtin and then its argument prototype would still apply. */
46565 rm -f conftest.$ac_objext conftest$ac_exeext
46566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46567 (eval $ac_link) 2>conftest.er1
46569 grep -v '^ *+' conftest.er1 >conftest.err
46571 cat conftest.err >&5
46572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46573 (exit $ac_status); } &&
46574 { ac_try='test -z "$ac_c_werror_flag"
46575 || test ! -s conftest.err'
46576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46577 (eval $ac_try) 2>&5
46579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46580 (exit $ac_status); }; } &&
46581 { ac_try='test -s conftest$ac_exeext'
46582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46583 (eval $ac_try) 2>&5
46585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46586 (exit $ac_status); }; }; then
46587 ac_cv_lib_slp_SLPOpen=yes
46589 echo "$as_me: failed program was:" >&5
46590 sed 's/^/| /' conftest.$ac_ext >&5
46592 ac_cv_lib_slp_SLPOpen=no
46594 rm -f conftest.err conftest.$ac_objext \
46595 conftest$ac_exeext conftest.$ac_ext
46596 LIBS=$ac_check_lib_save_LIBS
46598 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46599 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46600 if test $ac_cv_lib_slp_SLPOpen = yes; then
46606 if test $have_slp = yes ; then
46608 cat >>confdefs.h <<\_ACEOF
46612 SLAPD_SLP_LIBS=-lslp
46615 elif test $ol_enable_slp = yes ; then
46616 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46617 echo "$as_me: error: SLP not found" >&2;}
46618 { (exit 1); exit 1; }; }
46622 if test "$ol_with_multiple_precision" != "no" ; then
46628 for ac_header in openssl/bn.h bn.h
46630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46632 echo "$as_me:$LINENO: checking for $ac_header" >&5
46633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46635 echo $ECHO_N "(cached) $ECHO_C" >&6
46637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46640 # Is the header compilable?
46641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46643 cat >conftest.$ac_ext <<_ACEOF
46646 cat confdefs.h >>conftest.$ac_ext
46647 cat >>conftest.$ac_ext <<_ACEOF
46648 /* end confdefs.h. */
46649 $ac_includes_default
46650 #include <$ac_header>
46652 rm -f conftest.$ac_objext
46653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46654 (eval $ac_compile) 2>conftest.er1
46656 grep -v '^ *+' conftest.er1 >conftest.err
46658 cat conftest.err >&5
46659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660 (exit $ac_status); } &&
46661 { ac_try='test -z "$ac_c_werror_flag"
46662 || test ! -s conftest.err'
46663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46664 (eval $ac_try) 2>&5
46666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46667 (exit $ac_status); }; } &&
46668 { ac_try='test -s conftest.$ac_objext'
46669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46670 (eval $ac_try) 2>&5
46672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46673 (exit $ac_status); }; }; then
46674 ac_header_compiler=yes
46676 echo "$as_me: failed program was:" >&5
46677 sed 's/^/| /' conftest.$ac_ext >&5
46679 ac_header_compiler=no
46681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46683 echo "${ECHO_T}$ac_header_compiler" >&6
46685 # Is the header present?
46686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46688 cat >conftest.$ac_ext <<_ACEOF
46691 cat confdefs.h >>conftest.$ac_ext
46692 cat >>conftest.$ac_ext <<_ACEOF
46693 /* end confdefs.h. */
46694 #include <$ac_header>
46696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46699 grep -v '^ *+' conftest.er1 >conftest.err
46701 cat conftest.err >&5
46702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46703 (exit $ac_status); } >/dev/null; then
46704 if test -s conftest.err; then
46705 ac_cpp_err=$ac_c_preproc_warn_flag
46706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46713 if test -z "$ac_cpp_err"; then
46714 ac_header_preproc=yes
46716 echo "$as_me: failed program was:" >&5
46717 sed 's/^/| /' conftest.$ac_ext >&5
46719 ac_header_preproc=no
46721 rm -f conftest.err conftest.$ac_ext
46722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46723 echo "${ECHO_T}$ac_header_preproc" >&6
46725 # So? What about this header?
46726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46732 ac_header_preproc=yes
46735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46749 ## ------------------------------------------ ##
46750 ## Report this to the AC_PACKAGE_NAME lists. ##
46751 ## ------------------------------------------ ##
46754 sed "s/^/$as_me: WARNING: /" >&2
46757 echo "$as_me:$LINENO: checking for $ac_header" >&5
46758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46760 echo $ECHO_N "(cached) $ECHO_C" >&6
46762 eval "$as_ac_Header=\$ac_header_preproc"
46764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46769 cat >>confdefs.h <<_ACEOF
46770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46779 for ac_header in openssl/crypto.h crypto.h
46781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46783 echo "$as_me:$LINENO: checking for $ac_header" >&5
46784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46786 echo $ECHO_N "(cached) $ECHO_C" >&6
46788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46791 # Is the header compilable?
46792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46794 cat >conftest.$ac_ext <<_ACEOF
46797 cat confdefs.h >>conftest.$ac_ext
46798 cat >>conftest.$ac_ext <<_ACEOF
46799 /* end confdefs.h. */
46800 $ac_includes_default
46801 #include <$ac_header>
46803 rm -f conftest.$ac_objext
46804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46805 (eval $ac_compile) 2>conftest.er1
46807 grep -v '^ *+' conftest.er1 >conftest.err
46809 cat conftest.err >&5
46810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46811 (exit $ac_status); } &&
46812 { ac_try='test -z "$ac_c_werror_flag"
46813 || test ! -s conftest.err'
46814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46815 (eval $ac_try) 2>&5
46817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46818 (exit $ac_status); }; } &&
46819 { ac_try='test -s conftest.$ac_objext'
46820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46821 (eval $ac_try) 2>&5
46823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46824 (exit $ac_status); }; }; then
46825 ac_header_compiler=yes
46827 echo "$as_me: failed program was:" >&5
46828 sed 's/^/| /' conftest.$ac_ext >&5
46830 ac_header_compiler=no
46832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46834 echo "${ECHO_T}$ac_header_compiler" >&6
46836 # Is the header present?
46837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46839 cat >conftest.$ac_ext <<_ACEOF
46842 cat confdefs.h >>conftest.$ac_ext
46843 cat >>conftest.$ac_ext <<_ACEOF
46844 /* end confdefs.h. */
46845 #include <$ac_header>
46847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46850 grep -v '^ *+' conftest.er1 >conftest.err
46852 cat conftest.err >&5
46853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46854 (exit $ac_status); } >/dev/null; then
46855 if test -s conftest.err; then
46856 ac_cpp_err=$ac_c_preproc_warn_flag
46857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46864 if test -z "$ac_cpp_err"; then
46865 ac_header_preproc=yes
46867 echo "$as_me: failed program was:" >&5
46868 sed 's/^/| /' conftest.$ac_ext >&5
46870 ac_header_preproc=no
46872 rm -f conftest.err conftest.$ac_ext
46873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46874 echo "${ECHO_T}$ac_header_preproc" >&6
46876 # So? What about this header?
46877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46883 ac_header_preproc=yes
46886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46900 ## ------------------------------------------ ##
46901 ## Report this to the AC_PACKAGE_NAME lists. ##
46902 ## ------------------------------------------ ##
46905 sed "s/^/$as_me: WARNING: /" >&2
46908 echo "$as_me:$LINENO: checking for $ac_header" >&5
46909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46911 echo $ECHO_N "(cached) $ECHO_C" >&6
46913 eval "$as_ac_Header=\$ac_header_preproc"
46915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46920 cat >>confdefs.h <<_ACEOF
46921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46929 for ac_header in gmp.h
46931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46933 echo "$as_me:$LINENO: checking for $ac_header" >&5
46934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46936 echo $ECHO_N "(cached) $ECHO_C" >&6
46938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46941 # Is the header compilable?
46942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46944 cat >conftest.$ac_ext <<_ACEOF
46947 cat confdefs.h >>conftest.$ac_ext
46948 cat >>conftest.$ac_ext <<_ACEOF
46949 /* end confdefs.h. */
46950 $ac_includes_default
46951 #include <$ac_header>
46953 rm -f conftest.$ac_objext
46954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46955 (eval $ac_compile) 2>conftest.er1
46957 grep -v '^ *+' conftest.er1 >conftest.err
46959 cat conftest.err >&5
46960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46961 (exit $ac_status); } &&
46962 { ac_try='test -z "$ac_c_werror_flag"
46963 || test ! -s conftest.err'
46964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46965 (eval $ac_try) 2>&5
46967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46968 (exit $ac_status); }; } &&
46969 { ac_try='test -s conftest.$ac_objext'
46970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46971 (eval $ac_try) 2>&5
46973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46974 (exit $ac_status); }; }; then
46975 ac_header_compiler=yes
46977 echo "$as_me: failed program was:" >&5
46978 sed 's/^/| /' conftest.$ac_ext >&5
46980 ac_header_compiler=no
46982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46984 echo "${ECHO_T}$ac_header_compiler" >&6
46986 # Is the header present?
46987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46989 cat >conftest.$ac_ext <<_ACEOF
46992 cat confdefs.h >>conftest.$ac_ext
46993 cat >>conftest.$ac_ext <<_ACEOF
46994 /* end confdefs.h. */
46995 #include <$ac_header>
46997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47000 grep -v '^ *+' conftest.er1 >conftest.err
47002 cat conftest.err >&5
47003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47004 (exit $ac_status); } >/dev/null; then
47005 if test -s conftest.err; then
47006 ac_cpp_err=$ac_c_preproc_warn_flag
47007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47014 if test -z "$ac_cpp_err"; then
47015 ac_header_preproc=yes
47017 echo "$as_me: failed program was:" >&5
47018 sed 's/^/| /' conftest.$ac_ext >&5
47020 ac_header_preproc=no
47022 rm -f conftest.err conftest.$ac_ext
47023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47024 echo "${ECHO_T}$ac_header_preproc" >&6
47026 # So? What about this header?
47027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47033 ac_header_preproc=yes
47036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47050 ## ------------------------------------------ ##
47051 ## Report this to the AC_PACKAGE_NAME lists. ##
47052 ## ------------------------------------------ ##
47055 sed "s/^/$as_me: WARNING: /" >&2
47058 echo "$as_me:$LINENO: checking for $ac_header" >&5
47059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47061 echo $ECHO_N "(cached) $ECHO_C" >&6
47063 eval "$as_ac_Header=\$ac_header_preproc"
47065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47070 cat >>confdefs.h <<_ACEOF
47071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47079 if test "$ol_with_tls" = "found" ; then
47081 ol_have_crypto_h=no
47083 if test "$ac_cv_header_openssl_bn_h" = "yes" \
47084 -o "$ac_cv_header_bn_h" = "yes" ; then
47088 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
47089 -o "$ac_cv_header_crypto_h" = "yes" ; then
47090 ol_have_crypto_h=yes
47093 if test "$ol_have_bn_h" = "yes" \
47094 -a "$ol_have_crypto_h" = "yes" ; then
47099 if test $ac_cv_header_gmp_h = yes ; then
47100 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
47101 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
47102 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
47103 echo $ECHO_N "(cached) $ECHO_C" >&6
47105 ac_check_lib_save_LIBS=$LIBS
47107 cat >conftest.$ac_ext <<_ACEOF
47110 cat confdefs.h >>conftest.$ac_ext
47111 cat >>conftest.$ac_ext <<_ACEOF
47112 /* end confdefs.h. */
47114 /* Override any gcc2 internal prototype to avoid an error. */
47118 /* We use char because int might match the return type of a gcc2
47119 builtin and then its argument prototype would still apply. */
47120 char __gmpz_add_ui ();
47129 rm -f conftest.$ac_objext conftest$ac_exeext
47130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47131 (eval $ac_link) 2>conftest.er1
47133 grep -v '^ *+' conftest.er1 >conftest.err
47135 cat conftest.err >&5
47136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47137 (exit $ac_status); } &&
47138 { ac_try='test -z "$ac_c_werror_flag"
47139 || test ! -s conftest.err'
47140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47141 (eval $ac_try) 2>&5
47143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47144 (exit $ac_status); }; } &&
47145 { ac_try='test -s conftest$ac_exeext'
47146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47147 (eval $ac_try) 2>&5
47149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47150 (exit $ac_status); }; }; then
47151 ac_cv_lib_gmp___gmpz_add_ui=yes
47153 echo "$as_me: failed program was:" >&5
47154 sed 's/^/| /' conftest.$ac_ext >&5
47156 ac_cv_lib_gmp___gmpz_add_ui=no
47158 rm -f conftest.err conftest.$ac_objext \
47159 conftest$ac_exeext conftest.$ac_ext
47160 LIBS=$ac_check_lib_save_LIBS
47162 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
47163 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47164 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47170 if test $have_gmp = yes ; then
47175 echo "$as_me:$LINENO: checking for multiple precision support" >&5
47176 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47178 ol_mp_support="none"
47179 case "$ol_with_multiple_precision" in
47181 if test "$ol_have_bignum" = "yes" ; then
47182 ol_mp_support="bignum"
47184 if test "$ol_have_gmp" = "yes" ; then
47185 ol_mp_support="gmp"
47190 if test "$ol_have_bignum" != "yes" ; then
47191 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47192 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47193 { (exit 1); exit 1; }; }
47195 ol_mp_support="bignum"
47198 if test "$ol_have_gmp" != "yes" ; then
47199 { { echo "$as_me:$LINENO: error: GMP not available" >&5
47200 echo "$as_me: error: GMP not available" >&2;}
47201 { (exit 1); exit 1; }; }
47203 ol_mp_support="gmp"
47206 if test "$ol_have_bignum" = "yes" ; then
47207 ol_mp_support="bignum"
47208 elif test "$ol_have_gmp" = "yes" ; then
47209 ol_mp_support="gmp"
47211 { { echo "$as_me:$LINENO: error: not available" >&5
47212 echo "$as_me: error: not available" >&2;}
47213 { (exit 1); exit 1; }; }
47218 case "$ol_mp_support" in
47221 cat >>confdefs.h <<\_ACEOF
47222 #define HAVE_BIGNUM 1
47228 cat >>confdefs.h <<\_ACEOF
47232 SLAPD_GMP_LIBS=-lgmp
47238 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47239 echo "${ECHO_T}$ol_mp_support" >&6
47243 echo "$as_me:$LINENO: checking for mode_t" >&5
47244 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47245 if test "${ac_cv_type_mode_t+set}" = set; then
47246 echo $ECHO_N "(cached) $ECHO_C" >&6
47248 cat >conftest.$ac_ext <<_ACEOF
47251 cat confdefs.h >>conftest.$ac_ext
47252 cat >>conftest.$ac_ext <<_ACEOF
47253 /* end confdefs.h. */
47254 $ac_includes_default
47260 if (sizeof (mode_t))
47266 rm -f conftest.$ac_objext
47267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47268 (eval $ac_compile) 2>conftest.er1
47270 grep -v '^ *+' conftest.er1 >conftest.err
47272 cat conftest.err >&5
47273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47274 (exit $ac_status); } &&
47275 { ac_try='test -z "$ac_c_werror_flag"
47276 || test ! -s conftest.err'
47277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47278 (eval $ac_try) 2>&5
47280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47281 (exit $ac_status); }; } &&
47282 { ac_try='test -s conftest.$ac_objext'
47283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47284 (eval $ac_try) 2>&5
47286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47287 (exit $ac_status); }; }; then
47288 ac_cv_type_mode_t=yes
47290 echo "$as_me: failed program was:" >&5
47291 sed 's/^/| /' conftest.$ac_ext >&5
47293 ac_cv_type_mode_t=no
47295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47297 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47298 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47299 if test $ac_cv_type_mode_t = yes; then
47303 cat >>confdefs.h <<_ACEOF
47309 echo "$as_me:$LINENO: checking for off_t" >&5
47310 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47311 if test "${ac_cv_type_off_t+set}" = set; then
47312 echo $ECHO_N "(cached) $ECHO_C" >&6
47314 cat >conftest.$ac_ext <<_ACEOF
47317 cat confdefs.h >>conftest.$ac_ext
47318 cat >>conftest.$ac_ext <<_ACEOF
47319 /* end confdefs.h. */
47320 $ac_includes_default
47326 if (sizeof (off_t))
47332 rm -f conftest.$ac_objext
47333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47334 (eval $ac_compile) 2>conftest.er1
47336 grep -v '^ *+' conftest.er1 >conftest.err
47338 cat conftest.err >&5
47339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47340 (exit $ac_status); } &&
47341 { ac_try='test -z "$ac_c_werror_flag"
47342 || test ! -s conftest.err'
47343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47344 (eval $ac_try) 2>&5
47346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47347 (exit $ac_status); }; } &&
47348 { ac_try='test -s conftest.$ac_objext'
47349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47350 (eval $ac_try) 2>&5
47352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47353 (exit $ac_status); }; }; then
47354 ac_cv_type_off_t=yes
47356 echo "$as_me: failed program was:" >&5
47357 sed 's/^/| /' conftest.$ac_ext >&5
47359 ac_cv_type_off_t=no
47361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47363 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47364 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47365 if test $ac_cv_type_off_t = yes; then
47369 cat >>confdefs.h <<_ACEOF
47375 echo "$as_me:$LINENO: checking for pid_t" >&5
47376 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47377 if test "${ac_cv_type_pid_t+set}" = set; then
47378 echo $ECHO_N "(cached) $ECHO_C" >&6
47380 cat >conftest.$ac_ext <<_ACEOF
47383 cat confdefs.h >>conftest.$ac_ext
47384 cat >>conftest.$ac_ext <<_ACEOF
47385 /* end confdefs.h. */
47386 $ac_includes_default
47392 if (sizeof (pid_t))
47398 rm -f conftest.$ac_objext
47399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47400 (eval $ac_compile) 2>conftest.er1
47402 grep -v '^ *+' conftest.er1 >conftest.err
47404 cat conftest.err >&5
47405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47406 (exit $ac_status); } &&
47407 { ac_try='test -z "$ac_c_werror_flag"
47408 || test ! -s conftest.err'
47409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47410 (eval $ac_try) 2>&5
47412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47413 (exit $ac_status); }; } &&
47414 { ac_try='test -s conftest.$ac_objext'
47415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47416 (eval $ac_try) 2>&5
47418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47419 (exit $ac_status); }; }; then
47420 ac_cv_type_pid_t=yes
47422 echo "$as_me: failed program was:" >&5
47423 sed 's/^/| /' conftest.$ac_ext >&5
47425 ac_cv_type_pid_t=no
47427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47429 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47430 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47431 if test $ac_cv_type_pid_t = yes; then
47435 cat >>confdefs.h <<_ACEOF
47441 echo "$as_me:$LINENO: checking for ssize_t" >&5
47442 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47443 if test "${ac_cv_type_ssize_t+set}" = set; then
47444 echo $ECHO_N "(cached) $ECHO_C" >&6
47446 cat >conftest.$ac_ext <<_ACEOF
47449 cat confdefs.h >>conftest.$ac_ext
47450 cat >>conftest.$ac_ext <<_ACEOF
47451 /* end confdefs.h. */
47452 $ac_includes_default
47458 if (sizeof (ssize_t))
47464 rm -f conftest.$ac_objext
47465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47466 (eval $ac_compile) 2>conftest.er1
47468 grep -v '^ *+' conftest.er1 >conftest.err
47470 cat conftest.err >&5
47471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47472 (exit $ac_status); } &&
47473 { ac_try='test -z "$ac_c_werror_flag"
47474 || test ! -s conftest.err'
47475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47476 (eval $ac_try) 2>&5
47478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47479 (exit $ac_status); }; } &&
47480 { ac_try='test -s conftest.$ac_objext'
47481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47482 (eval $ac_try) 2>&5
47484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47485 (exit $ac_status); }; }; then
47486 ac_cv_type_ssize_t=yes
47488 echo "$as_me: failed program was:" >&5
47489 sed 's/^/| /' conftest.$ac_ext >&5
47491 ac_cv_type_ssize_t=no
47493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47495 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47496 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47497 if test $ac_cv_type_ssize_t = yes; then
47501 cat >>confdefs.h <<_ACEOF
47502 #define ssize_t signed int
47507 echo "$as_me:$LINENO: checking for caddr_t" >&5
47508 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47509 if test "${ac_cv_type_caddr_t+set}" = set; then
47510 echo $ECHO_N "(cached) $ECHO_C" >&6
47512 cat >conftest.$ac_ext <<_ACEOF
47515 cat confdefs.h >>conftest.$ac_ext
47516 cat >>conftest.$ac_ext <<_ACEOF
47517 /* end confdefs.h. */
47518 $ac_includes_default
47524 if (sizeof (caddr_t))
47530 rm -f conftest.$ac_objext
47531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47532 (eval $ac_compile) 2>conftest.er1
47534 grep -v '^ *+' conftest.er1 >conftest.err
47536 cat conftest.err >&5
47537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47538 (exit $ac_status); } &&
47539 { ac_try='test -z "$ac_c_werror_flag"
47540 || test ! -s conftest.err'
47541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47542 (eval $ac_try) 2>&5
47544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47545 (exit $ac_status); }; } &&
47546 { ac_try='test -s conftest.$ac_objext'
47547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47548 (eval $ac_try) 2>&5
47550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47551 (exit $ac_status); }; }; then
47552 ac_cv_type_caddr_t=yes
47554 echo "$as_me: failed program was:" >&5
47555 sed 's/^/| /' conftest.$ac_ext >&5
47557 ac_cv_type_caddr_t=no
47559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47561 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47562 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47563 if test $ac_cv_type_caddr_t = yes; then
47567 cat >>confdefs.h <<_ACEOF
47568 #define caddr_t char *
47573 echo "$as_me:$LINENO: checking for size_t" >&5
47574 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47575 if test "${ac_cv_type_size_t+set}" = set; then
47576 echo $ECHO_N "(cached) $ECHO_C" >&6
47578 cat >conftest.$ac_ext <<_ACEOF
47581 cat confdefs.h >>conftest.$ac_ext
47582 cat >>conftest.$ac_ext <<_ACEOF
47583 /* end confdefs.h. */
47584 $ac_includes_default
47590 if (sizeof (size_t))
47596 rm -f conftest.$ac_objext
47597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47598 (eval $ac_compile) 2>conftest.er1
47600 grep -v '^ *+' conftest.er1 >conftest.err
47602 cat conftest.err >&5
47603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47604 (exit $ac_status); } &&
47605 { ac_try='test -z "$ac_c_werror_flag"
47606 || test ! -s conftest.err'
47607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47608 (eval $ac_try) 2>&5
47610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47611 (exit $ac_status); }; } &&
47612 { ac_try='test -s conftest.$ac_objext'
47613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47614 (eval $ac_try) 2>&5
47616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47617 (exit $ac_status); }; }; then
47618 ac_cv_type_size_t=yes
47620 echo "$as_me: failed program was:" >&5
47621 sed 's/^/| /' conftest.$ac_ext >&5
47623 ac_cv_type_size_t=no
47625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47627 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47628 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47629 if test $ac_cv_type_size_t = yes; then
47633 cat >>confdefs.h <<_ACEOF
47634 #define size_t unsigned
47640 echo "$as_me:$LINENO: checking for long long" >&5
47641 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47642 if test "${ac_cv_type_long_long+set}" = set; then
47643 echo $ECHO_N "(cached) $ECHO_C" >&6
47645 cat >conftest.$ac_ext <<_ACEOF
47648 cat confdefs.h >>conftest.$ac_ext
47649 cat >>conftest.$ac_ext <<_ACEOF
47650 /* end confdefs.h. */
47651 $ac_includes_default
47655 if ((long long *) 0)
47657 if (sizeof (long long))
47663 rm -f conftest.$ac_objext
47664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47665 (eval $ac_compile) 2>conftest.er1
47667 grep -v '^ *+' conftest.er1 >conftest.err
47669 cat conftest.err >&5
47670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47671 (exit $ac_status); } &&
47672 { ac_try='test -z "$ac_c_werror_flag"
47673 || test ! -s conftest.err'
47674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47675 (eval $ac_try) 2>&5
47677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47678 (exit $ac_status); }; } &&
47679 { ac_try='test -s conftest.$ac_objext'
47680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47681 (eval $ac_try) 2>&5
47683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47684 (exit $ac_status); }; }; then
47685 ac_cv_type_long_long=yes
47687 echo "$as_me: failed program was:" >&5
47688 sed 's/^/| /' conftest.$ac_ext >&5
47690 ac_cv_type_long_long=no
47692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47694 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47695 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47696 if test $ac_cv_type_long_long = yes; then
47698 cat >>confdefs.h <<_ACEOF
47699 #define HAVE_LONG_LONG 1
47705 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47706 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47707 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47708 echo $ECHO_N "(cached) $ECHO_C" >&6
47710 cat >conftest.$ac_ext <<_ACEOF
47713 cat confdefs.h >>conftest.$ac_ext
47714 cat >>conftest.$ac_ext <<_ACEOF
47715 /* end confdefs.h. */
47716 $ac_includes_default
47720 if ((ptrdiff_t *) 0)
47722 if (sizeof (ptrdiff_t))
47728 rm -f conftest.$ac_objext
47729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47730 (eval $ac_compile) 2>conftest.er1
47732 grep -v '^ *+' conftest.er1 >conftest.err
47734 cat conftest.err >&5
47735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47736 (exit $ac_status); } &&
47737 { ac_try='test -z "$ac_c_werror_flag"
47738 || test ! -s conftest.err'
47739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47740 (eval $ac_try) 2>&5
47742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47743 (exit $ac_status); }; } &&
47744 { ac_try='test -s conftest.$ac_objext'
47745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47746 (eval $ac_try) 2>&5
47748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47749 (exit $ac_status); }; }; then
47750 ac_cv_type_ptrdiff_t=yes
47752 echo "$as_me: failed program was:" >&5
47753 sed 's/^/| /' conftest.$ac_ext >&5
47755 ac_cv_type_ptrdiff_t=no
47757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47759 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47760 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47761 if test $ac_cv_type_ptrdiff_t = yes; then
47763 cat >>confdefs.h <<_ACEOF
47764 #define HAVE_PTRDIFF_T 1
47771 echo "$as_me:$LINENO: checking for socklen_t" >&5
47772 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47773 if test "${ac_cv_type_socklen_t+set}" = set; then
47774 echo $ECHO_N "(cached) $ECHO_C" >&6
47776 cat >conftest.$ac_ext <<_ACEOF
47779 cat confdefs.h >>conftest.$ac_ext
47780 cat >>conftest.$ac_ext <<_ACEOF
47781 /* end confdefs.h. */
47782 $ac_includes_default
47783 #ifdef HAVE_SYS_SOCKET_H
47784 #include <sys/socket.h>
47791 if ((socklen_t *) 0)
47793 if (sizeof (socklen_t))
47799 rm -f conftest.$ac_objext
47800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47801 (eval $ac_compile) 2>conftest.er1
47803 grep -v '^ *+' conftest.er1 >conftest.err
47805 cat conftest.err >&5
47806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47807 (exit $ac_status); } &&
47808 { ac_try='test -z "$ac_c_werror_flag"
47809 || test ! -s conftest.err'
47810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47811 (eval $ac_try) 2>&5
47813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47814 (exit $ac_status); }; } &&
47815 { ac_try='test -s conftest.$ac_objext'
47816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47817 (eval $ac_try) 2>&5
47819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47820 (exit $ac_status); }; }; then
47821 ac_cv_type_socklen_t=yes
47823 echo "$as_me: failed program was:" >&5
47824 sed 's/^/| /' conftest.$ac_ext >&5
47826 ac_cv_type_socklen_t=no
47828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47830 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47831 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47832 if test $ac_cv_type_socklen_t = yes; then
47836 cat >>confdefs.h <<_ACEOF
47837 #define socklen_t int
47843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47845 if test "${ac_cv_type_signal+set}" = set; then
47846 echo $ECHO_N "(cached) $ECHO_C" >&6
47848 cat >conftest.$ac_ext <<_ACEOF
47851 cat confdefs.h >>conftest.$ac_ext
47852 cat >>conftest.$ac_ext <<_ACEOF
47853 /* end confdefs.h. */
47854 #include <sys/types.h>
47855 #include <signal.h>
47860 extern "C" void (*signal (int, void (*)(int)))(int);
47862 void (*signal ()) ();
47873 rm -f conftest.$ac_objext
47874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47875 (eval $ac_compile) 2>conftest.er1
47877 grep -v '^ *+' conftest.er1 >conftest.err
47879 cat conftest.err >&5
47880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47881 (exit $ac_status); } &&
47882 { ac_try='test -z "$ac_c_werror_flag"
47883 || test ! -s conftest.err'
47884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47885 (eval $ac_try) 2>&5
47887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47888 (exit $ac_status); }; } &&
47889 { ac_try='test -s conftest.$ac_objext'
47890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47891 (eval $ac_try) 2>&5
47893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47894 (exit $ac_status); }; }; then
47895 ac_cv_type_signal=void
47897 echo "$as_me: failed program was:" >&5
47898 sed 's/^/| /' conftest.$ac_ext >&5
47900 ac_cv_type_signal=int
47902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47904 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47905 echo "${ECHO_T}$ac_cv_type_signal" >&6
47907 cat >>confdefs.h <<_ACEOF
47908 #define RETSIGTYPE $ac_cv_type_signal
47913 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47914 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47915 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47916 echo $ECHO_N "(cached) $ECHO_C" >&6
47918 cat >conftest.$ac_ext <<_ACEOF
47921 cat confdefs.h >>conftest.$ac_ext
47922 cat >>conftest.$ac_ext <<_ACEOF
47923 /* end confdefs.h. */
47924 $ac_includes_default
47925 #include <signal.h>
47931 if ((sig_atomic_t *) 0)
47933 if (sizeof (sig_atomic_t))
47939 rm -f conftest.$ac_objext
47940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47941 (eval $ac_compile) 2>conftest.er1
47943 grep -v '^ *+' conftest.er1 >conftest.err
47945 cat conftest.err >&5
47946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47947 (exit $ac_status); } &&
47948 { ac_try='test -z "$ac_c_werror_flag"
47949 || test ! -s conftest.err'
47950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47951 (eval $ac_try) 2>&5
47953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47954 (exit $ac_status); }; } &&
47955 { ac_try='test -s conftest.$ac_objext'
47956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47957 (eval $ac_try) 2>&5
47959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47960 (exit $ac_status); }; }; then
47961 ac_cv_type_sig_atomic_t=yes
47963 echo "$as_me: failed program was:" >&5
47964 sed 's/^/| /' conftest.$ac_ext >&5
47966 ac_cv_type_sig_atomic_t=no
47968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47970 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47971 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47972 if test $ac_cv_type_sig_atomic_t = yes; then
47976 cat >>confdefs.h <<_ACEOF
47977 #define sig_atomic_t int
47983 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47984 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47985 if test "${ac_cv_type_uid_t+set}" = set; then
47986 echo $ECHO_N "(cached) $ECHO_C" >&6
47988 cat >conftest.$ac_ext <<_ACEOF
47991 cat confdefs.h >>conftest.$ac_ext
47992 cat >>conftest.$ac_ext <<_ACEOF
47993 /* end confdefs.h. */
47994 #include <sys/types.h>
47997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47998 $EGREP "uid_t" >/dev/null 2>&1; then
47999 ac_cv_type_uid_t=yes
48001 ac_cv_type_uid_t=no
48006 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
48007 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
48008 if test $ac_cv_type_uid_t = no; then
48010 cat >>confdefs.h <<\_ACEOF
48015 cat >>confdefs.h <<\_ACEOF
48022 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
48023 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
48024 if test "${ac_cv_header_time+set}" = set; then
48025 echo $ECHO_N "(cached) $ECHO_C" >&6
48027 cat >conftest.$ac_ext <<_ACEOF
48030 cat confdefs.h >>conftest.$ac_ext
48031 cat >>conftest.$ac_ext <<_ACEOF
48032 /* end confdefs.h. */
48033 #include <sys/types.h>
48034 #include <sys/time.h>
48040 if ((struct tm *) 0)
48046 rm -f conftest.$ac_objext
48047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48048 (eval $ac_compile) 2>conftest.er1
48050 grep -v '^ *+' conftest.er1 >conftest.err
48052 cat conftest.err >&5
48053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48054 (exit $ac_status); } &&
48055 { ac_try='test -z "$ac_c_werror_flag"
48056 || test ! -s conftest.err'
48057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48058 (eval $ac_try) 2>&5
48060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48061 (exit $ac_status); }; } &&
48062 { ac_try='test -s conftest.$ac_objext'
48063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48064 (eval $ac_try) 2>&5
48066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48067 (exit $ac_status); }; }; then
48068 ac_cv_header_time=yes
48070 echo "$as_me: failed program was:" >&5
48071 sed 's/^/| /' conftest.$ac_ext >&5
48073 ac_cv_header_time=no
48075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48077 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48078 echo "${ECHO_T}$ac_cv_header_time" >&6
48079 if test $ac_cv_header_time = yes; then
48081 cat >>confdefs.h <<\_ACEOF
48082 #define TIME_WITH_SYS_TIME 1
48087 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48088 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48089 if test "${ac_cv_struct_tm+set}" = set; then
48090 echo $ECHO_N "(cached) $ECHO_C" >&6
48092 cat >conftest.$ac_ext <<_ACEOF
48095 cat confdefs.h >>conftest.$ac_ext
48096 cat >>conftest.$ac_ext <<_ACEOF
48097 /* end confdefs.h. */
48098 #include <sys/types.h>
48104 struct tm *tp; tp->tm_sec;
48109 rm -f conftest.$ac_objext
48110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48111 (eval $ac_compile) 2>conftest.er1
48113 grep -v '^ *+' conftest.er1 >conftest.err
48115 cat conftest.err >&5
48116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48117 (exit $ac_status); } &&
48118 { ac_try='test -z "$ac_c_werror_flag"
48119 || test ! -s conftest.err'
48120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48121 (eval $ac_try) 2>&5
48123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48124 (exit $ac_status); }; } &&
48125 { ac_try='test -s conftest.$ac_objext'
48126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48127 (eval $ac_try) 2>&5
48129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48130 (exit $ac_status); }; }; then
48131 ac_cv_struct_tm=time.h
48133 echo "$as_me: failed program was:" >&5
48134 sed 's/^/| /' conftest.$ac_ext >&5
48136 ac_cv_struct_tm=sys/time.h
48138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48140 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48141 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48142 if test $ac_cv_struct_tm = sys/time.h; then
48144 cat >>confdefs.h <<\_ACEOF
48145 #define TM_IN_SYS_TIME 1
48150 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
48151 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
48152 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
48153 echo $ECHO_N "(cached) $ECHO_C" >&6
48155 cat >conftest.$ac_ext <<_ACEOF
48158 cat confdefs.h >>conftest.$ac_ext
48159 cat >>conftest.$ac_ext <<_ACEOF
48160 /* end confdefs.h. */
48161 $ac_includes_default
48165 static struct stat ac_aggr;
48166 if (ac_aggr.st_blksize)
48172 rm -f conftest.$ac_objext
48173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48174 (eval $ac_compile) 2>conftest.er1
48176 grep -v '^ *+' conftest.er1 >conftest.err
48178 cat conftest.err >&5
48179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180 (exit $ac_status); } &&
48181 { ac_try='test -z "$ac_c_werror_flag"
48182 || test ! -s conftest.err'
48183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184 (eval $ac_try) 2>&5
48186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187 (exit $ac_status); }; } &&
48188 { ac_try='test -s conftest.$ac_objext'
48189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48190 (eval $ac_try) 2>&5
48192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48193 (exit $ac_status); }; }; then
48194 ac_cv_member_struct_stat_st_blksize=yes
48196 echo "$as_me: failed program was:" >&5
48197 sed 's/^/| /' conftest.$ac_ext >&5
48199 cat >conftest.$ac_ext <<_ACEOF
48202 cat confdefs.h >>conftest.$ac_ext
48203 cat >>conftest.$ac_ext <<_ACEOF
48204 /* end confdefs.h. */
48205 $ac_includes_default
48209 static struct stat ac_aggr;
48210 if (sizeof ac_aggr.st_blksize)
48216 rm -f conftest.$ac_objext
48217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48218 (eval $ac_compile) 2>conftest.er1
48220 grep -v '^ *+' conftest.er1 >conftest.err
48222 cat conftest.err >&5
48223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48224 (exit $ac_status); } &&
48225 { ac_try='test -z "$ac_c_werror_flag"
48226 || test ! -s conftest.err'
48227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48228 (eval $ac_try) 2>&5
48230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48231 (exit $ac_status); }; } &&
48232 { ac_try='test -s conftest.$ac_objext'
48233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48234 (eval $ac_try) 2>&5
48236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48237 (exit $ac_status); }; }; then
48238 ac_cv_member_struct_stat_st_blksize=yes
48240 echo "$as_me: failed program was:" >&5
48241 sed 's/^/| /' conftest.$ac_ext >&5
48243 ac_cv_member_struct_stat_st_blksize=no
48245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48249 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48250 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48251 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48253 cat >>confdefs.h <<_ACEOF
48254 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48260 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48261 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48262 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48263 echo $ECHO_N "(cached) $ECHO_C" >&6
48265 cat >conftest.$ac_ext <<_ACEOF
48268 cat confdefs.h >>conftest.$ac_ext
48269 cat >>conftest.$ac_ext <<_ACEOF
48270 /* end confdefs.h. */
48271 $ac_includes_default
48277 static struct passwd ac_aggr;
48278 if (ac_aggr.pw_gecos)
48284 rm -f conftest.$ac_objext
48285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48286 (eval $ac_compile) 2>conftest.er1
48288 grep -v '^ *+' conftest.er1 >conftest.err
48290 cat conftest.err >&5
48291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48292 (exit $ac_status); } &&
48293 { ac_try='test -z "$ac_c_werror_flag"
48294 || test ! -s conftest.err'
48295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48296 (eval $ac_try) 2>&5
48298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48299 (exit $ac_status); }; } &&
48300 { ac_try='test -s conftest.$ac_objext'
48301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48302 (eval $ac_try) 2>&5
48304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48305 (exit $ac_status); }; }; then
48306 ac_cv_member_struct_passwd_pw_gecos=yes
48308 echo "$as_me: failed program was:" >&5
48309 sed 's/^/| /' conftest.$ac_ext >&5
48311 cat >conftest.$ac_ext <<_ACEOF
48314 cat confdefs.h >>conftest.$ac_ext
48315 cat >>conftest.$ac_ext <<_ACEOF
48316 /* end confdefs.h. */
48317 $ac_includes_default
48323 static struct passwd ac_aggr;
48324 if (sizeof ac_aggr.pw_gecos)
48330 rm -f conftest.$ac_objext
48331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48332 (eval $ac_compile) 2>conftest.er1
48334 grep -v '^ *+' conftest.er1 >conftest.err
48336 cat conftest.err >&5
48337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48338 (exit $ac_status); } &&
48339 { ac_try='test -z "$ac_c_werror_flag"
48340 || test ! -s conftest.err'
48341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48342 (eval $ac_try) 2>&5
48344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48345 (exit $ac_status); }; } &&
48346 { ac_try='test -s conftest.$ac_objext'
48347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48348 (eval $ac_try) 2>&5
48350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48351 (exit $ac_status); }; }; then
48352 ac_cv_member_struct_passwd_pw_gecos=yes
48354 echo "$as_me: failed program was:" >&5
48355 sed 's/^/| /' conftest.$ac_ext >&5
48357 ac_cv_member_struct_passwd_pw_gecos=no
48359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48363 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48364 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48365 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48367 cat >>confdefs.h <<_ACEOF
48368 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48374 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48375 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48376 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48377 echo $ECHO_N "(cached) $ECHO_C" >&6
48379 cat >conftest.$ac_ext <<_ACEOF
48382 cat confdefs.h >>conftest.$ac_ext
48383 cat >>conftest.$ac_ext <<_ACEOF
48384 /* end confdefs.h. */
48385 $ac_includes_default
48391 static struct passwd ac_aggr;
48392 if (ac_aggr.pw_passwd)
48398 rm -f conftest.$ac_objext
48399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48400 (eval $ac_compile) 2>conftest.er1
48402 grep -v '^ *+' conftest.er1 >conftest.err
48404 cat conftest.err >&5
48405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48406 (exit $ac_status); } &&
48407 { ac_try='test -z "$ac_c_werror_flag"
48408 || test ! -s conftest.err'
48409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48410 (eval $ac_try) 2>&5
48412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48413 (exit $ac_status); }; } &&
48414 { ac_try='test -s conftest.$ac_objext'
48415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48416 (eval $ac_try) 2>&5
48418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48419 (exit $ac_status); }; }; then
48420 ac_cv_member_struct_passwd_pw_passwd=yes
48422 echo "$as_me: failed program was:" >&5
48423 sed 's/^/| /' conftest.$ac_ext >&5
48425 cat >conftest.$ac_ext <<_ACEOF
48428 cat confdefs.h >>conftest.$ac_ext
48429 cat >>conftest.$ac_ext <<_ACEOF
48430 /* end confdefs.h. */
48431 $ac_includes_default
48437 static struct passwd ac_aggr;
48438 if (sizeof ac_aggr.pw_passwd)
48444 rm -f conftest.$ac_objext
48445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48446 (eval $ac_compile) 2>conftest.er1
48448 grep -v '^ *+' conftest.er1 >conftest.err
48450 cat conftest.err >&5
48451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48452 (exit $ac_status); } &&
48453 { ac_try='test -z "$ac_c_werror_flag"
48454 || test ! -s conftest.err'
48455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48456 (eval $ac_try) 2>&5
48458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48459 (exit $ac_status); }; } &&
48460 { ac_try='test -s conftest.$ac_objext'
48461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48462 (eval $ac_try) 2>&5
48464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48465 (exit $ac_status); }; }; then
48466 ac_cv_member_struct_passwd_pw_passwd=yes
48468 echo "$as_me: failed program was:" >&5
48469 sed 's/^/| /' conftest.$ac_ext >&5
48471 ac_cv_member_struct_passwd_pw_passwd=no
48473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48477 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48478 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48479 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48481 cat >>confdefs.h <<_ACEOF
48482 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48489 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48490 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48491 if test "${ol_cv_c_upper_lower+set}" = set; then
48492 echo $ECHO_N "(cached) $ECHO_C" >&6
48495 if test "$cross_compiling" = yes; then
48496 ol_cv_c_upper_lower=safe
48498 cat >conftest.$ac_ext <<_ACEOF
48501 cat confdefs.h >>conftest.$ac_ext
48502 cat >>conftest.$ac_ext <<_ACEOF
48503 /* end confdefs.h. */
48508 if ('C' == toupper('C'))
48514 rm -f conftest$ac_exeext
48515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48516 (eval $ac_link) 2>&5
48518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48521 (eval $ac_try) 2>&5
48523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48524 (exit $ac_status); }; }; then
48525 ol_cv_c_upper_lower=no
48527 echo "$as_me: program exited with status $ac_status" >&5
48528 echo "$as_me: failed program was:" >&5
48529 sed 's/^/| /' conftest.$ac_ext >&5
48531 ( exit $ac_status )
48532 ol_cv_c_upper_lower=yes
48534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48537 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48538 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48539 if test $ol_cv_c_upper_lower != no ; then
48541 cat >>confdefs.h <<\_ACEOF
48542 #define C_UPPER_LOWER 1
48547 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48548 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48549 if test "${ac_cv_c_const+set}" = set; then
48550 echo $ECHO_N "(cached) $ECHO_C" >&6
48552 cat >conftest.$ac_ext <<_ACEOF
48555 cat confdefs.h >>conftest.$ac_ext
48556 cat >>conftest.$ac_ext <<_ACEOF
48557 /* end confdefs.h. */
48562 /* FIXME: Include the comments suggested by Paul. */
48563 #ifndef __cplusplus
48564 /* Ultrix mips cc rejects this. */
48565 typedef int charset[2];
48567 /* SunOS 4.1.1 cc rejects this. */
48568 char const *const *ccp;
48570 /* NEC SVR4.0.2 mips cc rejects this. */
48571 struct point {int x, y;};
48572 static struct point const zero = {0,0};
48573 /* AIX XL C 1.02.0.0 rejects this.
48574 It does not let you subtract one const X* pointer from another in
48575 an arm of an if-expression whose if-part is not a constant
48577 const char *g = "string";
48578 ccp = &g + (g ? g-g : 0);
48579 /* HPUX 7.0 cc rejects these. */
48582 ccp = (char const *const *) p;
48583 { /* SCO 3.2v4 cc rejects this. */
48585 char const *s = 0 ? (char *) 0 : (char const *) 0;
48589 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48590 int x[] = {25, 17};
48591 const int *foo = &x[0];
48594 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48595 typedef const int *iptr;
48599 { /* AIX XL C 1.02.0.0 rejects this saying
48600 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48601 struct s { int j; const int *ap[3]; };
48602 struct s *b; b->j = 5;
48604 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48605 const int foo = 10;
48613 rm -f conftest.$ac_objext
48614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48615 (eval $ac_compile) 2>conftest.er1
48617 grep -v '^ *+' conftest.er1 >conftest.err
48619 cat conftest.err >&5
48620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48621 (exit $ac_status); } &&
48622 { ac_try='test -z "$ac_c_werror_flag"
48623 || test ! -s conftest.err'
48624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48625 (eval $ac_try) 2>&5
48627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48628 (exit $ac_status); }; } &&
48629 { ac_try='test -s conftest.$ac_objext'
48630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48631 (eval $ac_try) 2>&5
48633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48634 (exit $ac_status); }; }; then
48637 echo "$as_me: failed program was:" >&5
48638 sed 's/^/| /' conftest.$ac_ext >&5
48642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48644 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48645 echo "${ECHO_T}$ac_cv_c_const" >&6
48646 if test $ac_cv_c_const = no; then
48648 cat >>confdefs.h <<\_ACEOF
48654 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48655 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48656 if test "${ol_cv_c_volatile+set}" = set; then
48657 echo $ECHO_N "(cached) $ECHO_C" >&6
48659 cat >conftest.$ac_ext <<_ACEOF
48662 cat confdefs.h >>conftest.$ac_ext
48663 cat >>conftest.$ac_ext <<_ACEOF
48664 /* end confdefs.h. */
48669 volatile int a; int * volatile b = x ? &y : &z;
48670 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48676 rm -f conftest.$ac_objext
48677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48678 (eval $ac_compile) 2>conftest.er1
48680 grep -v '^ *+' conftest.er1 >conftest.err
48682 cat conftest.err >&5
48683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48684 (exit $ac_status); } &&
48685 { ac_try='test -z "$ac_c_werror_flag"
48686 || test ! -s conftest.err'
48687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48688 (eval $ac_try) 2>&5
48690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48691 (exit $ac_status); }; } &&
48692 { ac_try='test -s conftest.$ac_objext'
48693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48694 (eval $ac_try) 2>&5
48696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48697 (exit $ac_status); }; }; then
48698 ol_cv_c_volatile=yes
48700 echo "$as_me: failed program was:" >&5
48701 sed 's/^/| /' conftest.$ac_ext >&5
48703 ol_cv_c_volatile=no
48705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48707 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48708 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48709 if test $ol_cv_c_volatile = yes; then
48713 cat >>confdefs.h <<\_ACEOF
48720 if test $cross_compiling = yes ; then
48721 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48722 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48724 cat >>confdefs.h <<\_ACEOF
48725 #define CROSS_COMPILING 1
48729 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48730 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48731 if test "${ac_cv_c_bigendian+set}" = set; then
48732 echo $ECHO_N "(cached) $ECHO_C" >&6
48734 # See if sys/param.h defines the BYTE_ORDER macro.
48735 cat >conftest.$ac_ext <<_ACEOF
48738 cat confdefs.h >>conftest.$ac_ext
48739 cat >>conftest.$ac_ext <<_ACEOF
48740 /* end confdefs.h. */
48741 #include <sys/types.h>
48742 #include <sys/param.h>
48747 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48748 bogus endian macros
48755 rm -f conftest.$ac_objext
48756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48757 (eval $ac_compile) 2>conftest.er1
48759 grep -v '^ *+' conftest.er1 >conftest.err
48761 cat conftest.err >&5
48762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48763 (exit $ac_status); } &&
48764 { ac_try='test -z "$ac_c_werror_flag"
48765 || test ! -s conftest.err'
48766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48767 (eval $ac_try) 2>&5
48769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48770 (exit $ac_status); }; } &&
48771 { ac_try='test -s conftest.$ac_objext'
48772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48773 (eval $ac_try) 2>&5
48775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48776 (exit $ac_status); }; }; then
48777 # It does; now see whether it defined to BIG_ENDIAN or not.
48778 cat >conftest.$ac_ext <<_ACEOF
48781 cat confdefs.h >>conftest.$ac_ext
48782 cat >>conftest.$ac_ext <<_ACEOF
48783 /* end confdefs.h. */
48784 #include <sys/types.h>
48785 #include <sys/param.h>
48790 #if BYTE_ORDER != BIG_ENDIAN
48798 rm -f conftest.$ac_objext
48799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48800 (eval $ac_compile) 2>conftest.er1
48802 grep -v '^ *+' conftest.er1 >conftest.err
48804 cat conftest.err >&5
48805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48806 (exit $ac_status); } &&
48807 { ac_try='test -z "$ac_c_werror_flag"
48808 || test ! -s conftest.err'
48809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48810 (eval $ac_try) 2>&5
48812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48813 (exit $ac_status); }; } &&
48814 { ac_try='test -s conftest.$ac_objext'
48815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48816 (eval $ac_try) 2>&5
48818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48819 (exit $ac_status); }; }; then
48820 ac_cv_c_bigendian=yes
48822 echo "$as_me: failed program was:" >&5
48823 sed 's/^/| /' conftest.$ac_ext >&5
48825 ac_cv_c_bigendian=no
48827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48829 echo "$as_me: failed program was:" >&5
48830 sed 's/^/| /' conftest.$ac_ext >&5
48832 # It does not; compile a test program.
48833 if test "$cross_compiling" = yes; then
48834 # try to guess the endianness by grepping values into an object file
48835 ac_cv_c_bigendian=unknown
48836 cat >conftest.$ac_ext <<_ACEOF
48839 cat confdefs.h >>conftest.$ac_ext
48840 cat >>conftest.$ac_ext <<_ACEOF
48841 /* end confdefs.h. */
48842 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48843 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48844 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48845 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48846 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48847 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48851 _ascii (); _ebcdic ();
48856 rm -f conftest.$ac_objext
48857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48858 (eval $ac_compile) 2>conftest.er1
48860 grep -v '^ *+' conftest.er1 >conftest.err
48862 cat conftest.err >&5
48863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48864 (exit $ac_status); } &&
48865 { ac_try='test -z "$ac_c_werror_flag"
48866 || test ! -s conftest.err'
48867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48868 (eval $ac_try) 2>&5
48870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48871 (exit $ac_status); }; } &&
48872 { ac_try='test -s conftest.$ac_objext'
48873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48874 (eval $ac_try) 2>&5
48876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48877 (exit $ac_status); }; }; then
48878 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48879 ac_cv_c_bigendian=yes
48881 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48882 if test "$ac_cv_c_bigendian" = unknown; then
48883 ac_cv_c_bigendian=no
48885 # finding both strings is unlikely to happen, but who knows?
48886 ac_cv_c_bigendian=unknown
48890 echo "$as_me: failed program was:" >&5
48891 sed 's/^/| /' conftest.$ac_ext >&5
48894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48896 cat >conftest.$ac_ext <<_ACEOF
48899 cat confdefs.h >>conftest.$ac_ext
48900 cat >>conftest.$ac_ext <<_ACEOF
48901 /* end confdefs.h. */
48905 /* Are we little or big endian? From Harbison&Steele. */
48909 char c[sizeof (long)];
48912 exit (u.c[sizeof (long) - 1] == 1);
48915 rm -f conftest$ac_exeext
48916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48917 (eval $ac_link) 2>&5
48919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48922 (eval $ac_try) 2>&5
48924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48925 (exit $ac_status); }; }; then
48926 ac_cv_c_bigendian=no
48928 echo "$as_me: program exited with status $ac_status" >&5
48929 echo "$as_me: failed program was:" >&5
48930 sed 's/^/| /' conftest.$ac_ext >&5
48932 ( exit $ac_status )
48933 ac_cv_c_bigendian=yes
48935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48940 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48941 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48942 case $ac_cv_c_bigendian in
48945 cat >>confdefs.h <<\_ACEOF
48946 #define WORDS_BIGENDIAN 1
48952 { { echo "$as_me:$LINENO: error: unknown endianness
48953 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48954 echo "$as_me: error: unknown endianness
48955 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48956 { (exit 1); exit 1; }; } ;;
48961 echo "$as_me:$LINENO: checking for short" >&5
48962 echo $ECHO_N "checking for short... $ECHO_C" >&6
48963 if test "${ac_cv_type_short+set}" = set; then
48964 echo $ECHO_N "(cached) $ECHO_C" >&6
48966 cat >conftest.$ac_ext <<_ACEOF
48969 cat confdefs.h >>conftest.$ac_ext
48970 cat >>conftest.$ac_ext <<_ACEOF
48971 /* end confdefs.h. */
48972 $ac_includes_default
48978 if (sizeof (short))
48984 rm -f conftest.$ac_objext
48985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48986 (eval $ac_compile) 2>conftest.er1
48988 grep -v '^ *+' conftest.er1 >conftest.err
48990 cat conftest.err >&5
48991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48992 (exit $ac_status); } &&
48993 { ac_try='test -z "$ac_c_werror_flag"
48994 || test ! -s conftest.err'
48995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48996 (eval $ac_try) 2>&5
48998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48999 (exit $ac_status); }; } &&
49000 { ac_try='test -s conftest.$ac_objext'
49001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49002 (eval $ac_try) 2>&5
49004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49005 (exit $ac_status); }; }; then
49006 ac_cv_type_short=yes
49008 echo "$as_me: failed program was:" >&5
49009 sed 's/^/| /' conftest.$ac_ext >&5
49011 ac_cv_type_short=no
49013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49015 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
49016 echo "${ECHO_T}$ac_cv_type_short" >&6
49018 echo "$as_me:$LINENO: checking size of short" >&5
49019 echo $ECHO_N "checking size of short... $ECHO_C" >&6
49020 if test "${ac_cv_sizeof_short+set}" = set; then
49021 echo $ECHO_N "(cached) $ECHO_C" >&6
49023 if test "$ac_cv_type_short" = yes; then
49024 # The cast to unsigned long works around a bug in the HP C Compiler
49025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49027 # This bug is HP SR number 8606223364.
49028 if test "$cross_compiling" = yes; then
49029 # Depending upon the size, compute the lo and hi bounds.
49030 cat >conftest.$ac_ext <<_ACEOF
49033 cat confdefs.h >>conftest.$ac_ext
49034 cat >>conftest.$ac_ext <<_ACEOF
49035 /* end confdefs.h. */
49036 $ac_includes_default
49040 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
49047 rm -f conftest.$ac_objext
49048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49049 (eval $ac_compile) 2>conftest.er1
49051 grep -v '^ *+' conftest.er1 >conftest.err
49053 cat conftest.err >&5
49054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49055 (exit $ac_status); } &&
49056 { ac_try='test -z "$ac_c_werror_flag"
49057 || test ! -s conftest.err'
49058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49059 (eval $ac_try) 2>&5
49061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49062 (exit $ac_status); }; } &&
49063 { ac_try='test -s conftest.$ac_objext'
49064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49065 (eval $ac_try) 2>&5
49067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49068 (exit $ac_status); }; }; then
49071 cat >conftest.$ac_ext <<_ACEOF
49074 cat confdefs.h >>conftest.$ac_ext
49075 cat >>conftest.$ac_ext <<_ACEOF
49076 /* end confdefs.h. */
49077 $ac_includes_default
49081 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49088 rm -f conftest.$ac_objext
49089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49090 (eval $ac_compile) 2>conftest.er1
49092 grep -v '^ *+' conftest.er1 >conftest.err
49094 cat conftest.err >&5
49095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49096 (exit $ac_status); } &&
49097 { ac_try='test -z "$ac_c_werror_flag"
49098 || test ! -s conftest.err'
49099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49100 (eval $ac_try) 2>&5
49102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49103 (exit $ac_status); }; } &&
49104 { ac_try='test -s conftest.$ac_objext'
49105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49106 (eval $ac_try) 2>&5
49108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49109 (exit $ac_status); }; }; then
49110 ac_hi=$ac_mid; break
49112 echo "$as_me: failed program was:" >&5
49113 sed 's/^/| /' conftest.$ac_ext >&5
49115 ac_lo=`expr $ac_mid + 1`
49116 if test $ac_lo -le $ac_mid; then
49120 ac_mid=`expr 2 '*' $ac_mid + 1`
49122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49125 echo "$as_me: failed program was:" >&5
49126 sed 's/^/| /' conftest.$ac_ext >&5
49128 cat >conftest.$ac_ext <<_ACEOF
49131 cat confdefs.h >>conftest.$ac_ext
49132 cat >>conftest.$ac_ext <<_ACEOF
49133 /* end confdefs.h. */
49134 $ac_includes_default
49138 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
49145 rm -f conftest.$ac_objext
49146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49147 (eval $ac_compile) 2>conftest.er1
49149 grep -v '^ *+' conftest.er1 >conftest.err
49151 cat conftest.err >&5
49152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49153 (exit $ac_status); } &&
49154 { ac_try='test -z "$ac_c_werror_flag"
49155 || test ! -s conftest.err'
49156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49157 (eval $ac_try) 2>&5
49159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49160 (exit $ac_status); }; } &&
49161 { ac_try='test -s conftest.$ac_objext'
49162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49163 (eval $ac_try) 2>&5
49165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49166 (exit $ac_status); }; }; then
49169 cat >conftest.$ac_ext <<_ACEOF
49172 cat confdefs.h >>conftest.$ac_ext
49173 cat >>conftest.$ac_ext <<_ACEOF
49174 /* end confdefs.h. */
49175 $ac_includes_default
49179 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49186 rm -f conftest.$ac_objext
49187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49188 (eval $ac_compile) 2>conftest.er1
49190 grep -v '^ *+' conftest.er1 >conftest.err
49192 cat conftest.err >&5
49193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49194 (exit $ac_status); } &&
49195 { ac_try='test -z "$ac_c_werror_flag"
49196 || test ! -s conftest.err'
49197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49198 (eval $ac_try) 2>&5
49200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49201 (exit $ac_status); }; } &&
49202 { ac_try='test -s conftest.$ac_objext'
49203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49204 (eval $ac_try) 2>&5
49206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49207 (exit $ac_status); }; }; then
49208 ac_lo=$ac_mid; break
49210 echo "$as_me: failed program was:" >&5
49211 sed 's/^/| /' conftest.$ac_ext >&5
49213 ac_hi=`expr '(' $ac_mid ')' - 1`
49214 if test $ac_mid -le $ac_hi; then
49218 ac_mid=`expr 2 '*' $ac_mid`
49220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49223 echo "$as_me: failed program was:" >&5
49224 sed 's/^/| /' conftest.$ac_ext >&5
49228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49231 # Binary search between lo and hi bounds.
49232 while test "x$ac_lo" != "x$ac_hi"; do
49233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49234 cat >conftest.$ac_ext <<_ACEOF
49237 cat confdefs.h >>conftest.$ac_ext
49238 cat >>conftest.$ac_ext <<_ACEOF
49239 /* end confdefs.h. */
49240 $ac_includes_default
49244 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49251 rm -f conftest.$ac_objext
49252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49253 (eval $ac_compile) 2>conftest.er1
49255 grep -v '^ *+' conftest.er1 >conftest.err
49257 cat conftest.err >&5
49258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49259 (exit $ac_status); } &&
49260 { ac_try='test -z "$ac_c_werror_flag"
49261 || test ! -s conftest.err'
49262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49263 (eval $ac_try) 2>&5
49265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49266 (exit $ac_status); }; } &&
49267 { ac_try='test -s conftest.$ac_objext'
49268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49269 (eval $ac_try) 2>&5
49271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49272 (exit $ac_status); }; }; then
49275 echo "$as_me: failed program was:" >&5
49276 sed 's/^/| /' conftest.$ac_ext >&5
49278 ac_lo=`expr '(' $ac_mid ')' + 1`
49280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49283 ?*) ac_cv_sizeof_short=$ac_lo;;
49284 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49285 See \`config.log' for more details." >&5
49286 echo "$as_me: error: cannot compute sizeof (short), 77
49287 See \`config.log' for more details." >&2;}
49288 { (exit 1); exit 1; }; } ;;
49291 if test "$cross_compiling" = yes; then
49292 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49293 See \`config.log' for more details." >&5
49294 echo "$as_me: error: cannot run test program while cross compiling
49295 See \`config.log' for more details." >&2;}
49296 { (exit 1); exit 1; }; }
49298 cat >conftest.$ac_ext <<_ACEOF
49301 cat confdefs.h >>conftest.$ac_ext
49302 cat >>conftest.$ac_ext <<_ACEOF
49303 /* end confdefs.h. */
49304 $ac_includes_default
49305 long longval () { return (long) (sizeof (short)); }
49306 unsigned long ulongval () { return (long) (sizeof (short)); }
49308 #include <stdlib.h>
49313 FILE *f = fopen ("conftest.val", "w");
49316 if (((long) (sizeof (short))) < 0)
49318 long i = longval ();
49319 if (i != ((long) (sizeof (short))))
49321 fprintf (f, "%ld\n", i);
49325 unsigned long i = ulongval ();
49326 if (i != ((long) (sizeof (short))))
49328 fprintf (f, "%lu\n", i);
49330 exit (ferror (f) || fclose (f) != 0);
49336 rm -f conftest$ac_exeext
49337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49338 (eval $ac_link) 2>&5
49340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49343 (eval $ac_try) 2>&5
49345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49346 (exit $ac_status); }; }; then
49347 ac_cv_sizeof_short=`cat conftest.val`
49349 echo "$as_me: program exited with status $ac_status" >&5
49350 echo "$as_me: failed program was:" >&5
49351 sed 's/^/| /' conftest.$ac_ext >&5
49353 ( exit $ac_status )
49354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49355 See \`config.log' for more details." >&5
49356 echo "$as_me: error: cannot compute sizeof (short), 77
49357 See \`config.log' for more details." >&2;}
49358 { (exit 1); exit 1; }; }
49360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49365 ac_cv_sizeof_short=0
49368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49369 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49370 cat >>confdefs.h <<_ACEOF
49371 #define SIZEOF_SHORT $ac_cv_sizeof_short
49375 echo "$as_me:$LINENO: checking for int" >&5
49376 echo $ECHO_N "checking for int... $ECHO_C" >&6
49377 if test "${ac_cv_type_int+set}" = set; then
49378 echo $ECHO_N "(cached) $ECHO_C" >&6
49380 cat >conftest.$ac_ext <<_ACEOF
49383 cat confdefs.h >>conftest.$ac_ext
49384 cat >>conftest.$ac_ext <<_ACEOF
49385 /* end confdefs.h. */
49386 $ac_includes_default
49398 rm -f conftest.$ac_objext
49399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49400 (eval $ac_compile) 2>conftest.er1
49402 grep -v '^ *+' conftest.er1 >conftest.err
49404 cat conftest.err >&5
49405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49406 (exit $ac_status); } &&
49407 { ac_try='test -z "$ac_c_werror_flag"
49408 || test ! -s conftest.err'
49409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49410 (eval $ac_try) 2>&5
49412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49413 (exit $ac_status); }; } &&
49414 { ac_try='test -s conftest.$ac_objext'
49415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49416 (eval $ac_try) 2>&5
49418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49419 (exit $ac_status); }; }; then
49422 echo "$as_me: failed program was:" >&5
49423 sed 's/^/| /' conftest.$ac_ext >&5
49427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49429 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49430 echo "${ECHO_T}$ac_cv_type_int" >&6
49432 echo "$as_me:$LINENO: checking size of int" >&5
49433 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49434 if test "${ac_cv_sizeof_int+set}" = set; then
49435 echo $ECHO_N "(cached) $ECHO_C" >&6
49437 if test "$ac_cv_type_int" = yes; then
49438 # The cast to unsigned long works around a bug in the HP C Compiler
49439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49441 # This bug is HP SR number 8606223364.
49442 if test "$cross_compiling" = yes; then
49443 # Depending upon the size, compute the lo and hi bounds.
49444 cat >conftest.$ac_ext <<_ACEOF
49447 cat confdefs.h >>conftest.$ac_ext
49448 cat >>conftest.$ac_ext <<_ACEOF
49449 /* end confdefs.h. */
49450 $ac_includes_default
49454 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49461 rm -f conftest.$ac_objext
49462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49463 (eval $ac_compile) 2>conftest.er1
49465 grep -v '^ *+' conftest.er1 >conftest.err
49467 cat conftest.err >&5
49468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49469 (exit $ac_status); } &&
49470 { ac_try='test -z "$ac_c_werror_flag"
49471 || test ! -s conftest.err'
49472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49473 (eval $ac_try) 2>&5
49475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49476 (exit $ac_status); }; } &&
49477 { ac_try='test -s conftest.$ac_objext'
49478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49479 (eval $ac_try) 2>&5
49481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49482 (exit $ac_status); }; }; then
49485 cat >conftest.$ac_ext <<_ACEOF
49488 cat confdefs.h >>conftest.$ac_ext
49489 cat >>conftest.$ac_ext <<_ACEOF
49490 /* end confdefs.h. */
49491 $ac_includes_default
49495 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49502 rm -f conftest.$ac_objext
49503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49504 (eval $ac_compile) 2>conftest.er1
49506 grep -v '^ *+' conftest.er1 >conftest.err
49508 cat conftest.err >&5
49509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49510 (exit $ac_status); } &&
49511 { ac_try='test -z "$ac_c_werror_flag"
49512 || test ! -s conftest.err'
49513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49514 (eval $ac_try) 2>&5
49516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49517 (exit $ac_status); }; } &&
49518 { ac_try='test -s conftest.$ac_objext'
49519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49520 (eval $ac_try) 2>&5
49522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49523 (exit $ac_status); }; }; then
49524 ac_hi=$ac_mid; break
49526 echo "$as_me: failed program was:" >&5
49527 sed 's/^/| /' conftest.$ac_ext >&5
49529 ac_lo=`expr $ac_mid + 1`
49530 if test $ac_lo -le $ac_mid; then
49534 ac_mid=`expr 2 '*' $ac_mid + 1`
49536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49539 echo "$as_me: failed program was:" >&5
49540 sed 's/^/| /' conftest.$ac_ext >&5
49542 cat >conftest.$ac_ext <<_ACEOF
49545 cat confdefs.h >>conftest.$ac_ext
49546 cat >>conftest.$ac_ext <<_ACEOF
49547 /* end confdefs.h. */
49548 $ac_includes_default
49552 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49559 rm -f conftest.$ac_objext
49560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49561 (eval $ac_compile) 2>conftest.er1
49563 grep -v '^ *+' conftest.er1 >conftest.err
49565 cat conftest.err >&5
49566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49567 (exit $ac_status); } &&
49568 { ac_try='test -z "$ac_c_werror_flag"
49569 || test ! -s conftest.err'
49570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49571 (eval $ac_try) 2>&5
49573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49574 (exit $ac_status); }; } &&
49575 { ac_try='test -s conftest.$ac_objext'
49576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49577 (eval $ac_try) 2>&5
49579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49580 (exit $ac_status); }; }; then
49583 cat >conftest.$ac_ext <<_ACEOF
49586 cat confdefs.h >>conftest.$ac_ext
49587 cat >>conftest.$ac_ext <<_ACEOF
49588 /* end confdefs.h. */
49589 $ac_includes_default
49593 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49600 rm -f conftest.$ac_objext
49601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49602 (eval $ac_compile) 2>conftest.er1
49604 grep -v '^ *+' conftest.er1 >conftest.err
49606 cat conftest.err >&5
49607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49608 (exit $ac_status); } &&
49609 { ac_try='test -z "$ac_c_werror_flag"
49610 || test ! -s conftest.err'
49611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49612 (eval $ac_try) 2>&5
49614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49615 (exit $ac_status); }; } &&
49616 { ac_try='test -s conftest.$ac_objext'
49617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49618 (eval $ac_try) 2>&5
49620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49621 (exit $ac_status); }; }; then
49622 ac_lo=$ac_mid; break
49624 echo "$as_me: failed program was:" >&5
49625 sed 's/^/| /' conftest.$ac_ext >&5
49627 ac_hi=`expr '(' $ac_mid ')' - 1`
49628 if test $ac_mid -le $ac_hi; then
49632 ac_mid=`expr 2 '*' $ac_mid`
49634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49637 echo "$as_me: failed program was:" >&5
49638 sed 's/^/| /' conftest.$ac_ext >&5
49642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49645 # Binary search between lo and hi bounds.
49646 while test "x$ac_lo" != "x$ac_hi"; do
49647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49648 cat >conftest.$ac_ext <<_ACEOF
49651 cat confdefs.h >>conftest.$ac_ext
49652 cat >>conftest.$ac_ext <<_ACEOF
49653 /* end confdefs.h. */
49654 $ac_includes_default
49658 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49665 rm -f conftest.$ac_objext
49666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49667 (eval $ac_compile) 2>conftest.er1
49669 grep -v '^ *+' conftest.er1 >conftest.err
49671 cat conftest.err >&5
49672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49673 (exit $ac_status); } &&
49674 { ac_try='test -z "$ac_c_werror_flag"
49675 || test ! -s conftest.err'
49676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49677 (eval $ac_try) 2>&5
49679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49680 (exit $ac_status); }; } &&
49681 { ac_try='test -s conftest.$ac_objext'
49682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49683 (eval $ac_try) 2>&5
49685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49686 (exit $ac_status); }; }; then
49689 echo "$as_me: failed program was:" >&5
49690 sed 's/^/| /' conftest.$ac_ext >&5
49692 ac_lo=`expr '(' $ac_mid ')' + 1`
49694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49697 ?*) ac_cv_sizeof_int=$ac_lo;;
49698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49699 See \`config.log' for more details." >&5
49700 echo "$as_me: error: cannot compute sizeof (int), 77
49701 See \`config.log' for more details." >&2;}
49702 { (exit 1); exit 1; }; } ;;
49705 if test "$cross_compiling" = yes; then
49706 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49707 See \`config.log' for more details." >&5
49708 echo "$as_me: error: cannot run test program while cross compiling
49709 See \`config.log' for more details." >&2;}
49710 { (exit 1); exit 1; }; }
49712 cat >conftest.$ac_ext <<_ACEOF
49715 cat confdefs.h >>conftest.$ac_ext
49716 cat >>conftest.$ac_ext <<_ACEOF
49717 /* end confdefs.h. */
49718 $ac_includes_default
49719 long longval () { return (long) (sizeof (int)); }
49720 unsigned long ulongval () { return (long) (sizeof (int)); }
49722 #include <stdlib.h>
49727 FILE *f = fopen ("conftest.val", "w");
49730 if (((long) (sizeof (int))) < 0)
49732 long i = longval ();
49733 if (i != ((long) (sizeof (int))))
49735 fprintf (f, "%ld\n", i);
49739 unsigned long i = ulongval ();
49740 if (i != ((long) (sizeof (int))))
49742 fprintf (f, "%lu\n", i);
49744 exit (ferror (f) || fclose (f) != 0);
49750 rm -f conftest$ac_exeext
49751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49752 (eval $ac_link) 2>&5
49754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49757 (eval $ac_try) 2>&5
49759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49760 (exit $ac_status); }; }; then
49761 ac_cv_sizeof_int=`cat conftest.val`
49763 echo "$as_me: program exited with status $ac_status" >&5
49764 echo "$as_me: failed program was:" >&5
49765 sed 's/^/| /' conftest.$ac_ext >&5
49767 ( exit $ac_status )
49768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49769 See \`config.log' for more details." >&5
49770 echo "$as_me: error: cannot compute sizeof (int), 77
49771 See \`config.log' for more details." >&2;}
49772 { (exit 1); exit 1; }; }
49774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49783 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49784 cat >>confdefs.h <<_ACEOF
49785 #define SIZEOF_INT $ac_cv_sizeof_int
49789 echo "$as_me:$LINENO: checking for long" >&5
49790 echo $ECHO_N "checking for long... $ECHO_C" >&6
49791 if test "${ac_cv_type_long+set}" = set; then
49792 echo $ECHO_N "(cached) $ECHO_C" >&6
49794 cat >conftest.$ac_ext <<_ACEOF
49797 cat confdefs.h >>conftest.$ac_ext
49798 cat >>conftest.$ac_ext <<_ACEOF
49799 /* end confdefs.h. */
49800 $ac_includes_default
49812 rm -f conftest.$ac_objext
49813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49814 (eval $ac_compile) 2>conftest.er1
49816 grep -v '^ *+' conftest.er1 >conftest.err
49818 cat conftest.err >&5
49819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49820 (exit $ac_status); } &&
49821 { ac_try='test -z "$ac_c_werror_flag"
49822 || test ! -s conftest.err'
49823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49824 (eval $ac_try) 2>&5
49826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49827 (exit $ac_status); }; } &&
49828 { ac_try='test -s conftest.$ac_objext'
49829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49830 (eval $ac_try) 2>&5
49832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49833 (exit $ac_status); }; }; then
49834 ac_cv_type_long=yes
49836 echo "$as_me: failed program was:" >&5
49837 sed 's/^/| /' conftest.$ac_ext >&5
49841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49843 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49844 echo "${ECHO_T}$ac_cv_type_long" >&6
49846 echo "$as_me:$LINENO: checking size of long" >&5
49847 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49848 if test "${ac_cv_sizeof_long+set}" = set; then
49849 echo $ECHO_N "(cached) $ECHO_C" >&6
49851 if test "$ac_cv_type_long" = yes; then
49852 # The cast to unsigned long works around a bug in the HP C Compiler
49853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49855 # This bug is HP SR number 8606223364.
49856 if test "$cross_compiling" = yes; then
49857 # Depending upon the size, compute the lo and hi bounds.
49858 cat >conftest.$ac_ext <<_ACEOF
49861 cat confdefs.h >>conftest.$ac_ext
49862 cat >>conftest.$ac_ext <<_ACEOF
49863 /* end confdefs.h. */
49864 $ac_includes_default
49868 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49875 rm -f conftest.$ac_objext
49876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49877 (eval $ac_compile) 2>conftest.er1
49879 grep -v '^ *+' conftest.er1 >conftest.err
49881 cat conftest.err >&5
49882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49883 (exit $ac_status); } &&
49884 { ac_try='test -z "$ac_c_werror_flag"
49885 || test ! -s conftest.err'
49886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49887 (eval $ac_try) 2>&5
49889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49890 (exit $ac_status); }; } &&
49891 { ac_try='test -s conftest.$ac_objext'
49892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49893 (eval $ac_try) 2>&5
49895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49896 (exit $ac_status); }; }; then
49899 cat >conftest.$ac_ext <<_ACEOF
49902 cat confdefs.h >>conftest.$ac_ext
49903 cat >>conftest.$ac_ext <<_ACEOF
49904 /* end confdefs.h. */
49905 $ac_includes_default
49909 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49916 rm -f conftest.$ac_objext
49917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49918 (eval $ac_compile) 2>conftest.er1
49920 grep -v '^ *+' conftest.er1 >conftest.err
49922 cat conftest.err >&5
49923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49924 (exit $ac_status); } &&
49925 { ac_try='test -z "$ac_c_werror_flag"
49926 || test ! -s conftest.err'
49927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49928 (eval $ac_try) 2>&5
49930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49931 (exit $ac_status); }; } &&
49932 { ac_try='test -s conftest.$ac_objext'
49933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49934 (eval $ac_try) 2>&5
49936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49937 (exit $ac_status); }; }; then
49938 ac_hi=$ac_mid; break
49940 echo "$as_me: failed program was:" >&5
49941 sed 's/^/| /' conftest.$ac_ext >&5
49943 ac_lo=`expr $ac_mid + 1`
49944 if test $ac_lo -le $ac_mid; then
49948 ac_mid=`expr 2 '*' $ac_mid + 1`
49950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49953 echo "$as_me: failed program was:" >&5
49954 sed 's/^/| /' conftest.$ac_ext >&5
49956 cat >conftest.$ac_ext <<_ACEOF
49959 cat confdefs.h >>conftest.$ac_ext
49960 cat >>conftest.$ac_ext <<_ACEOF
49961 /* end confdefs.h. */
49962 $ac_includes_default
49966 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49973 rm -f conftest.$ac_objext
49974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49975 (eval $ac_compile) 2>conftest.er1
49977 grep -v '^ *+' conftest.er1 >conftest.err
49979 cat conftest.err >&5
49980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49981 (exit $ac_status); } &&
49982 { ac_try='test -z "$ac_c_werror_flag"
49983 || test ! -s conftest.err'
49984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49985 (eval $ac_try) 2>&5
49987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49988 (exit $ac_status); }; } &&
49989 { ac_try='test -s conftest.$ac_objext'
49990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49991 (eval $ac_try) 2>&5
49993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49994 (exit $ac_status); }; }; then
49997 cat >conftest.$ac_ext <<_ACEOF
50000 cat confdefs.h >>conftest.$ac_ext
50001 cat >>conftest.$ac_ext <<_ACEOF
50002 /* end confdefs.h. */
50003 $ac_includes_default
50007 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
50014 rm -f conftest.$ac_objext
50015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50016 (eval $ac_compile) 2>conftest.er1
50018 grep -v '^ *+' conftest.er1 >conftest.err
50020 cat conftest.err >&5
50021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50022 (exit $ac_status); } &&
50023 { ac_try='test -z "$ac_c_werror_flag"
50024 || test ! -s conftest.err'
50025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50026 (eval $ac_try) 2>&5
50028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50029 (exit $ac_status); }; } &&
50030 { ac_try='test -s conftest.$ac_objext'
50031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50032 (eval $ac_try) 2>&5
50034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50035 (exit $ac_status); }; }; then
50036 ac_lo=$ac_mid; break
50038 echo "$as_me: failed program was:" >&5
50039 sed 's/^/| /' conftest.$ac_ext >&5
50041 ac_hi=`expr '(' $ac_mid ')' - 1`
50042 if test $ac_mid -le $ac_hi; then
50046 ac_mid=`expr 2 '*' $ac_mid`
50048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50051 echo "$as_me: failed program was:" >&5
50052 sed 's/^/| /' conftest.$ac_ext >&5
50056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50059 # Binary search between lo and hi bounds.
50060 while test "x$ac_lo" != "x$ac_hi"; do
50061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50062 cat >conftest.$ac_ext <<_ACEOF
50065 cat confdefs.h >>conftest.$ac_ext
50066 cat >>conftest.$ac_ext <<_ACEOF
50067 /* end confdefs.h. */
50068 $ac_includes_default
50072 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
50079 rm -f conftest.$ac_objext
50080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50081 (eval $ac_compile) 2>conftest.er1
50083 grep -v '^ *+' conftest.er1 >conftest.err
50085 cat conftest.err >&5
50086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50087 (exit $ac_status); } &&
50088 { ac_try='test -z "$ac_c_werror_flag"
50089 || test ! -s conftest.err'
50090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50091 (eval $ac_try) 2>&5
50093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50094 (exit $ac_status); }; } &&
50095 { ac_try='test -s conftest.$ac_objext'
50096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50097 (eval $ac_try) 2>&5
50099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50100 (exit $ac_status); }; }; then
50103 echo "$as_me: failed program was:" >&5
50104 sed 's/^/| /' conftest.$ac_ext >&5
50106 ac_lo=`expr '(' $ac_mid ')' + 1`
50108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50111 ?*) ac_cv_sizeof_long=$ac_lo;;
50112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50113 See \`config.log' for more details." >&5
50114 echo "$as_me: error: cannot compute sizeof (long), 77
50115 See \`config.log' for more details." >&2;}
50116 { (exit 1); exit 1; }; } ;;
50119 if test "$cross_compiling" = yes; then
50120 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50121 See \`config.log' for more details." >&5
50122 echo "$as_me: error: cannot run test program while cross compiling
50123 See \`config.log' for more details." >&2;}
50124 { (exit 1); exit 1; }; }
50126 cat >conftest.$ac_ext <<_ACEOF
50129 cat confdefs.h >>conftest.$ac_ext
50130 cat >>conftest.$ac_ext <<_ACEOF
50131 /* end confdefs.h. */
50132 $ac_includes_default
50133 long longval () { return (long) (sizeof (long)); }
50134 unsigned long ulongval () { return (long) (sizeof (long)); }
50136 #include <stdlib.h>
50141 FILE *f = fopen ("conftest.val", "w");
50144 if (((long) (sizeof (long))) < 0)
50146 long i = longval ();
50147 if (i != ((long) (sizeof (long))))
50149 fprintf (f, "%ld\n", i);
50153 unsigned long i = ulongval ();
50154 if (i != ((long) (sizeof (long))))
50156 fprintf (f, "%lu\n", i);
50158 exit (ferror (f) || fclose (f) != 0);
50164 rm -f conftest$ac_exeext
50165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50166 (eval $ac_link) 2>&5
50168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50171 (eval $ac_try) 2>&5
50173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50174 (exit $ac_status); }; }; then
50175 ac_cv_sizeof_long=`cat conftest.val`
50177 echo "$as_me: program exited with status $ac_status" >&5
50178 echo "$as_me: failed program was:" >&5
50179 sed 's/^/| /' conftest.$ac_ext >&5
50181 ( exit $ac_status )
50182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50183 See \`config.log' for more details." >&5
50184 echo "$as_me: error: cannot compute sizeof (long), 77
50185 See \`config.log' for more details." >&2;}
50186 { (exit 1); exit 1; }; }
50188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50193 ac_cv_sizeof_long=0
50196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50197 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50198 cat >>confdefs.h <<_ACEOF
50199 #define SIZEOF_LONG $ac_cv_sizeof_long
50203 echo "$as_me:$LINENO: checking for wchar_t" >&5
50204 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50205 if test "${ac_cv_type_wchar_t+set}" = set; then
50206 echo $ECHO_N "(cached) $ECHO_C" >&6
50208 cat >conftest.$ac_ext <<_ACEOF
50211 cat confdefs.h >>conftest.$ac_ext
50212 cat >>conftest.$ac_ext <<_ACEOF
50213 /* end confdefs.h. */
50214 $ac_includes_default
50220 if (sizeof (wchar_t))
50226 rm -f conftest.$ac_objext
50227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50228 (eval $ac_compile) 2>conftest.er1
50230 grep -v '^ *+' conftest.er1 >conftest.err
50232 cat conftest.err >&5
50233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50234 (exit $ac_status); } &&
50235 { ac_try='test -z "$ac_c_werror_flag"
50236 || test ! -s conftest.err'
50237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50238 (eval $ac_try) 2>&5
50240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50241 (exit $ac_status); }; } &&
50242 { ac_try='test -s conftest.$ac_objext'
50243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50244 (eval $ac_try) 2>&5
50246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50247 (exit $ac_status); }; }; then
50248 ac_cv_type_wchar_t=yes
50250 echo "$as_me: failed program was:" >&5
50251 sed 's/^/| /' conftest.$ac_ext >&5
50253 ac_cv_type_wchar_t=no
50255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50257 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50258 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50260 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50261 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50262 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50263 echo $ECHO_N "(cached) $ECHO_C" >&6
50265 if test "$ac_cv_type_wchar_t" = yes; then
50266 # The cast to unsigned long works around a bug in the HP C Compiler
50267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50269 # This bug is HP SR number 8606223364.
50270 if test "$cross_compiling" = yes; then
50271 # Depending upon the size, compute the lo and hi bounds.
50272 cat >conftest.$ac_ext <<_ACEOF
50275 cat confdefs.h >>conftest.$ac_ext
50276 cat >>conftest.$ac_ext <<_ACEOF
50277 /* end confdefs.h. */
50278 $ac_includes_default
50282 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50289 rm -f conftest.$ac_objext
50290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50291 (eval $ac_compile) 2>conftest.er1
50293 grep -v '^ *+' conftest.er1 >conftest.err
50295 cat conftest.err >&5
50296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50297 (exit $ac_status); } &&
50298 { ac_try='test -z "$ac_c_werror_flag"
50299 || test ! -s conftest.err'
50300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50301 (eval $ac_try) 2>&5
50303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50304 (exit $ac_status); }; } &&
50305 { ac_try='test -s conftest.$ac_objext'
50306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50307 (eval $ac_try) 2>&5
50309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50310 (exit $ac_status); }; }; then
50313 cat >conftest.$ac_ext <<_ACEOF
50316 cat confdefs.h >>conftest.$ac_ext
50317 cat >>conftest.$ac_ext <<_ACEOF
50318 /* end confdefs.h. */
50319 $ac_includes_default
50323 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50330 rm -f conftest.$ac_objext
50331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50332 (eval $ac_compile) 2>conftest.er1
50334 grep -v '^ *+' conftest.er1 >conftest.err
50336 cat conftest.err >&5
50337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50338 (exit $ac_status); } &&
50339 { ac_try='test -z "$ac_c_werror_flag"
50340 || test ! -s conftest.err'
50341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50342 (eval $ac_try) 2>&5
50344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50345 (exit $ac_status); }; } &&
50346 { ac_try='test -s conftest.$ac_objext'
50347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50348 (eval $ac_try) 2>&5
50350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50351 (exit $ac_status); }; }; then
50352 ac_hi=$ac_mid; break
50354 echo "$as_me: failed program was:" >&5
50355 sed 's/^/| /' conftest.$ac_ext >&5
50357 ac_lo=`expr $ac_mid + 1`
50358 if test $ac_lo -le $ac_mid; then
50362 ac_mid=`expr 2 '*' $ac_mid + 1`
50364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50367 echo "$as_me: failed program was:" >&5
50368 sed 's/^/| /' conftest.$ac_ext >&5
50370 cat >conftest.$ac_ext <<_ACEOF
50373 cat confdefs.h >>conftest.$ac_ext
50374 cat >>conftest.$ac_ext <<_ACEOF
50375 /* end confdefs.h. */
50376 $ac_includes_default
50380 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50387 rm -f conftest.$ac_objext
50388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50389 (eval $ac_compile) 2>conftest.er1
50391 grep -v '^ *+' conftest.er1 >conftest.err
50393 cat conftest.err >&5
50394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50395 (exit $ac_status); } &&
50396 { ac_try='test -z "$ac_c_werror_flag"
50397 || test ! -s conftest.err'
50398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50399 (eval $ac_try) 2>&5
50401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50402 (exit $ac_status); }; } &&
50403 { ac_try='test -s conftest.$ac_objext'
50404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50405 (eval $ac_try) 2>&5
50407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50408 (exit $ac_status); }; }; then
50411 cat >conftest.$ac_ext <<_ACEOF
50414 cat confdefs.h >>conftest.$ac_ext
50415 cat >>conftest.$ac_ext <<_ACEOF
50416 /* end confdefs.h. */
50417 $ac_includes_default
50421 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50428 rm -f conftest.$ac_objext
50429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50430 (eval $ac_compile) 2>conftest.er1
50432 grep -v '^ *+' conftest.er1 >conftest.err
50434 cat conftest.err >&5
50435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50436 (exit $ac_status); } &&
50437 { ac_try='test -z "$ac_c_werror_flag"
50438 || test ! -s conftest.err'
50439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50440 (eval $ac_try) 2>&5
50442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50443 (exit $ac_status); }; } &&
50444 { ac_try='test -s conftest.$ac_objext'
50445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50446 (eval $ac_try) 2>&5
50448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50449 (exit $ac_status); }; }; then
50450 ac_lo=$ac_mid; break
50452 echo "$as_me: failed program was:" >&5
50453 sed 's/^/| /' conftest.$ac_ext >&5
50455 ac_hi=`expr '(' $ac_mid ')' - 1`
50456 if test $ac_mid -le $ac_hi; then
50460 ac_mid=`expr 2 '*' $ac_mid`
50462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50465 echo "$as_me: failed program was:" >&5
50466 sed 's/^/| /' conftest.$ac_ext >&5
50470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50473 # Binary search between lo and hi bounds.
50474 while test "x$ac_lo" != "x$ac_hi"; do
50475 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50476 cat >conftest.$ac_ext <<_ACEOF
50479 cat confdefs.h >>conftest.$ac_ext
50480 cat >>conftest.$ac_ext <<_ACEOF
50481 /* end confdefs.h. */
50482 $ac_includes_default
50486 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50493 rm -f conftest.$ac_objext
50494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50495 (eval $ac_compile) 2>conftest.er1
50497 grep -v '^ *+' conftest.er1 >conftest.err
50499 cat conftest.err >&5
50500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50501 (exit $ac_status); } &&
50502 { ac_try='test -z "$ac_c_werror_flag"
50503 || test ! -s conftest.err'
50504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50505 (eval $ac_try) 2>&5
50507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50508 (exit $ac_status); }; } &&
50509 { ac_try='test -s conftest.$ac_objext'
50510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50511 (eval $ac_try) 2>&5
50513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50514 (exit $ac_status); }; }; then
50517 echo "$as_me: failed program was:" >&5
50518 sed 's/^/| /' conftest.$ac_ext >&5
50520 ac_lo=`expr '(' $ac_mid ')' + 1`
50522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50525 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50527 See \`config.log' for more details." >&5
50528 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50529 See \`config.log' for more details." >&2;}
50530 { (exit 1); exit 1; }; } ;;
50533 if test "$cross_compiling" = yes; then
50534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50535 See \`config.log' for more details." >&5
50536 echo "$as_me: error: cannot run test program while cross compiling
50537 See \`config.log' for more details." >&2;}
50538 { (exit 1); exit 1; }; }
50540 cat >conftest.$ac_ext <<_ACEOF
50543 cat confdefs.h >>conftest.$ac_ext
50544 cat >>conftest.$ac_ext <<_ACEOF
50545 /* end confdefs.h. */
50546 $ac_includes_default
50547 long longval () { return (long) (sizeof (wchar_t)); }
50548 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50550 #include <stdlib.h>
50555 FILE *f = fopen ("conftest.val", "w");
50558 if (((long) (sizeof (wchar_t))) < 0)
50560 long i = longval ();
50561 if (i != ((long) (sizeof (wchar_t))))
50563 fprintf (f, "%ld\n", i);
50567 unsigned long i = ulongval ();
50568 if (i != ((long) (sizeof (wchar_t))))
50570 fprintf (f, "%lu\n", i);
50572 exit (ferror (f) || fclose (f) != 0);
50578 rm -f conftest$ac_exeext
50579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50580 (eval $ac_link) 2>&5
50582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50585 (eval $ac_try) 2>&5
50587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50588 (exit $ac_status); }; }; then
50589 ac_cv_sizeof_wchar_t=`cat conftest.val`
50591 echo "$as_me: program exited with status $ac_status" >&5
50592 echo "$as_me: failed program was:" >&5
50593 sed 's/^/| /' conftest.$ac_ext >&5
50595 ( exit $ac_status )
50596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50597 See \`config.log' for more details." >&5
50598 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50599 See \`config.log' for more details." >&2;}
50600 { (exit 1); exit 1; }; }
50602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50607 ac_cv_sizeof_wchar_t=0
50610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50611 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50612 cat >>confdefs.h <<_ACEOF
50613 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50618 if test "$ac_cv_sizeof_int" -lt 4 ; then
50619 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50620 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50623 cat >>confdefs.h <<\_ACEOF
50624 #define LBER_INT_T long
50629 cat >>confdefs.h <<\_ACEOF
50630 #define LBER_INT_T int
50636 cat >>confdefs.h <<\_ACEOF
50637 #define LBER_LEN_T long
50641 cat >>confdefs.h <<\_ACEOF
50642 #define LBER_SOCKET_T int
50646 cat >>confdefs.h <<\_ACEOF
50647 #define LBER_TAG_T long
50651 echo "$as_me:$LINENO: checking for working memcmp" >&5
50652 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50653 if test "${ac_cv_func_memcmp_working+set}" = set; then
50654 echo $ECHO_N "(cached) $ECHO_C" >&6
50656 if test "$cross_compiling" = yes; then
50657 ac_cv_func_memcmp_working=no
50659 cat >conftest.$ac_ext <<_ACEOF
50662 cat confdefs.h >>conftest.$ac_ext
50663 cat >>conftest.$ac_ext <<_ACEOF
50664 /* end confdefs.h. */
50665 $ac_includes_default
50670 /* Some versions of memcmp are not 8-bit clean. */
50671 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50672 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50675 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50676 or more and with at least one buffer not starting on a 4-byte boundary.
50677 William Lewis provided this test program. */
50682 for (i = 0; i < 4; i++)
50686 strcpy (a, "--------01111111");
50687 strcpy (b, "--------10000000");
50688 if (memcmp (a, b, 16) >= 0)
50698 rm -f conftest$ac_exeext
50699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50700 (eval $ac_link) 2>&5
50702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50705 (eval $ac_try) 2>&5
50707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50708 (exit $ac_status); }; }; then
50709 ac_cv_func_memcmp_working=yes
50711 echo "$as_me: program exited with status $ac_status" >&5
50712 echo "$as_me: failed program was:" >&5
50713 sed 's/^/| /' conftest.$ac_ext >&5
50715 ( exit $ac_status )
50716 ac_cv_func_memcmp_working=no
50718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50721 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50722 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50723 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50724 "memcmp.$ac_objext" | \
50725 *" memcmp.$ac_objext" | \
50726 "memcmp.$ac_objext "* | \
50727 *" memcmp.$ac_objext "* ) ;;
50728 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50733 if test $ac_cv_func_memcmp_working = no ; then
50735 cat >>confdefs.h <<\_ACEOF
50736 #define NEED_MEMCMP_REPLACEMENT 1
50742 for ac_func in strftime
50744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50745 echo "$as_me:$LINENO: checking for $ac_func" >&5
50746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50747 if eval "test \"\${$as_ac_var+set}\" = set"; then
50748 echo $ECHO_N "(cached) $ECHO_C" >&6
50750 cat >conftest.$ac_ext <<_ACEOF
50753 cat confdefs.h >>conftest.$ac_ext
50754 cat >>conftest.$ac_ext <<_ACEOF
50755 /* end confdefs.h. */
50756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50758 #define $ac_func innocuous_$ac_func
50760 /* System header to define __stub macros and hopefully few prototypes,
50761 which can conflict with char $ac_func (); below.
50762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50763 <limits.h> exists even on freestanding compilers. */
50766 # include <limits.h>
50768 # include <assert.h>
50773 /* Override any gcc2 internal prototype to avoid an error. */
50778 /* We use char because int might match the return type of a gcc2
50779 builtin and then its argument prototype would still apply. */
50781 /* The GNU C library defines this for functions which it implements
50782 to always fail with ENOSYS. Some functions are actually named
50783 something starting with __ and the normal name is an alias. */
50784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50787 char (*f) () = $ac_func;
50796 return f != $ac_func;
50801 rm -f conftest.$ac_objext conftest$ac_exeext
50802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50803 (eval $ac_link) 2>conftest.er1
50805 grep -v '^ *+' conftest.er1 >conftest.err
50807 cat conftest.err >&5
50808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50809 (exit $ac_status); } &&
50810 { ac_try='test -z "$ac_c_werror_flag"
50811 || test ! -s conftest.err'
50812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50813 (eval $ac_try) 2>&5
50815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50816 (exit $ac_status); }; } &&
50817 { ac_try='test -s conftest$ac_exeext'
50818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50819 (eval $ac_try) 2>&5
50821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50822 (exit $ac_status); }; }; then
50823 eval "$as_ac_var=yes"
50825 echo "$as_me: failed program was:" >&5
50826 sed 's/^/| /' conftest.$ac_ext >&5
50828 eval "$as_ac_var=no"
50830 rm -f conftest.err conftest.$ac_objext \
50831 conftest$ac_exeext conftest.$ac_ext
50833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50835 if test `eval echo '${'$as_ac_var'}'` = yes; then
50836 cat >>confdefs.h <<_ACEOF
50837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50841 # strftime is in -lintl on SCO UNIX.
50842 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50843 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50844 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50845 echo $ECHO_N "(cached) $ECHO_C" >&6
50847 ac_check_lib_save_LIBS=$LIBS
50848 LIBS="-lintl $LIBS"
50849 cat >conftest.$ac_ext <<_ACEOF
50852 cat confdefs.h >>conftest.$ac_ext
50853 cat >>conftest.$ac_ext <<_ACEOF
50854 /* end confdefs.h. */
50856 /* Override any gcc2 internal prototype to avoid an error. */
50860 /* We use char because int might match the return type of a gcc2
50861 builtin and then its argument prototype would still apply. */
50871 rm -f conftest.$ac_objext conftest$ac_exeext
50872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50873 (eval $ac_link) 2>conftest.er1
50875 grep -v '^ *+' conftest.er1 >conftest.err
50877 cat conftest.err >&5
50878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50879 (exit $ac_status); } &&
50880 { ac_try='test -z "$ac_c_werror_flag"
50881 || test ! -s conftest.err'
50882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50883 (eval $ac_try) 2>&5
50885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50886 (exit $ac_status); }; } &&
50887 { ac_try='test -s conftest$ac_exeext'
50888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50889 (eval $ac_try) 2>&5
50891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50892 (exit $ac_status); }; }; then
50893 ac_cv_lib_intl_strftime=yes
50895 echo "$as_me: failed program was:" >&5
50896 sed 's/^/| /' conftest.$ac_ext >&5
50898 ac_cv_lib_intl_strftime=no
50900 rm -f conftest.err conftest.$ac_objext \
50901 conftest$ac_exeext conftest.$ac_ext
50902 LIBS=$ac_check_lib_save_LIBS
50904 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50905 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50906 if test $ac_cv_lib_intl_strftime = yes; then
50907 cat >>confdefs.h <<\_ACEOF
50908 #define HAVE_STRFTIME 1
50911 LIBS="-lintl $LIBS"
50918 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50919 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50920 if test "${ol_cv_func_inet_aton+set}" = set; then
50921 echo $ECHO_N "(cached) $ECHO_C" >&6
50923 cat >conftest.$ac_ext <<_ACEOF
50926 cat confdefs.h >>conftest.$ac_ext
50927 cat >>conftest.$ac_ext <<_ACEOF
50928 /* end confdefs.h. */
50930 #ifdef HAVE_SYS_TYPES_H
50931 # include <sys/types.h>
50933 #ifdef HAVE_SYS_SOCKET_H
50934 # include <sys/socket.h>
50935 # ifdef HAVE_SYS_SELECT_H
50936 # include <sys/select.h>
50938 # include <netinet/in.h>
50939 # ifdef HAVE_ARPA_INET_H
50940 # include <arpa/inet.h>
50948 int rc = inet_aton( "255.255.255.255", &in );
50953 rm -f conftest.$ac_objext conftest$ac_exeext
50954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50955 (eval $ac_link) 2>conftest.er1
50957 grep -v '^ *+' conftest.er1 >conftest.err
50959 cat conftest.err >&5
50960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50961 (exit $ac_status); } &&
50962 { ac_try='test -z "$ac_c_werror_flag"
50963 || test ! -s conftest.err'
50964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50965 (eval $ac_try) 2>&5
50967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50968 (exit $ac_status); }; } &&
50969 { ac_try='test -s conftest$ac_exeext'
50970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50971 (eval $ac_try) 2>&5
50973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50974 (exit $ac_status); }; }; then
50975 ol_cv_func_inet_aton=yes
50977 echo "$as_me: failed program was:" >&5
50978 sed 's/^/| /' conftest.$ac_ext >&5
50980 ol_cv_func_inet_aton=no
50982 rm -f conftest.err conftest.$ac_objext \
50983 conftest$ac_exeext conftest.$ac_ext
50985 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50986 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50987 if test $ol_cv_func_inet_aton != no; then
50989 cat >>confdefs.h <<\_ACEOF
50990 #define HAVE_INET_ATON 1
50996 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50997 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50998 if test "${ac_cv_func__spawnlp+set}" = set; then
50999 echo $ECHO_N "(cached) $ECHO_C" >&6
51001 cat >conftest.$ac_ext <<_ACEOF
51004 cat confdefs.h >>conftest.$ac_ext
51005 cat >>conftest.$ac_ext <<_ACEOF
51006 /* end confdefs.h. */
51007 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
51008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51009 #define _spawnlp innocuous__spawnlp
51011 /* System header to define __stub macros and hopefully few prototypes,
51012 which can conflict with char _spawnlp (); below.
51013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51014 <limits.h> exists even on freestanding compilers. */
51017 # include <limits.h>
51019 # include <assert.h>
51024 /* Override any gcc2 internal prototype to avoid an error. */
51029 /* We use char because int might match the return type of a gcc2
51030 builtin and then its argument prototype would still apply. */
51032 /* The GNU C library defines this for functions which it implements
51033 to always fail with ENOSYS. Some functions are actually named
51034 something starting with __ and the normal name is an alias. */
51035 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
51038 char (*f) () = _spawnlp;
51047 return f != _spawnlp;
51052 rm -f conftest.$ac_objext conftest$ac_exeext
51053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51054 (eval $ac_link) 2>conftest.er1
51056 grep -v '^ *+' conftest.er1 >conftest.err
51058 cat conftest.err >&5
51059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51060 (exit $ac_status); } &&
51061 { ac_try='test -z "$ac_c_werror_flag"
51062 || test ! -s conftest.err'
51063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51064 (eval $ac_try) 2>&5
51066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51067 (exit $ac_status); }; } &&
51068 { ac_try='test -s conftest$ac_exeext'
51069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51070 (eval $ac_try) 2>&5
51072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51073 (exit $ac_status); }; }; then
51074 ac_cv_func__spawnlp=yes
51076 echo "$as_me: failed program was:" >&5
51077 sed 's/^/| /' conftest.$ac_ext >&5
51079 ac_cv_func__spawnlp=no
51081 rm -f conftest.err conftest.$ac_objext \
51082 conftest$ac_exeext conftest.$ac_ext
51084 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
51085 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
51086 if test $ac_cv_func__spawnlp = yes; then
51088 cat >>confdefs.h <<\_ACEOF
51089 #define HAVE_SPAWNLP 1
51095 echo "$as_me:$LINENO: checking for _snprintf" >&5
51096 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
51097 if test "${ac_cv_func__snprintf+set}" = set; then
51098 echo $ECHO_N "(cached) $ECHO_C" >&6
51100 cat >conftest.$ac_ext <<_ACEOF
51103 cat confdefs.h >>conftest.$ac_ext
51104 cat >>conftest.$ac_ext <<_ACEOF
51105 /* end confdefs.h. */
51106 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
51107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51108 #define _snprintf innocuous__snprintf
51110 /* System header to define __stub macros and hopefully few prototypes,
51111 which can conflict with char _snprintf (); below.
51112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51113 <limits.h> exists even on freestanding compilers. */
51116 # include <limits.h>
51118 # include <assert.h>
51123 /* Override any gcc2 internal prototype to avoid an error. */
51128 /* We use char because int might match the return type of a gcc2
51129 builtin and then its argument prototype would still apply. */
51131 /* The GNU C library defines this for functions which it implements
51132 to always fail with ENOSYS. Some functions are actually named
51133 something starting with __ and the normal name is an alias. */
51134 #if defined (__stub__snprintf) || defined (__stub____snprintf)
51137 char (*f) () = _snprintf;
51146 return f != _snprintf;
51151 rm -f conftest.$ac_objext conftest$ac_exeext
51152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51153 (eval $ac_link) 2>conftest.er1
51155 grep -v '^ *+' conftest.er1 >conftest.err
51157 cat conftest.err >&5
51158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51159 (exit $ac_status); } &&
51160 { ac_try='test -z "$ac_c_werror_flag"
51161 || test ! -s conftest.err'
51162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51163 (eval $ac_try) 2>&5
51165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51166 (exit $ac_status); }; } &&
51167 { ac_try='test -s conftest$ac_exeext'
51168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51169 (eval $ac_try) 2>&5
51171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51172 (exit $ac_status); }; }; then
51173 ac_cv_func__snprintf=yes
51175 echo "$as_me: failed program was:" >&5
51176 sed 's/^/| /' conftest.$ac_ext >&5
51178 ac_cv_func__snprintf=no
51180 rm -f conftest.err conftest.$ac_objext \
51181 conftest$ac_exeext conftest.$ac_ext
51183 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51184 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51185 if test $ac_cv_func__snprintf = yes; then
51186 ac_cv_func_snprintf=yes
51188 cat >>confdefs.h <<\_ACEOF
51189 #define snprintf _snprintf
51196 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51197 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51198 if test "${ac_cv_func__vsnprintf+set}" = set; then
51199 echo $ECHO_N "(cached) $ECHO_C" >&6
51201 cat >conftest.$ac_ext <<_ACEOF
51204 cat confdefs.h >>conftest.$ac_ext
51205 cat >>conftest.$ac_ext <<_ACEOF
51206 /* end confdefs.h. */
51207 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51209 #define _vsnprintf innocuous__vsnprintf
51211 /* System header to define __stub macros and hopefully few prototypes,
51212 which can conflict with char _vsnprintf (); below.
51213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51214 <limits.h> exists even on freestanding compilers. */
51217 # include <limits.h>
51219 # include <assert.h>
51224 /* Override any gcc2 internal prototype to avoid an error. */
51229 /* We use char because int might match the return type of a gcc2
51230 builtin and then its argument prototype would still apply. */
51231 char _vsnprintf ();
51232 /* The GNU C library defines this for functions which it implements
51233 to always fail with ENOSYS. Some functions are actually named
51234 something starting with __ and the normal name is an alias. */
51235 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51238 char (*f) () = _vsnprintf;
51247 return f != _vsnprintf;
51252 rm -f conftest.$ac_objext conftest$ac_exeext
51253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51254 (eval $ac_link) 2>conftest.er1
51256 grep -v '^ *+' conftest.er1 >conftest.err
51258 cat conftest.err >&5
51259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51260 (exit $ac_status); } &&
51261 { ac_try='test -z "$ac_c_werror_flag"
51262 || test ! -s conftest.err'
51263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51264 (eval $ac_try) 2>&5
51266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51267 (exit $ac_status); }; } &&
51268 { ac_try='test -s conftest$ac_exeext'
51269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51270 (eval $ac_try) 2>&5
51272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51273 (exit $ac_status); }; }; then
51274 ac_cv_func__vsnprintf=yes
51276 echo "$as_me: failed program was:" >&5
51277 sed 's/^/| /' conftest.$ac_ext >&5
51279 ac_cv_func__vsnprintf=no
51281 rm -f conftest.err conftest.$ac_objext \
51282 conftest$ac_exeext conftest.$ac_ext
51284 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51285 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51286 if test $ac_cv_func__vsnprintf = yes; then
51287 ac_cv_func_vsnprintf=yes
51289 cat >>confdefs.h <<\_ACEOF
51290 #define vsnprintf _vsnprintf
51298 for ac_func in vprintf
51300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51301 echo "$as_me:$LINENO: checking for $ac_func" >&5
51302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51303 if eval "test \"\${$as_ac_var+set}\" = set"; then
51304 echo $ECHO_N "(cached) $ECHO_C" >&6
51306 cat >conftest.$ac_ext <<_ACEOF
51309 cat confdefs.h >>conftest.$ac_ext
51310 cat >>conftest.$ac_ext <<_ACEOF
51311 /* end confdefs.h. */
51312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51314 #define $ac_func innocuous_$ac_func
51316 /* System header to define __stub macros and hopefully few prototypes,
51317 which can conflict with char $ac_func (); below.
51318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51319 <limits.h> exists even on freestanding compilers. */
51322 # include <limits.h>
51324 # include <assert.h>
51329 /* Override any gcc2 internal prototype to avoid an error. */
51334 /* We use char because int might match the return type of a gcc2
51335 builtin and then its argument prototype would still apply. */
51337 /* The GNU C library defines this for functions which it implements
51338 to always fail with ENOSYS. Some functions are actually named
51339 something starting with __ and the normal name is an alias. */
51340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51343 char (*f) () = $ac_func;
51352 return f != $ac_func;
51357 rm -f conftest.$ac_objext conftest$ac_exeext
51358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51359 (eval $ac_link) 2>conftest.er1
51361 grep -v '^ *+' conftest.er1 >conftest.err
51363 cat conftest.err >&5
51364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51365 (exit $ac_status); } &&
51366 { ac_try='test -z "$ac_c_werror_flag"
51367 || test ! -s conftest.err'
51368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51369 (eval $ac_try) 2>&5
51371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51372 (exit $ac_status); }; } &&
51373 { ac_try='test -s conftest$ac_exeext'
51374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51375 (eval $ac_try) 2>&5
51377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51378 (exit $ac_status); }; }; then
51379 eval "$as_ac_var=yes"
51381 echo "$as_me: failed program was:" >&5
51382 sed 's/^/| /' conftest.$ac_ext >&5
51384 eval "$as_ac_var=no"
51386 rm -f conftest.err conftest.$ac_objext \
51387 conftest$ac_exeext conftest.$ac_ext
51389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51391 if test `eval echo '${'$as_ac_var'}'` = yes; then
51392 cat >>confdefs.h <<_ACEOF
51393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51396 echo "$as_me:$LINENO: checking for _doprnt" >&5
51397 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51398 if test "${ac_cv_func__doprnt+set}" = set; then
51399 echo $ECHO_N "(cached) $ECHO_C" >&6
51401 cat >conftest.$ac_ext <<_ACEOF
51404 cat confdefs.h >>conftest.$ac_ext
51405 cat >>conftest.$ac_ext <<_ACEOF
51406 /* end confdefs.h. */
51407 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51409 #define _doprnt innocuous__doprnt
51411 /* System header to define __stub macros and hopefully few prototypes,
51412 which can conflict with char _doprnt (); below.
51413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51414 <limits.h> exists even on freestanding compilers. */
51417 # include <limits.h>
51419 # include <assert.h>
51424 /* Override any gcc2 internal prototype to avoid an error. */
51429 /* We use char because int might match the return type of a gcc2
51430 builtin and then its argument prototype would still apply. */
51432 /* The GNU C library defines this for functions which it implements
51433 to always fail with ENOSYS. Some functions are actually named
51434 something starting with __ and the normal name is an alias. */
51435 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51438 char (*f) () = _doprnt;
51447 return f != _doprnt;
51452 rm -f conftest.$ac_objext conftest$ac_exeext
51453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51454 (eval $ac_link) 2>conftest.er1
51456 grep -v '^ *+' conftest.er1 >conftest.err
51458 cat conftest.err >&5
51459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51460 (exit $ac_status); } &&
51461 { ac_try='test -z "$ac_c_werror_flag"
51462 || test ! -s conftest.err'
51463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51464 (eval $ac_try) 2>&5
51466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51467 (exit $ac_status); }; } &&
51468 { ac_try='test -s conftest$ac_exeext'
51469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51470 (eval $ac_try) 2>&5
51472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51473 (exit $ac_status); }; }; then
51474 ac_cv_func__doprnt=yes
51476 echo "$as_me: failed program was:" >&5
51477 sed 's/^/| /' conftest.$ac_ext >&5
51479 ac_cv_func__doprnt=no
51481 rm -f conftest.err conftest.$ac_objext \
51482 conftest$ac_exeext conftest.$ac_ext
51484 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51485 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51486 if test $ac_cv_func__doprnt = yes; then
51488 cat >>confdefs.h <<\_ACEOF
51489 #define HAVE_DOPRNT 1
51499 if test $ac_cv_func_vprintf = yes ; then
51502 for ac_func in snprintf vsnprintf
51504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51505 echo "$as_me:$LINENO: checking for $ac_func" >&5
51506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51507 if eval "test \"\${$as_ac_var+set}\" = set"; then
51508 echo $ECHO_N "(cached) $ECHO_C" >&6
51510 cat >conftest.$ac_ext <<_ACEOF
51513 cat confdefs.h >>conftest.$ac_ext
51514 cat >>conftest.$ac_ext <<_ACEOF
51515 /* end confdefs.h. */
51516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51518 #define $ac_func innocuous_$ac_func
51520 /* System header to define __stub macros and hopefully few prototypes,
51521 which can conflict with char $ac_func (); below.
51522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51523 <limits.h> exists even on freestanding compilers. */
51526 # include <limits.h>
51528 # include <assert.h>
51533 /* Override any gcc2 internal prototype to avoid an error. */
51538 /* We use char because int might match the return type of a gcc2
51539 builtin and then its argument prototype would still apply. */
51541 /* The GNU C library defines this for functions which it implements
51542 to always fail with ENOSYS. Some functions are actually named
51543 something starting with __ and the normal name is an alias. */
51544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51547 char (*f) () = $ac_func;
51556 return f != $ac_func;
51561 rm -f conftest.$ac_objext conftest$ac_exeext
51562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51563 (eval $ac_link) 2>conftest.er1
51565 grep -v '^ *+' conftest.er1 >conftest.err
51567 cat conftest.err >&5
51568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51569 (exit $ac_status); } &&
51570 { ac_try='test -z "$ac_c_werror_flag"
51571 || test ! -s conftest.err'
51572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51573 (eval $ac_try) 2>&5
51575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51576 (exit $ac_status); }; } &&
51577 { ac_try='test -s conftest$ac_exeext'
51578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51579 (eval $ac_try) 2>&5
51581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51582 (exit $ac_status); }; }; then
51583 eval "$as_ac_var=yes"
51585 echo "$as_me: failed program was:" >&5
51586 sed 's/^/| /' conftest.$ac_ext >&5
51588 eval "$as_ac_var=no"
51590 rm -f conftest.err conftest.$ac_objext \
51591 conftest$ac_exeext conftest.$ac_ext
51593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51595 if test `eval echo '${'$as_ac_var'}'` = yes; then
51596 cat >>confdefs.h <<_ACEOF
51597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51715 echo "$as_me:$LINENO: checking for $ac_func" >&5
51716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51717 if eval "test \"\${$as_ac_var+set}\" = set"; then
51718 echo $ECHO_N "(cached) $ECHO_C" >&6
51720 cat >conftest.$ac_ext <<_ACEOF
51723 cat confdefs.h >>conftest.$ac_ext
51724 cat >>conftest.$ac_ext <<_ACEOF
51725 /* end confdefs.h. */
51726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51728 #define $ac_func innocuous_$ac_func
51730 /* System header to define __stub macros and hopefully few prototypes,
51731 which can conflict with char $ac_func (); below.
51732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51733 <limits.h> exists even on freestanding compilers. */
51736 # include <limits.h>
51738 # include <assert.h>
51743 /* Override any gcc2 internal prototype to avoid an error. */
51748 /* We use char because int might match the return type of a gcc2
51749 builtin and then its argument prototype would still apply. */
51751 /* The GNU C library defines this for functions which it implements
51752 to always fail with ENOSYS. Some functions are actually named
51753 something starting with __ and the normal name is an alias. */
51754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51757 char (*f) () = $ac_func;
51766 return f != $ac_func;
51771 rm -f conftest.$ac_objext conftest$ac_exeext
51772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51773 (eval $ac_link) 2>conftest.er1
51775 grep -v '^ *+' conftest.er1 >conftest.err
51777 cat conftest.err >&5
51778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51779 (exit $ac_status); } &&
51780 { ac_try='test -z "$ac_c_werror_flag"
51781 || test ! -s conftest.err'
51782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51783 (eval $ac_try) 2>&5
51785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51786 (exit $ac_status); }; } &&
51787 { ac_try='test -s conftest$ac_exeext'
51788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51789 (eval $ac_try) 2>&5
51791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51792 (exit $ac_status); }; }; then
51793 eval "$as_ac_var=yes"
51795 echo "$as_me: failed program was:" >&5
51796 sed 's/^/| /' conftest.$ac_ext >&5
51798 eval "$as_ac_var=no"
51800 rm -f conftest.err conftest.$ac_objext \
51801 conftest$ac_exeext conftest.$ac_ext
51803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51805 if test `eval echo '${'$as_ac_var'}'` = yes; then
51806 cat >>confdefs.h <<_ACEOF
51807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51816 for ac_func in getopt getpeereid
51818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51819 echo "$as_me:$LINENO: checking for $ac_func" >&5
51820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51821 if eval "test \"\${$as_ac_var+set}\" = set"; then
51822 echo $ECHO_N "(cached) $ECHO_C" >&6
51824 cat >conftest.$ac_ext <<_ACEOF
51827 cat confdefs.h >>conftest.$ac_ext
51828 cat >>conftest.$ac_ext <<_ACEOF
51829 /* end confdefs.h. */
51830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51832 #define $ac_func innocuous_$ac_func
51834 /* System header to define __stub macros and hopefully few prototypes,
51835 which can conflict with char $ac_func (); below.
51836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51837 <limits.h> exists even on freestanding compilers. */
51840 # include <limits.h>
51842 # include <assert.h>
51847 /* Override any gcc2 internal prototype to avoid an error. */
51852 /* We use char because int might match the return type of a gcc2
51853 builtin and then its argument prototype would still apply. */
51855 /* The GNU C library defines this for functions which it implements
51856 to always fail with ENOSYS. Some functions are actually named
51857 something starting with __ and the normal name is an alias. */
51858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51861 char (*f) () = $ac_func;
51870 return f != $ac_func;
51875 rm -f conftest.$ac_objext conftest$ac_exeext
51876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51877 (eval $ac_link) 2>conftest.er1
51879 grep -v '^ *+' conftest.er1 >conftest.err
51881 cat conftest.err >&5
51882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51883 (exit $ac_status); } &&
51884 { ac_try='test -z "$ac_c_werror_flag"
51885 || test ! -s conftest.err'
51886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51887 (eval $ac_try) 2>&5
51889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51890 (exit $ac_status); }; } &&
51891 { ac_try='test -s conftest$ac_exeext'
51892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51893 (eval $ac_try) 2>&5
51895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51896 (exit $ac_status); }; }; then
51897 eval "$as_ac_var=yes"
51899 echo "$as_me: failed program was:" >&5
51900 sed 's/^/| /' conftest.$ac_ext >&5
51902 eval "$as_ac_var=no"
51904 rm -f conftest.err conftest.$ac_objext \
51905 conftest$ac_exeext conftest.$ac_ext
51907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51909 if test `eval echo '${'$as_ac_var'}'` = yes; then
51910 cat >>confdefs.h <<_ACEOF
51911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51916 "$ac_func.$ac_objext" | \
51917 *" $ac_func.$ac_objext" | \
51918 "$ac_func.$ac_objext "* | \
51919 *" $ac_func.$ac_objext "* ) ;;
51920 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51928 if test "$ac_cv_func_getopt" != yes; then
51929 LIBSRCS="$LIBSRCS getopt.c"
51931 if test "$ac_cv_func_getpeereid" != yes; then
51932 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51933 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51934 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51935 echo $ECHO_N "(cached) $ECHO_C" >&6
51937 cat >conftest.$ac_ext <<_ACEOF
51940 cat confdefs.h >>conftest.$ac_ext
51941 cat >>conftest.$ac_ext <<_ACEOF
51942 /* end confdefs.h. */
51943 $ac_includes_default
51944 #ifdef HAVE_SYS_SOCKET_H
51945 #include <sys/socket.h>
51951 static struct msghdr ac_aggr;
51952 if (ac_aggr.msg_accrightslen)
51958 rm -f conftest.$ac_objext
51959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51960 (eval $ac_compile) 2>conftest.er1
51962 grep -v '^ *+' conftest.er1 >conftest.err
51964 cat conftest.err >&5
51965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51966 (exit $ac_status); } &&
51967 { ac_try='test -z "$ac_c_werror_flag"
51968 || test ! -s conftest.err'
51969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51970 (eval $ac_try) 2>&5
51972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51973 (exit $ac_status); }; } &&
51974 { ac_try='test -s conftest.$ac_objext'
51975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51976 (eval $ac_try) 2>&5
51978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51979 (exit $ac_status); }; }; then
51980 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51982 echo "$as_me: failed program was:" >&5
51983 sed 's/^/| /' conftest.$ac_ext >&5
51985 cat >conftest.$ac_ext <<_ACEOF
51988 cat confdefs.h >>conftest.$ac_ext
51989 cat >>conftest.$ac_ext <<_ACEOF
51990 /* end confdefs.h. */
51991 $ac_includes_default
51992 #ifdef HAVE_SYS_SOCKET_H
51993 #include <sys/socket.h>
51999 static struct msghdr ac_aggr;
52000 if (sizeof ac_aggr.msg_accrightslen)
52006 rm -f conftest.$ac_objext
52007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52008 (eval $ac_compile) 2>conftest.er1
52010 grep -v '^ *+' conftest.er1 >conftest.err
52012 cat conftest.err >&5
52013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52014 (exit $ac_status); } &&
52015 { ac_try='test -z "$ac_c_werror_flag"
52016 || test ! -s conftest.err'
52017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52018 (eval $ac_try) 2>&5
52020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52021 (exit $ac_status); }; } &&
52022 { ac_try='test -s conftest.$ac_objext'
52023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52024 (eval $ac_try) 2>&5
52026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52027 (exit $ac_status); }; }; then
52028 ac_cv_member_struct_msghdr_msg_accrightslen=yes
52030 echo "$as_me: failed program was:" >&5
52031 sed 's/^/| /' conftest.$ac_ext >&5
52033 ac_cv_member_struct_msghdr_msg_accrightslen=no
52035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52039 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
52040 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
52041 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
52043 cat >>confdefs.h <<_ACEOF
52044 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
52050 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
52051 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
52052 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
52053 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
52054 echo $ECHO_N "(cached) $ECHO_C" >&6
52056 cat >conftest.$ac_ext <<_ACEOF
52059 cat confdefs.h >>conftest.$ac_ext
52060 cat >>conftest.$ac_ext <<_ACEOF
52061 /* end confdefs.h. */
52062 $ac_includes_default
52063 #ifdef HAVE_SYS_SOCKET_H
52064 #include <sys/socket.h>
52070 static struct msghdr ac_aggr;
52071 if (ac_aggr.msg_control)
52077 rm -f conftest.$ac_objext
52078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52079 (eval $ac_compile) 2>conftest.er1
52081 grep -v '^ *+' conftest.er1 >conftest.err
52083 cat conftest.err >&5
52084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52085 (exit $ac_status); } &&
52086 { ac_try='test -z "$ac_c_werror_flag"
52087 || test ! -s conftest.err'
52088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52089 (eval $ac_try) 2>&5
52091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52092 (exit $ac_status); }; } &&
52093 { ac_try='test -s conftest.$ac_objext'
52094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52095 (eval $ac_try) 2>&5
52097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52098 (exit $ac_status); }; }; then
52099 ac_cv_member_struct_msghdr_msg_control=yes
52101 echo "$as_me: failed program was:" >&5
52102 sed 's/^/| /' conftest.$ac_ext >&5
52104 cat >conftest.$ac_ext <<_ACEOF
52107 cat confdefs.h >>conftest.$ac_ext
52108 cat >>conftest.$ac_ext <<_ACEOF
52109 /* end confdefs.h. */
52110 $ac_includes_default
52111 #ifdef HAVE_SYS_SOCKET_H
52112 #include <sys/socket.h>
52118 static struct msghdr ac_aggr;
52119 if (sizeof ac_aggr.msg_control)
52125 rm -f conftest.$ac_objext
52126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52127 (eval $ac_compile) 2>conftest.er1
52129 grep -v '^ *+' conftest.er1 >conftest.err
52131 cat conftest.err >&5
52132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52133 (exit $ac_status); } &&
52134 { ac_try='test -z "$ac_c_werror_flag"
52135 || test ! -s conftest.err'
52136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52137 (eval $ac_try) 2>&5
52139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52140 (exit $ac_status); }; } &&
52141 { ac_try='test -s conftest.$ac_objext'
52142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52143 (eval $ac_try) 2>&5
52145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52146 (exit $ac_status); }; }; then
52147 ac_cv_member_struct_msghdr_msg_control=yes
52149 echo "$as_me: failed program was:" >&5
52150 sed 's/^/| /' conftest.$ac_ext >&5
52152 ac_cv_member_struct_msghdr_msg_control=no
52154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
52159 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
52160 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
52162 cat >>confdefs.h <<_ACEOF
52163 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52170 LIBSRCS="$LIBSRCS getpeereid.c"
52172 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52173 if test "$ac_cv_func_snprintf" != yes; then
52175 cat >>confdefs.h <<\_ACEOF
52176 #define snprintf ber_pvt_snprintf
52180 if test "$ac_cv_func_vsnprintf" != yes; then
52182 cat >>confdefs.h <<\_ACEOF
52183 #define vsnprintf ber_pvt_vsnprintf
52190 if test "$ol_enable_slapi" != no ; then
52192 for ac_header in ltdl.h
52194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52196 echo "$as_me:$LINENO: checking for $ac_header" >&5
52197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52199 echo $ECHO_N "(cached) $ECHO_C" >&6
52201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52204 # Is the header compilable?
52205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52207 cat >conftest.$ac_ext <<_ACEOF
52210 cat confdefs.h >>conftest.$ac_ext
52211 cat >>conftest.$ac_ext <<_ACEOF
52212 /* end confdefs.h. */
52213 $ac_includes_default
52214 #include <$ac_header>
52216 rm -f conftest.$ac_objext
52217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52218 (eval $ac_compile) 2>conftest.er1
52220 grep -v '^ *+' conftest.er1 >conftest.err
52222 cat conftest.err >&5
52223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52224 (exit $ac_status); } &&
52225 { ac_try='test -z "$ac_c_werror_flag"
52226 || test ! -s conftest.err'
52227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52228 (eval $ac_try) 2>&5
52230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52231 (exit $ac_status); }; } &&
52232 { ac_try='test -s conftest.$ac_objext'
52233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52234 (eval $ac_try) 2>&5
52236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52237 (exit $ac_status); }; }; then
52238 ac_header_compiler=yes
52240 echo "$as_me: failed program was:" >&5
52241 sed 's/^/| /' conftest.$ac_ext >&5
52243 ac_header_compiler=no
52245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52247 echo "${ECHO_T}$ac_header_compiler" >&6
52249 # Is the header present?
52250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52252 cat >conftest.$ac_ext <<_ACEOF
52255 cat confdefs.h >>conftest.$ac_ext
52256 cat >>conftest.$ac_ext <<_ACEOF
52257 /* end confdefs.h. */
52258 #include <$ac_header>
52260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52263 grep -v '^ *+' conftest.er1 >conftest.err
52265 cat conftest.err >&5
52266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52267 (exit $ac_status); } >/dev/null; then
52268 if test -s conftest.err; then
52269 ac_cpp_err=$ac_c_preproc_warn_flag
52270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52277 if test -z "$ac_cpp_err"; then
52278 ac_header_preproc=yes
52280 echo "$as_me: failed program was:" >&5
52281 sed 's/^/| /' conftest.$ac_ext >&5
52283 ac_header_preproc=no
52285 rm -f conftest.err conftest.$ac_ext
52286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52287 echo "${ECHO_T}$ac_header_preproc" >&6
52289 # So? What about this header?
52290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52296 ac_header_preproc=yes
52299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52313 ## ------------------------------------------ ##
52314 ## Report this to the AC_PACKAGE_NAME lists. ##
52315 ## ------------------------------------------ ##
52318 sed "s/^/$as_me: WARNING: /" >&2
52321 echo "$as_me:$LINENO: checking for $ac_header" >&5
52322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52324 echo $ECHO_N "(cached) $ECHO_C" >&6
52326 eval "$as_ac_Header=\$ac_header_preproc"
52328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52333 cat >>confdefs.h <<_ACEOF
52334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52342 if test $ac_cv_header_ltdl_h != yes ; then
52343 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52344 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52345 { (exit 1); exit 1; }; }
52347 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52348 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52349 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52350 echo $ECHO_N "(cached) $ECHO_C" >&6
52352 ac_check_lib_save_LIBS=$LIBS
52353 LIBS="-lltdl $LIBS"
52354 cat >conftest.$ac_ext <<_ACEOF
52357 cat confdefs.h >>conftest.$ac_ext
52358 cat >>conftest.$ac_ext <<_ACEOF
52359 /* end confdefs.h. */
52361 /* Override any gcc2 internal prototype to avoid an error. */
52365 /* We use char because int might match the return type of a gcc2
52366 builtin and then its argument prototype would still apply. */
52376 rm -f conftest.$ac_objext conftest$ac_exeext
52377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52378 (eval $ac_link) 2>conftest.er1
52380 grep -v '^ *+' conftest.er1 >conftest.err
52382 cat conftest.err >&5
52383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52384 (exit $ac_status); } &&
52385 { ac_try='test -z "$ac_c_werror_flag"
52386 || test ! -s conftest.err'
52387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52388 (eval $ac_try) 2>&5
52390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52391 (exit $ac_status); }; } &&
52392 { ac_try='test -s conftest$ac_exeext'
52393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52394 (eval $ac_try) 2>&5
52396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52397 (exit $ac_status); }; }; then
52398 ac_cv_lib_ltdl_lt_dlinit=yes
52400 echo "$as_me: failed program was:" >&5
52401 sed 's/^/| /' conftest.$ac_ext >&5
52403 ac_cv_lib_ltdl_lt_dlinit=no
52405 rm -f conftest.err conftest.$ac_objext \
52406 conftest$ac_exeext conftest.$ac_ext
52407 LIBS=$ac_check_lib_save_LIBS
52409 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52410 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52411 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52414 LIBSLAPI=libslapi.a
52415 LIBSLAPITOOLS=../libslapi.a
52417 cat >>confdefs.h <<\_ACEOF
52418 #define HAVE_LIBLTDL 1
52423 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52424 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52425 { (exit 1); exit 1; }; }
52430 cat >>confdefs.h <<\_ACEOF
52431 #define LDAP_SLAPI 1
52436 if test "$ol_enable_debug" != no ; then
52438 cat >>confdefs.h <<\_ACEOF
52439 #define LDAP_DEBUG 1
52443 if test "$ol_enable_syslog" = yes ; then
52445 cat >>confdefs.h <<\_ACEOF
52446 #define LDAP_SYSLOG 1
52450 if test "$ol_link_kbind" != no ; then
52452 cat >>confdefs.h <<\_ACEOF
52453 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52457 if test "$ol_enable_proctitle" != no ; then
52459 cat >>confdefs.h <<\_ACEOF
52460 #define LDAP_PROCTITLE 1
52464 if test "$ol_enable_referrals" != no ; then
52466 cat >>confdefs.h <<\_ACEOF
52467 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52471 if test "$ol_enable_local" != no; then
52473 cat >>confdefs.h <<\_ACEOF
52474 #define LDAP_PF_LOCAL 1
52478 if test "$ol_link_ipv6" != no; then
52480 cat >>confdefs.h <<\_ACEOF
52481 #define LDAP_PF_INET6 1
52485 if test "$ol_enable_cleartext" != no ; then
52487 cat >>confdefs.h <<\_ACEOF
52488 #define SLAPD_CLEARTEXT 1
52492 if test "$ol_enable_crypt" != no ; then
52494 cat >>confdefs.h <<\_ACEOF
52495 #define SLAPD_CRYPT 1
52499 if test "$ol_link_spasswd" != no ; then
52501 cat >>confdefs.h <<\_ACEOF
52502 #define SLAPD_SPASSWD 1
52506 if test "$ol_enable_multimaster" != no ; then
52508 cat >>confdefs.h <<\_ACEOF
52509 #define SLAPD_MULTIMASTER 1
52513 if test "$ol_enable_rlookups" != no ; then
52515 cat >>confdefs.h <<\_ACEOF
52516 #define SLAPD_RLOOKUPS 1
52520 if test "$ol_enable_aci" != no ; then
52522 cat >>confdefs.h <<\_ACEOF
52523 #define SLAPD_ACI_ENABLED 1
52528 if test "$ol_link_modules" != no ; then
52530 cat >>confdefs.h <<\_ACEOF
52531 #define SLAPD_MODULES 1
52535 SLAPD_MODULES_LDFLAGS="-dlopen self"
52539 cat >>confdefs.h <<\_ACEOF
52540 #define SLAPD_MOD_STATIC 1
52544 cat >>confdefs.h <<\_ACEOF
52545 #define SLAPD_MOD_DYNAMIC 2
52549 if test "$ol_enable_bdb" != no ; then
52551 BUILD_BDB=$ol_enable_bdb
52552 if test "$ol_enable_bdb" = mod ; then
52553 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52554 MFLAG=SLAPD_MOD_DYNAMIC
52556 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52557 MFLAG=SLAPD_MOD_STATIC
52560 cat >>confdefs.h <<_ACEOF
52561 #define SLAPD_BDB $MFLAG
52566 if test "$ol_enable_dnssrv" != no ; then
52568 BUILD_DNSSRV=$ol_enable_dnssrv
52569 if test "$ol_enable_dnssrv" = mod ; then
52570 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52571 MFLAG=SLAPD_MOD_DYNAMIC
52573 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52574 MFLAG=SLAPD_MOD_STATIC
52577 cat >>confdefs.h <<_ACEOF
52578 #define SLAPD_DNSSRV $MFLAG
52583 if test "$ol_enable_hdb" != no ; then
52585 BUILD_HDB=$ol_enable_hdb
52586 if test "$ol_enable_hdb" = mod ; then
52587 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52588 MFLAG=SLAPD_MOD_DYNAMIC
52590 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52591 MFLAG=SLAPD_MOD_STATIC
52594 cat >>confdefs.h <<_ACEOF
52595 #define SLAPD_HDB $MFLAG
52600 if test "$ol_enable_ldap" != no ; then
52602 BUILD_LDAP=$ol_enable_ldap
52603 if test "$ol_enable_ldap" = mod ; then
52604 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52605 MFLAG=SLAPD_MOD_DYNAMIC
52607 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52608 MFLAG=SLAPD_MOD_STATIC
52611 cat >>confdefs.h <<_ACEOF
52612 #define SLAPD_LDAP $MFLAG
52617 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52619 BUILD_LDBM=$ol_enable_ldbm
52620 if test "$ol_enable_ldbm" = mod ; then
52621 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52622 MFLAG=SLAPD_MOD_DYNAMIC
52624 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52625 MFLAG=SLAPD_MOD_STATIC
52628 cat >>confdefs.h <<_ACEOF
52629 #define SLAPD_LDBM $MFLAG
52634 if test "$ol_enable_meta" != no ; then
52636 BUILD_META=$ol_enable_meta
52638 if test "$ol_enable_meta" = mod ; then
52639 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52640 MFLAG=SLAPD_MOD_DYNAMIC
52642 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52643 MFLAG=SLAPD_MOD_STATIC
52646 cat >>confdefs.h <<_ACEOF
52647 #define SLAPD_META $MFLAG
52652 if test "$ol_enable_monitor" != no ; then
52654 BUILD_MONITOR=$ol_enable_monitor
52655 if test "$ol_enable_monitor" = mod ; then
52656 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52657 MFLAG=SLAPD_MOD_DYNAMIC
52659 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52660 MFLAG=SLAPD_MOD_STATIC
52663 cat >>confdefs.h <<_ACEOF
52664 #define SLAPD_MONITOR $MFLAG
52669 if test "$ol_enable_null" != no ; then
52671 BUILD_NULL=$ol_enable_null
52672 if test "$ol_enable_null" = mod ; then
52673 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52674 MFLAG=SLAPD_MOD_DYNAMIC
52676 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52677 MFLAG=SLAPD_MOD_STATIC
52680 cat >>confdefs.h <<_ACEOF
52681 #define SLAPD_NULL $MFLAG
52686 if test "$ol_enable_passwd" != no ; then
52688 BUILD_PASSWD=$ol_enable_passwd
52689 if test "$ol_enable_passwd" = mod ; then
52690 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52691 MFLAG=SLAPD_MOD_DYNAMIC
52693 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52694 MFLAG=SLAPD_MOD_STATIC
52697 cat >>confdefs.h <<_ACEOF
52698 #define SLAPD_PASSWD $MFLAG
52703 if test "$ol_link_perl" != no ; then
52705 BUILD_PERL=$ol_enable_perl
52706 if test "$ol_enable_perl" = mod ; then
52707 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52708 MFLAG=SLAPD_MOD_DYNAMIC
52710 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52711 MFLAG=SLAPD_MOD_STATIC
52714 cat >>confdefs.h <<_ACEOF
52715 #define SLAPD_PERL $MFLAG
52720 if test "$ol_enable_relay" != no ; then
52722 BUILD_RELAY=$ol_enable_relay
52723 if test "$ol_enable_relay" = mod ; then
52724 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52725 MFLAG=SLAPD_MOD_DYNAMIC
52727 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52728 MFLAG=SLAPD_MOD_STATIC
52731 cat >>confdefs.h <<_ACEOF
52732 #define SLAPD_RELAY $MFLAG
52737 if test "$ol_enable_shell" != no ; then
52738 if test "$ol_link_threads" != no ; then
52739 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52740 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52743 BUILD_SHELL=$ol_enable_shell
52744 if test "$ol_enable_shell" = mod ; then
52745 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52746 MFLAG=SLAPD_MOD_DYNAMIC
52748 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52749 MFLAG=SLAPD_MOD_STATIC
52752 cat >>confdefs.h <<_ACEOF
52753 #define SLAPD_SHELL $MFLAG
52758 if test "$ol_link_sql" != no ; then
52760 BUILD_SQL=$ol_enable_sql
52761 if test "$ol_enable_sql" = mod; then
52762 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52763 MFLAG=SLAPD_MOD_DYNAMIC
52765 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52766 MFLAG=SLAPD_MOD_STATIC
52769 cat >>confdefs.h <<_ACEOF
52770 #define SLAPD_SQL $MFLAG
52775 if test "$ol_enable_accesslog" != no ; then
52776 BUILD_ACCESSLOG=$ol_enable_accesslog
52777 if test "$ol_enable_accesslog" = mod ; then
52778 MFLAG=SLAPD_MOD_DYNAMIC
52779 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52781 MFLAG=SLAPD_MOD_STATIC
52782 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52785 cat >>confdefs.h <<_ACEOF
52786 #define SLAPD_OVER_ACCESSLOG $MFLAG
52791 if test "$ol_enable_denyop" != no ; then
52792 BUILD_DENYOP=$ol_enable_denyop
52793 if test "$ol_enable_denyop" = mod ; then
52794 MFLAG=SLAPD_MOD_DYNAMIC
52795 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52797 MFLAG=SLAPD_MOD_STATIC
52798 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52801 cat >>confdefs.h <<_ACEOF
52802 #define SLAPD_OVER_DENYOP $MFLAG
52807 if test "$ol_enable_dyngroup" != no ; then
52808 BUILD_DYNGROUP=$ol_enable_dyngroup
52809 if test "$ol_enable_dyngroup" = mod ; then
52810 MFLAG=SLAPD_MOD_DYNAMIC
52811 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52813 MFLAG=SLAPD_MOD_STATIC
52814 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52817 cat >>confdefs.h <<_ACEOF
52818 #define SLAPD_OVER_DYNGROUP $MFLAG
52823 if test "$ol_enable_dynlist" != no ; then
52824 BUILD_DYNLIST=$ol_enable_dynlist
52825 if test "$ol_enable_dynlist" = mod ; then
52826 MFLAG=SLAPD_MOD_DYNAMIC
52827 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52829 MFLAG=SLAPD_MOD_STATIC
52830 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52833 cat >>confdefs.h <<_ACEOF
52834 #define SLAPD_OVER_DYNLIST $MFLAG
52839 if test "$ol_enable_glue" != no ; then
52840 BUILD_GLUE=$ol_enable_glue
52841 if test "$ol_enable_glue" = mod ; then
52842 MFLAG=SLAPD_MOD_DYNAMIC
52843 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52845 MFLAG=SLAPD_MOD_STATIC
52846 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52849 cat >>confdefs.h <<_ACEOF
52850 #define SLAPD_OVER_GLUE $MFLAG
52855 if test "$ol_enable_lastmod" != no ; then
52856 BUILD_LASTMOD=$ol_enable_lastmod
52857 if test "$ol_enable_lastmod" = mod ; then
52858 MFLAG=SLAPD_MOD_DYNAMIC
52859 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52861 MFLAG=SLAPD_MOD_STATIC
52862 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52865 cat >>confdefs.h <<_ACEOF
52866 #define SLAPD_OVER_LASTMOD $MFLAG
52871 if test "$ol_enable_ppolicy" != no ; then
52872 BUILD_PPOLICY=$ol_enable_ppolicy
52873 if test "$ol_enable_ppolicy" = mod ; then
52874 MFLAG=SLAPD_MOD_DYNAMIC
52875 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52877 MFLAG=SLAPD_MOD_STATIC
52878 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52881 cat >>confdefs.h <<_ACEOF
52882 #define SLAPD_OVER_PPOLICY $MFLAG
52887 if test "$ol_enable_proxycache" != no ; then
52888 BUILD_PROXYCACHE=$ol_enable_proxycache
52889 if test "$ol_enable_proxycache" = mod ; then
52890 MFLAG=SLAPD_MOD_DYNAMIC
52891 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52893 MFLAG=SLAPD_MOD_STATIC
52894 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52897 cat >>confdefs.h <<_ACEOF
52898 #define SLAPD_OVER_PROXYCACHE $MFLAG
52903 if test "$ol_enable_refint" != no ; then
52904 BUILD_REFINT=$ol_enable_refint
52905 if test "$ol_enable_refint" = mod ; then
52906 MFLAG=SLAPD_MOD_DYNAMIC
52907 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52909 MFLAG=SLAPD_MOD_STATIC
52910 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52913 cat >>confdefs.h <<_ACEOF
52914 #define SLAPD_OVER_REFINT $MFLAG
52919 if test "$ol_enable_retcode" != no ; then
52920 BUILD_RETCODE=$ol_enable_retcode
52921 if test "$ol_enable_retcode" = mod ; then
52922 MFLAG=SLAPD_MOD_DYNAMIC
52923 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52925 MFLAG=SLAPD_MOD_STATIC
52926 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52929 cat >>confdefs.h <<_ACEOF
52930 #define SLAPD_OVER_RETCODE $MFLAG
52935 if test "$ol_enable_rwm" != no ; then
52937 BUILD_RWM=$ol_enable_rwm
52938 if test "$ol_enable_rwm" = mod ; then
52939 MFLAG=SLAPD_MOD_DYNAMIC
52940 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52942 MFLAG=SLAPD_MOD_STATIC
52943 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52946 cat >>confdefs.h <<_ACEOF
52947 #define SLAPD_OVER_RWM $MFLAG
52952 if test "$ol_enable_syncprov" != no ; then
52953 BUILD_SYNCPROV=$ol_enable_syncprov
52954 if test "$ol_enable_syncprov" = mod ; then
52955 MFLAG=SLAPD_MOD_DYNAMIC
52956 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52958 MFLAG=SLAPD_MOD_STATIC
52959 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52962 cat >>confdefs.h <<_ACEOF
52963 #define SLAPD_OVER_SYNCPROV $MFLAG
52968 if test "$ol_enable_translucent" != no ; then
52969 BUILD_TRANSLUCENT=$ol_enable_translucent
52970 if test "$ol_enable_translucent" = mod ; then
52971 MFLAG=SLAPD_MOD_DYNAMIC
52972 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52974 MFLAG=SLAPD_MOD_STATIC
52975 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52978 cat >>confdefs.h <<_ACEOF
52979 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52984 if test "$ol_enable_unique" != no ; then
52985 BUILD_UNIQUE=$ol_enable_unique
52986 if test "$ol_enable_unique" = mod ; then
52987 MFLAG=SLAPD_MOD_DYNAMIC
52988 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52990 MFLAG=SLAPD_MOD_STATIC
52991 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52994 cat >>confdefs.h <<_ACEOF
52995 #define SLAPD_OVER_UNIQUE $MFLAG
53000 if test "$ol_enable_valsort" != no ; then
53001 BUILD_VALSORT=$ol_enable_valsort
53002 if test "$ol_enable_valsort" = mod ; then
53003 MFLAG=SLAPD_MOD_DYNAMIC
53004 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
53006 MFLAG=SLAPD_MOD_STATIC
53007 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
53010 cat >>confdefs.h <<_ACEOF
53011 #define SLAPD_OVER_VALSORT $MFLAG
53016 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
53017 $BUILD_SLAPD = yes ; then
53021 if test "$ol_enable_rewrite" != no ; then
53023 cat >>confdefs.h <<\_ACEOF
53024 #define ENABLE_REWRITE 1
53030 if test "$ol_enable_slapi" != no ; then
53032 cat >>confdefs.h <<\_ACEOF
53033 #define ENABLE_SLAPI 1
53037 SLAPD_SLAPI_DEPEND=libslapi.a
53042 if test "$ac_cv_mingw32" = yes ; then
53044 SLAPD_MODULES_LDFLAGS=
53128 # Check whether --with-xxinstall or --without-xxinstall was given.
53129 if test "${with_xxinstall+set}" = set; then
53130 withval="$with_xxinstall"
53135 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-static.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"
53138 ac_config_commands="$ac_config_commands default"
53142 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53143 # Let make expand exec_prefix.
53144 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53148 # trailing colons and then remove the whole line if VPATH becomes empty
53149 # (actually we leave an empty line to preserve line numbers).
53150 if test "x$srcdir" = x.; then
53151 ac_vpsub='/^[ ]*VPATH[ ]*=/{
53152 s/:*\$(srcdir):*/:/;
53153 s/:*\${srcdir}:*/:/;
53155 s/^\([^=]*=[ ]*\):*/\1/;
53161 DEFS=-DHAVE_CONFIG_H
53165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53166 # 1. Remove the extension, and $U if already installed.
53167 ac_i=`echo "$ac_i" |
53168 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53170 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53171 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53173 LIBOBJS=$ac_libobjs
53175 LTLIBOBJS=$ac_ltlibobjs
53178 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53179 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53180 Usually this means the macro was only invoked conditionally." >&5
53181 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53182 Usually this means the macro was only invoked conditionally." >&2;}
53183 { (exit 1); exit 1; }; }
53185 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53186 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53187 Usually this means the macro was only invoked conditionally." >&5
53188 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53189 Usually this means the macro was only invoked conditionally." >&2;}
53190 { (exit 1); exit 1; }; }
53192 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53193 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53194 Usually this means the macro was only invoked conditionally." >&5
53195 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53196 Usually this means the macro was only invoked conditionally." >&2;}
53197 { (exit 1); exit 1; }; }
53199 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53200 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53201 Usually this means the macro was only invoked conditionally." >&5
53202 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53203 Usually this means the macro was only invoked conditionally." >&2;}
53204 { (exit 1); exit 1; }; }
53207 : ${CONFIG_STATUS=./config.status}
53208 ac_clean_files_save=$ac_clean_files
53209 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53210 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53211 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53212 cat >$CONFIG_STATUS <<_ACEOF
53214 # Generated by $as_me.
53215 # Run this file to recreate the current configuration.
53216 # Compiler output produced by configure, useful for debugging
53217 # configure, is in config.log if it exists.
53220 ac_cs_recheck=false
53222 SHELL=\${CONFIG_SHELL-$SHELL}
53225 cat >>$CONFIG_STATUS <<\_ACEOF
53226 ## --------------------- ##
53227 ## M4sh Initialization. ##
53228 ## --------------------- ##
53230 # Be Bourne compatible
53231 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53234 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53235 # is contrary to our usage. Disable this feature.
53236 alias -g '${1+"$@"}'='"$@"'
53237 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53240 DUALCASE=1; export DUALCASE # for MKS sh
53242 # Support unset when possible.
53243 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53250 # Work around bugs in pre-3.0 UWIN ksh.
53251 $as_unset ENV MAIL MAILPATH
53258 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53259 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53260 LC_TELEPHONE LC_TIME
53262 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53263 eval $as_var=C; export $as_var
53269 # Required to use basename.
53270 if expr a : '\(a\)' >/dev/null 2>&1; then
53276 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53277 as_basename=basename
53283 # Name of the executable.
53284 as_me=`$as_basename "$0" ||
53285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53286 X"$0" : 'X\(//\)$' \| \
53287 X"$0" : 'X\(/\)$' \| \
53288 . : '\(.\)' 2>/dev/null ||
53290 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53291 /^X\/\(\/\/\)$/{ s//\1/; q; }
53292 /^X\/\(\/\).*/{ s//\1/; q; }
53296 # PATH needs CR, and LINENO needs CR and PATH.
53297 # Avoid depending upon Character Ranges.
53298 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53299 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53300 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53301 as_cr_digits='0123456789'
53302 as_cr_alnum=$as_cr_Letters$as_cr_digits
53304 # The user is always right.
53305 if test "${PATH_SEPARATOR+set}" != set; then
53306 echo "#! /bin/sh" >conf$$.sh
53307 echo "exit 0" >>conf$$.sh
53309 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53318 as_lineno_1=$LINENO
53319 as_lineno_2=$LINENO
53320 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53321 test "x$as_lineno_1" != "x$as_lineno_2" &&
53322 test "x$as_lineno_3" = "x$as_lineno_2" || {
53323 # Find who we are. Look in the path if we contain no path at all
53326 *[\\/]* ) as_myself=$0 ;;
53327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53328 for as_dir in $PATH
53331 test -z "$as_dir" && as_dir=.
53332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53337 # We did not find ourselves, most probably we were run as `sh COMMAND'
53338 # in which case we are not to be found in the path.
53339 if test "x$as_myself" = x; then
53342 if test ! -f "$as_myself"; then
53343 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53344 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53345 { (exit 1); exit 1; }; }
53347 case $CONFIG_SHELL in
53349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53350 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53353 test -z "$as_dir" && as_dir=.
53354 for as_base in sh bash ksh sh5; do
53357 if ("$as_dir/$as_base" -c '
53358 as_lineno_1=$LINENO
53359 as_lineno_2=$LINENO
53360 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53361 test "x$as_lineno_1" != "x$as_lineno_2" &&
53362 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
53363 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53364 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53365 CONFIG_SHELL=$as_dir/$as_base
53366 export CONFIG_SHELL
53367 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53375 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53376 # uniformly replaced by the line number. The first 'sed' inserts a
53377 # line-number line before each line; the second 'sed' does the real
53378 # work. The second script uses 'N' to pair each line-number line
53379 # with the numbered line, and appends trailing '-' during
53380 # substitution so that $LINENO is not a special case at line end.
53381 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53382 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
53383 sed '=' <$as_myself |
53388 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53391 s,^['$as_cr_digits']*\n,,
53392 ' >$as_me.lineno &&
53393 chmod +x $as_me.lineno ||
53394 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53395 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53396 { (exit 1); exit 1; }; }
53398 # Don't try to exec as it changes $[0], causing all sort of problems
53399 # (the dirname of $[0] is not the place where we might find the
53400 # original and so on. Autoconf is especially sensible to this).
53402 # Exit status is that of the last command.
53407 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53408 *c*,-n*) ECHO_N= ECHO_C='
53410 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53411 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
53414 if expr a : '\(a\)' >/dev/null 2>&1; then
53420 rm -f conf$$ conf$$.exe conf$$.file
53422 if ln -s conf$$.file conf$$ 2>/dev/null; then
53423 # We could just check for DJGPP; but this test a) works b) is more generic
53424 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53425 if test -f conf$$.exe; then
53426 # Don't use ln at all; we don't have any links
53431 elif ln conf$$.file conf$$ 2>/dev/null; then
53436 rm -f conf$$ conf$$.exe conf$$.file
53438 if mkdir -p . 2>/dev/null; then
53441 test -d ./-p && rmdir ./-p
53445 as_executable_p="test -f"
53447 # Sed expression to map a string onto a valid CPP name.
53448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53450 # Sed expression to map a string onto a valid variable name.
53451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53455 # We need space, tab and new line, in precisely that order.
53465 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53466 # report actual input values of CONFIG_FILES etc. instead of their
53467 # values after options handling. Logging --version etc. is OK.
53471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53472 ## Running $as_me. ##
53477 This file was extended by $as_me, which was
53478 generated by GNU Autoconf 2.59. Invocation command line was
53480 CONFIG_FILES = $CONFIG_FILES
53481 CONFIG_HEADERS = $CONFIG_HEADERS
53482 CONFIG_LINKS = $CONFIG_LINKS
53483 CONFIG_COMMANDS = $CONFIG_COMMANDS
53487 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53491 # Files that config.status was made for.
53492 if test -n "$ac_config_files"; then
53493 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53496 if test -n "$ac_config_headers"; then
53497 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53500 if test -n "$ac_config_links"; then
53501 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53504 if test -n "$ac_config_commands"; then
53505 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53508 cat >>$CONFIG_STATUS <<\_ACEOF
53511 \`$as_me' instantiates files from templates according to the
53512 current configuration.
53514 Usage: $0 [OPTIONS] [FILE]...
53516 -h, --help print this help, then exit
53517 -V, --version print version number, then exit
53518 -q, --quiet do not print progress messages
53519 -d, --debug don't remove temporary files
53520 --recheck update $as_me by reconfiguring in the same conditions
53521 --file=FILE[:TEMPLATE]
53522 instantiate the configuration file FILE
53523 --header=FILE[:TEMPLATE]
53524 instantiate the configuration header FILE
53526 Configuration files:
53529 Configuration headers:
53532 Configuration commands:
53535 Report bugs to <bug-autoconf@gnu.org>."
53538 cat >>$CONFIG_STATUS <<_ACEOF
53541 configured by $0, generated by GNU Autoconf 2.59,
53542 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53544 Copyright (C) 2003 Free Software Foundation, Inc.
53545 This config.status script is free software; the Free Software Foundation
53546 gives unlimited permission to copy, distribute and modify it."
53551 cat >>$CONFIG_STATUS <<\_ACEOF
53552 # If no file are specified by the user, then we need to provide default
53553 # value. By we need to know if files were specified by the user.
53559 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53560 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53568 *) # This is not an option, so the user has probably given explicit
53571 ac_need_defaults=false;;
53575 # Handling of the options.
53577 cat >>$CONFIG_STATUS <<\_ACEOF
53578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53580 --version | --vers* | -V )
53581 echo "$ac_cs_version"; exit 0 ;;
53583 # Conflict between --help and --header
53584 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53585 Try \`$0 --help' for more information." >&5
53586 echo "$as_me: error: ambiguous option: $1
53587 Try \`$0 --help' for more information." >&2;}
53588 { (exit 1); exit 1; }; };;
53589 --help | --hel | -h )
53590 echo "$ac_cs_usage"; exit 0 ;;
53591 --debug | --d* | -d )
53593 --file | --fil | --fi | --f )
53595 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53596 ac_need_defaults=false;;
53597 --header | --heade | --head | --hea )
53599 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53600 ac_need_defaults=false;;
53601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53602 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53605 # This is an error.
53606 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53607 Try \`$0 --help' for more information." >&5
53608 echo "$as_me: error: unrecognized option: $1
53609 Try \`$0 --help' for more information." >&2;}
53610 { (exit 1); exit 1; }; } ;;
53612 *) ac_config_targets="$ac_config_targets $1" ;;
53618 ac_configure_extra_args=
53620 if $ac_cs_silent; then
53622 ac_configure_extra_args="$ac_configure_extra_args --silent"
53626 cat >>$CONFIG_STATUS <<_ACEOF
53627 if \$ac_cs_recheck; then
53628 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53629 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53634 cat >>$CONFIG_STATUS <<_ACEOF
53636 # INIT-COMMANDS section.
53639 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53640 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53646 cat >>$CONFIG_STATUS <<\_ACEOF
53647 for ac_config_target in $ac_config_targets
53649 case "$ac_config_target" in
53650 # Handling of arguments.
53651 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53652 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53653 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53654 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53655 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53656 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53657 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53658 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53659 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53660 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53661 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53662 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53663 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53664 "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" ;;
53665 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53666 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53667 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53668 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53669 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53670 "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" ;;
53671 "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" ;;
53672 "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" ;;
53673 "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" ;;
53674 "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" ;;
53675 "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" ;;
53676 "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" ;;
53677 "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" ;;
53678 "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" ;;
53679 "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" ;;
53680 "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" ;;
53681 "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" ;;
53682 "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" ;;
53683 "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" ;;
53684 "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" ;;
53685 "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" ;;
53686 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53687 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53688 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53689 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53690 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53691 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53692 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53693 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53694 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53695 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53696 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53697 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53698 { (exit 1); exit 1; }; };;
53702 # If the user did not use the arguments to specify the items to instantiate,
53703 # then the envvar interface is used. Set only those that are not.
53704 # We use the long form for the default assignment because of an extremely
53705 # bizarre bug on SunOS 4.1.3.
53706 if $ac_need_defaults; then
53707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53708 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53709 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53712 # Have a temporary directory for convenience. Make it in the build tree
53713 # simply because there is no reason to put it here, and in addition,
53714 # creating and moving files from /tmp can sometimes cause problems.
53715 # Create a temporary directory, and hook for its removal unless debugging.
53718 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53719 trap '{ (exit 1); exit 1; }' 1 2 13 15
53722 # Create a (secure) tmp directory for tmp files.
53725 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53726 test -n "$tmp" && test -d "$tmp"
53729 tmp=./confstat$$-$RANDOM
53730 (umask 077 && mkdir $tmp)
53733 echo "$me: cannot create a temporary directory in ." >&2
53734 { (exit 1); exit 1; }
53739 cat >>$CONFIG_STATUS <<_ACEOF
53742 # CONFIG_FILES section.
53745 # No need to generate the scripts if there are no CONFIG_FILES.
53746 # This happens for instance when ./config.status config.h
53747 if test -n "\$CONFIG_FILES"; then
53748 # Protect against being on the right side of a sed subst in config.status.
53749 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53750 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53751 s,@SHELL@,$SHELL,;t t
53752 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53753 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53754 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53755 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53756 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53757 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53758 s,@exec_prefix@,$exec_prefix,;t t
53759 s,@prefix@,$prefix,;t t
53760 s,@program_transform_name@,$program_transform_name,;t t
53761 s,@bindir@,$bindir,;t t
53762 s,@sbindir@,$sbindir,;t t
53763 s,@libexecdir@,$libexecdir,;t t
53764 s,@datadir@,$datadir,;t t
53765 s,@sysconfdir@,$sysconfdir,;t t
53766 s,@sharedstatedir@,$sharedstatedir,;t t
53767 s,@localstatedir@,$localstatedir,;t t
53768 s,@libdir@,$libdir,;t t
53769 s,@includedir@,$includedir,;t t
53770 s,@oldincludedir@,$oldincludedir,;t t
53771 s,@infodir@,$infodir,;t t
53772 s,@mandir@,$mandir,;t t
53773 s,@build_alias@,$build_alias,;t t
53774 s,@host_alias@,$host_alias,;t t
53775 s,@target_alias@,$target_alias,;t t
53776 s,@DEFS@,$DEFS,;t t
53777 s,@ECHO_C@,$ECHO_C,;t t
53778 s,@ECHO_N@,$ECHO_N,;t t
53779 s,@ECHO_T@,$ECHO_T,;t t
53780 s,@LIBS@,$LIBS,;t t
53781 s,@build@,$build,;t t
53782 s,@build_cpu@,$build_cpu,;t t
53783 s,@build_vendor@,$build_vendor,;t t
53784 s,@build_os@,$build_os,;t t
53785 s,@host@,$host,;t t
53786 s,@host_cpu@,$host_cpu,;t t
53787 s,@host_vendor@,$host_vendor,;t t
53788 s,@host_os@,$host_os,;t t
53789 s,@target@,$target,;t t
53790 s,@target_cpu@,$target_cpu,;t t
53791 s,@target_vendor@,$target_vendor,;t t
53792 s,@target_os@,$target_os,;t t
53793 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53794 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53795 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53796 s,@CYGPATH_W@,$CYGPATH_W,;t t
53797 s,@PACKAGE@,$PACKAGE,;t t
53798 s,@VERSION@,$VERSION,;t t
53799 s,@ACLOCAL@,$ACLOCAL,;t t
53800 s,@AUTOCONF@,$AUTOCONF,;t t
53801 s,@AUTOMAKE@,$AUTOMAKE,;t t
53802 s,@AUTOHEADER@,$AUTOHEADER,;t t
53803 s,@MAKEINFO@,$MAKEINFO,;t t
53804 s,@install_sh@,$install_sh,;t t
53805 s,@STRIP@,$STRIP,;t t
53806 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53807 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53808 s,@mkdir_p@,$mkdir_p,;t t
53810 s,@SET_MAKE@,$SET_MAKE,;t t
53811 s,@am__leading_dot@,$am__leading_dot,;t t
53812 s,@AMTAR@,$AMTAR,;t t
53813 s,@am__tar@,$am__tar,;t t
53814 s,@am__untar@,$am__untar,;t t
53815 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53816 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53817 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53818 s,@top_builddir@,$top_builddir,;t t
53819 s,@ldap_subdir@,$ldap_subdir,;t t
53822 s,@CFLAGS@,$CFLAGS,;t t
53823 s,@LDFLAGS@,$LDFLAGS,;t t
53824 s,@CPPFLAGS@,$CPPFLAGS,;t t
53825 s,@ac_ct_CC@,$ac_ct_CC,;t t
53826 s,@EXEEXT@,$EXEEXT,;t t
53827 s,@OBJEXT@,$OBJEXT,;t t
53828 s,@DEPDIR@,$DEPDIR,;t t
53829 s,@am__include@,$am__include,;t t
53830 s,@am__quote@,$am__quote,;t t
53831 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53832 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53833 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53834 s,@CCDEPMODE@,$CCDEPMODE,;t t
53835 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53836 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53837 s,@EGREP@,$EGREP,;t t
53838 s,@LN_S@,$LN_S,;t t
53839 s,@ECHO@,$ECHO,;t t
53840 s,@ac_ct_AR@,$ac_ct_AR,;t t
53841 s,@RANLIB@,$RANLIB,;t t
53842 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53843 s,@DLLTOOL@,$DLLTOOL,;t t
53844 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53846 s,@ac_ct_AS@,$ac_ct_AS,;t t
53847 s,@OBJDUMP@,$OBJDUMP,;t t
53848 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53851 s,@CXXFLAGS@,$CXXFLAGS,;t t
53852 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53853 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53854 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53855 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53856 s,@CXXCPP@,$CXXCPP,;t t
53858 s,@FFLAGS@,$FFLAGS,;t t
53859 s,@ac_ct_F77@,$ac_ct_F77,;t t
53860 s,@LIBTOOL@,$LIBTOOL,;t t
53861 s,@PERLBIN@,$PERLBIN,;t t
53862 s,@OL_MKDEP@,$OL_MKDEP,;t t
53863 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53864 s,@LTSTATIC@,$LTSTATIC,;t t
53865 s,@LIBOBJS@,$LIBOBJS,;t t
53866 s,@LIBSRCS@,$LIBSRCS,;t t
53867 s,@PLAT@,$PLAT,;t t
53868 s,@WITH_SASL@,$WITH_SASL,;t t
53869 s,@WITH_TLS@,$WITH_TLS,;t t
53870 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53871 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53872 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53873 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53874 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53875 s,@BUILD_BDB@,$BUILD_BDB,;t t
53876 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53877 s,@BUILD_HDB@,$BUILD_HDB,;t t
53878 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53879 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53880 s,@BUILD_META@,$BUILD_META,;t t
53881 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53882 s,@BUILD_NULL@,$BUILD_NULL,;t t
53883 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53884 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53885 s,@BUILD_PERL@,$BUILD_PERL,;t t
53886 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53887 s,@BUILD_SQL@,$BUILD_SQL,;t t
53888 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53889 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53890 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53891 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53892 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53893 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53894 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53895 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53896 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53897 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53898 s,@BUILD_RWM@,$BUILD_RWM,;t t
53899 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53900 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53901 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53902 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
53903 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53904 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53905 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53906 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53907 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53908 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53909 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53910 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53911 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53912 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53913 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53914 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53915 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53916 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53917 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53918 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53919 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53920 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53921 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53922 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53923 s,@SASL_LIBS@,$SASL_LIBS,;t t
53924 s,@TLS_LIBS@,$TLS_LIBS,;t t
53925 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53926 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53927 s,@LIBSLAPI@,$LIBSLAPI,;t t
53928 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53929 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53930 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53931 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53932 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53933 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53934 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53935 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53940 cat >>$CONFIG_STATUS <<\_ACEOF
53941 # Split the substitutions into bite-sized pieces for seds with
53942 # small command number limits, like on Digital OSF/1 and HP-UX.
53943 ac_max_sed_lines=48
53944 ac_sed_frag=1 # Number of current file.
53945 ac_beg=1 # First line for current file.
53946 ac_end=$ac_max_sed_lines # Line after last line for current file.
53949 while $ac_more_lines; do
53950 if test $ac_beg -gt 1; then
53951 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53953 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53955 if test ! -s $tmp/subs.frag; then
53956 ac_more_lines=false
53958 # The purpose of the label and of the branching condition is to
53959 # speed up the sed processing (if there are no `@' at all, there
53960 # is no need to browse any of the substitutions).
53961 # These are the two extra sed commands mentioned above.
53963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53964 if test -z "$ac_sed_cmds"; then
53965 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53967 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53969 ac_sed_frag=`expr $ac_sed_frag + 1`
53971 ac_end=`expr $ac_end + $ac_max_sed_lines`
53974 if test -z "$ac_sed_cmds"; then
53977 fi # test -n "$CONFIG_FILES"
53980 cat >>$CONFIG_STATUS <<\_ACEOF
53981 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53984 - | *:- | *:-:* ) # input from stdin
53986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53990 * ) ac_file_in=$ac_file.in ;;
53993 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53994 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53996 X"$ac_file" : 'X\(//\)[^/]' \| \
53997 X"$ac_file" : 'X\(//\)$' \| \
53998 X"$ac_file" : 'X\(/\)' \| \
53999 . : '\(.\)' 2>/dev/null ||
54001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54003 /^X\(\/\/\)$/{ s//\1/; q; }
54004 /^X\(\/\).*/{ s//\1/; q; }
54006 { if $as_mkdir_p; then
54011 while test ! -d "$as_dir"; do
54012 as_dirs="$as_dir $as_dirs"
54013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54015 X"$as_dir" : 'X\(//\)[^/]' \| \
54016 X"$as_dir" : 'X\(//\)$' \| \
54017 X"$as_dir" : 'X\(/\)' \| \
54018 . : '\(.\)' 2>/dev/null ||
54020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54022 /^X\(\/\/\)$/{ s//\1/; q; }
54023 /^X\(\/\).*/{ s//\1/; q; }
54026 test ! -n "$as_dirs" || mkdir $as_dirs
54027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54029 { (exit 1); exit 1; }; }; }
54033 if test "$ac_dir" != .; then
54034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54035 # A "../" for each directory in $ac_dir_suffix.
54036 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54038 ac_dir_suffix= ac_top_builddir=
54042 .) # No --srcdir option. We are building in place.
54044 if test -z "$ac_top_builddir"; then
54047 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54049 [\\/]* | ?:[\\/]* ) # Absolute path.
54050 ac_srcdir=$srcdir$ac_dir_suffix;
54051 ac_top_srcdir=$srcdir ;;
54052 *) # Relative path.
54053 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54054 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54057 # Do not use `cd foo && pwd` to compute absolute paths, because
54058 # the directories may not exist.
54060 .) ac_abs_builddir="$ac_dir";;
54063 .) ac_abs_builddir=`pwd`;;
54064 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54065 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54068 case $ac_abs_builddir in
54069 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54071 case ${ac_top_builddir}. in
54072 .) ac_abs_top_builddir=$ac_abs_builddir;;
54073 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54074 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54077 case $ac_abs_builddir in
54078 .) ac_abs_srcdir=$ac_srcdir;;
54081 .) ac_abs_srcdir=$ac_abs_builddir;;
54082 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54083 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54086 case $ac_abs_builddir in
54087 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54089 case $ac_top_srcdir in
54090 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54091 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54092 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54099 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54102 if test x"$ac_file" != x-; then
54103 { echo "$as_me:$LINENO: creating $ac_file" >&5
54104 echo "$as_me: creating $ac_file" >&6;}
54107 # Let's still pretend it is `configure' which instantiates (i.e., don't
54108 # use $as_me), people would be surprised to read:
54109 # /* config.h. Generated by config.status. */
54110 if test x"$ac_file" = x-; then
54113 configure_input="$ac_file. "
54115 configure_input=$configure_input"Generated from `echo $ac_file_in |
54116 sed 's,.*/,,'` by configure."
54118 # First look for the input files in the build tree, otherwise in the
54120 ac_file_inputs=`IFS=:
54121 for f in $ac_file_in; do
54123 -) echo $tmp/stdin ;;
54125 # Absolute (can't be DOS-style, as IFS=:)
54126 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54127 echo "$as_me: error: cannot find input file: $f" >&2;}
54128 { (exit 1); exit 1; }; }
54131 if test -f "$f"; then
54134 elif test -f "$srcdir/$f"; then
54139 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54140 echo "$as_me: error: cannot find input file: $f" >&2;}
54141 { (exit 1); exit 1; }; }
54144 done` || { (exit 1); exit 1; }
54146 cat >>$CONFIG_STATUS <<_ACEOF
54150 cat >>$CONFIG_STATUS <<\_ACEOF
54152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54153 s,@configure_input@,$configure_input,;t t
54154 s,@srcdir@,$ac_srcdir,;t t
54155 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54156 s,@top_srcdir@,$ac_top_srcdir,;t t
54157 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54158 s,@builddir@,$ac_builddir,;t t
54159 s,@abs_builddir@,$ac_abs_builddir,;t t
54160 s,@top_builddir@,$ac_top_builddir,;t t
54161 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54162 s,@INSTALL@,$ac_INSTALL,;t t
54163 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54165 if test x"$ac_file" != x-; then
54166 mv $tmp/out $ac_file
54174 cat >>$CONFIG_STATUS <<\_ACEOF
54177 # CONFIG_HEADER section.
54180 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54181 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54183 # ac_d sets the value in "#define NAME VALUE" lines.
54184 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
54185 ac_dB='[ ].*$,\1#\2'
54188 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54189 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
54190 ac_uB='$,\1#\2define\3'
54194 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54195 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54197 - | *:- | *:-:* ) # input from stdin
54199 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54200 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54201 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54202 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54203 * ) ac_file_in=$ac_file.in ;;
54206 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54207 echo "$as_me: creating $ac_file" >&6;}
54209 # First look for the input files in the build tree, otherwise in the
54211 ac_file_inputs=`IFS=:
54212 for f in $ac_file_in; do
54214 -) echo $tmp/stdin ;;
54216 # Absolute (can't be DOS-style, as IFS=:)
54217 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54218 echo "$as_me: error: cannot find input file: $f" >&2;}
54219 { (exit 1); exit 1; }; }
54220 # Do quote $f, to prevent DOS paths from being IFS'd.
54223 if test -f "$f"; then
54226 elif test -f "$srcdir/$f"; then
54231 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54232 echo "$as_me: error: cannot find input file: $f" >&2;}
54233 { (exit 1); exit 1; }; }
54236 done` || { (exit 1); exit 1; }
54237 # Remove the trailing spaces.
54238 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
54242 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54243 # `conftest.undefs', that substitutes the proper values into
54244 # config.h.in to produce config.h. The first handles `#define'
54245 # templates, and the second `#undef' templates.
54246 # And first: Protect against being on the right side of a sed subst in
54247 # config.status. Protect against being in an unquoted here document
54248 # in config.status.
54249 rm -f conftest.defines conftest.undefs
54250 # Using a here document instead of a string reduces the quoting nightmare.
54251 # Putting comments in sed scripts is not portable.
54253 # `end' is used to avoid that the second main sed command (meant for
54254 # 0-ary CPP macros) applies to n-ary macro definitions.
54255 # See the Autoconf documentation for `clear'.
54256 cat >confdef2sed.sed <<\_ACEOF
54261 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54263 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54266 # If some macros were called several times there might be several times
54267 # the same #defines, which is useless. Nevertheless, we may not want to
54268 # sort them, since we want the *last* AC-DEFINE to be honored.
54269 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54270 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54271 rm -f confdef2sed.sed
54273 # This sed command replaces #undef with comments. This is necessary, for
54274 # example, in the case of _POSIX_SOURCE, which is predefined and required
54275 # on some systems where configure will not decide to define it.
54276 cat >>conftest.undefs <<\_ACEOF
54277 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54280 # Break up conftest.defines because some shells have a limit on the size
54281 # of here documents, and old seds have small limits too (100 cmds).
54282 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54283 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54284 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54285 echo ' :' >>$CONFIG_STATUS
54286 rm -f conftest.tail
54287 while grep . conftest.defines >/dev/null
54289 # Write a limited-size here document to $tmp/defines.sed.
54290 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54291 # Speed up: don't consider the non `#define' lines.
54292 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
54293 # Work around the forget-to-reset-the-flag bug.
54294 echo 't clr' >>$CONFIG_STATUS
54295 echo ': clr' >>$CONFIG_STATUS
54296 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54298 sed -f $tmp/defines.sed $tmp/in >$tmp/out
54300 mv $tmp/out $tmp/in
54302 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54303 rm -f conftest.defines
54304 mv conftest.tail conftest.defines
54306 rm -f conftest.defines
54307 echo ' fi # grep' >>$CONFIG_STATUS
54308 echo >>$CONFIG_STATUS
54310 # Break up conftest.undefs because some shells have a limit on the size
54311 # of here documents, and old seds have small limits too (100 cmds).
54312 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
54313 rm -f conftest.tail
54314 while grep . conftest.undefs >/dev/null
54316 # Write a limited-size here document to $tmp/undefs.sed.
54317 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54318 # Speed up: don't consider the non `#undef'
54319 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
54320 # Work around the forget-to-reset-the-flag bug.
54321 echo 't clr' >>$CONFIG_STATUS
54322 echo ': clr' >>$CONFIG_STATUS
54323 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54325 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54327 mv $tmp/out $tmp/in
54329 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54330 rm -f conftest.undefs
54331 mv conftest.tail conftest.undefs
54333 rm -f conftest.undefs
54335 cat >>$CONFIG_STATUS <<\_ACEOF
54336 # Let's still pretend it is `configure' which instantiates (i.e., don't
54337 # use $as_me), people would be surprised to read:
54338 # /* config.h. Generated by config.status. */
54339 if test x"$ac_file" = x-; then
54340 echo "/* Generated by configure. */" >$tmp/config.h
54342 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
54344 cat $tmp/in >>$tmp/config.h
54346 if test x"$ac_file" != x-; then
54347 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54348 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54349 echo "$as_me: $ac_file is unchanged" >&6;}
54351 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54353 X"$ac_file" : 'X\(//\)[^/]' \| \
54354 X"$ac_file" : 'X\(//\)$' \| \
54355 X"$ac_file" : 'X\(/\)' \| \
54356 . : '\(.\)' 2>/dev/null ||
54358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54360 /^X\(\/\/\)$/{ s//\1/; q; }
54361 /^X\(\/\).*/{ s//\1/; q; }
54363 { if $as_mkdir_p; then
54368 while test ! -d "$as_dir"; do
54369 as_dirs="$as_dir $as_dirs"
54370 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54372 X"$as_dir" : 'X\(//\)[^/]' \| \
54373 X"$as_dir" : 'X\(//\)$' \| \
54374 X"$as_dir" : 'X\(/\)' \| \
54375 . : '\(.\)' 2>/dev/null ||
54377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54379 /^X\(\/\/\)$/{ s//\1/; q; }
54380 /^X\(\/\).*/{ s//\1/; q; }
54383 test ! -n "$as_dirs" || mkdir $as_dirs
54384 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54385 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54386 { (exit 1); exit 1; }; }; }
54389 mv $tmp/config.h $ac_file
54393 rm -f $tmp/config.h
54395 # Compute $ac_file's index in $config_headers.
54397 for _am_header in $config_headers :; do
54398 case $_am_header in
54399 $ac_file | $ac_file:* )
54402 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54405 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54406 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54407 X$ac_file : 'X\(//\)[^/]' \| \
54408 X$ac_file : 'X\(//\)$' \| \
54409 X$ac_file : 'X\(/\)' \| \
54410 . : '\(.\)' 2>/dev/null ||
54412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54414 /^X\(\/\/\)$/{ s//\1/; q; }
54415 /^X\(\/\).*/{ s//\1/; q; }
54416 s/.*/./; q'`/stamp-h$_am_stamp_count
54419 cat >>$CONFIG_STATUS <<\_ACEOF
54422 # CONFIG_COMMANDS section.
54424 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54425 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54426 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54427 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54428 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54429 X"$ac_dest" : 'X\(//\)[^/]' \| \
54430 X"$ac_dest" : 'X\(//\)$' \| \
54431 X"$ac_dest" : 'X\(/\)' \| \
54432 . : '\(.\)' 2>/dev/null ||
54434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54436 /^X\(\/\/\)$/{ s//\1/; q; }
54437 /^X\(\/\).*/{ s//\1/; q; }
54439 { if $as_mkdir_p; then
54444 while test ! -d "$as_dir"; do
54445 as_dirs="$as_dir $as_dirs"
54446 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54448 X"$as_dir" : 'X\(//\)[^/]' \| \
54449 X"$as_dir" : 'X\(//\)$' \| \
54450 X"$as_dir" : 'X\(/\)' \| \
54451 . : '\(.\)' 2>/dev/null ||
54453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54454 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54455 /^X\(\/\/\)$/{ s//\1/; q; }
54456 /^X\(\/\).*/{ s//\1/; q; }
54459 test ! -n "$as_dirs" || mkdir $as_dirs
54460 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54461 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54462 { (exit 1); exit 1; }; }; }
54466 if test "$ac_dir" != .; then
54467 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54468 # A "../" for each directory in $ac_dir_suffix.
54469 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54471 ac_dir_suffix= ac_top_builddir=
54475 .) # No --srcdir option. We are building in place.
54477 if test -z "$ac_top_builddir"; then
54480 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54482 [\\/]* | ?:[\\/]* ) # Absolute path.
54483 ac_srcdir=$srcdir$ac_dir_suffix;
54484 ac_top_srcdir=$srcdir ;;
54485 *) # Relative path.
54486 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54487 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54490 # Do not use `cd foo && pwd` to compute absolute paths, because
54491 # the directories may not exist.
54493 .) ac_abs_builddir="$ac_dir";;
54496 .) ac_abs_builddir=`pwd`;;
54497 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54498 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54501 case $ac_abs_builddir in
54502 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54504 case ${ac_top_builddir}. in
54505 .) ac_abs_top_builddir=$ac_abs_builddir;;
54506 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54507 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54510 case $ac_abs_builddir in
54511 .) ac_abs_srcdir=$ac_srcdir;;
54514 .) ac_abs_srcdir=$ac_abs_builddir;;
54515 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54516 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54519 case $ac_abs_builddir in
54520 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54522 case $ac_top_srcdir in
54523 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54524 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54525 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54530 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54531 echo "$as_me: executing $ac_dest commands" >&6;}
54533 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54534 # Strip MF so we end up with the name of the file.
54535 mf=`echo "$mf" | sed -e 's/:.*$//'`
54536 # Check whether this is an Automake generated Makefile or not.
54537 # We used to match only the files named `Makefile.in', but
54538 # some people rename them; so instead we look at the file content.
54539 # Grep'ing the first line is not enough: some people post-process
54540 # each Makefile.in and add a new line on top of each file to say so.
54541 # So let's grep whole file.
54542 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54543 dirpart=`(dirname "$mf") 2>/dev/null ||
54544 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54545 X"$mf" : 'X\(//\)[^/]' \| \
54546 X"$mf" : 'X\(//\)$' \| \
54547 X"$mf" : 'X\(/\)' \| \
54548 . : '\(.\)' 2>/dev/null ||
54550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54552 /^X\(\/\/\)$/{ s//\1/; q; }
54553 /^X\(\/\).*/{ s//\1/; q; }
54558 # Extract the definition of DEPDIR, am__include, and am__quote
54559 # from the Makefile without running `make'.
54560 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54561 test -z "$DEPDIR" && continue
54562 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54563 test -z "am__include" && continue
54564 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54565 # When using ansi2knr, U may be empty or an underscore; expand it
54566 U=`sed -n 's/^U = //p' < "$mf"`
54567 # Find all dependency output files, they are included files with
54568 # $(DEPDIR) in their names. We invoke sed twice because it is the
54569 # simplest approach to changing $(DEPDIR) to its actual value in the
54571 for file in `sed -n "
54572 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54573 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54574 # Make sure the directory exists.
54575 test -f "$dirpart/$file" && continue
54576 fdir=`(dirname "$file") 2>/dev/null ||
54577 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54578 X"$file" : 'X\(//\)[^/]' \| \
54579 X"$file" : 'X\(//\)$' \| \
54580 X"$file" : 'X\(/\)' \| \
54581 . : '\(.\)' 2>/dev/null ||
54583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54585 /^X\(\/\/\)$/{ s//\1/; q; }
54586 /^X\(\/\).*/{ s//\1/; q; }
54588 { if $as_mkdir_p; then
54589 mkdir -p $dirpart/$fdir
54591 as_dir=$dirpart/$fdir
54593 while test ! -d "$as_dir"; do
54594 as_dirs="$as_dir $as_dirs"
54595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54597 X"$as_dir" : 'X\(//\)[^/]' \| \
54598 X"$as_dir" : 'X\(//\)$' \| \
54599 X"$as_dir" : 'X\(/\)' \| \
54600 . : '\(.\)' 2>/dev/null ||
54602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54604 /^X\(\/\/\)$/{ s//\1/; q; }
54605 /^X\(\/\).*/{ s//\1/; q; }
54608 test ! -n "$as_dirs" || mkdir $as_dirs
54609 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54610 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54611 { (exit 1); exit 1; }; }; }
54613 # echo "creating $dirpart/$file"
54614 echo '# dummy' > "$dirpart/$file"
54621 BACKENDSC="servers/slapd/backends.c"
54622 echo "Making $BACKENDSC"
54624 cat > $BACKENDSC << ENDX
54625 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54627 * Copyright 1998-2005 The OpenLDAP Foundation.
54628 * All rights reserved.
54630 * Redistribution and use in source and binary forms, with or without
54631 * modification, are permitted only as authorized by the OpenLDAP
54634 * A copy of this license is available in the file LICENSE in the
54635 * top-level directory of the distribution or, alternatively, at
54636 * <http://www.OpenLDAP.org/license.html>.
54638 /* This file is automatically generated by configure; please do not edit. */
54640 #include "portable.h"
54644 if test "${STATIC_BACKENDS}"; then
54645 for b in config ${STATIC_BACKENDS}; do
54646 bb=`echo "${b}" | sed -e 's/back-//'`
54647 cat >> $BACKENDSC << ENDX
54648 extern BI_init ${bb}_back_initialize;
54652 cat >> $BACKENDSC << ENDX
54654 BackendInfo slap_binfo[] = {
54657 for b in config ${STATIC_BACKENDS}; do
54658 bb=`echo "${b}" | sed -e 's/back-//'`
54659 echo " Add ${bb} ..."
54660 cat >> $BACKENDSC << ENDX
54661 { "${bb}", ${bb}_back_initialize },
54665 cat >> $BACKENDSC << ENDX
54669 /* end of generated file */
54673 echo Please run \"make depend\" to build dependencies
54679 cat >>$CONFIG_STATUS <<\_ACEOF
54681 { (exit 0); exit 0; }
54683 chmod +x $CONFIG_STATUS
54684 ac_clean_files=$ac_clean_files_save
54687 # configure is writing to config.log, and then calls config.status.
54688 # config.status does its own redirection, appending to config.log.
54689 # Unfortunately, on DOS this fails, as config.log is still kept open
54690 # by configure, so config.status won't be able to write to it; its
54691 # output is simply discarded. So we exec the FD to /dev/null,
54692 # effectively closing config.log, so it can be properly (re)opened and
54693 # appended to by config.status. When coming back to configure, we
54694 # need to make the FD available again.
54695 if test "$no_create" != yes; then
54697 ac_config_status_args=
54698 test "$silent" = yes &&
54699 ac_config_status_args="$ac_config_status_args --quiet"
54701 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54703 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54704 # would make configure fail if this is the last instruction.
54705 $ac_cs_success || { (exit 1); exit 1; }